/* ==========================================================================
   Christopher Donley — CV / Resume site
   --------------------------------------------------------------------------
   Visual identity: "warm technical editorial"
   - Marigold page backdrop (sampled from the headshot backdrop)
   - Wide white content sheets with hairline borders instead of nested boxes
   - Bricolage Grotesque (display) + Instrument Sans (body) + JetBrains Mono (meta)

   Table of contents
     1. Fonts (self-hosted, OFL licensed)
     2. Design tokens (CSS variables) — BRAND block is rewritten by tools/set-brand-color.py
     3. Reset & base
     4. Layout primitives (container, sheet, section head)
     5. Buttons, pills, chips, icons
     6. Header / navigation
     7. Hero
     8. Ticker (marquee)
     9. Profile
    10. Experience timeline
    11. Skills
    12. Expertise / highlights
    13. Education & credentials
    14. Contact + form
    15. Footer + floating action button
    16. Motion (entry + scroll reveals)
    17. Responsive breakpoints
    18. Reduced motion + print
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url("../assets/fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2-variations"),
       url("../assets/fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url("../assets/fonts/instrument-sans-latin-standard-normal.woff2") format("woff2-variations"),
       url("../assets/fonts/instrument-sans-latin-standard-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url("../assets/fonts/instrument-sans-latin-standard-italic.woff2") format("woff2-variations"),
       url("../assets/fonts/instrument-sans-latin-standard-italic.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations"),
       url("../assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
}

/* 2. Design tokens -------------------------------------------------------- */
:root {
  /* BRAND:START — generated values; run `python3 tools/prepare-headshot.py <photo>` to resample */
  --brand: #FED402;        /* page backdrop: the headshot background colour */
  --brand-deep: #915C01;   /* accent text on white (kept at 5.5:1+ contrast) */
  --brand-tint: #FFF9DC;   /* faint wash for hovers and insets on white */
  --brand-soft: #FEE774;   /* mid tone for decorative shapes */
  /* BRAND:END */

  /* Ink + paper (warm neutrals so the white never feels clinical next to the marigold) */
  --ink: #1A1410;
  --ink-2: #4A4038;
  --ink-3: #6E6258;
  --paper: #FFFFFF;
  --paper-2: #FBF8F3;
  --line: #EEE7DD;
  --line-2: #E2D8CB;
  --ok: #1F8A4C;

  /* Type */
  --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Spacing + shape */
  --container: 1280px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --sheet-pad: clamp(24px, 5vw, 72px);
  --r-sheet: clamp(22px, 2.6vw, 36px);
  --r-card: 20px;
  --r-pill: 999px;

  /* Elevation: warm-tinted shadows read as paper resting on the orange */
  --shadow-sheet: 0 1px 0 rgba(255, 255, 255, 0.7) inset,
                  0 2px 4px rgba(90, 45, 0, 0.06),
                  0 40px 80px -40px rgba(90, 45, 0, 0.45);
  --shadow-float: 0 18px 40px -18px rgba(26, 20, 16, 0.45);

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.75, 0.1, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h: 76px;

  /* Film grain tile, shared by the page backdrop and the hero photo so both carry identical texture */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --grain-opacity: 0.05;
}

/* 3. Reset & base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor jumps land below the fixed header */
  scroll-padding-top: calc(var(--header-h) + 28px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  /* Flat on purpose: the backdrop is the exact headshot colour, so the hero photo melts into the page */
  background-color: var(--brand);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Film-grain overlay across the whole document. Plain alpha compositing (no blend modes), because
   blend modes don't reach the canvas background consistently and the photo would render darker. */
body { position: relative; }
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: var(--grain);
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--brand); }

