/* ==========================================================================
   volvo.acidalchamy.com — design system
   --------------------------------------------------------------------------
   Volvo Broad for display type. Near-black graphite base, white + blue as the
   primary voice, gold reserved for accents (numbers, marks, emphasis rules).

   Everything is tokenised in :root with a light-theme override block, so both
   schemes render from one sheet.

   LAW: content visibility is NEVER gated on JS. Scroll animation is additive,
   via `animation-timeline: view()` inside @supports. A frozen/snapshot renderer
   must still show a complete page.
   ========================================================================== */

@font-face {
  font-family: 'VolvoBroad';
  src: url('/assets/fonts/volvobroad.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  /* --- surface ---------------------------------------------------------- */
  --bg:        #0b0c0e;
  --bg-2:      #101317;
  --panel:     #13171c;
  --panel-2:   #181d24;
  --hairline:  rgba(255, 255, 255, .09);
  --hairline-2: rgba(255, 255, 255, .055);

  /* --- ink -------------------------------------------------------------- */
  --ink:       #eef2f6;
  --ink-dim:   #9ba6b2;
  --ink-faint: #69737f;

  /* --- accents ---------------------------------------------------------- */
  --blue:      #4d9fff;
  --blue-hi:   #7fbaff;
  --blue-deep: #0e2b4c;
  --gold:      #c9a24a;
  --gold-hi:   #e3c377;
  --red:       #e0524a;
  --green:     #3fb98a;

  /* --- type ------------------------------------------------------------- */
  --display: 'VolvoBroad', 'Arial Narrow', Impact, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Menlo, Consolas, monospace;

  /* --- rhythm ----------------------------------------------------------- */
  --pad-sec: clamp(72px, 10vw, 132px);
  --gut: clamp(20px, 5vw, 56px);
  --measure: 66ch;
  --radius: 3px;
}

:root[data-theme="light"] {
  --bg: #f4f6f8;
  --bg-2: #eceff3;
  --panel: #ffffff;
  --panel-2: #f7f9fb;
  --hairline: rgba(12, 20, 30, .13);
  --hairline-2: rgba(12, 20, 30, .08);
  --ink: #10161d;
  --ink-dim: #4a5561;
  --ink-faint: #78838f;
  --blue: #1063d0;
  --blue-hi: #0a4699;
  --blue-deep: #d6e6fb;
  --gold: #8a6a15;
  --gold-hi: #6d5310;
}

/* ==========================================================================
   base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hi); }

::selection { background: var(--blue); color: #fff; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* grain — the one texture gimmick, used once, over everything */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   type
   ========================================================================== */

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

.display {
  font-family: var(--display);
  font-size: clamp(52px, 11vw, 148px);
  line-height: .88;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.h-sec {
  font-family: var(--display);
  font-size: clamp(30px, 4.6vw, 62px);
  line-height: .96;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.h-card {
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.1;
  letter-spacing: -.005em;
  text-transform: uppercase;
}

/* mono eyebrow — the recurring structural label */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.eyebrow .n { color: var(--gold); font-variant-numeric: tabular-nums; }

.lede {
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.5;
  color: var(--ink-dim);
  max-width: 60ch;
  margin: 22px 0 0;
}

p { max-width: var(--measure); }
p, li { color: var(--ink-dim); }
strong { color: var(--ink); font-weight: 600; }

.num { font-variant-numeric: tabular-nums; }

blockquote {
  margin: 34px 0;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--gold);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.45;
  font-style: italic;
  color: var(--ink);
}

/* ==========================================================================
   layout
   ========================================================================== */

.wrap { width: min(1240px, 100% - var(--gut) * 2); margin-inline: auto; }
.wrap-tight { width: min(860px, 100% - var(--gut) * 2); margin-inline: auto; }

section { padding-block: var(--pad-sec); position: relative; }
.sec-line { border-top: 1px solid var(--hairline-2); }

/* reading progress */
#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  z-index: 9999;
}

/* ==========================================================================
   nav
   ========================================================================== */

.nav {
  position: sticky; top: 0; z-index: 500;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline-2);
}
.nav-in {
  display: flex; align-items: center; gap: 26px;
  padding-block: 15px;
}
.brand {
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex; align-items: center; gap: 11px;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand .mark {
  width: 22px; height: 22px; flex: none;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  position: relative;
}
/* the iron-mark arrow */
.brand .mark::before {
  content: '';
  position: absolute; top: -3px; right: -5px;
  width: 11px; height: 1.5px;
  background: var(--gold);
  transform: rotate(-45deg);
}

.nav-links { display: flex; gap: 3px; margin-left: auto; flex-wrap: wrap; }
.nav-links a {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 7px 11px;
  border-radius: var(--radius);
  border: 1px solid transparent;
}
.nav-links a:hover { color: var(--ink); background: var(--panel); }
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--hairline);
  background: var(--panel);
}
.nav-links a.is-blue { color: var(--blue); }

