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

:root {
  /* ── LIGHT SURFACES ── */
  /* Text is a near-black slate, not navy, so the blue reads as emphasis (COLOR PASS 2026-11-17). */
  --ink: #111827;             /* 17.7:1 on white */
  --ink-2: #1F2937;
  --ink-muted: #4B5563;       /* 7.6:1 on white, 7.1:1 on --surface-alt */
  --ink-subtle: #5B6472;      /* 6.1:1 on white, 5.7:1 on --surface-alt */
  --ink-faint: #8B93A1;       /* large text only */
  --surface: #ffffff;
  --surface-alt: #F1F7F9;     /* the light blue band, used for every light section */
  --surface-alt-2: #E6EEF5;   /* number tiles, browser chrome */
  --rule: #DCE5EE;
  --rule-strong: #C3D0DE;

  /* ── THE ONE Color ── */
  --accent: #0A72DB;          /* 4.7:1 on white, and white text on it */
  --accent-deep: #0860B8;
  --accent-light: #5CB4FF;    /* bright sky blue: 8.6:1 on the navy */
  --accent-wash: #E7EFFA;

  /* ── RESULTS ── one green, only on outcome numbers and Shipped labels, so results read at a glance */
  --result: #047857;          /* green, so results read as good news: 5.5:1 on white, 5.2:1 on --result-wash */
  --result-wash: #ECFDF5;
  --result-light: #6EE7B7;    /* on the navy */
  --ok: #047857;              /* Shipped */

  /* ── DARK SURFACES ── */
  --d-bg: #041A3D;            /* one dark navy for every dark surface */
  --d-bg-2: #0A2A57;
  --d-bg-3: #0A2A57;    /* hero stat cards, readable as a card against --d-bg */
  --d-ink: #ffffff;
  --d-muted: rgba(255,255,255,0.74);
  --d-subtle: rgba(255,255,255,0.62);   /* 5.8:1 on --d-bg, 4.8:1 on the stat cards */
  --d-rule: rgba(255,255,255,0.16);

  --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --type-xs: 0.75rem;
  --type-sm: 0.875rem;
  --type-base: 1rem;
  --type-md: 1.125rem;
  --type-lg: 1.375rem;
  --type-xl: 2rem;
  --type-2xl: clamp(2.2rem, 5vw, 4rem);
  /* Sized so "from the problem up." holds one line: it is 8.96em wide and the hero
     column stops growing at 605px past 1180px. Any larger and the line wraps, and the
     full stop, which is its own animated word, drops onto a line by itself. */
  --type-3xl: clamp(2.2rem, 5vw, 4rem);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7.5rem;

  --nav-h: 4.5rem;
  --max-w: 1180px;
  --reading-w: 680px;

  --ease: cubic-bezier(.25,.46,.45,.94);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.02;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: var(--space-xl) 0; position: relative; }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -110%);
  z-index: 1100; background: var(--accent); color: #fff;
  padding: 0.6rem 1.2rem; border-radius: 0 0 6px 6px;
  font-size: var(--type-sm); font-weight: 600;
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  color: var(--d-ink);
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
nav.scrolled, nav.menu-open {
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--rule);
  color: var(--ink);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  display: block;
}
.nav-links {
  display: flex; gap: 2rem; list-style: none;
  margin-left: auto; margin-right: 2rem;
}
.nav-links a {
  font-size: var(--type-sm); font-weight: 500;
  opacity: 0.68; position: relative; padding-bottom: 2px;
  transition: opacity 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  font-size: var(--type-sm); font-weight: 600;
  padding: 0.52rem 1.25rem;
  background: var(--accent); color: #fff;
  border-radius: 100px;
  transition: background 0.25s;
  will-change: transform;
}
.nav-cta:hover { background: var(--accent-deep); }
nav.menu-open { background: var(--surface); }
/* One group for the links and the CTA: at the right of the bar on wider screens, and
   the panel the Menu button opens on a phone (PHONE MENU). */
.nav-menu { display: flex; align-items: center; }
.nav-toggle {
  display: none; align-items: center; gap: 0.55rem;
  min-height: 2.75rem; padding: 0 0.15rem 0 0.75rem; margin-right: -0.15rem;
  font: 600 var(--type-sm)/1 var(--font-body); color: inherit;
  background: none; border: 0; border-radius: 6px; cursor: pointer;
}
.nav-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.nav-toggle path { transform-box: fill-box; transform-origin: center; transition: transform 0.25s var(--ease); }
nav.menu-open .nav-toggle .l1 { transform: translateY(3px) rotate(45deg); }
nav.menu-open .nav-toggle .l2 { transform: translateY(-3px) rotate(-45deg); }

/* ── HERO (dark, full bleed) ── */
#hero {
  background: var(--d-bg);
  color: var(--d-ink);
  padding: calc(var(--nav-h) + 5.5rem) 0 0;
  /* Not clipped: the collage shadows run past the hero's bottom edge, and clipping them
     left a hard line across the mountains below. */
  overflow-x: clip; overflow-y: visible;
}
#hero .container { position: relative; z-index: 1; }
/* A navy duotone of a layered mountain photo behind the hero and the stats band (her ask,
   2026-11-11: "an image tinted in there"). Photo by Marek Piwnicki on Unsplash, free under
   the Unsplash License. The two sections go transparent inside one navy block, so the photo
   runs behind both with no seam. The scrim keeps the text side and the strip under the nav
   dark; the mask fades the photo back to navy before the white Work section. */
/* The homepage hero runs a step darker than the other navy surfaces (2026-11-17). */
.hero-block { position: relative; background: var(--d-bg); }
.hero-block #hero, .hero-block .hero-stats { background: transparent; }
.hero-photo {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 88%, transparent 100%);
}
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4,26,61,0.88) 0%, rgba(4,26,61,0.55) 12%, rgba(4,26,61,0) 26%),
    linear-gradient(90deg, rgba(4,26,61,0.84) 0%, rgba(4,26,61,0.66) 34%, rgba(4,26,61,0.38) 60%, rgba(4,26,61,0.28) 100%);
}
@media (max-width: 1080px) {
  .hero-photo::after {
    background: linear-gradient(180deg, rgba(4,26,61,0.94) 0%, rgba(4,26,61,0.88) 14%, rgba(4,26,61,0.78) 26%, rgba(4,26,61,0.68) 36%, rgba(4,26,61,0.45) 52%, rgba(4,26,61,0.32) 72%, rgba(4,26,61,0.28) 100%);
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
/* The headline column cannot shrink (line two needs about 590px), so the collage grows
   into the empty margin on the right instead, stopping 24px short of the viewport edge. */
@media (min-width: 1081px) {
  .hero-mosaic { width: calc(100% + clamp(0px, calc(8px + (100vw - 1180px) / 2), 12rem)); }
}

#hero h1 {
  font-size: var(--type-3xl);
  letter-spacing: -0.042em;
  line-height: 1.1;
  margin-bottom: 2.25rem;
  text-wrap: balance;
}
#hero h1 em {
  font-style: normal;
  color: var(--accent-light);
  display: inline-block;
}

/* The intro steps down three times: the headline, the promise, the range.
   Each level drops a size and a shade so the eye can stop after any one. */
.hero-eyebrow {
  font-size: var(--type-xs); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.1rem;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
}
.hero-eyebrow.in { opacity: 1; transform: none; }
/* One line wherever the hero has two columns. Just above 1080px it is wider than the
   text column and runs into the empty space above the collage. The zero minimum keeps
   the long line from widening the column and pushing the collage. */
@media (min-width: 1081px) { .hero-left { min-width: 0; } .hero-eyebrow { white-space: nowrap; } }

.hero-desc {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  color: var(--d-ink);
  max-width: 34ch;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin-bottom: 0.9rem;
  text-wrap: balance;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
}
.hero-desc.in { opacity: 1; transform: none; }

.hero-body {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: var(--d-muted);
  max-width: 48ch;
  line-height: 1.6;
  margin-bottom: 2.25rem;
  text-wrap: pretty;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
}
.hero-body.in { opacity: 1; transform: none; }

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
}
.hero-actions.in { opacity: 1; transform: none; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--type-sm); font-weight: 600;
  padding: 0.85rem 1.6rem;
  color: #fff; background: var(--accent);
  border-radius: 100px;
  transition: background 0.25s;
  will-change: transform;
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-primary svg { transition: transform 0.3s var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: var(--type-sm); font-weight: 500;
  padding: 0.85rem 1.4rem;
  color: var(--d-muted);
  border: 1px solid var(--d-rule);
  border-radius: 100px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.btn-ghost:hover { color: var(--d-ink); border-color: var(--accent-light); background: rgba(92,180,255,0.14); }

/* ── HERO MOSAIC ── */
/* Three windows, one per case study. The front one plays Thryv AI creating a form in the
   Forms prototype. Each card links to its own case study. The stack leans toward the
   pointer, the cards deal in with the hero, then drift slightly at rest. */
.hero-mosaic {
  position: relative; aspect-ratio: 1 / 0.92; display: block;
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease);
}
.hero-mosaic.in { opacity: 1; transform: none; }
.mosaic-stage {
  position: absolute; inset: 0;
  transform: perspective(1300px) rotateX(calc(var(--ty, 0) * -4deg)) rotateY(calc(var(--tx, 0) * 6deg));
  transition: transform 0.7s var(--ease);
}
/* a soft indigo light that follows the pointer behind the cards */
.mosaic-stage::before {
  content: ''; position: absolute; inset: -16%; z-index: 0; pointer-events: none;
  background: radial-gradient(40% 40% at calc(50% + var(--tx, 0) * 24%) calc(50% + var(--ty, 0) * 24%),
    rgba(10,114,219,0.5), rgba(10,114,219,0) 72%);
  transition: background 0.6s var(--ease);
}
.mosaic-card {
  position: absolute; display: block;
  border-radius: 10px; overflow: hidden;
  background: var(--d-bg-2);
  border: 1px solid var(--d-rule);
  box-shadow: 0 28px 60px rgba(0,0,0,0.5);
  color: inherit; text-decoration: none;
  transform: translate(calc(var(--tx, 0) * var(--d) * 1px), calc(var(--ty, 0) * var(--d) * 1px)) var(--r);
  opacity: 0; translate: 0 34px;
  transition: transform 0.6s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease), filter 0.4s ease,
    opacity 0.7s ease var(--dl), translate 0.95s var(--ease) var(--dl);
}
.hero-mosaic.in .mosaic-card {
  opacity: 1; translate: 0 0;
  animation: mosaic-float var(--fd) ease-in-out calc(var(--dl) + 1.2s) infinite;
}
@keyframes mosaic-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 var(--f); } }
.mosaic-card img { width: 100%; height: auto; display: block; }
.mosaic-card:hover, .mosaic-card:focus-visible {
  z-index: 5;
  transform: translate(calc(var(--tx, 0) * var(--d) * 1px), calc(var(--ty, 0) * var(--d) * 1px - 10px)) rotate(0deg) scale(1.04);
  border-color: var(--accent-light);
  box-shadow: 0 40px 80px rgba(0,0,0,0.62), 0 0 0 1px rgba(92,180,255,0.5);
  animation-play-state: paused;
  outline: none;
}
.mosaic-stage:has(.mosaic-card:hover) .mosaic-card:not(:hover),
.mosaic-stage:has(.mosaic-card:focus-visible) .mosaic-card:not(:focus-visible) { filter: brightness(0.5) saturate(0.7); }
/* Same window chrome as the case cards, scaled down so it still reads at this size. */
.mosaic-chrome {
  display: block; height: 16px;
  background: var(--surface-alt-2);
  border-bottom: 1px solid rgba(4,26,61,0.10);
  position: relative;
}
.mosaic-chrome::before {
  content: ''; position: absolute; left: 7px; top: 50%;
  width: 4px; height: 4px; margin-top: -2px;
  border-radius: 50%; background: var(--rule-strong);
  box-shadow: 7px 0 0 var(--rule-strong), 14px 0 0 var(--rule-strong);
}
/* the case title, shown when a card is pointed at or focused */
.mosaic-label {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.8rem; border-radius: 100px;
  background: rgba(4,26,61,0.92); color: #fff;
  font-size: 0.75rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.45s var(--ease);
}
.mosaic-card:hover .mosaic-label, .mosaic-card:focus-visible .mosaic-label { opacity: 1; transform: none; }
/* Three cards, one per case study, each readable: Forms in front on the left (it plays the
   AI chat, so it is the largest), the Branding Center behind it at the top right, and
   Listings as a phone in front at the bottom right. They overlap only at the edges. Each moves
   less with the pointer than the one in front of it. */
