/* Spectrum: components. Tokens only for spacing, colour and type.
   Signature: the mark as a glass crystal that scans a floor of the client's systems. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + var(--s-5)); background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: transparent; color: var(--fg); font-family: var(--font-body); font-size: var(--t-body); line-height: 1.55; font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s-4); top: var(--s-4); z-index: 100; padding: var(--s-3) var(--s-4); background: var(--fg); color: var(--bg); transform: translateY(-200%); }
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: var(--section) 0; }
.section--line { border-top: 1px solid var(--line); }
.quiet { color: var(--fg-quiet); }

/* ---------- moving background (fixed, follows the mouse) ---------- */
@property --mx { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --my { syntax: "<number>"; inherits: true; initial-value: 0; }
.bg, .grain { position: fixed; inset: 0; pointer-events: none; }
.bg { z-index: -3; overflow: hidden; transition: --mx var(--slow) var(--ease), --my var(--slow) var(--ease); }
.bg__drift { position: absolute; inset: -10%; animation: drift 22s ease-in-out infinite alternate; }
.bg__blob { position: absolute; }
.bg__blob--steel { left: 48%; top: -20%; width: 1000px; height: 900px; background: radial-gradient(closest-side, rgba(70, 110, 150, 0.34), rgba(70, 110, 150, 0)); transform: translate(calc(var(--mx) * -140px), calc(var(--my) * -90px)); }
.bg__blob--frost { left: 8%; top: 25%; width: 620px; height: 560px; background: radial-gradient(closest-side, rgba(180, 210, 240, 0.10), rgba(180, 210, 240, 0)); transform: translate(calc(var(--mx) * 180px), calc(var(--my) * 130px)); }
.bg__blob--ember { left: 30%; top: 70%; width: 900px; height: 500px; background: radial-gradient(closest-side, rgba(255, 107, 61, 0.13), rgba(255, 107, 61, 0)); transform: translate(calc(var(--mx) * -70px), calc(var(--my) * 50px)); }
.bg__lens { position: absolute; inset: 0; opacity: 0; transition: opacity var(--mid) var(--ease); background-image: radial-gradient(circle, rgba(238, 241, 244, 0.22) 1px, transparent 1.5px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(circle 280px at calc((var(--mx) + 0.5) * 100%) calc((var(--my) + 0.5) * 100%), #000, rgba(0, 0, 0, 0)); mask-image: radial-gradient(circle 280px at calc((var(--mx) + 0.5) * 100%) calc((var(--my) + 0.5) * 100%), #000, rgba(0, 0, 0, 0)); }
.has-pointer .bg__lens { opacity: 1; }
.grain { z-index: 60; background: url("../assets/img/grain.png") 0 0 / 256px 256px; opacity: 0.55; mix-blend-mode: overlay; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(4%, 3%) scale(1.08); } }

/* ---------- the living point field (WebGL, scripts/scene.js) ---------- */
.field { position: fixed; inset: 0; z-index: -2; width: 100vw; height: 100vh; pointer-events: none; }
.field-labels { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.field-label { position: absolute; left: 0; top: 0; margin: -12px 0 0 var(--s-3); display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-mono); font-size: var(--t-small); line-height: 16px; color: var(--fg); border: 1px solid var(--line-strong); background: rgba(5, 7, 11, 0.6); padding: var(--s-1) var(--s-2); white-space: nowrap; opacity: 0; will-change: transform, opacity; }
.field-label::before { content: ""; width: 6px; height: 6px; background: var(--fg); }
.field-label.is-alert { border-color: rgba(255, 107, 61, 0.6); }
.field-label.is-alert::before { background: var(--accent); }
.gl .stage-wrap, .gl .hero__floor, .gl .hero__horizon, .gl .hub > svg, .gl .hub > .crystal, .gl .close > .crystal, .gl .close__rays, .gl .bg__lens { display: none; }
.gl .hero__haze { opacity: 0.6; }
@media (min-width: 768px) { .gl .hub { height: 640px; } }
@media (max-width: 1023px) { .gl .hero { min-height: 100svh; } .gl .hero__foot { margin-top: auto; } }

/* ---------- concept strip + header ---------- */
.concept { position: relative; z-index: 51; padding: var(--s-2) var(--gutter); font-family: var(--font-mono); font-size: var(--t-small); line-height: 1.4; color: var(--fg-quiet); text-align: center; border-bottom: 1px solid var(--line); background: var(--bg); }
.top { position: sticky; top: 0; z-index: 50; height: var(--header); margin-bottom: calc(-1 * var(--header)); }
.top::before { content: ""; position: absolute; inset: 0; background: var(--bg); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity var(--fast) linear; }
.top.is-stuck::before, .top.is-open::before { opacity: 1; }
.top__in { position: relative; height: 100%; display: grid; grid-template-columns: auto auto; align-items: center; justify-content: space-between; gap: var(--s-5); }
.logo { display: inline-flex; align-items: center; gap: var(--s-3); min-height: var(--control); text-decoration: none; }
.logo__mark { width: 27px; height: 28px; color: var(--fg); }
.logo__word { width: 122px; height: auto; }
.top__links { display: none; gap: var(--s-6); font-size: var(--t-body); }
.top__links a, .top__cta { display: inline-flex; align-items: center; min-height: var(--control); text-decoration: none; }
.top__links a { color: var(--fg); transition: color var(--fast) linear; }
.top__links a:hover { color: var(--fg-quiet); }
.top__cta { display: none; gap: var(--s-2); font-size: var(--t-body); white-space: nowrap; }
.top__cta span { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.menu-btn { width: var(--control); height: var(--control); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-2); background: transparent; border: 1px solid var(--line-strong); cursor: pointer; padding: 0; }
.menu-btn span { width: 18px; height: 1px; background: currentColor; transition: transform var(--fast) var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.menu { position: fixed; inset: var(--menu-top, var(--header)) 0 auto; z-index: 49; padding: var(--s-5) var(--gutter) var(--s-7); background: rgba(5, 7, 11, 0.97); border-bottom: 1px solid var(--line); }
.menu[hidden] { display: none; }
.menu a { display: flex; align-items: center; min-height: 56px; font-size: 28px; letter-spacing: -0.04em; text-decoration: none; border-bottom: 1px solid var(--line); }

/* ---------- small parts ---------- */
.tag { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-mono); font-size: var(--t-small); line-height: 16px; color: var(--fg); border: 1px solid var(--line-strong); background: rgba(5, 7, 11, 0.6); padding: var(--s-1) var(--s-2); white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; background: var(--fg); flex: none; }
.tag--alert::before { background: var(--accent); }
.num { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-mono); font-size: var(--t-small); color: var(--fg-quiet); }
.num::before { content: ""; width: 4px; height: 4px; background: var(--fg-quiet); }
.num span { border: 1px solid var(--line-strong); padding: 2px var(--s-2); color: var(--fg); line-height: 1.4; }
.mono { font-family: var(--font-mono); font-size: var(--t-small); color: var(--fg-quiet); }
.h2 { font-weight: 500; font-size: var(--t-h2); line-height: 1; letter-spacing: var(--track-head); text-wrap: balance; }
.h2 .quiet, .h1 .quiet { color: var(--fg-quiet); }
.h3 { font-weight: 500; font-size: var(--t-h3); line-height: 1.04; letter-spacing: var(--track-head); }
.body { font-size: var(--t-body); line-height: 1.55; color: var(--fg-body); max-width: 36em; }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--fg-body); max-width: 28em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3); min-height: 52px; padding: 0 var(--s-5); background: var(--fg); color: var(--bg); font-weight: 500; font-size: var(--t-body); text-decoration: none; white-space: nowrap; border-radius: 2px; transition: background-color var(--fast) linear; }
.btn:hover { background: #FFFFFF; }
.btn:active { transform: scale(0.98); }
.arrow { width: 13px; height: 13px; flex: none; }
.link { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--control); font-size: 18px; text-decoration: none; white-space: nowrap; }
.link span { border-bottom: 1px solid currentColor; padding-bottom: var(--s-1); }
.link:hover { color: #FFFFFF; }
.glass { position: relative; background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--line); }
.brackets::before, .brackets::after, .brackets > .br::before, .brackets > .br::after { content: ""; position: absolute; width: 14px; height: 14px; border-color: rgba(238, 241, 244, 0.55); border-style: solid; pointer-events: none; }
.brackets::before { top: -10px; left: -10px; border-width: 1px 0 0 1px; }
.brackets::after { top: -10px; right: -10px; border-width: 1px 1px 0 0; }
.brackets > .br::before { bottom: -10px; left: -10px; border-width: 0 0 1px 1px; }
.brackets > .br::after { bottom: -10px; right: -10px; border-width: 0 1px 1px 0; }
.brackets > .br { position: absolute; inset: 0; pointer-events: none; }

