/* ============================================================
   Cassidy Myers-Sims — design tokens
   ============================================================ */
:root {
  --bg: #f5f5f3;
  --bg-card: #ffffff;
  --text: #333333;
  --text-soft: #4f4f4f;
  --text-mute: #828282;
  --accent: #81aed9;
  --accent-soft: #c7dcef;
  --highlight: #fff705;
  --border: #e6e6e2;
  --border-soft: #c9c9c9;

  --font-script: "Yellowtail", "Brush Script MT", cursive;
  /* "Cassidy" display face. Pacifico is a stand-in for the script font in
     the reference image — swap this one line for the real font (added via
     @font-face) once its file is in assets/. */
  --font-cassidy: "Pacifico", "Yellowtail", cursive;
  --font-serif: "Instrument Serif", "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-w: 1200px;
  --gutter: clamp(20px, 4vw, 56px);

  --r-card: 30px;
  --r-button: 999px;
}

/* ============================================================
   Reset + base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  margin: 0;
  padding: 0;
  background: var(--accent); /* The blue passe-partout */
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}
body {
  margin: clamp(8px, 1.2vw, 18px); /* This margin reveals the blue frame */
  /* Light-blue body — cards sit on top of this, with the blue showing
     between them (matching the Dyotanya passe-partout treatment). */
  background: var(--accent);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: calc(100vh - clamp(16px, 2.4vw, 36px));
  border-radius: 8px;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  position: relative;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }

/* Page fade-in: pure CSS, no JS dependency */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body {
  animation: pageFadeIn 0.6s ease-out 0.1s both;
}

/* Animated page thread — single full-page line revealed by scroll. */
.page-squiggle {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 302;
  overflow: hidden;
  border-radius: 8px;
}
.page-squiggle svg {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.95;
}
.page-squiggle-path {
  opacity: 0;
}
.page-squiggle-path.is-ready {
  opacity: 1;
}
@media (max-width: 720px) {
  .page-squiggle svg { opacity: 0.35; }
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
}

/* ============================================================
   Typography
   ============================================================ */
.section-h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  max-width: 22ch;
}

h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 24px);
  margin: 0 0 10px;
}

p { margin: 0 0 16px; max-width: 60ch; }
p:last-child { margin-bottom: 0; }

.kicker {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 24px;
}

.signature {
  font-family: var(--font-script);
  font-size: 32px;
  color: var(--accent);
  margin-top: 16px;
}

/* ============================================================
   Preloader
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.5s ease 0.3s, visibility 0.5s ease 0.3s;
}
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.preloader-mark {
  font-family: var(--font-script);
  font-size: 64px;
  color: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}

/* ============================================================
   Burger menu (top-right circular icon, à la Dyotanya)
   ============================================================ */
.burger {
  position: fixed;
  top: clamp(28px, 3vw, 44px);
  right: clamp(28px, 3vw, 44px);
  width: 56px;
  height: 56px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 200;
  transition: transform 0.25s ease, opacity 0.2s ease, visibility 0.2s ease;
}
.burger:hover { transform: scale(1.08); }
.burger svg {
  width: 100%;
  height: 100%;
  /* Hard offset shadow, matching the helper-pill style. */
  filter: drop-shadow(5px 6px 0 var(--text));
}
/* Hide burger while pitch section is in view (it clashes with the blue) */
.burger.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: scale(0.85) !important;
}

/* Slide-out menu panel */
.menu-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: clamp(260px, 28vw, 380px);
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 150;
  transform: translateX(105%);
  transition: transform 0.45s cubic-bezier(.7,0,.2,1);
  padding: clamp(100px, 10vw, 140px) clamp(32px, 4vw, 56px);
  visibility: hidden;
  pointer-events: none;
}
.menu-panel.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.menu-panel ul { display: flex; flex-direction: column; gap: 18px; }
.menu-panel a {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 28px;
  color: var(--text);
  transition: color 0.2s ease;
}
.menu-panel a:hover { color: var(--accent); }

/* ============================================================
   Sections — each section is its own card, like the hero and pitch.
   Inset from body with horizontal margin so the light-blue passe-partout
   shows around it, with rounded corners and clean gaps between cards.
   ============================================================ */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 6vw, 84px) clamp(28px, 3vw, 56px);
  margin: clamp(16px, 2vw, 36px) clamp(20px, 2.5vw, 48px);
  background: var(--bg);
  border-radius: clamp(36px, 3.5vw, 56px);
  overflow: hidden;
}
.section:nth-child(even) {
  /* subtle alternating wash for rhythm — very faint */
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ============================================================
   HERO — editorial mixed-alignment layout (Dyotanya-style)
   Card treatment: rounded corners, inset from body so the light-blue
   passe-partout shows around all four sides, content sized to fit in
   a single viewport (no scrolling needed to see the CTA).
   ============================================================ */
.hero {
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(44px, 5vw, 66px) clamp(52px, 5.4vw, 72px) clamp(52px, 5.8vw, 64px);
  position: relative;
  margin: clamp(20px, 2.2vw, 26px) clamp(8px, 0.8vw, 20px) clamp(20px, 2.5vw, 28px);
  border-radius: clamp(36px, 3.5vw, 56px);
  background: var(--bg);
  overflow: hidden;
  z-index: 2;
}

.hero-grid {
  flex: none;
  /* Height scales with the headline font (em). Tuned to the 5-row
     composition — ~1.0em row advance so stacked lines don't touch. */
  height: 5.3em;
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  /* Width-proportional so the absolute composition keeps a constant
     text-to-card ratio at every desktop width (no clamp surprises).
     Capped at 79px on desktop. */
  font-size: clamp(54px, 8.3vw, 79px);
  line-height: 0.86;
  letter-spacing: -0.022em;
  color: var(--text);
  position: relative;
  margin: 0 0 0.24in;   /* 0.24in of space below "...they deserve" before the CTA */
  z-index: 2;
  min-height: 0;
}

.hero-grid .he {
  display: inline-flex;
  align-items: center;
  position: absolute;
  white-space: nowrap;
}
.hero-grid em { font-style: italic; font-weight: 400; }
.hero-grid .script {
  font-family: inherit;
  color: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}
/* "Cassidy" — the only word in a different face (the display script,
   via --font-cassidy). "I'm" and the period stay in the serif. */
.he-cassidy {
  font-family: var(--font-cassidy);
  font-size: 0.765em;    /* 0.85em taken down a further 10% */
  letter-spacing: 0;     /* the headline tracks tight (-0.022em); a connected script must not */
  margin-left: 0.3em;    /* extra breathing space after "I'm" */
}

/* Editorial desktop composition — five rows on an even ~19% cadence,
   the parenthetical descriptor tucked into the row 3 / row 4 gap. */
.he-hey       { left: 0.2%; top: 4%; }
/* baseline (not center) so the Pacifico "Cassidy" sits on the same
   baseline as the serif "I'm" and ",". */
.he-name      { left: 30%; top: 4%; align-items: baseline; }
/* plain block (not the shared inline-flex) so the wrapper sizes exactly to
   the avatar circle and never clips its bottom. Tucked up close to
   "Cassidy."; z-index keeps the full circle on top if it overlaps the word. */
.he-avatar    { left: calc(58% + 1in); top: 2%; display: block; z-index: 4; }
.he-and       { right: 0.8%; top: 23%; }
.he-tell      { left: 0.3%; top: 42%; }
.he-italic-a  { left: 10%;  top: 42%; }
.he-clarity   { left: 6%;   top: 61%; }
/* right-aligned to the same edge as .he-and so "deserve" ends flush with "brands" */
.he-deserve   { right: 0.8%; top: 80%; }
.he-tagline   {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.1vw, 18px);
  justify-content: center;
  left: 68%;
  top: 45%;
}
.he-paren {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 0.78em;   /* scales with the headline; sized to tuck in the gap */
  line-height: 0.55;
  color: var(--text);
}
.he-tagline-text {
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.35vw, 19px);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-soft);
  line-height: 1.28;
  text-align: center;
  /* The .he parent forces nowrap; the descriptor wraps inside the parens. */
  white-space: normal;
  max-width: 20ch;
}

