/* ---------- Tokens ---------- */
:root {
  --bg: #f7f6f3;
  --bg-elev: #ffffff;
  --ink: #15151a;
  --ink-2: #4a4a55;
  --ink-3: #7b7b87;
  --line: #e4e2dc;
  --accent: #6d4aff;
  --accent-2: #0f9f8f;
  --accent-ink: #ffffff;
  --danger: #e5484d;
  --grid: rgba(21, 21, 26, 0.07);
  --explored: rgba(109, 74, 255, 0.10);
  --frontier: rgba(15, 159, 143, 0.35);
  --wall: rgba(21, 21, 26, 0.10);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.10);

  --font-sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 16px;
  --wrap: 1080px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b10;
    --bg-elev: #14141b;
    --ink: #f1f0f5;
    --ink-2: #b4b3c0;
    --ink-3: #7e7d8c;
    --line: #25242f;
    --accent: #9b85ff;
    --accent-2: #3ee0c9;
    --accent-ink: #0b0b10;
  --danger: #ff6369;
    --grid: rgba(255, 255, 255, 0.045);
    --explored: rgba(155, 133, 255, 0.09);
    --frontier: rgba(62, 224, 201, 0.30);
    --wall: rgba(255, 255, 255, 0.07);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b10;
  --bg-elev: #14141b;
  --ink: #f1f0f5;
  --ink-2: #b4b3c0;
  --ink-3: #7e7d8c;
  --line: #25242f;
  --accent: #9b85ff;
  --accent-2: #3ee0c9;
  --accent-ink: #0b0b10;
  --danger: #ff6369;
  --grid: rgba(255, 255, 255, 0.045);
  --explored: rgba(155, 133, 255, 0.09);
  --frontier: rgba(62, 224, 201, 0.30);
  --wall: rgba(255, 255, 255, 0.07);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px rgba(0,0,0,.45);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em; }
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.nav__brand { text-decoration: none; }
.nav__mark {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: 0.9rem; letter-spacing: -0.04em;
}
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a {
  text-decoration: none; color: var(--ink-2); font-size: 0.92rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; transition: color .2s, background-color .2s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; flex: none;
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .2s;
}
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}
@media (max-width: 420px) {
  .nav__links a { padding: 8px 9px; font-size: 0.88rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(88vh, 820px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px 0 72px; overflow: hidden; isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__fade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 70% at 20% 50%, var(--bg) 25%, transparent 75%),
    linear-gradient(to bottom, transparent 70%, var(--bg));
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-2);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elev) 70%, transparent);
  margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 20%, transparent); }
