/* dikshabhandari.de — site styles
   1 Fonts  2 Tokens  3 Base  4 Layout  5 Header  6 Buttons and links
   7 Hero  8 Sections  9 Research  10 Cards  11 Publications  12 CV
   13 About  14 Prose  15 Contact  16 Footer  17 Motion               */

/* 1 Fonts (self-hosted, no third-party requests) -------------------- */
@font-face { font-family: "Crimson Pro"; src: url("../fonts/crimson-pro.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Pro"; src: url("../fonts/crimson-pro-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

/* 2 Tokens ---------------------------------------------------------- */
:root {
  --paper: #f5f6f8;
  --surface: #ffffff;
  --ink: #0f1729;
  --ink-2: #414c63;
  --ink-3: #5e6982;
  --line: #dadfe8;
  --line-2: #c4cbd8;
  --accent: #2743d6;      /* posterior: what the data support */
  --accent-ink: #ffffff;
  --prior: #b4620a;       /* prior: what we believed before */

  --font-display: "Crimson Pro", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 11vw, 136px);
  --radius: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;
}
:root[data-theme="dark"] {
  --paper: #0b1020;
  --surface: #121a33;
  --ink: #e8ebf5;
  --ink-2: #b3bbd0;
  --ink-3: #8d97b2;
  --line: #232d4b;
  --line-2: #34406a;
  --accent: #93a5ff;
  --accent-ink: #0b1020;
  --prior: #f0b45e;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --paper: #0b1020; --surface: #121a33; --ink: #e8ebf5; --ink-2: #b3bbd0; --ink-3: #8d97b2;
    --line: #232d4b; --line-2: #34406a; --accent: #93a5ff; --accent-ink: #0b1020; --prior: #f0b45e;
  }
}

/* 3 Base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration-color: var(--line-2); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; color: var(--paper); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 4 Layout ---------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(760px + 2 * var(--gutter)); }
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.eyebrow, .meta, .label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}
.eyebrow a { text-decoration: none; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.page-head { padding-top: clamp(48px, 9vw, 104px); padding-bottom: clamp(32px, 5vw, 56px); }
.page-title { font-size: clamp(2.5rem, 5.4vw, 4.25rem); margin-top: 14px; max-width: 18ch; }
.page-lede { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 60ch; margin: 22px 0 0; line-height: 1.55; }

/* 5 Header ---------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__in { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); margin-right: auto; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand__mark { flex: none; transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(32deg); }
.dot-prior { fill: var(--prior); }
.dot-post { fill: var(--accent); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav ul { display: flex; gap: 4px; }
.nav li a { display: block; padding: 10px 12px; font-size: 0.97rem; color: var(--ink-2); text-decoration: none; border-radius: 8px; position: relative; }
.nav li a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav li a:hover, .nav li a[aria-current="page"] { color: var(--ink); }
.nav li a:hover::after, .nav li a[aria-current="page"]::after { transform: scaleX(1); }
.site-header__tools { display: flex; align-items: center; gap: 4px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--ink-2); border-radius: 10px; cursor: pointer; transition: background .2s, color .2s; }
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.icon--moon { display: none; }
[data-theme="dark"] .icon--sun { display: none; }
[data-theme="dark"] .icon--moon { display: block; }
.nav-toggle { display: none; }
.nav-toggle .bar { transition: transform .3s var(--ease); transform-origin: 12px 12px; }
.nav-toggle[aria-expanded="true"] .bar--1 { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar--2 { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 12px var(--gutter) 28px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .js .nav { visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; }
  .js .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li a { padding: 14px 0; font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav li a::after { display: none; }
  .nav li a[aria-current="page"] { color: var(--accent); }
  .nav .btn { align-self: flex-start; }
}

/* 6 Buttons and links ----------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; font: inherit; font-size: 1rem; font-weight: 700; line-height: 1; color: var(--paper); background: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.93rem; }
.arrow-link { font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.arrow-link span { display: inline-block; margin-left: 4px; transition: transform .25s var(--ease); }
.arrow-link:hover { color: var(--accent); border-color: currentColor; }
.arrow-link:hover span { transform: translate(2px, -2px); }
.arrow-link--fwd:hover span { transform: translateX(4px); }

/* 7 Hero ------------------------------------------------------------ */
.hero { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.75rem, 5.6vw + 0.4rem, 5rem); line-height: 1.0; letter-spacing: -0.025em; margin: 20px 0 0; }
.hero__title em { font-style: italic; color: var(--accent); }
.hero__lede { font-size: clamp(1.12rem, 1.5vw, 1.28rem); line-height: 1.55; color: var(--ink-2); max-width: 46ch; margin: 28px 0 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__fig { margin: 0; min-width: 0; }
.ensemble { display: block; width: 100%; aspect-ratio: 1 / 1; touch-action: pan-y; cursor: crosshair; }
.hero__fig figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.02em; color: var(--ink-3); }
.legend { display: flex; gap: 16px; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.legend .is-prior { background: var(--prior); }
.legend .is-post { background: var(--accent); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .ensemble { aspect-ratio: 4 / 3; }
}

/* 8 Sections -------------------------------------------------------- */
.intro { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.intro__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--line); }
.intro__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.intro__text { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.28; letter-spacing: -0.01em; max-width: 26ch; margin: 14px 0 28px; }
@media (max-width: 720px) { .intro { grid-template-columns: minmax(0, 1fr); } .intro__photo { max-width: 240px; } }

