@font-face {
  font-family: "HiJO"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("fonts/hijo/hijo-light.otf") format("opentype");
}
@font-face {
  font-family: "HiJO"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/hijo/hijo-regular.otf") format("opentype");
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
}

/* Palette shared with VIGIL (ORITH family). */
:root {
  --bg: #000;
  --fg: #f4f4f2;
  --dim: #8d8d8a;
  --faint: #2a2a2a;
  --line: #1c1c1c;
  --green: #5fe0b0;   /* ground truth / committed */
  --amber: #f2b544;   /* off-the-shelf miss */
  --slate: #8f9bb3;   /* idle */
  --blue: #6cc6ff;    /* SCRUB */
  --pink: #ff8fc0;
  --sans: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "HiJO", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }

/* ---- header ---- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 6vw;
  background: linear-gradient(#000c, #0000);
  transition: background .3s, padding .3s;
}
.top.solid { background: #000000f0; padding-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.wordmark img { height: 20px; width: auto; display: block; }
.wordmark.small img { height: 12px; opacity: 0.8; }
.top nav { display: flex; gap: 44px; }
.top nav a {
  font-family: var(--display); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  opacity: 0.8;
}
.top nav a:hover { opacity: 1; }

/* ---- hero ---- */
.hero { position: relative; height: 100vh; min-height: 620px; overflow: hidden; display: grid; place-items: center; }
.hero-wall {
  position: absolute; inset: -10%;
  background: url("img/hero-mosaic.jpg") 0 0 / 640px 640px repeat;
  filter: grayscale(0.25) brightness(0.52) contrast(1.1);
  animation: drift 140s linear infinite;
  will-change: background-position;
}
@keyframes drift { to { background-position: -1280px -640px; } }
.hero-scan {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, #0000 0%, #6cc6ff10 48%, #6cc6ff26 50%, #6cc6ff10 52%, #0000 100%) 0 0 / 100% 260% no-repeat;
  animation: scan 9s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes scan { 0% { background-position: 0 120%; } 100% { background-position: 0 -20%; } }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, #000b 0%, #0009 45%, #000d 80%, #000 100%); }
.hero-text { position: relative; text-align: center; padding: 0 6vw; max-width: 1100px; }
h1 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 300; font-size: clamp(40px, 6.6vw, 96px); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 32px;
  color: #fff;
  text-wrap: balance;
}
.hero-text h1 { max-width: 15em; margin-left: auto; margin-right: auto; }
.lede { font-size: clamp(17px, 1.6vw, 21px); color: #d6d6d3; max-width: 700px; margin: 0 auto 40px; }
.key { list-style: none; padding: 0; margin: 0; display: flex; gap: 34px; justify-content: center; flex-wrap: wrap; font-size: 14px; color: var(--dim); }
.key li { display: flex; align-items: center; gap: 10px; }
.scroll-cue {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--dim);
}
.scroll-cue::after { content: ""; display: block; width: 1px; height: 34px; background: var(--dim); margin: 12px auto 0; }

/* ---- chips ---- */
.chip {
  display: inline-block; font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: 0.14em;
  padding: 4px 9px 3px; border: 1px solid currentColor; border-radius: 2px; line-height: 1.3; white-space: nowrap;
  text-transform: uppercase;
}
.chip.miss { color: var(--amber); }
.chip.track { color: var(--blue); }
.chip.commit, .chip.truth { color: var(--green); }
.chip.idle { color: var(--slate); }
.chip.cursor { color: var(--blue); }
.chip.clicking { color: var(--green); }
.chip.right { color: var(--amber); }
.chip.scrolling { color: var(--pink); }
.chip.dragging { color: var(--fg); }

