/* Deeper — deeper.dj
   A limited-pressing art insert that happens to sell software. An immersive
   teal->amber depth field, viewport-scale Plex Sans Light display type, and
   real iOS-material glass (backdrop-filter blur+saturate, -webkit- prefixed;
   specular top edges; vibrancy over local blooms). Multi-band waveform in the
   app's own band colors (cyan lows / rose mids / champagne highs).
   IBM Plex Sans + Mono, self-hosted. */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: 'IBM Plex Sans'; font-weight: 300; font-style: normal; font-display: swap; src: url('fonts/IBMPlexSans-Light.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/IBMPlexSans-Regular.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/IBMPlexSans-Medium.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/IBMPlexSans-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/IBMPlexMono-Regular.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/IBMPlexMono-Medium.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  /* Exact DeeperTheme tokens (DeeperTheme.swift + mobile theme.ts) */
  --bg: #090a0e;          /* backgroundDeep */
  --bg-mid: #0e0f14;      /* backgroundMid */
  --bg-warm: #14151b;     /* backgroundWarm */

  --cyan: rgb(0, 196, 214);      /* accent + waveform lows */
  --gold: rgb(243, 179, 62);     /* goldenAmber */
  --burnt: rgb(209, 91, 67);     /* burntOrange */
  --rose: rgb(235, 97, 128);     /* waveform mids */
  --champ: rgb(255, 245, 224);   /* waveform highs */
  --ice: #f0f4f8;                /* iceWhite */
  --amber: var(--gold);          /* legacy alias -> goldenAmber */

  --text: #f0f4f8;                       /* primary = iceWhite */
  --text-2: rgba(255, 255, 255, 0.86);   /* secondary */
  --text-3: rgba(255, 255, 255, 0.64);   /* tertiary */
  --text-4: rgba(255, 255, 255, 0.5);    /* muted */

  --border: rgba(255, 255, 255, 0.10);
  --border-2: rgba(255, 255, 255, 0.14);
  --border-3: rgba(255, 255, 255, 0.20);
  --hair: var(--border);          /* legacy aliases */
  --hair-2: var(--border-2);

  /* App glass: black surfaces + our backdrop-filter */
  --glass-1: rgba(0, 0, 0, 0.42);    /* browser-surface glass (vibrant) */
  --glass-2: rgba(10, 10, 10, 0.72); /* player glass */
  --glass-3: rgba(0, 0, 0, 0.90);    /* heavy glass */

  --sans: 'IBM Plex Sans', ui-sans-serif, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

/* ---------- Backdrop composite (matches the app, 4 layers) ----------
   1) solid backgroundDeep  2) the app's own nebula art  3) black scrim ~0.40
   4) warm bloom anchored to the bottom edge (burntOrange -> goldenAmber glow). */
.field {
  position: fixed; inset: 0; z-index: -2;
  background:
    /* 4 — warm bottom bloom (glow layer, low opacity) */
    radial-gradient(1500px 720px at 50% 122%, rgba(209, 91, 67, 0.24), transparent 60%),
    radial-gradient(1300px 560px at 52% 128%, rgba(243, 179, 62, 0.15), transparent 56%),
    /* faint cyan accent, top-left, echoing the app's cool corner */
    radial-gradient(1100px 720px at 14% 2%, rgba(0, 196, 214, 0.08), transparent 60%),
    /* 3 — black scrim over the art */
    linear-gradient(rgba(9, 10, 14, 0.42), rgba(9, 10, 14, 0.42)),
    /* 2 — the app's nebula background */
    url('media/bg-nebula.jpg') center/cover no-repeat,
    /* 1 — solid base */
    var(--bg);
}
.field::after {   /* vignette for depth */
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(132% 110% at 50% 32%, transparent 50%, rgba(0,0,0,0.62));
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.42;
  background-image:
    radial-gradient(rgba(255,255,255,0.045) 0.5px, transparent 0.6px),
    radial-gradient(rgba(255,255,255,0.03) 0.5px, transparent 0.6px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
}

/* ---------- Shared glass ---------- */
.glass {
  position: relative;
  background:
    linear-gradient(157deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02) 34%, rgba(255,255,255,0) 60%),
    var(--glass-1);   /* app browser-surface glass: black 0.42 */
  backdrop-filter: blur(40px) saturate(180%) brightness(1.06);
  -webkit-backdrop-filter: blur(40px) saturate(180%) brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 0 70px rgba(255,255,255,0.03),
    0 44px 110px -46px rgba(0,0,0,0.86);
}
.glass::before {   /* specular refractive edge: bright top, dark bottom */
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.07) 24%, rgba(255,255,255,0) 54%, rgba(0,0,0,0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

.page { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
@media (max-width: 640px) { .page { padding: 0 20px; } }

/* mono caption / label — the "small caps" editorial counter to the huge Light type */
.cap {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-3);
}
.lbl {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--cyan);
}

/* ---------- Glass nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(9,13,14,0.38);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--mono); font-size: 14px; letter-spacing: 0.1em; text-transform: lowercase; color: var(--text); }
.brand .mark { color: var(--cyan); font-size: 11px; transform: translateY(0.5px); }
.nav-get { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); transition: opacity 0.2s ease; }
.nav-get:hover { opacity: 0.7; }

/* ---------- Immersive hero ---------- */
/* padding-bottom reserves clearance for the absolute waveform strip so the
   centered content never collides with it on short viewports */
.hero { position: relative; overflow: hidden; min-height: 94vh; padding-bottom: 128px; display: flex; flex-direction: column; justify-content: center; }

/* light-emission pool behind the diamond — the render "giving off light".
   Sits BEHIND the video (never over it, so it can't soften the clip). */
.gem-glow {
  position: absolute; top: 50%; right: -9%;
  width: min(66vh, 580px); aspect-ratio: 1;
  transform: translateY(-50%);
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(0,196,214,0.30), transparent 52%),
    radial-gradient(circle at 55% 74%, rgba(243,179,62,0.24), transparent 56%);
  filter: blur(72px);
}