/* ---------- crystal (the mark in 3D) ---------- */
.crystal { position: absolute; width: 0; height: 0; perspective: 1400px; }
.crystal__tilt { position: absolute; transform-style: preserve-3d; transform: rotateX(-10deg); }
.crystal__tilt--live { transition: --mx var(--slow) var(--ease), --my var(--slow) var(--ease); transform: rotateX(calc(-10deg - var(--my) * 16deg)) rotateY(calc(var(--mx) * 28deg)); }
.crystal__body { position: absolute; transform-style: preserve-3d; transform: rotateY(45deg); }
.crystal__body--spin { animation: spin 24s linear infinite; }
.crystal__f { position: absolute; }
@keyframes spin { from { transform: rotateY(45deg); } to { transform: rotateY(405deg); } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(100svh, 760px); padding-top: var(--s-10); padding-bottom: var(--s-8); display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.hero__haze { position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse 60% 55% at 70% 38%, rgba(70, 105, 140, 0.30), rgba(5, 7, 11, 0) 70%), radial-gradient(ellipse 45% 30% at 70% 88%, rgba(255, 107, 61, 0.10), rgba(5, 7, 11, 0) 70%); }
.hero__floor { position: absolute; z-index: -1; left: -10%; right: -10%; bottom: -520px; height: 900px; transform-origin: 50% 0; transform: perspective(900px) rotateX(74deg); background-image: radial-gradient(circle, rgba(238, 241, 244, 0.38) 1.3px, transparent 1.9px); background-size: 34px 34px; -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), #000 30%, #000 60%, rgba(0, 0, 0, 0)); mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), #000 30%, #000 60%, rgba(0, 0, 0, 0)); }
.hero__horizon { position: absolute; z-index: -1; left: 0; right: 0; bottom: 380px; height: 1px; background: linear-gradient(to right, rgba(238, 241, 244, 0), rgba(238, 241, 244, 0.25) 50%, rgba(238, 241, 244, 0)); }
.hero__copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-6); }
.h1 { font-weight: 500; font-size: var(--t-display); line-height: 0.92; letter-spacing: var(--track-tight); max-width: 7.2em; }
.h1 .line { display: block; }
.hero__foot { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); margin-top: auto; }
.hero__scroll { display: none; align-items: center; gap: var(--s-3); }
.hero__scroll::before { content: ""; width: 6px; height: 6px; background: var(--accent); }

