/* Hallmark · macrostructure: scroll-scene (studied: Moto Finance) · tone: deadpan premium · anchor hue: none (stone + one red)
 * Hallmark · pre-emit critique: P5 H5 E4 S5 R4 V5 · genre: atmospheric · nav: N10 scroll-morph · footer: Ft5 statement */
/* EXITLIQ. Palette and type: brand/STYLE.md. Layout and motion translate Moto Finance (brand/INSPO.md). */
@font-face { font-family: "Instrument Sans"; src: url(/assets/fonts/instrument-sans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/assets/fonts/instrument-sans-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/assets/fonts/instrument-sans-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --stage: #080808;
  --cream: #ede6d6;
  --slate: #e1e5e5;
  --ash: #8d8a84;
  --graphite: #1b1d20;
  --red: #a13332;
  --red-hi: #c4483f;
  --paper: #f4f2ee;
  --ink: #121110;
  --ink-dim: #5c5852;
  --cream-rgb: 237 230 214;
  --stage-rgb: 8 8 8;
  --ink-rgb: 18 17 16;
  --graphite-rgb: 27 29 32;
  --graphite-hi-rgb: 48 51 56;
  --graphite-hi: #2a2d31;
  --white: #fbfaf7;
  --head: #e9e6df;
  --head-cool: #dfe2e1;
  --sub: #b4afa6;
  --note: #d9d3c5;
  --drift: #9fa4a5;
  --drift-sell: #b0716b;
  --foot: #0a0a0a;
  --mask: #000;
  --font: "Instrument Sans", system-ui, sans-serif;
  --glass: rgb(var(--cream-rgb) / .08);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(20px, 4.4vw, 64px);
  --display: clamp(2.6rem, 5.4vw, 5rem);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--stage); color: var(--cream); font: 400 16px/1.45 var(--font); letter-spacing: -.005em; overflow-x: clip; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 4px; }
.hall :focus-visible, .faq :focus-visible, .vault :focus-visible { outline-color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--slate); color: var(--ink); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

.display { text-transform: uppercase; font-weight: 500; font-size: var(--display); line-height: 1.02; overflow-wrap: anywhere; min-width: 0; letter-spacing: -.03em; }
.ln { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.ln > span { display: block; }

/* pills */
.pill { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 34px; border-radius: 999px; font-size: 16px; white-space: nowrap; transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.pill.sm { height: 42px; padding: 0 20px; font-size: 14px; }
.pale { background: var(--slate); color: var(--ink); }
.pale:hover { background: var(--white); }
.dark { background: var(--graphite); color: var(--cream); }
.dark:hover { background: var(--graphite-hi); }
.pill:active, .icon:active, .ca:active { transform: translateY(1px); }
.pill[aria-disabled="true"], .pill:disabled { opacity: .55; cursor: not-allowed; }

/* header */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 18px var(--pad) 18px clamp(16px, 2.2vw, 32px); transition: background-color .4s var(--ease), transform .5s var(--ease); }
.bar.scrolled { background: rgb(var(--stage-rgb) / .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.bar.hide { transform: translateY(-100%); }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: .18em; font-size: 15px; justify-self: start; }
.mark img { width: 30px; height: 30px; }
.links { display: flex; gap: 28px; font-size: 14px; }
.links a { color: var(--ash); transition: color .25s var(--ease); }
.links a:hover, .links a.on { color: var(--cream); }
.tools { display: flex; align-items: center; gap: 8px; justify-self: end; }
.icon { width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; background: var(--glass); transition: background-color .25s var(--ease); }
.icon:hover { background: rgb(var(--cream-rgb) / .16); }
.icon svg { width: 17px; height: 17px; fill: var(--cream); }
.ca { height: 42px; padding: 0 16px; border-radius: 999px; background: var(--glass); font-size: 13px; display: inline-flex; gap: 8px; align-items: center; transition: background-color .25s var(--ease); max-width: 210px; }
.ca:hover { background: rgb(var(--cream-rgb) / .16); }
.ca-k { color: var(--ash); }
#ca-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the WebGL card stage: fixed behind the hero and the hour */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); }
#stage.on { opacity: 1; }
main > section, .foot { position: relative; }
main > section > *:not(.hero-bg):not(.line-bg):not(.clock-bg):not(.drift) { position: relative; z-index: 2; }

/* hero */
.hero { min-height: max(100svh, 640px); display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(130px, 18vh, 170px) var(--pad) 72px; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(var(--stage-rgb) / .58) 0%, rgb(var(--stage-rgb) / .36) 45%, rgb(var(--stage-rgb) / .5) 78%, var(--stage) 100%), url(/assets/img/stone.jpg) center 60% / cover; }
.hero h1 { color: var(--head); }
.hero-sub { max-width: 31em; margin-top: 22px; color: var(--sub); font-size: 16px; }
.hero-cta { margin-top: auto; min-width: 250px; }
.card-still { display: none; width: 120px; margin: 9vh auto 0; opacity: .8; }
.no-gl .card-still { display: block; }

/* the hour (pinned) */
.hour { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .75fr) minmax(0, 1fr); align-items: center; gap: 48px; padding: 120px var(--pad); }
.hour-copy { align-self: center; }
.dump-fig { overflow-wrap: anywhere; min-width: 0; margin-top: 44px; font-size: clamp(3.2rem, 9vw, 8.4rem); line-height: .9; font-weight: 500; letter-spacing: -.045em; color: var(--red-hi); font-variant-numeric: tabular-nums; }
.dump-fig.none { color: var(--ash); font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.03em; }
.dump-by { margin-top: 22px; color: var(--ash); max-width: 26em; }
.dump-by a { color: var(--cream); border-bottom: 1px solid rgb(var(--cream-rgb) / .3); }
.hour-facts { grid-column: 3; display: grid; gap: 34px; justify-self: end; width: min(100%, 420px); }
.hour-facts dt { color: var(--ash); font-size: 14px; }
.hour-facts dd { font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -.02em; margin-top: 6px; }
.hour-facts dd.fine { font-size: 13px; color: var(--ash); letter-spacing: 0; max-width: 30em; }
.hour-facts a { border-bottom: 1px solid rgb(var(--cream-rgb) / .3); }
.hour-facts .of { display: block; font-size: 14px; color: var(--ash); letter-spacing: 0; margin-top: 4px; }
.count { font-variant-numeric: tabular-nums; font-weight: 400; letter-spacing: .04em !important; }

