/* ==========================================================================
   Ultimate Designer: light HUD — photoreal walk-in
   Scene layers (bottom to top), all inside .scene (the first screen):
     stage--plate (void + portal, portal lock)  >  title-intro--back
     (ULTIMATE)  >  title-final (both words, behind him)  >  stage--char
     (shadow, floor reflection, walk video, stills, hover views, glitch,
     wrist-fx hook)  >  title-intro--front (DESIGNER)  >  callouts.
   Every .stage is the same box with the plate's 1376:768 ratio, cover-sized
   and centred by js/hud.js, so plate and character stay locked together.
   ========================================================================== */

:root {
  --bg: #DEDEDE;
  --bg-hi: #ECEDEF;
  --plate-floor: #B4B8BC;      /* plate colour at its bottom edge */
  --ink: #111;
  --ink-2: rgba(17, 17, 17, .64);
  --ink-3: rgba(17, 17, 17, .4);
  --line: rgba(17, 17, 17, .26);
  --red: #FD1F0F;
  --maroon: #B81117;
  --mono: "JetBrains Mono", "Space Mono", "Courier New", monospace;
  --display: "Mantra Inktrap", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --edge: clamp(20px, 3.4vw, 52px);
  --vh: 100svh;                /* JS: viewport height in px */
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--mono); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
html.is-intro, html.is-intro body, html.modal-open, html.modal-open body { overflow: hidden; height: 100%; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; }
a:focus-visible, button:focus-visible, .callout:focus-visible { outline: 1px dashed var(--red); outline-offset: 4px; }
.nav, .hud, .callouts, .preloader, .skip, .hint, .modal, .about__row, .portal-lock { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }

/* no clicks on invisible HUD bits while the intro plays */
html.is-intro .nav, html.is-intro .hud, html.is-intro .hud *, html.is-intro .callout { pointer-events: none !important; }

/* --------------------------------------------------------------------------
   Hero / scene
   -------------------------------------------------------------------------- */
.hero { position: relative; height: var(--vh); min-height: 520px; overflow: hidden; background: #E7E9EC; }
.scene { position: absolute; inset: 0; }
.scene-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; pointer-events: none; background: linear-gradient(to bottom, rgba(222,222,222,0) 0%, rgba(222,222,222,.55) 45%, var(--bg) 92%); }