/* 9 Research -------------------------------------------------------- */
.areas li { border-bottom: 1px solid var(--line); }
.area { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; gap: 12px clamp(20px, 4vw, 56px); align-items: baseline; padding: 26px 0; text-decoration: none; color: inherit; }
.area h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); transition: color .2s; }
.area p { margin: 0; color: var(--ink-2); }
.area__go { font-size: 1.2rem; color: var(--ink-3); transition: transform .3s var(--ease), color .2s; }
.area:hover { color: inherit; }
.area:hover h3 { color: var(--accent); }
.area:hover .area__go { transform: translateX(6px); color: var(--accent); }
@media (max-width: 720px) { .area { grid-template-columns: minmax(0, 1fr) auto; } .area p { grid-column: 1 / -1; grid-row: 2; } }

.topic { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 16px clamp(24px, 5vw, 72px); padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.topic h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.topic__short { font-size: 1.2rem; line-height: 1.5; color: var(--ink); }
.topic__body { color: var(--ink-2); max-width: 62ch; }
@media (max-width: 720px) { .topic { grid-template-columns: minmax(0, 1fr); } }

/* 10 Cards ---------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 36px); }
.card { display: flex; flex-direction: column; min-width: 0; }
.card[hidden] { display: none; }
.card__fig { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; transition: border-color .25s; }
.card:hover .card__fig { border-color: var(--line-2); }
.card__body { padding-top: 20px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.55rem; line-height: 1.15; margin: 10px 0 12px; }
.card__body > p { color: var(--ink-2); }
.card__detail { font-size: 0.97rem; }
.card__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: auto 0 0; padding-top: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 20px; }
.tags li { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.02em; color: var(--ink-2); padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; }

.fig { display: block; width: 100%; height: auto; }
.f-line { fill: none; stroke: var(--ink-3); stroke-width: 1.5; }
.f-dash { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 4 5; }
.f-acc { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.f-pri { fill: none; stroke: var(--prior); stroke-width: 2; stroke-linecap: round; }
.f-dashed { stroke-dasharray: 5 5; }
.f-dot-acc { fill: var(--accent); }
.f-dot-pri { fill: var(--prior); }
.f-ring { fill: var(--surface); stroke: var(--ink-2); stroke-width: 1.5; }
.f-box { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.f-box-pri { fill: none; stroke: var(--prior); stroke-width: 1.5; }
.f-band { fill: var(--accent); opacity: .13; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; font: inherit; font-size: 0.95rem; color: var(--ink-2); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip sup { font-family: var(--font-mono); font-size: 0.7em; margin-left: 4px; opacity: .7; }

/* 11 Publications --------------------------------------------------- */
.pub { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.pub > .meta { padding-top: 7px; }
.pub__title { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; max-width: 46ch; }
.pub__authors { margin: 10px 0 2px; color: var(--ink-2); }
.pub__venue { font-style: italic; color: var(--ink-2); margin-bottom: 14px; }
@media (max-width: 560px) { .pub { grid-template-columns: minmax(0, 1fr); } }

.rows li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rows li span { color: var(--ink-2); }
.rows li strong { font-weight: 400; color: var(--ink); }
@media (max-width: 560px) { .rows li { grid-template-columns: minmax(0, 1fr); } }

/* 12 CV ------------------------------------------------------------- */
.cv-block { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px clamp(24px, 5vw, 72px); padding: clamp(32px, 5vw, 52px) 0; border-top: 1px solid var(--line); }
.cv-block > h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.tl > li { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 4px 24px; padding-bottom: 28px; }
.tl > li:last-child { padding-bottom: 0; }
.tl .meta { padding-top: 5px; }
.tl h3 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 700; letter-spacing: 0; line-height: 1.4; }
.tl .where { color: var(--ink-2); margin: 0; }
.tl .notes { margin-top: 8px; color: var(--ink-2); font-size: 0.98rem; }
.tl .notes li { position: relative; padding-left: 18px; margin-bottom: 4px; }
.tl .notes li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 6px; height: 1.5px; background: var(--ink-3); }
.skills { display: grid; gap: 14px; }
.skills div { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 4px 24px; }
.skills dt { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding-top: 5px; }
.skills dd { margin: 0; }
.plain li { padding: 6px 0; color: var(--ink-2); }
@media (max-width: 720px) {
  .cv-block { grid-template-columns: minmax(0, 1fr); }
  .tl > li, .skills div { grid-template-columns: minmax(0, 1fr); }
}