.theme-btn {
  background: none; border: 1px solid var(--hairline);
  color: var(--ink-dim); cursor: pointer;
  width: 30px; height: 30px; border-radius: var(--radius);
  font-size: 13px; line-height: 1;
  display: grid; place-items: center;
}
.theme-btn:hover { color: var(--ink); border-color: var(--blue); }

/* ==========================================================================
   hero
   ========================================================================== */

.hero { padding-block: clamp(72px, 13vw, 168px) var(--pad-sec); position: relative; overflow: hidden; }

/* two blurred aurora blobs, behind the hero only */
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(105px); pointer-events: none; z-index: 0;
}
.hero::before {
  width: 620px; height: 620px; top: -220px; left: -160px;
  background: rgba(77, 159, 255, .17);
}
.hero::after {
  width: 460px; height: 460px; bottom: -230px; right: -110px;
  background: rgba(201, 162, 74, .11);
}
.hero > * { position: relative; z-index: 1; }

.hero .display span.b { color: var(--blue); }
.hero .display span.g { color: var(--gold); }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 40px;
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-faint);
}
.hero-meta b { color: var(--ink); font-weight: 400; }

/* ==========================================================================
   buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .13em; text-transform: uppercase;
  padding: 12px 20px; border-radius: var(--radius);
  border: 1px solid var(--hairline);
  color: var(--ink); background: var(--panel);
}
.btn:hover { border-color: var(--blue); color: var(--ink); background: var(--panel-2); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hi); border-color: var(--blue-hi); color: #06121f; }
.btn-gold { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-gold:hover { background: var(--gold); color: #14100a; border-color: var(--gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ==========================================================================
   cards / grids
   ========================================================================== */

.grid { display: grid; gap: 1px; background: var(--hairline-2); border: 1px solid var(--hairline-2); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }

.card {
  background: var(--bg);
  padding: 30px 28px;
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
}
.card:hover { background: var(--panel); }
.card p { margin: 0; font-size: 15.5px; line-height: 1.62; }
.card .k {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold);
}
.card .foot {
  margin-top: auto; padding-top: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint);
  display: flex; gap: 14px; flex-wrap: wrap;
}
.card-link::after {
  content: ''; position: absolute; inset: 0;
}

/* platform split — the two big doors */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1px;
         background: var(--hairline-2); border: 1px solid var(--hairline-2); }
.door {
  background: var(--bg); padding: clamp(34px, 4.6vw, 64px);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; min-height: 340px;
}
.door::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 12% 0%, rgba(77,159,255,.11), transparent 62%);
  opacity: 0; transition: opacity .45s;
}
.door.gold::before { background: radial-gradient(120% 90% at 12% 0%, rgba(201,162,74,.11), transparent 62%); }
.door:hover::before { opacity: 1; }
.door > * { position: relative; }
.door .yr {
  font-family: var(--display); font-size: clamp(46px, 7vw, 88px);
  line-height: .9; letter-spacing: -.03em; color: var(--blue);
}
.door.gold .yr { color: var(--gold); }
.door .bd { color: var(--ink-dim); font-size: 15.5px; margin: 16px 0 0; max-width: 44ch; }
.door .tags { margin-top: auto; padding-top: 26px; display: flex; flex-wrap: wrap; gap: 7px; }

.tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-dim);
  border: 1px solid var(--hairline); padding: 4px 9px; border-radius: 100px;
}
.tag.b { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 40%, transparent); }
.tag.g { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.tag.ok { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.tag.no { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); }

/* ==========================================================================
   stat strip
   ========================================================================== */

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--hairline-2);
  border-block: 1px solid var(--hairline-2);
}
.stat { background: var(--bg); padding: 26px 22px; }
.stat .v {
  font-family: var(--display); font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.stat .v.b { color: var(--blue); }
.stat .v.g { color: var(--gold); }
.stat .l {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink-faint); margin-top: 9px;
}