/* Avatar rotator — 4 photos cross-fading in a continuous loop, like Dyotanya */
.avatar-rotator {
  position: relative;
  display: block;
  /* em-based so the avatar always scales with the headline font */
  width: 1em;
  height: 1em;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent);
  isolation: isolate;
}
.avatar-rotator img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  animation: avatar-cycle 5s infinite ease-in-out;
}
.avatar-rotator img:nth-child(1) { animation-delay: 0s; }
.avatar-rotator img:nth-child(2) { animation-delay: 1s; }
.avatar-rotator img:nth-child(3) { animation-delay: 2s; }
.avatar-rotator img:nth-child(4) { animation-delay: 3s; }
.avatar-rotator img:nth-child(5) { animation-delay: 4s; }
@keyframes avatar-cycle {
  0%, 18%   { opacity: 1; }
  22%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .avatar-rotator img { animation: none; }
  .avatar-rotator img:nth-child(1) { opacity: 1; }
}

/* Full-width pill CTA — tall pill sitting on a hard blue shadow box */
.hero-cta-full {
  display: block;
  width: 100%;
  text-align: center;
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: clamp(36px, 4.3vw, 54px) clamp(20px, 3vw, 40px);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(14px, 1.1vw, 16px);
  letter-spacing: 0.22em;
  color: var(--text);
  background: var(--bg); /* opaque so the blue shadow only shows at the edges */
  box-shadow: 0 -8px 0 3px var(--accent); /* blue box above only */
  transition: background 0.25s ease, color 0.25s ease,
              box-shadow 0.25s ease, transform 0.25s ease, letter-spacing 0.25s ease;
  margin-top: clamp(14px, 1.7vw, 20px);
  margin-bottom: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}
.hero-cta-full:hover {
  background: var(--accent);
  color: var(--bg);
  letter-spacing: 0.28em;
  transform: translateY(-8px);            /* presses up into its shadow */
  box-shadow: 0 -4px 0 3px var(--accent);
}

@media (max-width: 900px) {
  .hero {
    height: auto;
    min-height: auto;
    padding: clamp(64px, 14vw, 86px) clamp(34px, 8vw, 46px) clamp(24px, 7vw, 34px);
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Stacked layout flows naturally — drop the fixed em height used by
       the desktop absolute composition. */
    height: auto;
    font-size: clamp(38px, 12vw, 50px);
    line-height: 1;
    text-align: left;
    gap: 0;
  }
  .he-hey, .he-name, .he-avatar, .he-and, .he-tell, .he-tagline,
  .he-italic-a, .he-clarity, .he-deserve {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-content: flex-start;
    white-space: normal;
    min-width: 0;
    position: static;
  }
  .hero-grid .he {
    position: static;
    white-space: normal;
  }
  .he:not(.he-tagline):not(.he-avatar) {
    display: block;
  }
  .he-avatar {
    margin: 0.12em 0 0.1em;
  }
  .he-tagline {
    display: grid;
    grid-template-columns: auto minmax(0, 18ch) auto;
    align-items: center;
    justify-self: start;
    justify-content: flex-start;
    margin: 0.18em 0 0.2em;
    gap: 8px;
    width: auto;
    max-width: 100%;
  }
  .he-paren {
    font-size: 1.25em;
  }
  .he-tagline-text {
    max-width: 18ch;
    text-align: left;
  }
  .he-italic-c,
  .he-italic-e {
    font-size: 0.9em;
  }
  .hero-cta-full {
    padding: clamp(30px, 9vw, 42px) 18px;
    margin-top: clamp(18px, 5vw, 26px);
  }
}

/* ============================================================
   PITCH BANNER — full-bleed deep-blue editorial pitch section
   Photo is full-bleed background (blue-tinted via blend mode);
   editorial text overlays the whole thing.
   ============================================================ */
.pitch {
  position: relative;
  z-index: 300;            /* sits above the fixed burger (z-index 200) */
  background: #1e40af; /* deep cobalt */
  color: #fff;
  /* Width-proportional height so the absolute text composition keeps a
     constant ratio — a vh-based height collapsed the scatter on short
     viewports. */
  min-height: clamp(800px, 70vw, 1100px);
  overflow: hidden;
  border-radius: clamp(36px, 3.5vw, 56px);
  margin: clamp(40px, 5vw, 80px) clamp(20px, 2.5vw, 48px);
  isolation: isolate;
  padding: clamp(72px, 8vw, 120px) clamp(28px, 3vw, 56px) clamp(160px, 15vw, 220px);
}
/* The photo/veil still need to clip to the rounded card — so give them
   their own clipping container via inherited border-radius. */
.pitch-photo,
.pitch-veil {
  border-radius: inherit;
  overflow: hidden;
}

/* Photo on the right half of the panel — like the Dyotanya reference composition.
   The asset is a transparent cutout, so no mask or fade is needed — her edges
   sit cleanly on the cobalt panel. */
.pitch-photo {
  position: absolute;
  inset: 0 0 0 50%;        /* photo lives on the right 50% of the panel */
  z-index: 1;
  pointer-events: none;
}
.pitch-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Anchor head/face to the top of the container; her body bleeds off the
     bottom (clipped by .pitch overflow), matching the reference composition. */
  object-position: center top;
  /* Scale up so her face fills the panel like the reference — face ~30% of
     panel height. Origin at her face keeps the face position locked while
     body extends past the bottom edge (clipped by .pitch overflow).
     translateY shifts her up 1 inch in final pixels. */
  transform: translateY(-1in) scale(1.8);
  transform-origin: 50% 15%;
  /* No duotone — cutout keeps natural olive/skin tones (reference model also
     has full-color red turtleneck on flat blue, not blended). */
}

/* Gradient veil for text legibility on the left side (where the text lives) */
/* Veil disabled — text now lives over pure cobalt on the left, and the
   right-side photo is a cutout we don't want to tint. Kept the element for
   structural compatibility; it just renders nothing. */
.pitch-veil {
  display: none;
}
.pitch-aside {
  position: absolute;
  z-index: 4;
  left: clamp(40px, 5vw, 96px);
  top: 58%;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  width: clamp(300px, 25vw, 420px);
  margin: 0;
  color: #fff;
  font-size: clamp(15px, 1.2vw, 20px);
  line-height: 1.35;
}
.pitch-aside span {
  font-family: var(--font-serif);
  font-size: clamp(72px, 6vw, 116px);
  font-weight: 300;
  line-height: 0.6;
}

/* Editorial text — all rows at the same large size, including the parens row.
   White serif on cobalt, staggered margin-left for the Dyotanya-style rhythm. */
.pitch-art {
  position: absolute;
  inset: 0;
  z-index: 4;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(74px, 7.1vw, 136px);
  line-height: 0.9;
  letter-spacing: 0;
  color: #fff;
  pointer-events: none;
}
.pa {
  position: absolute;
  display: inline-block;
  white-space: nowrap;
}
.pa em { font-style: italic; font-weight: 400; }
.pa-row1 { top: 12%; left: 13%; }
.pa-row2 { top: 23%; left: 4%; }
.pa-row3 { top: 34%; left: 42%; }
.pa-row4 { top: 45%; left: 5%; }
.pa-row5 { top: 45%; left: 18%; }
.pa-row6 { top: 56%; left: 40%; }

/* White cards along the bottom — overshoot the section's edges so they
   visually "break out" of the blue card, like Dyotanya's pitch banner. */