.stage-wrap { position: relative; height: 380px; margin: var(--s-5) calc(-1 * var(--gutter)) 0; }
.stage { position: absolute; left: 50%; top: 0; width: 760px; height: 900px; transform-origin: 50% 0; transform: translateX(-50%) scale(0.46); margin-top: -96px; }
.stage__cone { position: absolute; left: 60px; top: 392px; width: 520px; height: 330px; }
.stage__cone i { position: absolute; inset: 0; }
.stage__cone i:nth-child(1) { clip-path: polygon(50% 0, 100% 100%, 0 100%); background: linear-gradient(to bottom, rgba(238, 241, 244, 0.30), rgba(160, 195, 230, 0.10) 60%, rgba(160, 195, 230, 0.02)); }
.stage__cone i:nth-child(2) { clip-path: polygon(50% 0, 50.4% 0, 79% 100%, 78.4% 100%); background: rgba(238, 241, 244, 0.55); }
.stage__cone i:nth-child(3) { clip-path: polygon(49.6% 0, 50% 0, 21.6% 100%, 21% 100%); background: rgba(238, 241, 244, 0.55); }
.stage__cone i:nth-child(4) { clip-path: polygon(49.8% 0, 50.2% 0, 50.3% 100%, 49.7% 100%); background: rgba(238, 241, 244, 0.7); }
.stage__ring { position: absolute; left: 320px; top: 722px; width: 0; height: 0; }
.stage__ring i { position: absolute; border-radius: 50%; border: 1px solid rgba(238, 241, 244, 0.35); }
.stage__ring i:nth-child(1) { left: -262px; top: -46px; width: 524px; height: 92px; }
.stage__ring i:nth-child(2) { left: 0; top: 0; width: 640px; height: 112px; border-color: rgba(238, 241, 244, 0.6); animation: ping 3.2s var(--ease) infinite; }
@keyframes ping { from { transform: translate(-50%, -50%) scale(0.25); opacity: 0.9; } to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
.stage__svg { position: absolute; inset: 0; overflow: visible; }
.stage .tag { position: absolute; }

/* ---------- hero headline: scanned and decoded (scripts/main.js) ---------- */
.hero .h1 { position: relative; }
.h1--decode .line { animation: none; position: relative; }
.h1 .ch { display: inline-block; white-space: pre; transition: color var(--fast) linear; }
.h1 .ch.is-hidden { opacity: 0; }
.h1 .ch.is-scramble { color: var(--accent); }
.h1 .beam { position: absolute; left: 0; top: 10%; width: 2px; height: 80%; background: var(--accent); box-shadow: 0 0 16px 2px rgba(255, 107, 61, 0.55); pointer-events: none; }
.h1.is-ready::after { content: ""; position: absolute; left: -2%; right: -2%; top: 0; bottom: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255, 107, 61, 0), rgba(255, 107, 61, 0.9) 30%, rgba(255, 107, 61, 0.9) 70%, rgba(255, 107, 61, 0)) no-repeat 0 0 / 100% 1px; opacity: 0; animation: h1-scan 9s linear infinite; }
@keyframes h1-scan { 0% { background-position: 0 0; opacity: 0; } 2% { opacity: 1; } 12% { background-position: 0 100%; opacity: 1; } 13%, 100% { background-position: 0 100%; opacity: 0; } }

/* ---------- statement ---------- */
.statement .h2 { max-width: 15em; }

