/* ==========================================================================
   v8 live layer (round 4): HUD, ⌘K palette, What's new, letter-roll,
   N° labels, wheel work index, founder stamp.
   Techniques studied on carterogunsola.com, rebuilt for TGBS with its own
   data. Nothing on this layer is simulated: clocks, FPS and the news list
   are real.
   ========================================================================== */

/* One typeface sitewide: Inter Tight (tgbs/BRAND.md). The old mono labels and the
   Instrument Serif accents now resolve to it; labels keep their caps/tracking and
   numbers stay tabular so clocks and counters don't jitter. */
:root {
  --v8-mono: "Inter Tight", "Inter", system-ui, sans-serif;
  --v5-mono: var(--v8-mono);
  --font-serif: var(--v8-mono);
  --font-sans: var(--v8-mono);
}
:where(.v8-hud, .v8-no, .v8-mono, .wk-wheel__n, .wk-list__n, .wk-list__y, .v8-pp, .v8-folio__top, .v8-folio__num, time) { font-variant-numeric: tabular-nums; }
.serif, .v7 em, .v5 .serif, .v8 main em, .v8-founder__q p, .v7-sign__s, .v5-doc__sig, .v5-doc__n, .v5-half__k { font-family: var(--v8-display); font-style: normal; font-weight: inherit; letter-spacing: inherit; }

.u-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.v8-mono { font-family: var(--v8-mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* ------------------------------------------------------------------ HUD */
.v8-hud { display: none; margin: 0 0 0 auto; gap: 18px; align-items: center; font-family: var(--v8-mono); font-size: 0.7rem; letter-spacing: 0.04em; white-space: nowrap; }
.v8-hud__i { display: inline-flex; align-items: baseline; gap: 2px; }
.v8-hud i { font-style: normal; opacity: 0.62; }
.v8-hud b { font-weight: 600; font-variant-numeric: tabular-nums; }
.v8-hud__s { margin-left: 6px; opacity: 0.62; }
.v8-hud__s[data-open="true"] { opacity: 1; }
.v8-hud__s[data-open="true"]::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--v8-gold); vertical-align: 1px; animation: v8-blink 2.4s ease-in-out infinite; }
@keyframes v8-blink { 50% { opacity: 0.25; } }
@media (min-width: 1280px) { .v8-hud { display: flex; } .v7-nav { margin-left: 8px; } }
@media (min-width: 1280px) and (max-width: 1439px) { .v8-hud__perf, .v8-hud__s { display: none; } }

/* ---------------------------------------------------------- icon buttons */
.v8-ib { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 46px; height: 46px; padding: 0 12px; border-radius: 99px; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 30%, transparent); background: transparent; color: inherit; cursor: pointer; transition: border-color 0.3s, background 0.3s; }
.v8-ib:hover { border-color: var(--v8-gold); }
.v8-ib svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.v8-ib__k { font-family: var(--v8-mono); font-size: 0.66rem; opacity: 0.7; }
.v8-ib__dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--v8-gold); box-shadow: 0 0 0 2px var(--v8-ink); }
@media (max-width: 1180px) { .v8-ib__k { display: none; } .v8-ib { padding: 0; } }
@media (max-width: 420px) { .v7-hd__cta { gap: 6px; } .v8-ib { min-width: 42px; height: 42px; } }

