/* ============================================================
   Fonts — body: Inter (as reference).  display: Arial Narrow on
   Windows (matches the reference exactly), Archivo Narrow elsewhere.
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Archivo+Narrow:wght@500;600;700&display=swap");

/* ============================================================
   Design tokens (from the reference site)
   ============================================================ */
:root {
  --background: #09090b;
  --surface: #111114;
  --surface-2: #17171c;
  --muted: #18181d;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.22);

  --fg: #f4f3f7;
  --fg-muted: #a6a4ad;
  --fg-soft: #d5d1dc;

  --accent: #8a5cf6;
  --accent-soft: #cbbaff;

  --display: "Arial Narrow", "Archivo Narrow", "Aptos Display", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --nav-h: 74px;

  /* rounded — no sharp rectangles (kept subtle) */
  --radius-sm: 7px;
  --radius: 11px;
  --radius-lg: 15px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--background);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1; }

.wrap { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--accent-soft);
}

/* ============================================================
   Header — centered nav, dark blurred bar, underline hover
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  min-height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--pad);
  background: linear-gradient(rgba(9, 9, 11, 0.86), rgba(9, 9, 11, 0.32));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.wordmark {
  grid-column: 1;
  justify-self: start;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}
.nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 3.25rem);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav a {
  position: relative;
  padding: 0.25rem 0;
  color: var(--fg);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.35s ease;
}
.nav a:hover::after,
.nav a:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav a.is-active::after { transform: scaleX(1); transform-origin: 0 50%; opacity: 0.55; }

.nav-toggle {
  grid-column: 3;
  justify-self: end;
  display: none;
  width: 42px; height: 38px;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--fg); display: block; }

/* ============================================================
   Hero — half height, name over cover image
   ============================================================ */
.hero {
  position: relative;
  /* fills most of the viewport; a slice of the next section peeks below */
  min-height: min(90svh, 960px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--surface-2);
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  /* crop focus — set per breakpoint via CSS vars (from content/site.json) */
  background-position: var(--hero-focus, center);
  filter: saturate(0.85) contrast(1.05);
}
/* narrow screens: a wide two-subject cover would crop the heads off, so
   shift the focus onto one figure instead */
@media (max-width: 700px) {
  .hero__bg { background-position: var(--hero-focus-mobile, var(--hero-focus, center)); }
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 7, 0.80) 0%, rgba(5, 5, 7, 0.20) 55%, rgba(5, 5, 7, 0.35) 100%),
    linear-gradient(rgba(0, 0, 0, 0) 45%, rgba(5, 5, 7, 0.88) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--wrap));
  margin-inline: auto;
  padding: var(--pad);
  padding-top: calc(var(--nav-h) + 1.5rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
}
.hero__eyebrow { color: var(--accent-soft); margin-bottom: 0.8rem; }
.hero__cue {
  position: absolute;
  z-index: 2;
  right: clamp(1.25rem, 4vw, 4rem);
  bottom: 2.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.hero__cue span { animation: cue-bob 1.8s ease-in-out infinite; }
@keyframes cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.hero__name {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
  font-size: clamp(2.6rem, 9.5vw, 7.5rem);
  color: #fff;
}
.hero__roles {
  margin-top: 1.3rem;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: clamp(1rem, 1.9vw, 1.4rem);
  color: rgba(255, 255, 255, 0.9);
  text-transform: none;
}
.hero__roles span { color: var(--accent-soft); margin: 0 0.55rem; }

/* ---- load intro: cover settles, copy rises in, staggered ---- */
.hero__bg { transform: scale(1.09); transition: transform 1.5s cubic-bezier(0.16, 0.84, 0.3, 1); }
.hero__eyebrow, .hero__name, .hero__roles, .hero__cue {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
}
body.is-loaded .hero__bg { transform: scale(1); }
body.is-loaded .hero__eyebrow { opacity: 1; transform: none; transition-delay: 0.06s; }
body.is-loaded .hero__name { opacity: 1; transform: none; transition-delay: 0.18s; }
body.is-loaded .hero__roles { opacity: 1; transform: none; transition-delay: 0.34s; }
body.is-loaded .hero__cue { opacity: 1; transform: none; transition-delay: 0.6s; }

/* ---- scroll reveal (Apple-style rise + fade) ----
   uses the `translate` property (not `transform`) so tile hover transforms
   can layer on top without conflict */
.reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.7s ease, translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: min(calc(var(--ri, 0) * 55ms), 420ms);
}
.reveal.in-view { opacity: 1; translate: 0 0; }