/* ---------- problem stack ---------- */
.problems { padding-top: 0; }
.pstack { display: flex; flex-direction: column; gap: var(--s-6); }
.pcard { display: grid; grid-template-columns: minmax(0, 1fr); }
.pcard.glass { background: #0A0D12; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 -24px 48px rgba(5, 7, 11, 0.6); }
.pcard__text { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-6); padding: var(--s-6) var(--s-5); }
.pcard__head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); }
.pcard__fig { position: relative; border-top: 1px solid var(--line); background: rgba(5, 7, 11, 0.35); overflow: hidden; }
.pcard__fig svg { width: 100%; height: auto; }

/* ---------- problem diagrams: each tells its story while on screen ---------- */
.pcard__fig .comet { opacity: 0; stroke-dasharray: 10 140; stroke-dashoffset: 10; }
.f1-probe, .f1-ring { opacity: 0; }
.f1-ring, .f1-hub, .f1-open, .f1-l, .f2-leak, .f2-k, .f2-l { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  /* 01 · the scan finds the open door (6s loop) */
  .is-live .f1-a { animation: f1-a 6s linear infinite; }
  .is-live .f1-b, .is-live .f1-c { animation: f1-bc 6s linear infinite; }
  .is-live .f1-d { animation: f1-d 6s linear infinite; }
  .is-live .f1-hub { animation: f1-hub 6s var(--ease) infinite; }
  .is-live .f1-probe { animation: f1-probe 6s ease-out infinite; }
  .is-live .f1-open { animation: f1-open 6s var(--ease) infinite; }
  .is-live .f1-ring { animation: f1-ring 6s ease-out infinite; }
  .is-live .f1-ring-2 { animation-delay: 0.6s; }
  .is-live .f1-l1 { animation: f1-l1 6s var(--ease) infinite; }
  .is-live .f1-l2 { animation: f1-l2 6s var(--ease) infinite; }
  .is-live .f1-l3 { animation: f1-l3 6s var(--ease) infinite; }
  /* 02 · one password unlocks three systems (6.5s loop) */
  .is-live .f2-leak { animation: f2-leak 6.5s var(--ease) infinite; }
  .is-live .f2-a { animation: f2-a 6.5s linear infinite; }
  .is-live .f2-b { animation: f2-b 6.5s linear infinite; }
  .is-live .f2-c { animation: f2-c 6.5s linear infinite; }
  .is-live .f2-d { animation: f2-d 6.5s linear infinite; }
  .is-live .f2-un1 { animation: f2-un1 6.5s ease-out infinite; }
  .is-live .f2-un2 { animation: f2-un2 6.5s ease-out infinite; }
  .is-live .f2-un3 { animation: f2-un3 6.5s ease-out infinite; }
  .is-live .f2-k1 { animation: f2-k1 6.5s var(--ease) infinite; }
  .is-live .f2-k2 { animation: f2-k2 6.5s var(--ease) infinite; }
  .is-live .f2-k3 { animation: f2-k3 6.5s var(--ease) infinite; }
  .is-live .f2-l1 { animation: f2-l1 6.5s var(--ease) infinite; }
  .is-live .f2-l2 { animation: f2-l2 6.5s var(--ease) infinite; }
  /* 03 · the feed never stops; the warning goes by (9s loop) */
  .is-live .f3-feed { animation: f3-feed 9s linear infinite; }
  .is-live .f3-a { animation: f3-a 1.8s linear infinite; }
  .is-live .f3-l1 { animation: f3-l1 1.8s ease-in-out infinite; }
}
@keyframes f1-a { 0% { opacity: 1; stroke-dashoffset: 10; } 12% { opacity: 1; stroke-dashoffset: -100; } 12.1%, 100% { opacity: 0; stroke-dashoffset: -100; } }
@keyframes f1-bc { 0%, 12% { opacity: 0; stroke-dashoffset: 10; } 12.1% { opacity: 1; stroke-dashoffset: 10; } 26% { opacity: 1; stroke-dashoffset: -100; } 26.1%, 100% { opacity: 0; stroke-dashoffset: -100; } }
@keyframes f1-d { 0%, 12% { opacity: 0; stroke-dashoffset: 10; } 12.1% { opacity: 1; stroke-dashoffset: 10; } 30% { opacity: 1; stroke-dashoffset: -100; } 30.1%, 100% { opacity: 0; stroke-dashoffset: -100; } }
@keyframes f1-hub { 0%, 10% { transform: scale(1); } 13% { transform: scale(2); } 20%, 100% { transform: scale(1); } }
@keyframes f1-probe { 0%, 25% { opacity: 0; } 28% { opacity: 0.9; } 38%, 100% { opacity: 0; } }
@keyframes f1-open { 0%, 30% { transform: translateY(0); } 36% { transform: translateY(-12px); } 46%, 100% { transform: translateY(0); } }
@keyframes f1-ring { 0%, 30% { opacity: 0; transform: scale(0.6); } 32% { opacity: 1; transform: scale(0.8); } 64%, 100% { opacity: 0; transform: scale(2.6); } }
@keyframes f1-l1 { 0%, 44% { opacity: 0; transform: translateX(12px); } 52%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes f1-l2 { 0%, 50% { opacity: 0; transform: translateX(12px); } 58%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes f1-l3 { 0%, 56% { opacity: 0; transform: translateX(12px); } 64%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes f2-leak { 0% { opacity: 0; transform: translateY(-8px); } 8%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes f2-a { 0%, 8% { opacity: 0; stroke-dashoffset: 10; } 8.1% { opacity: 1; stroke-dashoffset: 10; } 18% { opacity: 1; stroke-dashoffset: -100; } 18.1%, 100% { opacity: 0; stroke-dashoffset: -100; } }
@keyframes f2-b { 0%, 18% { opacity: 0; stroke-dashoffset: 10; } 18.1% { opacity: 1; stroke-dashoffset: 10; } 32% { opacity: 1; stroke-dashoffset: -100; } 32.1%, 100% { opacity: 0; stroke-dashoffset: -100; } }
@keyframes f2-c { 0%, 26% { opacity: 0; stroke-dashoffset: 10; } 26.1% { opacity: 1; stroke-dashoffset: 10; } 40% { opacity: 1; stroke-dashoffset: -100; } 40.1%, 100% { opacity: 0; stroke-dashoffset: -100; } }
@keyframes f2-d { 0%, 34% { opacity: 0; stroke-dashoffset: 10; } 34.1% { opacity: 1; stroke-dashoffset: 10; } 48% { opacity: 1; stroke-dashoffset: -100; } 48.1%, 100% { opacity: 0; stroke-dashoffset: -100; } }
@keyframes f2-un1 { 0%, 31% { opacity: 0; } 34%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes f2-un2 { 0%, 39% { opacity: 0; } 42%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes f2-un3 { 0%, 47% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes f2-k1 { 0%, 31% { opacity: 0; transform: scale(0.2); } 35% { opacity: 1; transform: scale(1.6); } 40%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes f2-k2 { 0%, 39% { opacity: 0; transform: scale(0.2); } 43% { opacity: 1; transform: scale(1.6); } 48%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes f2-k3 { 0%, 47% { opacity: 0; transform: scale(0.2); } 51% { opacity: 1; transform: scale(1.6); } 56%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes f2-l1 { 0%, 58% { opacity: 0; transform: translateX(12px); } 66%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes f2-l2 { 0%, 64% { opacity: 0; transform: translateX(12px); } 72%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes f3-feed { from { transform: translateY(0); } to { transform: translateY(-240px); } }
@keyframes f3-a { 0% { opacity: 1; stroke-dashoffset: 10; } 70% { opacity: 1; stroke-dashoffset: -100; } 70.1%, 100% { opacity: 0; stroke-dashoffset: -100; } }
@keyframes f3-l1 { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

/* ---------- services ---------- */
.services__head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); }
.hub { position: relative; display: none; margin: var(--head-gap) 0 var(--s-7); }
.hub svg { width: 100%; height: auto; }
.hub .crystal { left: 50%; top: 50%; }
.watch { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-6) 0 var(--s-7); }
.acc { display: flex; flex-direction: column; }
.acc__item { position: relative; border-top: 1px solid var(--line); transition: background-color var(--mid) var(--ease); }
.acc__item:last-child { border-bottom: 1px solid var(--line); }
.acc__item.is-open { background: var(--glass-on); border-color: transparent; }
.acc__item.is-open + .acc__item { border-top-color: transparent; }
.acc__item:not(.is-open) .brackets-on, .acc__item:not(.is-open)::before, .acc__item:not(.is-open)::after { display: none; }
.acc__btn { width: 100%; display: grid; grid-template-columns: 72px minmax(0, 1fr) var(--control); align-items: center; gap: var(--s-4); padding: var(--s-5) var(--s-4); background: none; border: 0; text-align: left; cursor: pointer; }
.acc__title { font-weight: 500; font-size: clamp(28px, 2.25vw, 32px); line-height: 1.05; letter-spacing: -0.05em; color: var(--fg-quiet); transition: color var(--fast) linear; }
.acc__item.is-open .acc__title, .acc__btn:hover .acc__title { color: var(--fg); }
.acc__sign { position: relative; width: var(--control); height: var(--control); border: 1px solid var(--line-strong); }
.acc__sign::before, .acc__sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: var(--fg); transform: translate(-50%, -50%); }
.acc__sign::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--fast) var(--ease); }
.acc__btn[aria-expanded="true"] .acc__sign::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc__panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); padding: 0 var(--s-4) var(--s-6) var(--acc-in); }
.acc__panel[hidden] { display: none; }
.acc__panel .link { justify-self: start; }

/* ---------- process (pinned numeral) ---------- */
.process__intro { text-align: center; font-size: 18px; line-height: 1.3; letter-spacing: -0.03em; }
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); margin-top: var(--head-gap); }
.step { display: flex; flex-direction: column; align-items: center; gap: var(--s-5); text-align: center; }
.step__n { font-size: clamp(120px, 14vw, 200px); line-height: 0.9; letter-spacing: -0.07em; font-variant-numeric: tabular-nums; }
.step__dot { width: 5px; height: 5px; background: var(--fg); }
.step .body { max-width: 24em; }
.process__index, .process__bars { display: none; }

.js-pin .process { height: 400vh; padding: 0; }
.js-pin .process__pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.js-pin .steps { position: relative; display: block; height: clamp(360px, 52svh, 440px); margin-top: var(--s-7); }
.js-pin .step { position: absolute; inset: 0; opacity: 0; transform: translateY(24px); transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease); pointer-events: none; }
.js-pin .step.is-on { opacity: 1; transform: none; pointer-events: auto; }
.js-pin .process__bars { position: absolute; left: 50%; bottom: 0; display: flex; align-items: flex-end; gap: var(--s-7); transform: translateX(-50%); }
.process__bars i { width: 1px; background: rgba(238, 241, 244, 0.12); transition: background-color var(--mid) linear; }
.process__bars i.is-on { background: rgba(238, 241, 244, 0.7); }

/* ---------- report ---------- */
.report__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-8) var(--col-gap); align-items: start; }
.report__side { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-6); }
.quote { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-5); }
.quote p { font-size: var(--t-lead); line-height: 1.45; letter-spacing: -0.02em; }
.sheet__bar { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.sheet__body { display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-6) var(--s-5); }
.sheet__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.sheet h3 { font-weight: 500; font-size: 32px; line-height: 1.05; letter-spacing: -0.05em; }
.sheet dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2) var(--s-5); font-size: var(--t-body); line-height: 1.5; }
.sheet dt { font-family: var(--font-mono); font-size: var(--t-small); color: var(--fg-quiet); padding-top: var(--s-3); }
.sheet dd { color: var(--fg-body); }
.sheet dd.code { font-family: var(--font-mono); font-size: var(--t-body); color: var(--fg); }
.sheet dd.ok { display: flex; align-items: center; gap: var(--s-3); color: var(--fg); }
.sheet dd.ok::before { content: ""; width: 6px; height: 6px; background: var(--fg); }