.mc-1 { --r: rotate(-2.5deg); --d: 16; --dl: 0.05s; --fd: 6.5s; --f: -8px; left: 0;  top: 24%; z-index: 2; width: 60%; }
.mc-2 { --r: rotate(3deg);    --d: 9;  --dl: 0.2s;  --fd: 7.5s; --f: -6px; right: 0; top: 0;   z-index: 1; width: 58%; }
.mc-4 {
  --r: rotate(3deg); --d: 22; --dl: 0.36s; --fd: 7s; --f: -7px;
  right: 2%; bottom: 0; z-index: 3; width: 25%;
  padding: 0.8%; border: 0; border-radius: 16% / 7.4%; overflow: visible;
  background: linear-gradient(155deg, #FFFFFF 0%, var(--surface-alt-2) 50%, var(--rule) 100%);
}
.mc-screen { position: relative; display: block; overflow: hidden; border-radius: 13.4% / 6.2%; }
.mc-4 .mosaic-video { top: 0; height: 100%; object-fit: cover; }
.mc-4 .mosaic-label { left: auto; right: 8px; bottom: 8px; }
@media (max-width: 1080px) { .mc-4 { width: 23%; } }
/* the hover recording sits over the still and fades in once it is actually playing */
.mosaic-video { position: absolute; left: 0; right: 0; top: 16px; width: 100%; height: auto; opacity: 0; transition: opacity 0.25s ease; pointer-events: none; }
.mosaic-card.playing .mosaic-video { opacity: 1; }

/* ── HERO STATS ── */
/* A row of cards rather than a rule-divided row, so the numbers get room to be large.
   Four cards, so the grid divides evenly at 4, 2 and 1 columns. */
/* Dark the whole way through and continuous with the hero above it, ending on a
   clean edge against the white of Work. */
.hero-stats {
  position: relative;
  background: var(--d-bg);
  color: var(--d-ink);
  padding: 4.5rem 0 var(--space-lg);
}
.hero-stats .container { position: relative; z-index: 1; }
/* Overlap the hero by a pixel: it often ends on a fractional pixel, and the white page
   showed through the seam as a light hairline across the navy. */
.hero-stats { margin-top: -1px; }

.hero-facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease);
}
.hero-facts.in { opacity: 1; transform: none; }

.fact {
  display: flex; flex-direction: column;
  padding: 2.1rem 1.8rem 1.9rem;
  border-radius: 16px;
  background: var(--d-bg-3);
  border: 1px solid var(--d-rule);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--accent-light);
  margin-bottom: 0.7rem;
}

.stat-label {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: -0.022em; line-height: 1.25;
  color: var(--d-ink);
}
/* Reserve two lines so the supporting line starts level across the row,
   even at widths where one label wraps and the others do not. */
.fact .stat-label { min-height: 2.5em; }

.stat-sub {
  margin-top: 0.75rem;
  font-size: var(--type-sm);
  line-height: 1.5;
  color: var(--d-subtle);
  max-width: 30ch;
}

/* ── SECTION HEADERS ── */
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  padding-bottom: 1.75rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--ink);
}
.section-label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--type-xs); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.section-header h2 { font-size: var(--type-2xl); }
.section-link {
  font-size: var(--type-sm); font-weight: 600;
  color: var(--ink-muted);
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: color 0.25s, gap 0.25s;
}
.section-link:hover { color: var(--accent); gap: 0.7rem; }

/* ── DECK GRAMMAR ──
   The layout language of her interview deck, in the site's navy and blue:
   1. a screen sits in a bezel on a band of raised ground and overhangs the band's top edge
   2. the text that explains a screen sits beside it as ring callouts, not under it
   3. figures sit in stat cards, and in any row exactly one is promoted
   4. lists sit in panels or icon rows that read like a product surface
   5. titles are two tone, with the operative phrase in the accent */
.hl { color: var(--accent); }
#contact .hl { color: var(--accent-light); }
svg.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

/* children of a revealed block arrive one after another */
.fade-up .iconrow, .fade-up .statcard, .fade-up .callout, .fade-up .panel {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-up.visible .iconrow, .fade-up.visible .statcard, .fade-up.visible .callout, .fade-up.visible .panel {
  opacity: 1; transform: none;
}

/* ── WORK ── */
#work { padding-top: var(--space-lg); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
.case-card {
  display: flex; flex-direction: column;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 1.6rem 1.6rem 1.75rem;
  transition: border-color 0.35s var(--ease), transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.case-card::after {
  content: ''; position: absolute; left: 18px; right: 18px; top: -1px; height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.case-card:hover {
  border-color: var(--rule-strong);
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(4,26,61,0.12);
}
.case-card:hover::after { transform: scaleX(1); }
.case-card.featured { grid-column: 1 / -1; padding: 2.25rem 2.25rem 2.4rem; }

/* The band: raised ground that starts below the top of the screen, so the screen
   overhangs its edge instead of floating on the card. */
.band {
  position: relative; isolation: isolate;
  padding: 0 clamp(1rem, 2.4vw, 1.6rem) clamp(1rem, 2.4vw, 1.5rem);
  margin-bottom: 1.6rem;
}
.band::before {
  content: ''; position: absolute; z-index: -1;
  left: 0; right: 0; top: 2.6rem; bottom: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--accent-wash) 0%, var(--surface-alt) 100%);
  box-shadow: inset 0 0 0 1px rgba(4,26,61,0.05);
}
.case-card.featured .band { margin: 1.75rem 0 0; padding-bottom: 2rem; }

/* the bezel: drawn window chrome, so every screen gets the same one */
.case-shot {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(4,26,61,0.12), 0 22px 46px rgba(4,26,61,0.20);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.case-chrome {
  flex: none; height: 24px;
  background: var(--surface-alt-2);
  border-bottom: 1px solid rgba(4,26,61,0.10);
  position: relative;
}
.case-chrome::before {
  content: ''; position: absolute; left: 11px; top: 50%;
  width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: var(--rule-strong);
  box-shadow: 12px 0 0 var(--rule-strong), 24px 0 0 var(--rule-strong);
}
.case-cover { display: block; width: 100%; height: auto; object-fit: cover; object-position: top center; }
.case-card:not(.featured) .case-cover { aspect-ratio: 16 / 9.4; }
.case-card.featured video.case-cover { aspect-ratio: 680 / 590; }
.case-card:hover .case-shot {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px rgba(4,26,61,0.14), 0 32px 60px rgba(4,26,61,0.26);
}

/* featured: callouts on the left, the screen in the middle, the numbers on the right */
.case-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.25rem 2.5rem; flex-wrap: wrap;
}
.case-head .case-meta { margin-bottom: 0.9rem; }
.case-head h3 { margin-bottom: 0; }
.case-head .case-arrow { margin-top: 0; }
.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.35fr) minmax(0, 0.6fr);
  gap: 1.5rem clamp(1.25rem, 2.6vw, 2.25rem);
  align-items: center;
}
.showcase-grid > .stage { min-width: 0; }
.callouts { display: grid; gap: 1.25rem; padding-top: 3.4rem; }
.callout { text-align: center; max-width: 16.5rem; margin-inline: auto; }
.callout .ring {
  width: 3rem; aspect-ratio: 1; border-radius: 50%;
  margin: 0 auto 0.6rem;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1.5px solid rgba(10,114,219,0.45);
  color: var(--accent);
  transition: transform 0.45s var(--ease), background 0.3s;
}
.callout .ring .icon { width: 42%; height: 42%; }
.case-card:hover .callout .ring { transform: scale(1.06); }
.callout h4 {
  font-family: var(--font-body);
  font-size: var(--type-xs); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.callout p { font-size: 0.84rem; color: var(--ink-muted); line-height: 1.55; text-wrap: pretty; }

/* stat cards: figure, icon, label, and a bar only where the figure is a share */
.statcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin-top: auto; }
.statcards.stack { grid-template-columns: 1fr; gap: 0.85rem; padding-top: 2.6rem; margin-top: 0; }
.statcard {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 0.95rem 1rem 1rem;
  box-shadow: 0 8px 22px rgba(4,26,61,0.06);
}
.statcard .sc-icon { position: absolute; top: 0.85rem; right: 0.9rem; width: 1.05rem; height: 1.05rem; color: var(--ink-faint); }
.statcard .sc-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(1.2rem, 1.55vw, 1.45rem);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  padding-right: 1.5rem;
}
.case-card.featured .statcard .sc-value { font-size: clamp(1.7rem, 2.5vw, 2.2rem); }
.statcard .sc-label { display: block; margin-top: 0.45rem; font-size: 0.74rem; color: var(--ink-subtle); line-height: 1.45; }
.statcard .sc-bar { display: block; margin-top: 0.75rem; height: 0.28rem; border-radius: 999px; background: var(--rule); overflow: hidden; }
.statcard .sc-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--accent); transition: width 1.2s var(--ease) 0.35s; }
.fade-up.visible .statcard .sc-bar i { width: var(--v); }
.statcard.hi {
  background: var(--accent-wash);
  border-color: rgba(10,114,219,0.42);
  box-shadow: inset 0 0 0 1px rgba(10,114,219,0.22), 0 14px 32px rgba(10,114,219,0.14);
}
.statcard.hi .sc-value, .statcard.hi .sc-icon { color: var(--accent); }
.statcard.hi .sc-label { color: var(--ink); }

