/* ==========================================================================
   Julie Tersigni — portfolio
   main.css — design system, chrome, and the public pages
   --------------------------------------------------------------------------
   Black-and-white editorial. The type does the work: Staatliches for display
   (condensed caps, straight from the source deck), Work Sans for everything
   readable. No accent colour anywhere — hierarchy comes from scale, weight,
   and space.

   Both themes are true monochrome. `data-theme="dark"` inverts the palette
   and matches the original slide deck; light is the default because the case
   studies are long-form reading.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --ink:        #0b0b0b;
  --ink-soft:   #3a3a38;
  --ink-mute:   #6f6f6b;
  --ink-faint:  #8a8a85;   /* 3.35:1 — large display type and control borders only */
  --paper:      #fbfbfa;
  --paper-2:    #f2f1ee;
  --paper-3:    #e7e6e2;
  --rule:       #d9d8d3;
  --rule-soft:  #eceae6;
  --invert-bg:  #0b0b0b;
  --invert-ink: #f7f6f3;

  --font-display: "Staatliches", "Haettenschweiler", "Arial Narrow", sans-serif;
  --font-body:    "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Fluid type. Clamp keeps the display sizes from bullying small screens. */
  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.13rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.40vw, 1.44rem);
  --step-2:  clamp(1.45rem, 1.30rem + 0.75vw, 1.95rem);
  --step-3:  clamp(1.90rem, 1.55rem + 1.75vw, 3.10rem);
  --step-4:  clamp(2.60rem, 1.80rem + 4.00vw, 5.60rem);
  --step-5:  clamp(3.20rem, 1.90rem + 6.50vw, 8.00rem);

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --measure: 68ch;

  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
  --ink:        #f7f6f3;
  --ink-soft:   #d5d3cd;
  --ink-mute:   #a3a19a;
  --ink-faint:  #6d6b65;   /* 3.69:1 — large display type and control borders only */
  --paper:      #0b0b0b;
  --paper-2:    #141413;
  --paper-3:    #1e1e1c;
  --rule:       #2e2e2b;
  --rule-soft:  #1f1f1d;
  --invert-bg:  #f7f6f3;
  --invert-ink: #0b0b0b;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.12; }
p  { margin: 0 0 1.15em; }
ul, ol { margin: 0; padding: 0; }

a { color: inherit; }

button { font: inherit; color: inherit; }

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.85rem 1.4rem;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 900px; }

/* Utility: the display face wants tracking and caps to read as a system. */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.94;
}

.eyebrow {
  margin: 0 0 1.1rem;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* --------------------------------------------------------------------------
   3. Navigation
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.3s var(--ease);
}
.site-nav.is-scrolled { border-bottom-color: var(--rule); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.32rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--ink-faint); }

.nav-links {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.2rem);
  margin-left: auto;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-mute);
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-mute);
  transition: color 0.2s var(--ease);
}
.nav-back svg { width: 17px; height: 17px; }
.nav-back:hover { color: var(--ink); }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  padding: 0;
  background: none;
  border: 1px solid var(--ink-faint);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); transform: rotate(-18deg); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Mobile menu */
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-left: auto;
    padding: 0;
    background: none;
    border: 1px solid var(--ink-faint);
    border-radius: 50%;
    cursor: pointer;
  }
  .nav-toggle svg { width: 18px; height: 18px; }
  .nav-toggle .icon-close { display: none; }
  .nav-toggle.is-open .icon-menu  { display: none; }
  .nav-toggle.is-open .icon-close { display: block; }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0.5rem var(--gutter) 1.75rem;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
                visibility 0.24s var(--ease);
  }
  .nav-links.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links li { border-bottom: 1px solid var(--rule-soft); }
  .nav-links a { display: block; padding: 1.05rem 0; font-size: var(--step-0); }
  .nav-links a::after { display: none; }
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* Text link with a rule that draws on hover */
.link {
  position: relative;
  text-decoration: none;
  border-bottom: 1px solid var(--ink-faint);
  transition: border-color 0.2s var(--ease);
}
.link:hover { border-bottom-color: var(--ink); }

