@font-face { font-family: "Inter Tight"; font-weight: 400; font-display: swap; src: url(../fonts/inter-tight-400.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 500; font-display: swap; src: url(../fonts/inter-tight-500.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url(../fonts/inter-tight-600.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 700; font-display: swap; src: url(../fonts/inter-tight-700.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 800; font-display: swap; src: url(../fonts/inter-tight-800.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(../fonts/jetbrains-mono-400.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(../fonts/jetbrains-mono-500.woff2) format("woff2"); }

:root {
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --night: #08090b;
  --night-2: #101216;
  --night-3: #171a1f;
  --line: #23262c;
  --bone: #f4f3ef;
  --text-2: #b9bcc3;
  --grey: #80848c;
  --c-scalp: #ff4040; --c-brows: #ffd600; --c-lashes: #ff40ff; --c-mustache: #28e65a; --c-beard: #4078ff;
  --depth-grad: linear-gradient(100deg, #3a2bff 0%, #b23cff 30%, #ff4fa0 55%, #ff9a3c 78%, #ffe873 100%);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body {
  margin: 0; color: var(--bone); background: var(--night);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv11";
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: normal; }
.mono { font-family: var(--mono); }
::selection { background: var(--c-scalp); color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  transition: background .4s, backdrop-filter .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8, 9, 11, .72); backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-color: var(--line); padding-top: 12px; padding-bottom: 12px;
}
.nav-brand { font-weight: 800; letter-spacing: -.03em; font-size: 20px; text-decoration: none; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--text-2); transition: color .2s; }
.nav-links a:hover { color: var(--bone); }
.nav-links .nav-cta { color: var(--bone); padding: 7px 14px; border: 1px solid #3a3d44; border-radius: 999px; }
.nav-links .nav-cta:hover { border-color: var(--bone); }

/* ---------- Landing ---------- */
.landing {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; place-items: center; isolation: isolate;
}
.wall {
  position: absolute; inset: -30% -20%; z-index: -2;
  display: flex; gap: 10px; justify-content: center;
  transform: rotate(-12deg) scale(1.05);
  opacity: 0; transition: opacity 1.6s ease;
}
.wall.is-ready { opacity: 1; }
.wall-col { flex: 0 0 auto; width: var(--tile); }
.wall-col-inner { animation: drift var(--dur) linear infinite; animation-direction: var(--dir); will-change: transform; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.tile { position: relative; width: var(--tile); height: var(--tile); margin-bottom: 10px; border-radius: 12px; overflow: hidden; background: #0c0d10; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; visibility: hidden; }
.tile img.is-cur { visibility: visible; z-index: 1; }
.tile img.is-next { visibility: visible; z-index: 2; clip-path: inset(0 100% 0 0); }
.tile img.is-next.is-wiping { transition: clip-path 1.1s var(--ease); clip-path: inset(0 0 0 0); }
.tile::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 2px; left: var(--wipe, -4px);
  background: rgba(255, 255, 255, .9); box-shadow: 0 0 18px rgba(255, 255, 255, .6); opacity: 0;
}
.tile.is-wiping::after { opacity: 1; animation: wipe-line 1.1s var(--ease) forwards; }
@keyframes wipe-line { from { left: 0; } 90% { opacity: 1; } to { left: 100%; opacity: 0; } }

.landing-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(8, 9, 11, .92) 0%, rgba(8, 9, 11, .72) 45%, rgba(8, 9, 11, .25) 100%),
    linear-gradient(to bottom, rgba(8, 9, 11, .55), transparent 25%, transparent 70%, var(--night) 100%);
}
.landing-content { text-align: center; padding: 120px 24px 80px; max-width: 1100px; }
.eyebrow {
  display: inline-flex; gap: 14px; align-items: center; font-family: var(--mono); font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-2);
}
.eyebrow > span { white-space: nowrap; }
.pill { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: var(--bone); }
.title {
  margin: 22px 0 0; font-weight: 800; letter-spacing: -.06em; line-height: .86;
  font-size: clamp(76px, 15vw, 220px);
}
.subtitle { margin: 26px auto 0; max-width: 820px; font-size: clamp(20px, 2.3vw, 30px); font-weight: 500; letter-spacing: -.015em; line-height: 1.2; }
.authors { margin: 18px auto 0; max-width: 760px; color: var(--text-2); font-size: 15.5px; }
.actions { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; text-decoration: none; transition: transform .2s var(--ease), background .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn small { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.btn-primary { background: var(--bone); color: var(--night); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .2); background: rgba(8, 9, 11, .4); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--bone); transform: translateY(-2px); }
.btn.is-disabled { opacity: .55; cursor: default; }
.btn.is-disabled:hover { transform: none; border-color: rgba(255, 255, 255, .2); }

.scroll-cue { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--bone); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.reveal { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { max-width: 1320px; margin: 0 auto; padding: clamp(80px, 11vw, 150px) clamp(20px, 4vw, 48px) 0; }
.section-narrow { max-width: 860px; }
#privacy { padding-top: clamp(48px, 6vw, 80px); }
.section-head { max-width: 780px; margin-bottom: 48px; }
h2 { margin: 0; font-size: clamp(36px, 5vw, 64px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.lede { margin: 20px 0 0; color: var(--text-2); font-size: 19px; max-width: 640px; }

.in-view { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.in-view.is-visible { opacity: 1; transform: none; }

/* ---------- Slicer ---------- */
.frame-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.slicer {
  position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #000;
  box-shadow: 0 40px 120px -40px rgba(120, 60, 255, .35), 0 0 0 1px var(--line);
  cursor: crosshair; touch-action: pan-y;
  width: min(100%, calc(100svh - 120px)); justify-self: center;
}
.slice { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.slice-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.slice-lines line { stroke: rgba(255, 255, 255, .85); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.slice-tags { position: absolute; inset: 0; pointer-events: none; }
.slice-tag {
  position: absolute; bottom: 3.5%; translate: 8px 0; white-space: nowrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: rgba(8, 9, 11, .72); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .12); transition: opacity .3s;
}

.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.legend li {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: center; padding: 14px 16px;
  border-radius: 14px; border: 1px solid transparent; cursor: pointer; transition: background .25s, border-color .25s;
}
.legend li:hover, .legend li.is-active { background: var(--night-2); border-color: var(--line); }
.legend b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.legend li div span { display: block; color: var(--grey); font-size: 14.5px; line-height: 1.4; margin-top: 2px; }
.legend li.is-active div span { color: var(--text-2); }
.legend-swatch { width: 40px; height: 40px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.sw-rgb { background: linear-gradient(135deg, #c48a52, #5b3a24 60%, #1d140f); }
.sw-matte { background: linear-gradient(135deg, #fff, #9a9a9a 55%, #111); }
.sw-cat { background: conic-gradient(var(--c-scalp) 0 20%, var(--c-brows) 0 40%, var(--c-lashes) 0 60%, var(--c-mustache) 0 80%, var(--c-beard) 0); }
.sw-growth { background: linear-gradient(135deg, #47e07a, #2fb6ff 50%, #d04bff); }
.sw-depth { background: var(--depth-grad); }

.facts { margin: 72px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.facts > div { padding: 26px 24px 0 0; }
.facts dt { font-size: clamp(40px, 5vw, 68px); font-weight: 700; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts dd { margin: 10px 0 0; font-family: var(--mono); font-size: 13px; color: var(--grey); line-height: 1.5; max-width: 220px; }

/* ---------- Explorer ---------- */
.explorer { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.stage-wrap { position: sticky; top: 84px; }
.stage {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px var(--line); outline: none; user-select: none; touch-action: pan-y;
}
.stage:not(.is-grid) { cursor: ew-resize; }
.stage:focus-visible { box-shadow: 0 0 0 2px var(--bone); }
.stage-single, .stage-grid { position: absolute; inset: 0; }
.stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.stage-pred { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split, 50%)); }
.divider { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; margin-left: -1px; background: var(--bone); cursor: ew-resize; z-index: 3; }
.divider::before { content: ""; position: absolute; inset: 0 -14px; }
.divider-knob {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 44px; height: 44px; border-radius: 50%;
  background: var(--bone); color: var(--night); display: grid; place-items: center; box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
  transition: transform .2s var(--ease);
}
.divider:hover .divider-knob, .stage.is-dragging .divider-knob { transform: scale(1.1); }
.divider-knob svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.stage-tag {
  position: absolute; top: 14px; z-index: 2; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px; background: rgba(8, 9, 11, .7); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .12);
  pointer-events: none;
}
.tag-left { left: 14px; }
.tag-right { right: 14px; }

.stage-grid { display: none; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; background: var(--night); }
.stage.is-grid .stage-single { display: none; }
.stage.is-grid .stage-grid { display: grid; }
.grid-cell { position: relative; overflow: hidden; background: #000; }
.grid-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.grid-cell .stage-tag { top: 10px; left: 10px; font-size: 11px; }
.grid-cell .sipq { position: absolute; left: 10px; bottom: 10px; font-family: var(--mono); font-size: 11px; color: var(--text-2); pointer-events: none; }
.grid-cell.is-ours .stage-tag { border-color: rgba(255, 255, 255, .5); }

.grid-loupe { position: absolute; z-index: 4; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .18s; box-shadow: 0 0 0 2px var(--bone), 0 14px 40px rgba(0, 0, 0, .6); background-repeat: no-repeat; background-color: #000; }
.grid-cell.is-loupe .grid-loupe { opacity: 1; }

.stage-loading { position: absolute; inset: auto 0 0 0; height: 3px; z-index: 6; opacity: 0; transition: opacity .3s; overflow: hidden; }
.stage-loading.is-on { opacity: 1; }
.stage-loading span { position: absolute; inset: 0; width: 40%; background: var(--depth-grad); animation: load 1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

.stage-caption { display: flex; gap: 18px; justify-content: space-between; margin-top: 14px; font-size: 14px; color: var(--grey); }
.stage-caption .mono { font-size: 12.5px; white-space: nowrap; }

.controls { display: grid; gap: 26px; padding: 22px; border-radius: var(--radius); background: var(--night-2); border: 1px solid var(--line); }
.control-label { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); margin-bottom: 12px; }
.hint { letter-spacing: 0; color: #5b5f67; }
.note { margin: 10px 0 0; font-size: 13px; color: var(--grey); line-height: 1.45; }
.note:empty { display: none; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--night); border: 1px solid var(--line); position: relative; }
.segmented button { padding: 8px 10px; border: 0; background: none; border-radius: 9px; cursor: pointer; color: var(--grey); font-weight: 600; font-size: 14px; transition: color .2s, background .2s; }
.segmented button.is-active { background: var(--night-3); color: var(--bone); box-shadow: 0 0 0 1px #2f333a; }

.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.thumb { position: relative; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 9px; overflow: hidden; cursor: pointer; background: #000; opacity: .55; transition: opacity .2s, transform .2s var(--ease); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: .9; }
.thumb.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--bone); }
.thumb-title { margin-top: 10px; font-weight: 600; font-size: 15px; }

.models { display: grid; gap: 6px; }
.model {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px;
  border-radius: 11px; border: 1px solid var(--line); background: var(--night); cursor: pointer; text-align: left;
  transition: border-color .2s, background .2s;
}
.model:hover { border-color: #3a3e46; }
.model.is-active { border-color: var(--bone); background: var(--night-3); }
.model .key { font-family: var(--mono); font-size: 11px; color: var(--grey); width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line); }
.model .name { font-weight: 600; font-size: 15px; }
.model .score { font-family: var(--mono); font-size: 12px; color: var(--grey); text-align: right; min-width: 90px; }
.model .bar { display: block; height: 3px; border-radius: 2px; margin-top: 5px; background: var(--line); position: relative; overflow: hidden; }
.model .bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); background: var(--grey); transition: width .5s var(--ease); }
.model.is-ours .bar::after { background: var(--depth-grad); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--night); cursor: pointer; font-size: 14px; font-weight: 500; transition: border-color .2s, background .2s, opacity .2s; }
.chip:hover { border-color: #3a3e46; }
.chip.is-active { border-color: var(--bone); background: var(--night-3); }
.chip.is-unavailable { opacity: .4; }
.chip i { width: 12px; height: 12px; border-radius: 50%; }
.cat-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--text-2); }
.cat-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cat-legend i { width: 9px; height: 9px; border-radius: 50%; }


/* ---------- About & footer ---------- */
.about-small { color: var(--grey); font-size: 15px; margin: 0; }
.about-small a { color: var(--text-2); }
.about-small.credit { margin-top: 28px; }

.footer {
  margin-top: clamp(80px, 11vw, 150px); padding: 28px clamp(20px, 4vw, 48px); border-top: 1px solid var(--line);
  display: flex; gap: 28px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--grey);
}
.footer .nav-brand { font-size: 17px; color: var(--bone); margin-right: auto; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--bone); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .frame-grid, .explorer { grid-template-columns: 1fr; }
  .stage-wrap { position: relative; top: 0; }
  .legend { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .thumbs { grid-template-columns: repeat(7, 1fr); }
}
@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .legend { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .stage-caption { flex-direction: column; gap: 4px; }
  .slice-tag { font-size: 10px; padding: 3px 7px; }
  .eyebrow { font-size: 11px; gap: 10px; letter-spacing: .1em; }
  .stage-tag { font-size: 10px; padding: 4px 8px; top: 10px; }
  .tag-left { left: 10px; } .tag-right { right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

