/* ROTATION — "Liner Notes"
   The design system: printed matter, not a dashboard.
   Paper and ink, one spot color (Rotation red), and the typography of record
   sleeves and label copy:
     Archivo (variable width + weight)  — the voice: condensed for headlines, wide for labels
     Instrument Serif                   — the reader: facts, quotes, big italic numbers
     Geist Mono                         — the catalog: dates, units, matrix numbers
   Data is drawn in ink and the validated artist palette (js/viz/kit.js), on paper;
   immersive views turn the lights off (.night).
   Every page using this file sets <body class="liner">. Legacy components in
   style.css read the same tokens, so they follow along. */

:root {
  --paper: #F3EEE5;
  --paper-2: #ECE5D8;
  --paper-3: #E2D9C8;
  --ink: #16130F;
  --ink-2: rgba(22, 19, 15, 0.72);
  --ink-3: rgba(22, 19, 15, 0.64);
  --ink-4: rgba(22, 19, 15, 0.28);
  --rule: rgba(22, 19, 15, 0.14);
  --rule-strong: rgba(22, 19, 15, 0.32);
  --signal: #E8431C;
  --signal-ink: #B8300F;
  --signal-btn: #D63C17; /* white text on it is 4.6:1 */
  --night: #121110;
  --night-2: #1B1917;
  --night-ink: #F3EEE5;
  --font-sans: Archivo, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* legacy tokens (style.css components) on paper */
body.liner {
  --bg: var(--paper); --bg-2: var(--paper-2); --surface: var(--paper-2); --surface-2: var(--paper-3); --deep: var(--paper);
  --panel: rgba(22, 19, 15, 0.035); --panel-2: rgba(22, 19, 15, 0.07);
  --line: var(--rule); --line-strong: var(--rule-strong);
  --hot: var(--signal); --hot-2: var(--signal-ink); --hot-3: var(--signal); --accent: var(--signal); --dominant: var(--signal);
  --grad: linear-gradient(var(--signal), var(--signal)); --amber: var(--signal);
  --font-ui: var(--font-sans); --font-story: var(--font-serif);
}

/* ---------- base ---------- */
body.liner {
  margin: 0; background-color: var(--paper); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.5; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  /* paper: a whisper of fiber, printed under everything */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.07 0 0 0 0 0.05 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
}
.liner *, .liner *::before, .liner *::after { box-sizing: border-box; }
.liner a { color: inherit; }
.liner ::selection { background: var(--signal); color: var(--paper); }
.liner :focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.wrap-l { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display {
  font-family: var(--font-sans); font-stretch: 62%; font-weight: 820; text-transform: uppercase;
  line-height: 0.84; letter-spacing: -0.012em; margin: 0;
}
.display-wide { font-family: var(--font-sans); font-stretch: 125%; font-weight: 760; text-transform: uppercase; letter-spacing: 0.04em; }
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.serif em, em.serif { font-style: italic; }
.mono, .cat {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.cat b { color: var(--ink); font-weight: 500; }
.cat .dot { color: var(--signal); }
.lede { font-family: var(--font-serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.22; letter-spacing: -0.01em; color: var(--ink); max-width: 30ch; }
.lede em { font-style: italic; }
.body-copy { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 52ch; }
.fine { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); }
.big-num { font-family: var(--font-serif); font-size: clamp(56px, 8vw, 112px); line-height: 0.9; letter-spacing: -0.03em; }

/* ---------- the masthead ---------- */
.mast { position: sticky; top: 0; z-index: 40; background: rgba(243, 238, 229, 0.86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--rule); }
.mast-in { display: flex; align-items: center; gap: 22px; min-height: 58px; }
.wordmark { display: inline-flex; align-items: center; gap: 0.06em; text-decoration: none; color: var(--ink); font-family: var(--font-sans); font-stretch: 125%; font-weight: 800; font-size: 17px; letter-spacing: 0.1em; line-height: 1; }
.wordmark .wm-rec { width: 0.92em; height: 0.92em; display: inline-block; transform: translateY(0.02em); }
.wordmark .wm-rec svg { width: 100%; height: 100%; display: block; }
.wordmark:hover .wm-rec svg { animation: spin 1.8s linear infinite; }
.mast-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.mast-nav a { text-decoration: none; font-size: 14px; font-weight: 560; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); }
.mast-nav a:hover, .mast-nav a[aria-current="page"] { color: var(--ink); background: rgba(22, 19, 15, 0.06); }
.mast-nav a.cta { background: var(--ink); color: var(--paper); margin-left: 6px; }
.mast-nav a.cta:hover { background: var(--signal-btn); color: #fff; }
@media (max-width: 720px) {
  .mast-nav a:not(.cta):not(.keep) { display: none; }
  .wordmark { font-size: 13px; letter-spacing: 0.04em; }
  .mast-in { gap: 10px; }
  .mast-nav a { padding: 8px 10px; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- buttons ---------- */
.b {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font-family: var(--font-sans); font-size: 15.5px; font-weight: 640; letter-spacing: 0.005em; text-decoration: none; cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s var(--ease), border-color 0.18s ease;
}
.b:hover { transform: translateY(-1px); }
.b:active { transform: translateY(1px); }
.b.ink { background: var(--ink); color: var(--paper); }
.b.ink:hover { background: var(--signal-btn); border-color: var(--signal-btn); color: #fff; }
.b.signal { background: var(--signal-btn); border-color: var(--signal-btn); color: #fff; }
.b.signal:hover { background: var(--ink); border-color: var(--ink); }
.b.small { min-height: 38px; padding: 8px 15px; font-size: 14px; }
.b .arr { font-family: var(--font-mono); font-weight: 400; transition: transform 0.2s var(--ease); }
.b:hover .arr { transform: translateX(3px); }
.b[disabled] { opacity: 0.45; pointer-events: none; }
.link { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { color: var(--signal); }

/* ---------- section heads: the tracklist ---------- */
.track { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: end; padding-top: 18px; border-top: 2px solid var(--ink); margin-bottom: 28px; }
.track .no { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; font-weight: 500; }
.track .no::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); margin-right: 8px; transform: translateY(-1px); }
.track .meta { justify-self: end; }
.track h2 { grid-column: 1 / -1; font-size: clamp(54px, 9vw, 132px); }
.track .say { grid-column: 1 / -1; max-width: 56ch; color: var(--ink-2); font-size: 17px; line-height: 1.5; }
.section-l { padding: clamp(64px, 10vw, 128px) 0 0; }

/* ---------- figures ---------- */
.fig-cap { display: flex; gap: 10px; align-items: baseline; margin-top: 12px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.fig-cap .cat { flex: 0 0 auto; }

/* ---------- tooltip ---------- */
.vz-tip {
  position: absolute; z-index: 30; display: none; pointer-events: none; max-width: 280px;
  background: var(--ink); color: var(--paper); padding: 9px 12px 10px; border-radius: 3px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45); font-size: 13px; line-height: 1.35;
}
.vz-tip b { display: block; font-weight: 640; font-size: 13.5px; }
.vz-tip span { display: block; color: rgba(243, 238, 229, 0.72); }
.night .vz-tip { background: var(--paper); color: var(--ink); }
.night .vz-tip span { color: var(--ink-2); }

/* ---------- the fingerprint ---------- */
.fp-host { position: relative; display: flex; justify-content: center; overflow: clip; } /* the turning square's corners stay inside */
.fp-spin { will-change: transform; }
.fp-spin.turning { animation: spin 240s linear infinite; }
.fp-host:hover .fp-spin.turning { animation-play-state: paused; }
.fp-host canvas { display: block; }

/* ---------- night panels ---------- */
.night { background: var(--night); color: var(--night-ink); }
.night .cat, .night .mono { color: rgba(243, 238, 229, 0.55); }
.night .cat b { color: var(--night-ink); }
.night .b { border-color: var(--night-ink); color: var(--night-ink); }
.night .b.ink { background: var(--night-ink); color: var(--night); }

/* ---------- home ---------- */
.h-hero { display: grid; grid-template-columns: 1fr; gap: 28px; padding: clamp(28px, 6vw, 72px) 0 clamp(40px, 6vw, 64px); align-items: center; }
.h-hero .cat { margin-bottom: 18px; }
.h-hero h1 { font-size: clamp(72px, 11.5vw, 168px); }
.h-hero .cta-row { margin-top: 34px; }
.h-hero h1 .red { color: var(--signal); }
.h-hero .tag { font-family: var(--font-serif); font-style: italic; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.02; letter-spacing: -0.015em; margin: 14px 0 0; }
.h-hero .body-copy { margin-top: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; align-items: center; }
.h-hero .fine { margin-top: 16px; }
.h-fig { position: relative; }
.h-fig .fp-host { max-width: 720px; margin: 0 auto; }
.h-fig .fig-cap { max-width: 520px; margin: 14px auto 0; }
@media (min-width: 980px) {
  .h-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; }
  .h-fig .fig-cap { margin-left: 8%; }
}

.doors { border-top: 2px solid var(--ink); }
.door { display: grid; grid-template-columns: 64px 1fr auto; gap: 8px 20px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); position: relative; }
.door .no { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; align-self: start; padding-top: 10px; }
.door h3 { font-size: clamp(44px, 7vw, 96px); transition: color 0.2s ease, transform 0.35s var(--ease); }
.door p { grid-column: 2; font-family: var(--font-serif); font-size: clamp(19px, 2vw, 24px); line-height: 1.25; color: var(--ink-2); margin: 4px 0 0; max-width: 42ch; }
.door .go { grid-row: 1 / span 2; grid-column: 3; font-family: var(--font-mono); font-size: 28px; transition: transform 0.3s var(--ease), color 0.2s ease; }
.door:hover h3 { color: var(--signal); transform: translateX(6px); }
.door:hover .go { transform: translateX(6px); color: var(--signal); }
.door .who { grid-column: 2; margin-top: 4px; }
@media (max-width: 640px) {
  .door { grid-template-columns: 38px 1fr 24px; }
  .door .go { font-size: 20px; }
}

.inside { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 24px); }
.inside > * { grid-column: span 12; }
.plate { position: relative; border: 1px solid var(--rule-strong); background: var(--paper-2); padding: 18px; overflow: hidden; }
.plate.night { border-color: transparent; background: var(--night); }
.plate .cat { display: block; margin-bottom: 10px; }
.plate h4 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.05; margin: 0 0 8px; letter-spacing: -0.015em; }
.plate p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.night.plate p { color: rgba(243, 238, 229, 0.7); }
.plate canvas { display: block; width: 100%; }
@media (min-width: 900px) {
  .inside .w7 { grid-column: span 7; } .inside .w5 { grid-column: span 5; }
  .inside .w4 { grid-column: span 4; } .inside .w8 { grid-column: span 8; } .inside .w6 { grid-column: span 6; }
}
.quote-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 240px; }
.quote-card .q { font-family: var(--font-serif); font-size: clamp(28px, 3vw, 40px); line-height: 1.06; letter-spacing: -0.015em; margin: 6px 0 18px; }
.quote-card .q em { font-style: italic; color: var(--signal-ink); }

.steps-l { display: grid; grid-template-columns: 1fr; border-top: 2px solid var(--ink); }
.step-l { padding: 22px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 54px 1fr; gap: 4px 14px; }
.step-l .n { font-family: var(--font-serif); font-size: 44px; line-height: 0.9; }
.step-l b { font-size: 19px; font-weight: 680; }
.step-l p { grid-column: 2; margin: 0; color: var(--ink-2); }
@media (min-width: 900px) {
  .steps-l { grid-template-columns: repeat(3, 1fr); }
  .step-l { border-bottom: 0; border-right: 1px solid var(--rule); padding: 26px 26px 26px 0; }
  .step-l + .step-l { padding-left: 26px; }
  .step-l:last-child { border-right: 0; }
}

.promise-l { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: 48px; }
.promise-l span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-2); }
.promise-l span::before { content: '○ '; color: var(--signal); }

/* the gutter stays (the footer is also a .wrap-l), and the rule is drawn inside it so it lines up with the content */
.foot-l { padding: 56px var(--gut) calc(40px + var(--safe-b)); margin-top: 96px; background: linear-gradient(var(--ink), var(--ink)) var(--gut) 0 / calc(100% - 2 * var(--gut)) 2px no-repeat; display: grid; gap: 18px; }
.foot-l .row { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
.foot-l a { text-decoration: none; font-size: 14px; color: var(--ink-2); }
.foot-l a:hover { color: var(--ink); }
.foot-l .huge { font-size: clamp(40px, 11vw, 156px); line-height: 0.82; color: var(--ink); opacity: 0.94; }

/* ---------- motion ---------- */
.rise { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  .fp-spin.turning, .wordmark:hover .wm-rec svg { animation: none; }
  .liner * { scroll-behavior: auto !important; }
}
/* a section that is also the wrapper keeps its gutters */
.wrap-l.section-l { padding-left: var(--gut); padding-right: var(--gut); }
@media (max-width: 640px) { .track .meta { text-align: right; max-width: 60vw; line-height: 1.5; } }