/* --------------------------------------------------------------------------
   5. Home — hero
   -------------------------------------------------------------------------- */
.hero {
  padding: clamp(3.5rem, 9vw, 8rem) 0 clamp(3rem, 7vw, 6rem);
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.hero-name {
  font-size: var(--step-5);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
/* The comma in her deck title is a deliberate beat — keep it hanging. */
.hero-name .comma { color: var(--ink-faint); }

.hero-lede {
  max-width: 46ch;
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-soft);
}
.hero-lede strong { font-weight: 500; color: var(--ink); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.hero-portrait {
  position: relative;
  filter: grayscale(100%) contrast(1.04);
}
.hero-portrait img { width: 100%; }
.hero-portrait figcaption {
  margin-top: 0.85rem;
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 320px; order: -1; }
}

/* --------------------------------------------------------------------------
   6. Expertise strip
   --------------------------------------------------------------------------
   Was a looping marquee. Julie asked for each term shown once, so it is now a
   static wrapping row — which also removes the duplicated-list artifact, the
   reduced-motion exception, and the JS that cloned the track.
   -------------------------------------------------------------------------- */
.strip {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
}

.strip-track {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  /* Sized so all seven terms sit on one line, which is what Julie asked for. The binding
     case is a wide window: the container stops growing at 1240px while a vw-based font
     keeps growing, so the widest screen is the tightest fit, not the roomiest. At the cap
     the row needs ~1020px of the ~1112px available — about 9% headroom, held across every
     width down to the 64rem breakpoint below. The old 1.35rem/2.25rem pair needed ~1216px
     and could not fit at any desktop width. */
  gap: 0.4rem 1.6rem;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.1vw, 1.15rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* No separator character. The row wraps, and an ::after dot trails whichever item
   happens to land at the end of a line — which moves with the window width, so it
   can't be fixed by exempting a particular term. The gap carries the separation. */
.strip-track li { display: flex; align-items: baseline; }

/* Below 64rem one line is physically impossible — the seven terms are wider than the
   viewport even at the minimum font size — and the natural wrap strands "Research" alone
   on line two. So in that band only, this spacer forces the break after the third term,
   splitting the row 3 + 4 into two lines of near-equal length. Narrower than 40rem, three
   terms no longer fit either and the natural wrap does a better job unaided.
   Specificity has to beat `.strip-track li` above, hence the two-class selector. */
.strip-track .strip-break { display: none; }

@media (min-width: 40rem) and (max-width: 63.999rem) {
  /* The spacer is a flex line of its own, so the 0.4rem row-gap lands twice — once above
     it and once below — and the two term lines would sit twice as far apart as a natural
     wrap. Halve the row gap while the spacer is doing the wrapping. In this band those are
     provably the only two lines: three terms fit, and so do the remaining four. */
  .strip-track { row-gap: 0.2rem; }

  .strip-track .strip-break {
    display: block;
    flex-basis: 100%;
    height: 0;
    margin: 0;
  }
}

@media (min-width: 64rem) {
  /* Justify the row: first term flush left, last flush right, the leftover width shared
     equally between the terms rather than pooling on the right. `column-gap` above acts as
     the minimum, so the ~9% headroom the sizing leaves over is spread across the six gaps —
     roughly 1.6rem + 15px each, which lands close to the old 2.25rem rhythm. Scoped to the
     one-line band deliberately: on a wrapped row, space-between would fling the last line's
     two or three terms across the full width. */
  .strip-track { justify-content: space-between; }
}

/* --------------------------------------------------------------------------
   7. Section furniture
   -------------------------------------------------------------------------- */
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--ink);
}
.section-head h2 { font-size: var(--step-3); }
.section-head .count {
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   8. Work index — typographic rows, no imagery (the mocks stay encrypted)
   -------------------------------------------------------------------------- */
.work-list { list-style: none; }

.work-row {
  border-bottom: 1px solid var(--rule);
}

.work-link {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  padding: clamp(1.6rem, 3.5vw, 2.6rem) 0;
  text-decoration: none;
}

/* The row nudges right on hover, but with transform rather than padding.
   padding-inline narrowed the title column, and "Prime Video interactive ad
   experiences" clears one line by only a few pixels — so it re-wrapped, the row
   grew taller, and everything below jumped. A transform is painted, not laid
   out: it cannot change where text wraps, however far it moves.
   Focus gets the same treatment so keyboard users aren't left guessing. */
.work-link {
  transition: transform 0.25s var(--ease);
}
.work-link:hover,
.work-link:focus-visible {
  transform: translateX(0.5rem);
}
.work-link:hover .work-title,
.work-link:focus-visible .work-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
/* Coming-soon rows aren't links, so they shouldn't move. */
.work-link--pending:hover { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .work-link:hover,
  .work-link:focus-visible { transform: none; }
}

/* Coming-soon entries are divs, not links, so nothing implies a destination. */
.work-link--pending { cursor: default; }
.work-link--pending .work-title { color: var(--ink-soft); }

.work-num {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ink-mute);
}