.pitch-cards {
  position: absolute;
  left: clamp(-130px, -8vw, -48px);
  right: clamp(-130px, -8vw, -48px);
  bottom: clamp(94px, 10vw, 150px);
  display: flex;
  width: max-content;
  gap: clamp(8px, 1vw, 14px);
  z-index: 5;
  animation: pitch-card-scroll 16s linear infinite;
  will-change: transform;
}
.pitch-cards:hover {
  animation-play-state: paused;
}
@keyframes pitch-card-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - clamp(4px, 0.5vw, 7px))); }
}
.pc {
  background: var(--bg-card);
  color: var(--text);
  border-radius: clamp(16px, 1.6vw, 24px);
  padding: clamp(20px, 2vw, 34px) clamp(30px, 3vw, 56px);
  display: flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;        /* card width = one-line text + padding */
  white-space: nowrap;   /* keep each card on a single line */
  min-height: clamp(118px, 10vw, 156px);
  font-family: var(--font-serif);
  font-size: clamp(42px, 3.1vw, 66px);
  font-weight: 300;
  line-height: 0.98;
  overflow: hidden;
}
.pc-arrow {
  flex-basis: clamp(108px, 8vw, 150px);
  padding: 0;
}
.pc-arrow a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  border-radius: clamp(16px, 1.6vw, 24px);
  min-height: clamp(118px, 10vw, 156px);
  transition: background 0.2s ease, color 0.2s ease;
}
.pc-arrow a:hover { background: var(--text); color: var(--bg-card); }
.pc-arrow svg { width: clamp(24px, 2vw, 36px); height: clamp(24px, 2vw, 36px); }
.pc-icon { display: none; }

@media (max-width: 820px) {
  .pitch {
    grid-template-columns: 1fr;
    min-height: 760px;
    padding-bottom: 180px;
  }
  /* No tuck-under on small screens — the card flows normally below the pitch. */
  .process-overlay {
    margin-top: clamp(16px, 2vw, 36px);
    padding-top: clamp(48px, 6vw, 84px);
  }
  .pitch-text { padding: clamp(60px, 8vw, 100px) clamp(24px, 5vw, 48px) clamp(40px, 5vw, 60px); }
  .pitch-photo { aspect-ratio: 4/5; order: -1; }
  .pitch-cards {
    position: absolute;
    left: -64px;
    right: -64px;
    bottom: 52px;
    margin: 0;
    animation-duration: 12s;
  }
  .pc-arrow { display: none; }
  .pc {
    min-height: 116px;
    font-size: clamp(34px, 10vw, 48px);
  }
  .pitch-art {
    font-size: clamp(52px, 14vw, 86px);
  }
  .pa-row1 { top: 10%; left: 12%; }
  .pa-row2 { top: 21%; left: 7%; }
  .pa-row3 { top: 31%; left: 45%; }
  .pa-row4 { top: 42%; left: 14%; }
  .pa-row5 { top: 50%; left: 20%; }
  .pa-row6 { top: 61%; left: 8%; }
  .pitch-aside {
    display: none;
  }
  .pa-tagline { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pitch-cards {
    animation: none;
    overflow-x: auto;
    width: auto;
    padding-inline: clamp(20px, 4vw, 32px);
  }
}

/* ============================================================
   INTRO / ABOUT
   ============================================================ */
.col-photo {
  display: flex;
  justify-content: center;
}
.photo-frame {
  width: clamp(220px, 32vw, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-soft);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(129, 174, 217, 0.18);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.photo-frame .photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: var(--accent-soft);
  color: var(--text-soft);
  font-family: var(--font-script);
  font-size: 56px;
}
.photo-placeholder small {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: 0.04em;
  margin-top: 8px;
  max-width: 180px;
  line-height: 1.4;
}

/* ============================================================
   CLIENTS row
   ============================================================ */
.clients {
  background: var(--bg);
}
/* Stepped horizontal ticker — clicks forward one card at a time
   (different feel from the smooth tools marquee). */
.client-ticker {
  margin-top: 20px;
  overflow: hidden;
  overflow: clip;
  width: 100%;
  max-width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 60px, #000 calc(100% - 60px), transparent);
          mask-image: linear-gradient(to right, transparent, #000 60px, #000 calc(100% - 60px), transparent);
}
.client-row {
  display: flex;
  gap: clamp(20px, 2vw, 32px);
  width: max-content;
  animation: client-tick 12s steps(5, end) infinite;
  padding: 4px 0; /* room for the card shadow */
}
.client-ticker:hover .client-row { animation-play-state: paused; }
@keyframes client-tick {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .client-row { animation: none; }
}
.client {
  background: var(--bg-card);
  border-radius: var(--r-card);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  min-width: clamp(220px, 22vw, 320px);
  flex-shrink: 0;
  gap: 20px;
  position: relative;
  border: 1px solid var(--border);
}
.client-num {
  position: absolute;
  top: 20px;
  left: 24px;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 18px;
  color: var(--text-mute);
}
.client img {
  max-height: 50px;
  max-width: 140px;
  filter: grayscale(1);
  opacity: 0.75;
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.client img.client-logo-salesforce {
  max-width: 190px;
  max-height: 112px;
  filter: none;
  opacity: 1;
}
.client img.client-logo-slidebelts {
  max-width: 238px;
  max-height: 72px;
  padding: 16px 20px;
  background: #111;
  border-radius: 2px;
  filter: none;
  opacity: 1;
}
.client img.client-logo-wide {
  max-width: 210px;
  max-height: 92px;
  filter: none;
  opacity: 0.92;
}
.client img.client-logo-tall {
  max-width: 180px;
  max-height: 132px;
  filter: none;
  opacity: 0.92;
}
.client:hover img { opacity: 1; filter: grayscale(0); }
.client-wordmark {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.published-proof {
  max-width: 58ch;
  margin: -6px 0 clamp(22px, 3vw, 38px) clamp(34px, 5vw, 86px);
  color: var(--text-soft);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.5;
}
.published-work {
  position: relative;
  margin-top: clamp(44px, 5vw, 72px);
}
.published-work::before {
  content: "";
  position: absolute;
  left: clamp(16px, 7vw, 106px);
  top: clamp(-54px, -4vw, -30px);
  width: clamp(160px, 22vw, 320px);
  height: clamp(160px, 22vw, 320px);
  border: 1px solid rgba(129, 174, 217, 0.26);
  border-radius: 50%;
  transform: rotate(-18deg);
  pointer-events: none;
}
.published-work-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.56fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: stretch;
  min-height: clamp(340px, 29vw, 460px);
  padding: clamp(34px, 4.4vw, 68px);
  background:
    radial-gradient(circle at 92% 16%, rgba(129, 174, 217, 0.3), transparent 24%),
    linear-gradient(135deg, #08296f 0%, #123f98 48%, #0b2f76 100%);
  color: var(--bg-card);
  border: 1px solid rgba(129, 174, 217, 0.64);
  border-radius: clamp(20px, 1.8vw, 28px);
  box-shadow:
    16px 20px 0 rgba(129, 174, 217, 0.58),
    0 24px 52px rgba(19, 55, 98, 0.18);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}
.published-work-feature::before {
  content: "";
  position: absolute;
  inset: 8% -10% 12% 52%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transform: rotate(24deg);
  pointer-events: none;
}
.published-work-feature::after {
  content: "published";
  position: absolute;
  right: clamp(26px, 3vw, 44px);
  bottom: clamp(22px, 3vw, 38px);
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.published-work-feature:hover,
.published-work-feature:focus-visible {
  transform: translate(-5px, -6px);
  box-shadow:
    22px 26px 0 rgba(129, 174, 217, 0.66),
    0 30px 62px rgba(19, 55, 98, 0.2);
}
.published-work-feature:focus-visible,
.published-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
.published-feature-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.published-pill,
.published-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  background: rgba(129, 174, 217, 0.18);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}
.published-pill {
  padding: 0 0 8px;
  margin-bottom: clamp(30px, 4vw, 58px);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0;
}
.published-badge {
  padding: 0 0 7px;
  margin-bottom: 22px;
  background: transparent;
  border-bottom: 1px solid var(--accent);
}
.published-publication {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(11px, 0.9vw, 13px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.published-work-feature .published-publication {
  color: rgba(255, 255, 255, 0.58);
}
.published-feature-title,
.published-title {
  display: block;
  font-family: var(--font-serif);
  font-weight: 300;
  letter-spacing: 0;
  color: var(--text);
}
.published-work-feature .published-feature-title {
  color: var(--bg-card);
}
.published-feature-title {
  max-width: 14ch;
  margin-top: clamp(12px, 1.5vw, 18px);
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 0.92;
}
.published-angle {
  display: block;
  max-width: 36ch;
  margin-top: auto;
  padding-top: clamp(24px, 3vw, 42px);
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.45;
}
.published-work-feature .published-angle {
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.74);
}
.published-masthead {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding-left: clamp(22px, 3vw, 44px);
  border-left: 1px solid rgba(255, 255, 255, 0.36);
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(48px, 5.3vw, 82px);
  line-height: 0.82;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.88);
}
.published-masthead span:nth-child(2) {
  margin-left: clamp(22px, 3vw, 48px);
  font-style: italic;
}
.published-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.2vw, 32px);
  margin-top: clamp(38px, 4vw, 62px);
  align-items: start;
}
.published-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(220px, 18vw, 286px);
  padding: clamp(24px, 2.4vw, 34px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(129, 174, 217, 0.56);
  border-radius: clamp(18px, 1.5vw, 24px);
  color: var(--text);
  box-shadow:
    11px 14px 0 rgba(129, 174, 217, 0.5),
    0 18px 40px rgba(35, 65, 92, 0.09);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}
.published-card::before {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -36px;
  width: 126px;
  height: 126px;
  border: 1px solid rgba(129, 174, 217, 0.2);
  border-radius: 50%;
  z-index: -1;
}
.published-card:nth-child(2),
.published-card:nth-child(5),
.published-card:nth-child(8) {
  margin-top: clamp(22px, 3vw, 48px);
}
.published-card:nth-child(3),
.published-card:nth-child(6) {
  margin-top: clamp(8px, 1.4vw, 18px);
}
.published-card:hover,
.published-card:focus-visible {
  transform: translate(-4px, -5px);
  box-shadow:
    17px 20px 0 rgba(129, 174, 217, 0.62),
    0 24px 48px rgba(35, 65, 92, 0.12);
}
.published-title {
  margin-top: clamp(9px, 1.1vw, 15px);
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.02;
  max-width: 11ch;
}
.published-card .published-angle {
  width: calc(100% - clamp(58px, 5vw, 76px));
  max-width: 30ch;
  padding-top: clamp(24px, 3vw, 48px);
  padding-right: 0;
}
.published-arrow {
  position: absolute;
  right: clamp(22px, 2.4vw, 30px);
  bottom: clamp(22px, 2.4vw, 30px);
  display: grid;
  place-items: center;
  width: clamp(42px, 4vw, 54px);
  height: clamp(42px, 4vw, 54px);
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.3vw, 34px);
  color: var(--text);
  background: var(--bg-card);
  line-height: 1;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.published-card:hover .published-arrow,
.published-card:focus-visible .published-arrow {
  background: var(--accent);
  color: var(--bg-card);
  transform: translateX(4px);
}
.published-grid.is-prepared .published-card {
  opacity: 0;
}
.published-grid.is-visible .published-card {
  animation: publishedCardIn 0.72s ease both;
}
.published-grid.is-visible .published-card:nth-child(1) { animation-delay: 0ms; }
.published-grid.is-visible .published-card:nth-child(2) { animation-delay: 90ms; }
.published-grid.is-visible .published-card:nth-child(3) { animation-delay: 180ms; }
.published-grid.is-visible .published-card:nth-child(4) { animation-delay: 270ms; }
.published-grid.is-visible .published-card:nth-child(5) { animation-delay: 360ms; }
.published-grid.is-visible .published-card:nth-child(6) { animation-delay: 450ms; }
.published-grid.is-visible .published-card:nth-child(7) { animation-delay: 540ms; }
.published-grid.is-visible .published-card:nth-child(8) { animation-delay: 630ms; }
@keyframes publishedCardIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 980px) {
  .published-work-feature {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
  }
  .published-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .published-card:nth-child(2),
  .published-card:nth-child(5),
  .published-card:nth-child(8),
  .published-card:nth-child(3),
  .published-card:nth-child(6) {
    margin-top: 0;
  }
  .published-card:nth-child(even) {
    margin-top: 28px;
  }
}
@media (max-width: 680px) {
  .section.clients {
    margin-inline: 12px;
    padding-inline: 18px;
  }
  .section.clients .container {
    padding-inline: 0;
  }
  .published-proof {
    margin-left: 0;
  }
  .published-work-feature {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 30px 26px 34px;
  }
  .published-work-feature::after {
    display: none;
  }
  .published-feature-title {
    font-size: clamp(38px, 13vw, 58px);
  }
  .published-masthead {
    min-height: 140px;
    padding: 26px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.36);
    font-size: clamp(52px, 16vw, 78px);
  }
  .published-grid {
    grid-template-columns: 1fr;
  }
  .published-card:nth-child(even) {
    margin-top: 0;
  }
  .published-card {
    min-height: 200px;
    box-shadow:
      9px 12px 0 rgba(129, 174, 217, 0.5),
      0 16px 34px rgba(35, 65, 92, 0.08);
  }
  .published-title {
    max-width: 14ch;
  }
}
@media (prefers-reduced-motion: reduce) {
  .published-grid.is-prepared .published-card,
  .published-grid.is-visible .published-card {
    opacity: 1;
    animation: none;
    transform: none;
  }
  .published-card:hover,
  .published-card:focus-visible,
  .published-work-feature:hover,
  .published-work-feature:focus-visible {
    transform: none;
  }
}