/* ---- blocks ---- */
.block { padding: 150px 6vw 40px; max-width: 1360px; margin: 0 auto; }
.block.narrow { max-width: 900px; padding-top: 110px; }
.eyebrow { font-family: var(--display); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); margin: 0 0 24px; }
h2 {
  font-family: var(--display); font-weight: 300; font-size: clamp(24px, 3.3vw, 46px);
  line-height: 1.22; letter-spacing: 0.01em; margin: 0 0 32px;
  text-wrap: balance;
  max-width: 38em;
}
h3 { font-family: var(--display); font-weight: 400; font-size: 19px; letter-spacing: 0.04em; margin: 0 0 16px; }
.intro { font-size: 18px; color: #c9c9c6; max-width: 760px; margin: 0 0 56px; }
.intro:has(+ .intro) { margin-bottom: 22px; }
.byline { margin: 36px 0 0; font-size: 13px; letter-spacing: 0.06em; color: var(--dim); }
.fine { font-size: 12.5px; color: var(--dim); margin: 10px 0 0; }
cite { font-style: normal; color: var(--dim); }

/* ---- see it: real frame ---- */
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.frame { margin: 0; position: relative; }
.frame img { display: block; width: 100%; height: auto; background: #050505; }
.frame .screen-top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.frame .screen-top .chip { background: #000b; }
.frame figcaption { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: #cfcfcc; }
.legend { color: var(--dim); font-size: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 18px; height: 2px; margin-left: 10px; }
.l-truth { background: var(--green); }
.l-scrub { background: #3d5cff; }
.l-miss { background: repeating-linear-gradient(90deg, var(--amber) 0 4px, #0000 4px 7px); }

.evidence { border-left: 1px solid var(--line); padding-left: 34px; position: sticky; top: 100px; }
.ev-row { padding: 0 0 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.ev-row:last-of-type { border-bottom: 0; }
.ev-who { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.outcome { font-family: var(--display); font-size: 40px; font-weight: 300; letter-spacing: 0.02em; line-height: 1; margin-bottom: 10px; }
.outcome.miss { color: var(--amber); }
.outcome.track { color: var(--blue); }
.ev-row p { margin: 0; font-size: 14px; color: #bdbdba; }
.score-bar { height: 3px; background: var(--faint); margin: 14px 0 0; position: relative; }
.score-bar b { position: absolute; inset: 0 auto 0 0; background: var(--fg); width: 0; transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.score-bar.track b { background: var(--blue); }
.provenance { font-size: 11.5px; color: var(--dim); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 0; }

/* ---- the gap: spectrum ---- */
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.pair-set h3 { margin-bottom: 10px; }
.pair-set > p { color: #bdbdba; font-size: 15.5px; margin: 0 0 22px; min-height: 3.2em; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duo figure { margin: 0; }
.duo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; filter: saturate(0.9); }
.duo figcaption { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.duo figure.glove figcaption span:first-child { color: var(--fg); }

/* ---- gestures ---- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.tabs button {
  background: none; border: 1px solid var(--faint); padding: 10px 18px; cursor: pointer;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
  position: relative; overflow: hidden;
}
.tabs button.on { color: var(--fg); border-color: var(--fg); }
.tabs button i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--fg); }
.tabs button.on.auto i { animation: tabfill var(--dur, 4.8s) linear forwards; }
@keyframes tabfill { to { width: 100%; } }

.gstage { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.vs {
  position: relative; aspect-ratio: 16 / 10; background: #070707; border: 1px solid #222; overflow: hidden;
  user-select: none;
}
.vs-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-bottom: 1px solid #1b1b1b; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #6d6d6a; }
.vs-bar b { width: 8px; height: 8px; border-radius: 50%; background: #262626; display: inline-block; }
.vs-bar span { margin-left: 10px; }
.vs-body { position: absolute; inset: 34px 0 0 0; display: grid; grid-template-columns: 15% 1fr; }
.vs-strip { border-right: 1px solid #1b1b1b; overflow: hidden; position: relative; }
.vs-strip-inner { position: absolute; left: 0; right: 0; top: 0; padding: 12px 10px; display: grid; gap: 10px; grid-template-columns: minmax(0, 86px); justify-content: center; }
.slice {
  aspect-ratio: 1; border: 1px solid #262626; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 9% 8% at 50% 74%, #e8e8e5 0 55%, #0000 70%),
    radial-gradient(ellipse 13% 15% at calc(var(--x, 40%)) 48%, #1a1a1a 0 60%, #0000 72%),
    radial-gradient(ellipse 13% 15% at calc(100% - var(--x, 40%)) 48%, #1a1a1a 0 60%, #0000 72%),
    radial-gradient(ellipse 10% 9% at 52% 42%, #b8b8b5 0 55%, #0000 72%),
    radial-gradient(ellipse calc(var(--a, 34%)) calc(var(--b, 40%) - 6%) at 50% 52%, #7c7c7a 0 82%, #d6d6d3 85% 89%, #3a3a39 91% 97%, #0000 99%),
    #0b0b0b;
}
.slice.sel { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.vs-main { position: relative; display: grid; place-items: center; padding: 22px; }
.vs-main .slice { width: min(78%, 62vh); border-color: #1d1d1d; transition: filter .3s; }
.vs-main .slice::after {
  content: attr(data-label); position: absolute; left: 10px; bottom: 8px; font-family: var(--mono); font-size: 10px; color: #8d8d8a;
}
.vs-cursor {
  position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: -3px 0 0 -3px; z-index: 5; opacity: 0;
  transition: opacity .25s;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 2l15 9.5-6.6 1.3L15 20l-2.6 1.3-3.6-7.2L3 18.6z' fill='%23f4f4f2' stroke='%23000' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E");
  filter: drop-shadow(0 2px 6px #000);
}
.vs-cursor.on { opacity: 1; }
.vs-ring { position: absolute; width: 74px; height: 74px; margin: -37px 0 0 -37px; z-index: 4; opacity: 0; transition: opacity .2s; }
.vs-ring.on { opacity: 1; }
.vs-ring circle { fill: none; stroke-width: 2; }
.vs-ring .bg { stroke: #ffffff22; }
.vs-ring .fg { stroke: var(--blue); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.vs-ripple { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; z-index: 4; }
.vs-ripple.go { animation: ripple .6s ease-out; }
@keyframes ripple { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(7); } }
.vs-menu {
  position: absolute; z-index: 6; min-width: 170px; background: #121212; border: 1px solid #333; padding: 6px 0;
  font-size: 12.5px; color: #d0d0cd; opacity: 0; transform: translateY(-4px); transition: opacity .18s, transform .18s; pointer-events: none;
}
.vs-menu.on { opacity: 1; transform: none; }
.vs-menu div { padding: 6px 14px; }
.vs-menu div.hi { background: #1f2a33; color: #fff; }
.vs-ghost { position: absolute; width: 13%; z-index: 4; opacity: 0; pointer-events: none; transform: translate(-30%, -30%); box-shadow: 0 10px 30px #000c; }
.vs-ghost.on { opacity: 0.92; }
.vs-sleep { position: absolute; inset: 34px 0 0 0; background: #000a; display: grid; place-items: center; z-index: 3; transition: opacity .4s; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: #8d8d8a; }
.vs-sleep.off { opacity: 0; }
.vs-state { position: absolute; top: 46px; right: 14px; z-index: 7; }
.vs-state .chip { background: #000c; }

.gesture { border-left: 1px solid var(--line); padding-left: 34px; position: sticky; top: 100px; }
.g-photo { width: 100%; max-width: 260px; aspect-ratio: 1; display: block; margin: -10px 0 8px -14px; object-fit: contain; transition: opacity .25s; }
.g-name { font-family: var(--display); font-size: 30px; font-weight: 300; letter-spacing: 0.04em; line-height: 1.1; margin: 0 0 6px; }
.g-pose { font-size: 13px; color: var(--dim); margin: 0 0 22px; }
.codes { margin: 0; }
.codes dt { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-top: 16px; }
.codes dd { margin: 5px 0 0; font-size: 14.5px; color: #d0d0cd; }

/* ---- where it sits ---- */
.where { margin: 0; }
.where-hint { display: none; }
.where svg { width: 100%; height: auto; display: block; font-family: var(--sans); }
.where .frame-r { fill: none; stroke: #2e2e2e; stroke-dasharray: 3 5; }
.where .frame-label { fill: var(--dim); font-size: 13px; letter-spacing: 0.2em; }
.where .box rect { fill: #0b0b0b; stroke: #3a3a3a; }
.where .box.core rect { fill: #111; stroke: #f4f4f2; stroke-width: 1.4; }
.where .t { fill: var(--fg); font-size: 19px; font-weight: 500; text-anchor: middle; }
.where .s { fill: #a3a3a0; font-size: 14px; text-anchor: middle; }
.where .sub rect { fill: #0b0b0b; stroke: #333; }
.where .sub text { fill: #cfcfcc; font-size: 13.5px; text-anchor: middle; }
.where .flow { fill: none; stroke: #6f6f6c; stroke-width: 1.3; }
.where .flow.dash { stroke-dasharray: 4 5; stroke: #4a4a48; }
.where .flow.b { stroke: var(--blue); stroke-width: 1.8; }
.where .flow.g { stroke: var(--green); stroke-width: 1.8; }
.where .lbl { fill: #a3a3a0; font-size: 13.5px; }
.where .lbl.b { fill: var(--blue); font-size: 12.5px; letter-spacing: 0.12em; }
.where .lbl.g { fill: var(--green); font-size: 12.5px; letter-spacing: 0.12em; }
.where .note { fill: #a3a3a0; font-size: 15px; }
.where .pulse { fill: var(--blue); }

/* ---- how ---- */
.beats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; margin-bottom: 90px; }
.beats p { color: #bdbdba; font-size: 15.5px; }
.beats > div { border-top: 1px solid #333; padding-top: 26px; }
.beats .n { font-family: var(--mono); font-size: 11px; color: var(--dim); display: block; margin-bottom: 14px; }
.trace-title { font-size: 14px; letter-spacing: 0.04em; color: #cfcfcc; margin: 0 0 16px; }
.trace-title span { color: var(--dim); font-family: var(--mono); font-size: 12px; margin-left: 10px; }
.trace-bar { display: flex; height: 44px; background: #0c0c0c; position: relative; }
.trace-bar .used {
  height: 100%; display: flex; align-items: center; padding-left: 14px; font-family: var(--mono); font-size: 12px; color: #000;
  background: linear-gradient(90deg, #e9e9e6, #a9a9a6); white-space: nowrap; overflow: hidden; width: 0; transition: width 1.6s cubic-bezier(.2,.7,.2,1);
}
.trace-bar .free { flex: 1; display: flex; align-items: center; justify-content: flex-end; padding-right: 14px; font-family: var(--mono); font-size: 12px; color: #5c5c5a; border: 1px dashed #262626; border-left: 0; }
.trace-rest { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* ---- results ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat { border-top: 1px solid #333; padding-top: 26px; }
.stat b { display: block; font-family: var(--display); font-weight: 300; font-size: clamp(32px, 3.6vw, 54px); line-height: 1; letter-spacing: 0; margin-bottom: 16px; white-space: nowrap; }
.stat b small { font-family: var(--sans); font-weight: 300; font-size: 0.5em; margin-left: 0.08em; color: var(--dim); }
.stat b .from { color: var(--amber); }
.stat b .arrow { color: var(--dim); font-family: var(--sans); font-weight: 200; margin: 0 0.12em; }
.stat b .to { color: var(--blue); }
.stat > span { display: block; font-size: 14.5px; color: #bdbdba; }
#stats-note { margin-top: 40px; max-width: 820px; }

.versus { margin-top: 90px; }
.versus-row { display: grid; grid-template-columns: 210px 1fr 74px; gap: 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.versus-row .label { font-size: 13.5px; color: #cfcfcc; }
.versus-row .label small { display: block; color: var(--dim); font-size: 12px; }
.versus-row .bars { display: grid; gap: 6px; }
.versus-row .bar { height: 8px; background: #101010; position: relative; }
.versus-row .bar b { position: absolute; inset: 0 auto 0 0; width: 0; transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.versus-row .bar.s b { background: var(--blue); }
.versus-row .bar.m b { background: var(--amber); }
.versus-row .vals { font-family: var(--mono); font-size: 12px; text-align: right; line-height: 1.5; }
.versus-row .vals .s { color: var(--blue); display: block; }
.versus-row .vals .m { color: var(--amber); display: block; }

/* ---- limits / about ---- */
.limits { padding: 0; margin: 0; list-style: none; }
.limits li { padding: 18px 0; border-top: 1px solid var(--line); color: #d0d0cd; font-size: 17px; }
.credit { color: #a9a9a6; font-size: 14px; }
.credit a { color: #d0d0cd; }
.family { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 40px 0 0; }
.family > a, .family > div { background: #000; padding: 28px 28px 26px; text-decoration: none; display: block; }
.family > a:hover { background: #080808; }
.family .fam-name { font-family: var(--display); font-size: 22px; letter-spacing: 0.18em; margin: 0 0 8px; }
.family p { margin: 0; color: #a9a9a6; font-size: 14px; }
.family .here { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-left: 10px; vertical-align: 4px; }
.orith { font-family: var(--display); letter-spacing: 0.22em; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 70px 6vw 50px; color: var(--dim); font-size: 12px; letter-spacing: 0.08em; }

/* ---- reveal on scroll ---- */
.fade { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade { opacity: 1; transform: none; transition: none; }
  .hero-wall, .hero-scan { animation: none; }
}

/* ---- small screens ---- */
@media (max-width: 1000px) {
  .stage, .gstage { grid-template-columns: 1fr; }
  .evidence, .gesture { position: static; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 30px; }
  .gesture { display: grid; grid-template-columns: 200px 1fr; gap: 0 26px; }
  .g-photo { grid-row: span 3; margin: 0; }
  .beats, .stats { grid-template-columns: 1fr 1fr; }
  .pairs { grid-template-columns: 1fr; }
  .top nav { gap: 22px; }
  .top nav a { white-space: nowrap; }
  .top nav a[href="#where"] { display: none; }
}
@media (max-width: 680px) {
  .trace-bar .wide { display: none; }
  .trace-bar .free { font-size: 10.5px; padding-right: 8px; text-align: right; }
  .where { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
  .where svg { min-width: 860px; }
  .where-hint { display: block !important; margin: 0 0 12px; }
  .top { padding: 18px 16px; }
  .top nav { display: none; }
  .block { padding: 100px 16px 30px; }
  .beats, .stats, .family { grid-template-columns: 1fr; }
  .gesture { grid-template-columns: 1fr; }
  .g-photo { max-width: 180px; }
  .versus-row { grid-template-columns: 1fr 64px; }
  .versus-row .label { grid-column: 1 / -1; }
  .key { gap: 14px; flex-direction: column; align-items: center; }
  .vs { aspect-ratio: 4 / 3; }
  .foot { padding: 50px 16px 40px; }
}