/* ============================================================
   Sections
   ============================================================ */
.section {
  width: min(100%, var(--wrap));
  margin-inline: auto;
  padding-inline: var(--pad);
  padding-block: clamp(4rem, 9vw, 8rem);
  border-top: 1px solid var(--border);
  scroll-margin-top: 90px;
}
.section:first-of-type { border-top: 0; }
.section__head { margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section__title {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  line-height: 0.9;
}
.section__desc {
  color: var(--fg-muted);
  max-width: 52ch;
  margin-top: 1rem;
}
.link-underline {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 0.15rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.link-underline:hover { color: var(--accent-soft); border-color: var(--accent); }

/* sub-category jump links (under a section/page title) */
.section__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.8rem;
}
.section__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: var(--fg);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.section__links a::after {
  content: "→";
  font-size: 1.1em;
  transition: transform 0.2s ease;
}
.section__links a:hover {
  color: var(--background);
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  transform: translateY(-2px);
}
.section__links a:hover::after { transform: translateX(3px); }

/* big, readable sub-category titles on the 3D Work page */
.subsection-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.75rem;
  flex-wrap: wrap;
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 1.4rem;
}
.subsection-head:first-child { margin-top: 0; }
.subsection-title {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.055em;
  line-height: 0.9;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  margin: 0;
  scroll-margin-top: 90px;
}
.subsection-jump {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--fg-muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 0.15rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.subsection-jump span { display: inline-block; margin-left: 0.4rem; }
.subsection-jump:hover { color: var(--accent-soft); border-color: var(--accent); }

/* ============================================================
   Tiles — image only at rest, title + description on hover
   ============================================================ */
.grid {
  display: grid;
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.tile {
  position: relative;
  display: block;
  aspect-ratio: 7 / 6;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  isolation: isolate;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  /* pointer-tracked lift + 3D tilt (vars set by initTileHover) */
  transform:
    perspective(680px)
    translateY(var(--tile-lift, 0px))
    rotateX(var(--tile-rx, 0deg))
    rotateY(var(--tile-ry, 0deg))
    scale(var(--tile-scale, 1));
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease;
}
.tile:hover,
.tile:focus-visible {
  --tile-lift: -14px;
  --tile-scale: 1.06;
  z-index: 2;
  box-shadow: 0 34px 70px -14px rgba(0, 0, 0, 0.62);
}
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}
.tile:hover img,
.tile:focus-visible img { transform: scale(1.09); filter: brightness(0.66); }

/* sheen — soft white spotlight that follows the cursor, fades in on hover */
.tile__sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    50% 50% at var(--tile-shx, 50%) var(--tile-shy, 50%),
    rgba(255, 255, 255, 0.42),
    transparent 72%
  );
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tile:hover .tile__sheen,
.tile:focus-within .tile__sheen { opacity: 1; }

.tile__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: clamp(1.1rem, 2.6vw, 2rem);
  background: linear-gradient(rgba(0, 0, 0, 0) 32%, rgba(23, 23, 27, 0.62) 62%, rgba(18, 18, 22, 0.94) 100%);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.tile:hover .tile__overlay,