/* ============================================================
   SERVICES — "my process" trigger (opens the process modal)
   ============================================================ */
.services-trigger {
  position: relative;
  height: 100%;
  min-height: 0;
}
.services-photo {
  position: absolute;
  top: clamp(4px, 1vw, 18px);
  left: 0;
  width: clamp(220px, 23vw, 292px);
  margin: 0;
  border-radius: clamp(12px, 1.2vw, 18px);
  overflow: hidden;
  background: var(--accent-soft);
}
.services-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  /* Face sits high in the source — crop with head room above her face so
     both her smile AND the notebook in her hands fit in the square. */
  object-position: center 10%;
}
.services-trigger-main {
  position: absolute;
  left: 0;
  bottom: 0;
}
.services-trigger-main .kicker { display: none; }

.process-open {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 24px);
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
}
.process-open-label {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.02em;
  line-height: 1;
  transition: color 0.3s ease;
}
.process-open-arrow {
  width: clamp(52px, 5vw, 74px);
  height: clamp(52px, 5vw, 74px);
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}
.process-open-arrow svg { width: 100%; height: 100%; }
.process-open:hover .process-open-arrow,
.process-open:focus-visible .process-open-arrow {
  transform: translateX(8px) rotate(-45deg);
  color: var(--accent);
}
.process-open:hover .process-open-label,
.process-open:focus-visible .process-open-label { color: var(--accent); }
.process-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 8px; }

.services-trigger-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(320px, 38vw, 460px);
}
.services-trigger-copy p {
  font-size: clamp(15px, 1.25vw, 18px);
  color: var(--text-soft);
  max-width: 34ch;
}

/* "My process" — overlay card. It rides UP over the bottom edge of the pitch
   banner and renders ON TOP of it (z-index above .pitch's 300), so the gray
   card visibly overlays the blue section. The negative margin = pitch's
   bottom margin + the scrolling-cards' bottom offset, so the card's top edge
   lands just below the pills. Same horizontal margin as .pitch → identical
   width, so the overlay aligns edge-to-edge. */
.process-overlay {
  z-index: 301;
  height: 684px;
  /* +16px eases the pull-up so the card top sits a touch below the
     scrolling cards instead of flush against them. */
  margin-top: calc(-1 * (clamp(40px, 5vw, 80px) + clamp(94px, 10vw, 150px)) + 16px);
  padding-top: clamp(56px, 6vw, 96px);
}
.process-overlay .container {
  height: 100%;
}

@media (max-width: 760px) {
  .process-overlay {
    height: auto;
  }
  .services-trigger {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 28px;
    min-height: 0;
  }
  .services-photo {
    position: static;
    grid-column: 1;
    grid-row: 1;
    width: 100%;
  }
  .services-trigger-main {
    position: static;
    grid-column: 1;
    grid-row: 2;
  }
  .services-trigger-main .kicker { display: block; }
  .services-trigger-copy {
    position: static;
    grid-column: 1;
    grid-row: 3;
    width: auto;
  }
  .services-photo img { aspect-ratio: 5 / 4; }
}