/* The company pill, then the project line on its own row, the same on every card. */
.case-meta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem;
  margin-bottom: 1rem;
}
.case-tag {
  font-size: var(--type-xs); font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-wash);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
}
.case-year {
  font-size: var(--type-xs); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-subtle);
}
.case-card h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.35rem);
  margin-bottom: 0.8rem;
  line-height: 1.05;
}
.case-card:not(.featured) h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.case-desc {
  font-size: var(--type-sm);
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 1.4rem;
}
.case-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--type-sm); font-weight: 600;
  color: var(--accent);
  margin-top: 1.4rem;
  transition: gap 0.3s var(--ease);
}
.case-card:hover .case-arrow { gap: 0.85rem; }

/* ── ICON ROWS ──
   An outlined tile spine down the left edge, and row fills stepped through a tonal
   ramp, so the rows read as one object rather than separate cards. */
.iconrows { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 36px rgba(4,26,61,0.07); }
.iconrow { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); }
/* Experience rows have no icon column (her call, 2026-11-11). */
.iconrows.cv .iconrow { grid-template-columns: minmax(0, 1fr); }
.ir-icon { display: grid; place-items: center; background: var(--surface-alt-2); color: var(--accent); }
.ir-icon::before {
  content: ''; grid-area: 1 / 1;
  width: 2.4rem; height: 2.4rem; border-radius: 8px;
  border: 1px solid rgba(10,114,219,0.40);
  background: rgba(255,255,255,0.5);
  transition: transform 0.4s var(--ease), background 0.3s;
}
.ir-icon .icon { grid-area: 1 / 1; width: 1.15rem; height: 1.15rem; position: relative; }
.ir-body { padding: 1.6rem 1.9rem; background: var(--surface-alt); transition: background 0.3s; }
.iconrow + .iconrow .ir-body { box-shadow: inset 0 1px 0 rgba(255,255,255,0.7); }
.iconrow:nth-child(2) .ir-body { background: var(--surface-alt); }
.iconrow:nth-child(3) .ir-body { background: var(--surface-alt); }
.iconrow:nth-child(4) .ir-body { background: var(--surface-alt); }
.iconrow:hover .ir-icon::before { transform: scale(1.08); background: #fff; }
.iconrow:hover .ir-body { background: var(--accent-wash); }

/* ── EXPERIENCE ── */
.cv-body { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 1.75rem; }
.cv-when {
  font-size: var(--type-xs); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.45rem;
}
.cv-what h3 {
  font-size: var(--type-lg);
  font-weight: 700;
  margin-bottom: 0.45rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem;
}
.cv-org {
  font-family: var(--font-body);
  font-size: var(--type-xs); font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-subtle);
}
.cv-note { font-size: var(--type-sm); color: var(--ink-muted); line-height: 1.65; max-width: 62ch; }

/* panels: a small label, a ··· affordance, and the content, like a product surface */
.panel {
  background: var(--surface-alt);
  border-radius: 16px;
  padding: 1.2rem 1.6rem 1.35rem;
  box-shadow: 0 0 0 1px rgba(4,26,61,0.05), 0 14px 36px rgba(4,26,61,0.07);
}
.panel-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-bottom: 0.8rem; margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule-strong);
}
.panel-head h4 {
  font-family: var(--font-body);
  font-size: var(--type-xs); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-subtle);
}
.cv-extra {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem; margin-top: 2.5rem;
}
.cv-col p { margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.cv-col p:last-child { margin-bottom: 0; }
.cv-col p strong { font-size: var(--type-sm); font-weight: 600; color: var(--ink); }
.cv-col p span { font-size: var(--type-xs); color: var(--ink-subtle); }

/* ── APPROACH ── */
#approach { background: var(--surface-alt); }
.approach-rows .ir-body { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 2rem; align-items: baseline; background: #FFFFFF; }
.approach-rows .iconrow:nth-child(2) .ir-body { background: #FAFCFE; }
.approach-rows .iconrow:nth-child(3) .ir-body { background: #F5F9FD; }
.approach-rows .iconrow:nth-child(4) .ir-body { background: #EFF5FB; }
.approach-rows .iconrow:hover .ir-body { background: var(--accent-wash); }
.approach-rows h3 { font-size: var(--type-md); line-height: 1.2; }
.approach-desc { font-size: var(--type-sm); color: var(--ink-muted); line-height: 1.65; }

/* ── ABOUT ── */
/* Her photo sits beside her name in the section header, so the layout below is unchanged. */
.about-id { display: flex; align-items: center; gap: 1.5rem; }
.about-photo {
  flex: none; width: 112px; height: 112px;
  object-fit: cover; border-radius: 16px;
  background: var(--surface-alt);
  box-shadow: 0 0 0 1px rgba(4,26,61,0.08), 0 14px 32px rgba(4,26,61,0.12);
}
.about-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 4.5rem;
}
.about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: 2rem;
  text-wrap: balance;
}
.about-body p {
  font-size: var(--type-sm);
  color: var(--ink-muted);
  line-height: 1.8;
  max-width: var(--reading-w);
}
.about-body p + p { margin-top: 1.25rem; }
.about-body p { text-wrap: pretty; }

.skills-panel { padding-bottom: 0.6rem; }
.skills-panel .panel-head { margin-bottom: 0; }
.skill-row {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 0.7rem;
}
.skill-name {
  font-size: var(--type-sm); font-weight: 600;
  letter-spacing: -0.01em;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-tag {
  font-size: var(--type-xs);
  color: var(--ink-muted);
  border: 1px solid var(--rule);
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.skill-row:last-child { border-bottom: 0; }
.skill-tag { background: var(--surface); }
.skill-row:hover .skill-tag { border-color: var(--accent); color: var(--accent); background: var(--accent-wash); }

/* ── CONTACT (dark, full bleed) ── */
#contact {
  background: var(--d-bg);
  color: var(--d-ink);
  overflow: hidden;
  text-align: center;
}
#contact .container { position: relative; z-index: 1; }
#contact .section-label { justify-content: center; color: var(--accent-light); }
#contact h2 {
  font-size: clamp(2.2rem, 5.6vw, 4.4rem);
  line-height: 1.02;
  text-wrap: balance;
}
.contact-sub {
  font-size: var(--type-md);
  color: var(--d-muted);
  max-width: 48ch;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  text-wrap: balance;
}
.contact-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
}
.btn-light {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--type-sm); font-weight: 600;
  padding: 0.9rem 1.7rem;
  background: var(--accent); color: #fff;
  border-radius: 100px;
  transition: background 0.25s;
  will-change: transform;
}
.btn-light:hover { background: var(--accent-deep); }
.btn-outline-light {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--type-sm); font-weight: 500;
  padding: 0.9rem 1.5rem;
  color: var(--d-muted);
  border: 1px solid var(--d-rule);
  border-radius: 100px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.btn-outline-light:hover { color: var(--d-ink); border-color: var(--accent-light); background: rgba(92,180,255,0.14); }

/* ── FOOTER ── */
footer {
  background: var(--d-bg);
  color: var(--d-subtle);
  border-top: 1px solid var(--d-rule);
  /* the right side stays clear of the back to top button, which floats over this corner */
  padding: 2.25rem calc(1.5rem + 46px + 1rem) 2.25rem 2rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  font-size: var(--type-xs);
}
.footer-name { letter-spacing: 0.02em; }
/* the menu's items in the menu's order, Email for Let's talk (her ask: "footer menu match?") */
.footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; list-style: none; }
.footer-links a { transition: color 0.25s; }
.footer-links a:hover { color: var(--accent-light); }

/* ── BACK TO TOP ── */
.to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem;
  width: 46px; height: 46px; border-radius: 50%;
  border: none; background: var(--accent); color: #fff;
  font-size: 1.1rem; cursor: pointer;
  box-shadow: 0 10px 28px rgba(10,114,219,0.4);
  z-index: 90; display: grid; place-items: center;
  transition: background 0.25s, transform 0.25s var(--ease);
}
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--accent-deep); transform: translateY(-3px); }

/* ── REVEAL ── */
.fade-up {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s var(--ease);
}
.fade-up.visible { opacity: 1; transform: none; }
/* The clip is what hides each word below its line before it slides up, but at the
   hero's 0.95 line height it also cut the descenders off g, y and the comma. The padding
   makes room for them and the negative margin gives it back, so the line box is unchanged. */
.word-reveal { display: inline-block; overflow: hidden; vertical-align: bottom;
  padding-bottom: 0.15em; margin-bottom: -0.15em; }
.word-reveal span { display: inline-block; transform: translateY(105%); opacity: 0; }

/* ── FOCUS ── */
a:focus-visible, button:focus-visible, .case-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
#hero a:focus-visible, .page-hero a:focus-visible, #contact a:focus-visible, footer a:focus-visible, nav:not(.scrolled):not(.menu-open) a:focus-visible,
nav:not(.scrolled):not(.menu-open) .nav-toggle:focus-visible {
  outline-color: var(--accent-light);
}

/* ── MORE CASE STUDIES ──
   Allego and Widget Cloud under the three big cards (2026-11-13 review: they had no card on the
   homepage, and they are the most mobile work). A phone screen in the same bezel as the big
   cards' phones, then the pill, the project line, the title, one line and the link. Two across,
   one per row from 860px. */
.more-cases { margin-top: 2.25rem; }
.more-label {
  font-size: var(--type-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-subtle); margin-bottom: 0.9rem;
}
.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.mini-case {
  position: relative;
  display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); column-gap: 1.35rem; align-items: center;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 18px;
  padding: 1.15rem 1.35rem 1.15rem 1.15rem;
  color: inherit; text-decoration: none;
  transition: border-color 0.35s var(--ease), transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.mini-case:hover { border-color: var(--rule-strong); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(4,26,61,0.10); }