.stage { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1376 / 768; pointer-events: none; }
.stage--plate { opacity: 0; }
.stage--char { opacity: 0; }
.plate { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* video + stills: the centre third of the 1920x1072 frame = centre third of the box */
.third { position: absolute; left: 33.3333%; width: 33.3333%; top: 0; height: 100%; object-fit: fill; display: block; max-width: none; }
.poster { opacity: 0; }
.walk { opacity: 0; }

/* head follow (JS): head tiles over the final still; the still gets a hole under them */
.look { pointer-events: none; opacity: 0; }
.look.is-on { opacity: 1; }
.look img { position: absolute; display: block; max-width: none; opacity: 0; }
#posterLast.is-looking {
  -webkit-mask-image: linear-gradient(#000, #000), linear-gradient(#000, #000);
  -webkit-mask-size: 100% 100%, var(--hole-w) var(--hole-h);
  -webkit-mask-position: 0 0, var(--hole-x) var(--hole-y);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: xor;
  mask-image: linear-gradient(#000, #000), linear-gradient(#000, #000);
  mask-size: 100% 100%, var(--hole-w) var(--hole-h);
  mask-position: 0 0, var(--hole-x) var(--hole-y);
  mask-repeat: no-repeat;
  mask-composite: exclude;
}

/* hover views (full-plate cutouts) and the glitch slices */
.view { position: absolute; inset: 0; opacity: 0; }
.view img { position: absolute; display: block; max-width: none; }
.view img.is-full { inset: 0; width: 100%; height: 100%; }
.view img.is-third { left: 33.3333%; width: 33.3333%; top: 0; height: 100%; }
.glitch { position: absolute; inset: 0; pointer-events: none; }
.glitch span { position: absolute; inset: 0; background-repeat: no-repeat; will-change: transform, clip-path; }
.is-glitching .view img, .is-glitching .walk, .is-glitching .poster, .is-glitching [data-glitch-base] {
  filter: drop-shadow(4px 0 0 rgba(253, 31, 15, .75)) drop-shadow(-4px 0 0 rgba(0, 200, 255, .65));
}

/* soft contact shadow + glossy floor reflection (both follow the feet, JS) */
.shadow {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(20, 24, 30, .42), rgba(20, 24, 30, .16) 55%, rgba(20, 24, 30, 0) 100%);
  filter: blur(1.5px);
}
.reflection { position: absolute; left: 33.3333%; width: 33.3333%; top: 0; height: 100%; opacity: .18; filter: blur(1.2px); }

/* placeholder for wrist-device effects (WRIST_FX in hud.js) */
.wrist-fx { position: absolute; width: 0; height: 0; pointer-events: none; }

/* landing ring */
.ring { position: absolute; transform: translate(-50%, -50%); border: 1px solid var(--red); border-radius: 50%; opacity: 0; }

/* HUD lock brackets around the portal (portal = x 47.2-52.9%, y 43.4-54.7%) */
.portal-lock { position: absolute; left: 46%; top: 41.6%; width: 8%; height: 14.8%; opacity: 0; }
.portal-lock .corner { width: 12px; height: 12px; border-color: var(--red); }
.portal-lock__label { position: absolute; left: 100%; top: -2px; margin-left: 8px; font-size: 9px; color: var(--red); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Titles
   -------------------------------------------------------------------------- */
.word, .fword { position: absolute; left: 0; top: 0; font-family: var(--display); font-weight: 400; line-height: .85; text-transform: uppercase; white-space: nowrap; color: var(--red); font-synthesis: none; }
.title-intro { position: absolute; inset: 0; transform-origin: 50% 50%; opacity: 0; }
.word { font-size: min(30vw, 40vh); will-change: transform; }
.half { display: block; will-change: transform; }
.half--bottom { position: absolute; left: 0; top: 0; }
.title-intro.is-joined .half--top { clip-path: none !important; }
.title-intro.is-joined .half--bottom { visibility: hidden; }

.title-final { position: absolute; inset: 0; }
.fword {
  opacity: 0;
  color: transparent;
  background-image: linear-gradient(to bottom, rgba(253,31,15,1) 0%, rgba(253,31,15,.95) 25%, rgba(253,31,15,.55) 58%, rgba(253,31,15,.12) 84%, rgba(253,31,15,0) 94%);
  -webkit-background-clip: text;
  background-clip: text;
  will-change: transform, clip-path;
}

/* --------------------------------------------------------------------------
   Callouts
   -------------------------------------------------------------------------- */
.callout-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.callout-lines path { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.callout-lines circle { fill: var(--bg-hi); stroke: var(--ink); stroke-width: 1; }
.callout-lines .is-hot path { stroke: var(--red); }
.callout-lines .is-hot circle { stroke: var(--red); fill: var(--red); }
.callouts { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.callout { position: absolute; font-size: 11px; line-height: 1.35; white-space: nowrap; pointer-events: auto; cursor: pointer; opacity: 0; padding: 4px 0; }
.callout--left { text-align: right; }
.callout__meta { display: block; font-size: 9px; color: var(--ink-3); }
.callout__label { display: block; font-weight: 500; transition: color .2s; }
.callout__label::before, .callout__label::after { content: ""; display: none; width: 6px; height: 6px; vertical-align: 1px; background: var(--ink); transition: background-color .2s; }
.callout--right .callout__label::before { display: inline-block; margin-right: 6px; }
.callout--left .callout__label::after { display: inline-block; margin-left: 6px; }
.callout.is-hot .callout__label { color: var(--red); }
.callout.is-hot .callout__label::before, .callout.is-hot .callout__label::after { background: var(--red); }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav { position: fixed; z-index: 40; left: 0; right: 0; top: 0; padding: clamp(14px, 3vh, 30px) calc(var(--edge) + 28px) 12px var(--edge); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; font-size: 11px; opacity: 0; transition: background-color .35s, padding .35s, border-color .35s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { padding-top: 12px; background: rgba(226, 227, 229, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.nav__logo { display: grid; gap: 6px; }
.nav__mark { font-family: var(--display); font-size: 30px; line-height: .8; letter-spacing: 0; text-transform: none; }
.nav__meta { display: flex; align-items: center; gap: 8px; font-size: 8.5px; color: var(--ink-2); }
.nav__bar { width: 34px; height: 4px; background: linear-gradient(90deg, var(--ink) 0 70%, var(--red) 70%); }
.nav__links { display: flex; justify-content: center; gap: clamp(14px, 2.2vw, 34px); }
.nav__links a { position: relative; display: flex; align-items: center; gap: 8px; letter-spacing: .14em; padding: 4px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 14px; bottom: -2px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a i { font-style: normal; color: var(--ink-3); transition: color .2s, transform .3s; }
.nav__links a:hover i, .nav__links a:focus-visible i { color: var(--red); transform: rotate(90deg); }
.nav__links a.is-active, .nav__links a.is-active i { color: var(--red); }
.nav__right { justify-self: end; display: flex; align-items: center; gap: 18px; }
.btn-bracket {
  position: relative; padding: 7px 12px; letter-spacing: .16em; font-weight: 500;
  background:
    linear-gradient(var(--ink), var(--ink)) left top / 8px 1px no-repeat, linear-gradient(var(--ink), var(--ink)) left top / 1px 8px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right top / 8px 1px no-repeat, linear-gradient(var(--ink), var(--ink)) right top / 1px 8px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left bottom / 8px 1px no-repeat, linear-gradient(var(--ink), var(--ink)) left bottom / 1px 8px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right bottom / 8px 1px no-repeat, linear-gradient(var(--ink), var(--ink)) right bottom / 1px 8px no-repeat;
  transition: color .2s, background-color .2s;
}
.btn-bracket:hover, .btn-bracket:focus-visible { color: var(--red); background-color: rgba(253,31,15,.06); }
.dots { display: grid; grid-template-columns: 6px 6px; gap: 4px; }
.dots i { width: 6px; height: 6px; background: var(--ink); }
.dots i:nth-child(4) { background: var(--red); }

/* --------------------------------------------------------------------------
   HUD over the first screen
   -------------------------------------------------------------------------- */
.hud { position: absolute; inset: 0; z-index: 15; pointer-events: none; font-size: 10px; }
.hud > * { pointer-events: auto; }
.hud-frame { position: absolute; inset: 0; pointer-events: none !important; opacity: 0; }
.corner { position: absolute; width: 14px; height: 14px; border: 0 solid var(--ink); pointer-events: none; }
.corner--tl { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.corner--tr { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.corner--bl { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.corner--br { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.hud-frame .corner { width: 22px; height: 22px; }
.hud-frame .corner--tl { left: 12px; top: 12px; } .hud-frame .corner--tr { right: 12px; top: 12px; }
.hud-frame .corner--bl { left: 12px; bottom: 12px; } .hud-frame .corner--br { right: 12px; bottom: 12px; }
.cross { position: absolute; font-size: 14px; line-height: 1; color: var(--ink-2); transform: translate(-50%, -50%); }
.cross--a { left: 25%; top: 16%; } .cross--b { left: 75%; top: 16%; } .cross--c { left: 25%; top: 84%; } .cross--d { left: 75%; top: 84%; }
.readout { position: absolute; right: calc(var(--edge) + 40px); bottom: 16px; font-size: 9px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.hud-card, .hud-panel, .watch { position: absolute; opacity: 0; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.hud-card::before, .hud-panel::before { content: ""; position: absolute; right: -1px; top: -1px; width: 0; height: 2px; background: var(--red); transition: width .3s cubic-bezier(.2,.7,.2,1); }
.hud-card:hover, .hud-panel:hover, .watch:hover, .watch:focus-visible { transform: translateY(-3px); }
.hud-card:hover::before, .hud-panel:hover::before { width: 28px; }

/* symmetric bottom corners: watch (left) / X-ray (right) */
.watch { left: var(--edge); bottom: clamp(26px, 6vh, 60px); width: clamp(180px, 15vw, 240px); padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.watch__hatch { display: block; height: 10px; margin-bottom: 8px; background: repeating-linear-gradient(135deg, var(--ink) 0 2px, transparent 2px 7px); opacity: .55; }
.watch__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.watch__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .3s; filter: saturate(.85); }
.watch:hover .watch__thumb img, .watch:focus-visible .watch__thumb img { transform: scale(1.06); filter: saturate(1); }
.watch__play { position: absolute; right: 0; bottom: 0; width: 38px; height: 38px; background: var(--bg-hi); }
.watch__play::after { content: ""; position: absolute; left: 15px; top: 12px; border-left: 11px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; transition: border-left-color .2s; }
.watch:hover .watch__play::after, .watch:focus-visible .watch__play::after { border-left-color: var(--red); }
.watch__label { display: block; margin-top: 8px; font-size: 10px; font-weight: 500; letter-spacing: .14em; width: 9em; line-height: 1.3; }

.hud-panel { border: 1px solid var(--line); }
@keyframes px-blink { 50% { opacity: .15; } }

/* quiet bottom-right readout, mirrors "Watch presentation" */
.sector { position: absolute; right: calc(var(--edge) + 28px); bottom: clamp(26px, 6vh, 60px); display: grid; gap: 6px; justify-items: end; font-size: 9.5px; letter-spacing: .16em; opacity: 0; pointer-events: none !important; }
.sector__row { display: inline-flex; align-items: center; gap: 8px; }
.sector__dot { width: 6px; height: 6px; background: var(--red); animation: px-blink 1.6s steps(1) infinite; }
.sector__meta { color: var(--ink-3); font-size: 8.5px; }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.eq i { width: 3px; background: var(--ink); height: 40%; }
.eq i:nth-child(2) { height: 80%; } .eq i:nth-child(3) { height: 55%; } .eq i:nth-child(4) { height: 100%; background: var(--red); }
.eq i:nth-child(5) { height: 35%; } .eq i:nth-child(6) { height: 70%; } .eq i:nth-child(7) { height: 50%; }
.is-rest .eq i { animation: eq 1.4s ease-in-out infinite alternate; }
.is-rest .eq i:nth-child(2n) { animation-duration: 1.1s; } .is-rest .eq i:nth-child(3n) { animation-duration: .8s; }
@keyframes eq { to { height: 20%; } }

.edge { position: absolute; right: 14px; top: 0; bottom: 0; width: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; opacity: 0; }
.edge__text { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 9px; letter-spacing: .22em; color: var(--ink-2); }
.edge__barcode { display: block; width: 16px; height: 54px; }
.edge__barcode svg { display: block; width: 100%; height: 100%; }


/* --------------------------------------------------------------------------
   Preloader
   -------------------------------------------------------------------------- */
.preloader { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: var(--gutter); background: radial-gradient(ellipse 70% 60% at 50% 50%, var(--bg-hi), var(--bg) 60%, #cacaca); overflow: hidden; }
.pl-frame { position: relative; padding: 22px 26px 20px; font-size: clamp(10px, .78vw, 13px); line-height: 1.5; letter-spacing: .08em; max-width: 100%; transform-origin: 50% 50%; }
.pl-head { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 12px; font-size: .82em; color: var(--ink-3); }
.pl-line { display: block; min-height: 1.5em; white-space: pre; color: var(--ink-2); }
.pl-line .rest { visibility: hidden; }
.pl-line.is-typing { color: var(--red); }
.pl-line.is-typing .typed::after { content: ""; display: inline-block; width: .62em; height: 1em; margin-left: .08em; vertical-align: -.14em; background: var(--red); animation: px-blink .9s steps(1) infinite; }
.preloader__meter { display: flex; align-items: center; gap: 1.2em; margin-top: 1.4em; }
.preloader__bar { position: relative; flex: 1; height: 3px; background: rgba(17,17,17,.12); overflow: hidden; }
.preloader__bar i { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; }
.preloader__pct { font-variant-numeric: tabular-nums; }
.pl-scan { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(253,31,15,.55); box-shadow: 0 0 12px 2px rgba(253,31,15,.25); animation: pl-scan 2.2s linear infinite; }
@keyframes pl-scan { from { transform: translateY(-10px); } to { transform: translateY(100vh); } }

.flash { position: fixed; inset: 0; z-index: 51; pointer-events: none; background: #fff; opacity: 0; }
.skip, .hint { font-size: 10.5px; letter-spacing: .16em; }
.skip { position: fixed; z-index: 60; right: max(var(--gutter), env(safe-area-inset-right)); bottom: max(var(--gutter), env(safe-area-inset-bottom)); display: inline-flex; gap: .9em; align-items: center; padding: 9px 12px; border: 1px solid var(--line); background: rgba(236,237,239,.75); cursor: pointer; transition: opacity .4s, border-color .2s, color .2s; }
.skip:hover { border-color: var(--red); color: var(--red); }
.skip__key { opacity: .5; }
.skip.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .4s, visibility 0s .4s; }
.hint { position: absolute; z-index: 25; left: 50%; top: calc(var(--vh) - 48px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 9px; color: var(--ink-2); opacity: 0; pointer-events: none; }
.hint__line { width: 1px; height: 22px; background: linear-gradient(var(--red), transparent); }

/* --------------------------------------------------------------------------
   HUD popup (modal)
   -------------------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(214, 214, 214, .72); -webkit-backdrop-filter: blur(8px) grayscale(.4); backdrop-filter: blur(8px) grayscale(.4); }
.modal__box { position: relative; width: min(1120px, 94vw); }
.modal__inner { padding: 12px; background: var(--bg-hi); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.18); }
.modal__box > .corner { width: 18px; height: 18px; border-color: var(--red); }
.modal__box > .corner--tl { left: -7px; top: -7px; border-left-width: 2px; border-top-width: 2px; }
.modal__box > .corner--tr { right: -7px; top: -7px; border-right-width: 2px; border-top-width: 2px; }
.modal__box > .corner--bl { left: -7px; bottom: -7px; border-left-width: 2px; border-bottom-width: 2px; }
.modal__box > .corner--br { right: -7px; bottom: -7px; border-right-width: 2px; border-bottom-width: 2px; }
.modal__bar { display: flex; align-items: center; gap: 16px; padding: 0 2px 10px; font-size: 10.5px; }
.modal__title { font-weight: 500; letter-spacing: .14em; }
.modal__rec { color: var(--red); font-size: 9px; animation: px-blink 1.2s steps(1) infinite; }
.modal__close { margin-left: auto; padding: 6px 10px; border: 1px solid var(--line); background: none; cursor: pointer; letter-spacing: .14em; font-size: 10px; }
.modal__close:hover, .modal__close:focus-visible { color: var(--red); border-color: var(--red); }
.modal__screen { position: relative; aspect-ratio: 16 / 9; max-height: calc(100svh - 150px); width: 100%; background: #000; overflow: hidden; }
.modal__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.modal__scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0 1px, transparent 1px 3px); }
.modal__foot { display: flex; justify-content: space-between; padding: 10px 2px 0; font-size: 9px; color: var(--ink-2); }
.modal__open:hover, .modal__open:focus-visible { color: var(--red); }

/* --------------------------------------------------------------------------
   Phones: panels stack under the scene
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  :root { --edge: 16px; }
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; overflow: visible; }
  .scene { position: relative; height: var(--vh); overflow: hidden; }
  .nav { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 12px 16px 10px; }
  .nav__mark { font-size: 24px; }
  .nav__meta, .dots { display: none; }
  .nav__links { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 6px; font-size: 8.5px; }
  .nav__links a { gap: 0; letter-spacing: .08em; }
  .nav__links a i { display: none; }
  .btn-bracket { font-size: 9.5px; padding: 6px 10px; }
  .edge, .readout, .cross { display: none; }
  .callout { font-size: 9px; }
  .callout__meta { font-size: 7.5px; }
  .hud { position: relative; inset: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px 16px 8px; background: var(--plate-floor); }
  .hud-frame { display: none; }
  .watch { position: relative; left: auto; right: auto; bottom: auto; width: auto; grid-column: 1 / -1; max-width: 420px; justify-self: center; }
  .sector { display: none; }
  .hint { display: none; }
}

/* GSAP failed to load: static final state */
.no-gsap .preloader, .no-gsap .skip, .no-gsap .title-intro, .no-gsap .walk { display: none; }
.no-gsap .stage--plate, .no-gsap .stage--char, .no-gsap #posterLast, .no-gsap .fword, .no-gsap .hl-line, .no-gsap .nav,
.no-gsap .hud-card, .no-gsap .watch, .no-gsap .hud-panel, .no-gsap .edge, .no-gsap .hud-frame, .no-gsap .callout, .no-gsap .sector, .no-gsap [data-reveal] { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .pl-scan, .modal__rec { animation: none !important; }
  .is-rest .eq i, .sector__dot { animation: none !important; }
  .hud-card, .hud-panel, .watch, .watch__thumb img { transition: none; }
}

/* SFX toggle (nav) */
.sfx { display: inline-flex; align-items: center; gap: 8px; padding: 6px 2px; border: 0; background: none; cursor: pointer; font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.sfx__state { color: var(--red); }
.sfx__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.sfx__bars i { display: block; width: 2px; height: 40%; background: var(--red); animation: sfx-eq 1s steps(4) infinite; }
.sfx__bars i:nth-child(2) { animation-delay: -.33s; }
.sfx__bars i:nth-child(3) { animation-delay: -.66s; }
.sfx.is-off .sfx__bars i { animation: none; height: 2px; background: var(--ink-2); }
.sfx.is-off .sfx__state { color: var(--ink-2); }
.sfx:focus-visible { outline: 1px dashed var(--red); outline-offset: 4px; }
@keyframes sfx-eq { 0% { height: 30%; } 25% { height: 100%; } 50% { height: 55%; } 75% { height: 85%; } 100% { height: 30%; } }
@media (max-width: 760px) { .sfx__txt { display: none; } }
@media (prefers-reduced-motion: reduce) { .sfx__bars i { animation: none; } }
.sfx.is-armed .sfx__bars i { animation: none; height: 35%; background: var(--ink-2); }
.sfx.is-armed .sfx__state { animation: px-blink 1.2s steps(1) infinite; }
/* hero melts into the page: no bottom corners on the hero frame */
.hud-frame .corner--bl, .hud-frame .corner--br { display: none; }

/* ---------- skill brief: opens beside a hovered skill (hud.js showBrief) ---------- */
.brief { --o: 1; position: absolute; z-index: 16; top: 50%; width: clamp(230px, 18vw, 300px); padding: 18px 20px 20px; border: 1px solid var(--line); background: rgba(236, 237, 239, .84); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transform: translateY(-50%); opacity: 0; pointer-events: none;
  clip-path: inset(-6px calc((1 - var(--o)) * (50% - 15px)) -6px calc((1 - var(--o)) * (50% - 15px))); }
.brief--left { left: calc(var(--edge) + 6px); }
.brief--right { right: calc(var(--edge) + 40px); }
.brief__br { position: absolute; top: 0; bottom: 0; width: 9px; border: 1px solid var(--ink); opacity: 0; }
.brief__br--l { left: calc((1 - var(--o)) * (50% - 15px)); border-right: 0; }
.brief__br--r { right: calc((1 - var(--o)) * (50% - 15px)); border-left: 0; }
.brief__meta { margin: 0 0 10px; font: 500 9.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.brief__title { margin: 0; font: 400 clamp(26px, 2.3vw, 38px)/.95 var(--display); text-transform: uppercase; color: var(--ink); }
.brief__arch { margin: 6px 0 12px; font: 500 10px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.brief__line { margin: 0 0 12px; font: 400 12px/1.6 var(--mono); color: var(--ink); }
.brief__skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.brief__skills li { padding: 5px 8px; border: 1px solid var(--line); font: 500 9.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.brief__ex { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font: 500 10px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.brief__ex span { color: var(--red); }
@media (max-width: 760px) { .brief { display: none; } }