/* ==========================================================================
   tables — the harness catalog
   ========================================================================== */

.tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--hairline-2);
  background: var(--panel);
}
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
table.data th {
  text-align: left;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-faint); font-weight: 400;
  padding: 13px 15px; border-bottom: 1px solid var(--hairline);
  background: var(--bg-2); position: sticky; top: 0; z-index: 2;
  white-space: nowrap;
}
table.data td {
  padding: 12px 15px; border-bottom: 1px solid var(--hairline-2);
  color: var(--ink-dim); vertical-align: top;
}
table.data tr:hover td { background: var(--panel-2); }
table.data td.pn {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  color: var(--blue); white-space: nowrap; font-size: 13.5px;
}
table.data td.nm { color: var(--ink); }
table.data td.note { font-size: 12.5px; color: var(--ink-faint); max-width: 34ch; }

/* inline bar viz inside a table cell */
.bar { display: block; height: 3px; background: var(--hairline); margin-top: 7px; }
.bar > i { display: block; height: 100%; background: var(--blue); }
.bar > i.g { background: var(--gold); }

/* copy button on part numbers */
.copy {
  background: none; border: 1px solid var(--hairline); cursor: pointer;
  color: var(--ink-faint); font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .1em; padding: 2px 6px; border-radius: 2px; margin-left: 8px;
  text-transform: uppercase;
}
.copy:hover { color: var(--gold); border-color: var(--gold); }

/* filter bar */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; align-items: center; }
.filters input[type="search"] {
  flex: 1 1 240px; min-width: 200px;
  background: var(--panel); border: 1px solid var(--hairline);
  color: var(--ink); padding: 10px 14px; border-radius: var(--radius);
  font-family: var(--mono); font-size: 12.5px;
}
.filters input[type="search"]:focus { outline: none; border-color: var(--blue); }
.chip {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-dim);
  background: var(--panel); border: 1px solid var(--hairline);
  padding: 7px 12px; border-radius: 100px; cursor: pointer;
}
.chip[aria-pressed="true"] { color: var(--ink); border-color: var(--blue); background: var(--blue-deep); }
.chip .c { color: var(--ink-faint); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   car-zone map — the clickable "find by area" control
   ========================================================================== */

.carmap { margin: 40px 0 8px; }
.carmap-grid {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.carmap-svgwrap {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(77,159,255,.07), transparent 60%),
    #060708;
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius);
  padding: 14px;
}
.carmap-svg { width: 100%; height: auto; display: block; max-height: 72vh; }

/* zones — transparent overlays on the car render; the art shows through until you
   hover, when the region tints. Labels stay faintly on so the map reads as segmented. */
.cm-zone { cursor: pointer; }
.cm-hit {
  fill: transparent;
  stroke: transparent;
  stroke-width: 1.25;
  transition: fill .16s, stroke .16s;
}
.cm-zone:hover .cm-hit { fill: rgba(77, 159, 255, .34); stroke: var(--blue); }
.cm-zone:focus-visible { outline: none; }
.cm-zone:focus-visible .cm-hit { stroke: var(--blue); stroke-width: 2.2; fill: rgba(77, 159, 255, .22); }
.cm-zone.is-active .cm-hit {
  fill: rgba(201, 162, 74, .42);
  stroke: var(--gold);
  stroke-width: 1.8;
}
.cm-label {
  fill: var(--ink);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .1em;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  opacity: .82;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, .65);
  stroke-width: 2.6px;
  stroke-linejoin: round;
  transition: fill .16s, opacity .16s;
}
.cm-zone:hover .cm-label { fill: #fff; opacity: 1; }
.cm-zone.is-active .cm-label { fill: var(--gold-hi); opacity: 1; }
.cm-count {
  fill: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, .65);
  stroke-width: 2.6px;
  stroke-linejoin: round;
}
.cm-axis {
  fill: var(--ink-faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .28em;
  text-anchor: middle;
}

/* chips (touch + a11y control, mirror the SVG) */
.cm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: var(--panel);
  border: 1px solid var(--hairline);
  padding: 8px 13px;
  border-radius: 100px;
  cursor: pointer;
  transition: all .16s;
}
.cm-chip:hover { color: var(--ink); border-color: var(--blue); }
.cm-chip .c { color: var(--ink-faint); font-variant-numeric: tabular-nums; margin-left: 4px; }
.cm-chip[aria-pressed="true"] {
  color: var(--gold-hi);
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 12%, var(--bg));
}
.cm-chip[aria-pressed="true"] .c { color: var(--gold); }
.cm-blurb {
  margin: 18px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-dim);
  min-height: 1.6em;
  max-width: 46ch;
  padding-left: 14px;
  border-left: 2px solid transparent;
  transition: border-color .2s;
}
.cm-blurb.on { border-left-color: var(--gold); }