.tile:focus-within .tile__overlay { opacity: 1; transform: none; }
.tile__title {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  color: #fff;
}
.tile__desc {
  color: var(--fg-soft);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 42ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile__desc em { font-style: italic; }
/* workflow-stage tags shown on hover for 3D work tiles */
.tile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tile__tags .tag {
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  line-height: 1.2;
}
.tile--compact { aspect-ratio: 7 / 6; border-radius: var(--radius); }
.tile--compact .tile__title { font-size: clamp(1.05rem, 1.8vw, 1.5rem); }
.tile--compact .tile__desc { -webkit-line-clamp: 2; font-size: 0.82rem; }
.tile--compact .tile__tags .tag { font-size: 0.66rem; padding: 0.18rem 0.5rem; }

/* homepage featured: 2 + 2 big, then 3 compact + "see all" */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}
.feature-more {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(0.75rem, 1.6vw, 1.25rem);
}
.feature-more__tiles {
  flex: 1 1 62%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}
.feature-more__tiles:empty { display: none; }
.feature-more__link { margin-left: auto; padding-bottom: 0.4rem; }

/* ============================================================
   R&D section
   ============================================================ */
.rnd-list { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.rnd-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  background:
    radial-gradient(circle at 16% 30%, rgba(138, 92, 246, 0.22), rgba(0, 0, 0, 0) 34%),
    linear-gradient(135deg, #121218, #0b0b0e 72%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
}
.rnd-panel__pipeline {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--fg-soft);
}
.rnd-panel__pipeline span { display: flex; align-items: center; gap: 0.9rem; }
.rnd-panel__pipeline span::before {
  content: "";
  width: 0.85rem; height: 0.85rem;
  border: 1px solid var(--accent-soft);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(155, 115, 255, 0.45);
  flex: none;
}
.rnd-panel h3 {
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-bottom: 1.1rem;
}
.rnd-panel p { color: var(--fg-muted); margin-bottom: 1.4rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.76rem;
  color: var(--fg-soft);
}
.rnd-panel .link-underline { display: inline-block; margin-top: 1.4rem; }

/* ============================================================
   Résumé teaser
   ============================================================ */
.resume-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr) auto;
  align-items: end;
  gap: clamp(1.5rem, 5vw, 5rem);
}
.resume-teaser__title {
  font-size: clamp(3.5rem, 12vw, 9rem);
  line-height: 0.8;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}
