:root {
    --sb-black: #000;
    --sb-white: #f5f7f8;
    --sb-muted: rgba(245,247,248,.46);
    --sb-line: rgba(255,255,255,.12);
    --sb-glow: rgba(255,255,255,.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: var(--sb-black); }
body.sbhs-body {
    min-height: 100svh;
    color: var(--sb-white);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

#sbhs-matrix {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .17;
    filter: grayscale(1) contrast(1.18);
}

.sbhs-stage {
    position: relative;
    z-index: 2;
    min-height: 100svh;
    display: grid;
    place-items: center;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 48%, rgba(255,255,255,.055), transparent 25%),
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: auto, 48px 48px, 48px 48px;
}

.sbhs-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.022) 4px);
    mix-blend-mode: screen;
    pointer-events: none;
}

.sbhs-grid {
    position: absolute;
    width: min(76vw, 980px);
    height: min(48vw, 620px);
    border: 1px solid rgba(255,255,255,.035);
    transform: perspective(900px) rotateX(62deg) translateY(45%);
    opacity: .42;
    background-image:
      linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 72%, transparent 100%);
}

.sbhs-brand-wrap {
    position: relative;
    text-align: center;
    padding: 48px 34px;
    width: min(94vw, 1200px);
}

.sbhs-kicker {
    margin-bottom: 18px;
    color: rgba(255,255,255,.42);
    font-size: clamp(10px, .9vw, 13px);
    letter-spacing: .34em;
    text-transform: uppercase;
}

.sbhs-title {
    position: relative;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    font-size: clamp(54px, 11.5vw, 172px);
    line-height: .86;
    letter-spacing: -.065em;
    color: #fff;
    text-shadow: 0 0 24px rgba(255,255,255,.13), 0 0 80px rgba(255,255,255,.055);
    animation: sbhs-breathe 5.8s ease-in-out infinite;
}

.sbhs-title::before,
.sbhs-title::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}
.sbhs-title::before {
    transform: translateX(-2px);
    clip-path: inset(18% 0 63% 0);
    animation: sbhs-glitch-a 6.2s infinite steps(1, end);
}
.sbhs-title::after {
    transform: translateX(2px);
    clip-path: inset(62% 0 15% 0);
    animation: sbhs-glitch-b 7.1s infinite steps(1, end);
}

.sbhs-line {
    width: min(420px, 58vw);
    height: 1px;
    margin: 26px auto 17px;
    background: rgba(255,255,255,.1);
    overflow: hidden;
}
.sbhs-line span {
    display: block;
    width: 38%;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 14px rgba(255,255,255,.8);
    animation: sbhs-line 3.8s ease-in-out infinite;
}

.sbhs-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 9px;
    letter-spacing: .26em;
    color: rgba(255,255,255,.38);
}
.sbhs-status i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,.9);
    animation: sbhs-pulse 1.35s infinite;
}

.sbhs-scan {
    position: absolute;
    z-index: 5;
    top: -15%;
    left: 0;
    width: 100%;
    height: 14%;
    opacity: .08;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,.65), transparent);
    animation: sbhs-scan 7.5s linear infinite;
    pointer-events: none;
}

.sbhs-noise,
.sbhs-vignette {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}
.sbhs-noise {
    opacity: .025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.sbhs-vignette {
    z-index: 4;
    background: radial-gradient(circle at center, transparent 35%, rgba(0,0,0,.42) 70%, rgba(0,0,0,.92) 100%);
}

.sbhs-corner {
    position: absolute;
    width: 34px;
    height: 34px;
    opacity: .25;
}
.sbhs-corner--tl { top: 24px; left: 24px; border-top: 1px solid #fff; border-left: 1px solid #fff; }
.sbhs-corner--tr { top: 24px; right: 24px; border-top: 1px solid #fff; border-right: 1px solid #fff; }
.sbhs-corner--bl { bottom: 24px; left: 24px; border-bottom: 1px solid #fff; border-left: 1px solid #fff; }
.sbhs-corner--br { bottom: 24px; right: 24px; border-bottom: 1px solid #fff; border-right: 1px solid #fff; }

@keyframes sbhs-breathe {
    0%, 100% { opacity: .94; filter: brightness(.96); }
    50% { opacity: 1; filter: brightness(1.08); }
}
@keyframes sbhs-glitch-a {
    0%, 89%, 100% { opacity: 0; }
    90% { opacity: .75; transform: translate(-4px, 0); }
    91% { opacity: .2; transform: translate(3px, 0); }
    92% { opacity: 0; }
}
@keyframes sbhs-glitch-b {
    0%, 72%, 100% { opacity: 0; }
    73% { opacity: .55; transform: translate(4px, 1px); }
    74% { opacity: .15; transform: translate(-3px, -1px); }
    75% { opacity: 0; }
}
@keyframes sbhs-line {
    0% { transform: translateX(-110%); }
    50% { transform: translateX(215%); }
    100% { transform: translateX(215%); }
}
@keyframes sbhs-pulse {
    0%,100% { opacity: .25; transform: scale(.8); }
    50% { opacity: 1; transform: scale(1.25); }
}
@keyframes sbhs-scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(900%); }
}

@media (max-width: 600px) {
    .sbhs-brand-wrap { padding: 28px 18px; }
    .sbhs-title { font-size: clamp(49px, 17vw, 82px); letter-spacing: -.075em; }
    .sbhs-kicker { font-size: 8px; letter-spacing: .24em; margin-bottom: 15px; }
    .sbhs-line { margin-top: 21px; }
    .sbhs-status { font-size: 7px; letter-spacing: .2em; }
    .sbhs-corner { width: 22px; height: 22px; }
    .sbhs-corner--tl { top: 14px; left: 14px; }
    .sbhs-corner--tr { top: 14px; right: 14px; }
    .sbhs-corner--bl { bottom: 14px; left: 14px; }
    .sbhs-corner--br { bottom: 14px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