@media (max-width: 760px) {
  .carmap-grid { grid-template-columns: 1fr; }
  .carmap-svgwrap { max-width: 320px; margin: 0 auto; }
}

/* ==========================================================================
   project imagery — heroes + galleries
   ========================================================================== */

.phero {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--panel);
  display: block;
}

.pgallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.pgallery figure { margin: 0; }
.pgallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--hairline-2);
  background: var(--panel);
  transition: border-color .18s, transform .18s;
}
.pgallery figure:hover img { border-color: var(--blue); transform: translateY(-2px); }
.pgallery figcaption {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--ink-faint);
  margin-top: 7px;
}

/* album call-to-action (shown until real images are added) */
.album-cta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 22px;
  padding: 22px;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(201,162,74,.03) 14px 28px);
}
.album-note {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint);
}

/* a card thumbnail (home / platform grids) */
.card-thumb {
  width: calc(100% + 56px);
  margin: -30px -28px 4px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--hairline);
  display: block;
}

/* ==========================================================================
   gate — the login wall on VIDA-derived data
   ========================================================================== */

.gate {
  border: 1px solid var(--hairline);
  background:
    linear-gradient(180deg, var(--panel), var(--bg)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(201,162,74,.03) 12px 24px);
  padding: clamp(32px, 5vw, 60px);
  text-align: center;
}
.gate .lock { font-size: 26px; color: var(--gold); margin-bottom: 16px; }
.gate p { margin: 14px auto 0; max-width: 52ch; }

/* ==========================================================================
   link list — external resources
   ========================================================================== */

.links { border-top: 1px solid var(--hairline-2); }
.lrow {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 22px; align-items: baseline;
  padding: 20px 4px; border-bottom: 1px solid var(--hairline-2);
  position: relative;
}
.lrow:hover { background: var(--panel); }
.lrow .t { color: var(--ink); font-size: 16.5px; }
.lrow .d { color: var(--ink-faint); font-size: 14px; grid-column: 1 / -1; margin: 0; max-width: 78ch; }
.lrow .meta {
  font-family: var(--mono); font-size: 10px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-faint); white-space: nowrap;
}

/* ==========================================================================
   timeline — project updates
   ========================================================================== */

.tl { border-left: 1px solid var(--hairline); margin-left: 8px; padding-left: 0; list-style: none; }
.tl li { position: relative; padding: 0 0 34px 30px; }
.tl li::before {
  content: ''; position: absolute; left: -4.5px; top: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--blue);
}
.tl li.gold::before { border-color: var(--gold); }
.tl .when {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-faint);
}
.tl .what { color: var(--ink); margin: 5px 0 0; font-size: 16px; }
.tl .body { color: var(--ink-dim); font-size: 14.5px; margin: 7px 0 0; }

/* ==========================================================================
   footer
   ========================================================================== */

.foot {
  border-top: 1px solid var(--hairline-2);
  padding-block: 54px 44px;
  margin-top: var(--pad-sec);
}
.foot-in { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.foot .fine {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint); line-height: 2;
}
.foot a { color: var(--ink-dim); }
.foot a:hover { color: var(--blue); }
.disclaimer {
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--hairline-2);
  font-size: 12.5px; color: var(--ink-faint); max-width: 88ch; line-height: 1.7;
}

/* ==========================================================================
   scroll reveal — ADDITIVE ONLY (content is visible by default)
   ========================================================================== */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes rise {
      from { opacity: 0; transform: translateY(16px); }
      to   { opacity: 1; transform: none; }
    }
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 22%;
    }
  }
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 720px) {
  .nav-in { flex-wrap: wrap; gap: 12px; }
  .nav-links { width: 100%; margin-left: 0; }
  body { font-size: 16px; }
  .lrow { grid-template-columns: 1fr; }
}

@media print {
  body::after, #progress, .nav, .theme-btn { display: none; }
  body { background: #fff; color: #000; }
}