.work-title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  text-transform: uppercase;
  line-height: 0.98;
  margin-bottom: 0.55rem;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.work-meta .sep { color: var(--rule); }

.work-blurb {
  max-width: 58ch;
  margin: 0.85rem 0 0;
  font-size: var(--step-0);
  color: var(--ink-soft);
}

.work-state {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}
.work-state svg { width: 14px; height: 14px; }
.work-state--wip { color: var(--ink-mute); }

@media (max-width: 760px) {
  .work-link { grid-template-columns: 2.75rem minmax(0, 1fr); }
  .work-state { grid-column: 2; margin-top: 0.9rem; }
}

/* --------------------------------------------------------------------------
   9. Inverted band — carries the deck's black-slide identity
   -------------------------------------------------------------------------- */
.band {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  background: var(--invert-bg);
  color: var(--invert-ink);
}
.band .eyebrow { color: color-mix(in srgb, var(--invert-ink) 68%, transparent); }
.band-quote {
  max-width: 30ch;
  font-family: var(--font-display);
  font-size: var(--step-4);
  text-transform: uppercase;
  line-height: 0.98;
}
.band-note {
  max-width: var(--measure);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: var(--step-1);
  font-weight: 300;
  color: color-mix(in srgb, var(--invert-ink) 78%, transparent);
}
.band .btn {
  margin-top: 2.25rem;
  background: var(--invert-ink);
  color: var(--invert-bg);
  border-color: var(--invert-ink);
}
.band .btn:hover { background: transparent; color: var(--invert-ink); }

/* --------------------------------------------------------------------------
   10. Process — "How I work"
   -------------------------------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  list-style: none;
  counter-reset: step;
}
.process li { counter-increment: step; padding-top: 1.1rem; border-top: 1px solid var(--ink); }
.process li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--ink-mute);
}
.process h3 { margin-bottom: 0.6rem; font-size: var(--step-1); }
.process p { margin: 0; font-size: var(--step-0); color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   11. Prose — About page and long-form public copy
   -------------------------------------------------------------------------- */
.prose { max-width: var(--measure); }
/* Reset the browser's margins, then reinstate the spacing between siblings. The reset is
   wrapped in :where() so it carries no specificity: as a plain `.prose p` (0,1,1) it
   out-ranked the flow rule below (0,1,0) and silently collapsed every paragraph gap, which
   ran the lede straight into the next paragraph. */
.prose :where(p, ul, ol, dl, figure, blockquote) { margin: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  margin-top: 2.4em;
  font-size: var(--step-2);
}
.prose h3 { margin-top: 1.9em; font-size: var(--step-1); }
.prose .lede {
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-soft);
}
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul { padding-left: 1.15em; }
.prose li + li { margin-top: 0.5em; }