/* Keyboard focus: thick ink ring, offset so it never hugs the element */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* 4. Layout primitives ---------------------------------------------------- */
main, .site-footer { position: relative; z-index: 1; }
main { padding-top: calc(var(--header-h) + 36px); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { margin-top: clamp(20px, 2.4vw, 32px); }

/* A sheet is one wide white panel. Sections live inside a single sheet and use
   hairlines for internal structure — no box-inside-box stacking. */
.sheet {
  position: relative;
  background: var(--paper);
  border-radius: var(--r-sheet);
  border: 1px solid rgba(26, 20, 16, 0.06);
  box-shadow: var(--shadow-sheet);
  padding: var(--sheet-pad);
}

/* Section header: mono kicker + display title + intro, laid out in two columns on wide screens */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: end;
  gap: 20px 64px;
  padding-bottom: clamp(28px, 4vw, 48px);
  margin-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.kicker::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--brand);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -0.028em;
  font-stretch: 93%;
  text-wrap: balance;
}
/* Highlighter stroke in the brand yellow: ties the backdrop colour into the white sheets */
.section-title em {
  font-style: normal;
  padding: 0 0.06em;
  margin: 0 -0.06em;
  background-image: linear-gradient(transparent 56%, var(--brand) 56%, var(--brand) 90%, transparent 90%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 0.9s var(--ease-out) 0.35s;
}
/* With JS on, the stroke "draws" across when its block scrolls in */
.js .reveal:not(.is-in) .section-title em { background-size: 0% 100%; }
.section-intro {
  max-width: 34em;
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* 5. Buttons, pills, chips, icons ---------------------------------------- */
.icon {
  width: 1.15em; height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

.btn {
  --btn-bg: var(--paper-2);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), background-color 0.2s, box-shadow 0.25s var(--ease-out), border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--dark {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  box-shadow: 0 10px 24px -12px rgba(26, 20, 16, 0.7);
}
.btn--dark:hover { box-shadow: 0 16px 30px -14px rgba(26, 20, 16, 0.75); }
.btn--ghost {
  --btn-bg: var(--paper);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--ink); }
/* Used on the orange backdrop */
.btn--paper {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  box-shadow: 0 10px 24px -14px rgba(90, 45, 0, 0.6);
}
.btn--sm { min-height: 42px; padding: 0 16px; border-radius: 12px; font-size: 14.5px; }
.btn .icon { width: 18px; height: 18px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.pill .icon { width: 14px; height: 14px; color: var(--ink-3); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  transition: background-color 0.2s, border-color 0.2s, transform 0.25s var(--ease-out);
}
.chip .icon { width: 14px; height: 14px; color: var(--brand-deep); stroke-width: 2.4; }
.chip:hover { background: var(--brand-tint); border-color: var(--brand-soft); transform: translateY(-1px); }

/* 6. Header / navigation -------------------------------------------------- */
.site-header {
  position: fixed;
  top: 14px;
  left: 0; right: 0;
  z-index: 50;
  pointer-events: none; /* only the nav pill catches clicks, not the empty band */
}
.nav {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
  padding: 10px 10px 10px 12px;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid rgba(26, 20, 16, 0.07);
  border-radius: 22px;
  box-shadow: 0 10px 30px -18px rgba(90, 45, 0, 0.55);
  transition: box-shadow 0.3s var(--ease-out), background-color 0.3s;
}
/* Same width as the content container so the pill lines up with the sheets below */
.site-header__inner { padding-inline: var(--gutter); max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; }
.is-scrolled .nav { box-shadow: 0 16px 40px -18px rgba(90, 45, 0, 0.7); background: #FFFFFF; }

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
  border-radius: 14px;
}
.nav__avatar {
  width: 52px; height: 52px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--brand);
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--line-2);
}
.nav__avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav__name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav__name strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.nav__name span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.nav__menu { display: flex; align-items: center; gap: 18px; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  position: relative;
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav__links a:hover { color: var(--ink); background: var(--paper-2); }
/* Scrollspy state set by main.js */
.nav__links a[aria-current="true"] { color: var(--ink); background: var(--brand-tint); }
.nav__links a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 4px;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--brand-deep);
}

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--paper);
  cursor: pointer;
}
.nav__toggle .icon { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav[data-open="true"] .nav__toggle .icon-open { display: none; }
.nav[data-open="true"] .nav__toggle .icon-close { display: block; }

/* 7. Hero ----------------------------------------------------------------- */
/* Layout: white intro sheet on the left, the photo standing directly on the backdrop on the
   right, and a full-width stats sheet underneath that hides the photo's bottom edge. */
.hero {
  /* Distance from the content edge to the viewport edge. The shirt touches the photo's right
     side, so the photo (and the stats sheet that hides its bottom edge) bleed off-screen there. */
  --bleed: calc((100vw - min(100vw - 2 * var(--gutter), var(--container))) / 2);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: end;
}
.hero__sheet { position: relative; z-index: 2; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  margin-bottom: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--paper);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.status__dot {
  position: relative;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ok);
}
/* Soft radar pulse on the availability dot */
.status__dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--ok);
  opacity: 0;
  animation: pulse 2.4s var(--ease-out) infinite;
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(54px, 8.2vw, 128px);
  line-height: 0.88;
  letter-spacing: -0.032em;
  font-stretch: 90%;
  margin-left: -0.04em; /* optical alignment of the big C with the text below */
}
/* Each line is a mask; the inner span rises into view on load */
.hero__name .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.hero__name .line > span { display: inline-block; }
.hero__name .dot { font-style: normal; color: var(--brand); }

