/* ============================================================
   Noah Livingston — noahlivingston.com
   Warm editorial system: cream ground, ink type, terracotta accent
   Fraunces (serif display) + Inter (body)
   ============================================================ */

:root {
  --paper: #f6f2e9;
  --paper-raised: #fffdf8;
  --ink: #201c19;
  --ink-soft: #3a352f;
  --muted: #726a5f;
  --line: #e6dfd1;
  --accent: #b0512e;
  --accent-dark: #8f3f22;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── Typography ─────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

/* ── Header ─────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 242, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.site-header.scrolled { border-bottom-color: var(--line); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.site-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* Monogram: geometric "N" in a terracotta squircle. Drawn on a 32-unit grid —
   stems 3.8 wide, the diagonal 5.2 horizontally so its perpendicular weight
   (5.2 × cos45°) optically matches the stems. Same artwork as the favicon. */
.site-logo .mark {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='8' fill='%23b0512e'/%3E%3Cg fill='%23f6f2e9'%3E%3Cpath d='M8 8h3.8v16H8z'/%3E%3Cpath d='M20.2 8H24v16h-3.8z'/%3E%3Cpath d='M8 8h5.2l10.8 16h-5.2z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
  padding: 0.25rem 0;
}

.site-nav a:hover { color: var(--ink); }

.site-nav a.active { color: var(--ink); }

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
}

.site-nav .nav-cta {
  color: var(--paper);
  background: var(--ink);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  transition: background 0.2s;
}

.site-nav .nav-cta:hover { background: var(--accent); color: #fff; }
.site-nav .nav-cta.active::after { display: none; }

/* The pill is its own "you are here" marker, so it takes the accent fill rather
   than the underline. Needs to outrank `.site-nav a.active`, which is a class
   more specific than `.site-nav .nav-cta` and would otherwise repaint the label
   ink-on-ink. */
.site-nav .nav-cta.active { color: #fff; background: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

@media (max-width: 760px) {
  /* backdrop-filter would make the header the containing block for the
     fixed-position nav overlay, trapping it inside the header bar */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--paper);
  }

  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    gap: 2.25rem;
    transform: translateY(-100%);
    transition: transform 0.4s var(--ease);
  }

  .site-nav.open { transform: translateY(0); }

  .site-nav a { font-size: 1.5rem; font-family: var(--font-display); }

  body.nav-locked { overflow: hidden; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── Hero ───────────────────────────────────── */

.hero { padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 5.5rem); }

/* The portrait occupies the whitespace right of the text. The text column stays
   wider than the title's own 18ch cap, so its wrapping matches the full-width
   original. The photo spans the title→meta row only, clearing the eyebrow. */
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(1.5rem, 3vw, 2rem);
}

.hero .eyebrow { grid-column: 1; grid-row: 1; }
.hero__text { grid-column: 1; grid-row: 2; }

/* Transparent wrapper — keeps the <img> itself as the grid/flex item. */
.hero__picture { display: contents; }

.hero__photo {
  grid-column: 2;
  grid-row: 2;
  align-self: stretch;
  /* Capped so the text column always stays wider than the title's longest
     line (~765px at the 76px cap) and the original wrapping is preserved. */
  width: clamp(200px, 20vw, 300px);
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  border-radius: 4px;
}

.hero__title {
  font-size: clamp(2.4rem, 6.2vw, 4.75rem);
  font-weight: 500;
  max-width: 18ch;
  margin-bottom: 1.75rem;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.65;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero__meta span { display: flex; align-items: center; gap: 0.5rem; }

.hero__meta .dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Mobile: the portrait becomes a full-bleed banner above the text, flush under
   the header. Source swaps to a purpose-cropped 5:4 landscape file, so the
   frame is native and nothing is cropped away here. */
@media (max-width: 860px) {
  .hero { padding-top: 0; }

  .hero .container { display: flex; flex-direction: column; }

  .hero .eyebrow { order: 2; }
  .hero__text { order: 3; }

  .hero__photo {
    order: 1;
    /* Container content box + both gutters = exactly the viewport width.
       Avoids the scrollbar overflow that 100vw would cause. */
    width: calc(100% + var(--gutter) * 2);
    max-width: none; /* clears the global img { max-width: 100% } */
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    margin-bottom: clamp(2rem, 7vw, 3rem);
    height: auto;
    aspect-ratio: 5 / 4;
    /* Guards short viewports only. On phones and iPad portrait the natural 5:4
       height stays under this, so the authored crop shows uncropped. */
    max-height: 62vh;
    /* Only bites if max-height crops: favours headroom over the shirt. */
    object-position: center 35%;
    border-radius: 0;
  }
}

/* Landscape phones: too short for a banner without burying the headline.
   The portrait is a flourish here, the pitch is not — drop the photo. */
@media (max-width: 860px) and (max-height: 480px) {
  .hero { padding-top: clamp(2rem, 6vw, 3rem); }
  .hero__photo { display: none; }
}

/* ── Stat band ──────────────────────────────── */

.stat-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.25rem 0;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.stat-band .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stat p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

@media (max-width: 760px) {
  .stat-band .container { grid-template-columns: repeat(2, 1fr); }
}

/* ── Section headings ───────────────────────── */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

/* ── Project grid ───────────────────────────── */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.project-card {
  text-decoration: none;
  display: block;
  group: card;
}

.project-card__frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  background: var(--ink);
}