/* ---------- daylight: the dot grid swells into light (scripts/main.js sets --w) ---------- */
.wipe { position: fixed; inset: 0; z-index: -1; pointer-events: none; --w: 0; background: radial-gradient(circle, var(--paper) calc(var(--w) * 13.2px), transparent calc(var(--w) * 13.2px + 0.6px)) 0 0 / 18px 18px; }
.wipe.is-full { background: var(--paper); }
.daylight { position: relative; height: 240vh; }
.daylight__pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; mix-blend-mode: difference; }
.daylight__word { font-weight: 500; font-size: clamp(88px, 19vw, 300px); line-height: 0.84; letter-spacing: -0.075em; color: var(--paper); transform: scale(var(--grow, 1)); transform-origin: 0 50%; }

/* the scope beside "In plain sight": outside the colour-flip layer, so its orange stays true */
.daylight__side { position: sticky; top: 0; height: 100svh; margin-top: -100svh; pointer-events: none; display: flex; align-items: center; color: var(--paper); }
.js-wipe .daylight__side { color: #0A0D12; opacity: var(--lit, 0); }
.daylight__sidewrap { display: flex; justify-content: flex-end; align-items: center; height: 100%; }
.sight { position: relative; width: clamp(180px, 30vw, 440px); aspect-ratio: 1; transform: translateY(var(--sight-y, 0px)); }
.sight__svg { width: 100%; height: 100%; overflow: visible; }
.sight__cross, .sight__line, .sight__ticks path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.sight__line--thin { stroke-dasharray: 2 6; opacity: 0.6; }
.sight__ticks path { opacity: 0.55; }
.sight__text { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; fill: currentColor; }
.sight__hit { fill: var(--accent); }
.sight__mark { fill: currentColor; }
.sight__spin { transform-box: view-box; transform-origin: 50% 50%; animation: sight-spin 40s linear infinite; }
@keyframes sight-spin { to { transform: rotate(360deg); } }
.sight__label { position: absolute; left: 50%; bottom: -4%; transform: translateX(-50%); }
@media (max-width: 767px) {
  .daylight__sidewrap { align-items: flex-end; padding-bottom: var(--s-9); }
  .sight { width: 52vw; }
}
@media (prefers-reduced-motion: reduce) {
  .sight__spin { animation: none; }
  .daylight__side { position: static; height: auto; margin-top: 0; padding-bottom: var(--section); }
  .daylight__sidewrap { height: auto; }
}

.tone-light { background: var(--paper); }
.js-wipe .tone-light { background: transparent; }
.tone-light { --fg: #0A0D12; --fg-body: #2E3640; --fg-quiet: #57616C; --line: rgba(10, 13, 18, 0.12); --line-strong: rgba(10, 13, 18, 0.28); --glass: rgba(10, 13, 18, 0.03); --glass-on: rgba(10, 13, 18, 0.05); color: var(--fg); }
.tone-light .tag { background: rgba(238, 241, 244, 0.8); }
.tone-light .btn { color: var(--paper); }
.tone-light .btn:hover { background: #000; }
.tone-light .glass { background: rgba(255, 255, 255, 0.55); -webkit-backdrop-filter: none; backdrop-filter: none; }
.tone-light .brackets::before, .tone-light .brackets::after, .tone-light .brackets > .br::before, .tone-light .brackets > .br::after { border-color: rgba(10, 13, 18, 0.45); }
.top.is-light { --fg: #0A0D12; --line: rgba(10, 13, 18, 0.12); --line-strong: rgba(10, 13, 18, 0.28); color: var(--fg); }
.top.is-light::before { background: var(--paper); }
.top.is-light .logo__word { filter: invert(1) brightness(0.15); }
.top.is-light .menu-btn { color: var(--fg); }

/* ---------- giant type: port numbers slide past as you scroll ---------- */
.ports { overflow: hidden; padding: var(--s-8) 0; }
.ports__row { display: flex; gap: 0.35em; white-space: nowrap; font-weight: 500; font-size: clamp(96px, 18vw, 280px); line-height: 0.9; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; color: transparent; -webkit-text-stroke: 1px rgba(238, 241, 244, 0.28); transform: translateX(var(--x, 0px)); will-change: transform; }
.ports__row .is-alert { -webkit-text-stroke: 1.5px var(--accent); }

/* ---------- what we see about you ---------- */
.seen__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-8) var(--col-gap); align-items: start; }
.seen__side { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); }
.sheet .dossier__list { display: flex; flex-direction: column; gap: 0; padding: var(--s-2) var(--s-5) var(--s-5); }
.dossier__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-1) var(--s-5); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.dossier__row dt { font-family: var(--font-mono); font-size: var(--t-small); color: var(--fg-quiet); padding-top: 0; }
.dossier__row dd { font-family: var(--font-mono); font-size: var(--t-body); color: var(--fg); overflow-wrap: anywhere; min-height: 1.5em; }
.dossier__row.is-scan dd { color: var(--accent); }
.dossier__print { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5); border-top: 1px solid var(--line); }
.dossier__id { font-family: var(--font-mono); font-size: var(--t-h3); letter-spacing: 0.02em; color: var(--fg); font-variant-numeric: tabular-nums; }