.hero__title { font-size: clamp(3rem, 9vw, 6.5rem); letter-spacing: -0.045em; line-height: 0.95; max-width: 15ch; }
.hero__sub {
  display: block; margin-top: 24px; max-width: 26ch;
  font-size: clamp(1.45rem, 3.3vw, 2.25rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.18; color: var(--ink-2);
}
.hero__sub em { color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero__caption { position: absolute; bottom: 20px; left: 0; right: 0; color: var(--ink-3); }
@media (max-width: 760px) {
  /* Text spans the full width on phones, so keep the grid well in the background. */
  .hero__canvas { opacity: 0.45; }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 20px; border-radius: 12px; font: inherit; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s ease, background-color .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: color-mix(in srgb, var(--bg-elev) 60%, transparent); }
.btn--ghost:hover { border-color: var(--ink-3); }
.btn--lg { padding: 16px 24px; font-size: 1.02rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 136px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.kicker { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); letter-spacing: 0.06em; margin-bottom: 14px; text-transform: uppercase; }
.section__head { margin-bottom: 56px; }
.section__head h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -0.035em; max-width: 18ch; }

.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- About ---------- */
.two-col { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.two-col .section__head { margin-bottom: 0; position: sticky; top: 110px; align-self: start; }
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .two-col .section__head { position: static; }
}
.about__body { display: grid; gap: 1.1em; }
.about__body p { font-size: 1.08rem; color: var(--ink-2); }
.about__body p:first-child { color: var(--ink); font-size: 1.22rem; line-height: 1.55; }

.subhead {
  margin: clamp(64px, 9vw, 104px) 0 24px; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cap {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev);
  padding: 26px 24px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.cap:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: var(--shadow); }
.cap__icon {
  width: 40px; height: 40px; padding: 9px; border-radius: 10px; margin-bottom: 20px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.cap h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.cap p { color: var(--ink-2); font-size: 0.93rem; line-height: 1.55; }
.cap ul { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 6px; }
.cap li { position: relative; padding-left: 16px; font-size: 0.86rem; color: var(--ink-3); line-height: 1.45; }
.cap li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); opacity: .7; }
@media (max-width: 960px) { .caps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .caps { grid-template-columns: 1fr; } }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  font-size: 0.86rem; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink-2);
}
.chips--sm li { font-size: 0.76rem; padding: 3px 9px; font-family: var(--font-mono); }
.stack { margin-top: 24px; }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-elev); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.project:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.project.is-hidden { display: none; }
.project__img { display: block; aspect-ratio: 16 / 8; overflow: hidden; background: color-mix(in srgb, var(--ink) 4%, var(--bg)); border-bottom: 1px solid var(--line); }
.project__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s ease; }
.project:hover .project__img img { transform: scale(1.03); }
.project__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.project__tag { color: var(--ink-3); margin-bottom: 8px; }
.project h2, .project h3 { font-size: 1.3rem; margin-bottom: 10px; letter-spacing: -0.02em; }
.project :is(h2, h3) a { text-decoration: none; }
.project :is(h2, h3) a:hover { color: var(--accent); }
.project :is(h2, h3) span { font-size: 0.85em; color: var(--ink-3); }
.project__body > p:not(.project__tag) { color: var(--ink-2); font-size: 0.97rem; flex: 1; margin-bottom: 1em; }
.project--feature { grid-column: 1 / -1; flex-direction: row; }
.project--feature .project__img { flex: 1.3; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); min-height: 300px; }
.project--feature .project__body { flex: 1; padding: 36px; justify-content: center; }
.project--feature .project__body > p:not(.project__tag) { flex: 0; }
.project--feature :is(h2, h3) { font-size: 1.8rem; }
@media (max-width: 860px) {
  .projects { grid-template-columns: 1fr; }
  .project--feature { flex-direction: column; }
  .project--feature .project__img { aspect-ratio: 16 / 8; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .project--feature .project__body { padding: 24px; }
  .project--feature :is(h2, h3) { font-size: 1.4rem; }
}

/* ---------- Socials ---------- */
.socials { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: 8px; }
.socials a {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink-2); transition: color .2s, border-color .2s, transform .2s;
  background: color-mix(in srgb, var(--bg-elev) 60%, transparent);
}
.socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.socials svg, .ccard__icon svg { width: 18px; height: 18px; fill: currentColor; }
.socials svg.stroke, .ccard__icon svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Inner page header ---------- */
.page-hero { padding: clamp(72px, 12vw, 148px) 0 clamp(40px, 6vw, 72px); position: relative; isolation: isolate; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--grid) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 60% 80% at 85% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 85% 30%, #000 10%, transparent 70%);
}
.page-hero__title { font-size: clamp(2.6rem, 7vw, 5.25rem); letter-spacing: -0.045em; line-height: 1; max-width: 16ch; }
.page-hero__lead { margin-top: 24px; max-width: 52ch; color: var(--ink-2); font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.section--tight { padding: clamp(56px, 8vw, 96px) 0; }
.section--flush { padding-top: 0; }
.section--flush + .section { border-top: 0; }
.page-hero + .section { border-top: 1px solid var(--line); }
.page-hero + .section--flush { border-top: 0; }
.section__lead { color: var(--ink-2); max-width: 56ch; margin-top: 18px; font-size: 1.05rem; }

/* ---------- Links & lists ---------- */
.text-link {
  display: inline-flex; gap: 8px; align-items: center; font-weight: 600; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .2s, border-color .2s;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.about__body .text-link { justify-self: start; margin-top: 8px; }
.quick { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick a {
  display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-elev);
  text-decoration: none; font-size: 0.93rem; font-weight: 500; transition: border-color .2s, color .2s;
}
.quick a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 520px) { .quick { grid-template-columns: 1fr; } }

.principles { list-style: none; margin: 0; padding: 0; counter-reset: p; display: grid; gap: 0; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles li::before { content: "0" counter(p); grid-row: span 2; font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); padding-top: 4px; }
.principles h3 { font-size: 1.1rem; }
.principles p { color: var(--ink-2); font-size: 0.97rem; }

/* ---------- Publications ---------- */
.pubs { list-style: none; margin: 0; padding: 0; display: grid; }
.pubs li { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.pubs li:last-child { border-bottom: 1px solid var(--line); }
.pubs__venue { color: var(--accent); }
.pubs h3 { font-size: 1.1rem; line-height: 1.4; }
.pubs h3 a { text-decoration: none; }
.pubs h3 a:hover { color: var(--accent); }
.pubs p:not(.pubs__venue) { color: var(--ink-2); font-size: 0.97rem; }
.pubs strong { color: var(--ink); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.contact-aside { display: grid; gap: 16px; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

.ccard {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); padding: 24px;
  text-decoration: none; display: flex; flex-direction: column; gap: 6px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
a.ccard:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: var(--shadow); }
.ccard__icon {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; margin-bottom: 10px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
}
.ccard h2 { font-size: 1.15rem; }
.ccard h2 span { color: var(--ink-3); font-size: 0.85em; }
.ccard p { color: var(--ink-2); font-size: 0.93rem; }
.ccard__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; }
.btn--sm { padding: 7px 12px; font-size: 0.85rem; border-radius: 9px; }

/* ---------- Form ---------- */
.form {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev);
  padding: clamp(24px, 4vw, 36px); display: grid; gap: 18px;
}
.form h2 { font-size: 1.5rem; margin-bottom: 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.88rem; font-weight: 600; }
.field__opt { font-weight: 400; color: var(--ink-3); font-size: 0.82rem; margin-left: 4px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }
.field__err { margin: 0; min-height: 0; font-size: 0.82rem; color: var(--danger); }
.field__err:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 4px; }
.form__status { margin: 0; font-size: 0.93rem; color: var(--ink-2); }
.form__status.is-ok { color: var(--accent-2); }
.form__status.is-error { color: var(--danger); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Footer links ---------- */
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (max-width: 640px) { .footer__inner { flex-direction: column-reverse; } }

/* ---------- Contact ---------- */
.contact { text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.contact::before {
  content: ""; position: absolute; inset: auto 0 -40% 0; height: 80%; z-index: -1;
  background: radial-gradient(ellipse 50% 60% at 50% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
}
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact__title { font-size: clamp(2.4rem, 7vw, 5rem); letter-spacing: -0.04em; max-width: 14ch; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.contact__links { display: flex; gap: 24px; margin-top: 28px; }
.contact__links a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.contact__links a:hover { color: var(--accent); }

/* ---------- 404 ---------- */
.lost { min-height: calc(100vh - 65px); min-height: calc(100svh - 65px); }
.lost__readout {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-2);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elev) 70%, transparent);
}
.lost__readout .dot { background: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 20%, transparent); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.lost__code {
  display: block; font-size: clamp(7rem, 24vw, 15rem); font-weight: 700; line-height: .85; letter-spacing: -0.07em;
  background: linear-gradient(180deg, var(--ink) 30%, color-mix(in srgb, var(--ink) 25%, transparent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lost__title { margin-top: 18px; font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: -0.03em; font-weight: 600; max-width: 20ch; }
.lost__lead { margin-top: 14px; max-width: 44ch; color: var(--ink-2); font-size: 1.05rem; }
.lost__links { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.lost__links a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.lost__links a:hover { color: var(--accent); }
.lost__links span { color: var(--ink-3); font-family: var(--font-mono); font-size: 0.78rem; margin-right: 6px; }
@media (prefers-reduced-motion: reduce) { .lost__readout .dot { animation: none; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--ink-3); font-size: 0.88rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}