/* ------------------------------------------------------------ palette */
.v8-cmd { width: min(640px, calc(100vw - 24px)); max-height: min(70vh, 620px); margin: 12vh auto auto; padding: 0; border: 1px solid var(--v8-line2); border-radius: 20px; background: rgba(20, 20, 20, 0.94); color: var(--v8-white); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); overflow: hidden; }
.v8-cmd[open] { animation: v8-pop 0.32s var(--v8-ease); }
@keyframes v8-pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.v8-cmd::backdrop { background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px); }
.v8-cmd__box { display: flex; flex-direction: column; max-height: inherit; }
.v8-cmd__f { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--v8-line); }
.v8-cmd__f svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--v8-gold); stroke-width: 1.8; stroke-linecap: round; }
.v8-cmd__f input { flex: 1; min-width: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 1.08rem; outline: none; }
.v8-cmd__f input::placeholder { color: var(--v8-mute); }
.v8-cmd kbd { font-family: var(--v8-mono); font-size: 0.66rem; padding: 2px 6px; border: 1px solid var(--v8-line2); border-radius: 6px; color: var(--v8-mute); }
.v8-cmd__list { flex: 1; overflow: auto; margin: 0; padding: 8px; list-style: none; overscroll-behavior: contain; }
.v8-cmd__g { padding: 12px 12px 6px; font-family: var(--v8-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--v8-mute); }
.v8-cmd__it { display: grid; grid-template-columns: 44px 1fr; align-items: baseline; column-gap: 8px; padding: 11px 12px; border-radius: 12px; cursor: pointer; }
.v8-cmd__it[aria-selected="true"] { background: rgba(208, 176, 86, 0.14); }
.v8-cmd__it[aria-selected="true"] .v8-cmd__t { color: var(--v8-gold-hi); }
.v8-cmd__n { font-family: var(--v8-mono); font-size: 0.7rem; color: var(--v8-mute); }
.v8-cmd__t { font-weight: 600; }
.v8-cmd__k { grid-column: 2; font-size: 0.82rem; color: var(--v8-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v8-cmd__empty { padding: 22px 14px; color: var(--v8-mute); }
.v8-cmd__ft { display: flex; gap: 18px; margin: 0; padding: 12px 20px; border-top: 1px solid var(--v8-line); font-size: 0.74rem; color: var(--v8-mute); }
.v8-cmd__ft kbd { margin-right: 3px; }
@media (hover: none) { .v8-cmd__ft { display: none; } .v8-cmd { margin-top: 10px; } }

/* --------------------------------------------------------- what's new */
.v8-news { position: absolute; top: calc(100% - 4px); right: var(--p7-gx, 20px); width: min(380px, calc(100vw - 24px)); padding: 8px; border: 1px solid var(--v8-line2); border-radius: 18px; background: rgba(20, 20, 20, 0.96); color: var(--v8-white); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: v8-pop 0.3s var(--v8-ease); }
.v8-news__h { display: flex; justify-content: space-between; margin: 0; padding: 10px 12px 8px; font-family: var(--v8-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--v8-mute); }
.v8-news__h a { color: var(--v8-gold-hi); }
.v8-news__l { margin: 0; padding: 0; list-style: none; max-height: min(60vh, 460px); overflow: auto; }
.v8-news__l a { display: grid; grid-template-columns: 56px 1fr; column-gap: 10px; padding: 11px 12px; border-radius: 12px; color: inherit; text-decoration: none; }
.v8-news__l a:hover, .v8-news__l a:focus-visible { background: rgba(255, 255, 255, 0.06); }
.v8-news__l time { grid-row: span 2; font-family: var(--v8-mono); font-size: 0.68rem; color: var(--v8-mute); padding-top: 3px; }
.v8-news__t { font-weight: 600; }
.v8-news__k { font-size: 0.78rem; color: var(--v8-mute); }
.v8-news__l .is-new .v8-news__t::after { content: "New"; margin-left: 8px; padding: 1px 6px; border-radius: 99px; background: var(--v8-gold); color: var(--v8-ink); font-size: 0.62rem; font-weight: 700; vertical-align: 2px; }

/* ---------------------------------------------------------- letter-roll */
.rl-w { display: inline-flex; overflow: hidden; vertical-align: top; line-height: inherit; }
.rl { position: relative; display: inline-block; transition: transform 0.55s var(--v8-ease); transition-delay: calc(var(--i) * 16ms); }
.rl::after { content: attr(data-c); position: absolute; left: 0; top: 100%; color: var(--v8-gold-hi); }
.rl--sp { white-space: pre; }
:is(a, button):hover .rl, :is(a, button):focus-visible .rl { transform: translateY(-100%); }
.v7-btn--gold .rl::after, .btn--primary .rl::after { color: inherit; }
.v7-nav__a span[data-roll] { transform: none !important; }
.v7-nav__a span[data-roll]::after { content: none; }
.btn__roll { display: inline-block; }

/* ------------------------------------------------------------ N° labels */
.v8-no { display: inline-flex; gap: 6px; font-family: var(--v8-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--v8-gold-hi); }
.v8-no s { text-decoration: none; color: var(--v8-mute); }
.v8-paper .v8-no { color: var(--v8-gold-ink); }

@media (prefers-reduced-motion: reduce) {
  .v8-hud__s[data-open="true"]::before, .v8-cmd[open], .v8-news { animation: none; }
}
@media print { .v8-hud, .v8-ib, .v8-cmd, .v8-news { display: none !important; } }

/* ===================================================== /work/ view switch */
.wk-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wk-views { display: inline-flex; padding: 4px; border: 1px solid var(--v8-line2); border-radius: 99px; }
.wk-views[hidden] { display: none; }
.wk-views__b { min-height: 40px; padding: 0 18px; border: 0; border-radius: 99px; background: none; color: var(--v8-mute); font-family: var(--v8-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: background 0.3s, color 0.3s; }
.wk-views__b:hover { color: var(--v8-white); }
.wk-views__b[aria-pressed="true"] { background: var(--v8-gold); color: var(--v8-ink); }
.wk-views__b[hidden] { display: none; }

/* ------------------------------------------------- wheel + list index */
/* A room of its own: fixed, full screen, no box. Titles are placed by
   js/v8-wheel.js on an arc (wheel) or a column (list); the card on the right
   previews the active case. */
.wk-wheel { position: fixed; inset: 0; z-index: 80; background: radial-gradient(90% 70% at 0% 50%, rgba(208, 176, 86, 0.06), transparent 60%), #0b0b0b; }
.wk-wheel[hidden] { display: none; }
.wk-wheel::before { content: ""; position: absolute; inset: 0 0 auto; height: calc(var(--p7-hd, 76px) + 110px); z-index: 2; pointer-events: none; background: linear-gradient(#0b0b0b 0%, rgba(11,11,11,.8) 50%, transparent); }
.wk-wheel::after { content: ""; position: absolute; inset: auto 0 0; height: 150px; z-index: 2; pointer-events: none; background: linear-gradient(transparent, #0b0b0b 85%); }
.wk-wheel__dial { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.wk-wheel__dial.is-drag { cursor: grabbing; }
.wk-wheel__l { margin: 0; padding: 0; list-style: none; }
.wk-wheel__i { position: absolute; left: 0; top: 0; transform-origin: 0 50%; will-change: transform, opacity; }
.wk-wheel__i a { display: flex; align-items: center; gap: 16px; height: clamp(52px, 8.2vh, 86px); color: rgba(244, 242, 237, 0.5); font-family: var(--v8-display); font-size: clamp(2rem, 1.9vw + 1rem, 3.5rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; text-decoration: none; transition: color 0.35s; -webkit-user-drag: none; outline: none; }
/* The index moves focus to the active row itself; only a keyboard user gets the ring. */
.wk-wheel__i a:focus-visible { outline: 1px solid var(--v8-gold); outline-offset: 6px; border-radius: 4px; }
.wk-wheel__n { display: none; }
.wk-wheel__m { display: inline-flex; align-items: center; gap: 6px; opacity: 0; transform: translateX(-8px); transition: opacity 0.35s, transform 0.45s var(--v8-ease); font-family: var(--v8-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.wk-wheel__m span { padding: 5px 9px; border: 1px solid var(--v8-line2); border-radius: 6px; color: var(--v8-mute); }
.wk-wheel__m i { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--v8-line2); border-radius: 50%; color: var(--v8-gold); }
.wk-wheel__m svg { width: 13px; height: 13px; }
.wk-wheel__i.is-on a { color: var(--v8-white); }
.wk-wheel__i.is-on .wk-wheel__m { opacity: 1; transform: none; }
.wk-wheel__dial:not(.is-moving) .wk-wheel__i:not(.is-on) a:hover { color: rgba(244, 242, 237, 0.85); }
.wk-wheel__hint { position: absolute; right: clamp(20px, 3vw, 44px); bottom: clamp(26px, 3.4vh, 40px); z-index: 3; margin: 0; font-size: 12px; color: var(--v8-mute); pointer-events: none; }

.wk-prev { position: absolute; z-index: 3; right: clamp(20px, 3vw, 44px); top: 50%; width: clamp(280px, 24vw, 380px); margin: 0; padding: 10px; transform: translateY(-50%); border: 1px solid var(--v8-line); border-radius: 12px; background: rgba(20, 20, 20, 0.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.wk-prev__m { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 7px; background: var(--v8-ink3); }
.wk-prev__m img { width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transform: scale(1.05); transition: opacity 0.45s, transform 0.9s var(--v8-ease); }
.wk-prev__m.is-art img { object-position: center; }
.wk-prev__m.is-in img { opacity: 1; transform: none; }
.wk-prev figcaption { display: grid; gap: 8px; padding: 14px 6px 6px; }
.wk-prev .v8-no { margin: 0; font-size: 11px; }
.wk-prev__t { display: flex; flex-wrap: wrap; margin: 0; overflow: hidden; font-family: var(--v8-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.wk-prev__t span { display: inline-block; white-space: pre; animation: wk-roll 0.55s var(--v8-ease) both; animation-delay: calc(var(--i) * 12ms); }
@keyframes wk-roll { from { transform: translateY(105%); opacity: 0; } }
.wk-prev__m2 { display: flex; gap: 14px; margin: 0; font-size: 11px; color: var(--v8-mute); }
.wk-prev__s { margin: 0; font-size: 0.86rem; line-height: 1.45; color: rgba(244, 242, 237, 0.7); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wk-prev .v7-btn { justify-self: start; margin-top: 4px; }

/* ------------------------------------------------------------------ list */
.wk-list { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--v8-line); }
.wk-list[hidden] { display: none; }
.wk-list li[hidden] { display: none; }
.wk-list__a { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 220px) 56px 28px; align-items: baseline; gap: 16px; padding: 20px 4px; border-bottom: 1px solid var(--v8-line); color: inherit; text-decoration: none; transition: background 0.3s; }
/* Hover slides the row's contents, not its box, so the hit area never moves under the pointer. */
.wk-list__a > * { transition: transform 0.4s var(--v8-ease); }
.wk-list__a:hover { background: rgba(255, 255, 255, 0.03); }
.wk-list__a:hover > * { transform: translateX(10px); }
.wk-list__n, .wk-list__y { color: var(--v8-mute); }
.wk-list__t { font-family: var(--v8-display); font-size: clamp(1.15rem, 0.9rem + 0.9vw, 1.7rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.wk-list__a:hover .wk-list__t { color: var(--v8-gold-hi); }
.wk-list__c { color: rgba(244, 242, 237, 0.72); font-size: 0.9rem; }
.wk-list__go svg { width: 18px; height: 18px; color: var(--v8-gold); transition: transform 0.4s var(--v8-ease); }
.wk-list__a:hover .wk-list__go svg { transform: translate(3px, -3px); }
@media (max-width: 760px) {
  .wk-list__a { grid-template-columns: 48px minmax(0, 1fr) 20px; row-gap: 4px; padding: 16px 0; }
  .wk-list__c { grid-column: 2; grid-row: 2; font-size: 0.82rem; }
  .wk-list__y { grid-column: 1; grid-row: 2; font-size: 0.66rem; }
  .wk-list__go { grid-column: 3; grid-row: 1; }
}
body[data-work-view="list"] #work-grid, body[data-work-view="wheel"] #work-grid { display: none; }
/* v7 nav styles every nested span; keep the rolled letters inline. */
/* v7's `.v7-nav__a:hover span { translateY(-100%) }` also lifts the wrapper out of the
   clipped link, so the word vanished on hover. Only the letters may move. */
.v7-nav__a .rl-w, .v7-nav__a:hover .rl-w, .v7-nav__a:focus-visible .rl-w { display: inline-flex; transform: none !important; }
.v7-nav__a .rl-w::after { content: none; }
.v7-nav__a .rl { display: inline-block; transition: transform 0.55s var(--v8-ease); transition-delay: calc(var(--i) * 16ms); }
.v7-nav__a .rl::after { content: attr(data-c); color: var(--v8-gold-hi); }

/* Founder figure + spec sheet (/portfolio/). The cut-out portrait stands
   on the page with no frame; its foot fades into the page colour. Under the
   pointer, js/v8-ink.js pours ink that shows the machine portrait inside it.
   No WebGL or reduced motion: the button (and hover) crossfades instead. */
.v8-stamp { margin: 0; display: grid; gap: 1.2rem; max-width: 560px; justify-self: end; width: 100%; }
@media (max-width: 940px) { .v8-stamp { justify-self: start; max-width: 460px; } }
/* The headline centres on the portrait itself, not portrait + spec sheet:
   the figure spans two rows of the hero grid and lends them to its own
   stage and caption (subgrid), so text, photo and spec share one system. */
@media (min-width: 941px) {
  .v8-founder { grid-template-rows: auto auto; align-items: start; row-gap: 0; }
  .v8-founder > .pagehead__inner { grid-row: 1; align-self: center; }
  .v8-founder > .v8-stamp { grid-row: 1 / span 2; grid-template-rows: subgrid; row-gap: 1.2rem; }
}
.v8-ink__stage { position: relative; aspect-ratio: 1;
  --v8-fade-x: linear-gradient(to right, transparent 0%, #000 17%, #000 83%, transparent 100%);
  --v8-fade-y: linear-gradient(to bottom, #000 66%, transparent 97%);
  -webkit-mask-image: var(--v8-fade-x), var(--v8-fade-y); -webkit-mask-composite: source-in;
  mask-image: var(--v8-fade-x), var(--v8-fade-y); mask-composite: intersect; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.v8-ink__stage picture, .v8-ink__stage img, .v8-ink__cv { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
/* Side and bottom fades dissolve the jacket's straight edges into the page; the matte itself is choked and edge-darkened in the source PNGs. */
.v8-ink__stage picture img { position: static; }
.v8-ink__cv { pointer-events: none; }
.v8-ink__alt { opacity: 0; transition: opacity .7s var(--v8-ease); pointer-events: none; }
.v8-ink.is-alt .v8-ink__alt { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .v8-ink:not(.is-gl) .v8-ink__stage:hover .v8-ink__alt { opacity: 1; } }
.v8-ink.is-gl .v8-ink__alt { display: none; }
.v8-ink__btn { justify-self: start; margin: 0 0 .5rem; padding: .5em .9em; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--v8-white); background: rgba(11, 11, 11, .62); border: 1px solid color-mix(in srgb, var(--v8-gold) 55%, transparent); border-radius: 999px;
  cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .3s ease, color .3s ease; }
.v8-ink__btn:hover, .v8-ink__btn[aria-pressed="true"] { border-color: var(--v8-gold); color: var(--v8-gold-hi, var(--v8-gold)); }
.v8-ink__btn:focus-visible { outline: 2px solid var(--v8-gold); outline-offset: 3px; }
.v8-spec { display: grid; font-size: .78rem; line-height: 1.7; color: var(--v8-white); }
.v8-spec p { margin: 0; }
.v8-spec i { font-style: normal; color: var(--v8-mute); margin-right: .4em; }


/* Header wordmark: keep "The Golden Brain Services" on one line; when the
   HUD needs the room, show the TGBS mark only. */
.v7-hd .v7-brand { flex-shrink: 0; }
.v7-hd .v7-brand__t span { white-space: nowrap; }
@media (min-width: 1280px) and (max-width: 1799px) { .v7-hd .v7-brand__t span { display: none; } }

/* ---------- /portfolio/ studio: paper posters (js/v8-posters.js) ---------- */
.v8-pp__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; letter-spacing: .02em; }
.v8-pp__list li { border-bottom: 1px solid rgba(255,255,255,.12); }
.v8-pp__list a { display: grid; grid-template-columns: 4.2em 1fr auto 3.4em; gap: 14px; align-items: baseline; padding: 13px 4px; color: var(--v8-mute); text-decoration: none; transition: color .35s var(--v8-ease), background-color .35s var(--v8-ease); }
.v8-pp__list a:hover, .v8-pp__list a:focus-visible, .v8-pp__list li.is-on a { color: var(--v8-white); }
.v8-pp__list li.is-on .v8-pp__n { color: var(--v8-gold); }
.v8-pp__t { color: inherit; font-weight: 600; }
.v8-pp__k { text-transform: uppercase; font-size: 11px; letter-spacing: .1em; }
.v8-pp__y { text-align: right; }
.v8-pp__ft { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; }
.v8-pp__count { color: var(--v8-mute); font-size: 13px; }
.v8-pp__count b { color: var(--v8-gold); font-weight: 600; }
.v8-pp:not(.is-gl) .v8-pp__count { display: none; }

/* Flat: swipe row of printed posters under the list */
.v8-pp.is-flat .v8-pp__stage { margin-top: 28px; }
.v8-pp__row { display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 300px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 2px 22px; scrollbar-width: none; overscroll-behavior-x: contain; }
.v8-pp__row::-webkit-scrollbar { display: none; }
.v8-pp__card { display: block; scroll-snap-align: start; transform: rotate(var(--tilt, 0deg)); transition: transform .5s var(--v8-ease); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.v8-pp__card:hover { transform: rotate(0deg) translateY(-6px); }
.v8-pp__card canvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; background: #1a1a1a; }
@media (prefers-reduced-motion: reduce) { .v8-pp__card, .v8-pp__card:hover { transform: none; transition: none; } }

/* WebGL: pinned strip, list rolls beside it */
@media (min-width: 900px) {
  .v8-pp.is-gl { height: calc(100vh + var(--pp-n) * 34vh); padding-bottom: 0; }
  .v8-pp.is-gl .v8-pp__stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-content: center; padding-top: 64px; box-sizing: border-box; overflow: hidden; }
  .v8-pp.is-gl .section-head { margin-bottom: clamp(12px, 2vh, 28px); }
  .v8-pp.is-gl .section-head .lead { display: none; }
  .v8-pp.is-gl .v8-pp__body { display: grid; grid-template-columns: minmax(300px, 4.2fr) 7.8fr; gap: clamp(20px, 3vw, 48px); align-items: center; }
  .v8-pp.is-gl .v8-pp__list { --row: 46px; height: calc(var(--row) * 7); overflow: hidden; border-top: 0; mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
  .v8-pp.is-gl .v8-pp__list li { height: var(--row); transform: translateY(calc((3 - var(--pp-a, 0)) * var(--row))); transition: transform .6s var(--v8-ease); }
  .v8-pp.is-gl .v8-pp__list a { height: 100%; padding: 0 4px; align-items: center; }
  .v8-pp.is-gl .v8-pp__stage { position: relative; height: min(64vh, 620px); }
}
.v8-pp:not(.is-gl) .v8-pp__gl, .v8-pp.is-gl .v8-pp__row { display: none; }
.v8-pp__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 599px) {
  .v8-pp__list a { grid-template-columns: 3.6em 1fr 3em; gap: 10px; }
  .v8-pp__k { display: none; }
}

/* ---------- /portfolio/ about: paper folio (js/v8-folio.js) ---------- */
.v8-folio__pad { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.v8-folio__sheet { position: relative; display: flex; flex-direction: column; min-height: 420px; padding: 26px 28px 22px; border-radius: 18px; background: var(--v8-paper) linear-gradient(160deg, rgba(255,255,255,.55), rgba(255,255,255,0) 40%, rgba(0,0,0,.035)); color: var(--v8-ink); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 24px 50px rgba(0,0,0,.45); }
.v8-folio__sheet::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .35; background-image: radial-gradient(rgba(0,0,0,.08) .6px, transparent .7px); background-size: 3px 3px; mix-blend-mode: multiply; }
.v8-folio__top, .v8-folio__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(11,11,11,.62); }
.v8-folio__top { padding-bottom: 12px; border-bottom: 1px solid rgba(11,11,11,.14); }
.v8-folio__num { display: block; margin: 18px 0 6px auto; font-family: var(--v8-display); font-weight: 700; font-size: clamp(96px, 10vw, 160px); line-height: .8; letter-spacing: -.06em; padding-right: .04em; color: var(--v8-ink); }
.v8-folio__sheet:nth-child(3n+2) .v8-folio__num { color: var(--v8-gold-ink); }
.v8-folio .v8-folio__sheet .v8-folio__title { margin: 8px 0 10px; font-family: var(--v8-display); font-size: clamp(22px, 2vw, 28px); line-height: 1.1; letter-spacing: -.02em; color: var(--v8-ink); }
.v8-folio__text { margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: rgba(11,11,11,.78); max-width: 52ch; }
.v8-folio__foot { margin-top: auto; }
.v8-folio__chip { padding: 4px 10px; border: 1px solid rgba(11,11,11,.3); border-radius: 999px; }
.v8-folio__hint { margin-top: 18px; color: var(--v8-mute); font-size: 12px; letter-spacing: .04em; }

/* Live: sheets stack into a pad and turn over from the left edge */
.v8-folio.is-live { perspective: 1800px; }
.v8-folio.is-live .v8-folio__pad { display: grid; gap: 0; padding-right: 30px; /* room for the stacked sheets' offset */ touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.v8-folio.is-live .v8-folio__pad.is-drag { cursor: grabbing; }
.v8-folio.is-live .v8-folio__sheet { grid-area: 1 / 1; transform-origin: 0 50%; transform-style: preserve-3d; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  --d: calc(var(--i) - var(--cur, 0)); /* depth below the open sheet */
  z-index: calc(20 - var(--i));
  transform: translate3d(calc(clamp(0, var(--d), 3) * 9px), calc(clamp(0, var(--d), 3) * 5px), 0) rotate(calc(clamp(0, var(--d), 3) * 1.1deg));
  transition: transform .9s var(--v8-ease), opacity .6s var(--v8-ease), box-shadow .9s var(--v8-ease); }
.v8-folio.is-live .v8-folio__sheet.is-turned { transform: rotateY(-172deg) translateZ(1px); opacity: 0; pointer-events: none; transition: transform .9s var(--v8-ease), opacity .3s .5s linear; }
.v8-folio.is-live .v8-folio__sheet.is-open { transition-duration: .9s; }
.v8-folio.is-live .v8-folio__pad.is-drag .v8-folio__sheet.is-open { transition: none; transform: rotateY(calc(var(--turn, 0) * -150deg)); }
/* sheen that sweeps the page as it lifts */
.v8-folio.is-live .v8-folio__sheet::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; opacity: calc(var(--turn, 0) * 1.4); background: linear-gradient(90deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.16) 70%, rgba(255,255,255,.35) 96%); }
.v8-folio__ctrl { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.v8-folio__ctrl[hidden] { display: none; }
.v8-folio__btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: var(--v8-white); cursor: pointer; transition: border-color .3s, background-color .3s, opacity .3s; }
.v8-folio__btn:hover, .v8-folio__btn:focus-visible { border-color: var(--v8-gold); background: rgba(208,176,86,.1); }
.v8-folio__btn[disabled] { opacity: .35; cursor: default; }
.v8-folio__btn[data-folio-prev] svg { transform: scaleX(-1); }
.v8-folio__count { color: var(--v8-mute); font-size: 13px; }
.v8-folio__count b { color: var(--v8-gold); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .v8-folio.is-live .v8-folio__sheet { transform: none !important; transition: opacity .2s linear; }
  .v8-folio.is-live .v8-folio__sheet:not(.is-open) { opacity: 0; }
}
@media (max-width: 599px) {
  .v8-folio__sheet { min-height: 380px; padding: 20px 20px 18px; }
  .v8-folio__text { font-size: 14.5px; }
}

/* ==========================================================================
   Round 6 — trust hero: live-site showcase (js/v8-hero.js)
   ========================================================================== */
.v8-hero--trust .v8-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4.5vw, 80px); min-height: calc(100svh - var(--p7-hd) - 190px); }
.v8-h1--hero { font-size: clamp(2.8rem, 1rem + 5.2vw, 6.6rem); line-height: 0.92; }
.v8-hero--trust .v8-hero__lead { margin-top: 26px; max-width: 48ch; }
.v8-hero--trust .v8-hero__cta { margin-top: 30px; }
.v8-promise { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; padding: 0; list-style: none; font-size: 0.9rem; color: var(--v8-white); }
.v8-promise li { display: inline-flex; align-items: center; gap: 8px; }
.v8-promise svg { width: 16px; height: 16px; flex: none; padding: 2px; border-radius: 50%; background: rgba(208, 176, 86, 0.16); color: var(--v8-gold); stroke-width: 2.6; }

.v8-show { position: relative; margin: 0; }
.v8-show::before { content: ""; position: absolute; inset: 8% -6% -6% 10%; border-radius: 28px; background: radial-gradient(closest-side, rgba(208, 176, 86, 0.18), transparent 70%); filter: blur(30px); pointer-events: none; }
.v8-show__win { position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 16px; background: #151515; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.4); }
.v8-show__bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: #1b1b1b; font-size: 0.76rem; color: var(--v8-mute); }
.v8-show__dots { display: flex; gap: 6px; }
.v8-show__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.v8-show__url { justify-self: center; display: inline-flex; align-items: center; gap: 7px; min-width: min(60%, 320px); max-width: 100%; overflow: hidden; white-space: nowrap; justify-content: center; padding: 5px 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); color: var(--v8-white); letter-spacing: 0.01em; }
.v8-show__url svg { flex: none; width: 13px; height: 13px; color: var(--v8-gold); }
.v8-show__url > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 599px) { .v8-show__bar { gap: 10px; padding: 0 10px; } .v8-show__dots { display: none; } .v8-show__url { min-width: 0; justify-self: stretch; padding: 5px 10px; } .v8-show__live { letter-spacing: 0.08em; } }
.v8-show__live { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.66rem; color: #8fd49a; }
.v8-show__live i { width: 7px; height: 7px; border-radius: 50%; background: #5ac46b; box-shadow: 0 0 0 0 rgba(90, 196, 107, 0.6); animation: v8-ping 2s ease-out infinite; }
@keyframes v8-ping { 70% { box-shadow: 0 0 0 7px rgba(90, 196, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(90, 196, 107, 0); } }
.v8-show__stage { position: relative; aspect-ratio: 16 / 10; background: #111; }
.v8-show__slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; }
.v8-show__slide.is-on, .v8-show__slide.is-off { visibility: visible; }
.v8-show__slide.is-on { opacity: 1; z-index: 2; }
.v8-show__slide picture, .v8-show__slide img { display: block; width: 100%; height: 100%; }
.v8-show__slide img { object-fit: cover; object-position: top center; }
.v8-show.is-live .v8-show__slide.is-on { animation: v8-show-in 0.9s var(--v8-ease) both; }
.v8-show.is-live .v8-show__slide.is-on img { animation: v8-show-pan 9s linear both; }
.v8-show.is-live .v8-show__slide.is-off { z-index: 1; opacity: 1; }
@keyframes v8-show-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes v8-show-pan { from { transform: scale(1.06); object-position: top center; } to { transform: scale(1); object-position: 50% 18%; } }
.v8-show__slide:focus-visible { outline: 2px solid var(--v8-gold); outline-offset: -4px; }

.v8-show__cap { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px 20px; margin-top: 18px; }
.v8-show__now { display: grid; gap: 4px; min-width: 0; }
.v8-show__n { font-size: 0.74rem; letter-spacing: 0.14em; color: var(--v8-mute); font-variant-numeric: tabular-nums; }
.v8-show__n b { color: var(--v8-gold); font-weight: 600; }
.v8-show__t { font-family: var(--v8-display); font-size: clamp(1.15rem, 0.9rem + 0.7vw, 1.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--v8-white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v8-show__k { font-size: 0.84rem; color: var(--v8-mute); }
.v8-show__visit { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 1px solid var(--v8-line2, rgba(255,255,255,.22)); border-radius: 99px; font-size: 0.85rem; color: var(--v8-white); white-space: nowrap; transition: border-color 0.3s, color 0.3s; }
.v8-show__visit:hover { border-color: var(--v8-gold); color: var(--v8-gold-hi); }
.v8-show__visit svg { width: 14px; height: 14px; }
.v8-show__segs { grid-column: 1 / -1; display: flex; gap: 6px; }
.v8-show__segs button { flex: 1; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.v8-show__segs i { display: block; position: relative; height: 2px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, 0.16); transition: background 0.3s; }
.v8-show__segs button:hover i { background: rgba(255, 255, 255, 0.36); }
.v8-show__segs button[aria-current] i { background: rgba(208, 176, 86, 0.35); }
.v8-show__segs button[aria-current] i::after { content: ""; position: absolute; inset: 0; background: var(--v8-gold); transform-origin: left; }
.v8-show.is-run .v8-show__segs button[aria-current] i::after { animation: v8-seg var(--dwell, 5s) linear both; }
@keyframes v8-seg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.v8-show__segs button:focus-visible { outline: 2px solid var(--v8-gold); outline-offset: 2px; border-radius: 3px; }

.v8-hero--trust .v8-figs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.v8-hero--trust .v8-figs__ig a { color: var(--v8-white); }
.v8-hero__sig { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0 26px; border-top: 1px solid var(--v8-line); font-size: 0.86rem; color: var(--v8-mute); }
.v8-hero__sig span { font-family: var(--v8-display); font-weight: 600; letter-spacing: -0.01em; }
.v8-hero__sig a { display: inline-flex; align-items: center; gap: 6px; color: var(--v8-white); }
.v8-hero__sig svg { width: 14px; height: 14px; color: var(--v8-gold); }

@media (max-width: 899px) {
  .v8-hero--trust .v8-hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 30px; }
  .v8-h1--hero { font-size: clamp(2.5rem, 11vw, 4.2rem); }
  .v8-promise { flex-direction: column; gap: 10px; font-size: 0.92rem; }
  .v8-show__cap { grid-template-columns: 1fr; }
  .v8-show__visit { justify-self: start; }
  .v8-hero--trust .v8-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v8-hero__sig { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .v8-show.is-live .v8-show__slide.is-on, .v8-show.is-live .v8-show__slide.is-on img { animation: none; }
  .v8-show__slide { transition: opacity 0.3s; }
  .v8-show__live i { animation: none; }
}

/* ==========================================================================
   Round 6 — /portfolio/ fly-through (js/v8-fly.js)
   Static (no JS / reduced motion): intro, then the pieces as a grid.
   .is-live: a tall section with a sticky stage; the pieces hang in depth.
   ========================================================================== */
.v8-fly { position: relative; color: var(--v8-white); background: var(--v8-ink); }
.v8-fly__stage { position: relative; padding: calc(var(--p7-hd, 72px) + 20px) clamp(16px, 4vw, 48px) 48px; }
.v8-fly__top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; font-size: 13px; line-height: 1.45; color: var(--v8-mute); }
.v8-fly__top p, .v8-fly__top nav { margin: 0; display: grid; gap: 2px; }
.v8-fly__top i { font-style: normal; color: var(--v8-mute); }
.v8-fly__top span { color: var(--v8-white); }
.v8-fly__top a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--v8-ease); }
.v8-fly__top a:hover { background-size: 100% 1px; }
.v8-fly__top b { font-weight: 500; color: var(--v8-gold); font-variant-numeric: tabular-nums; }

.v8-fly__hero { display: grid; gap: 22px; padding: clamp(48px, 10vh, 120px) 0 24px; }
.v8-fly__lead { max-width: 34ch; margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.45; color: var(--v8-white); }
.v8-fly__hint { color: var(--v8-mute); }
.v8-fly__me { display: flex; align-items: flex-end; gap: clamp(14px, 1.6vw, 22px); }
.v8-fly__face { flex: none; width: 128px; height: 128px; object-fit: cover; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 18px 40px -18px rgba(0,0,0,.8); }
@media (max-width: 760px) { .v8-fly__face { width: 84px; height: 84px; border-radius: 12px; } .v8-fly__me { align-items: flex-start; } }
.v8-fly__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.v8-fly__pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--v8-white); border-radius: 999px; background: var(--v8-white); color: var(--v8-ink); font: 600 0.9rem/1 var(--v8-display); text-decoration: none; cursor: pointer; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.v8-fly__pill:hover { background: var(--v8-gold); border-color: var(--v8-gold); }
.v8-fly__pill--line { background: transparent; color: var(--v8-white); border-color: var(--v8-line2, rgba(255,255,255,.25)); }
.v8-fly__pill--line:hover { background: transparent; color: var(--v8-gold); border-color: var(--v8-gold); }
.v8-fly__pill--sm { min-height: 36px; padding: 0 14px; font-size: 0.82rem; }
.v8-fly__pill svg { width: 15px; height: 15px; }
.v8-fly__pill:focus-visible { outline: 2px solid var(--v8-gold); outline-offset: 3px; }
.v8-fly__name { margin: 0; font: 800 clamp(4rem, 14.5vw, 15rem)/0.86 var(--v8-display); letter-spacing: -0.065em; white-space: nowrap; }
.v8-fly__name b { color: var(--v8-gold); }

.v8-fly__field { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.v8-fly__card { display: grid; gap: 10px; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.v8-fly__card picture, .v8-fly__card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; background: #151515; }
.v8-fly__card.is-ui picture, .v8-fly__card.is-ui img { aspect-ratio: 16 / 10; object-position: top; }
.v8-fly__cap { display: flex; gap: 10px; font-size: 13px; color: var(--v8-white); }
.v8-fly__cap b { font-weight: 500; color: var(--v8-gold); font-variant-numeric: tabular-nums; }
.v8-fly__card:focus-visible { outline: 2px solid var(--v8-gold); outline-offset: 4px; border-radius: 8px; }
.v8-fly__bar { display: none; }

/* ---- live flight ---- */
.v8-fly.is-live { height: calc(100svh + var(--fly-n) * 55vh); }
.v8-fly.is-live .v8-fly__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; padding-bottom: 0; perspective: 1100px; perspective-origin: 50% 46%; }
.v8-fly.is-live .v8-fly__top { position: relative; z-index: 4; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v8-fly.is-live .v8-fly__hero { position: absolute; z-index: 3; left: clamp(16px, 4vw, 48px); right: clamp(16px, 4vw, 48px); bottom: 28px; padding: 0; will-change: opacity, transform; pointer-events: none; }
.v8-fly.is-live .v8-fly__hero a { pointer-events: auto; }
.v8-fly.is-live .v8-fly__field { position: absolute; inset: 0; z-index: 2; margin: 0; display: block; transform-style: preserve-3d; }
.v8-fly.is-live .v8-fly__it { position: absolute; left: 50%; top: 48%; width: min(28vw, 420px); margin-left: calc(min(28vw, 420px) / -2); transform-style: preserve-3d; will-change: transform, opacity; }
.v8-fly.is-live .v8-fly__it > .v8-fly__card { translate: 0 -50%; }
.v8-fly.is-live .v8-fly__it.is-ui, .v8-fly.is-live .v8-fly__it:has(.is-ui) { width: min(38vw, 580px); margin-left: calc(min(38vw, 580px) / -2); }
.v8-fly.is-live .v8-fly__card img { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); transition: filter 0.5s; filter: saturate(0.85) brightness(0.86); }
.v8-fly.is-live .v8-fly__it.is-on .v8-fly__card img { filter: none; }
.v8-fly.is-live .v8-fly__cap { opacity: 0; transition: opacity 0.4s; }
.v8-fly.is-live .v8-fly__it.is-on .v8-fly__cap { opacity: 1; }
.v8-fly.is-live.is-intro .v8-fly__bar { opacity: 0; transform: translateY(12px); }
.v8-fly.is-live .v8-fly__bar { position: absolute; z-index: 4; left: clamp(16px, 4vw, 48px); right: clamp(16px, 4vw, 48px); bottom: 24px; display: flex; justify-content: space-between; align-items: end; gap: 20px; transition: opacity 0.5s, transform 0.5s var(--v8-ease); pointer-events: none; }
.v8-fly__bar p { margin: 0; display: flex; align-items: end; gap: 14px; }
.v8-fly__bar a { pointer-events: auto; }
.v8-fly__now b { font: 800 clamp(2.4rem, 5vw, 4.4rem)/0.8 var(--v8-display); letter-spacing: -0.05em; color: var(--v8-gold); font-variant-numeric: tabular-nums; }
.v8-fly__now > span { display: grid; gap: 2px; font: 600 1rem/1.2 var(--v8-display); }
.v8-fly__now small { font: 400 13px/1.3 var(--v8-display); color: var(--v8-mute); }
.v8-fly__count { font-size: 13px; color: var(--v8-mute); }
.v8-fly__count b { color: var(--v8-white); font-weight: 600; }

/* ---- side panel ---- */
.v8-fly__panel { position: fixed; z-index: 60; top: 0; left: 0; bottom: 0; width: min(520px, 100%); overflow-y: auto; padding: calc(var(--p7-hd, 72px) + 16px) 28px 32px; display: grid; align-content: start; gap: 14px; background: rgba(14, 14, 14, 0.82); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2); border-right: 1px solid var(--v8-line); transform: translateX(-102%); transition: transform 0.45s var(--v8-ease); outline: none; }
.v8-fly__panel.is-open { transform: none; }
.v8-fly__pbar { display: flex; gap: 8px; }
.v8-fly__pk { margin: 6px 0 0; font-size: 13px; color: var(--v8-gold); }
.v8-fly__pt { margin: 0; font: 700 clamp(1.8rem, 3vw, 2.6rem)/1 var(--v8-display); letter-spacing: -0.03em; }
.v8-fly__pm img { display: block; width: 100%; height: auto; max-height: 52vh; object-fit: contain; border-radius: 6px; background: #151515; }
.v8-fly__pd { margin: 0; color: #cfccc4; line-height: 1.55; }
.v8-fly__pcta { display: flex; flex-wrap: wrap; gap: 8px; }
.v8-fly__status { min-height: 1.2em; margin: 0; font-size: 13px; color: var(--v8-mute); }
.v8-fly.is-panel .v8-fly__field { filter: blur(3px) brightness(0.6); transition: filter 0.4s; }

@media (max-width: 899px) {
  .v8-fly__top { grid-template-columns: 1fr 1fr; }
  .v8-fly__top nav { display: none; }
  .v8-fly.is-live .v8-fly__top { grid-template-columns: 1fr 1fr; }
  .v8-fly.is-live { height: calc(100svh + var(--fly-n) * 48vh); }
  .v8-fly.is-live .v8-fly__it, .v8-fly.is-live .v8-fly__it:has(.is-ui) { width: 68vw; margin-left: -34vw; }
  .v8-fly.is-live .v8-fly__count .v8-fly__pill { display: none; }
  .v8-fly__now b { font-size: 2.2rem; }
  .v8-fly__panel { width: 100%; padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .v8-fly__panel { transition: none; }
}

/* ==========================================================================
   Round 6 — /work/ endless field (js/v8-lab.js)
   ========================================================================== */
.wk-lab { position: relative; margin-top: 28px; }
.wk-lab__f { position: relative; height: min(78svh, 760px); overflow: hidden; border: 1px solid var(--v8-line); border-radius: 14px; background: radial-gradient(120% 90% at 50% 45%, #141414 0%, #0b0b0b 70%); perspective: 1300px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; }
.wk-lab__f:focus-visible { box-shadow: 0 0 0 2px var(--v8-gold); }
.wk-lab.is-drag .wk-lab__f { cursor: grabbing; }
.wk-lab__f::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(75% 70% at 50% 50%, transparent 55%, rgba(11, 11, 11, 0.85) 100%); }
.wk-lab__c { position: absolute; left: 0; top: 0; width: 320px; display: grid; gap: 10px; color: var(--v8-white); text-decoration: none; transform-origin: 50% 50%; will-change: transform; backface-visibility: hidden; }
.wk-lab__m { display: block; overflow: hidden; border-radius: 6px; background: #171717; aspect-ratio: 4 / 3; outline: 1px solid rgba(255, 255, 255, 0.06); transition: outline-color 0.35s; }
.wk-lab__m img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.55) brightness(0.72); transition: filter 0.45s var(--v8-ease); pointer-events: none; }
.wk-lab__c.is-ui .wk-lab__m img { object-position: top; }
.wk-lab__cap { display: flex; align-items: baseline; gap: 10px; min-width: 0; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--v8-mute); transition: color 0.35s; }
.wk-lab__cap b { font-weight: 500; color: var(--v8-gold); font-variant-numeric: tabular-nums; }
.wk-lab__cap span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-lab__cap small { margin-left: auto; flex: none; font-size: 11px; letter-spacing: 0.04em; text-transform: none; opacity: 0; transition: opacity 0.35s; }
/* Hover only counts once the field is still: cards glide under a resting pointer,
   and reacting to every pass made the wall flicker. */
.wk-lab__c.is-active .wk-lab__m img, .wk-lab:not(.is-moving) .wk-lab__c:hover .wk-lab__m img { filter: none; }
.wk-lab__c.is-active .wk-lab__m { outline-color: var(--v8-gold); }
.wk-lab__c.is-active .wk-lab__cap, .wk-lab:not(.is-moving) .wk-lab__c:hover .wk-lab__cap { color: var(--v8-white); }
.wk-lab__c.is-active small { opacity: 1; color: var(--v8-mute); }
.wk-lab__hud { position: absolute; left: 20px; bottom: 18px; z-index: 2; display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 10px 14px; border: 1px solid var(--v8-line); border-radius: 999px; background: rgba(11, 11, 11, 0.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 13px; pointer-events: none; }
.wk-lab__hud b { color: var(--v8-gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.wk-lab__hud s { text-decoration: none; color: var(--v8-mute); font-variant-numeric: tabular-nums; }
.wk-lab__hud span { font-weight: 600; color: var(--v8-white); }
.wk-lab__hud small { font-size: 12px; color: var(--v8-mute); }
.wk-lab__hint { position: absolute; right: 20px; bottom: 26px; z-index: 2; margin: 0; font-size: 12px; color: var(--v8-mute); pointer-events: none; }

/* Grid field, full screen (wide + fine pointer): the field is the page. The
   filters and view switch float over it under the header. */
html.wk-full, html.wk-full body { overflow: hidden; overscroll-behavior: none; }
html.wk-full .wk-lab { position: fixed; inset: 0; z-index: 80; margin: 0; background: #0b0b0b; }
html.wk-full .wk-lab__f { height: 100vh; height: 100svh; border: 0; border-radius: 0; }
html.wk-full .wk-lab__f:focus-visible { box-shadow: inset 0 0 0 2px var(--v8-gold); }
html.wk-full .wk-lab::before { content: ""; position: absolute; inset: 0 0 auto; height: calc(var(--p7-hd, 76px) + 120px); z-index: 1; pointer-events: none; background: linear-gradient(#0b0b0b 0%, rgba(11,11,11,.75) 55%, transparent); }
html.wk-full .wk-lab__hud { left: clamp(20px, 3vw, 44px); bottom: clamp(18px, 3vh, 32px); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: rgba(11,11,11,.62); }
html.wk-full .wk-lab__hint { right: clamp(20px, 3vw, 44px); bottom: clamp(26px, 3.4vh, 40px); }
html.wk-full .wk-ctl { position: fixed; z-index: 85; left: 0; right: 0; top: calc(var(--p7-hd, 76px) + 10px); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(20px, 3vw, 44px); pointer-events: none; }
html.wk-full .wk-ctl > * { pointer-events: auto; margin: 0; }
html.wk-full .wk-ctl .chips { flex-wrap: nowrap; min-width: 0; overflow-x: auto; scrollbar-width: none; }
html.wk-full .wk-ctl .chips::-webkit-scrollbar { display: none; }
html.wk-full .wk-ctl .chip { flex: none; background-color: rgba(11,11,11,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
html.wk-full .wk-ctl .chip[aria-selected="true"] { background: var(--gold-metal, var(--v8-gold)); }
html.wk-full .wk-bar { position: fixed; left: 50%; bottom: clamp(18px, 3vh, 30px); transform: translateX(-50%); }
html.wk-full .wk-bar__n { display: none; }
html.wk-full .wk-views { background: rgba(11,11,11,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* ------------------------------------------- portfolio: aligned tiles */
/* Website screenshots come in several shapes; letterboxing them left each
   one a different size in its frame. Every screen now fills the same
   inset frame, cropped from the top, so rows line up edge to edge. */
.pf-tile--ui > picture { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 6px; box-shadow: var(--shadow); }
.pf-tile--ui img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; object-position: top center; border-radius: 0; box-shadow: none; }

/* ==========================================================================
   Pricing (round 10): a price index up top, a sticky service bar, cards that
   swipe on phones and a team-size picker for Managed IT. Prices are the
   published ones from build/data/pricing.mjs; only the presentation changed.
   ========================================================================== */
.pr-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.pr-hero .pagehead__title { font-size: clamp(2.7rem, 5.2vw, 5.2rem); margin: 20px 0 28px; }
.pr-index { border: 1px solid var(--v8-line); border-radius: 22px; padding: clamp(18px, 2vw, 28px); background: radial-gradient(120% 80% at 100% 0%, rgba(208, 176, 86, 0.1), transparent 60%), rgba(255, 255, 255, 0.02); }
.pr-index__head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 14px; border-bottom: 1px solid var(--v8-line); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--v8-mute); }
.pr-index__head p { color: var(--v8-gold); margin: 0; }
.pr-index ol { list-style: none; margin: 0; padding: 0; }
.pr-index a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 11px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); color: var(--v8-white); text-decoration: none; transition: color 0.3s, background 0.3s; }
.pr-index li:last-child a { border-bottom: 0; }
.pr-index b { font-size: 12px; font-weight: 500; color: var(--v8-mute); font-variant-numeric: tabular-nums; }
.pr-index span { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-index em { font-style: normal; font-family: var(--v8-display); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-index a:hover, .pr-index a:focus-visible { background: rgba(255, 255, 255, 0.03); }
.pr-index a:hover em, .pr-index a:focus-visible em { color: var(--v8-gold-hi); }
.pr-ways { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 12px clamp(16px, 2vw, 28px); align-items: center; margin-top: clamp(40px, 5vw, 72px); padding-top: 24px; border-top: 1px solid var(--v8-line); }
.pr-ways .h4 { margin: 0; color: var(--v8-mute); font-size: 0.95rem; font-weight: 500; }
.pr-ways a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--v8-line); color: var(--v8-white); text-decoration: none; transition: border-color 0.3s, background 0.3s; }
.pr-ways a:hover { border-color: rgba(208, 176, 86, 0.5); background: rgba(208, 176, 86, 0.05); }
.pr-ways strong { font-weight: 600; }
.pr-ways span { grid-column: 1; color: var(--v8-mute); font-size: 0.88rem; }
.pr-ways svg { width: 18px; grid-column: 2; grid-row: 1 / 3; align-self: center; }

/* Sticky service + currency bar. */
.pr-bar { position: sticky; top: calc(var(--p7-hd, 76px) + 8px); z-index: 20; display: flex; align-items: center; gap: 16px; margin: 0 0 28px; padding: 8px; border: 1px solid var(--v8-line); border-radius: 999px; background: rgba(14, 14, 14, 0.82); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); transition: top 0.4s var(--v8-ease); }
.v4-hide-header .pr-bar { top: 10px; }
.pr-bar .pricing-tabs { flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 0; scrollbar-width: none; mask-image: linear-gradient(to right, #000 92%, transparent); -webkit-mask-image: linear-gradient(to right, #000 92%, transparent); }
.pr-bar .pricing-tabs::-webkit-scrollbar { display: none; }
.pr-bar .chip { flex: none; border-color: transparent; background: transparent; }
.pr-bar .chip[aria-selected="true"] { background: var(--v8-white); color: var(--v8-ink); border-color: var(--v8-white); }
.pr-bar__cur { flex: none; display: flex; align-items: center; gap: 10px; padding-left: 12px; border-left: 1px solid var(--v8-line); }
.pr-bar__cur .muted { white-space: nowrap; }

/* Cards. */
.pr-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.v8 main .pr .plan--compare { position: relative; border: 1px solid var(--v8-line); border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)); box-shadow: none; transition: border-color 0.4s, transform 0.5s var(--v8-ease), background 0.4s; }
.v8 main .pr .plan--compare:hover { border-color: rgba(255, 255, 255, 0.22); }
.v8 main .pr .plan--featured { border-color: rgba(208, 176, 86, 0.45); background: radial-gradient(90% 60% at 50% 0%, rgba(208, 176, 86, 0.12), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); }
.v8 main .pr .plan--compare h3, .v8 main .pr .plan--compare h4 { font-family: var(--v8-display); letter-spacing: -0.03em; }
.v8 main .pr .plan--compare .plan__amount { font-family: var(--v8-display); font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; font-size: clamp(1.7rem, 2.35vw, 2.35rem); }
.v8 main .pr .plan__facts { grid-template-columns: 1fr 1fr; gap: 0; padding: 0; border: 1px solid var(--v8-line); border-radius: 14px; overflow: hidden; }
.v8 main .pr .plan__facts > div { display: grid; gap: 4px; justify-content: stretch; padding: 12px 14px; }
.v8 main .pr .plan__facts > div + div { border-left: 1px solid var(--v8-line); }
.v8 main .pr .plan__facts dt { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.v8 main .pr .plan__facts dd { text-align: left; max-width: none; margin: 0; font-weight: 500; }
.pr-badge { position: absolute; top: -11px; left: 24px; padding: 4px 10px; border-radius: 999px; background: var(--v8-gold); color: var(--v8-ink); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.v8 main .pr .pricing-panel:not([hidden]) .plan--compare { animation: pr-in 0.6s var(--v8-ease) both; }
.v8 main .pr .pricing-panel .plan--compare:nth-child(2) { animation-delay: 0.06s; }
.v8 main .pr .pricing-panel .plan--compare:nth-child(3) { animation-delay: 0.12s; }
@keyframes pr-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Managed IT team-size picker. */
.pr-size { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px 32px; align-items: center; margin-bottom: 28px; padding: clamp(18px, 2vw, 26px); border: 1px solid var(--v8-line); border-radius: 22px; background: rgba(255, 255, 255, 0.02); }
.pr-size__q { font-family: var(--v8-display); font-size: clamp(1.2rem, 1.4vw, 1.5rem); font-weight: 600; letter-spacing: -0.025em; }
.pr-size__row { display: flex; align-items: center; gap: 16px; }
.pr-size output { flex: none; min-width: 7.5em; text-align: right; font-family: var(--v8-display); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--v8-gold-hi); }
.pr-size__fit { grid-column: 1 / -1; margin: 0; color: var(--v8-mute); }
.pr-size__fit b { color: var(--v8-white); font-weight: 600; }
.pr-size input[type="range"] { flex: 1; min-width: 0; height: 28px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.pr-size input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--v8-gold) var(--fill, 12%), rgba(255, 255, 255, 0.14) var(--fill, 12%)); }
.pr-size input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); }
.pr-size input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--v8-gold); }
.pr-size input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--v8-white); border: 4px solid var(--v8-gold); }
.pr-size input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--v8-white); border: 4px solid var(--v8-gold); }
.pr-size input[type="range"]:focus-visible { outline: 1px solid var(--v8-gold); outline-offset: 6px; border-radius: 6px; }
.v8 main .pr [data-tier-min] { transition: border-color 0.4s, opacity 0.4s, transform 0.5s var(--v8-ease); }
.v8 main .pr .pr-cards:has(.is-fit) [data-tier-min]:not(.is-fit) { opacity: 0.55; }
.v8 main .pr [data-tier-min].is-fit { border-color: var(--v8-gold); transform: translateY(-4px); }

@media (max-width: 980px) {
  .pr-hero__grid { grid-template-columns: 1fr; }
  .pr-ways { grid-template-columns: 1fr; }
  .pr-size { grid-template-columns: 1fr; }
}
/* Phones: one card at a time, swipe to compare. */
@media (max-width: 760px) {
  .pr-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter, 20px)); padding: 14px var(--gutter, 20px) 8px; scroll-padding-inline: var(--gutter, 20px); scrollbar-width: none; }
  .pr-cards::-webkit-scrollbar { display: none; }
  .pr-cards > * { scroll-snap-align: start; }
  .pr-bar { flex-direction: column; align-items: stretch; gap: 8px; border-radius: 20px; top: calc(var(--p7-hd, 64px) + 6px); }
  .pr-bar__cur { justify-content: space-between; padding: 0 4px; border-left: 0; }
  .pr-index span { white-space: normal; }
  .pr [data-tier-min].is-fit { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pr .pricing-panel:not([hidden]) .plan--compare { animation: none; }
  .pr [data-tier-min].is-fit { transform: none; }
}

/* ---------------------------------------------------------------------------
   Header rhythm (round 11). Wide screens used a 1440px strip for brand, six
   links, clocks and three buttons, leaving 24px between groups. The strip now
   widens with the screen, groups get clear air, and the HUD drops detail
   before anything else gets tight.
   --------------------------------------------------------------------------- */
.v8 .v7-hd__in { max-width: 1760px; gap: clamp(24px, 2.4vw, 48px); }
@media (min-width: 1181px) {
  .v7-hd__cta { gap: 12px; }
  .v8 .v7-hd .v7-hd__cta .v7-btn { padding-inline: 22px; white-space: nowrap; }
}
.v7-hd .v7-nav { gap: 2px; }
/* HUD sits as its own quiet group, divided from the buttons by a hairline. */
.v8-hud { gap: 16px; padding-right: clamp(20px, 1.8vw, 32px); border-right: 1px solid var(--v8-line, rgba(255,255,255,.12)); line-height: 46px; }
.v8-hud__s { display: none; }
/* When an office is open, keep its gold dot even where the words are hidden. */
.v8-hud__s[data-open="true"] { display: inline; font-size: 0; }
.v8-hud__s[data-open="true"]::before { margin-right: 0; }
@media (min-width: 1280px) and (max-width: 1599px) {
  .v8 .v7-hd .v7-nav__a { margin-inline: 11px; }
  .v8-hud__perf { display: none; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  /* One clock only; the second city returns from 1440. */
  .v8-hud__i + .v8-hud__i { display: none; }
}
@media (min-width: 1800px) { .v8-hud__s, .v8-hud__s[data-open="true"] { display: inline; font-size: inherit; } .v8-hud__s[data-open="true"]::before { margin-right: 5px; } }
/* Full wordmark only where it has room beside everything else. */
@media (min-width: 1280px) and (max-width: 1919px) { .v7-hd .v7-brand__t span { display: none; } }