.mini-phone {
  display: block; padding: 3px; line-height: 0;
  border-radius: 16% / 7.4%;
  background: linear-gradient(155deg, #FFFFFF 0%, var(--surface-alt-2) 50%, var(--rule) 100%);
  box-shadow: inset 0 0 0 1px rgba(4,26,61,0.14), 0 0 0 1px rgba(4,26,61,0.08), 0 10px 22px rgba(4,26,61,0.14);
  transition: transform 0.55s var(--ease);
}
.mini-phone img {
  display: block; width: 100%; height: auto; aspect-ratio: 360 / 779; object-fit: cover;
  border-radius: 13.4% / 6.2%; background: var(--surface-alt); box-shadow: 0 0 0 1px rgba(4,26,61,0.18);
}
.mini-case:hover .mini-phone { transform: translateY(-6px) rotate(-2deg); }
.mini-body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.mini-case .case-meta { gap: 0.45rem; margin-bottom: 0.7rem; }
.mini-case h3 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.2; margin-bottom: 0.4rem; text-wrap: balance; }
.mini-desc { font-size: var(--type-sm); line-height: 1.55; color: var(--ink-muted); text-wrap: pretty; }
.mini-case .case-arrow { margin-top: 0.75rem; }
.mini-case:hover .case-arrow { gap: 0.85rem; }
@media (max-width: 860px) {
  .more-grid { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
}
@media (max-width: 620px) {
  .more-cases { margin-top: 1.75rem; }
  .mini-case { grid-template-columns: 4.5rem minmax(0, 1fr); column-gap: 1rem; align-items: start; padding: 1rem 1rem 1.05rem 0.9rem; }
  .mini-case .case-meta { margin-bottom: 0.55rem; }
  .mini-case .case-arrow { margin-top: 0.55rem; }
}

/* ── PHONE BESIDE THE SCREEN ──
   On cards with a phone design, a phone overlaps the corner of the desktop screen, so
   web and mobile both show before anyone opens a case study. */
.stage { position: relative; }
.case-phone {
  position: absolute; z-index: 2; right: -3%; bottom: -7%;
  width: 23%; padding: clamp(3px, 0.4vw, 5px);
  border-radius: 16% / 7.4%;
  background: linear-gradient(155deg, #FFFFFF 0%, var(--surface-alt-2) 50%, var(--rule) 100%); line-height: 0;
  box-shadow: inset 0 0 0 1px rgba(4,26,61,0.14), 0 0 0 1px rgba(4,26,61,0.08), 0 14px 30px rgba(4,26,61,0.16);
  transition: transform 0.55s var(--ease);
}
.case-phone img {
  display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover;
  border-radius: 13.4% / 6.2%; background: var(--surface-alt);
  box-shadow: 0 0 0 1px rgba(4,26,61,0.18);
}
.case-card:hover .case-phone { transform: translateY(-10px); }
.case-card.featured .case-phone { width: 24%; right: -7%; bottom: -6%; }

/* ── RANGE ──
   One grid of eight short tiles (her ask: the section made the page too long), shortened again on 2026-11-13
   ("Shorten this even more"): the icon sits to the left of the title and its line instead of above
   them, as it already did on phones, the padding and gaps are tighter, and the title is the
   smaller one the Experience and About band uses. The two with case studies link to them. Four across,
   two across under 1000px, one column below 540px. */
#range { background: var(--surface-alt); padding: 3.25rem 0; }
#range .section-header { margin-bottom: 1.6rem; padding-bottom: 1.25rem; }
#range .section-header h2 { font-size: clamp(1.75rem, 3.3vw, 2.6rem); }
.range-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; }
.range-tile {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr); grid-template-rows: auto 1fr;
  align-content: start; column-gap: 0.75rem;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 14px;
  padding: 0.85rem 0.95rem 0.95rem;
  box-shadow: 0 8px 22px rgba(4,26,61,0.05);
  color: inherit; text-decoration: none;
}
a.range-tile { grid-template-rows: auto auto 1fr; }
.rt-icon {
  grid-row: 1 / -1; align-self: start;
  display: grid; place-items: center; width: 2rem; height: 2rem; flex: none;
  border-radius: 7px; border: 1px solid rgba(10,114,219,0.40);
  background: var(--accent-wash); color: var(--accent);
}
.rt-icon .icon { width: 0.95rem; height: 0.95rem; }
.range-tile h3 {
  grid-column: 2; margin-top: 0.1rem; margin-bottom: 0.3rem;
  font-family: var(--font-body); font-size: var(--type-xs); font-weight: 700; line-height: 1.25;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}