/* the ◆ mark as an organic display window — the real waveform clip clipped
   inside a tilted glass diamond (video counter-rotated so it plays upright).
   The video is sized (not transform-scaled) so it rasterizes crisp from source. */
.gem {
  position: absolute; top: 50%; right: -9%;
  width: min(66vh, 580px); aspect-ratio: 1;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 20px; overflow: hidden;
  box-shadow: inset 0 3px 0 rgba(255,255,255,0.22), inset 0 -3px 0 rgba(0,0,0,0.35), 0 70px 150px -54px rgba(0,0,0,0.8);
}
.gem-media {
  position: absolute; top: 50%; left: 50%;
  width: 142%; height: 142%;               /* covers the diamond diagonal without a transform scale */
  object-fit: cover;
  transform: translate(-50%, -50%) rotate(-45deg) translateZ(0);
  backface-visibility: hidden;
}
.gem::before {   /* specular refractive edge, over the video */
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
  background: linear-gradient(140deg, rgba(255,255,255,0.65), rgba(255,255,255,0.08) 32%, rgba(0,0,0,0.38));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.gem::after {   /* glass rim only — no dark fill over the clip (keeps it crisp) */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), inset 0 3px 22px rgba(255,255,255,0.05);
}

.hero-in { position: relative; z-index: 3; padding: 8vh 0; }
.hero-cap { display: block; }
.title {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(84px, 20vw, 300px);
  letter-spacing: -0.055em; line-height: 0.9;
  color: var(--text);
  margin: 2.4vh 0 0;
  text-shadow: 0 2px 24px rgba(0,0,0,0.55), 0 30px 80px rgba(0,0,0,0.5);
}
.hero-sub {
  margin-top: 3.4vh; max-width: 40ch;
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(16px, 1.7vw, 20px); line-height: 1.5; color: var(--text-2);
}
.hero-sub strong { color: var(--text); font-weight: 500; }
/* quiet footnote under the chip (OS requirement demoted off the headline slot) */
.hero-foot { margin-top: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-4); }
.hero-foot .warm { color: var(--amber); }

/* glass download chip — thick, specular top edge */
.get {
  margin-top: 34px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 26px; border-radius: 15px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: #e2fbfd;
  background:
    linear-gradient(157deg, rgba(255,255,255,0.18), rgba(255,255,255,0.03) 42%),
    linear-gradient(180deg, rgba(0,196,214,0.24), rgba(0,196,214,0.1));
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.5), inset 0 -1px 0 rgba(0,0,0,0.3), 0 20px 46px -18px rgba(0,196,214,0.55);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.get:hover { transform: translateY(-2px); box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.6), inset 0 -1px 0 rgba(0,0,0,0.3), 0 26px 58px -18px rgba(0,196,214,0.75); }
.get .arw { font-size: 13px; }

