/* ==========================================================================
   INDIVAR KUMAR - PORTFOLIO
   One font (Instrument Sans) · warm white + charcoal · colour only from
   client name headers + imagery. Editorial, cinematic, restrained.
   Reference: 28july.com / Mouthwash / Special Offer Inc.
   --------------------------------------------------------------------------
   Structure of this file:
     1. Tokens (colours, type, spacing)   6. Work: client + stage + slides
     2. Reset & base                      7. Media carousel + video facade
     3. Typography helpers                8. The Journey (accordion)
     4. Header / nav / Mediums dropdown   9. Working Across / Experience / Contact
     5. Opening (Sneak Peek)             10. Ticker · reduced-motion · responsive
   ========================================================================== */

/* 1. TOKENS ================================================================ */
:root {
  /* Palette - restrained (edit with care; keep contrast on warm white) */
  --paper:      #FBFAF7;   /* warm white background */
  --ink:        #23201C;   /* soft charcoal text */
  --black:      #000000;   /* SOLID BLACK - all interactive controls */
  --line:       #E0DDD4;   /* dividers */
  --line-soft:  #EFEDE6;   /* faint dividers */
  --muted:      #8C877D;   /* muted meta */
  --hover-block:#EFEDE6;   /* light colour-block behind controls on hover */

  /* Fallback client colour (each client overrides via inline --client-color) */
  --client-color: var(--ink);

  /* Type */
  --font: "Instrument Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --fs-body:  12px;          /* body ~12px per brief */
  --fs-meta:  10px;          /* uppercase tracked labels */
  --fs-lead:  15px;          /* opening blurb / lead */
  --lh-body:  1.6;

  /* Fluid display sizes */
  --fs-statement: clamp(2.1rem, 5.6vw, 4.75rem);
  --fs-client:    clamp(2.6rem, 8vw, 7rem);
  --fs-title:     clamp(1.4rem, 2.4vw, 2rem);
  --fs-across:    clamp(1.6rem, 5vw, 3.75rem);

  /* Spacing / layout */
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --maxw:   1440px;
  --ease:   cubic-bezier(0.22, 0.61, 0.36, 1);
  --slow:   0.7s;

  /* ONE vertical rhythm token - every section pad + every inter-block gap uses it.
     Each block pads --section-gap/2 top & bottom, so every adjacent gap == --section-gap. */
  --section-gap: clamp(2.5rem, 6vh, 4.5rem);

  /* Ticker (Round 3: ~20% bigger for clearer tag highlighting) */
  --ticker-h:  40px;
  --ticker-fs: 12px;
}

/* 2. RESET & BASE ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Reserve room for the fixed ticker on whichever edge it lives (set by body class) */
body.ticker-bottom { padding-bottom: var(--ticker-h); }
body.ticker-top    { padding-top: var(--ticker-h); }

img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -60px; left: var(--gutter); z-index: 200;
  background: var(--black); color: var(--paper); padding: 10px 14px; border-radius: 4px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* anchored jumps / opened clients land just under the fixed ticker */
.client, .section, .opening { scroll-margin-top: var(--ticker-h); }

/* 3. TYPOGRAPHY HELPERS ==================================================== */
.eyebrow, .meta {
  font-size: var(--fs-meta);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
}
.italic { font-style: italic; }
.lead { font-size: var(--fs-lead); line-height: 1.65; }

/* 4. HEADER - name only (nav removed in Round 3) ========================== */
/* Round 6: same max-width + gutter as .wrap so the name lines up with the H1. */
.site-header {
  display: flex; align-items: center;
  max-width: var(--maxw); margin-inline: auto;
  padding: calc(var(--section-gap) / 2) var(--gutter);
}
.wordmark {
  font-size: 18.4px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); /* Round 7: +15% again */
}

/* 5. OPENING (Sneak Peek - unlabelled on page) =============================
   Apple HIG two-column block: H1 left, blurb right. Both columns are equal
   height (align-items: stretch) so they share the SAME top AND bottom edges
   - two halves of one box. Kicker pinned to the bottom of the right column. */
/* Round 4: opening fills ~one viewport (no client visible at the very top),
   with the first client sitting just below the fold so a small scroll reveals it. */