/* ---------- proof ---------- */
.proof__head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); margin-bottom: var(--head-gap); }
.proof__logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.proof__logos li { display: flex; align-items: center; justify-content: center; min-height: 128px; padding: var(--s-5); text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.client { display: inline-flex; align-items: center; gap: var(--s-3); font-weight: 500; font-size: var(--t-lead); letter-spacing: -0.03em; color: var(--fg); white-space: nowrap; }
.client svg { width: 24px; height: 24px; flex: none; }
.client--caps { font-size: var(--t-body); letter-spacing: 0.08em; }
@media (max-width: 767px) { .client { flex-direction: column; gap: var(--s-2); font-size: var(--t-body); white-space: normal; text-align: center; } .client--caps { font-size: var(--t-small); } }
.client--lower { letter-spacing: -0.05em; }
.client--serifless { font-weight: 400; }
.foot__col .mono + .mono { margin-top: 0; }
.proof__stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6) var(--col-gap); margin-top: var(--s-8); }
.proof__stats li { display: flex; flex-direction: column; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.proof__n { font-weight: 500; font-size: var(--t-h3); line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.proof__certs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-7); }

@media (min-width: 768px) {
  .proof__logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proof__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dossier__row { grid-template-columns: 132px minmax(0, 1fr); align-items: baseline; }
}
@media (min-width: 1024px) {
  .seen__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seen__side { position: sticky; top: calc(var(--header) + var(--s-7)); }
}
@media (prefers-reduced-motion: reduce) {
  .daylight { height: auto; }
  .daylight__pin { position: static; height: auto; padding: var(--section) 0; }
}