/* ---------- Multi-band waveform (app band colors) ---------- */
.mbwave {
  position: relative; z-index: 2;
  height: 92px; overflow: hidden;
  display: flex; align-items: flex-end; gap: 2px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
/* hero waveform — ambient full-width strip pinned to the bottom of the field */
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  height: 108px; opacity: 0.5;
  padding: 0 40px;
  pointer-events: none;
  /* fade left/right AND top so the strip blends into the field on short screens */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(180deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(180deg, transparent, #000 60%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
@media (max-width: 640px) { .hero-wave { padding: 0 20px; height: 70px; } }
.mbwave .bar {
  flex: 1 1 0; min-width: 0; border-radius: 1.5px 1.5px 0 0;
  /* lows cyan at the base, mids rose, highs champagne at the tip */
  background: linear-gradient(0deg, rgba(0,196,214,0.95), rgba(235,97,128,0.9) 52%, rgba(255,245,224,0.95));
  opacity: 0.82;
}

/* ---------- Sections rhythm ---------- */
.section { padding: 84px 0; }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 30px; }

/* contents: styled like the app's track table on a glass sheet */
.contents .sheet { border-radius: 24px; padding: 10px 30px; }
.thead, .trk {
  display: grid; grid-template-columns: 3rem minmax(9rem, 15rem) 1fr; gap: 26px; align-items: baseline;
}
.thead {
  padding: 20px 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-3);
  border-bottom: 1px solid var(--hair);
}
.trk {
  position: relative; padding: 26px 6px; border-bottom: 1px solid var(--hair);
  transition: background 0.2s ease;
}
.trk:last-child { border-bottom: none; }
.trk::before {   /* app-style left accent bar on hover */
  content: ''; position: absolute; left: -30px; top: 0; bottom: 0; width: 2px; background: var(--cyan);
  opacity: 0; transition: opacity 0.2s ease;
}
.trk:hover { background: linear-gradient(90deg, rgba(0,196,214,0.09), rgba(243,179,62,0.05)); }
.trk:hover::before { opacity: 1; }
.trk .idx { font-family: var(--mono); font-size: 13px; color: var(--text-3); transition: color 0.2s ease; }
.trk:hover .idx { color: var(--cyan); }
.trk h3 { font-size: 19px; font-weight: 500; color: var(--text); }
.trk p { color: var(--text-2); font-size: 14.5px; font-weight: 300; }
@media (max-width: 720px) {
  .contents .sheet { padding: 6px 20px; }
  .thead { display: none; }
  .trk { grid-template-columns: 2.4rem 1fr; gap: 4px 16px; padding: 22px 4px; }
  .trk .idx { grid-row: 1; }
  .trk h3 { grid-column: 2; margin-bottom: 5px; }
  .trk p { grid-column: 2; }
  .trk::before { left: -16px; }
}

/* terms: a floating glass ledger over a local amber bloom, waveform behind */
.terms { position: relative; }
.ledger-stage { position: relative; display: flex; justify-content: flex-end; padding: 20px 0; }
.terms-bloom {
  position: absolute; z-index: 0; right: 0; top: -12%; width: 68%; height: 130%;
  background: radial-gradient(60% 60% at 60% 50%, rgba(216,120,52,0.5), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.terms-wave {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 8%; height: 120px; opacity: 0.4; overflow: hidden;
  display: flex; align-items: flex-end; gap: 3px; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.terms-wave .bar { flex: 1 1 0; border-radius: 1px; background: linear-gradient(0deg, rgba(0,196,214,0.9), rgba(235,97,128,0.85) 52%, rgba(255,245,224,0.9)); }
.ledger {
  position: relative; z-index: 2; width: min(480px, 100%); border-radius: 24px; padding: 40px 40px 44px;
  /* heavier base so the amber bloom bleeds through as warmth but text stays AA */
  background:
    linear-gradient(157deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02) 34%, transparent 60%),
    rgba(0,0,0,0.58);
}
.terms-lead { position: relative; z-index: 2; max-width: 30ch; align-self: center; margin-right: auto; padding-right: 30px; }
.terms-lead h2 { font-family: var(--sans); font-weight: 300; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.03em; line-height: 1.02; }
.terms-lead p { margin-top: 18px; color: var(--text-2); font-weight: 300; font-size: 15px; }
.beta { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 22px; }
.beta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.ledger dl { margin: 0; }
.trow { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 15px 0; border-top: 1px solid var(--hair); }
.trow:first-of-type { border-top: none; }
.trow dt { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; text-transform: lowercase; color: var(--text-2); }
.trow dd { margin: 0; font-family: var(--mono); font-size: 15px; color: var(--text); text-align: right; }
.trow dd .amt { color: var(--cyan); }
.trow dd .free { color: var(--text-2); font-size: 11.5px; }
.buys { margin-top: 24px; display: none; gap: 20px; flex-wrap: wrap; }
.buys a { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan); border-bottom: 1px solid rgba(0,196,214,0.34); padding-bottom: 2px; }
.buys a.alt { color: var(--text-2); border-bottom-color: var(--hair-2); }
@media (max-width: 820px) {
  .ledger-stage { flex-direction: column; }
  .terms-lead { max-width: none; padding-right: 0; margin-bottom: 34px; align-self: stretch; }
  .ledger { width: 100%; }
}

/* notes: a different rhythm — offset two-column Q&A, no rule-rows */
/* notes sits closer to the ledger above, and its columns are divided */
.notes { padding-top: 44px; }
.notes-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 0; row-gap: 34px; }
.entry { padding: 4px 0 4px 40px; border-left: 1px solid var(--border); }
.entry:nth-child(odd) { padding-left: 0; padding-right: 40px; border-left: none; }
@media (max-width: 720px) {
  .notes-grid { grid-template-columns: 1fr; row-gap: 0; }
  .entry, .entry:nth-child(odd) { padding: 22px 0; border-left: none; border-top: 1px solid var(--border); }
  .entry:first-child { border-top: none; }
}
.entry .q { display: flex; gap: 12px; align-items: baseline; }
.entry .q .n { font-family: var(--mono); font-size: 12px; color: var(--cyan); }
.entry h3 { font-size: 17px; font-weight: 500; color: var(--text); }
.entry p { margin-top: 10px; padding-left: 25px; color: var(--text-2); font-weight: 300; font-size: 14.5px; }

/* ---------- Maker note (typography only — no panel, no border) ---------- */
.maker .maker-body { max-width: 640px; }
.maker .maker-body p { color: var(--text-2); font-weight: 300; font-size: 16px; line-height: 1.7; }
.maker .maker-body p + p { margin-top: 20px; }
.maker .sign {
  margin-top: 30px; font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; color: var(--text-3); line-height: 1.7;
}
.maker .sign .mark { color: var(--cyan); font-size: 10px; margin-right: 6px; }
.maker .sign a { color: var(--text-2); border-bottom: 1px solid rgba(0,196,214,0.34); transition: color 0.2s ease; }
.maker .sign a:hover { color: var(--text); }

/* ---------- Media exhibits (real app captures) ---------- */
/* the waveform — its own exhibit: real app clip inside a glass plate */
.wave-plate { border-radius: 22px; padding: 14px 14px 0; overflow: hidden; }
.wave-media {
  position: relative; display: block; width: 100%; border-radius: 12px; overflow: hidden;
  background: var(--bg-mid); border: 1px solid var(--border);
  aspect-ratio: 1728 / 270;   /* exact webm dimensions — reserves space before load */
}
.wave-media video, .wave-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.plate-cap {
  display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; color: var(--text-3);
  padding: 16px 6px 18px;
}
.plate-cap .k { color: var(--cyan); text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; }

/* catalogue plates — Mac + iPhone screenshots, hairline-framed */
.gallery-grid { display: grid; grid-template-columns: 1.62fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: 1fr; } }
.plate { border-radius: 20px; padding: 16px 16px 4px; }
.plate .frame {
  border: 1px solid var(--border-2); border-radius: 12px; overflow: hidden;
  background: var(--bg-mid); box-shadow: 0 30px 70px -40px rgba(0,0,0,0.9);
}
.plate .frame img { display: block; width: 100%; height: auto; }
.plate.phones .frame {
  display: flex; justify-content: center; gap: 14px; padding: 20px 16px; background: var(--bg-mid);
}
.plate.phones .frame img { width: auto; height: 460px; max-width: 46%; border-radius: 20px; border: 1px solid var(--border); }
@media (max-width: 520px) { .plate.phones .frame img { height: 340px; } }
/* placeholder block (used only if a capture is missing — never a fabricated UI) */
.slot { background: var(--bg-mid); display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-4); }