/* ============================================================
   VALUES — principles board
   ============================================================ */
.section.values {
  padding-top: clamp(54px, 6.8vw, 86px);
  padding-bottom: clamp(64px, 7vw, 104px);
}
.values-head {
  min-height: clamp(150px, 14vw, 210px);
  position: relative;
}
.values-title {
  margin: 0;
  padding-left: clamp(34px, 6vw, 92px);
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(54px, 6.4vw, 92px);
  line-height: 0.88;
  letter-spacing: 0;
  color: var(--text);
}
.values-title span { display: block; }
.values-title span:nth-child(2) { margin-left: clamp(118px, 12vw, 178px); }
.values-title span:nth-child(3) { margin-left: clamp(178px, 18vw, 270px); }
.values-meta {
  position: absolute;
  right: 0;
  top: clamp(58px, 7vw, 104px);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.25;
}
.values-paren {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(64px, 7.5vw, 104px);
  line-height: 0.62;
  color: var(--text);
}
.values-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.92fr) minmax(280px, 1.24fr) minmax(220px, 0.92fr);
  grid-template-rows: repeat(2, minmax(260px, 1fr));
  gap: clamp(20px, 2vw, 34px);
  align-items: stretch;
  min-height: clamp(560px, 48vw, 700px);
  margin-top: clamp(10px, 1.8vw, 26px);
}
.principle {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  padding: clamp(28px, 2.6vw, 42px);
  border: 1px solid rgba(129, 174, 217, 0.5);
  border-radius: clamp(18px, 1.5vw, 24px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    12px 16px 0 rgba(129, 174, 217, 0.52),
    0 18px 42px rgba(35, 65, 92, 0.1);
  overflow: hidden;
  isolation: isolate;
}
.principle-authentic {
  grid-column: 1;
  grid-row: 1;
}
.principle-personality {
  grid-column: 3;
  grid-row: 1;
}
.principle-detail {
  grid-column: 1;
  grid-row: 2;
}
.principle-partner {
  grid-column: 3;
  grid-row: 2;
}
.principle::before {
  content: "";
  display: block;
  margin-bottom: clamp(34px, 4vw, 56px);
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: clamp(19px, 1.8vw, 27px);
  line-height: 1;
}
.principle-authentic::before { content: "01"; }
.principle-personality::before { content: "02"; }
.principle-detail::before { content: "03"; }
.principle-partner::before { content: "04"; }
.principle::after {
  position: absolute;
  z-index: -1;
  color: rgba(129, 174, 217, 0.13);
  pointer-events: none;
}
.principle-authentic::after {
  content: "“";
  top: 18px;
  right: 30px;
  font-family: Georgia, serif;
  font-size: clamp(92px, 8vw, 136px);
  line-height: 0.8;
}
.principle-personality::after {
  content: "";
  top: 30px;
  right: 34px;
  width: clamp(58px, 6vw, 86px);
  height: clamp(58px, 6vw, 86px);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(129, 174, 217, 0.18) 0 5deg, transparent 5deg 15deg);
  -webkit-mask: radial-gradient(circle, transparent 0 18%, #000 19% 100%);
          mask: radial-gradient(circle, transparent 0 18%, #000 19% 100%);
}
.principle-detail::after {
  content: "";
  right: -20px;
  bottom: -18px;
  width: clamp(118px, 10vw, 156px);
  height: clamp(86px, 8vw, 128px);
  background:
    radial-gradient(ellipse at 70% 65%, rgba(51, 51, 51, 0.16), transparent 46%),
    radial-gradient(ellipse at 50% 72%, rgba(129, 174, 217, 0.22), transparent 55%);
  filter: blur(1px);
}
.principle-partner::after {
  content: "";
  right: -34px;
  bottom: -34px;
  width: clamp(110px, 11vw, 170px);
  height: clamp(110px, 11vw, 170px);
  border: 1px solid rgba(129, 174, 217, 0.22);
  border-radius: 50%;
  box-shadow: -42px -18px 0 -8px rgba(129, 174, 217, 0.08);
}
.principle h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(31px, 3vw, 45px);
  line-height: 1.02;
  letter-spacing: 0;
  max-width: 9ch;
}
.principle p {
  color: var(--text-soft);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.48;
  max-width: 25ch;
  margin-top: clamp(28px, 4vw, 58px);
}
.principle-image {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 100%;
  min-height: 100%;
  aspect-ratio: auto;
  margin: 0;
  transform: none;
  border-radius: clamp(28px, 2.9vw, 42px);
  overflow: hidden;
  background: #123f98;
  box-shadow:
    0 0 0 1px rgba(129, 174, 217, 0.55),
    18px 22px 0 rgba(129, 174, 217, 0.58),
    0 24px 54px rgba(19, 55, 98, 0.22);
}
.principle-image.reveal.is-prepared {
  transform: translateY(24px);
}
.principle-image.reveal.is-visible {
  transform: translateY(0);
}
.principle-photo,
.principle-photo img,
.principle-photo-wash {
  position: absolute;
  inset: 0;
}
.principle-photo {
  /* Solid cobalt base: the luminosity blend pulls the portrait toward the
     blue editorial treatment in the reference card. */
  background: #0e2a78;
}
.principle-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.principle-photo-base {
  object-position: 54% 50%;
  filter: saturate(1.18) contrast(1.08) brightness(0.82);
  mix-blend-mode: luminosity;
}
.principle-photo-echo {
  display: none;
}
.principle-photo-wash {
  background:
    radial-gradient(circle at 55% 54%, rgba(255, 247, 5, 0.18), transparent 18%),
    linear-gradient(180deg, rgba(9, 41, 111, 0.62) 0%, rgba(14, 49, 124, 0.22) 38%, rgba(8, 35, 98, 0.72) 100%),
    linear-gradient(90deg, rgba(5, 31, 92, 0.86) 0%, rgba(10, 48, 122, 0.58) 42%, rgba(13, 53, 128, 0.78) 100%);
}
.principle-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 24%),
    radial-gradient(circle at 50% 50%, transparent 44%, rgba(4, 24, 70, 0.28) 100%);
  pointer-events: none;
}
/* Voice card: image already has the title, quote, and blue treatment baked in,
   so suppress the luminosity blend, wash, vignette, and figcaption overlay. */