.opening {
  /* Round 9: the box FILLS the first view (so NRMA never peeks in un-scrolled).
     A smaller bottom-padding bias offsets the name/header above so the H1/blurb
     land at the TRUE vertical middle - even white space above and below. */
  min-height: calc(100vh - var(--ticker-h));
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--section-gap) / 2);
  padding-bottom: calc(var(--section-gap) / 2 + 7rem);
}
.opening__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: stretch;                       /* equal height → shared top + bottom edges */
}
.opening__col--left { display: flex; }        /* H1 sits at the top, fills column height */
.opening__col--right { display: flex; flex-direction: column; }
.opening__statement {
  margin: 0;
  font-size: var(--fs-statement);
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.02;
  max-width: 16ch; text-wrap: balance;
}
.opening__blurb { margin: 0; max-width: 46ch; color: var(--ink); }
/* Kicker: plain body copy (no muted/italic/uppercase), reads as normal text */
.opening__kicker {
  margin: 1rem 0 0; max-width: 46ch;
  font-size: var(--fs-lead); line-height: 1.65;
  color: var(--ink); font-weight: 400;
  text-transform: none; letter-spacing: 0;
}
/* Round 6: vertical cue line pointing DOWN (was a horizontal dash) */
.scroll-cue {
  margin-top: calc(var(--section-gap) / 2);
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px;
  color: var(--muted); font-size: var(--fs-meta);
  letter-spacing: 0.18em; text-transform: uppercase;
}
.scroll-cue .line {
  width: 1px; height: 42px; background: currentColor; transform-origin: top;
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0%,100%{ transform: scaleY(.35); opacity:.5 } 50%{ transform: scaleY(1); opacity:1 } }

/* 6. WORK - ACCORDION of clients; open one drops its project stage ========= */
#work { padding: 0; }
.client {
  max-width: var(--maxw); margin-inline: auto;
  padding: 0 var(--gutter);
  border-top: 1px solid var(--line);
}
#work .client:last-of-type { border-bottom: 1px solid var(--line); }

.client__name {
  font-size: var(--fs-client); font-weight: 600;
  letter-spacing: -0.03em; line-height: 0.98;
  color: var(--client-color);           /* the only colour in the UI */
}
.client__name a { color: inherit; }

/* Round 6: while a client is open, its name pins to the top (below the ticker),
   on desktop AND mobile, so it's clear which client you're in. */
.client.is-open .client__name {
  position: sticky; top: var(--ticker-h); z-index: 80;
  background: var(--paper); border-bottom: 1px solid var(--line);
}

/* The name becomes the accordion toggle (built in JS; button for a11y) */
.client__toggle {
  display: block; width: 100%; text-align: left;
  font: inherit; font-size: var(--fs-client); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1; color: var(--client-color);
  padding: calc(var(--section-gap) / 2) 0; cursor: pointer;   /* even client->client gap */
  transition: opacity .25s var(--ease);
}
.client__toggle:hover, .client__toggle:focus-visible { opacity: 0.78; }

/* Collapsible body (grid-rows 0fr→1fr = smooth height animation) */
.client__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--slow) var(--ease); }
.client.is-open .client__body { grid-template-rows: 1fr; }
.client__bodyInner { min-height: 0; overflow: hidden; }