.resume-teaser__title .eyebrow { display: block; margin-bottom: 0.6rem; }
.resume-teaser p { color: var(--fg-muted); }
.resume-arrow {
  position: relative;
  display: grid;
  place-items: center;
  width: 5rem; height: 5rem;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-size: 1.9rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.resume-arrow:hover { background: var(--fg); color: var(--background); transform: rotate(8deg); }

/* "pop" when the Résumé section scrolls into view — this is the button to click */
.resume-arrow.pop { animation: resume-pop 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) 0.1s; }
.resume-arrow.pop::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: resume-ring 1.5s ease-out 0.1s 2;
}
@keyframes resume-pop {
  0%   { transform: scale(1); }
  32%  { transform: scale(1.22) rotate(6deg); }
  56%  { transform: scale(0.93) rotate(-3deg); }
  78%  { transform: scale(1.08) rotate(2deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes resume-ring {
  0%   { opacity: 0.65; transform: scale(0.88); }
  100% { opacity: 0; transform: scale(1.55); }
}

/* ============================================================
   Intro strip (home)
   ============================================================ */
/* about strip — eyebrow | big statement | contact link (like the reference) */
.intro-band {
  width: min(100%, var(--wrap));
  margin-inline: auto;
  padding: clamp(3.5rem, 7vw, 7rem) var(--pad);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr minmax(0, 2.4fr) auto;
  align-items: start;
  gap: clamp(1.5rem, 5vw, 6rem);
}
.intro-band__eyebrow { padding-top: 0.6rem; }
.intro-band__statement {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 3.6rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  max-width: 34ch;
}
.intro-band__link {
  white-space: nowrap;
  align-self: start;
  padding-top: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.li-logo {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: currentColor;
}

@media (max-width: 780px) {
  .intro-band { grid-template-columns: 1fr; gap: 1.25rem; }
  .intro-band__link { justify-self: start; }
}

/* ============================================================
   Inner-page hero
   ============================================================ */
.page-head {
  width: min(100%, var(--wrap));
  margin-inline: auto;
  padding-inline: var(--pad);
  padding-top: calc(var(--nav-h) + clamp(3rem, 9vw, 7rem));
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.page-head h1 {
  font-size: clamp(3rem, 11vw, 8rem);
  text-transform: uppercase;
  letter-spacing: -0.05em;
}
.page-head > p { color: var(--fg-muted); max-width: 52ch; margin-top: 1.6rem; font-size: 1.05rem; }

/* ============================================================
   Work detail
   ============================================================ */
.breadcrumb {
  width: min(100%, var(--wrap));
  margin-inline: auto;
  padding: calc(var(--nav-h) + 1.5rem) var(--pad) 0;
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--fg-muted);
}
.breadcrumb a:hover { color: var(--fg); }

.work {
  width: min(100%, var(--wrap));
  margin-inline: auto;
  padding: 1.25rem var(--pad) clamp(4rem, 9vw, 7rem);
}
.work__title { font-size: clamp(2.4rem, 7vw, 5rem); text-transform: uppercase; letter-spacing: -0.05em; margin-top: 0.6rem; }
.work__meta { font-family: var(--display); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; color: var(--fg-muted); }
.work__meta a { border-bottom: 1px solid var(--border-strong); padding-bottom: 0.1rem; transition: color 0.2s ease, border-color 0.2s ease; }
.work__meta a:hover { color: var(--accent-soft); border-color: var(--accent); }
.work__desc { color: var(--fg-muted); max-width: 62ch; margin-top: 1.2rem; font-size: 1.05rem; }
.work__gallery { display: grid; gap: clamp(0.75rem, 1.6vw, 1.25rem); margin-top: clamp(2rem, 5vw, 3rem); }
.work__gallery figure {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.work__gallery img { width: 100%; height: auto; }
.work__gallery figcaption { font-size: 0.8rem; color: var(--fg-muted); padding: 0.6rem 0.9rem; border-top: 1px solid var(--border); }

.tagsets {
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--border);
}
.tagset h3 {
  font-family: var(--display); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  font-size: 0.78rem; color: var(--fg-muted);
  margin-bottom: 0.85rem;
}
.pager {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.pager a { color: var(--fg-muted); }
.pager a:hover { color: var(--fg); }

/* ============================================================
   Drawings category grid
   ============================================================ */
.gallery-grid {
  display: grid;
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.gallery-grid figure {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.gallery-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery-grid figcaption { font-size: 0.78rem; color: var(--fg-muted); padding: 0.55rem 0.85rem; border-top: 1px solid var(--border); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  width: min(100%, var(--wrap));
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 5rem) var(--pad) 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 0.86rem;
}

/* ============================================================
   Notice
   ============================================================ */
.notice {
  padding: 2rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--fg-muted);
  margin-block: 2rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .rnd-panel { grid-template-columns: 1fr; }
  .resume-teaser { grid-template-columns: 1fr auto; }
  .resume-teaser p { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 0;
    padding: 0.4rem;
    background: rgba(9, 9, 11, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.9rem; width: 100%; text-align: center; }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }

  .section__head { grid-template-columns: 1fr; }
  .section__num { grid-row: auto; }
  .section__desc, .section__more { grid-column: 1; }
  .section__more { justify-self: start; }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-more__tiles { flex-basis: 100%; grid-template-columns: repeat(3, 1fr); }
  .feature-more__link { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1 !important; translate: none !important; }
  .hero__eyebrow, .hero__name, .hero__roles, .hero__cue {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero__bg { transform: none !important; }
  .tile, .tile:hover, .tile:focus-visible { transform: none !important; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28) !important; }
  .tile__sheen { display: none !important; }
}