.project-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), opacity 0.4s;
}

.project-card:hover .project-card__frame img {
  transform: scale(1.045);
}

.project-card__index {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #fff;
  background: rgba(20, 20, 22, 0.55);
  backdrop-filter: blur(6px);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

/* Built cards (03, 06) are inlined rather than <img>-referenced: an SVG loaded
   through <img> is an isolated document and can't reach the Google Fonts link
   in <head>, so Fraunces and Inter would fall back for anyone without them
   installed locally. */
.project-card__frame > svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.8s var(--ease);
}

.project-card:hover .project-card__frame > svg { transform: scale(1.045); }

/* Caption plate — labels a photographic card so it balances against the cards
   whose artwork already carries type. */
.project-card__cap {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 3.5rem 1rem 0.95rem;
  line-height: 1.45;
  background: linear-gradient(to top,
    rgba(20, 20, 22, 0.86) 0%,
    rgba(20, 20, 22, 0.62) 38%,
    rgba(20, 20, 22, 0) 100%);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  pointer-events: none;
}

.project-card__cap::before {
  content: "";
  flex: 0 0 14px;
  height: 2px;
  background: var(--accent);
  /* keep the rule on the first line when the caption wraps */
  margin-top: calc(0.725em - 1px);
}

.project-card__body { padding-top: 1.15rem; }

.project-card__title {
  font-size: 1.375rem;
  display: inline;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.4s var(--ease);
}

.project-card:hover .project-card__title { background-size: 100% 2px; }

.project-card__meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--paper-raised);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

@media (max-width: 760px) {
  .project-grid { grid-template-columns: 1fr; }
}

/* ── Dark CTA band ──────────────────────────── */

.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(4rem, 9vw, 7rem) 0;
}

/* Mirror of .about-preview__grid with the columns swapped, so the photo
   sits right here and left there -- the two sections alternate down the
   page instead of stacking two images on the same edge. */
.cta-band__grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 480px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.cta-band__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

@media (max-width: 860px) {
  /* Copy comes first in source order, so the stack leads with the ask
     and the photo follows it. */
  .cta-band__grid { grid-template-columns: 1fr; }

  /* Left unconstrained the square renders up to ~790px here -- wider than
     it ever gets on desktop -- which both dominates the band and outruns
     the 1200px export on a 2x tablet. 600 keeps it inside its source
     resolution and holds the same left edge as the copy above it. */
  .cta-band__photo { max-width: 600px; }
}

.cta-band .eyebrow { color: var(--accent); }

.cta-band h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  max-width: 20ch;
  margin-bottom: 1.5rem;
}

.cta-band p {
  color: #a8a8ad;
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--paper);
}
.btn--ghost:hover { border-color: #fff; }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--accent); color: #fff; }

.btn--outline {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper-raised);
}
.btn--outline:hover { border-color: var(--ink); }

/* ── Footer ─────────────────────────────────── */

.site-footer {
  background: var(--ink);
  color: #a8a8ad;
  border-top: 1px solid #26262a;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  color: #a8a8ad;
  transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

/* ── Case study pages ───────────────────────── */

/* Hero image sits in the whitespace right of the title and lede, matching the
   homepage hero. The back-link spans both columns; the figure spans the
   eyebrow→lede rows. */
.case-hero {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
  column-gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.case-hero .back-link { grid-column: 1 / -1; }
.case-hero .eyebrow,
.case-hero h1,
.case-hero .lede { grid-column: 1; }

.case-hero .case-figure {
  grid-column: 2;
  grid-row: 2 / span 3;
  margin: 0;
}

.case-hero .case-figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent); }