/* tape */
.tape { z-index: 3; background: var(--stage); text-align: center; padding: 150px var(--pad) 120px; overflow: hidden; }
.lede { max-width: 30em; margin: 24px auto 0; color: var(--ash); }
.float.empty { height: 180px; }
.float { position: relative; height: 460px; margin: 56px auto 0; max-width: 1240px; }
.flow { position: absolute; left: 0; right: 0; top: 110px; width: 100%; height: 240px; overflow: visible; }
.flow path { fill: none; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.flow .up { stroke: rgb(var(--cream-rgb) / .45); }
.flow .dn { stroke: var(--red-hi); stroke-width: 2; }
.tp { position: absolute; display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; background: rgb(var(--graphite-rgb) / .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 14px; white-space: nowrap; transition: background-color .25s var(--ease); }
.tp:hover { background: rgb(var(--graphite-hi-rgb) / .9); }
.tp i { width: 7px; height: 7px; border-radius: 50%; background: var(--ash); flex: none; }
.tp.sell i { background: var(--red-hi); }
.tp small { color: var(--ash); font-size: 13px; }
.tp-empty { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.flow-cap { margin-top: 18px; color: var(--ash); font-size: 13px; }

/* vault: light section */
.vault { z-index: 3; background: var(--slate); color: var(--ink); text-align: center; padding: 140px var(--pad) 130px; overflow: hidden; }
.vault-n { font-size: clamp(3.4rem, 10vw, 9rem); font-weight: 500; letter-spacing: -.05em; line-height: .9; margin: 80px 0 34px; font-variant-numeric: tabular-nums; }
.vault-n.none { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--ink-dim); }
.vault-lines p { font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.35; }
.vault-link { display: inline-block; margin-top: 34px; font-size: 14px; color: var(--ink-dim); border-bottom: 1px solid rgb(var(--ink-rgb) / .25); }
.drift { position: absolute; top: -10%; bottom: -10%; width: 22%; display: flex; flex-direction: column; justify-content: space-around; font-size: clamp(1.2rem, 2.2vw, 2rem); letter-spacing: -.03em; color: var(--drift); pointer-events: none; z-index: 1; -webkit-mask-image: linear-gradient(180deg, transparent, var(--mask) 22%, var(--mask) 78%, transparent); mask-image: linear-gradient(180deg, transparent, var(--mask) 22%, var(--mask) 78%, transparent); }
.drift.left { left: 3%; align-items: flex-start; }
.drift.right { right: 3%; align-items: flex-end; }
.drift span { font-variant-numeric: tabular-nums; }
.drift span.s { color: var(--drift-sell); }

/* clock: full-bleed desk photo */
.clock { z-index: 3; background: var(--stage); min-height: max(100svh, 720px); padding: 140px var(--pad) 70px; display: flex; flex-direction: column; overflow: hidden; }
.clock-bg { position: absolute; inset: 0; z-index: 0; }
.clock-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.clock-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(var(--stage-rgb) / .92) 0%, rgb(var(--stage-rgb) / .7) 38%, rgb(var(--stage-rgb) / .15) 75%), linear-gradient(0deg, rgb(var(--stage-rgb) / .85), transparent 30%); }
.clock h2 { color: var(--head-cool); }
.clock-list { margin-top: auto; padding-top: 80px; display: grid; gap: 6px; font-size: clamp(1rem, 1.5vw, 1.3rem); max-width: 26em; }
.clocks { margin-top: 44px; margin-right: calc(var(--pad) * -1); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, var(--mask) 6%); mask-image: linear-gradient(90deg, transparent, var(--mask) 6%); }
.clocks-track { display: flex; gap: 40px; width: max-content; font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; animation: tick-slide 60s linear infinite; }
.clocks-track span { display: inline-flex; gap: 10px; }
.clocks-track b { font-weight: 400; color: var(--cream); }
.clocks-track .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red-hi); align-self: center; }
@keyframes tick-slide { to { transform: translateX(-50%); } }