/* ---------- close ---------- */
.close { overflow: hidden; isolation: isolate; }
.close__in { margin-top: var(--s-10); }
.close__haze { position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse 55% 45% at 50% 100%, rgba(255, 107, 61, 0.16), rgba(5, 7, 11, 0) 70%), radial-gradient(ellipse 40% 30% at 50% 18%, rgba(70, 105, 140, 0.25), rgba(5, 7, 11, 0) 70%); }
.close__rays { position: absolute; z-index: -1; left: 50%; top: 200px; width: 0; height: 0; }
.close__rays i { position: absolute; left: 0; top: 0; width: 1px; height: 900px; transform-origin: 0 0; background: linear-gradient(to bottom, rgba(238, 241, 244, 0.22), rgba(238, 241, 244, 0)); }
.close .crystal { left: 50%; top: 150px; }
.close__in { display: flex; flex-direction: column; align-items: center; gap: var(--s-7); text-align: center; }
.close .h1 { max-width: 11em; text-wrap: balance; }
.close__mail { display: inline-flex; align-items: center; min-height: var(--control); text-decoration: none; }
.close__mail:hover { color: var(--fg); }
.close__acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-4) var(--s-6); }

/* ---------- footer ---------- */
.foot { position: relative; padding: var(--s-9) 0 var(--s-6); border-top: 1px solid var(--line); }
.foot__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--col-gap); font-size: var(--t-body); }
.foot__col { display: flex; flex-direction: column; align-items: flex-start; }
.foot__col .mono { margin-bottom: var(--s-2); }
.foot__col a { display: inline-flex; align-items: center; min-height: var(--control); text-decoration: none; }
.foot__col a:hover { color: var(--fg-quiet); }
.foot__col a.alert { color: var(--accent); }
.foot__word { width: 100%; height: auto; margin: var(--s-9) 0 var(--s-6); }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-5); }