.case-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  max-width: 20ch;
  margin-bottom: 1.5rem;
}

.case-hero .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.65;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.75rem 0;
  margin: clamp(2rem, 5vw, 3.5rem) 0;
}

.case-meta dt {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.case-meta dd { font-size: 0.975rem; font-weight: 500; }

@media (max-width: 760px) {
  .case-meta { grid-template-columns: repeat(2, 1fr); }
}

/* Stack the case hero: figure drops below the lede, full width. */
@media (max-width: 860px) {
  .case-hero { grid-template-columns: 1fr; }
  .case-hero .case-figure {
    grid-column: 1;
    grid-row: auto;
    margin-top: clamp(2rem, 5vw, 3rem);
  }
}

.case-figure {
  margin: clamp(2rem, 5vw, 3.5rem) 0;
  border-radius: 4px;
  overflow: hidden;
}

.case-figure img { width: 100%; }

.case-body { max-width: 720px; padding-bottom: clamp(3rem, 6vw, 5rem); }

.case-body h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin: 2.75rem 0 1rem;
}

.case-body h3 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
}

.case-body p + p { margin-top: 1.1rem; }

.case-body ul { padding-left: 1.25rem; margin-top: 1rem; }
.case-body li + li { margin-top: 0.5rem; }

.pull-quote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2.5rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* Typographic specimen panel (stands in for artifact imagery) */
.spec-panel {
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  padding: clamp(2rem, 5vw, 3.5rem);
  margin: 2.5rem 0;
}

.spec-panel .eyebrow { margin-bottom: 1rem; }

.spec-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.spec-panel__grid h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.spec-panel__grid p { font-size: 0.85rem; color: #a8a8ad; line-height: 1.55; }

.spec-panel > p { color: #cfcfd3; max-width: 58ch; }

/* Case study artifact galleries */
.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 2.5rem 0;
  align-items: start;
}

.case-gallery figure {
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-raised);
  border: 1px solid var(--line);
}

.case-gallery img { width: 100%; height: auto; }

.case-gallery figure.tall img {
  max-height: 600px;
  width: auto;
  margin: 0 auto;
}

.case-gallery figcaption,
.case-figure figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line);
}

.case-figure figcaption { border-top: 0; padding: 0.7rem 0 0; }

.case-gallery .span-2 { grid-column: 1 / -1; }

/* Three-across variant — only for same-ratio sequences read left to right */
.case-gallery--seq { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 860px) {
  .case-gallery--seq { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .case-gallery { grid-template-columns: 1fr; }
}

/* Video request panel */
.video-panel {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  margin: 2.5rem 0;
  background: var(--ink);
  color: var(--paper);
}

.video-panel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.45;
}

.video-panel__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.85rem;
  padding: 1.5rem;
}

.video-panel__play {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-panel__play::after {
  content: "";
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

.video-panel__overlay h3 { font-size: 1.2rem; }
.video-panel__overlay p { font-size: 0.9rem; color: #cfcfd3; max-width: 40ch; }

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  margin: 2.5rem 0;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Next-project momentum block — a filled card that pulls you onward */
.case-next {
  margin: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.case-next a {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.75rem, 4vw, 3rem);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}

.case-next a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.case-next .label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.65rem;
  transition: color 0.35s;
}

.case-next a:hover .label { color: var(--paper); }

.case-next h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--paper);
}

.case-next .arrow {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--accent);
  flex: none;
  transition: transform 0.35s var(--ease), color 0.35s;
}

.case-next a:hover .arrow {
  color: var(--paper);
  transform: translateX(10px);
}

/* ── Photography ────────────────────────────── */

.photo-intro { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(1.5rem, 3vw, 2.5rem); }

.photo-intro h1 {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  margin-bottom: 1.25rem;
}

.photo-intro p { color: var(--muted); max-width: 52ch; }

.photo-grid {
  columns: 3;
  column-gap: 1.25rem;
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.photo-grid figure {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}

.photo-grid img {
  width: 100%;
  transition: transform 0.7s var(--ease);
}

.photo-grid figure:hover img { transform: scale(1.03); }

@media (max-width: 900px) { .photo-grid { columns: 2; } }
@media (max-width: 560px) { .photo-grid { columns: 1; } }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 12, 14, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.active { opacity: 1; pointer-events: auto; }

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 4px;
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox__close:hover { opacity: 1; }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 1rem;
}