/* 13 About ---------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-photos { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.about-photos figure { margin: 0; }
.about-photos img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; }
.about-photos figcaption { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-3); margin-top: 8px; }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-photos { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.route { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 36px; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.route li { display: inline-flex; align-items: center; gap: 14px; }
.route li + li::before { content: ""; width: 28px; height: 1px; background: var(--line-2); }
.route li:last-child { color: var(--accent); }

/* 14 Prose ---------------------------------------------------------- */
.prose { font-size: 1.14rem; line-height: 1.72; max-width: 66ch; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); margin-top: 2em; }
.prose h3 { font-size: 1.4rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--ink-3); }
.prose a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.prose blockquote { margin-inline: 0; padding-left: 20px; border-left: 2px solid var(--accent); font-family: var(--font-display); font-size: 1.35rem; line-height: 1.4; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: color-mix(in srgb, var(--ink) 7%, transparent); padding: 0.1em 0.35em; border-radius: 4px; }
.prose pre { overflow-x: auto; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.2em; }
.prose .lead { font-family: var(--font-display); font-size: clamp(1.45rem, 2.4vw, 1.85rem); line-height: 1.3; letter-spacing: -0.01em; }
.post { padding-bottom: var(--section); }
.post .page-title { max-width: 22ch; }
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-nav a { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; text-decoration: none; }
.post-nav .label { display: block; margin-bottom: 8px; }
.post-nav__next { text-align: right; grid-column: 2; }

.posts li { border-bottom: 1px solid var(--line); }
.posts a { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline; padding: 26px 0; text-decoration: none; color: inherit; }
.posts h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); transition: color .2s; }
.posts p { grid-column: 2; margin: 0; color: var(--ink-2); max-width: 60ch; }
.posts a:hover h3 { color: var(--accent); }
.posts a:hover .area__go { transform: translateX(6px); color: var(--accent); }
@media (max-width: 720px) { .posts a { grid-template-columns: minmax(0, 1fr) auto; } .posts .meta { grid-column: 1 / -1; } .posts p { grid-column: 1 / -1; } }

/* 15 Contact -------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: start; padding-bottom: var(--section); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: 0.97rem; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 170px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.form .hint { font-size: 0.9rem; color: var(--ink-3); margin: 0; }
.form .btn { justify-self: start; }
.reach li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.reach li:first-child { border-top: 1px solid var(--line); }
.reach a { font-family: var(--font-display); font-size: 1.35rem; text-decoration: none; overflow-wrap: anywhere; }

/* 16 Footer --------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 0; }
.site-footer__cta { padding: clamp(56px, 9vw, 112px) 0; }
.site-footer__line { font-family: var(--font-display); font-size: clamp(1.9rem, 4.4vw, 3.5rem); line-height: 1.08; letter-spacing: -0.02em; max-width: 20ch; margin: 16px 0 0; text-wrap: balance; }
.site-footer__line a { color: var(--accent); text-decoration: none; white-space: nowrap; }
.site-footer__line a span { display: inline-block; transition: transform .3s var(--ease); }
.site-footer__line a:hover span { transform: translateX(8px); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding: 24px 0 32px; border-top: 1px solid var(--line); font-size: 0.93rem; color: var(--ink-3); }
.site-footer__bottom p { margin: 0; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer__links a { color: var(--ink-2); text-decoration: none; padding-block: 6px; display: inline-block; }
.site-footer__links a:hover { color: var(--accent); }

/* 17 Motion --------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__copy > *, .page-head > * { animation: rise .7s var(--ease) both; }
.hero__copy > :nth-child(2), .page-head > :nth-child(2) { animation-delay: 70ms; }
.hero__copy > :nth-child(3), .page-head > :nth-child(3) { animation-delay: 140ms; }
.hero__copy > :nth-child(4) { animation-delay: 210ms; }
.hero__fig { animation: rise .9s var(--ease) 120ms both; }

/* Page-to-page transitions (cross-document View Transitions) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
main { view-transition-name: page; }
@keyframes page-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(16px); } }
::view-transition-old(page) { animation: page-out .18s ease-in both; }
::view-transition-new(page) { animation: page-in .38s var(--ease) .1s both; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

@media print {
  .site-header, .site-footer__cta, .hero__fig, .filters { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Small additions */
@media (hover: none) { .hint-hover { display: none; } }
.about-photos { position: static; }
.prose .route { padding-left: 0; list-style: none; }
.prose .route li + li { margin-top: 0; }
.now__text { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.75rem); line-height: 1.16; letter-spacing: -0.015em; max-width: 24ch; margin: 16px 0 24px; text-wrap: balance; }
.now__sub { color: var(--ink-2); max-width: 64ch; margin: 0; }
.now__sub strong { color: var(--ink); }
.rows li a { text-decoration-color: var(--line-2); }