.principle-image-baked .principle-photo { background: transparent; }
.principle-image-baked .principle-photo-base {
  filter: none;
  mix-blend-mode: normal;
  object-position: center center;
}
.principle-image-baked::after { display: none; }
.principle-image-baked figcaption { display: none; }
.principle-image figcaption {
  position: absolute;
  inset: clamp(42px, 4.6vw, 74px) clamp(34px, 4.2vw, 70px) clamp(42px, 4.8vw, 78px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: auto;
  color: var(--bg-card);
  z-index: 2;
}
.principle-image figcaption span {
  display: block;
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(62px, 6.1vw, 96px);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: none;
}
.principle-image figcaption em {
  display: block;
  max-width: 18ch;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.01em;
}
.values-next {
  display: none;
}
.values-arrow {
  display: grid;
  place-items: center;
  width: clamp(50px, 5vw, 66px);
  height: clamp(50px, 5vw, 66px);
  border: 1.5px solid var(--text);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 0.74em;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.values-next:hover .values-arrow {
  transform: translateX(5px);
  background: var(--text);
  color: var(--bg-card);
}
@media (max-width: 980px) {
  .values-head { min-height: auto; }
  .values-title {
    padding-left: 0;
    font-size: clamp(50px, 10vw, 78px);
  }
  .values-title span:nth-child(2),
  .values-title span:nth-child(3) {
    margin-left: 0;
  }
  .values-meta {
    position: static;
    margin-bottom: 18px;
  }
  .values-meta { margin-top: 22px; justify-content: flex-start; }
  .values-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    gap: 28px;
    min-height: 0;
    margin-top: 34px;
  }
  .principle,
  .principle-image,
  .values-next {
    position: relative;
    inset: auto;
    transform: none;
    width: 100%;
  }
  .principle-image.reveal.is-prepared,
  .principle-image.reveal.is-visible {
    transform: none;
  }
  .principle {
    min-height: 300px;
    grid-column: auto;
    grid-row: auto;
  }
  .principle-image {
    grid-column: 1 / -1;
    grid-row: 1;
    aspect-ratio: 4 / 5;
    min-height: 520px;
  }
}
@media (max-width: 680px) {
  .section.values {
    margin-inline: 12px;
    padding-inline: 18px;
  }
  .section.values .container {
    padding-inline: 0;
  }
  .values-board { grid-template-columns: 1fr; }
  .principle-image {
    grid-column: auto;
    grid-row: auto;
    max-width: none;
    min-height: 560px;
  }
  .principle {
    min-height: 260px;
  }
  .principle-image figcaption {
    inset: 34px 28px 38px;
  }
  .principle-image figcaption span {
    font-size: clamp(58px, 19vw, 86px);
  }
  .principle-image figcaption em {
    font-size: clamp(20px, 6.2vw, 28px);
  }
}

/* ============================================================
   TOOLS — "My helpers": hover-to-expand helper buttons + reel
   ============================================================ */
.section.tools {
  padding: clamp(48px, 6vw, 84px) clamp(28px, 3vw, 56px);
}
.tools-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.85fr);
  gap: clamp(28px, 4vw, 64px);
}
@media (max-width: 880px) {
  .tools-layout { grid-template-columns: 1fr; }
}

.tools-main {
  display: flex;
  flex-direction: column;
}
.tools-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.tools-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.tools-paren {
  align-self: flex-start;
  margin: clamp(18px, 2.4vw, 30px) 0 clamp(28px, 4vw, 46px);
  padding: 11px 22px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 13.5px;
  font-style: italic;
  color: var(--text-mute);
}
.tools-paren-mark {
  font-family: var(--font-serif);
  font-style: normal;
  color: var(--accent);
}

/* Helper buttons — a tight, overlapping circle cluster.
   Each .helper is a FIXED 72x72 slot in the flex flow; the visible pill is
   absolutely positioned inside it, so only the hovered pill grows. The slots
   never change size, so neighbouring buttons can never reflow ("no glitch"). */
.helper-stack {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.helper-row {
  /* shared so both the expanding pill and the sliding siblings use one value */
  --body-w: min(286px, calc(100vw - 128px));
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  padding: 4px 4px 14px; /* bottom room for the hard shadow */
}

/* Fixed-size slot — never resizes, so it can't push its siblings around. */
.helper {
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Overlap the tool circles into a cluster. */
.helper + .helper { margin-left: -16px; }
/* The husband / developer button sits on its own row, below the cluster. */

/* The visible pill — absolutely positioned, so growing it never reflows. */
.helper-pill {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  width: 72px;
  height: 72px;
  background: var(--bg-card);
  border: 1.5px solid var(--text);
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 5px 6px 0 0 var(--text); /* hard black shadow behind the button */
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s ease, background-color 0.3s ease;
}
.helper-icon {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}
.helper-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.helper-body {
  box-sizing: border-box;
  width: var(--body-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 22px;
  text-align: left;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.helper-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.helper-desc {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-soft);
}

/* Hover / keyboard focus — lift this slot above its neighbours and expand
   only its own pill. Every other button stays perfectly still. */
.helper:hover,
.helper:focus-visible {
  z-index: 5;
  outline: none;
}
.helper:hover .helper-pill,
.helper:focus-visible .helper-pill {
  width: calc(72px + var(--body-w));
  box-shadow: 7px 9px 0 0 var(--text); /* shadow grows with the lift */
}
.helper:hover .helper-body,
.helper:focus-visible .helper-body {
  opacity: 1;
  transition-delay: 0.12s;
}
/* Every button AFTER the hovered one slides right to clear the expanding
   pill — so the pill never covers a neighbour (the Dyotanya behaviour). */
.helper:hover ~ .helper,
.helper:focus-visible ~ .helper {
  transform: translateX(var(--body-w));
}

/* Husband / developer — circular photo avatar with monogram fallback */
.helper-avatar {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  background: var(--accent);
}
.helper-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.helper-avatar-fallback {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 28px;
  color: #fff;
}
.helper--person .helper-pill { border-color: var(--accent); }
/* The avatar fills its whole 72px slot (tool logos are only 32px), so the
   text sits flush against the photo — nudge it over for breathing room. */
.helper--person .helper-body { padding-left: 16px; }
.helper--person:hover .helper-pill,
.helper--person:focus-visible .helper-pill {
  background: var(--accent-soft);
}

/* Small screens — drop the overlap, wrap into a tidy centred grid. The
   fixed slots make wrapping perfectly stable; pills still expand as an
   overlay without disturbing anything. */
@media (max-width: 540px) {
  .helper-stack { align-items: center; }
  .helper-row {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }
  .helper + .helper { margin-left: 0; }
  /* Rows wrap into a grid here — no room to slide, so pills overlay instead. */
  .helper:hover ~ .helper,
  .helper:focus-visible ~ .helper { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .helper-pill,
  .helper-body,
  .helper { transition: none; }
}

/* Video reel */
.tools-reel {
  position: relative;
  z-index: 303;
  margin: 0;
  align-self: start;
  aspect-ratio: 3 / 4;
  border-radius: clamp(20px, 2vw, 28px);
  overflow: hidden;
  background: #000;
}
.reel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 17px 32px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
}
.reel-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}
.reel-avatar img { width: 100%; height: 100%; object-fit: cover; }
.reel-handle {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}
.reel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0;
  padding: 44px 20px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  max-width: none;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.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;
}

/* ---- Section head: scattered serif headline, meta ---- */
.kudos-head {
  position: relative;
  padding-top: clamp(8px, 2vw, 26px);
}
.kudos-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(52px, 7.4vw, 116px);
  line-height: 0.94;
  letter-spacing: -0.01em;
  color: var(--text);
}
.kt { display: block; }
.kt-1 { margin-left: clamp(76px, 9vw, 162px); }
.kt-2 { margin-left: clamp(0px, 2vw, 38px); }
.kt-3 { margin-left: clamp(148px, 25vw, 430px); }
.kt-4 { margin-left: clamp(54px, 11vw, 196px); }
.kudos-meta {
  position: absolute;
  top: clamp(40px, 8vw, 148px);
  right: clamp(0px, 3vw, 56px);
  display: flex;
  align-items: center;
  gap: 8px;
}
.km-paren {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(64px, 8vw, 132px);
  line-height: 0.6;
  color: var(--text);
}
.km-text {
  font-size: clamp(12px, 1.2vw, 15px);
  line-height: 1.45;
  color: var(--text-soft);
  white-space: nowrap;
}

/* ---- Scattered audio-player cards ---- */
.kudos-scatter {
  position: relative;
  margin-top: clamp(16px, 1.9vw, 30px);
  min-height: clamp(420px, 39vw, 560px);
}
.kudo-card {
  position: absolute;
  width: max-content;
  max-width: 470px;
}
.kudo-c1 { top: 1%;  left: 7%;  }
.kudo-c2 { top: 20%; left: 44%; }
.kudo-c3 { top: 39%; left: 2%;  }
.kudo-c4 { top: 57%; left: 45%; }
.kudo-c5 { top: 73%; left: 1%;  }
.kudo-card.is-open { z-index: 20; }