/* rules: right-aligned stack */
.rules { z-index: 3; background: var(--stage); min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: center; gap: 40px; padding: 140px var(--pad); }
.rules-side { align-self: center; max-width: 21em; }
.rules-side h2 { font-size: 18px; font-weight: 500; }
.rules-side p { margin-top: 12px; color: var(--ash); font-size: 15px; }
.rules-stack { text-align: right; text-transform: uppercase; font-weight: 500; font-size: clamp(1.8rem, 3.3vw, 3.1rem); line-height: 1.02; letter-spacing: -.03em; display: grid; gap: .1em; overflow-wrap: anywhere; min-width: 0; }
.rules-stack li { color: var(--cream); }

/* hall: paper table */
.hall { z-index: 3; background: var(--paper); color: var(--ink); padding: 140px var(--pad) 120px; }
.table-wrap { margin-top: 64px; overflow-x: auto; }
.hall-t { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 680px; }
.hall-t th { text-align: left; font-weight: 400; color: var(--ink-dim); font-size: 14px; padding: 0 16px 16px 0; }
.hall-t td { padding: 22px 16px 22px 0; border-top: 1px solid rgb(var(--ink-rgb) / .1); font-variant-numeric: tabular-nums; vertical-align: top; }
.hall-t tbody tr { transition: background-color .25s var(--ease); }
.hall-t tbody tr:hover { background: rgb(var(--ink-rgb) / .035); }
.hall-t td:first-child { font-weight: 500; }
.hall-t a { border-bottom: 1px solid rgb(var(--ink-rgb) / .3); }
.hall-t .dim { color: var(--ink-dim); }
.hall-empty { margin-top: 26px; color: var(--ink-dim); font-size: 17px; max-width: 34em; }