/* ---------- Colophon ---------- */
.colophon {
  display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap;
  padding: 40px 0 64px; margin-top: 40px; border-top: 1px solid var(--hair);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: lowercase; color: var(--text-3);
}
.colophon .brand { font-size: 13px; }
.colophon a { color: var(--text-2); transition: color 0.2s ease; }
.colophon a:hover { color: var(--text); }
.colophon .spacer { flex: 1; }

/* ---------- Load reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); animation: rise 1.05s cubic-bezier(0.2,0.7,0.2,1) forwards; }
.reveal.d1 { animation-delay: 0.06s; }
.reveal.d2 { animation-delay: 0.18s; }
.reveal.d3 { animation-delay: 0.3s; }
.reveal.d4 { animation-delay: 0.42s; }
.reveal.d5 { animation-delay: 0.54s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.gem.reveal { animation-duration: 1.6s; }

/* ---------- Legal page ---------- */
.legal { padding: 40px 0 40px; }
.legal .panel { border-radius: 26px; padding: 54px 58px; }
@media (max-width: 640px) { .legal .panel { padding: 34px 24px; } }
.legal h1 { margin-top: 16px; font-family: var(--sans); font-weight: 300; font-size: clamp(38px, 6vw, 68px); letter-spacing: -0.045em; }
.legal .updated { margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-3); }
.legal .intro { margin-top: 26px; color: var(--text-2); font-weight: 300; font-size: 16px; max-width: 62ch; }
.legal h2 { font-size: 12px; font-weight: 500; margin: 44px 0 12px; font-family: var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); }
.legal p { color: var(--text-2); font-weight: 300; margin-top: 12px; max-width: 66ch; }
.legal ul { margin: 16px 0 0; padding-left: 0; list-style: none; }
.legal li { color: var(--text-2); font-weight: 300; padding: 14px 0 14px 26px; position: relative; border-top: 1px solid var(--hair); max-width: 66ch; }
.legal li::before { content: '\25C6'; position: absolute; left: 0; color: var(--cyan); font-size: 11px; top: 17px; }
.legal li strong { color: var(--text); font-weight: 500; }
.legal a.inline { color: var(--cyan); border-bottom: 1px solid rgba(0,196,214,0.34); }
.legal .back { display: inline-block; margin-top: 48px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.legal .back:hover { color: var(--text); }

/* ---------- 404 (typography only — no panel, no border) ---------- */
.notfound {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding-top: 40px; padding-bottom: 80px;
}
.nf-mark { color: var(--cyan); font-size: 20px; margin-bottom: 22px; text-shadow: 0 0 22px rgba(0,196,214,0.5); }
.nf-num { color: var(--text); }
.nf-line { margin-top: 3vh; font-family: var(--sans); font-weight: 300; font-size: clamp(18px, 2.4vw, 24px); color: var(--text); }
.nf-sub { margin-top: 14px; max-width: 40ch; color: var(--text-3); font-weight: 300; font-size: 15px; }
.nf-links {
  margin-top: 40px; display: flex; gap: 28px; flex-wrap: wrap; justify-content: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.nf-links a { color: var(--text-2); transition: color 0.2s ease; }
.nf-links a:hover { color: var(--text); }
.nf-links .nf-back { color: var(--cyan); }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive hero ---------- */
@media (max-width: 640px) {
  .hero { min-height: 90vh; padding-bottom: 80px; }
  .title { font-size: clamp(54px, 15.5vw, 96px); letter-spacing: -0.04em; }
  .gem { right: -34%; top: 30%; width: 82vw; opacity: 0.7; }
  .mbwave { height: 64px; }
  .section { padding: 60px 0; }
}