/* Stage holds the project slides + controls */
.client__stage { position: relative; display: flex; flex-direction: column;
  padding-top: clamp(0.5rem, 2vw, 1.5rem); padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.slides { position: relative; }

/* A slide = one project (left column · centre media · right journey) */
.slide {
  display: grid;
  grid-template-columns: minmax(200px, 0.9fr) minmax(0, 2.1fr) minmax(160px, 0.7fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;           /* Round 4: media governs row height → controls pinned */
}
.slide__left { align-self: start; }
.eyebrow + .slide__title { margin-top: 12px; }
.slide__title { font-size: var(--fs-title); font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; }
.facts { margin-top: 20px; display: grid; gap: 12px; }
.facts > div { display: grid; gap: 3px; }
.facts dt { font-size: var(--fs-meta); text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); }
.facts dd { font-size: 13px; }

.slide__right { align-self: start; display: flex; justify-content: flex-end; }

/* Controls: tracker bottom-left, arrow bottom-right - SAME small size */
.stage__controls {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 28px; min-height: 22px;
}
.tracker { font-size: 12px; letter-spacing: 0.14em; color: var(--muted); font-variant-numeric: tabular-nums; }
.tracker b { color: var(--ink); font-weight: 600; }
.arrow {
  color: var(--black); font-size: 13px; line-height: 1;   /* tiny, arrow only */
  padding: 6px 8px; border-radius: 3px;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.arrow:hover, .arrow:focus-visible {
  background: color-mix(in srgb, var(--client-color) 16%, transparent);
  color: var(--client-color);
}

/* 7. MEDIA CAROUSEL + VIDEO FACADE ======================================== */
/* Round 4 (K): reserve a constant dot-tracker band on EVERY project so the
   media block is always the same height - the dots (present only on multi-item
   projects like NRMA Cricket) no longer change layout, so the project arrow
   stays pinned exactly as it does on Reckitt. */
.media { width: 100%; position: relative; padding-bottom: 46px; } /* room for the tap-friendly controls row */
.media__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;               /* cinematic; films + landscape stills */
  max-height: 64vh;
  background: var(--line-soft);
  border-radius: 4px; overflow: hidden;
}
.media__item { position: absolute; inset: 0; }
.media__item img, .media__item video, .media__item iframe {
  width: 100%; height: 100%; object-fit: cover; border: 0;
}
.media__item iframe { object-fit: fill; }

/* Video facade (poster + play) */
.media__facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; }
.media__facade img { width: 100%; height: 100%; object-fit: cover; }
.media__facade::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.28), rgba(0,0,0,0) 55%);
}
.media__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 62px; height: 62px; border-radius: 50%;
  background: color-mix(in srgb, var(--black) 78%, transparent);
  display: grid; place-items: center;
  transition: transform .3s var(--ease), background-color .3s var(--ease);
  pointer-events: none;                 /* facade button handles the click */
}
.media__facade:hover .media__play { transform: translate(-50%,-50%) scale(1.08); background: var(--black); }
.media__play::before {
  content: ""; margin-left: 4px;
  border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--paper);
}
.media__label {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  color: var(--paper); font-size: var(--fs-meta);
  letter-spacing: 0.16em; text-transform: uppercase;
}

/* Round 11: carousel controls row - [prev] [dots] [next], ALWAYS visible.
   Sits in the reserved band below the frame (absolute), so it never affects
   media height (keeps the project controls pinned across projects). */