/* place in line */
.line { z-index: 3; background: var(--stage); text-align: center; min-height: 100svh; padding: 150px var(--pad); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.line-bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, var(--stage), rgb(var(--stage-rgb) / .55) 35%, rgb(var(--stage-rgb) / .55) 65%, var(--stage)), url(/assets/img/stone.jpg) center 30% / cover; opacity: .7; }
.line .pill { margin-top: 36px; min-width: 250px; }
.me { margin-top: 40px; width: min(100%, 640px); display: grid; gap: 10px; }
.me .row { display: flex; justify-content: space-between; gap: 18px; padding: 16px 22px; border-radius: 999px; background: rgb(var(--graphite-rgb) / .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-align: left; font-size: 15px; }
.me .row span:first-child { color: var(--ash); }
.me .verdict { font-size: clamp(1.3rem, 2.4vw, 1.8rem); letter-spacing: -.02em; margin-top: 8px; }

/* faq */
.faq { z-index: 3; background: var(--white); color: var(--ink); padding: 130px var(--pad) 130px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; }
.faq h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.faq-list details { border-top: 1px solid rgb(var(--ink-rgb) / .12); }
.faq-list details:last-child { border-bottom: 1px solid rgb(var(--ink-rgb) / .12); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 18px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq-list p { padding: 0 40px 24px 0; color: var(--ink-dim); max-width: 36em; }

/* footer */
.foot { z-index: 3; background: var(--foot); padding: 130px var(--pad) 40px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 60px; }
.foot-say { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
.foot-main .pill { margin-top: 40px; min-width: 220px; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-content: start; justify-self: end; width: min(100%, 420px); }
.foot-cols h3 { font-weight: 400; font-size: 14px; color: var(--ash); margin-bottom: 14px; }
.foot-cols a { display: block; font-size: 16px; padding: 4px 0; transition: color .25s var(--ease); }
.foot-cols a:hover { color: var(--white); }
.foot-fine { grid-column: 1 / -1; border-top: 1px solid rgb(var(--cream-rgb) / .1); padding-top: 22px; font-size: 13px; color: var(--ash); text-align: right; }

/* the Victim's case file (/victim/<n>) */
.case { position: fixed; inset: 0; z-index: 40; background: var(--stage); overflow-y: auto; overscroll-behavior: contain; }
.case[hidden] { display: none; }
.case-in { max-width: 1100px; margin: 0 auto; padding: 110px var(--pad) 80px; }
.case-x { position: fixed; top: 18px; right: var(--pad); z-index: 2; }
.case-round { color: var(--ash); font-size: 15px; }
.case h2 { margin-top: 18px; font-size: clamp(2.4rem, 6vw, 5.4rem); }
.case-note { margin-top: 30px; font-size: clamp(1.1rem, 1.8vw, 1.4rem); max-width: 34em; color: var(--note); }
.case-facts { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 26px; }
.case-facts dt { color: var(--ash); font-size: 14px; }
.case-facts dd { font-size: 20px; margin-top: 6px; }
.case-facts a { border-bottom: 1px solid rgb(var(--cream-rgb) / .3); }
.case-card { margin-top: 48px; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 14px; background: var(--graphite); }
.case-act { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 60; translate: -50% 20px; opacity: 0; pointer-events: none; padding: 12px 22px; border-radius: 999px; background: var(--slate); color: var(--ink); font-size: 14px; transition: opacity .3s var(--ease), translate .3s var(--ease); }
.toast.on { opacity: 1; translate: -50% 0; }
.nojs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; padding: 14px; background: var(--slate); color: var(--ink); text-align: center; }

/* motion setup: hidden only once the script says it will animate */
.anim [data-lines] .ln > span { transform: translateY(105%); }
.anim [data-rise] { opacity: 0; transform: translateY(24px); }

@media (max-width: 1080px) {
  .links { display: none; }
  .bar { grid-template-columns: 1fr auto; }
}
@media (max-width: 860px) {
  .hour { grid-template-columns: 1fr; padding-top: 110px; align-items: start; }
  .hour-facts { justify-self: start; grid-column: 1; }
  .rules { grid-template-columns: 1fr; }
  .rules-stack { text-align: left; }
  .faq, .foot { grid-template-columns: 1fr; }
  .foot-cols { justify-self: start; }
  .foot-fine { text-align: left; }
  .ca { max-width: 140px; }
}
@media (max-width: 640px) {
  :root { --display: clamp(2.3rem, 11vw, 3.4rem); }
  .ca { display: none; }
  .tools { gap: 6px; }
  .icon { width: 38px; height: 38px; }
  .tools .dark { padding: 0 16px; }
  .mark span { display: none; }
  .float { height: auto; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-top: 200px; }
  .flow { top: 0; height: 170px; }
  .tp { position: static; }
  .tp-empty { position: static; translate: none; }
  .drift { width: 30%; opacity: .55; }
  .me .row { border-radius: 22px; flex-direction: column; gap: 2px; }
  .clocks-track { animation-duration: 40s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .clocks-track { animation: none; flex-wrap: wrap; width: auto; }
}