.hero__role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: clamp(20px, 2.6vw, 30px);
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero__role .sep { width: 28px; height: 1px; background: var(--ink-3); }
.hero__lede {
  max-width: 33em;
  margin-top: 18px;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3vw, 36px); }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  font-size: 14.5px;
  color: var(--ink-3);
}
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta .icon { width: 16px; height: 16px; }

/* Photo: no frame at all. Its backdrop pixels equal --brand, so only Chris is visible.
   A negative bottom margin tucks the shirt's hard crop line behind the stats sheet. */
.hero__photo {
  --tuck: clamp(44px, 5vw, 72px);
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(calc(100% + var(--bleed)), 720px);
  margin-right: calc(var(--bleed) * -1);
  margin-bottom: calc(var(--tuck) * -1 - clamp(16px, 2vw, 28px));
}
.hero__photo-frame { position: relative; aspect-ratio: 1 / 1; }
.hero__photo-frame img { width: 100%; height: 100%; object-fit: cover; }
/* Same grain as the page, laid over the photo, so its backdrop texture matches exactly */
.hero__photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: var(--grain);
}
/* Hand-placed sticker: a bit of personality next to the formal sheet */
.sticker {
  position: absolute;
  top: 10%;
  right: 16%;
  z-index: 2;
  padding: 10px 16px 11px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 1.5vw, 20px);
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-float);
  transform: rotate(6deg);
}
.sticker::after {
  /* little speech-bubble tail pointing at the photo */
  content: "";
  position: absolute;
  left: 18px; bottom: -8px;
  width: 16px; height: 16px;
  background: inherit;
  border-radius: 3px;
  transform: rotate(45deg);
}
.proof {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-float);
  animation: float 7s ease-in-out infinite;
}
.proof__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand-deep);
}
.proof__icon .icon { width: 20px; height: 20px; }
.proof strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.proof__label { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-3); line-height: 1.3; }
/* Sits in the open backdrop below-left of the face, clear of the chin */
.proof--a { left: -7%; top: 69%; z-index: 2; }

/* Stats: their own full-width sheet, layered above the photo's bottom edge */
.stats-sheet {
  position: relative;
  z-index: 2;
  margin-top: clamp(16px, 2vw, 28px);
  /* Runs off the right edge with the photo; the padding keeps the numbers inside the content width */
  margin-right: calc(var(--bleed) * -1);
  padding: 0 var(--bleed) 0 0;
  border-right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  padding: clamp(22px, 3vw, 36px) var(--sheet-pad);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.stat__num sup, .stat__num .unit { font-size: 0.5em; letter-spacing: -0.02em; vertical-align: 0.6em; color: var(--brand-deep); }
.stat__label { display: block; margin-top: 10px; font-size: 14.5px; color: var(--ink-3); line-height: 1.35; }

/* 8. Ticker (marquee) — sits directly on the orange, breaking the boxed rhythm */
.ticker {
  position: relative;
  z-index: 1;
  margin: clamp(28px, 4vw, 48px) 0 clamp(8px, 2vw, 16px);
  overflow: hidden;
  /* Feather both edges into the backdrop */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__label {
  text-align: center;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(26, 20, 16, 0.7);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__list {
  display: flex;
  align-items: center;
  flex: none;
}
.ticker__list li {
  display: inline-flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  padding-right: clamp(18px, 2.4vw, 32px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: -0.03em;
  font-stretch: 90%;
  color: var(--ink);
  white-space: nowrap;
}
.ticker__list li::after {
  content: "";
  width: 14px; height: 14px;
  background: var(--ink);
  /* four-point spark */
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0.85;
}

/* 9. Profile -------------------------------------------------------------- */
.profile__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
}
.profile__summary p {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--ink);
  text-wrap: pretty;
}
.profile__summary p + p { margin-top: 18px; font-size: 17px; color: var(--ink-2); }
.profile__where {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 15px;
  color: var(--ink-3);
}
.profile__where .icon { width: 16px; height: 16px; }
.subhead {
  margin: 34px 0 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.competencies {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px;
}
.competency {
  padding: 22px 0 24px;
  border-top: 1px solid var(--line);
}
.competency:nth-child(-n+2) { border-top: 2px solid var(--ink); }
.competency h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.competency h3 .num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-deep);
}
.competency li {
  position: relative;
  padding: 5px 0 5px 22px;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--ink-2);
}
.competency li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.85em;
  width: 9px; height: 2px;
  border-radius: 2px;
  background: var(--brand-deep);
}

