/* Buds by Bytellar: the product page.
   The house type follows the firm page and Nexus: Chakra Petch for display and interface, Geist Mono for
   labels and figures, Mona Sans for body, and a serif italic only for accent lines.
   Colour comes from the Buds brand kit (branding-cooperate-designs/NexAmigo-Brand-Kit): an indigo
   field, violet and periwinkle for the agents, sky for people and their decisions. One warm amber
   marks what is still open, and one rose marks a limit (a stop, a floor, a shortfall). */

/* ---------- Fonts (self-hosted, SIL Open Font License; see assets/fonts/OFL-1.1.txt) ---------- */
@font-face { font-family: "Chakra Petch"; font-weight: 500; font-display: swap; src: url("assets/fonts/chakra-petch-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url("assets/fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url("assets/fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 100 900; font-display: swap; src: url("assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Mona Sans"; font-weight: 200 900; font-display: swap; src: url("assets/fonts/mona-sans-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }

/* ---------- Tokens and base ---------- */
:root {
  --bg: #0d0e22; --field: #171831; --ink: #eef0ff; --soft: #cdd1ee; --muted: #a2a8d2; --dim: #8288b4;
  --indigo: #363b7f; --violet: #5a60b5; --peri: #7e94e0; --sky: #a0c4ee; --lilac: #c4c9ff;
  --open: #f3c47c; --limit: #f2909f; --rule: #ffffff14;
  --font-display: "Chakra Petch", "Mona Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Mona Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --glass: linear-gradient(180deg, #ffffff14 0%, #ffffff05 45%, #ffffff0a 100%), #15173599;
  --glass-rim: inset 0 1px 0 #ffffff30, inset 0 -1px 0 #ffffff0f, inset 1px 0 0 #ffffff12, inset -1px 0 0 #ffffff12, 0 14px 40px #05061566;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
/* Phone browsers enlarge text by themselves (Safari sideways, in-app browsers by the reader's setting,
   written on <body>). The layout is sized in rem, so the text size is pinned; readers can still zoom. */
html, body { -webkit-text-size-adjust: 100% !important; text-size-adjust: 100% !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
svg { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
::selection { background: var(--sky); color: #10122b; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(1240px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 14px 16px; background: var(--sky); color: #10122b; }
.skip-link:focus { top: 10px; }
.scroll-progress { position: fixed; inset: 0 0 auto 0; z-index: 60; height: 2px; background: linear-gradient(90deg, var(--sky), var(--violet)); transform-origin: left; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) { .scroll-progress { animation: page-progress linear both; animation-timeline: scroll(root block); } }
@keyframes page-progress { to { transform: scaleX(1); } }

/* The field: one indigo night behind everything, with two companion lights in the mark's shapes. */
.field { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(1100px 700px at 78% -10%, #2a2d6b 0%, #0000 60%), radial-gradient(900px 600px at -10% 110%, #1d2052 0%, #0000 60%), var(--bg); }
.field i { position: absolute; width: 34vmax; height: 62vmax; border-radius: 999px; filter: blur(90px); opacity: .5; transform: rotate(36deg); }
.field i:first-child { left: 52%; top: -22vmax; background: linear-gradient(180deg, #5a60b5, #363b7f); }
.field i:last-child { left: 70%; top: 6vmax; width: 26vmax; height: 40vmax; background: linear-gradient(180deg, #a0c4ee, #7e94e0); opacity: .28; }
.motion .field i:first-child { animation: drift-a 46s ease-in-out infinite alternate; }
.motion .field i:last-child { animation: drift-b 38s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(-9vmax, 6vmax) rotate(30deg); } }
@keyframes drift-b { to { transform: translate(-6vmax, -4vmax) rotate(42deg); } }

.glass { background: var(--glass); box-shadow: var(--glass-rim); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-radius: 1.4rem; }
.kicker { display: flex; align-items: center; gap: .6rem; color: var(--sky); font: 400 .8125rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.kicker b { padding: .1rem .45rem; border: 1px solid #a0c4ee73; border-radius: .3rem; font-weight: 500; letter-spacing: .04em; }
.kicker svg { color: var(--lilac); }

/* Accent lines: the serif italic with a slow sheen from sky to periwinkle. */
h1 em, h2 em, h3 em, .footer-slogan em, .maxim em { font: italic 500 1.14em/1 var(--font-serif); letter-spacing: -.01em; color: var(--sky); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1 em, h2 em, .footer-slogan em { padding-right: .06em; background: linear-gradient(100deg, var(--sky) 0%, #f4f6ff 30%, var(--sky) 55%, var(--peri) 85%, var(--sky) 100%); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
  .motion h1 em, .motion h2 em, .motion .footer-slogan em { animation: sheen 11s ease-in-out infinite; }
}
@keyframes sheen { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }

/* ---------- Buttons ---------- */
/* Liquid glass, as on the firm page and Nexus: tinted glass that bends the light behind it, a bright
   rim along the top, a coloured rim below, a soft glow around, and a highlight that follows the
   pointer across the surface. Primary buttons are tinted periwinkle; the second choice is clear glass. */
.button { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 3.25rem; padding: .85rem 1.4rem; border-radius: 999px; color: #f4f6ff; font: 600 1rem/1.2 var(--font-display); letter-spacing: .01em; text-shadow: 0 1px 1px #0a0c2480;
  background: radial-gradient(120% 150% at 18% -50%, #ffffff80, transparent 52%), linear-gradient(180deg, #9db4f5a8 0%, #5a68cc70 50%, #a8bdf59e 100%);
  backdrop-filter: blur(16px) saturate(190%) brightness(1.18); -webkit-backdrop-filter: blur(16px) saturate(190%) brightness(1.18);
  box-shadow: inset 0 1px 0 #ffffff99, inset 0 -1px 0 #a0c4ee8c, inset 1px 0 0 #a0c4ee4d, inset -1px 0 0 #a0c4ee4d, 0 6px 22px #05061566, 0 0 32px #7e94e059;
  transition: box-shadow .35s var(--ease), color .2s; }
.button::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(5rem circle at var(--mx, 50%) var(--my, 0%), #ffffff4d, transparent 70%); transition: opacity .35s; }
.button:hover::before { opacity: 1; }
.button svg { width: 1.1rem; height: 1.1rem; transition: transform .35s var(--ease); }
.button:hover { color: #fff; box-shadow: inset 0 1px 0 #ffffffb3, inset 0 -1px 0 #a0c4eeb3, inset 1px 0 0 #a0c4ee73, inset -1px 0 0 #a0c4ee73, 0 8px 26px #05061566, 0 0 44px #7e94e08c; }
.button:hover svg { transform: translateX(2px); }
.button-ghost { color: var(--ink); text-shadow: none; background: radial-gradient(120% 150% at 18% -50%, #ffffff2e, transparent 52%), linear-gradient(180deg, #ffffff1a 0%, #ffffff06 46%, #ffffff0f 100%); box-shadow: inset 0 1px 0 #ffffff59, inset 0 -1px 0 #ffffff17, inset 1px 0 0 #ffffff21, inset -1px 0 0 #ffffff21, 0 6px 22px #05061547; }
.button-ghost:hover { box-shadow: inset 0 1px 0 #ffffff73, inset 0 -1px 0 #a0c4ee59, inset 1px 0 0 #a0c4ee40, inset -1px 0 0 #a0c4ee40, 0 8px 26px #05061559, 0 0 30px #a0c4ee33; }
/* The family's beam: a point of light circles the rim of a primary button, then rests for longer than
   it moves; on hover it runs round once. */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.button:not(.button-ghost)::after { content: ""; position: absolute; inset: -4px; padding: 1px; border-radius: 999px; pointer-events: none; opacity: 0; background: conic-gradient(from var(--angle), transparent 0 60%, var(--sky) 78%, #fff 88%, var(--peri) 94%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.motion .button:not(.button-ghost)::after { animation: beam-cycle 7.5s ease-in-out 1.2s infinite; }
.motion .button:not(.button-ghost):is(:hover, :focus-visible)::after { animation: beam-hover 1.7s ease-in-out 1 both; }
@keyframes beam-cycle { 0% { --angle: 0deg; opacity: 0; } 4%, 34% { opacity: 1; } 40%, 100% { --angle: 360deg; opacity: 0; } }
@keyframes beam-hover { 0% { --angle: 0deg; opacity: 0; } 12%, 86% { opacity: 1; } 100% { --angle: 360deg; opacity: 0; } }
.button-sm { min-height: 2.6rem; padding: .55rem 1.05rem; font-size: .9375rem; }
.button-lg { min-height: 3.6rem; font-size: 1.0625rem; }
.text-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--sky); font: 600 .9375rem/1.2 var(--font-display); white-space: nowrap; }
.text-link:hover { color: #fff; }

/* ---------- Header: a glass capsule floating over the page ---------- */
.site-header { position: fixed; inset: .8rem 0 auto 0; z-index: 40; pointer-events: none; }
.header-inner { position: relative; pointer-events: auto; display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: center; gap: 1rem; height: 62px; padding: 0 .55rem 0 1.15rem; border-radius: 999px;
  background: linear-gradient(180deg, #ffffff1c 0%, #ffffff06 42%, #ffffff0d 100%), #12142e80;
  backdrop-filter: blur(22px) saturate(190%) brightness(1.12); -webkit-backdrop-filter: blur(22px) saturate(190%) brightness(1.12);
  box-shadow: inset 0 1px 0 #ffffff4d, inset 0 -1px 0 #ffffff14, inset 1px 0 0 #ffffff1c, inset -1px 0 0 #ffffff1c, 0 14px 44px #05061573, 0 2px 8px #0506154d;
  transition: background .4s, height .35s var(--ease); }
.site-header.is-scrolled .header-inner { height: 56px; background: linear-gradient(180deg, #ffffff21 0%, #ffffff08 42%, #ffffff10 100%), #101229b3; }
.brand { display: inline-flex; align-items: center; gap: .6rem; width: fit-content; }
.brand-mark { display: block; width: 34px; height: 34px; }
.brand-name { font: 600 1.375rem/1 var(--font-display); letter-spacing: -.01em; }
.brand-by { padding-left: .6rem; border-left: 1px solid #ffffff38; color: var(--muted); font: 400 .6875rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }
.site-nav { position: relative; display: flex; gap: .2rem; }
.site-nav::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--pill-w, 0); transform: translateX(var(--pill-x, 0)); opacity: var(--pill-o, 0); border-radius: 999px; background: linear-gradient(180deg, #ffffff2e, #a0c4ee1a); box-shadow: inset 0 1px 0 #ffffff66, inset 0 -1px 0 #a0c4ee40, 0 4px 16px #05061552, 0 0 18px #a0c4ee2e; transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s; }
.site-nav a { position: relative; padding: .5rem .85rem; border-radius: 999px; color: var(--soft); font: 500 .9375rem/1 var(--font-display); white-space: nowrap; transition: color .25s; }
.site-nav a:hover, .site-nav a[aria-current] { color: #fff; }
.header-tools { justify-self: end; }
.menu { display: none; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 4.5rem 0 5.5rem; }
.section-head { display: grid; gap: 1rem; max-width: 60rem; margin-bottom: 2.6rem; }
h2 { font: 600 clamp(2.1rem, 4.2vw, 3.4rem)/1.06 var(--font-display); letter-spacing: -.025em; text-wrap: pretty; }
.section-lede { max-width: 44rem; color: var(--soft); font-size: 1.1875rem; line-height: 1.6; text-wrap: balance; }
[data-reveal] { transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js.motion [data-reveal]:not(.in) { opacity: 0; transform: translateY(18px); }

/* A light follows the pointer round the edge of a surface. */
.spot { position: relative; isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), #a0c4ee26, #0000 70%); }
.spot:hover::after { opacity: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: min(100svh, 62rem); padding: 8.5rem 0 4.5rem; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 4rem; align-items: center; }
.hero-copy { display: grid; gap: 1.6rem; justify-items: start; }
h1 { font: 600 clamp(2.9rem, 5.6vw, 5.1rem)/1.02 var(--font-display); letter-spacing: -.03em; }
h1 span, h1 em { display: block; text-wrap: balance; }
h1 em { margin-top: .08em; }
.hero-lede { max-width: 34rem; color: var(--soft); font-size: 1.25rem; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }
.proof { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: -.2rem; color: var(--soft); font: 500 .9375rem/1.3 var(--font-display); }
.proof li { display: inline-flex; align-items: center; gap: .45rem; }
.proof svg { width: 1rem; height: 1rem; color: var(--sky); stroke-width: 2.6; }
/* Set as on the Nexus hero (sentence case, small mono, light tracking, under a hairline rule), in
   Buds' own colour. */
.audience { max-width: 36rem; padding-top: 1.125rem; border-top: 1px solid #ffffff14; color: var(--muted); font: 400 .75rem/1.5 var(--font-mono); letter-spacing: .02em; }

/* The brief: one assignment, start to finish. */
.brief { display: grid; gap: 1.05rem; padding: 1.5rem; }
.brief-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2rem; }
.brief-desk { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font: 400 .75rem/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.brief-desk svg { color: var(--lilac); }
/* The scenario's own headline: the campaign line, proved by the brief under it. */
.brief-title { margin-top: -.3rem; font: 600 1.375rem/1.2 var(--font-display); letter-spacing: -.015em; }
.brief-title em { font: italic 500 1.16em/1 var(--font-serif); color: var(--sky); }
/* Status, as a work queue shows it. While Buds work, its light breathes. */
.brief-top { gap: .6rem; }
.brief-status { display: inline-flex; align-items: center; gap: .45rem; margin-left: auto; padding: .3rem .65rem; border-radius: 999px; color: var(--sky); background: #a0c4ee14; box-shadow: inset 0 0 0 1px #a0c4ee47; font: 500 .6875rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: color .5s, background .5s, box-shadow .5s; }
.brief-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.brief-status[data-state="assigned"] { color: var(--muted); background: #ffffff0a; box-shadow: inset 0 0 0 1px #ffffff1f; }
.brief-status[data-state="working"] { color: var(--lilac); background: #5a60b52e; box-shadow: inset 0 0 0 1px #7e94e066; }
.motion .brief-status[data-state="working"] i { animation: breathe 1.3s ease-in-out infinite; }
.brief-status[data-state="ready"] { color: var(--sky); }
@keyframes breathe { 50% { opacity: .25; box-shadow: 0 0 0 currentColor; } }
/* A thin line under the top fills as the work moves on. At rest it is full and quiet. */
.brief-progress { display: block; height: 2px; margin-top: -.5rem; border-radius: 2px; background: linear-gradient(90deg, var(--sky), var(--peri)) 0 0 / calc(var(--p, 1) * 100%) 100% no-repeat, #ffffff12; opacity: .45; transition: background-size .8s var(--ease), opacity .8s; }
.motion .brief.is-playing:not(.is-closed) .brief-progress { opacity: 1; }
.brief-replay { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; color: var(--muted); box-shadow: inset 0 0 0 1px #ffffff26; transition: color .25s, box-shadow .25s; }
.brief-replay:hover { color: #fff; box-shadow: inset 0 0 0 1px #a0c4ee80; }
.who { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .35rem; color: var(--sky); font: 500 .75rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.who-buds { color: var(--lilac); }
.who img { width: 1.25rem; height: 1.25rem; }
.brief-ask p { font: 500 1.125rem/1.45 var(--font-display); }
.brief-steps { display: grid; gap: .45rem; padding: .85rem 1rem; border-radius: .9rem; background: #ffffff08; box-shadow: inset 0 0 0 1px #ffffff10; color: var(--soft); font: 400 .8125rem/1.3 var(--font-mono); }
.brief-steps li { display: flex; align-items: center; gap: .6rem; }
.brief-answer { display: grid; gap: .55rem; padding: 1.1rem 1.15rem 1.2rem; border-radius: 1rem; background: linear-gradient(160deg, #5a60b533, #36397f14); box-shadow: inset 0 0 0 1px #7e94e040; }
.brief-lead { font: 600 1.25rem/1.3 var(--font-display); }
.brief-open { color: var(--open); font: 700 clamp(1.6rem, 2.6vw, 2.1rem)/1.1 var(--font-display); letter-spacing: -.015em; }
.brief-next { color: var(--soft); font-size: .9375rem; }
.brief-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .2rem; }
.brief-chips span { padding: .4rem .75rem; border-radius: 999px; color: var(--soft); font: 500 .8125rem/1.2 var(--font-display); box-shadow: inset 0 0 0 1px #ffffff26; }
.brief figcaption { color: var(--dim); font: 400 .75rem/1.4 var(--font-mono); letter-spacing: .03em; }

/* Twelve basis points as one bar: pricing, fees, and what is still open. */
.bridge { display: flex; gap: 3px; margin: .35rem 0 .2rem; }
.seg { flex: 0 0 calc(var(--w) - 2px); display: grid; gap: .3rem; min-width: 0; padding-top: .7rem; color: var(--soft); font: 400 .75rem/1.2 var(--font-mono); white-space: nowrap; background: linear-gradient(var(--c), var(--c)) top left / 100% .45rem no-repeat; border-radius: .2rem; }
.seg b { color: var(--ink); font: 600 .8125rem/1 var(--font-display); }
.seg-a { --c: var(--peri); }
.seg-b { --c: var(--sky); }
.seg-open { --c: var(--open); }
.seg-open b { color: var(--open); }

/* The play, driven by main.js: the controller's line types out; each agent step spins, then ticks;
   the answer resolves out of a blur while the open amount counts up and the bar fills, pricing, then
   fees, then what is open; last, the hand-off. It plays once, then rests. Without JavaScript or with
   reduced motion the finished brief simply shows. */
.brief { position: relative; }
/* A point of light runs slowly round the card's rim, as on the firm page's agent runs. */
.brief::before { content: ""; position: absolute; inset: -1px; z-index: 1; padding: 1px; border-radius: inherit; pointer-events: none; opacity: .85; background: conic-gradient(from var(--angle), transparent 0 70%, var(--sky) 82%, #fff 88%, var(--peri) 93%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.motion .brief::before { animation: border-spin 11s linear infinite; }
@keyframes border-spin { to { --angle: 360deg; } }
.brief-steps li { transition: opacity .4s var(--ease), color .4s; }
.motion .brief.is-playing .brief-steps li:not(.is-run) { opacity: .28; }
.motion .brief.is-playing .brief-steps li.is-run:not(.is-done) { color: #fff; }
.motion .brief.is-playing .brief-steps li:not(.is-done) .tick svg { opacity: 0; }
.motion .brief.is-playing .brief-steps li.is-run:not(.is-done) .tick i { opacity: 1; animation: spin .6s linear infinite; }
.brief-answer, .brief-next, .brief-chips { transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
.motion .brief.is-playing:not(.is-answered) .brief-answer { opacity: 0; transform: translateY(10px); filter: blur(6px); }
.motion .brief.is-playing:not(.is-closed) :is(.brief-next, .brief-chips) { opacity: 0; transform: translateY(6px); }
.seg { transition: background-size 1s var(--ease) var(--sd, 0s); }
.seg-b { --sd: .45s; }
.seg-open { --sd: .9s; }
.motion .brief.is-playing:not(.is-answered) .seg { background-size: 0% .45rem; }
.motion .brief.is-closed .brief-open { animation: glow 2.6s ease-in-out 1; }
@keyframes glow { 50% { text-shadow: 0 0 26px #f3c47c99; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Agent steps: a small ring spins while the step runs, then a check takes its place. */
.tick { display: inline-grid; place-items: center; width: .9rem; height: .9rem; flex: none; }
.tick > * { grid-area: 1 / 1; }
.tick i { width: .72rem; height: .72rem; border-radius: 50%; border: 1.5px solid #7e94e040; border-top-color: var(--lilac); opacity: 0; }
.tick svg { width: .9rem; height: .9rem; color: var(--peri); stroke-width: 2.6; transition: opacity .3s; }

/* Typing: what has been typed shows; the rest keeps its place, invisible, so nothing below jumps. */
.typed-rest { color: transparent; }
.is-typing .typed-now::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin: 0 1px -.18em; background: var(--sky); animation: caret .9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-count] { font-variant-numeric: tabular-nums; }

/* ---------- 01 How it works: five moves on one track ---------- */
.moves { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; padding-top: 2.4rem; }
/* The track, and the case travelling along it. */
.moves::before { content: ""; position: absolute; top: .55rem; left: .6rem; right: .6rem; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #a0c4ee40, #7e94e040); }
.moves::after { content: ""; position: absolute; top: calc(.55rem - 5px); left: calc(.6rem + (100% - 1.2rem) * var(--at, 0) / 4 - 6px); width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #a0c4ee40, 0 0 22px var(--sky); transition: left 1.1s var(--ease); }
.js:not(.motion) .moves::after, html:not(.js) .moves::after { display: none; }
.move { display: grid; align-content: start; gap: .7rem; min-height: 15rem; padding: 1.4rem 1.3rem; border-radius: 1.2rem; background: linear-gradient(180deg, #ffffff0d, #ffffff04); box-shadow: inset 0 0 0 1px #ffffff14; transition: box-shadow .6s var(--ease), background .6s var(--ease), transform .6s var(--ease); }
.move.is-on { background: linear-gradient(180deg, #7e94e02e, #5a60b510); box-shadow: inset 0 0 0 1px #a0c4ee66, 0 18px 40px #05061566; }
.move-no { color: var(--dim); font: 400 .75rem/1 var(--font-mono); letter-spacing: .1em; }
.move h3 { font: 600 1.375rem/1.2 var(--font-display); }
.move p { color: var(--soft); font-size: .9688rem; line-height: 1.55; }
.tag { justify-self: start; padding: .28rem .6rem; border-radius: 999px; font: 500 .6875rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.tag-you { color: var(--sky); box-shadow: inset 0 0 0 1px #a0c4ee66; }
.tag-agents { color: var(--lilac); background: #5a60b538; box-shadow: inset 0 0 0 1px #7e94e04d; }

/* ---------- 02 Desks ---------- */
.run-bar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.run-tabs { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: .3rem; border-radius: 999px; background: #ffffff08; box-shadow: inset 0 0 0 1px #ffffff12; }
.run-tabs::-webkit-scrollbar { display: none; }
.run-tab { display: grid; gap: .15rem; flex: none; padding: .55rem 1.1rem; border-radius: 999px; color: var(--soft); text-align: left; font: 600 .9375rem/1.15 var(--font-display); white-space: nowrap; transition: background .35s, color .35s, box-shadow .35s; }
.run-tab small { color: var(--dim); font: 400 .625rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.run-tab:hover { color: #fff; }
.run-tab[aria-selected="true"] { color: #fff; background: radial-gradient(120% 150% at 18% -50%, #ffffff66, transparent 52%), linear-gradient(180deg, #8ea8f073 0%, #4f5cc247 50%, #9cb4f266 100%); box-shadow: inset 0 1px 0 #ffffff8c, inset 0 -1px 0 #a0c4ee80, inset 1px 0 0 #a0c4ee40, inset -1px 0 0 #a0c4ee40, 0 0 24px #7e94e047; }
.run-tab[aria-selected="true"] small { color: var(--lilac); }
.run-toggle { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; margin-left: auto; border-radius: 999px; color: var(--muted); box-shadow: inset 0 0 0 1px #ffffff26; }
.run-toggle:hover { color: #fff; box-shadow: inset 0 0 0 1px #a0c4ee80; }
.scene { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; min-height: 25rem; padding: 2.2rem 2.4rem; }
/* Without JavaScript every desk is laid out, one under the other. */
html:not(.js) .scene[hidden] { display: grid !important; margin-top: 1rem; }
.scene-copy { display: grid; gap: 1.05rem; }
.scene-desk { color: var(--lilac); font: 400 .75rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.scene h3 { font: 600 clamp(1.6rem, 2.6vw, 2.15rem)/1.12 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.scene h3 em { display: block; margin-top: .05em; }
.ask, .said, .call { display: grid; gap: .3rem; font-size: 1rem; line-height: 1.55; }
.ask { font: 500 1.0625rem/1.45 var(--font-display); }
.said { color: var(--soft); }
.ask > span:not(.quote), .said > span, .call > span { font: 400 .6875rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.ask > span:not(.quote) { color: var(--sky); }
.said > span { color: var(--lilac); }
/* A desk plays like a call: your question types out, then the report resolves, then your call. */
.said, .call { transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); }
.call { transition-delay: .45s; }
.motion .scene.is-playing:not(.is-told) :is(.said, .call) { opacity: 0; transform: translateY(6px); filter: blur(5px); transition-delay: 0s; }
.call { padding-left: .9rem; border-left: 2px solid var(--sky); color: var(--ink); }
.call > span { color: var(--sky); }
.run-note { margin-top: 1rem; color: var(--dim); font: 400 .75rem/1.4 var(--font-mono); }
.scene-art { position: relative; display: grid; gap: .9rem; font-family: var(--font-mono); }
.scene.is-active .scene-art > * { animation: rise .7s var(--ease) both; }
.scene.is-active .scene-art > :nth-child(2) { animation-delay: .25s; }
.scene.is-active .scene-art > :nth-child(3) { animation-delay: .5s; }
.js:not(.motion) .scene-art > * { animation: none !important; }

/* Research: two documents, the matching lines lit. */
.doc { display: grid; gap: .55rem; padding: 1.1rem 1.2rem; border-radius: 1rem; background: #ffffff0a; box-shadow: inset 0 0 0 1px #ffffff14; }
.doc small { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .75rem; }
.doc i { display: block; height: .45rem; width: 88%; border-radius: 4px; background: #ffffff12; }
.doc i:nth-of-type(2n) { width: 64%; }
.doc mark { justify-self: start; padding: .3rem .55rem; border-radius: .4rem; color: #10122b; background: linear-gradient(var(--sky), var(--sky)) left / 100% 100% no-repeat; font: 600 .875rem/1.3 var(--font-display); }
/* The analyst's highlighter: it runs across the matching line in the reply, then in the supplement. */
.motion .scene.is-active .doc mark { animation: highlight 1s var(--ease) both; }
.motion .scene.is-active .doc + .doc mark { animation-delay: .9s; }
.motion .scene.is-active .scene-art > .verdict { animation-delay: 1.8s; }
@keyframes highlight { from { background-size: 0% 100%; color: var(--soft); } 60% { color: var(--soft); } }
.verdict { display: flex; align-items: center; gap: .55rem; padding: .7rem 1rem; border-radius: 999px; color: var(--sky); font-size: .8125rem; box-shadow: inset 0 0 0 1px #a0c4ee4d; justify-self: start; }

/* Portfolio: the cash ladder. Values in CHF m on a scale from −0.50 to 6.00. */
.art-ladder { --s: 6.5; }
.ladder-cases { display: flex; gap: .4rem; font-size: .75rem; }
.ladder-cases span { padding: .35rem .7rem; border-radius: 999px; color: var(--dim); box-shadow: inset 0 0 0 1px #ffffff1a; transition: color .5s, background .5s, box-shadow .5s; }
.art-ladder[data-case="on-time"] .lc-on, .art-ladder[data-case="late"] .lc-late { color: #10122b; background: var(--sky); box-shadow: none; }
.ladder { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; height: 15rem; padding: 0 .2rem 2.4rem; }
.rung { position: relative; }
.rung i { position: absolute; left: 0; right: 0; bottom: calc(var(--b) / var(--s) * 100%); height: calc(var(--h) / var(--s) * 100%); border-radius: .35rem; background: var(--c, var(--peri)); transition: bottom 1s var(--ease), height 1s var(--ease), background .6s, opacity .6s; }
.rung b { position: absolute; left: 0; right: 0; bottom: calc((var(--b) + var(--h)) / var(--s) * 100% + .35rem); text-align: center; color: var(--ink); font: 600 .875rem/1 var(--font-display); transition: bottom 1s var(--ease); }
.rung small { position: absolute; left: -.3rem; right: -.3rem; top: calc(100% + .55rem); text-align: center; color: var(--muted); font-size: .6875rem; line-height: 1.25; }
.r-open { --b: .5; --h: 4.8; --c: #5a60b5; }
.r-in { --b: 5.3; --h: .7; --c: var(--sky); }
.r-out { --b: 1; --h: 5; --c: #7e94e099; }
.r-end { --b: .5; --h: .5; --c: var(--open); }
.art-ladder[data-case="late"] .r-in { --b: 5.3; --h: 0; }
.art-ladder[data-case="late"] .r-in i { opacity: 0; }
.art-ladder[data-case="late"] .r-out { --b: .3; --h: 5; }
.art-ladder[data-case="late"] .r-end { --b: .3; --h: .2; --c: var(--limit); }
.v-late { display: none; }
.art-ladder[data-case="late"] .v-on { display: none; }
.art-ladder[data-case="late"] .v-late { display: inline; }
.art-ladder[data-case="late"] b.v-late { display: block; }
.floor, .zero { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--limit); bottom: calc(2.4rem + (100% - 2.4rem) * 1.5 / 6.5); }
.zero { border-top: 1px solid #ffffff2b; bottom: calc(2.4rem + (100% - 2.4rem) * .5 / 6.5); }
/* The floor's label sits over the receipt column, which is empty at that height in both cases. */
.floor b { position: absolute; left: calc(25% + .5rem); bottom: .3rem; color: var(--limit); font: 400 .6875rem/1 var(--font-mono); white-space: nowrap; }
.ladder-gap { color: var(--open); font: 600 1rem/1.3 var(--font-display); }
.art-ladder[data-case="late"] .ladder-gap { color: var(--limit); }

/* Risk: the stop line, and the restated result moving across it. */
.scale { position: relative; height: 7.5rem; margin-top: 2.6rem; border-radius: .8rem; background: linear-gradient(90deg, #ffffff06, #ffffff0d); box-shadow: inset 0 0 0 1px #ffffff14; }
.zone { position: absolute; top: 0; bottom: 0; left: 0; width: 50%; border-radius: .8rem 0 0 .8rem; background: repeating-linear-gradient(135deg, #f2909f1a 0 6px, #0000 6px 12px); }
.stop { position: absolute; top: -1.9rem; bottom: 0; left: 50%; border-left: 2px solid var(--limit); }
.stop b { position: absolute; top: 0; left: .45rem; color: var(--limit); font: 400 .75rem/1 var(--font-mono); white-space: nowrap; }
.pin { position: absolute; top: 1.2rem; display: grid; gap: .3rem; padding-left: .7rem; border-left: 3px solid; transform: translateX(-1.5px); }
.pin b { font: 600 1rem/1 var(--font-display); white-space: nowrap; }
.pin small { color: var(--muted); font-size: .6875rem; white-space: nowrap; }
/* v1 reads to the left of its line, so it never crosses the stop. */
.pin-v1 { left: 40%; top: 3.9rem; padding: 0 .7rem 0 0; border-left: 0; border-right: 3px solid #ffffff40; text-align: right; opacity: .6; transform: translateX(calc(-100% + 1.5px)); }
.pin-v1 b { text-decoration: line-through; text-decoration-color: #ffffff66; }
.pin-v2 { left: 60%; border-color: var(--sky); }
.pin-v2 b { color: var(--sky); }
.scene.is-active .pin-v2 { animation: slide-v2 1.6s var(--ease) .5s both; }
@keyframes slide-v2 { from { left: 40%; opacity: 0; } 30% { opacity: 1; } }
.ticks { display: flex; justify-content: space-between; color: var(--dim); font-size: .6875rem; }
.stop-note { color: var(--soft); font-size: .8125rem; }
.stop-note b { color: var(--sky); font-family: var(--font-display); }

/* Operations: the bridge, bar by bar. */
.nav-total { display: grid; gap: .3rem; }
.nav-total b { font: 700 clamp(1.6rem, 2.6vw, 2.1rem)/1 var(--font-display); }
.nav-total small { color: var(--muted); font-size: .75rem; }
.nav-bars { display: grid; gap: .9rem; }
.nb { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .8rem; align-items: center; }
.nb i { grid-column: 1 / -1; display: block; width: var(--w); height: .8rem; border-radius: .3rem; background: linear-gradient(90deg, var(--violet), var(--peri)); transform-origin: left; }
.nb b { font: 600 1rem/1 var(--font-display); }
.nb small { grid-row: 2; grid-column: 1; color: var(--muted); font-size: .75rem; }
.nb b { grid-row: 2; grid-column: 2; }
.nb-open i { background: var(--open); }
.nb-open b { color: var(--open); }
.scene.is-active .nb i { animation: grow 1s var(--ease) both; }
.scene.is-active .nb:nth-child(2) i { animation-delay: .35s; }
.scene.is-active .nb:nth-child(3) i { animation-delay: .7s; }
@keyframes grow { from { transform: scaleX(0); } }

/* Investor relations: what went out, what was approved, the gap between. */
.art-two { grid-template-columns: 1fr 1fr; }
.ret { display: grid; gap: .5rem; padding: 1.2rem; border-radius: 1rem; background: #ffffff0a; box-shadow: inset 0 0 0 1px #ffffff14; }
.ret small { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .75rem; }
.ret b { font: 700 clamp(1.9rem, 3vw, 2.5rem)/1 var(--font-display); }
.ret span { color: var(--soft); font-size: .75rem; }
.ret-ok { box-shadow: inset 0 0 0 1px #a0c4ee66; }
.ret-ok b { color: var(--sky); }
.gap { grid-column: 1 / -1; display: flex; align-items: baseline; gap: .8rem; padding: .8rem 1rem; border-radius: .8rem; background: #f3c47c14; box-shadow: inset 0 0 0 1px #f3c47c4d; }
.gap b { color: var(--open); font: 700 1.25rem/1 var(--font-display); white-space: nowrap; }
.gap span { color: var(--soft); font-size: .8125rem; }

/* ---------- 03 Evidence ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
/* Both panels stand the same height; each ends on its last line, so neither leaves a hole. */
.panel { display: flex; flex-direction: column; gap: 1.2rem; padding: 2.2rem; }
.panel > .labels, .panel > .maxim { margin-top: auto; }
.panel .sources { flex: 1 0 auto; align-content: center; }
.panel h3 { font: 600 1.625rem/1.15 var(--font-display); letter-spacing: -.015em; }
.panel-line { color: var(--muted); font-size: .9688rem; }
.claim { font: 500 1.1875rem/1.9 var(--font-display); }
.fig { padding: .05rem .4rem; border-radius: .35rem; color: var(--sky); font: inherit; box-shadow: inset 0 -2px 0 #a0c4ee80; transition: background .35s, color .35s, box-shadow .35s; }
.fig:hover { background: #a0c4ee1f; }
.fig.is-on { color: #10122b; background: var(--sky); box-shadow: none; }
.sources { display: grid; }
.source { grid-area: 1 / 1; display: grid; gap: .55rem; padding: 1.1rem 1.2rem; border-radius: 1rem; background: #0b0c1fcc; box-shadow: inset 0 0 0 1px #a0c4ee40; font: 400 .8125rem/1.4 var(--font-mono); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s .45s; }
.source.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }
html:not(.js) .source { position: static; opacity: 1; visibility: visible; transform: none; grid-area: auto; margin-bottom: .6rem; }
.source dt { display: flex; align-items: center; gap: .5rem; color: var(--ink); font: 600 1rem/1.2 var(--font-display); }
.source dt svg { color: var(--sky); }
.source dd { display: grid; grid-template-columns: 6.5rem 1fr; gap: .6rem; color: var(--soft); }
.source dd span { color: var(--dim); text-transform: uppercase; letter-spacing: .08em; font-size: .6875rem; padding-top: .1rem; }
.labels { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; color: var(--muted); font-size: .875rem; }
.labels span { padding: .25rem .6rem; border-radius: 999px; color: var(--lilac); font: 500 .6875rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; box-shadow: inset 0 0 0 1px #7e94e059; }

.versions { position: relative; display: grid; gap: .8rem; }
.ver { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; padding: 1rem 1.1rem; border-radius: 1rem; background: #ffffff08; box-shadow: inset 0 0 0 1px #ffffff14; }
.ver div > b { display: block; font: 600 1rem/1.3 var(--font-display); }
.gap-now { color: var(--sky); font: 600 1em/1 var(--font-mono); }
.ver small { color: var(--muted); font-size: .8438rem; }
.ver-tag { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .7rem; font: 600 .875rem/1 var(--font-mono); color: var(--muted); box-shadow: inset 0 0 0 1px #ffffff26; }
.ver-1 { opacity: .7; }
.ver-2 { box-shadow: inset 0 0 0 1px #a0c4ee66; background: #a0c4ee12; }
.ver-2 .ver-tag { color: #10122b; background: var(--sky); box-shadow: none; }
.motion [data-revision].in .ver-2 { animation: rise .8s var(--ease) .6s both; }
.motion [data-revision].in .owed li { animation: rise .8s var(--ease) both; }
.motion [data-revision].in .owed li:nth-child(1) { animation-delay: 1.2s; }
.motion [data-revision].in .owed li:nth-child(2) { animation-delay: 1.5s; }
.owed { display: grid; gap: .55rem; }
.owed li { display: grid; grid-template-columns: auto 1fr; gap: .1rem .7rem; align-items: center; padding: .75rem 1rem; border-radius: .9rem; background: #f3c47c12; box-shadow: inset 0 0 0 1px #f3c47c40; }
.owed svg { grid-row: span 2; color: var(--open); width: 1.15rem; height: 1.15rem; }
.owed b { font: 600 .9688rem/1.3 var(--font-display); }
.owed small { color: var(--muted); font-size: .8125rem; }
.maxim { font: 600 1.125rem/1.4 var(--font-display); }

/* ---------- 04 Control ---------- */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.rule { display: grid; align-content: start; gap: .6rem; padding: 1.6rem 1.5rem; border-radius: 1.2rem; background: linear-gradient(180deg, #ffffff0d, #ffffff04); box-shadow: inset 0 0 0 1px #ffffff14; }
.rule svg { width: 1.6rem; height: 1.6rem; margin-bottom: .3rem; color: var(--sky); }
.rule b { font: 600 1.3125rem/1.2 var(--font-display); }
.rule span { color: var(--soft); font-size: .9688rem; }
/* Sovereignty: the line at the left, the three facts at the right. */
.sovereign { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1rem 2.6rem; margin-top: 1.4rem; padding: 1.4rem 1.7rem; border-radius: 1.2rem; box-shadow: var(--glass-rim), inset 0 0 0 1px #a0c4ee2e; }
.sov-head { display: grid; gap: .45rem; }
.sov-tag { display: inline-flex; align-items: center; gap: .5rem; color: var(--sky); font: 500 .75rem/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.sov-tag svg { width: 1rem; height: 1rem; }
.sov-line { font: 600 1.5rem/1.15 var(--font-display); letter-spacing: -.015em; white-space: nowrap; }
.sov-line em { font: italic 500 1.16em/1 var(--font-serif); color: var(--sky); }
.sov-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.sov-points li { display: grid; gap: .25rem; padding-left: .9rem; border-left: 2px solid #a0c4ee59; }
.sov-points b { font: 600 1rem/1.25 var(--font-display); }
.sov-points span { color: var(--soft); font-size: .875rem; line-height: 1.45; }

/* ---------- 05 Pilot ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
.step { display: grid; align-content: start; gap: .6rem; padding: 1.6rem 1.4rem; border-radius: 1.2rem; background: linear-gradient(180deg, #ffffff0d, #ffffff04); box-shadow: inset 0 0 0 1px #ffffff14; }
.step span { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; margin-bottom: .4rem; border-radius: 50%; color: #10122b; background: linear-gradient(135deg, #c9dcf7, var(--sky) 45%, var(--peri)); font: 600 1rem/1 var(--font-display); }
.step:last-child span { color: var(--sky); background: none; box-shadow: inset 0 0 0 1.5px var(--sky); }
.step b { font: 600 1.25rem/1.2 var(--font-display); }
.step small { color: var(--soft); font-size: .9375rem; line-height: 1.55; }
.family { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 1.4rem; padding: 1.4rem 1.6rem; }
.family-tag { font: 600 1.1875rem/1.3 var(--font-display); }
.family-line { margin-top: .3rem; color: var(--soft); font-size: .9688rem; }

/* ---------- 06 Contact ---------- */
.contact { display: flex; align-items: center; min-height: min(100svh, 56rem); overflow: hidden; }
/* The pitch at the left, the request at the right, the sign-off under both. */
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: center; }
.contact-copy { display: grid; gap: 1.3rem; justify-items: start; }
.contact h2 em { display: block; margin-top: .15em; }
.next { display: grid; gap: .9rem; margin-top: .4rem; }
.next li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; color: var(--soft); font-size: 1rem; line-height: 1.5; }
.next b { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; color: var(--sky); font: 600 .875rem/1 var(--font-display); box-shadow: inset 0 0 0 1.5px #a0c4ee66; }
.next strong { color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.signoff { grid-column: 1 / -1; justify-self: center; }

/* The request form: liquid glass, fields of dark glass, a sky ring on focus. */
.walk { position: relative; padding: 1.9rem; border-radius: 1.4rem; }
.walk h3 { margin-bottom: 1.1rem; font: 600 1.5rem/1.2 var(--font-display); letter-spacing: -.015em; }
.walk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem 1rem; }
/* "wf" (walkthrough field), not "field": that name belongs to the page's background layer. */
.wf { display: grid; gap: .4rem; }
.wf-wide { grid-column: 1 / -1; }
.wf > span { color: var(--muted); font: 500 .75rem/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.wf small { color: var(--dim); text-transform: none; letter-spacing: 0; }
.wf :is(input, select, textarea) { width: 100%; min-height: 2.9rem; padding: .7rem .9rem; border: 0; border-radius: .8rem; color: var(--ink); font: 400 1rem/1.4 var(--font-body); background: linear-gradient(180deg, #0a0c2499, #0a0c2466); box-shadow: inset 0 0 0 1px #ffffff1f, inset 0 1px 2px #0000004d; transition: box-shadow .25s; -webkit-appearance: none; appearance: none; }
.wf select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%), linear-gradient(180deg, #0a0c2499, #0a0c2466); background-position: calc(100% - 1.2rem) 52%, calc(100% - .85rem) 52%, 0 0; background-size: .35rem .35rem, .35rem .35rem, 100% 100%; background-repeat: no-repeat; padding-right: 2.4rem; }
.wf select option { color: #10122b; }
.wf textarea { min-height: 4.6rem; resize: vertical; }
.wf :is(input, select, textarea)::placeholder { color: var(--dim); }
.wf :is(input, select, textarea):focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--sky), 0 0 0 4px #a0c4ee26; }
.wf [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--limit); }
/* The robot trap: clipped to nothing where it stands, never pushed off the page. */
.walk-trap { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.walk-trap :is(label, input) { display: block; width: 1px; max-width: 1px; }
.walk-send { width: 100%; margin-top: 1.2rem; }
.walk-notice { margin-top: .8rem; color: var(--dim); font-size: .8125rem; line-height: 1.5; }
.walk-notice a { color: var(--muted); text-decoration: underline; text-underline-offset: .2em; }
.walk-status { min-height: 1.2em; margin-top: .4rem; color: var(--open); font-size: .875rem; }
.walk-status a { color: var(--sky); }
.walk-done { display: grid; justify-items: start; gap: .8rem; padding: .6rem 0; outline: none; }
.walk-done-mark { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; color: #10122b; background: var(--sky); }
.walk-done-mark svg { width: 1.3rem; height: 1.3rem; stroke-width: 2.6; }
.walk-done p { color: var(--soft); }
.walk-done p a, .walk-done p b { color: var(--ink); }
.walk-done .text-link { padding: 0; }
.signoff { margin-top: 3.5rem; color: transparent; font: 700 clamp(2.2rem, 9.5vw, 8.5rem)/1 var(--font-display); letter-spacing: -.04em; -webkit-text-stroke: 1px #a0c4ee4d; white-space: nowrap; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .signoff { background: linear-gradient(180deg, #a0c4ee33, #a0c4ee05); -webkit-background-clip: text; background-clip: text; }
}


/* ---------- Footer ---------- */
/* The footer keeps room at its foot for the wordmark, which stands on the bottom edge and runs off
   it, as on the firm page, Nexus and AIplets. */
.site-footer { position: relative; overflow: hidden; padding: 4rem 0 clamp(4rem, calc(9.4vw + 1.6rem), 11rem); border-top: 1px solid var(--rule); background: linear-gradient(180deg, #0b0c1f00, #0b0c1f); }
.site-footer > .container { position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: start; }
.footer-brand { display: grid; gap: .8rem; }
.footer-slogan { font: 600 1.5rem/1.2 var(--font-display); }
.footer-descriptor { color: var(--muted); font: 400 .75rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.footer-links { display: grid; gap: 1rem; justify-items: end; }
.footer-links nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .2rem; }
.footer-links a { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .6rem; color: var(--soft); font: 500 .875rem/1 var(--font-display); }
.footer-links a:hover { color: #fff; }
.footer-family a { color: var(--sky); }
.footer-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 1.5rem; margin-top: 3rem; padding-top: 1.3rem; border-top: 1px solid var(--rule); color: var(--dim); font: 400 .8125rem/1.4 var(--font-body); }
.footer-note { flex: 1 1 16rem; text-align: center; }
.footer-bottom a { display: inline-flex; align-items: center; gap: .4rem; }
.footer-bottom a:hover { color: #fff; }
.footer-word, .footer-word::after { position: absolute; inset: 0 0 -.17em 0; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; user-select: none; color: transparent; font: 700 clamp(3.4rem, 15.4vw, 15rem)/.72 var(--font-display); white-space: nowrap; }
.footer-word { z-index: 0; -webkit-text-stroke: 1px #7e94e040; background: linear-gradient(180deg, #a0c4ee1c 62%, #a0c4ee00 100%); -webkit-background-clip: text; background-clip: text; }
.footer-word::after { inset: 0; }
.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 30; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; color: var(--ink); background: #15173599; box-shadow: var(--glass-rim); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .35s, transform .35s var(--ease); }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
/* The footer has its own "Back to top"; the floating button steps aside there, as on the firm page. */
body:has(.site-footer.is-in) .to-top { opacity: 0; pointer-events: none; }

/* ---------- Motion that explains (each part says what it shows) ---------- */

/* Hero: the records behind every answer, drawn live on a canvas, fading out at the edges. */
.hero { isolation: isolate; }
.hero-field { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: radial-gradient(120% 90% at 60% 45%, #000 40%, transparent 85%); mask-image: radial-gradient(120% 90% at 60% 45%, #000 40%, transparent 85%); }
.field-toggle { position: absolute; right: max(1rem, calc((100% - 1240px) / 2)); bottom: 1.2rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; color: var(--muted); font-size: .8rem; box-shadow: inset 0 0 0 1px #ffffff26; transition: color .25s, box-shadow .25s; }
.field-toggle:hover { color: #fff; box-shadow: inset 0 0 0 1px #a0c4ee80; }

/* How it works: the track fills behind the case as it travels. */
.moves::before { background: linear-gradient(90deg, var(--sky), var(--peri)) 0 0 / calc(var(--at, 0) * 25%) 100% no-repeat, linear-gradient(90deg, #a0c4ee33, #7e94e033); transition: background-size 1.1s var(--ease); }
.move.is-on .tag-agents { color: #fff; background: #5a60b5; }
.move.is-on .tag-you { color: #10122b; background: var(--sky); }
.tag { transition: color .5s, background .5s; }

/* Desks: a thin bar under the chosen tab fills while it plays, so the reader sees the next one coming. */
.run-tab { position: relative; overflow: hidden; }
.run-tab::after { content: ""; position: absolute; left: 1.1rem; right: 1.1rem; bottom: .3rem; height: 2px; border-radius: 2px; background: #10122b80; transform: scaleX(0); transform-origin: left; }
.run.is-timing .run-tab[aria-selected="true"]::after { animation: dwell var(--dwell, 9s) linear both; }
.run.is-held .run-tab[aria-selected="true"]::after { animation-play-state: paused; }
@keyframes dwell { to { transform: scaleX(1); } }

/* Control: one guardrail lights at a time, slowly, while the section is on screen. */
.rule { transition: box-shadow .9s var(--ease), background .9s var(--ease); }
.rule svg { transition: color .9s, filter .9s; }
.rule.is-on { background: linear-gradient(180deg, #7e94e01f, #5a60b50a); box-shadow: inset 0 0 0 1px #a0c4ee59, 0 18px 44px #0506154d; }
.rule.is-on svg { color: #fff; filter: drop-shadow(0 0 10px #a0c4eecc); }

/* Pilot: from each step's number a line runs to the next, and the four light one after another. */
.step:nth-child(1) { z-index: 4; } .step:nth-child(2) { z-index: 3; } .step:nth-child(3) { z-index: 2; } .step:nth-child(4) { z-index: 1; }
.step:not(:last-child)::before { content: ""; position: absolute; top: calc(1.6rem + 1.15rem - 1px); left: calc(1.4rem + 2.3rem + .5rem); right: calc(-1rem - 1.4rem + .5rem); height: 2px; border-radius: 2px; pointer-events: none; background: linear-gradient(90deg, var(--sky), var(--peri)) 0 0 / 100% 100% no-repeat, #a0c4ee26; }
.step span { transition: background .6s var(--ease), color .6s, box-shadow .6s; }
.js.motion .step::before { transition: background-size .8s var(--ease); }
.js.motion .steps:not(.is-lit) .step::before { background-size: 0% 100%, auto; }
.js.motion .steps:not(.is-lit) .step span { color: var(--sky); background: #0d0e22; box-shadow: inset 0 0 0 1.5px #a0c4ee59; }
.js.motion .step:nth-child(1)::before { transition-delay: .35s; }
.js.motion .step:nth-child(2) span { transition-delay: 1s; } .js.motion .step:nth-child(2)::before { transition-delay: 1.15s; }
.js.motion .step:nth-child(3) span { transition-delay: 1.8s; } .js.motion .step:nth-child(3)::before { transition-delay: 1.95s; }
.js.motion .step:nth-child(4) span { transition-delay: 2.6s; }
.steps.is-lit .step:last-child span, html:not(.js) .step:last-child span, .js:not(.motion) .step:last-child span { box-shadow: inset 0 0 0 1.5px var(--sky), 0 0 22px #a0c4ee66; }

/* Contact and footer: the words are outlines in the dark, lit where the pointer is. */
.signoff { position: relative; }
.signoff::after, .footer-word::after { content: attr(data-word); position: absolute; inset: 0; color: transparent; -webkit-text-stroke: 1px var(--sky); background: linear-gradient(110deg, #a0c4eeb3, #7e94e099); -webkit-background-clip: text; background-clip: text; -webkit-mask-image: radial-gradient(16rem circle at var(--mx, -999px) var(--my, -999px), #000 0, transparent 72%); mask-image: radial-gradient(16rem circle at var(--mx, -999px) var(--my, -999px), #000 0, transparent 72%); pointer-events: none; }
.footer-beam { position: absolute; inset: 0 0 auto 0; height: 1px; overflow: hidden; }
.footer-beam::after { content: ""; position: absolute; top: 0; left: 0; width: 28%; height: 100%; background: linear-gradient(90deg, transparent, var(--sky), var(--peri), transparent); transform: translateX(-110%); }
.motion .site-footer.is-in .footer-beam::after { animation: footer-beam 6.5s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes footer-beam { 0% { transform: translateX(-110%); } 55%, 100% { transform: translateX(470%); } }

/* ---------- Narrower screens ---------- */
@media (max-width: 1120px) {
  .site-nav a { padding: .5rem .6rem; }
  .moves { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
  .move { padding: 1.2rem 1rem; }
}
@media (max-width: 1020px) {
  .container { width: calc(100% - 64px); }
  .header-inner { grid-template-columns: 1fr auto auto; }
  .site-nav { display: none; }
  .header-tools { display: none; }
  .menu { display: block; justify-self: end; }
  .menu summary { list-style: none; display: grid; place-content: center; gap: 6px; width: 2.9rem; height: 2.9rem; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px #ffffff2b; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary i { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
  .menu[open] summary i:first-child { transform: translateY(4px) rotate(45deg); }
  .menu[open] summary i:last-child { transform: translateY(-4px) rotate(-45deg); }
  .menu-sheet { position: absolute; top: calc(100% + .6rem); left: 0; right: 0; display: grid; gap: 1rem; padding: 1rem; border-radius: 1.4rem; background: linear-gradient(180deg, #1a1d44, #111329); box-shadow: var(--glass-rim), 0 24px 60px #05061599; }
  .menu-links { display: grid; }
  .menu-links a { display: flex; align-items: center; gap: .9rem; padding: .85rem .6rem; border-bottom: 1px solid var(--rule); font: 500 1.125rem/1 var(--font-display); }
  .menu-links a b { color: var(--dim); font: 400 .75rem/1 var(--font-mono); }
  .menu-links a[aria-current] { color: var(--sky); }
  .menu-cta { width: 100%; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero { min-height: 0; }
  .brief { max-width: 40rem; }
  .moves { grid-template-columns: 1fr; gap: .7rem; padding: 0 0 0 2.2rem; }
  .moves::before { top: .6rem; bottom: .6rem; left: .55rem; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--sky), var(--peri)) 0 0 / 100% calc(var(--at, 0) * 25%) no-repeat, linear-gradient(180deg, #a0c4ee33, #7e94e033); }
  .moves::after { top: calc(.6rem + (100% - 1.2rem) * var(--at, 0) / 4 - 6px); left: calc(.55rem - 5px); transition: top 1.1s var(--ease); }
  .move { min-height: 0; grid-template-columns: auto auto 1fr; align-items: center; gap: .5rem .8rem; }
  .move h3, .move p { grid-column: 1 / -1; }
  .scene { grid-template-columns: 1fr; gap: 2rem; padding: 1.8rem; }
  .two { grid-template-columns: 1fr; }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:not(:last-child)::before { display: none; }
  .contact-inner { grid-template-columns: 1fr; }
  .sovereign { grid-template-columns: 1fr; }
  .walk { max-width: 40rem; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .site-header { inset: .5rem 0 auto 0; }
  .header-inner { height: 56px; padding: 0 .4rem 0 .9rem; }
  .brand-name { font-size: 1.25rem; }
  .brand-by { font-size: .625rem; letter-spacing: .12em; }
  .section { padding: 5rem 0; }
  .section-head { margin-bottom: 2.2rem; }
  .section-lede { font-size: 1.0625rem; }
  .hero { padding: 7rem 0 3.5rem; }
  .hero-lede { font-size: 1.0625rem; }
  .hero-actions { display: grid; width: 100%; }
  .hero-actions .button { width: 100%; justify-content: space-between; }
  .brief { padding: 1.15rem; border-radius: 1.2rem; }
  /* The desk's name takes its own row; the status and the replay button sit under it, at the right. */
  .brief-top { flex-wrap: wrap; row-gap: .5rem; }
  .brief-desk { flex: 1 0 100%; }
  .brief-ask p { font-size: 1.0625rem; }
  .seg { font-size: .6875rem; }
  .run-bar { margin-inline: -16px; padding-inline: 16px; }
  .run-tabs { border-radius: 1rem; }
  .run-toggle { width: 2.4rem; height: 2.4rem; }
  .scene { padding: 1.35rem; border-radius: 1.2rem; }
  .art-two { grid-template-columns: 1fr; gap: .6rem; }
  .ret { grid-template-columns: 1fr auto; align-items: center; gap: .35rem 1rem; padding: .95rem 1.1rem; }
  .ret small, .ret span { grid-column: 1; }
  .ret b { grid-column: 2; grid-row: 1 / span 2; }
  .ladder { height: 13rem; gap: .5rem; }
  .panel { padding: 1.4rem; border-radius: 1.2rem; }
  .claim { font-size: 1.0625rem; }
  .source dd { grid-template-columns: 5.4rem 1fr; }
  .rules, .steps { grid-template-columns: 1fr; }
  .family { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.3rem; }
  .walk { padding: 1.3rem; border-radius: 1.2rem; }
  .walk-fields { grid-template-columns: 1fr; }
  .sovereign { padding: 1.2rem; }
  .sov-line { white-space: normal; font-size: 1.3rem; }
  .sov-points { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { justify-items: start; }
  .footer-links nav { justify-content: flex-start; margin-left: -.6rem; }
  .footer-bottom { flex-direction: column; gap: .6rem; }
  .footer-note { text-align: left; flex-basis: auto; }
}
@media (max-width: 380px) {
  .brand-by { display: none; }
  .run-tab { padding: .5rem .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