.range-tile p { grid-column: 2; align-self: start; font-size: 0.86rem; line-height: 1.5; color: var(--ink-muted); }
.rt-link {
  grid-column: 2; align-self: end; justify-self: start; padding-top: 0.5rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: var(--type-xs); font-weight: 600; color: var(--accent);
  transition: gap 0.3s var(--ease);
}
a.range-tile { transition: border-color 0.3s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
a.range-tile:hover { border-color: var(--rule-strong); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(4,26,61,0.10); }
a.range-tile:hover .rt-link { gap: 0.7rem; }
.range-tile.hi { background: var(--accent-wash); border-color: rgba(10,114,219,0.42); box-shadow: inset 0 0 0 1px rgba(10,114,219,0.18), 0 12px 28px rgba(10,114,219,0.12); }
.range-tile.hi .rt-icon { background: var(--surface); }
/* four across only where each line still gets about 22 characters beside its icon */
@media (max-width: 999px) { .range-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .range-tiles { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; } }
@media (max-width: 620px) {
  .case-card .case-phone, .case-card.featured .case-phone { width: 26%; right: -2%; bottom: -5%; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1080px) {
  :root { --space-xl: 5.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-mosaic { max-width: 680px; aspect-ratio: 1 / 0.86; }
  /* Four columns would leave about 200px a card, which the numbers overrun. */
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  /* The screen takes the full row, with the callouts and numbers side by side under it. */
  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .showcase-grid > .stage { grid-column: 1 / -1; order: -1; max-width: 560px; width: 100%; margin-inline: auto; }
  .callouts, .statcards.stack { padding-top: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
  /* The links shrink to share one line with the CTA. Below 700px they move into
     the Menu panel (PHONE MENU). */
  .nav-links { gap: 1.1rem; margin-right: 1.25rem; }
  .nav-links a { font-size: 0.8rem; }
  .nav-logo { font-size: 1.2rem; }
  .stat-sub { max-width: none; }
}
@media (max-width: 860px) {
  :root { --space-xl: 4.5rem; }
  .cv-body, .approach-rows .ir-body { grid-template-columns: 1fr; gap: 0.5rem; }
  .cv-when { padding-top: 0; }
  .cv-extra { grid-template-columns: 1fr; gap: 1.25rem; }
}
/* ── PHONE MENU ──
   Below 700px the five links and the CTA no longer fit beside the name, so they move
   into a panel under the bar that the Menu button opens. Each row is a 48px tap
   target, and "Let's talk" comes back as a full width button at the bottom. */
@media (max-width: 700px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    padding: 0.25rem 2rem 1.5rem;
    background: var(--surface); color: var(--ink);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 28px 40px -24px rgba(7, 50, 106, 0.3);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
  }
  nav.menu-open .nav-menu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-links { flex-direction: column; gap: 0; margin: 0; }
  .nav-links li + li { border-top: 1px solid var(--rule); }
  .nav-links a { display: flex; align-items: center; min-height: 3rem; padding: 0; font-size: var(--type-md); opacity: 1; }
  .nav-links a::after { display: none; }
  .nav-cta { margin-top: 1rem; padding: 0.9rem 1.25rem; text-align: center; font-size: var(--type-base); }
}
@media (max-width: 620px) {
  .about-id { gap: 1.1rem; }
  .about-photo { width: 84px; height: 84px; border-radius: 12px; }
  .container { padding: 0 1.25rem; }
  nav { padding: 0 1rem; }
  .nav-menu { padding-left: 1rem; padding-right: 1rem; }
  #hero { padding-top: calc(var(--nav-h) + 3rem); }
  /* Two up, so the four numbers take about one screen on a phone instead of four. */
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .fact { padding: 1.3rem 1.1rem 1.25rem; border-radius: 14px; }
  .stat-num { font-size: 2.3rem; margin-bottom: 0.55rem; }
  .stat-label { font-size: 0.95rem; }
  .stat-sub { font-size: 0.8rem; margin-top: 0.5rem; }
  .section-header { margin-bottom: 2.5rem; }
  .case-card, .case-card.featured { padding: 1.25rem 1.15rem 1.4rem; }
  .showcase-grid { grid-template-columns: 1fr; }
  .statcards { grid-template-columns: 1fr; }
  .iconrow { grid-template-columns: 3.4rem minmax(0, 1fr); }
  .ir-icon::before { width: 2rem; height: 2rem; }
  .ir-body { padding: 1.2rem 1.15rem; }
  .panel { padding: 1.1rem 1.15rem 1.2rem; }
  /* The chrome is sized for a desktop card. At phone width it would eat the
     screenshot, so it shrinks and the window keeps the room. */
  .case-chrome { height: 17px; }
  .case-chrome::before {
    left: 8px; width: 5px; height: 5px; margin-top: -2.5px;
    box-shadow: 9px 0 0 var(--rule-strong), 18px 0 0 var(--rule-strong);
  }
  footer { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 0.6rem 1.25rem; }
}
@media (hover: none) {
}

/* ── PAGE HEADER ──
   Experience, Approach and About each open on a navy band, so the bar behaves as it does on
   the homepage: white over navy at the top, solid the moment anything scrolls. */
.page-hero {
  position: relative; isolation: isolate;
  background: var(--d-bg); color: var(--d-ink);
  padding: calc(var(--nav-h) + 4.5rem) 0 4.25rem;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .section-label { color: var(--accent-light); }
.page-hero h1 { font-size: var(--type-2xl); letter-spacing: -0.042em; line-height: 1.05; text-wrap: balance; }
.page-hero h1 .hl { color: var(--accent-light); }
.page-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.page-hero .about-photo { box-shadow: 0 0 0 1px rgba(255,255,255,0.16), 0 14px 32px rgba(0,0,0,0.22); }
.page-body { padding-top: var(--space-lg); }
/* the page you are on stays underlined in the bar */
.nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 620px) {
  .page-hero { padding: calc(var(--nav-h) + 2.75rem) 0 2.75rem; }
  .page-body { padding-top: 2.75rem; }
}

/* ── EXPERIENCE AND ABOUT, IN SHORT ──
   Right after How I work, a short version of each page with an arrow link to the whole thing
   (her ask, 2026-11-13: "After my approach, add a mini section for experience and a mini
   section about"). Every line is copied from experience.html and about.html. Side by side on
   wide screens, where the two columns share rows (subgrid), so the header rules and the links
   line up; one after the other at 860px and below. White, between the tinted How I work and
   Range, so the sections keep alternating. */
#profile { padding: var(--space-lg) 0; }
.minis {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr auto;
  column-gap: clamp(2.5rem, 5vw, 4.5rem);
}
.mini { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
.mini .section-header { margin-bottom: 1.6rem; padding-bottom: 1.25rem; }
.mini .section-header h2 { font-size: clamp(1.75rem, 3.3vw, 2.6rem); }
.mini-roles { list-style: none; align-self: start; }
.mini-roles li {
  display: grid; grid-template-columns: 7.25rem minmax(0, 1fr); column-gap: 1.25rem; align-items: baseline;
  padding: 0.9rem 0;
}
.mini-roles li:first-child { padding-top: 0.1rem; }
.mini-roles li + li { border-top: 1px solid var(--rule); }
.mr-when {
  font-size: var(--type-xs); font-weight: 600; white-space: nowrap;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
}
.mr-what strong {
  display: block; font-family: var(--font-display); font-size: var(--type-md); font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.3; color: var(--ink);
}
.mr-what > span { display: block; margin-top: 0.15rem; font-size: var(--type-sm); color: var(--ink-muted); }
.mini-me {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; align-self: start;
  gap: 1.25rem 1.4rem;
}
.mini-me .about-photo { width: 96px; height: 96px; border-radius: 14px; }
.mini-lead {
  font-family: var(--font-display); font-size: var(--type-lg); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.22; color: var(--ink); text-wrap: balance;
}
.mini-text {
  grid-column: 1 / -1; font-size: var(--type-sm); color: var(--ink-muted);
  line-height: 1.75; max-width: 62ch; text-wrap: pretty;
}
.mini-link {
  justify-self: start; display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.6rem; padding: 0.4rem 0;
  font-size: var(--type-sm); font-weight: 600; color: var(--accent);
}
.mini-link svg { transition: transform 0.3s var(--ease); }
.mini-link:hover { color: var(--accent-deep); }
.mini-link:hover svg { transform: translateX(4px); }
@media (max-width: 860px) {
  .minis { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 3.25rem; }
  .mini { grid-row: auto; grid-template-rows: none; }
}
@media (max-width: 620px) {
  .mini-me .about-photo { width: 80px; height: 80px; border-radius: 12px; }
  .mini-me { column-gap: 1.1rem; }
  .mini-lead { font-size: 1.2rem; }
}
/* the narrowest phones put the dates above the company, as Experience does below 860px */
@media (max-width: 400px) {
  .mini-roles li { grid-template-columns: minmax(0, 1fr); row-gap: 0.3rem; }
}

/* ── WHY ME ──
   Right after Work, then Let's talk (her asks, 2026-11-13: "Merge My aproach into why me and put
   below the work", "3 section on the home. Hero, work, why me", "make why me very visual
   attractive with icons and less text", "On the Why me also add Ai", "Better illustrated icons",
   "Also market myself can do exsisting product and 0 to 1", "Title too big", "Too much tile, Can
   you mix a couple and shrink it down a bit"). Six tiles, each a two tone illustration
   (hm-review/ill40.py draws them), the claim, one proof line led by a figure in the accent, and a
   link to its proof; then the industries as one slim strip. Every figure and name is on the site.
   On the tint, between the white Work and the navy Let's talk. */
#why { background: var(--surface-alt); padding: var(--space-lg) 0; }
#why .section-header { margin-bottom: 1.5rem; padding-bottom: 1.2rem; }
#why .section-header h2 { font-size: clamp(1.75rem, 3.3vw, 2.6rem); }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.why-card, .why-strip {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: 0 8px 22px rgba(4,26,61,0.05);
  color: inherit; text-decoration: none;
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.why-card {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 0.9rem;
  padding: 1rem 1.1rem 0.95rem;
}
a.why-card:hover, a.why-strip:hover { border-color: var(--rule-strong); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(4,26,61,0.10); }
/* the illustration: two tone spot art on a soft tile */
.why-ill {
  grid-row: 1 / -1; align-self: start;
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 13px; flex: none;
  background: linear-gradient(160deg, #F7FAFE 0%, #E4EEFA 100%);
  box-shadow: inset 0 0 0 1px rgba(10,114,219,0.14);
  transition: transform 0.4s var(--ease);
}
.why-art { width: 2.3rem; height: 2.3rem; }
a.why-card:hover .why-ill, a.why-strip:hover .why-ill { transform: rotate(-4deg) scale(1.06); }
/* the claim at 1rem (her ask: "Title too big") */
.why-card h3, .why-strip h3 { font-size: 1rem; line-height: 1.28; letter-spacing: -0.015em; text-wrap: balance; }
.why-card h3 { margin: 0.2rem 0 0.35rem; }
.why-proof { font-size: var(--type-sm); line-height: 1.4; color: var(--ink-muted); }
.why-proof b { font-family: var(--font-display); font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); }
.why-link {
  align-self: end; justify-self: start; display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.6rem;
  font-size: var(--type-xs); font-weight: 600; color: var(--accent); white-space: nowrap; transition: gap 0.3s var(--ease);
}
a.why-card:hover .why-link, a.why-strip:hover .why-link { gap: 0.7rem; }
/* the AI tile links each product to its case study (her ask: "Thryv AI I will link to the buisiness listing") */
.why-links { align-self: end; display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; margin-top: 0.6rem; }
.why-links a {
  position: relative; display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap;
  font-size: var(--type-xs); font-weight: 600; color: var(--accent); transition: gap 0.3s var(--ease);
}
.why-links a::after { content: ''; position: absolute; inset: -13px -6px; }
.why-links a:hover { gap: 0.7rem; }
/* the industries: one slim strip across the bottom, the claim, the tags, the case study */
.why-strip {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem 1rem;
  margin-top: 0.75rem; padding: 0.75rem 1.1rem;
}
.why-strip .why-link { margin: 0 0 0 auto; }
.why-tags { display: flex; flex-wrap: wrap; gap: 0.28rem; }
/* in the strip the tags take whatever room is left and wrap inside it, so the link keeps its line */
.why-strip .why-tags { flex: 1 1 0; min-width: 0; }
.why-tags span {
  font-size: 0.75rem; font-weight: 600; line-height: 1.25; color: var(--ink-muted);
  background: var(--surface-alt); border: 1px solid var(--rule); border-radius: 100px; padding: 0.16rem 0.46rem;
}
/* three across is cramped below 1100px, so two across there, and one on phones */
@media (max-width: 1100px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* the strip: the link up on the claim's line, the tags on their own line under them */
  .why-strip .why-link { order: 3; }
  .why-strip .why-tags { order: 4; flex-basis: 100%; }
}
@media (max-width: 620px) {
  .why-grid { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .why-card { grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: 0.85rem; padding: 0.95rem; }
  .why-ill { width: 2.75rem; height: 2.75rem; border-radius: 12px; }
  .why-art { width: 2.1rem; height: 2.1rem; }
  .why-strip { margin-top: 0.6rem; padding: 0.9rem 0.95rem; }
  .why-strip .why-tags { order: 3; }
  .why-strip .why-link { order: 4; margin: 0; }
}

/* ── REVIEW FIXES (2026-11-13, hiring manager review) ──
   Her title is the first thing a reviewer screens, so it reads in white in the intro label. */
.hero-eyebrow .hero-title { color: var(--d-ink); }
/* The collage stacked under the intro at 1080px and below, about 640px with half of it empty, so
   it steps aside there as it does on phones; the four numbers stay in one row from 900px. */
@media (max-width: 1080px) { .hero-mosaic { display: none; } }
@media (min-width: 621px) and (max-width: 1080px) {
  #hero { padding-top: calc(var(--nav-h) + 3.5rem); }
  .hero-stats { padding-top: 3rem; }
}
@media (min-width: 900px) and (max-width: 1080px) {
  .hero-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
  .fact { padding: 1.6rem 1.25rem 1.5rem; }
}
/* short laptop screens: less air above the intro and the numbers, so the numbers start sooner */
@media (min-width: 1081px) and (max-height: 820px) {
  #hero { padding-top: calc(var(--nav-h) + 2.5rem); }
  #hero h1 { margin-bottom: 1.5rem; }
  .hero-stats { padding-top: 2rem; }
}
/* footer links take a 44px tap; the back to top button is smaller on phones so it covers less */
.footer-links a { position: relative; }
.footer-links a::after { content: ''; position: absolute; inset: -15px -6px; }
@media (max-width: 620px) {
  .to-top { width: 40px; height: 40px; right: 0.75rem; bottom: 0.75rem; font-size: 1rem; }
}
/* Experience: one claim per line, then the case studies that show it */
.cv-points { list-style: none; display: grid; gap: 0.4rem; max-width: 64ch; }
.cv-points li { position: relative; padding-left: 1.05rem; font-size: var(--type-sm); line-height: 1.6; color: var(--ink-muted); }
.cv-points li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.cv-cases { margin-top: 0.7rem; font-size: var(--type-xs); font-weight: 600; letter-spacing: 0.02em; color: var(--ink-subtle); }
.cv-cases a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cv-cases a:hover { text-decoration-thickness: 2px; }
/* About: links inside the story read as links */
.about-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.about-body a:hover { text-decoration-thickness: 2px; }

/* ── FASTER TO SCAN ──
   The sentence about what she did reads in dark ink after the muted context, on the case cards and
   at the start of each About paragraph. */
.case-desc strong, .about-body p strong { color: var(--ink); font-weight: 600; }
/* no text under 12px */
.statcard .sc-label { font-size: 0.78rem; }
/* every link takes a 44px tall tap: the logo grows, the small text links get invisible padding */
.nav-logo { display: inline-flex; align-items: center; min-height: 44px; }
.section-link { position: relative; }
.section-link::after { content: ''; position: absolute; inset: -11px -8px; }
.mini-link { min-height: 44px; padding: 0; margin-top: 1.3rem; }

/* ── PHONES ──
   (her ask, 2026-11-13: "Improve mobile design on the portfolio"). At 620px and below the intro
   collage steps aside: its screens are too small to read on a phone, and the same screens show
   larger in the case cards just below. The intro buttons line up, the featured card's callouts
   become rows with the icon beside them, every row of numbers becomes one line each (the figure,
   then what it means), and How I work gives its text the full width with the icon by the title. */
@media (max-width: 620px) {
  .hero-mosaic { display: none; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .hero-actions .btn-primary { grid-column: 1 / -1; }
  .hero-actions a { justify-content: center; }
  .callouts { gap: 0.85rem; padding-top: 0; }
  .callout { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 0.85rem; text-align: left; max-width: none; margin: 0; }
  .callout .ring { grid-row: 1 / span 2; width: 2.6rem; margin: 0; }
  .callout h4 { margin: 0.2rem 0 0.25rem; }
  .statcards, .statcards.stack { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; padding-top: 0; }
  .statcard { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); align-items: center; column-gap: 0.85rem; padding: 0.8rem 0.95rem; }
  .statcard .sc-value, .case-card.featured .statcard .sc-value { font-size: 1.5rem; padding-right: 0; }
  .statcard .sc-label { margin-top: 0; }
  .statcard .sc-icon { display: none; }
  .statcard .sc-bar { grid-column: 1 / -1; margin-top: 0.6rem; }
  .approach-rows .iconrow { position: relative; grid-template-columns: minmax(0, 1fr); }
  .approach-rows .ir-icon { position: absolute; top: 1.2rem; left: 1.15rem; z-index: 1; width: 2.2rem; height: 2.2rem; background: none; }
  .approach-rows .ir-icon::before { width: 2.2rem; height: 2.2rem; }
  .approach-rows h3 { min-height: 2.2rem; display: flex; align-items: center; padding-left: 3rem; }
}

/* ── MOTION ──
   How things arrive (her ask, 2026-11-13: "Add some more UI motion on the website like how
   things show up"). Titles rise out of a mask a line or a word at a time, labels slide in ahead
   of them and the header rule draws across, screens settle into their frames with the phone
   landing a beat later, numbers count up, and rows, tiles and tags arrive one after another.
   Only transform and opacity move. Every hidden state here waits on html.motion, which the head
   script sets unless reduced motion is on, so without it nothing is hidden. */
:root { --rise: cubic-bezier(.2, .75, .25, 1); }
.counting { font-variant-numeric: tabular-nums; }
/* Linked sections land a little below the bar. Since the dashes came out the labels sit 4px
   higher, and Work's label landed tucked under the bar. */
section[id] { scroll-margin-top: 1.5rem; }

/* blocks that arrive together, and the rows, cards and panels inside them (site.js sets these) */
.fade-up { transition-delay: var(--stagger, 0s); }
.fade-up .iconrow, .fade-up .statcard, .fade-up .callout, .fade-up .panel { transition-delay: calc(var(--ri, 0) * 90ms); }

/* a title a word at a time, each word sliding up into its own mask. The padding keeps ascenders,
   descenders and overhangs inside the mask, and the negative margin gives the space back. */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0.12em 0.05em 0.16em; margin: -0.12em -0.05em -0.16em; }
.w > span { display: inline-block; }
.motion .w > span { transform: translateY(110%); transition: transform 0.95s var(--rise) calc(var(--wi, 0) * 70ms + 0.12s); }
.motion .visible .w > span, .motion .page-hero.in .w > span { transform: none; }

/* the homepage title a line at a time, then the rest of the intro in reading order */
#hero h1 .ln { display: block; overflow: hidden; padding: 0.1em 0.05em 0.16em; margin: -0.1em -0.05em -0.16em; }
#hero h1 .ln > span { display: inline-block; }
.motion #hero h1 .ln > span { transform: translateY(110%); transition: transform 1.05s var(--rise) 0.08s; }
.motion #hero h1 .ln + .ln > span { transition-delay: 0.2s; }
.motion #hero h1.in .ln > span { transform: none; }
.motion .hero-desc.in { transition-delay: 0.42s; }
.motion .hero-body.in { transition-delay: 0.52s; }
.motion .hero-actions.in { transition-delay: 0.62s; }

/* the four numbers: each card rises in turn when the row comes into view, and counts up */
.motion .hero-facts .fact { opacity: 0; translate: 0 24px; transition: opacity 0.7s ease, translate 0.9s var(--rise); }
.motion .hero-facts .fact:nth-child(2) { transition-delay: 0.09s; }
.motion .hero-facts .fact:nth-child(3) { transition-delay: 0.18s; }
.motion .hero-facts .fact:nth-child(4) { transition-delay: 0.27s; }
.motion .hero-facts.in .fact { opacity: 1; translate: 0 0; }

/* section headers: the label slides in, the title rises a word at a time, the rule draws across */
.motion .section-header.fade-up.has-words { opacity: 1; transform: none; position: relative; border-bottom-color: transparent; }
.motion .section-header.has-words::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--rise) 0.2s;
}
.motion .section-header.has-words.visible::after { transform: scaleX(1); }
.motion .has-words .section-label, .motion .reveal .section-label { opacity: 0; translate: -16px 0; transition: opacity 0.6s ease, translate 0.8s var(--rise); }
.motion .has-words.visible .section-label, .motion .reveal.visible .section-label { opacity: 1; translate: 0 0; }
.motion .has-words .section-link { opacity: 0; translate: 0 8px; transition: opacity 0.6s ease 0.55s, translate 0.8s var(--rise) 0.55s, color 0.25s, gap 0.25s; }
.motion .has-words.visible .section-link { opacity: 1; translate: 0 0; }

/* each page header: the label, the title a word at a time, then what sits under it */
.motion .page-hero .section-label { opacity: 0; translate: -16px 0; transition: opacity 0.6s ease, translate 0.8s var(--rise); }
.motion .page-hero .page-actions { opacity: 0; translate: 0 14px; transition: opacity 0.7s ease 0.5s, translate 0.9s var(--rise) 0.5s; }
.motion .page-hero .about-photo { opacity: 0; scale: 0.88; transition: opacity 0.7s ease, scale 1s var(--rise); }
.motion .page-hero.in .section-label, .motion .page-hero.in .page-actions { opacity: 1; translate: 0 0; }
.motion .page-hero.in .about-photo { opacity: 1; scale: 1; }

/* case cards (her ask, 2026-11-13: "I want to have more motion for UI when case study show up").
   Each part of a card arrives as it comes into view, not all at once when the card's top edge
   does, so a tall card plays out as you scroll down it. site.js marks the parts (.reveal), and
   parts that arrive together go one after another (--stagger). In order: the company pill and
   project line slide in, the title rises a word at a time, the raised ground draws up behind the
   screen, the screen settles into it as the recording eases back from a slight zoom, the phone
   lands a beat later, the callouts and the numbers arrive in turn with their icons popping, the
   bars fill and each number counts up as its card appears. The card itself moves on translate, so
   its hover lift on transform still works. */
.motion .case-card.fade-up {
  transition: opacity 0.8s ease var(--stagger, 0s), translate 0.95s var(--rise) var(--stagger, 0s),
    border-color 0.35s var(--ease), transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.motion .case-card.fade-up:not(.visible) { transform: none; translate: 0 34px; }
.motion .case-card.fade-up.visible:hover { transform: translateY(-5px); }
/* the company pill, then the project line */
.motion .case-meta.reveal > * { transition: opacity 0.6s ease var(--stagger, 0s), translate 0.85s var(--rise) var(--stagger, 0s); }
.motion .case-meta.reveal > :nth-child(2) { transition-delay: calc(var(--stagger, 0s) + 0.1s); }
.motion .case-meta.reveal:not(.visible) > * { opacity: 0; translate: -16px 0; }
/* the title a word at a time, once the title itself is in view */
.motion .case-card h3.reveal .w > span { transition-delay: calc(var(--stagger, 0s) + var(--wi, 0) * 55ms + 0.08s); }
.motion .case-card h3.reveal:not(.visible) .w > span { transform: translateY(110%); }
/* the line under the title, and the Read case study link */
.motion .case-desc.reveal, .motion .case-arrow.reveal {
  transition: opacity 0.7s ease var(--stagger, 0s), translate 0.9s var(--rise) var(--stagger, 0s), gap 0.3s var(--ease);
}
.motion .case-desc.reveal:not(.visible), .motion .case-arrow.reveal:not(.visible) { opacity: 0; translate: 0 12px; }
.motion .case-head .case-arrow.reveal:not(.visible) { translate: -12px 0; }
/* the raised ground draws up, the screen settles into it, the recording eases back, the phone lands */
.motion .band.reveal::before { clip-path: inset(0 0 0 0 round 16px); transition: clip-path 1.05s var(--rise) var(--stagger, 0s); }
.motion .band.reveal:not(.visible)::before { clip-path: inset(100% 0 0 0 round 16px); }
.motion .band.reveal .case-shot {
  transition: opacity 0.8s ease calc(var(--stagger, 0s) + 0.12s), scale 1.15s var(--rise) calc(var(--stagger, 0s) + 0.12s),
    translate 1.15s var(--rise) calc(var(--stagger, 0s) + 0.12s), transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.motion .band.reveal:not(.visible) .case-shot { opacity: 0; scale: 0.94; translate: 0 34px; }
.motion .band.reveal .case-cover { transform-origin: 50% 0; transition: scale 1.8s var(--rise) calc(var(--stagger, 0s) + 0.12s); }
.motion .band.reveal:not(.visible) .case-cover { scale: 1.12; }
.motion .band.reveal .case-phone {
  transition: opacity 0.7s ease calc(var(--stagger, 0s) + 0.55s), translate 1.1s cubic-bezier(.22, 1.3, .4, 1) calc(var(--stagger, 0s) + 0.55s),
    rotate 1.1s var(--rise) calc(var(--stagger, 0s) + 0.55s), transform 0.55s var(--ease);
}
/* mostly from below: pushed further right it poked past the screen edge at 729px until it landed */
.motion .band.reveal:not(.visible) .case-phone { opacity: 0; translate: 12px 56px; rotate: 5deg; }
/* the callouts in turn, each ring popping in after its callout */
.motion .callouts.reveal .callout { transition-delay: calc(var(--stagger, 0s) + var(--ri, 0) * 110ms); }
.motion .callouts.reveal:not(.visible) .callout { opacity: 0; transform: translateY(16px); }
.motion .callouts.reveal .callout .ring {
  transition: opacity 0.5s ease, scale 0.85s cubic-bezier(.3, 1.55, .5, 1), rotate 0.85s var(--rise), transform 0.45s var(--ease), background 0.3s;
  transition-delay: calc(var(--stagger, 0s) + var(--ri, 0) * 110ms + 0.18s), calc(var(--stagger, 0s) + var(--ri, 0) * 110ms + 0.18s),
    calc(var(--stagger, 0s) + var(--ri, 0) * 110ms + 0.18s), 0s, 0s;
}
.motion .callouts.reveal:not(.visible) .callout .ring { opacity: 0; scale: 0.4; rotate: -30deg; }
/* the numbers in turn: each card rises, its icon pops, its bar fills, and site.js counts it up */
.motion .statcards.reveal .statcard { transition-delay: calc(var(--stagger, 0s) + var(--ri, 0) * 110ms); }
.motion .statcards.reveal:not(.visible) .statcard { opacity: 0; transform: translateY(16px); }
.motion .statcards.reveal .sc-icon {
  transition: opacity 0.5s ease, scale 0.8s cubic-bezier(.3, 1.55, .5, 1);
  transition-delay: calc(var(--stagger, 0s) + var(--ri, 0) * 110ms + 0.3s);
}
.motion .statcards.reveal:not(.visible) .sc-icon { opacity: 0; scale: 0.3; }
.motion .statcards.reveal .sc-bar i { transition-delay: calc(var(--stagger, 0s) + var(--ri, 0) * 110ms + 0.35s); }
.motion .statcards.reveal:not(.visible) .sc-bar i { width: 0; }

/* range tiles arrive in a wave, each icon popping in after its tile */
.motion a.range-tile.fade-up {
  transition: opacity 0.75s ease var(--stagger, 0s), transform 0.6s var(--ease) var(--stagger, 0s),
    border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.motion .range-tile.fade-up .rt-icon {
  opacity: 0; scale: 0.5;
  transition: opacity 0.5s ease calc(var(--stagger, 0s) + 0.25s), scale 0.75s cubic-bezier(.3, 1.5, .5, 1) calc(var(--stagger, 0s) + 0.25s);
}
.motion .range-tile.fade-up.visible .rt-icon { opacity: 1; scale: 1; }

/* approach: each icon pops in after its row. Experience: the dates slide in after theirs. */
.motion .approach-rows.fade-up .ir-icon .icon {
  opacity: 0; scale: 0.4; rotate: -25deg;
  transition: opacity 0.5s ease, scale 0.8s cubic-bezier(.3, 1.55, .5, 1), rotate 0.8s var(--rise);
  transition-delay: calc(var(--ri, 0) * 90ms + 0.3s);
}
.motion .approach-rows.fade-up.visible .ir-icon .icon { opacity: 1; scale: 1; rotate: 0deg; }
.motion .cv.fade-up .cv-when { opacity: 0; translate: -12px 0; transition: opacity 0.6s ease, translate 0.8s var(--rise); transition-delay: calc(var(--ri, 0) * 90ms + 0.2s); }
.motion .cv.fade-up.visible .cv-when { opacity: 1; translate: 0 0; }

/* skills: the tags arrive one after another */
.motion .fade-up .skill-tag {
  opacity: 0; translate: 0 8px;
  transition: border-color 0.3s, color 0.3s, background 0.3s,
    opacity 0.45s ease calc(var(--ti, 0) * 18ms + 0.35s), translate 0.55s var(--rise) calc(var(--ti, 0) * 18ms + 0.35s);
}
.motion .fade-up.visible .skill-tag { opacity: 1; translate: 0 0; }

/* Let's talk: the label, the title a word at a time, the line under it, then the buttons in turn */
.motion #contact .reveal .contact-sub, .motion #contact .reveal .contact-actions > * { opacity: 0; translate: 0 18px; }
.motion #contact .reveal .contact-sub { transition: opacity 0.7s ease 0.35s, translate 0.9s var(--rise) 0.35s; }
.motion #contact .reveal .contact-actions > * {
  transition: opacity 0.6s ease var(--bd, 0.5s), translate 0.8s var(--rise) var(--bd, 0.5s),
    background 0.25s, color 0.25s, border-color 0.25s;
}
.motion #contact .reveal .contact-actions > :nth-child(2) { --bd: 0.58s; }
.motion #contact .reveal .contact-actions > :nth-child(3) { --bd: 0.66s; }
.motion #contact .reveal.visible .contact-sub, .motion #contact .reveal.visible .contact-actions > * { opacity: 1; translate: 0 0; }

/* Experience and About, in short: the roles arrive one after another, the photo settles in */
.motion .mini-roles.fade-up li {
  opacity: 0; translate: 0 12px;
  transition: opacity 0.6s ease calc(var(--stagger, 0s) + var(--d, 0s)), translate 0.8s var(--rise) calc(var(--stagger, 0s) + var(--d, 0s));
}
.motion .mini-roles.fade-up li:nth-child(2) { --d: 90ms; }
.motion .mini-roles.fade-up li:nth-child(3) { --d: 180ms; }
.motion .mini-roles.fade-up li:nth-child(4) { --d: 270ms; }
.motion .mini-roles.fade-up.visible li { opacity: 1; translate: 0 0; }
.motion .mini-me.fade-up .about-photo { opacity: 0; scale: 0.88; transition: opacity 0.7s ease 0.12s, scale 1s var(--rise) 0.12s; }
.motion .mini-me.fade-up.visible .about-photo { opacity: 1; scale: 1; }

/* More of it (her ask, 2026-11-13: "More animation for the websiter"). */
/* Long blocks play out as you scroll down them: each row of How I work and of Experience, each
   Education and Awards panel, each paragraph of the About story and each row of skills arrives
   as it comes into view (site.js marks them .reveal), with its own icon, date or tags after it. */
.motion .iconrows .iconrow.reveal, .motion .cv-extra .panel.reveal { transition-delay: var(--stagger, 0s); }
.motion .iconrows .iconrow.reveal:not(.visible), .motion .cv-extra .panel.reveal:not(.visible) { opacity: 0; transform: translateY(16px); }
.motion .approach-rows .iconrow.reveal .ir-icon .icon { transition-delay: calc(var(--stagger, 0s) + 0.3s); }
.motion .approach-rows .iconrow.reveal:not(.visible) .ir-icon .icon { opacity: 0; scale: 0.4; rotate: -25deg; }
.motion .cv .iconrow.reveal .cv-when { transition-delay: calc(var(--stagger, 0s) + 0.2s); }
.motion .cv .iconrow.reveal:not(.visible) .cv-when { opacity: 0; translate: -12px 0; }
.motion .about-body p.reveal { transition: opacity 0.7s ease var(--stagger, 0s), translate 0.9s var(--rise) var(--stagger, 0s); }
.motion .about-body p.reveal:not(.visible) { opacity: 0; translate: 0 16px; }
.motion .skill-row.reveal { transition: opacity 0.6s ease var(--stagger, 0s), translate 0.8s var(--rise) var(--stagger, 0s); }
.motion .skill-row.reveal:not(.visible) { opacity: 0; translate: 0 12px; }
.motion .skill-row.reveal .skill-tag {
  transition: border-color 0.3s, color 0.3s, background 0.3s,
    opacity 0.45s ease calc(var(--stagger, 0s) + var(--ti, 0) * 45ms + 0.15s), translate 0.55s var(--rise) calc(var(--stagger, 0s) + var(--ti, 0) * 45ms + 0.15s);
}
.motion .skill-row.reveal:not(.visible) .skill-tag { opacity: 0; translate: 0 8px; }
/* the back to top button rises in when it appears */
.motion .to-top { transition: background 0.25s, transform 0.25s var(--ease), opacity 0.35s ease, translate 0.45s var(--rise); }
@starting-style { .motion .to-top { opacity: 0; translate: 0 16px; } }
/* page to page: the page you leave fades up and out, the next one rises in, and the bar stays
   put. Browsers without cross page view transitions load the next page as before. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  #nav { view-transition-name: site-nav; }
  ::view-transition-old(root) { animation: vt-out 0.24s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: vt-in 0.5s cubic-bezier(.2, .75, .25, 1) both; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* Why me: the tiles arrive in turn, each illustration popping in after its tile, then the
   industry strip with its tags one after another */
.motion a.why-card.fade-up, .motion a.why-strip.fade-up {
  transition: opacity 0.75s ease var(--stagger, 0s), transform 0.75s var(--ease) var(--stagger, 0s),
    border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.motion .why-card.fade-up .why-ill, .motion .why-strip.fade-up .why-ill {
  opacity: 0; scale: 0.5; rotate: -12deg;
  transition: opacity 0.5s ease calc(var(--stagger, 0s) + 0.25s), scale 0.8s cubic-bezier(.3, 1.5, .5, 1) calc(var(--stagger, 0s) + 0.25s),
    rotate 0.8s var(--rise) calc(var(--stagger, 0s) + 0.25s), transform 0.4s var(--ease);
}
.motion .why-card.fade-up.visible .why-ill, .motion .why-strip.fade-up.visible .why-ill { opacity: 1; scale: 1; rotate: 0deg; }
.motion .why-strip.fade-up .why-tags span { opacity: 0; translate: 0 8px; transition: opacity 0.45s ease, translate 0.6s var(--rise); }
.motion .why-strip.fade-up.visible .why-tags span { opacity: 1; translate: 0 0; }
.motion .why-strip.fade-up .why-tags span:nth-child(1) { transition-delay: calc(var(--stagger, 0s) + 0.30s); }
.motion .why-strip.fade-up .why-tags span:nth-child(2) { transition-delay: calc(var(--stagger, 0s) + 0.34s); }
.motion .why-strip.fade-up .why-tags span:nth-child(3) { transition-delay: calc(var(--stagger, 0s) + 0.38s); }
.motion .why-strip.fade-up .why-tags span:nth-child(4) { transition-delay: calc(var(--stagger, 0s) + 0.42s); }
.motion .why-strip.fade-up .why-tags span:nth-child(5) { transition-delay: calc(var(--stagger, 0s) + 0.46s); }
.motion .why-strip.fade-up .why-tags span:nth-child(6) { transition-delay: calc(var(--stagger, 0s) + 0.50s); }
.motion .why-strip.fade-up .why-tags span:nth-child(7) { transition-delay: calc(var(--stagger, 0s) + 0.54s); }
.motion .why-strip.fade-up .why-tags span:nth-child(8) { transition-delay: calc(var(--stagger, 0s) + 0.58s); }
.motion .why-strip.fade-up .why-tags span:nth-child(9) { transition-delay: calc(var(--stagger, 0s) + 0.62s); }
.motion .why-strip.fade-up .why-tags span:nth-child(10) { transition-delay: calc(var(--stagger, 0s) + 0.66s); }
.motion .why-strip.fade-up .why-tags span:nth-child(11) { transition-delay: calc(var(--stagger, 0s) + 0.70s); }
.motion .why-strip.fade-up .why-tags span:nth-child(12) { transition-delay: calc(var(--stagger, 0s) + 0.74s); }
.motion .why-strip.fade-up .why-tags span:nth-child(13) { transition-delay: calc(var(--stagger, 0s) + 0.78s); }

/* ── PHONE PASS 44 ── */
/* The featured card's Read case study at the end once the card stacks (1080px and below), where
   the other cards have it and where the reader finishes the card. */
@media (max-width: 1080px) {
  .case-card.featured .case-head { display: contents; }
  .case-card.featured .case-head .case-arrow { order: 3; margin-top: 1.4rem; }
}
/* ── END PHONE PASS 44 ── */
/* ── PHONE SCAN 48 ── */
/* A hiring manager scanning the homepage on a phone (her ask, 2026-11-13: "The home page is
   really long... simplify and shrink things a bit just for mobile"). Phones only. */
@media (max-width: 620px) {
  /* spacing */
  .hero-stats { padding: 2.25rem 0 2.5rem; }
  #work { padding: 2.75rem 0 3rem; }
  #why, #profile { padding: 2.75rem 0; }
  #contact { padding: 3.25rem 0; }
  .section-header, #work .section-header { margin-bottom: 1.5rem; padding-bottom: 1.1rem; }
  .work-grid { row-gap: 1.25rem; }
  .contact-sub { margin-bottom: 1.75rem; }

  /* intro: the title line, the promise, the buttons */
  #hero h1 { margin-bottom: 1.3rem; }
  .hero-desc { margin-bottom: 1.75rem; }
  .hero-body { display: none; }

  /* the four numbers: figure and label */
  .fact { padding: 0.95rem 1rem 1rem; border-radius: 12px; }
  .stat-num { font-size: 2rem; margin-bottom: 0.35rem; }
  .fact .stat-label { min-height: 0; font-size: 0.9rem; }
  .stat-sub { display: none; }

  /* case cards: two numbers each, slimmer rows */
  .statcard.sc-more { display: none; }
  .statcards, .statcards.stack { gap: 0.4rem; }
  .statcard { grid-template-columns: 4.6rem minmax(0, 1fr); padding: 0.6rem 0.85rem; }
  .statcard .sc-value, .case-card.featured .statcard .sc-value { font-size: 1.3rem; }
  .statcard .sc-bar { margin-top: 0.45rem; }
  .callouts { gap: 0.7rem; }
  .callout { grid-template-columns: minmax(0, 1fr); }
  .callout .ring { display: none; }
  .callout h4 { margin: 0 0 0.2rem; }
  .case-card.featured .band { margin-top: 1.1rem; padding-bottom: 1.1rem; }
  .band { margin-bottom: 1.1rem; }
  .case-meta { gap: 0.45rem; margin-bottom: 0.75rem; }
  .case-desc { line-height: 1.6; margin-bottom: 1rem; }
  .case-arrow { margin-top: 1rem; }

  /* more case studies */
  .more-cases { margin-top: 1.25rem; }
  .more-label { margin-bottom: 0.6rem; }
  .more-grid { gap: 0.6rem; }
  .mini-case { grid-template-columns: 3.6rem minmax(0, 1fr); column-gap: 0.85rem; padding: 0.85rem 0.9rem 0.9rem 0.8rem; }
  .mini-case h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
  .mini-case .case-meta { gap: 0.35rem; margin-bottom: 0.45rem; }
  .mini-case .case-arrow { margin-top: 0.45rem; }

  /* Why me: compact rows, a chevron instead of the link label */
  .why-grid { gap: 0.5rem; }
  a.why-card, a.why-strip { position: relative; }
  .why-card { grid-template-columns: 2.5rem minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 0.8rem; padding: 0.8rem 2.4rem 0.85rem 0.85rem; }
  .why-ill { width: 2.5rem; height: 2.5rem; border-radius: 11px; }
  .why-art { width: 1.9rem; height: 1.9rem; }
  .why-card h3 { margin: 0.05rem 0 0.25rem; }
  .why-strip { margin-top: 0.5rem; padding: 0.8rem 2.4rem 0.85rem 0.85rem; }
  .why-card .why-link, .why-strip .why-link {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  a.why-card::after, a.why-strip::after {
    content: ""; position: absolute; top: 50%; right: 1.05rem; width: 0.5rem; height: 0.5rem;
    border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); border-radius: 1px;
    translate: 0 -50%; rotate: 45deg;
  }
  a.why-strip::after { top: 1.5rem; }

  /* Experience and About */
  .minis { row-gap: 2.25rem; }
  .mini .section-header { margin-bottom: 1rem; padding-bottom: 0.9rem; }
  .mini-roles li { padding: 0.6rem 0; }
  .mini-me .about-photo { width: 64px; height: 64px; border-radius: 11px; }
  .mini-lead { font-size: 1.1rem; }
  .mini-text { display: none; }
  .mini-link { margin-top: 0.75rem; }
}
/* ── END PHONE SCAN 48 ── */

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up, .hero-eyebrow, .hero-desc, .hero-body, .hero-actions, .hero-facts, .hero-mosaic,
  .fade-up .iconrow, .fade-up .statcard, .fade-up .callout, .fade-up .panel {
    opacity: 1 !important;
    transform: none !important;
  }
  .statcard .sc-bar i { width: var(--v) !important; }
  .word-reveal span { transform: none !important; opacity: 1 !important; }
  .mosaic-card { opacity: 1 !important; translate: none !important; animation: none !important; }
  .mosaic-stage { transform: none !important; }
  .nav-menu, .nav-toggle path { transition: none !important; }
  .nav-menu { transform: none !important; }
}

/* ── COLOR PASS (2026-11-17) ──
   Blue is kept for links, buttons and the highlighted word in a heading. Labels, tags and icons
   go neutral, and the one warm color marks outcome numbers, so results read at a glance. */
.section-label, .mr-when, .cv-when { color: var(--ink-subtle); }
.case-tag { color: var(--ink-muted); background: var(--surface-alt); box-shadow: inset 0 0 0 1px var(--rule); }
.callout .ring { border-color: var(--rule-strong); color: var(--ink); }
.ir-icon { background: var(--surface-alt); color: var(--ink); }
.rt-icon { border-color: var(--rule-strong); background: var(--surface-alt); color: var(--ink); }
.cv-points li::before { background: var(--ink-faint); }
.why-ill { background: var(--surface-alt); box-shadow: inset 0 0 0 1px var(--rule); }
.why-proof b { color: var(--ink); }

/* The outcome stat on each case card */
.statcard.hi {
  background: var(--result-wash);
  border-color: rgba(4,120,87,0.34);
  box-shadow: inset 0 0 0 1px rgba(4,120,87,0.14), 0 14px 32px rgba(4,120,87,0.10);
}
.statcard.hi .sc-value, .statcard.hi .sc-icon { color: var(--result); }
.statcard .sc-bar i { background: var(--result); }


/* ── EXPERIENCE TIMELINE (2026-11-17) ──
   White page, no tinted card. A thin rail with one dot per job; the current
   job's dot is blue. The role sits under the company in plain case. */
.iconrows.cv { --cv-date: 9rem; --cv-rail: calc(var(--cv-date) + 1.6rem);
  box-shadow: none; border-radius: 0; overflow: visible; }
.iconrows.cv .iconrow { position: relative; }
.iconrows.cv .ir-body,
.iconrows.cv .iconrow:hover .ir-body { background: transparent; box-shadow: none; padding: 2.1rem 0; }
.iconrows.cv .cv-body { grid-template-columns: var(--cv-date) minmax(0, 1fr); gap: 0 3.2rem; }
.iconrows.cv .iconrow::before {
  content: ''; position: absolute; left: var(--cv-rail); top: 0; bottom: 0;
  width: 1px; background: var(--rule-strong);
}
.iconrows.cv .iconrow:first-child::before { top: 2.65rem; }
.iconrows.cv .iconrow:last-child::before { bottom: auto; height: 2.65rem; }
.iconrows.cv .iconrow::after {
  content: ''; position: absolute; left: calc(var(--cv-rail) - 5px); top: 2.35rem;
  width: 11px; height: 11px; border-radius: 50%; box-sizing: border-box;
  background: var(--surface); border: 2px solid var(--rule-strong);
  transition: border-color 0.25s, transform 0.25s;
}
.iconrows.cv .iconrow:first-child::after {
  background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash);
}
.iconrows.cv .iconrow:hover::after { border-color: var(--accent); transform: scale(1.15); }
.iconrows.cv .cv-when {
  padding-top: 0.4rem; color: var(--ink-subtle); font-variant-numeric: tabular-nums; letter-spacing: 0.08em;
}
.iconrows.cv .cv-what h3 { display: block; margin-bottom: 0.7rem; }
.iconrows.cv .cv-org {
  display: block; margin-top: 0.25rem;
  font-size: var(--type-sm); font-weight: 500; letter-spacing: 0; text-transform: none;
  color: var(--ink-muted);
}
#experience .panel { background: var(--surface); box-shadow: none; border: 1px solid var(--rule); }
#experience .cv-extra { margin-top: 1.5rem; }
@media (max-width: 860px) {
  .iconrows.cv { --cv-rail: 0px; }
  .iconrows.cv .cv-body { grid-template-columns: 1fr; gap: 0.35rem; }
  .iconrows.cv .ir-body, .iconrows.cv .iconrow:hover .ir-body { padding: 1.6rem 0 1.6rem 1.75rem; }
  .iconrows.cv .iconrow::after { top: 1.75rem; }
  .iconrows.cv .iconrow:first-child::before { top: 2rem; }
  .iconrows.cv .iconrow:last-child::before { height: 2rem; }
  .iconrows.cv .cv-when { padding-top: 0; }
}

/* ── CASES FIRST (2026-11-20) ──
   GA showed most visitors leaving the homepage without opening a case study, so the cases
   come straight after the hero. */
/* each card names its outcome under the title */
.case-outcome {
  margin: 0.5rem 0 0.9rem;
  font-size: var(--type-sm); font-weight: 600; line-height: 1.45;
  color: var(--ok);
}
.case-head .case-outcome { margin-bottom: 0; }
/* the pitch sits straight above the buttons */
.hero-desc { margin-bottom: 2rem; }
/* the hero collage shows its outcome labels all the time, not only on hover */
.mosaic-label { opacity: 1; transform: none; }
/* Resume beside Menu on a phone, so it is one tap from the header */
.nav-resume-m { display: none; }
@media (max-width: 700px) {
  .nav-resume-m {
    display: inline-flex; align-items: center; min-height: 2.75rem;
    margin-left: auto; margin-right: 1rem; padding: 0 0.25rem;
    font-size: var(--type-sm); font-weight: 600;
  }
  nav.menu-open .nav-resume-m { visibility: hidden; }
}
/* Experience: the case study links in each role get a finger-sized target */
.cv-cases a { position: relative; }
.cv-cases a::after { content: ''; position: absolute; inset: -14px -4px; }
/* On a phone the first case card has to start on the first screen: a tighter intro, no
   "View selected work" (the cases are right below it), and a slimmer Work header whose
   heading stays for screen readers. */
@media (max-width: 620px) {
  #hero { padding-top: calc(var(--nav-h) + 1.75rem); }
  .hero-desc { margin-bottom: 1.5rem; }
  .hero-actions .btn-primary { display: none; }
  #work { padding-top: 1.75rem; }
  #work .section-header { margin-bottom: 1rem; padding-bottom: 0.75rem; align-items: center; }
  #work .section-header h2 {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  #work .case-card .case-year { display: none; }
}
/* ── END CASES FIRST ── */

/* ── PHONE REVIEW (2026-11-20) ──
   On a phone the hero collage becomes a row of the three case recordings you can swipe. Each
   plays while it is on screen, and the one in the middle sits slightly forward. The case
   cards keep the recording, title, outcome and numbers, and drop the longer text. */
@media (max-width: 620px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .hero-mosaic { display: block; aspect-ratio: auto; max-width: none; margin: 0 -1.25rem; }
  .mosaic-stage {
    position: static; display: flex; gap: 0.75rem; transform: none;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 0.5rem 1.25rem 0.75rem; scroll-padding-inline: 1.25rem;
  }
  .mosaic-stage::-webkit-scrollbar { display: none; }
  .mosaic-stage::before { display: none; }
  .mosaic-card, .mc-4 {
    position: relative; inset: auto; flex: 0 0 auto; display: flex; flex-direction: column;
    transform: scale(var(--s, 0.94)); scroll-snap-align: start;
    padding: 0; border: 1px solid var(--d-rule); border-radius: 12px; overflow: hidden;
    background: var(--d-bg-2); box-shadow: 0 14px 30px rgba(0,0,0,0.4);
    transition: opacity 0.7s ease var(--dl), translate 0.95s var(--ease) var(--dl), transform 0.5s var(--ease), border-color 0.4s;
  }
  .hero-mosaic.in .mosaic-card { animation: none; }
  .mosaic-card.on { --s: 1; border-color: rgba(92,180,255,0.55); }
  .mosaic-card:hover, .mosaic-card:focus-visible { transform: scale(var(--s, 0.94)); box-shadow: 0 14px 30px rgba(0,0,0,0.4); }
  .mosaic-stage:has(.mosaic-card:hover) .mosaic-card:not(:hover),
  .mosaic-stage:has(.mosaic-card:focus-visible) .mosaic-card:not(:focus-visible) { filter: none; }
  .mc-1 { width: 220px; }
  .mc-2 { width: 300px; }
  .mc-4 { width: 140px; }
  .mosaic-card img { width: 100%; height: 176px; object-fit: cover; object-position: top; }
  .mc-screen { border-radius: 0; }
  .mc-4 img { height: 192px; }
  .mosaic-video { top: 16px; height: 176px; object-fit: cover; object-position: top; }
  .mc-4 .mosaic-video { top: 0; height: 192px; }
  .mosaic-label, .mc-4 .mosaic-label {
    position: static; display: flex; justify-content: space-between; gap: 0.4rem;
    padding: 0.6rem 0.75rem; border-radius: 0; box-shadow: none;
    background: none; font-size: 0.75rem; line-height: 1.3; white-space: normal;
  }
  .mc-4 .mosaic-label { padding-inline: 0.6rem; }

  /* slimmer case cards: the recording, title, outcome and numbers */
  #work .case-card .callouts, #work .case-card .case-desc { display: none; }
}
@media (max-width: 620px) and (prefers-reduced-motion: reduce) {
  .mosaic-card, .mc-4 { transform: none !important; transition: none !important; }
}
/* ── END PHONE REVIEW ── */