.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: 0.5rem; }
.lightbox__nav--next { right: 0.5rem; }

/* ── About ──────────────────────────────────── */

.about-layout {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  align-items: start;
}

.about-side { position: sticky; top: 6.5rem; }

.about-side img {
  border-radius: 4px;
  filter: grayscale(1);
}

.about-side .contact-card {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  border-radius: 4px;
  padding: 1.5rem;
}

.contact-card h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.contact-card p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.contact-card a {
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-card a:hover { color: var(--accent); }

.contact-card .btn { margin-top: 1rem; width: 100%; justify-content: center; }

.about-content h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin-bottom: 1.75rem;
  max-width: 22ch;
}

.about-content > p {
  margin-bottom: 1.2rem;
  max-width: 66ch;
}

.about-content h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin: 3rem 0 1.25rem;
}

@media (max-width: 860px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-side { position: static; max-width: 380px; }
}

/* Experience timeline */
.timeline { border-top: 1px solid var(--line); }

.timeline__item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline__years {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
}

.timeline__body h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }

.timeline__body .org-title {
  font-style: italic;
  opacity: 0.85;
}

.timeline__body .org {
  font-size: 0.925rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.timeline__body p { font-size: 0.975rem; color: var(--ink-soft); max-width: 60ch; }

@media (max-width: 560px) {
  .timeline__item { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.skill-block {
  border: 1px solid var(--line);
  background: var(--paper-raised);
  border-radius: 4px;
  padding: 1.5rem;
}

.skill-block h3 { font-size: 1rem; margin-bottom: 0.6rem; }

.skill-block p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

@media (max-width: 640px) { .skills-grid { grid-template-columns: 1fr; } }

/* ── About preview band (homepage) ──────────── */

.about-preview {
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.about-preview__grid {
  display: grid;
  grid-template-columns: minmax(260px, 480px) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-preview__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.about-preview h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  margin-bottom: 1.25rem;
  max-width: 24ch;
}

.about-preview p {
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 1rem;
}

.about-preview .btn { margin-top: 0.75rem; }

@media (max-width: 860px) {
  .about-preview__grid { grid-template-columns: 1fr; }
  .about-preview__photo { max-width: 480px; }
}

/* ── Before / after component ───────────────── */

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.before-after figure {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-raised);
}

.before-after img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top;
}

.before-after figcaption {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
}

.before-after .badge {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
}

.before-after .badge--before { background: #eceae2; color: var(--muted); }
.before-after .badge--after { background: var(--accent); color: #fff; }

@media (max-width: 720px) {
  .before-after { grid-template-columns: 1fr; }
}

/* ── Futures comparison (Three Futures case) ── */

.futures {
  margin: 2.5rem 0;
}

/* Five → Three refinement filter viz */
.refine {
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  margin: 2.5rem 0;
}

.refine .eyebrow { color: var(--accent); margin-bottom: 1.5rem; }

.refine__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.refine__opt {
  border: 1px solid #33333a;
  border-radius: 4px;
  padding: 0.9rem 1rem;
  position: relative;
}

.refine__opt h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.refine__opt p { font-size: 0.8rem; color: #a8a8ad; line-height: 1.5; }

.refine__opt--kept { border-color: var(--accent); }

.refine__opt--kept .tagline {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.6rem;
}

.refine__opt--cut { opacity: 0.5; }

.refine__opt--cut h4 { text-decoration: line-through; text-decoration-color: var(--accent); }

.refine__opt--cut .why {
  display: block;
  font-size: 0.72rem;
  color: var(--accent);
  margin-top: 0.5rem;
  font-style: italic;
}

.refine__filters { border-top: 1px solid #33333a; padding-top: 1.5rem; }

.refine__filters p { color: #cfcfd3; font-size: 0.9rem; margin-bottom: 0.85rem; }

.refine__filters ol {
  list-style: none;
  counter-reset: filter;
  display: grid;
  gap: 0.6rem;
}

.refine__filters li {
  counter-increment: filter;
  position: relative;
  padding-left: 2.1rem;
  font-size: 0.9rem;
  color: var(--paper);
}

.refine__filters li::before {
  content: counter(filter);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Interactive comparison matrix */
.matrix__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.matrix__controls .label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-right: 0.35rem;
}

.matrix__tab {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.matrix__tab:hover { border-color: var(--ink); }
.matrix__tab.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.matrix__question {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 1.75rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--accent);
}

.matrix__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.matrix__cell {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-raised);
  padding: 1.15rem;
}

.matrix__cell h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.matrix__cell p { font-size: 0.85rem; line-height: 1.6; color: var(--ink-soft); }
.matrix__cell p + p { margin-top: 0.6rem; }
.matrix__cell .empty { color: var(--muted); font-style: italic; }

.matrix[data-focus="0"] .matrix__row,
.matrix[data-focus="1"] .matrix__row,
.matrix[data-focus="2"] .matrix__row { grid-template-columns: 1fr; }

.matrix[data-focus="0"] .matrix__cell:not([data-option="0"]),
.matrix[data-focus="1"] .matrix__cell:not([data-option="1"]),
.matrix[data-focus="2"] .matrix__cell:not([data-option="2"]) { display: none; }

.matrix__intro {
  border-left: 3px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.4rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.matrix__note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1.25rem;
  font-style: italic;
}

@media (max-width: 760px) {
  .matrix__row { grid-template-columns: 1fr; }
  .matrix__cell h4 { display: block !important; }
}

/* ── Data components (paid-social audit) ────── */

/* Tables scroll inside their own frame; the page never scrolls sideways */
.data-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-raised);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.data-table th,
.data-table td {
  padding: 0.7rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table th:first-child,
.data-table td:first-child { text-align: left; }

/* Headers may wrap so they never force the table wider than the column data does */
.data-table thead th {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: normal;
  vertical-align: bottom;
}

.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr.is-weak td { color: var(--muted); }
.data-table tbody tr.is-weak td:first-child { font-style: italic; }
.data-table .num-strong { color: var(--accent); font-weight: 600; }

.data-caption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: -1.25rem;
  margin-bottom: 2rem;
  font-style: italic;
}

/* Spend ledger — where the money actually pointed */
.ledger {
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  margin: 2.5rem 0;
}

.ledger .eyebrow { color: var(--accent); margin-bottom: 1.5rem; }

.ledger__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid #33333a;
  align-items: baseline;
}

.ledger__row:last-of-type { border-bottom: 0; }

.ledger__row h4 { font-size: 0.98rem; margin-bottom: 0.2rem; }
.ledger__row p { font-size: 0.8rem; color: #a8a8ad; line-height: 1.5; }

.ledger__amt {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ledger__row--site .ledger__amt { color: var(--accent); }
.ledger__row--off { opacity: 0.55; }

.ledger__total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--accent);
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  font-family: var(--font-display);
  font-size: 1rem;
}

.ledger__note {
  font-size: 0.8rem;
  color: #a8a8ad;
  margin-top: 1.25rem;
  line-height: 1.6;
}

/* Bimodal engagement distribution */
.dist { margin: 2.25rem 0; }

.dist__bar {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.dist__label { color: var(--muted); text-align: right; }

.dist__track {
  height: 0.65rem;
  border-radius: 2px;
  background: var(--accent);
  min-width: 2px;
}

.dist__track--zero { background: var(--line); }

/* ── Resume ─────────────────────────────────── */

.resume {
  max-width: 62rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.resume__masthead {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.resume__masthead h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  margin-bottom: 0.35rem;
}

.resume__tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-style: italic;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.resume__contact {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Separators are decorative, so they live in CSS rather than the markup —
   a screen reader announces the list, and a line break on a narrow screen
   never strands a bullet at the start of a row. */
.resume__contact li + li::before {
  content: "·";
  color: var(--line);
  margin-right: 1.4rem;
}

.resume__contact a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s;
}

.resume__contact a:hover { color: var(--accent); border-color: var(--accent); }

.resume__actions { margin-top: 1.5rem; }

.resume__actions .btn { font: inherit; cursor: pointer; }

.resume__summary {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  max-width: 72ch;
  margin-bottom: 1rem;
}

.resume__section { margin-top: 2.75rem; }

.resume__section > h2 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.75rem;
}

.resume__role { margin-bottom: 2.25rem; }

.resume__role:last-child { margin-bottom: 0; }

.resume__role-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1.5rem;
  margin-bottom: 0.65rem;
}

.resume__role-head h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.resume__org {
  font-size: 0.925rem;
  color: var(--muted);
}

.resume__title-note {
  font-style: italic;
  opacity: 0.85;
  white-space: nowrap;
}

.resume__years {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}

.resume__lede {
  font-size: 0.975rem;
  color: var(--ink-soft);
  max-width: 68ch;
  margin-bottom: 0.9rem;
}

.resume__subhead {
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 1.25rem 0 0.6rem;
}

.resume__role ul {
  list-style: none;
  max-width: 72ch;
}

.resume__role li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.975rem;
  color: var(--ink-soft);
  margin-bottom: 0.55rem;
}

.resume__role li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.resume__role li a { color: var(--ink); text-decoration-color: var(--line); }
.resume__role li a:hover { color: var(--accent); }

.resume__link {
  margin-top: 0.85rem;
  font-size: 0.925rem;
}

.resume__link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.resume__link a:hover { border-bottom-color: var(--accent); }

.resume__skills {
  display: grid;
  grid-template-columns: minmax(11rem, 15rem) 1fr;
  gap: 0.85rem 2rem;
  align-items: baseline;
}

.resume__skills dt {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.resume__skills dd {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 68ch;
}

.resume__edu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 1.25rem;
}

.resume__edu-item {
  border: 1px solid var(--line);
  background: var(--paper-raised);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
}

.resume__degree {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.resume__school {
  font-size: 0.925rem;
  color: var(--muted);
  margin: 0.15rem 0 0.35rem;
}

@media (max-width: 640px) {
  .resume__skills { grid-template-columns: 1fr; gap: 0.25rem; }
  .resume__skills dd { margin-bottom: 1rem; }
  .resume__title-note { white-space: normal; }
}

/* Print — the page is now the resume's only format, so "save as PDF" from the
   browser has to produce something a hiring manager would open. Drop the site
   chrome and the cream ground, keep the structure. */
@media print {
  @page { margin: 0.55in 0.6in; }

  html { scroll-behavior: auto; }

  body {
    background: #fff;
    color: #000;
    font-size: 10.5pt;
    line-height: 1.45;
  }

  .site-header,
  .site-footer,
  .resume__actions,
  .resume__link { display: none !important; }

  .container { max-width: none; padding: 0; }

  .resume { max-width: none; margin: 0; padding: 0; }

  .reveal { opacity: 1 !important; transform: none !important; transition: none; }

  .resume__masthead {
    border-bottom-color: #000;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
  }

  .resume__masthead h1 { font-size: 22pt; }
  .resume__tagline { font-size: 11pt; color: #000; margin-bottom: 0.5rem; }
  .resume__contact { font-size: 9pt; color: #000; gap: 0.2rem 1rem; }
  .resume__contact li + li::before { margin-right: 1rem; color: #999; }
  .resume__contact a { border-bottom: 0; }

  .resume__summary { font-size: 9.5pt; max-width: none; margin-bottom: 0; }

  .resume__section { margin-top: 1.15rem; }

  .resume__section > h2 {
    font-size: 9pt;
    color: #000;
    border-bottom-color: #000;
    padding-bottom: 0.25rem;
    margin-bottom: 0.7rem;
  }

  .resume__role { margin-bottom: 0.9rem; }
  .resume__role-head { margin-bottom: 0.3rem; }
  .resume__role-head h3 { font-size: 11.5pt; }
  .resume__org, .resume__years { font-size: 9pt; color: #000; }
  .resume__lede, .resume__role li { font-size: 9.5pt; max-width: none; }
  .resume__role ul { max-width: none; }
  .resume__role li { margin-bottom: 0.2rem; }
  .resume__role li::before { background: #000; }
  .resume__role li a { text-decoration: none; }
  .resume__subhead { font-size: 8.5pt; color: #000; margin: 0.5rem 0 0.3rem; }

  .resume__skills { gap: 0.35rem 1.25rem; }
  .resume__skills dt { font-size: 9.5pt; }
  .resume__skills dd { font-size: 9.5pt; color: #000; max-width: none; }

  .resume__edu { gap: 0.75rem; }
  .resume__edu-item { border-color: #ccc; background: none; padding: 0.5rem 0.75rem; }
  .resume__degree { font-size: 10pt; }
  .resume__school, .resume__edu .resume__years { font-size: 9pt; color: #000; }

  /* Never split a role's heading from its first bullet, or a heading from
     the section it introduces. */
  .resume__role, .resume__edu-item { break-inside: avoid; }
  .resume__role-head, .resume__subhead, .resume__section > h2 { break-after: avoid; }
  .resume__section { break-before: auto; }
  h1, h2, h3, h4 { break-after: avoid; }
}

/* ── Reveal animations ──────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in { opacity: 1; transform: none; }

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .project-card__frame img,
  .project-card__frame > svg,
  .photo-grid img { transition: none; }
}