/* 10. Experience timeline -------------------------------------------------- */
.xp__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.xp__aside {
  position: sticky;
  top: calc(var(--header-h) + 44px);
}
.xp__aside .section-title { margin-bottom: 18px; }
.xp__aside .btn { margin-top: 28px; }

.timeline { position: relative; }
/* Vertical rail */
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 12px; bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--line-2) 40%, var(--line) 100%);
}
.job { position: relative; padding-left: clamp(36px, 4vw, 52px); }
.job + .job { margin-top: clamp(40px, 5vw, 64px); }
/* Rail node: yellow dot, white ring, fine ink outline so it reads on white */
.job::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 6px var(--paper);
}
.job--past::before { background: var(--line-2); box-shadow: 0 0 0 1.5px var(--ink-3), 0 0 0 6px var(--paper); }
.job__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 24px;
}
.job__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.job__org {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 10px;
  font-size: 15.5px;
  color: var(--ink-2);
}
.job__org strong { color: var(--ink); font-weight: 600; }
.job__org .dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.job__org .where { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); }
.job__org .where .icon { width: 15px; height: 15px; }
.job__desc {
  margin-top: 14px;
  max-width: 44em;
  font-style: italic;
  font-size: 16px;
  color: var(--ink-3);
}
.impact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin-top: 24px;
}
.impact li {
  padding: 18px 0 20px;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.impact li strong {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.impact li strong::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--brand);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  transform: rotate(45deg);
  flex: none;
}
/* Simpler single-column list for roles without lead-ins */
.impact--plain { grid-template-columns: minmax(0, 1fr); }
.impact--plain li { position: relative; padding-left: 22px; }
.impact--plain li::before {
  content: "";
  position: absolute;
  left: 2px; top: 1.6em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--line-2);
  transform: rotate(45deg);
}

/* 11. Skills -------------------------------------------------------------- */
.skills {
  columns: 3 320px;
  column-gap: clamp(24px, 3vw, 44px);
}
.skill-group {
  break-inside: avoid;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
}
.skill-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.skill-group h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.skill-group__count {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
}

/* 12. Expertise / highlights --------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.tile {
  position: relative;
  grid-column: span 6;
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 220px at 100% 0%, var(--brand-tint), transparent 70%),
    var(--paper-2);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.25s;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(90, 45, 0, 0.55); border-color: var(--line-2); }
.tile--wide { grid-column: span 7; }
.tile--narrow { grid-column: span 5; }
.tile__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--brand-deep);
}
.tile__icon .icon { width: 22px; height: 22px; }
.tile h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 1.9vw, 25px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.tile p { font-size: 15.5px; color: var(--ink-2); max-width: 36em; }
.tile__index {
  position: absolute;
  top: clamp(20px, 2.4vw, 30px);
  right: clamp(22px, 2.6vw, 34px);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.industries {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: clamp(28px, 3.4vw, 40px);
  padding-top: clamp(22px, 2.6vw, 30px);
  border-top: 1px solid var(--line);
}
.industries .subhead { margin: 0 12px 0 0; }

/* 13. Education & credentials -------------------------------------------- */
.edu__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
}
.edu__col { padding-right: clamp(24px, 4vw, 64px); }
.edu__col + .edu__col {
  padding-right: 0;
  padding-left: clamp(24px, 4vw, 64px);
  border-left: 1px solid var(--line);
}
.edu__col > .subhead { margin-top: 0; }
.degree {
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}
.degree__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 20px; }
.degree h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.degree__school { margin-top: 8px; color: var(--ink-2); }
.degree ul { margin-top: 18px; }
.degree li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
.degree li b { font-weight: 600; color: var(--ink); }

.certs li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.certs li:first-child { border-top: 2px solid var(--ink); }
.certs__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand-deep);
}
.certs__icon .icon { width: 20px; height: 20px; }
.certs strong { display: block; font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--ink); }
.certs__issuer { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-3); }
.certs__note { margin-top: 16px; font-style: italic; font-size: 14.5px; color: var(--ink-3); }