/* Facts table — role, tools, locations */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1.75rem 2.5rem;
  margin: 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--ink);
}
.facts dt {
  margin-bottom: 0.45rem;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.facts dd { margin: 0; font-size: var(--step-0); }

/* --------------------------------------------------------------------------
   11b. Career timeline
   --------------------------------------------------------------------------
   Deliberately spare: role, employer, span. The case studies carry the depth,
   so this only has to establish the arc and the seniority.
   -------------------------------------------------------------------------- */
.timeline { list-style: none; }

.timeline li {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.35rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--rule);
}
.timeline li:first-child { border-top: 1px solid var(--ink); }

.timeline-when {
  font-family: var(--font-display);
  font-size: var(--step-0);
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  white-space: nowrap;
  padding-top: 0.15em;
}

.timeline-role {
  margin: 0 0 0.25rem;
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.25;
}
.timeline-where {
  margin: 0;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.timeline-note {
  max-width: 58ch;
  margin: 0.6rem 0 0;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

@media (max-width: 620px) {
  .timeline li { grid-template-columns: 1fr; gap: 0.5rem; }
  .timeline-when { padding-top: 0; }
}

/* --------------------------------------------------------------------------
   11c. Recommendations
   -------------------------------------------------------------------------- */
.quotes {
  display: grid;
  gap: clamp(2rem, 4.5vw, 3.25rem);
  list-style: none;
}

.quote { padding-top: 1.4rem; border-top: 1px solid var(--ink); }

.quote blockquote {
  max-width: 62ch;
  margin: 0 0 1.25rem;
  font-size: var(--step-0);
  line-height: 1.62;
  color: var(--ink-soft);
}
.quote blockquote p { margin: 0; }
/* Hanging opening quote mark, so the text edge stays flush with the rule above */
.quote blockquote p::before { content: "\201C"; margin-left: -0.42em; }
.quote blockquote p::after { content: "\201D"; }

.quote-name {
  display: block;
  font-size: var(--step-0);
  font-weight: 500;
  font-style: normal;
}
.quote-rel {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

.quotes-source {
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
  font-size: var(--step--1);
  color: var(--ink-mute);
}

/* One quote pulled out on the homepage, set larger */
.quote--featured { border-top-width: 2px; }
.quote--featured blockquote {
  max-width: 54ch;
  font-size: var(--step-2);
  font-weight: 300;
  line-height: 1.36;
  letter-spacing: -0.005em;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   12. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
}
.contact-card { padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.contact-card h2 {
  margin-bottom: 0.7rem;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.contact-card p { margin: 0 0 0.5rem; font-size: var(--step-1); }
.contact-card .note { font-size: var(--step--1); color: var(--ink-mute); }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: clamp(2.5rem, 5vw, 4rem) 0 2.5rem;
  border-top: 1px solid var(--ink);
  font-size: var(--step--1);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: baseline;
  justify-content: space-between;
}
.footer-mark {
  font-family: var(--font-display);
  font-size: var(--step-2);
  text-transform: uppercase;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; list-style: none; }
.footer-links a {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-mute);
}
.footer-links a:hover { color: var(--ink); }
.footer-fine {
  margin: 2.5rem 0 0;
  color: var(--ink-mute);
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   14. 404
   -------------------------------------------------------------------------- */
.oops {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--nav-h) - 200px);
  padding: 4rem 0;
  text-align: center;
}
.oops-code {
  font-family: var(--font-display);
  font-size: var(--step-5);
  line-height: 0.9;
  color: var(--ink-faint);
}
.oops h1 { margin: 1rem 0 1.1rem; font-size: var(--step-3); }
.oops p { max-width: 46ch; margin-inline: auto; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   15. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   16. Print — recruiters do print these
   -------------------------------------------------------------------------- */
@media print {
  .site-nav, .theme-toggle, .strip, .hero-actions, .site-footer { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
  a { text-decoration: underline; }
}