/* ---------- entrances ---------- */
.h1 .line { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--intro, 0.1s) + var(--i, 0) * 0.08s); }
@keyframes rise { from { opacity: 0; transform: translateY(0.35em); } }
@supports (animation-timeline: view()) {
  [data-reveal] { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  @keyframes reveal { from { opacity: 0; transform: translateY(32px); } }
}

/* ---------- intro (logo diffuses into the scan) ---------- */
.intro { position: fixed; inset: 0; z-index: 80; background: var(--bg); }
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__count { position: absolute; left: var(--gutter); bottom: var(--s-6); font-family: var(--font-mono); font-size: var(--t-small); color: var(--fg-quiet); font-variant-numeric: tabular-nums; }
.intro__skip { position: absolute; right: var(--gutter); bottom: var(--s-5); min-height: var(--control); padding: 0 var(--s-3); background: none; border: 0; font-family: var(--font-mono); font-size: var(--t-small); color: var(--fg-quiet); cursor: pointer; }
.intro.is-out { opacity: 0; transition: opacity 0.5s linear; }
html.intro-pending body::before { content: ""; position: fixed; inset: 0; z-index: 79; background: var(--bg); animation: intro-safety 0.3s linear 3s forwards; }
@keyframes intro-safety { to { opacity: 0; visibility: hidden; } }

/* ---------- 768 and up ---------- */
@media (min-width: 768px) {
  .stage-wrap { height: 600px; }
  .stage { transform: translateX(-50%) scale(0.76); margin-top: -140px; }
  .pcard__text { padding: var(--s-7) var(--s-6); }
  .hub { display: block; }
  .watch { display: none; }
  .acc__btn { grid-template-columns: 120px minmax(0, 1fr) var(--control); gap: var(--s-6); padding: var(--s-6) var(--s-7); }
  .acc__panel { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 0 var(--s-7) var(--s-7) var(--acc-in); }
  .sheet dl { grid-template-columns: 132px minmax(0, 1fr); }
  .sheet dt { padding-top: 2px; }
  .foot__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 1024 and up ---------- */
@media (min-width: 1024px) {
  .top__in { grid-template-columns: 1fr auto 1fr; }
  .top__links { display: flex; justify-self: center; }
  .top__cta { display: inline-flex; justify-self: end; }
  .menu-btn, .menu { display: none !important; }
  .hero { height: max(100svh, 820px); padding-top: var(--section); padding-bottom: var(--s-8); }
  .stage-wrap { position: absolute; inset: 0; height: auto; margin: 0; pointer-events: none; }
  .stage { left: auto; right: 0; top: auto; bottom: 0; margin: 0; transform-origin: 100% 100%; transform: scale(0.8); }
  .hero__foot { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .hero__say { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); max-width: 470px; }
  .hero__scroll { display: inline-flex; }
  .pcard { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 560px; position: sticky; top: calc(var(--header) + var(--s-5) + var(--k, 0) * 16px); }
  .pcard__fig { border-top: 0; border-left: 1px solid var(--line); display: flex; align-items: center; }
  .pcard__text { padding: var(--s-7); }
  .report__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .js-pin .process__index { position: absolute; right: var(--gutter); top: 50%; display: flex; flex-direction: column; gap: var(--s-4); font-family: var(--font-mono); font-size: var(--t-small); color: var(--fg-quiet); }
  .process__index li.is-on { color: var(--fg); }
}
@media (min-width: 1200px) { .stage { transform: scale(0.9); } }
@media (min-width: 1400px) { .stage { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .bg__drift, .crystal__body--spin, .stage__ring i:nth-child(2), .h1 .line, [data-reveal] { animation: none !important; }
  .bg, .crystal__tilt--live { transition: none; }
  .js-pin .step { transition: none; }
}