/* 14. Contact + form ------------------------------------------------------ */
/* The intro sits straight on the yellow backdrop: open, unboxed, poster-like */
.contact-cta {
  position: relative;
  z-index: 1;
  /* block padding only, so the .container side gutters still apply */
  padding-top: clamp(72px, 10vw, 140px);
  padding-bottom: clamp(40px, 6vw, 72px);
  text-align: center;
}
.contact-cta .kicker { color: rgba(26, 20, 16, 0.75); }
.contact-cta .kicker::before { background: var(--ink); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5); }
.contact-cta__title {
  max-width: 14ch;
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.032em;
  font-stretch: 90%;
  text-wrap: balance;
}
.contact-cta__lede {
  max-width: 34em;
  margin: 24px auto 0;
  font-size: clamp(17px, 1.5vw, 20px);
  color: rgba(26, 20, 16, 0.82);
}
.contact-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.socials { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.socials a {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(26, 20, 16, 0.1);
  color: var(--ink);
  transition: background-color 0.2s, transform 0.25s var(--ease-out);
}
.socials a:hover { background: var(--paper); transform: translateY(-2px); }
.socials .icon { width: 20px; height: 20px; }

.form-sheet__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 80px);
}
.form-sheet__aside .section-title { font-size: clamp(32px, 3.6vw, 52px); margin-bottom: 16px; }
.contact-list { margin-top: 30px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .icon { width: 18px; height: 18px; color: var(--brand-deep); }
.contact-list a { text-decoration: none; font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }
.contact-list small { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--paper-2);
  font-size: 16px; /* 16px stops iOS from zooming on focus */
  line-height: 1.4;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 168px; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231A1410' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field input::placeholder, .field textarea::placeholder { color: #7A6E64; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--paper);
  box-shadow: 0 0 0 4px var(--brand-tint);
}
.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea { border-color: #B42318; background: #FFF6F5; }
.field__error { display: none; font-size: 13.5px; color: #B42318; }
.field[data-invalid="true"] .field__error { display: block; }
/* Honeypot: off-screen for humans, still in the DOM for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form__fine { font-size: 13.5px; color: var(--ink-3); }
.form .btn[disabled] { opacity: 0.65; cursor: progress; transform: none; }
.form__status {
  display: none;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 15px;
}
.form__status[data-state] { display: block; }
.form__status[data-state="success"] { background: #ECF7F0; border: 1px solid #BFE3CC; color: #14532D; }
.form__status[data-state="error"] { background: #FFF6F5; border: 1px solid #F5C6C1; color: #7A1A12; }
.form__status a { font-weight: 600; }

/* 15. Footer + floating action button ------------------------------------- */
.site-footer {
  padding: clamp(40px, 6vw, 72px) 0 32px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(26, 20, 16, 0.18);
  font-size: 14.5px;
  color: rgba(26, 20, 16, 0.8);
}
.site-footer a { font-weight: 600; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

.fab {
  position: fixed;
  right: clamp(16px, 2.4vw, 32px);
  bottom: clamp(16px, 2.4vw, 32px);
  z-index: 40;
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 16px 32px -14px rgba(26, 20, 16, 0.8);
  text-decoration: none;
  transform: translateY(0) scale(1);
  transition: transform 0.35s var(--ease-spring), opacity 0.25s;
}
.fab:hover { transform: translateY(-3px) scale(1.04); }
.fab .icon { width: 24px; height: 24px; }
/* Hidden until the visitor scrolls past the hero (toggled in main.js) */
.js .fab { opacity: 0; transform: translateY(20px) scale(0.9); pointer-events: none; }
.js .fab.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

/* Toast used by "Copy email" */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: var(--shadow-float);
  /* Parked fully below the viewport and hidden, so it can never peek in */
  visibility: hidden;
  transform: translate(-50%, calc(100% + 60px));
  transition: transform 0.4s var(--ease-spring), visibility 0s linear 0.4s;
}
.toast.is-visible { visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }

/* 16. Motion -------------------------------------------------------------- */
@keyframes rise {
  from { transform: translateY(108%); }
  to   { transform: translateY(0); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes photo-in {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes sticker-in {
  from { opacity: 0; transform: rotate(-10deg) scale(0.6); }
  to   { opacity: 1; transform: rotate(6deg) scale(1); }
}
@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}
@keyframes pulse {
  0%   { opacity: 0.7; transform: scale(0.6); }
  80%, 100% { opacity: 0; transform: scale(1.6); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Hero entrance — "backwards" fill keeps content visible if animations never run */
.hero .status        { animation: fade-up 0.7s var(--ease-out) 0.05s backwards; }
.hero__name .line > span { animation: rise 1s var(--ease-out) backwards; }
.hero__name .line:nth-child(1) > span { animation-delay: 0.12s; }
.hero__name .line:nth-child(2) > span { animation-delay: 0.24s; }
.hero__role          { animation: fade-up 0.8s var(--ease-out) 0.42s backwards; }
.hero__lede          { animation: fade-up 0.8s var(--ease-out) 0.52s backwards; }
.hero__actions       { animation: fade-up 0.8s var(--ease-out) 0.62s backwards; }
.hero__meta          { animation: fade-up 0.8s var(--ease-out) 0.72s backwards; }
.hero__photo-frame   { animation: photo-in 1.2s var(--ease-out) 0.3s backwards; }
.sticker             { animation: sticker-in 0.7s var(--ease-spring) 1.1s backwards; }
.proof--a            { animation: fade-up 0.8s var(--ease-out) 0.9s backwards, float 7s ease-in-out 1.7s infinite; }
.stats-sheet         { animation: fade-up 0.9s var(--ease-out) 0.55s backwards; }

/* Scroll reveals: only hidden when JS is running (html.js), so no-JS visitors see everything */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }
/* Opacity-only variant for items inside CSS multi-column layouts (transforms glitch there) */
.js .reveal--fade { transform: none; }

/* 17. Responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .skills { columns: 2 300px; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__photo { width: min(calc(100% + var(--bleed)), 560px); margin-top: 8px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .profile__grid, .xp__grid, .form-sheet__grid { grid-template-columns: minmax(0, 1fr); }
  .xp__aside { position: static; }
  .edu__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .edu__col, .edu__col + .edu__col { padding: 0; border-left: 0; }
  .tile, .tile--wide, .tile--narrow { grid-column: span 12; }

  /* Collapsible nav (only when JS can toggle it) */
  .nav__toggle { display: inline-flex; }
  .nav__avatar { width: 46px; height: 46px; border-radius: 12px; }
  .js .nav__menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
    background: var(--paper);
    border: 1px solid rgba(26, 20, 16, 0.07);
    border-radius: 22px;
    box-shadow: 0 24px 48px -20px rgba(90, 45, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0s linear 0.25s;
  }
  .js .nav[data-open="true"] .nav__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
  .js .nav__links { flex-direction: column; align-items: stretch; }
  .js .nav__links a { padding: 14px 16px; font-size: 17px; }
  .js .nav__links a[aria-current="true"]::after { left: auto; right: 18px; bottom: 50%; margin: 0 0 -2px; }
  .js .nav__cta { width: 100%; min-height: 52px; }
  /* No-JS fallback: menu stays visible and simply wraps */
  html:not(.js) .nav { height: auto; flex-wrap: wrap; }
  html:not(.js) .nav__toggle { display: none; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav__name span { display: none; }
  /* Role line stacks; the dash separator only makes sense on one line */
  .hero__role { flex-direction: column; align-items: flex-start; gap: 4px; }
  .hero__role .sep { display: none; }
  .impact { grid-template-columns: minmax(0, 1fr); }
  .competencies { grid-template-columns: minmax(0, 1fr); }
  .competency:nth-child(2) { border-top: 1px solid var(--line); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .hero__actions .btn { flex: 1 1 auto; }
  .proof { padding: 10px 12px 10px 10px; gap: 10px; }
  .proof__icon { width: 34px; height: 34px; border-radius: 10px; }
  .proof strong { font-size: 18px; }
  .proof--a { left: 0; top: 72%; }
  .sticker { top: 6%; right: 12%; }
  .contact-cta__actions .btn { flex: 1 1 100%; }
  .job { padding-left: 34px; }
}

@media (max-width: 420px) {
  .stat { padding: 20px 18px; }
  .stat__label { font-size: 13.5px; }
}
@media (max-width: 340px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { border-left: 0 !important; }
  .stat + .stat { border-top: 1px solid var(--line); }
}

/* 18. Reduced motion + print ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker__list[aria-hidden="true"] { display: none; }
  .ticker__list { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  body { background: #fff; }
  body::before, .site-header, .ticker, .fab, .form-sheet, .socials, .skip-link { display: none !important; }
  main { padding-top: 0; }
  .sheet { box-shadow: none; border: 0; padding: 0; }
  .section { margin-top: 28px; }
  .js .reveal { opacity: 1; transform: none; }
  a { text-decoration: none; }
}