.kudo-row {
  display: flex;
  align-items: center;
}
.kudo-avatar {
  width: clamp(70px, 7vw, 88px);
  height: clamp(70px, 7vw, 88px);
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent-soft);
  position: relative;
  z-index: 2;
  margin-right: clamp(10px, 1.2vw, 16px);
  flex: none;
}
.kudo-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 15px);
  height: clamp(58px, 5.6vw, 72px);
  padding: 0 clamp(20px, 2.2vw, 28px);
  background: var(--bg-card);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  box-shadow: 5px 6px 0 0 var(--text);
  transition: transform 0.18s ease, box-shadow 0.3s ease;
}
.kudo-pill:hover {
  transform: translateY(-2px);
  box-shadow: 7px 9px 0 0 var(--text);
}
.kudo-pill:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.kudo-icon {
  flex: none;
  width: clamp(38px, 3.7vw, 46px);
  height: clamp(38px, 3.7vw, 46px);
  border-radius: 50%;
  background: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.kudo-icon .ic {
  width: 48%;
  height: 48%;
  fill: var(--bg-card);
}
.ic-pause { display: none; }
.kudo-card.is-open .ic-play { display: none; }
.kudo-card.is-open .ic-pause { display: block; }

.kudo-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 56%;
}
.kudo-wave i {
  display: block;
  width: 3px;
  min-height: 3px;
  border-radius: 2px;
  background: rgba(51, 51, 51, 0.36);
  transition: background 0.25s ease;
}
.kudo-card.is-open .kudo-wave i { background: rgba(51, 51, 51, 0.86); }

.kudo-name {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.4;
  color: var(--text);
}
.kudo-name span {
  display: block;
  font-weight: 400;
  font-size: clamp(12px, 1.15vw, 14px);
  color: var(--text-mute);
}

.kudo-quote {
  max-height: 0;
  overflow: hidden;
  margin: 0;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.kudo-card.is-open .kudo-quote { max-height: 360px; }
.kudo-quote p {
  margin: 14px 0 0;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.13);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.5;
  color: var(--text);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.kudo-card.is-open .kudo-quote p {
  opacity: 1;
  transform: none;
  transition-delay: 0.12s;
}

@media (max-width: 860px) {
  .kudos-title { font-size: clamp(46px, 12vw, 82px); }
  .kt-1, .kt-2, .kt-3, .kt-4 { margin-left: 0; }
  .kudos-meta { position: static; margin-top: 22px; }
  .kudos-scatter {
    display: flex;
    flex-direction: column;
    gap: 38px;
    min-height: 0;
    margin-top: 36px;
  }
  .kudo-card {
    position: static;
    width: 100%;
    max-width: 460px;
  }
}

/* ============================================================
   PACKAGES
   ============================================================ */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 20px;
  margin-bottom: 32px;
}
@media (max-width: 820px) {
  .packages-grid { grid-template-columns: 1fr; }
}
.package {
  text-align: center;
}
.package-circle {
  width: 220px;
  height: 220px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform 0.3s ease;
}
.package:hover .package-circle {
  transform: scale(1.04) rotate(-1deg);
}
.package.featured .package-circle {
  background: var(--text);
  color: var(--bg);
}
.pkg-hours {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 18px;
}
.pkg-price {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -0.01em;
}
.pkg-rate {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}
.package p {
  font-size: 14px;
  color: var(--text-soft);
  max-width: 26ch;
  margin: 0 auto;
}
.packages-note {
  text-align: center;
  font-style: italic;
  color: var(--text-mute);
}
.packages-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ============================================================
   CONTACT — "Say hello", Dyotanya-style layout
   ============================================================ */
.section.contact {
  background: transparent;
  padding: 0;
  overflow: visible;
}
.same-card,
.contact-panel {
  position: relative;
  border-radius: clamp(36px, 3.5vw, 56px);
}
.same-card {
  z-index: 1;
  min-height: clamp(420px, 42vw, 760px);
  padding: clamp(46px, 5vw, 82px) clamp(46px, 6vw, 104px);
  overflow: hidden;
  background: #eaf4fb;
  isolation: isolate;
}
.same-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(234, 244, 251, 0.94) 0%, rgba(234, 244, 251, 0.66) 42%, rgba(234, 244, 251, 0.08) 76%),
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.52), transparent 34%);
  z-index: -1;
}
.same-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 18%;
  z-index: -2;
}
.same-meta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 68px);
  color: var(--text);
}
.same-meta p {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
  margin: 0;
  font-size: clamp(13px, 1.25vw, 18px);
  line-height: 1.35;
  max-width: 18ch;
}
.same-meta p span {
  font-family: var(--font-serif);
  font-size: clamp(72px, 6vw, 112px);
  font-weight: 300;
  line-height: 0.6;
}
.same-title {
  position: relative;
  z-index: 2;
  margin: clamp(8px, 1vw, 18px) 0 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(58px, 6.5vw, 94px);
  line-height: 0.82;
  letter-spacing: 0;
  color: var(--text);
}
.same-title span {
  display: block;
}
.same-title span:first-child {
  margin-left: clamp(22px, 2.8vw, 42px);
}
.same-title span:last-child {
  margin-left: clamp(40px, 5.4vw, 80px);
  margin-top: clamp(-14px, -1vw, -8px);
}
.contact-panel {
  z-index: 2;
  margin-top: calc(clamp(48px, 5vw, 80px) * -1);
  background: var(--bg-card);
  padding: clamp(52px, 6vw, 84px) clamp(48px, 6vw, 86px) clamp(42px, 5vw, 72px);
  overflow: hidden;
}
.contact-layout {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 0.92fr) minmax(220px, 0.82fr);
  grid-template-rows: auto minmax(60px, 1fr) auto;
  gap: clamp(18px, 2.8vw, 44px) clamp(20px, 3.2vw, 54px);
  min-height: clamp(380px, 42vw, 720px);
  margin-bottom: clamp(28px, 4vw, 56px);
}

/* Left column — contact methods, top-aligned label/icons, bottom nutshell */
.contact-methods {
  display: contents;
}
.contact-methods-top {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: start;
  text-align: left;
  padding-top: clamp(16px, 2vw, 36px);
}
.contact-label {
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.4;
  color: var(--text);
  margin: 0 0 clamp(34px, 4.5vw, 52px);
  max-width: 15ch;
}
.contact-nutshell {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  justify-self: start;
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.35;
  color: var(--text-soft);
  max-width: 27ch;
  margin: 0;
}