.media__controls {
  position: absolute; left: 0; right: 0; bottom: 4px; margin: 0;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* Small inline back/forward arrows beside the dots - always visible, restrained
   like the dots but clearly legible. The chevron stays small while the button
   itself is a ~40px touch target so it's reliably tappable on mobile/tablet. */
.media__nav {
  border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px; min-width: 40px; min-height: 40px; line-height: 1; font-size: 16px;
  color: var(--ink); opacity: 0.9;
  transition: color .2s var(--ease), opacity .2s var(--ease);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.media__nav:hover, .media__nav:focus-visible { color: var(--client-color); opacity: 1; }

/* Instagram-style dot tracker; video dot = triangle. Active = enlarged + darker. */
.media__dots {
  display: flex; align-items: center; gap: 9px; justify-content: center;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line); padding: 0; transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.dot.is-active { background: var(--ink); transform: scale(1.5); }
.dot--video {
  width: 0; height: 0; border-radius: 0; background: transparent;
  border-style: solid; border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--line);
}
.dot--video.is-active { border-left-color: var(--ink); background: transparent; transform: scale(1.4); }

/* Ongoing-project note (NRMA AI Modelling): same fixed frame size, no media inside.
   A warm, expressive italic line at ~project-title scale, centred, with a blinking caret. */
.media__frame--note { background: transparent; border-radius: 0; }
.dev-note {
  position: absolute; inset: 0; margin: 0; padding: 0 8%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-style: italic; font-weight: 500;
  font-size: var(--fs-title); line-height: 1.15; letter-spacing: 0.01em;
  color: var(--ink);
}
.dev-note .caret {
  display: inline-block; width: 2px; height: 1em; margin-left: 0.18em;
  background: currentColor; transform: translateY(0.14em);
  animation: caretBlink 1.05s steps(1) infinite; opacity: 0.75;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* 8. THE JOURNEY - static (Round 4): no toggle; shown with the project ===== */
.journey { width: 100%; max-width: 340px; }
.journey__toggle, .plus { display: none; }   /* reveal button removed */
/* Content is always visible (overrides the old collapse behaviour) */
.journey__region { display: block; opacity: 1; margin-top: 0; }
.journey__block + .journey__block { margin-top: 18px; }
.journey__block h4 {
  font-size: var(--fs-meta); text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted); margin-bottom: 8px; font-weight: 600;
}
.journey__block p { font-size: 12.5px; line-height: 1.65; }

/* 9. MEDIUMS / EXPERIENCE / CONTACT ======================================= */
/* Every section pads --section-gap/2 top & bottom → identical gaps site-wide
   (PMN->Mediums == Mediums->Experience == Experience->Contact). */
/* Round 5: section-dividing lines back; titles restrained/small again */
.section { padding: calc(var(--section-gap) / 2) var(--gutter); max-width: var(--maxw); margin-inline: auto; border-top: 1px solid var(--line-soft); }
.section__label { margin-bottom: clamp(1.25rem, 3vw, 2rem); }   /* inherits the small .eyebrow label style */

/* 18 tags, ~project-title size, three columns flowing down (6 each), no rules */
.across__list {
  list-style: none; padding: 0; margin: 0;
  columns: 3; column-gap: clamp(1.5rem, 5vw, 4.5rem);
}
.across__list li { break-inside: avoid; margin-bottom: 0.55rem; }
.across__list li a {
  display: inline-block;
  font-size: 18px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.3;  /* Round 5: match Experience entry scale, regular weight */
  color: var(--ink); padding: 1px 0;
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.across__list li a:hover, .across__list li a:focus-visible { color: var(--black); padding-left: 10px; }

/* Experience rows without divider lines - spacing carries the rhythm.
   Round 8: tighter, even gap between entries. */
.timeline { display: grid; gap: clamp(0.75rem, 1.5vw, 1.1rem); }
.xp {
  display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: clamp(1rem,3vw,2.5rem);
  align-items: baseline;
}
.xp__co { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.xp__role { font-size: 13px; }
/* Round 9 (desktop): dates match the role title - same family + size, no tracked-caps */
.xp__dates { font-size: 13px; }
.xp__note { color: var(--muted); font-weight: 400; font-size: 12px; }

/* Contact: "Let's chat" left, links right */
.contact__row { display: flex; justify-content: space-between; align-items: baseline; gap: clamp(1.5rem,4vw,3rem); flex-wrap: wrap; }
.contact__line { font-size: var(--fs-statement); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.contact__links { display: flex; flex-wrap: wrap; gap: 22px; }
.contact__links a {
  color: var(--black); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 3px;
  transition: background-color .25s var(--ease);
}
.contact__links a:hover, .contact__links a:focus-visible { background: var(--hover-block); }

/* 10. TICKER - bigger (Round 3); position set by body class ================ */
.ticker {
  position: fixed; left: 0; right: 0; z-index: 90; height: var(--ticker-h);
  display: flex; align-items: center; overflow: hidden;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
body.ticker-bottom .ticker { bottom: 0; top: auto; border-top: 1px solid var(--line-soft); }
body.ticker-top    .ticker { top: 0; bottom: auto; border-bottom: 1px solid var(--line-soft); }
.ticker__track {
  display: inline-flex; gap: 40px; white-space: nowrap; padding-left: 40px;
  will-change: transform; animation: ticker 42s linear infinite;
}
.ticker__track span {
  font-size: var(--ticker-fs); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
  transition: color .3s var(--ease);
}
/* Live tags: JS sets --lit to the open client's brand colour and toggles .is-lit */
.ticker__track span.is-lit { color: var(--lit, var(--ink)); font-weight: 600; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================ ENHANCEMENT (JS ON) ========================= */
/* When JS is active we switch the projects to the horizontal carousel and
   collapse the Journey; without JS everything stays stacked & open (SEO/a11y). */
.js .slides.is-carousel .slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
}
.js .slides.is-carousel .slide.is-active {
  position: relative; opacity: 1; visibility: visible; pointer-events: auto; z-index: 2;
}
/* Left column: cross-fade only (stays put) */
.js .slides.is-carousel .slide__left { opacity: 0; transition: opacity var(--slow) var(--ease); }
.js .slides.is-carousel .slide.is-active .slide__left { opacity: 1; }
/* Centre + right: slide in from the right + fade */
.js .slides.is-carousel .slide__center,
.js .slides.is-carousel .slide__right {
  opacity: 0; transform: translateX(64px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.js .slides.is-carousel .slide.is-active .slide__center,
.js .slides.is-carousel .slide.is-active .slide__right { opacity: 1; transform: none; }
/* Outgoing slide drifts left, under the incoming */
.js .slides.is-carousel .slide.is-leaving { opacity: 1; visibility: visible; z-index: 1; }
.js .slides.is-carousel .slide.is-leaving .slide__center,
.js .slides.is-carousel .slide.is-leaving .slide__right { opacity: 0; transform: translateX(-44px); }
.js .slides.is-carousel .slide.is-leaving .slide__left { opacity: 0; }

/* JS media: show one item at a time */
.js .media.is-carousel .media__item { opacity: 0; visibility: hidden; transition: opacity .45s var(--ease); }
.js .media.is-carousel .media__item.is-active { opacity: 1; visibility: visible; }

/* Scroll-reveal for editorial fades */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* 11. REDUCED MOTION ====================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker__track { animation: none; transform: none; }
  .scroll-cue .line { animation: none; }
  /* Journey opens/closes instantly; carousel cross-fade is instant */
}

/* 12. RESPONSIVE / MOBILE (stack projects, accordion journey) ============= */
@media (max-width: 900px) {
  :root { --fs-body: 12.5px; }
  .nav__link, .nav__trigger { padding: 8px 8px; }

  /* Opening stacks: H1 then blurb */
  .opening__grid { grid-template-columns: 1fr; gap: clamp(1.25rem, 5vw, 2rem); }
  .opening__kicker { margin-top: clamp(1rem, 4vw, 1.75rem); padding-top: 0; }
  .opening__statement { max-width: 20ch; }

  /* Round 8 (mobile): fill the first view so NRMA doesn't peek, but keep the
     content near the top (flex-start) so there's no excess top white space -
     the spare room goes below the intro, pushing NRMA under the fold. */
  .opening { min-height: calc(100vh - var(--ticker-h)); justify-content: flex-start; padding-block: calc(var(--section-gap) / 2); }

  /* Round 8 (mobile): tighter Experience gap */
  .timeline { gap: clamp(0.6rem, 1.8vw, 0.9rem); }

  /* Working Across → two columns on tablet */
  .across__list { columns: 2; }

  /* Stack projects vertically - no horizontal carousel on mobile */
  .js .slides.is-carousel .slide,
  .js .slides.is-carousel .slide.is-active {
    position: relative; inset: auto; opacity: 1; visibility: visible; pointer-events: auto;
  }
  .js .slides.is-carousel .slide__left,
  .js .slides.is-carousel .slide__center,
  .js .slides.is-carousel .slide__right { opacity: 1; transform: none; }
  .slides.is-carousel .slide + .slide { margin-top: clamp(2.5rem, 8vw, 4rem); padding-top: clamp(2.5rem, 8vw, 4rem); border-top: 1px solid var(--line-soft); }
  .stage__controls { display: none; }        /* arrow/tracker not needed when stacked */

  .slide {
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 5vw, 2rem);
    align-items: start;
  }
  .slide__center { order: -1; }               /* media first on mobile */
  .slide__right { justify-content: flex-start; }
  .journey { max-width: none; }
  .journey__toggle { margin-left: 0; }
  .media__frame { max-height: none; }

  .xp { grid-template-columns: 1fr; gap: 2px; padding: 9px 0; }  /* Round 8: tighter rows */
  /* Round 9: keep the original small tracked-caps dates on mobile (desktop matches the role) */
  .xp__dates { font-size: var(--fs-meta); text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
}

@media (max-width: 560px) {
  /* Round 9: larger EVEN gutters on phones so the intro has clearly balanced
     left/right space (no right-edge crowding); keeps name/H1/client left-edges
     aligned since everything shares --gutter. */
  :root { --gutter: 2.25rem; }
  .nav { gap: 0; }
  .wordmark { font-size: 14px; }
  .across__list { columns: 1; }

  /* Round 10 (mobile): stack the contact links tightly and trim the trailing
     white space below them so the section doesn't run off with empty space. */
  .contact__links { flex-direction: column; align-items: flex-start; gap: 0; }
  .contact__links a { padding: 3px 0; }
  #contact { padding-bottom: 0.5rem; }

  /* Round 10b (mobile): pull the links up closer under "Let's chat"
     (space beneath the links is left as-is). */
  .contact__row { row-gap: 10px; }
}