/* Overlapping circular social icons */
.social-stack {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.social-stack li { display: flex; }
.social-stack li:not(:first-child) { margin-left: clamp(-24px, -1.8vw, -16px); }
.social-stack a {
  width: clamp(62px, 7vw, 84px);
  height: clamp(62px, 7vw, 84px);
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.8px solid var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  box-shadow: 5px 6px 0 0 var(--text);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.3s ease;
}
.social-stack a:hover {
  transform: translateY(-6px);
  background: var(--text);
  color: var(--bg-card);
  box-shadow: 7px 9px 0 0 var(--text);
  z-index: 1;
}
.social-stack svg { width: 42%; height: 42%; }

/* Center column — "fill in the form" CTA + copyright */
.contact-center {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(8px, 1vw, 14px);
  align-self: end;
  padding: 0 0 clamp(2px, 1vw, 12px);
}
.contact-formlink {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(34px, 4.2vw, 62px);
  letter-spacing: 0;
  line-height: 1.08;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.15vw, 18px);
  transition: color 0.25s ease;
}
.contact-formlink svg {
  width: clamp(24px, 2.3vw, 36px);
  height: clamp(24px, 2.3vw, 36px);
  transform: translateY(0.1em);
  transition: transform 0.25s ease;
}
.contact-formlink:hover { color: var(--accent); }
.contact-formlink:hover svg { transform: translate(4px, -4px); }
/* Open state — arrow rotates to point down toward the revealed form */
.contact-formlink[aria-expanded="true"] svg { transform: rotate(135deg); }
.contact-formlink[aria-expanded="true"]:hover svg { transform: rotate(135deg); }
.contact-formlink {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.contact-copy {
  font-size: clamp(11px, 1vw, 13px);
  color: var(--text-mute);
  margin: 0;
}

/* Right column — photo */
.contact-photo {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  align-self: start;
  padding-top: clamp(4px, 1.2vw, 16px);
}
.contact-photo img {
  width: clamp(200px, 21vw, 270px);
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  border-radius: clamp(16px, 1.8vw, 24px);
}

@media (max-width: 900px) {
  .section.contact {
    padding: 0;
  }
  .same-card {
    min-height: 430px;
    padding: 44px 48px;
  }
  .same-title {
    font-size: clamp(54px, 13vw, 96px);
  }
  .same-title span:first-child,
  .same-title span:last-child {
    margin-left: 0;
  }
  .same-title span:last-child {
    text-align: right;
  }
  .contact-panel {
    margin-top: -74px;
    padding: clamp(38px, 8vw, 56px) clamp(24px, 6vw, 40px);
  }
  .contact-layout {
    grid-template-columns: 1fr minmax(130px, 0.5fr);
    grid-template-rows: auto auto auto;
    min-height: 0;
    gap: 34px 20px;
  }
  .contact-methods {
    display: grid;
    grid-column: 1;
    grid-row: 1 / span 2;
    gap: 72px;
  }
  .contact-methods-top,
  .contact-nutshell {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
    text-align: left;
  }
  .contact-methods-top { padding-top: 0; }
  .contact-center {
    grid-column: 1 / -1;
    grid-row: 3;
    align-items: flex-start;
  }
  .contact-photo {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    padding-top: 0;
  }
}
@media (max-width: 620px) {
  .same-card {
    min-height: 390px;
    padding: 34px 32px 96px;
  }
  .same-card img {
    object-position: 50% 24%;
  }
  .same-card::after {
    background:
      linear-gradient(180deg, rgba(234, 244, 251, 0.92) 0%, rgba(234, 244, 251, 0.44) 48%, rgba(234, 244, 251, 0.12) 100%);
  }
  .same-meta {
    align-items: flex-start;
    gap: 18px;
  }
  .same-meta p span {
    font-size: 56px;
  }
  .same-title {
    margin-top: 24px;
    font-size: clamp(48px, 16vw, 70px);
  }
  .contact-panel {
    margin-top: -70px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-methods,
  .contact-center,
  .contact-photo {
    grid-column: 1;
    grid-row: auto;
  }
  .contact-methods { gap: 32px; }
  .contact-label { margin-bottom: 22px; }
  .contact-photo { justify-content: flex-start; }
  .contact-photo img { width: min(220px, 68vw); }
}

/* Collapsible form wrapper — grid 0fr→1fr smoothly animates to content height */
.contact-form-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(.6,0,.2,1);
}
.contact-form-wrap.is-open {
  grid-template-rows: 1fr;
}
.contact-form-inner {
  overflow: hidden;
  min-height: 0;
}
.contact-form-wrap.is-open .contact-form-inner {
  /* let the focus ring / shadow breathe once open */
  overflow: visible;
  transition: overflow 0s linear 0.55s;
}

/* The form itself */
.contact-form {
  background: var(--bg-card);
  border-radius: clamp(20px, 2vw, 32px);
  padding: clamp(28px, 3vw, 44px);
  border: 1.5px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: clamp(8px, 1.5vw, 20px);
}
.contact-form-kicker {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.contact-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-form-full { grid-column: 1 / -1; }
@media (max-width: 600px) {
  .contact-form-fields { grid-template-columns: 1fr; }
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-form label span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  resize: vertical;
  transition: border-color 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form button {
  background: var(--text);
  color: var(--bg);
  padding: 14px 28px;
  border-radius: var(--r-button);
  border: none;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  align-self: flex-start;
  transition: transform 0.2s ease, background 0.2s ease;
}
.contact-form button:hover {
  transform: translateY(-1px);
  background: var(--accent);
}

/* ============================================================
   DOODLES — positioned on the spine at section transitions
   ============================================================ */
.doodle {
  position: absolute;
  right: clamp(0px, 1.5vw, 36px);
  width: 56px;
  height: 56px;
  z-index: 2;
  transform: rotate(-6deg);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.doodle.is-prepared {
  opacity: 0;
  transform: translateY(20px) rotate(-6deg);
}
.doodle.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(-6deg);
}
.doodle svg { width: 100%; height: 100%; overflow: visible; }

.doodle-1 { bottom: 80px;       width: 72px; height: 72px; transform: rotate(-12deg); }
.doodle-2 { top: 60px;          width: 80px; height: 56px; transform: rotate(6deg); }
.doodle-3 { bottom: 100px;      width: 64px; height: 64px; transform: rotate(-8deg); }
.doodle-4 { top: 80px;          width: 48px; height: 64px; transform: rotate(4deg); }
.doodle-5 { bottom: 60px;       width: 64px; height: 64px; transform: rotate(14deg); }

/* Extra basketball doodles distributed across sections */
.doodle-bb-2 { top: 40%; right: clamp(20px, 2vw, 40px); width: 56px; height: 56px; transform: rotate(18deg); }
.doodle-bb-3 { top: 30px; right: 16%; width: 48px; height: 48px; transform: rotate(-22deg); }
.doodle-bb-4 { bottom: 30px; right: 8%; width: 64px; height: 64px; transform: rotate(8deg); }

@media (max-width: 720px) {
  .doodle { width: 40px !important; height: 40px !important; right: 4px; }
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal {
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-prepared {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Prefer-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .doodle { opacity: 1; transform: none; }
}

/* ============================================================
   PROCESS MODAL — opens from "my process"; fan of hover-expand cards
   ============================================================ */
.process-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  background: var(--accent);
  padding: clamp(10px, 1.6vw, 22px);
}
.process-modal.is-open {
  display: block;
  animation: processFade 0.3s ease both;
}
@keyframes processFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.process-modal-card {
  position: absolute;
  inset: clamp(10px, 1.6vw, 22px);
  background: var(--bg);
  border-radius: clamp(28px, 3vw, 48px);
  padding: clamp(32px, 5vw, 72px) clamp(28px, 5vw, 76px) clamp(36px, 5vw, 64px);
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.process-modal.is-open .process-modal-card {
  animation: processCardIn 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes processCardIn {
  from { opacity: 0; transform: scale(0.975); }
  to   { opacity: 1; transform: scale(1); }
}
.process-close {
  position: absolute;
  top: clamp(18px, 2.6vw, 36px);
  right: clamp(18px, 2.6vw, 36px);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--bg-card);
  border: 1.5px solid var(--text);
  border-radius: 50%;
  color: var(--text);
  z-index: 5;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.process-close svg { width: 22px; height: 22px; }
.process-close:hover {
  background: var(--text);
  color: var(--bg-card);
  transform: rotate(90deg);
}
.process-modal-kicker {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.process-modal-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(30px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 20ch;
}
/* Second block inside the modal — the deliverables, below the process steps */
.process-modal-kicker--2 {
  margin-top: clamp(44px, 6vw, 88px);
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--border);
}

/* Card fan — used for both the process steps and the deliverables */
.process-cards {
  margin: clamp(24px, 3vw, 44px) auto 0;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 38px 0;
}
.pcard {
  position: relative;
  flex-shrink: 0;
  width: 258px;
  margin-left: -70px;
  margin-top: var(--y, 0px);
  padding: 42px 26px 26px;
  background: var(--bg-card);
  border: 1.5px dashed var(--text);
  border-radius: 22px;
  transform: rotate(var(--r, 0deg));
  transition: transform 0.4s cubic-bezier(0.34, 1.28, 0.64, 1),
              box-shadow 0.35s ease, border-color 0.3s ease;
}
.pcard:first-child { margin-left: 0; }
.pcard:hover {
  transform: rotate(0deg) translateY(-20px) scale(1.12);
  z-index: 20;
  border-style: solid;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.24);
}
.pcard h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  margin: 0 0 12px;
}
.pcard p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 0;
  max-width: none;
}
.pcard--ask { border-color: var(--accent); }
.pcard--ask a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

@media (max-width: 940px) {
  .process-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 26px;
    padding-top: 30px;
  }
  .pcard {
    width: auto;
    margin: 0;
    transform: none;
  }
  .pcard:hover { transform: translateY(-10px) scale(1.03); }
}
@media (max-width: 560px) {
  .process-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   Selection
   ============================================================ */
::selection {
  background: var(--highlight);
  color: var(--text);
}
