/* Hallmark · macrostructure: Marquee Hero (poster variant) · tone: bold-confident · anchor hue: warm-sand
 * theme: Bluff (custom) · paper-band: light · display-style: display-heavy-sans · accent-hue: warm
 * pre-emit critique: P5 H5 E5 S5 R5 V5
 * scope: hero-only · enrichment: full-bleed user-supplied photo backdrop, oversized condensed display
 * studied: yes · DNA-source: image (user moodboard reference)
 */

@import url("./tokens.css");

/* ─────────────────────────────────────────────  reset  ───────────── */

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

html, body { overflow-x: clip; height: 100%; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--color-paper-1);
  color: var(--color-ink-1);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; }

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

/* ─────────────────────────────────────────────  hero frame  ──────── */

.hero-stage {
  position: relative;
  height: 220vh; /* sticky hero scrolls with chaos letters appearing */
}
@media (max-width: 1024px) {
  .hero-stage { height: 160vh; }
  .brand__mark { width: 3rem; height: 3rem; }
}
@media (max-width: 768px) {
  .brand__mark { width: 2.25rem; height: 2.25rem; }
}
@media (max-width: 640px) {
  .hero-stage { height: 100vh; }
  .hero__photo { background-position: center 28%; }
}

/* Chaos scene wraps the chaos elements; promise has moved to its own section */
.hero__scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero__scene > * { pointer-events: auto; }

.hero {
  position: sticky;
  top: 0;
  width: 100%;
  padding: var(--frame-padding);
  background: var(--color-paper-1);
}

/* Per-letter scroll-driven REVEAL — each .letter inside a callout has its own
 * random --start (when it begins appearing, 0–0.65) and --ro (how far it
 * translates up from). Statement letters aren't split; statement stays visible.
 * The .word wrapper keeps every letter in the same word together so wrapping
 * happens only between words, never inside one. */
.word {
  display: inline-block;
  white-space: nowrap;
}
.letter {
  display: inline-block;
  will-change: transform, opacity;
}

.hero__callout .letter {
  --t: clamp(0, calc((var(--scroll, 0) - var(--start, 0)) * 4), 1);
  opacity: var(--t);
  transform: translateY(calc((1 - var(--t)) * var(--ro, 60) * 1px));
}

/* Light-tone variant — when the hero photo is bright, flip text/glass to dark */
.hero[data-tone="light"] {
  --color-on-photo-1: var(--color-ink-1);
  --color-on-photo-2: var(--color-ink-2);
  --color-on-photo-3: var(--color-mute);

  --color-pill-bg:        oklch(0% 0 0 / 0.08);
  --color-pill-bg-hover:  oklch(0% 0 0 / 0.14);
  --color-pill-fg:        var(--color-ink-1);

  --color-glass-border:   oklch(0% 0 0 / 0.18);
  --color-glass-edge-top: oklch(100% 0 0 / 0.55);
  --color-glass-edge-bot: oklch(0% 0 0 / 0.10);
  --color-glass-drop:     oklch(0% 0 0 / 0.10);
  --color-glass-refl-1:   oklch(100% 0 0 / 0.55);
  --color-glass-refl-2:   oklch(100% 0 0 / 0.05);
  --color-glass-refl-3:   oklch(100% 0 0 / 0.30);

  --color-icon-bg-1: oklch(15% 0.010 65 / 0.95);
  --color-icon-bg-2: oklch(28% 0.008 65 / 0.92);
  --color-icon-fg:   oklch(99% 0 0);
  --color-icon-edge: oklch(0% 0 0 / 0.20);

  --color-scrim-top:    oklch(0% 0 0 / 0.04);
  --color-scrim-side:   oklch(0% 0 0 / 0.03);
  --color-scrim-bottom: oklch(0% 0 0 / 0.04);
  --color-scrim-corner: oklch(0% 0 0 / 0.04);

  --color-hairline-on-photo: oklch(0% 0 0 / 0.18);
}

/* Light tone: logo should be black (don't invert the transparent PNG) */
.hero[data-tone="light"] .brand__mark {
  filter: drop-shadow(0 1px 4px var(--color-glass-drop));
}

.hero__viewport {
  position: relative;
  width: 100%;
  height: calc(100vh - calc(var(--frame-padding) * 2));
  min-height: 540px;
  max-height: 1100px;
  border-radius: var(--radius-photo);
  overflow: hidden;
  isolation: isolate;
  background: var(--color-ink-1);
}

/* photo backdrop */
.hero__photo {
  position: absolute;
  inset: 0;
  background-image: url("./public/hero.png");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  z-index: 0;
}

/* legibility scrim — top, left, bottom + a deeper bottom-left for the headline */
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 100%, var(--color-scrim-corner) 0%, transparent 70%),
    linear-gradient(180deg, var(--color-scrim-top) 0%, transparent 28%, transparent 50%, var(--color-scrim-bottom) 100%),
    linear-gradient(90deg, var(--color-scrim-side) 0%, transparent 45%);
  pointer-events: none;
}

/* ─────────────────────────────────────────────  top bar  ─────────── */

.hero__top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-2xl);
  padding: var(--hero-inner-pad);
}

/* logo mark + wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-on-photo-1);
}
.brand__wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  letter-spacing: -0.025em;
  font-variation-settings: "wght" 600;
  line-height: 1;
}
.brand__mark {
  display: block;
  width: 5.25rem;
  height: 5.25rem;
  /* Paint the lemon shape in white via mask. */
  background-color: var(--color-on-photo-1);
  -webkit-mask: url("./public/lemon-logo-transparent.png") center / contain no-repeat;
          mask: url("./public/lemon-logo-transparent.png") center / contain no-repeat;
  filter: drop-shadow(0 2px 10px var(--color-scrim-bottom));
  pointer-events: none;
}
.brand:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: var(--radius-sm); }

/* nav — horizontal row, right-aligned next to the pill */
.nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-self: end;
  gap: var(--space-xl);
}

.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--color-on-photo-1);
  padding-block: var(--space-2xs);
  position: relative;
  white-space: nowrap;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 1px;
  height: 1px;
  background: var(--color-on-photo-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out);
}
.nav__link:hover::after { transform: scaleX(1); }
.nav__link:hover { opacity: 0.92; }
.nav__link:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* pill button — Liquid Glass */
.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.85rem 0.65rem 0.85rem 1.5rem;
  background: var(--color-pill-bg);
  color: var(--color-pill-fg);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  backdrop-filter: blur(18px) saturate(1.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  border: 1px solid var(--color-glass-border);
  box-shadow:
    inset 0 1px 0 0 var(--color-glass-edge-top),
    inset 0 -1px 0 0 var(--color-glass-edge-bot),
    0 8px 28px -8px var(--color-glass-drop),
    0 2px 6px -2px var(--color-glass-drop);
  transition: background var(--dur-mid) var(--ease-out),
              transform  var(--dur-fast) var(--ease-out),
              border-color var(--dur-mid) var(--ease-out);
}

/* refraction / reflection sheen */
.pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    var(--color-glass-refl-1) 0%,
    var(--color-glass-refl-2) 28%,
    transparent 50%,
    var(--color-glass-refl-2) 72%,
    var(--color-glass-refl-3) 100%
  );
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
  opacity: 0.85;
  transition: transform var(--dur-slow) var(--ease-out),
              opacity var(--dur-mid) var(--ease-out);
}

/* moving specular dot — the "glass reacting to movement" beat */
.pill::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 18%;
  width: 35%;
  height: 180%;
  background: radial-gradient(
    closest-side,
    var(--color-glass-refl-1) 0%,
    transparent 70%
  );
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.55;
  transform: translate3d(0, 0, 0);
  transition: transform var(--dur-slow) var(--ease-out),
              opacity var(--dur-mid) var(--ease-out);
}

.pill__label {
  position: relative;
  z-index: 1;
}

.pill__icon {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  color: var(--color-icon-fg);
  background:
    radial-gradient(120% 100% at 30% 20%, var(--color-icon-bg-1), var(--color-icon-bg-2));
  border: 1px solid var(--color-icon-edge);
  border-radius: var(--radius-pill);
  box-shadow:
    inset 0 1px 0 0 var(--color-glass-edge-top),
    0 1px 2px var(--color-glass-drop);
  transition: transform var(--dur-mid) var(--ease-out);
}
.pill__icon svg { width: 55%; height: 55%; }

.pill:hover            { background: var(--color-pill-bg-hover); border-color: var(--color-glass-edge-top); }
.pill:hover::before    { transform: translateX(8%); opacity: 1; }
.pill:hover::after     { transform: translate3d(220%, 0, 0); opacity: 0.7; }
.pill:hover .pill__icon { transform: translateX(2px); }
.pill:active           { transform: translateY(1px) scale(0.985); }
.pill:focus-visible    { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* ─────────────────────────────────────────────  statement + callouts  ── */

.hero__statement {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5.25vw, 4.95rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--color-lemon);
  white-space: nowrap;
  text-shadow: 0 2px 12px var(--color-lemon-shadow);
  text-align: center;
  --mx: -300%;
  --my: -300%;
}
.hero__statement::before {
  content: attr(data-blur);
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  white-space: inherit;
  text-align: inherit;
  filter: blur(5px);
  -webkit-mask-image: radial-gradient(circle 90px at var(--mx) var(--my), black 35%, transparent 80%);
          mask-image: radial-gradient(circle 90px at var(--mx) var(--my), black 35%, transparent 80%);
  pointer-events: none;
}

.hero__callouts {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.hero__callout {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.4vw, 1.4rem);
  line-height: 1.2;
  color: var(--color-lemon);
  letter-spacing: -0.005em;
  max-width: 14ch;
  text-shadow: 0 1px 6px var(--color-lemon-shadow);
  pointer-events: auto;
  --mx: -300%;
  --my: -300%;
}
.hero__callout::before {
  content: attr(data-blur);
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  white-space: pre-line;
  filter: blur(4px);
  -webkit-mask-image: radial-gradient(circle 70px at var(--mx) var(--my), black 30%, transparent 80%);
          mask-image: radial-gradient(circle 70px at var(--mx) var(--my), black 30%, transparent 80%);
  pointer-events: none;
}

.hero__callout-arrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4em;
  line-height: 1;
}

/* placement — irregular but all at 0° (no crooked rotations) */
.hero__callout--p1 { top: 32%; left: 14%; }          /* news cycle — above statement, nudged right */
.hero__callout--p2 { bottom: 30%; right: 20%; }      /* clients ask faster — moved left, closer to center */
.hero__callout--p3 { top: 11%; left:  8%; }          /* journalists shift — top-left */
.hero__callout--p4 { bottom: 13%; right: 6%; }       /* competitors adapt — bottom-right, lower */
.hero__callout--p5 { bottom: 13%; left:  8%; }       /* your team needs leverage — bottom-left */

/* ─────────────────────────────────────────────  headline (legacy)  ─── */

.hero__headline-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 var(--hero-inner-pad) clamp(var(--space-2xl), 7vw, var(--space-5xl));
  z-index: 2;
  pointer-events: none;
}

.hero__headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 9vw, 9.5rem);
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--color-on-photo-1);
  max-width: 18ch;
  overflow-wrap: anywhere;
  min-width: 0;
  font-variation-settings: "wght" 700;
  pointer-events: auto;
}

.hero__headline .line {
  display: block;
}
.hero__headline .line--punch {
  font-weight: 800;
  letter-spacing: -0.045em;
  font-variation-settings: "wght" 800;
}

.hero__sub {
  margin: var(--space-lg) 0 0;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.4;
  color: var(--color-on-photo-2);
  max-width: 38ch;
  pointer-events: auto;
}

.hero__sub .placeholder {
  display: inline-block;
  padding: 0 0.3em;
  border-bottom: 1px dashed var(--color-hairline-on-photo);
  font-style: italic;
}

/* ─────────────────────────────────────────────  meta strip  ──────── */

.hero__meta {
  position: absolute;
  left: var(--hero-inner-pad);
  bottom: var(--hero-inner-pad);
  z-index: 1;
  display: none;
}

/* ─────────────────────────────────────────────  promise (big image left, heading right, full-width lede)  ── */

.promise {
  position: relative;
  width: 100%;
  background: var(--color-lemon);
  /* sits close to the hero, no big top gap */
  padding: clamp(var(--space-xl), 3.5vw, 3rem) var(--frame-padding) clamp(var(--space-3xl), 7vw, 5.5rem);
  overflow: hidden;
}

.promise__inner {
  position: relative;
  width: 100%;
  padding-inline: 0;
  display: grid;
  gap: clamp(var(--space-xl), 4.5vw, 4rem);
}

/* — top row: small picture LEFT, copy (heading top + lede bottom) RIGHT — */
.promise__top {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
  gap: clamp(var(--space-lg), 4vw, var(--space-3xl));
  align-items: stretch; /* lets right column match picture height */
}

.promise__media {
  margin: 0;
  width: 100%;
  background: transparent;
}
.promise__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.promise__copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* heading top, lede bottom */
  gap: var(--space-lg);
}

.promise__heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 5.2vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  word-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-1);
  font-variation-settings: "wght" 900;
}
.promise__heading em {
  font-style: normal;
  font-weight: 900;
  font-variation-settings: "wght" 900;
}

/* — lede sits at the bottom of the right column, right-aligned — */
.promise__lede {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  line-height: 1.45;
  color: var(--color-ink-1);
  font-weight: 400;
  text-align: right;
}

@media (max-width: 900px) {
  .promise__top {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: start;
  }
  .promise__media { width: 70%; max-width: 22rem; }
  .promise__heading { font-size: clamp(1.65rem, 8.5vw, 3rem); }
  .promise__copy { gap: var(--space-lg); }
  .promise__lede { text-align: left; }
  .desktop-only { display: none; }
}


/* ─────────────────────────────────────────────  how we help  ────── */

.hwh {
  position: relative;
  width: 100%;
  background-color: var(--color-newsprint);
  padding: clamp(var(--space-xl), 4vw, 3.5rem) var(--frame-padding) clamp(var(--space-4xl), 10vw, 8rem);
  color: var(--color-ink-1);
  overflow: hidden;
}

/* decorative lemon in the How we help section — right side, drifts down on scroll */
.hwh__lemon {
  position: absolute;
  top: clamp(var(--space-md), 3vw, 2.5rem);
  right: clamp(var(--space-lg), 4vw, 3rem);
  width: clamp(100px, 11.25vw, 188px);
  height: auto;
  transform: translateY(var(--lemon-y, 0px)) rotate(12deg);
  filter: drop-shadow(0 18px 28px oklch(0% 0 0 / 0.18));
  user-select: none;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
  transition: transform 0.1s linear;
}
@media (max-width: 720px) {
  .hwh__lemon { width: 90px; top: 1rem; right: 1rem; }
}

.hwh__inner {
  max-width: var(--max-w-page);
  margin: 0 auto;
  padding-inline: clamp(var(--space-lg), 5vw, var(--space-4xl));
}

.hwh__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-lg), 2.5vw, var(--space-2xl));
  margin-bottom: clamp(var(--space-xl), 3vw, var(--space-2xl));
  max-width: 72rem;
}

.hwh__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-ink-3);
}
.hwh__eyebrow-rule {
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--color-ink-3);
}

.hwh__heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--color-ink-1);
  max-width: 24ch;
  text-wrap: balance;
}
/* lemon glyph used in place of the lowercase "o" in the heading
   sized to match the x-height of Helvetica bold so it reads as a real letter */
.hwh__lemon-o {
  display: inline-block;
  width: 0.58em;          /* same horizontal footprint as bold lowercase "o" */
  height: 0.58em;         /* match x-height */
  object-fit: contain;
  vertical-align: baseline;
  margin: 0;
  position: relative;
  top: 0.06em;            /* nudge so the lemon sits ON the baseline like an "o" */
}

.hwh__sub {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.3vw, 1.3rem);
  line-height: 1.5;
  color: var(--color-ink-2);
  max-width: 60ch;
}

/* keep pulse keyframe — used elsewhere in the modal */
@keyframes hwhPulse {
  0%   { box-shadow: 0 0 0 0 oklch(89% 0.19 98 / 0.55); }
  100% { box-shadow: 0 0 0 12px oklch(89% 0.19 98 / 0); }
}

/* — carousel controls row above the cards — */

.hwh__controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(var(--space-2xl), 5vw, var(--space-3xl));
  margin-bottom: var(--space-lg);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-hairline-strong);
}
.hwh__controls-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-ink-3);
}
.hwh__controls-buttons {
  display: inline-flex;
  gap: var(--space-sm);
}
.carousel-nav {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--color-hairline-strong);
  background: var(--color-paper-3);
  color: var(--color-ink-1);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.carousel-nav svg { width: 1.1rem; height: 1.1rem; }
.carousel-nav:hover { background: var(--color-ink-1); color: var(--color-paper-3); border-color: var(--color-ink-1); }
.carousel-nav:active { transform: translateY(1px); }
.carousel-nav:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.carousel-nav[disabled] { opacity: 0.35; pointer-events: none; }

/* — carousel of 6 agent cards (3 visible, scroll-snap horizontal) — */

.hwh__grid {
  --gap: clamp(var(--space-md), 1.5vw, var(--space-xl));
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-md);
  /* hide scrollbar but keep functional */
  scrollbar-width: none;
}
.hwh__grid::-webkit-scrollbar { display: none; }

.hwh__grid > .agent-card {
  flex: 0 0 calc((100% - 2 * var(--gap)) / 3);
  scroll-snap-align: start;
}

@media (min-width: 641px) and (max-width: 1024px) {
  .hwh__grid > .agent-card { flex: 0 0 64%; }
}
@media (max-width: 640px) {
  .hwh__grid > .agent-card { flex: 0 0 88%; }
  .hwh__lemon-o { top: 0.04em; width: 0.62em; height: 0.62em; }
}

.agent-card {
  position: relative;
  background: var(--color-paper-3);
  border: 1px solid var(--color-hairline);
  border-radius: 8px;
  padding: clamp(var(--space-lg), 2vw, var(--space-xl));
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: var(--space-md);
  cursor: default;
}

.agent-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.agent-card__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--color-lemon-ink, var(--color-ink-1));
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}
.agent-card__num::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-lemon);
}
.agent-card__live {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-3);
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--color-hairline);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.agent-card__live-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-ink-2);
}
.agent-card__live--alert .agent-card__live-dot {
  background: var(--color-accent);
  animation: hwhPulse 1.8s ease-out infinite;
}

.agent-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 1.7vw, 1.65rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-ink-1);
}

.agent-card__desc {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-ink-2);
}

.agent-card__impact {
  margin: 0;
  padding-top: var(--space-sm);
  border-top: 1px dashed var(--color-hairline);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-ink-1);
}
.agent-card__impact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ink-3);
  margin-bottom: 0.3rem;
}

.agent-card__preview {
  background: var(--color-newsprint);
  border: 1px solid var(--color-hairline);
  border-radius: 6px;
  padding: 0.85rem;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-body);
}

.agent-card__cta {
  align-self: start;
  margin-top: var(--space-xs);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-1);
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.agent-card__cta span:last-child {
  transition: transform var(--dur-mid) var(--ease-out);
}
.agent-card:hover .agent-card__cta span:last-child { transform: translateX(4px); }
.agent-card__cta:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }

/* — thumbnail mini-UIs — */

.mini-feed { display: grid; gap: 0.35rem; }
.mini-feed__row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 0.45rem;
  align-items: baseline;
  font-size: 0.72rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--color-hairline);
}
.mini-feed__row:last-child { border: 0; }
.mini-feed__src { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-ink-3); }
.mini-feed__title { font-weight: 500; color: var(--color-ink-1); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.mini-feed__score { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; color: var(--color-ink-1); }

.mini-alert { display: grid; gap: 0.5rem; }
.mini-alert__top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-ink-3); }
.mini-alert__tag { color: var(--color-ink-1); }
.mini-alert__headline { margin: 0; font-size: 0.85rem; font-weight: 600; line-height: 1.2; color: var(--color-ink-1); }
.mini-alert__bars { display: grid; gap: 0.3rem; margin-top: 0.2rem; }
.mini-alert__bar { display: grid; grid-template-columns: 60px 1fr 24px; align-items: center; gap: 0.4rem; font-size: 0.62rem; color: var(--color-ink-3); font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.mini-alert__bar i { display: block; height: 4px; background: var(--color-hairline); border-radius: 2px; position: relative; overflow: hidden; }
.mini-alert__bar i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); background: var(--color-lemon); }
.mini-alert__bar b { font-weight: 600; color: var(--color-ink-1); font-size: 0.65rem; text-align: right; }

.mini-board { display: grid; gap: 0.35rem; }
.mini-board__card { padding: 0.45rem 0.55rem; border: 1px solid var(--color-hairline); border-radius: 4px; background: var(--color-paper-3); }
.mini-board__type { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-ink-3); }
.mini-board__card p { margin: 0.15rem 0 0.2rem; font-size: 0.78rem; font-weight: 600; color: var(--color-ink-1); }
.mini-board__meta { font-family: var(--font-mono); font-size: 0.6rem; color: var(--color-ink-2); letter-spacing: 0.06em; }

.mini-table { display: grid; gap: 0.3rem; }
.mini-table__row { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 0.5rem; padding: 0.32rem 0; font-size: 0.75rem; align-items: center; border-bottom: 1px solid var(--color-hairline); }
.mini-table__row:last-child { border: 0; }
.mini-table__row--head { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-ink-3); border-bottom: 1px solid var(--color-hairline-strong); }
.mini-table__pri { display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--color-ink-1); color: var(--color-paper-3); font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600; }
.mini-table__pri--b { background: var(--color-mute); }

.mini-split { display: grid; grid-template-columns: 90px 1fr; gap: 0.6rem; height: 100%; }
.mini-split__left { display: grid; align-content: start; gap: 0.2rem; padding: 0.35rem; background: var(--color-paper-3); border: 1px solid var(--color-hairline); border-radius: 4px; }
.mini-split__name { font-weight: 600; font-size: 0.78rem; color: var(--color-ink-1); }
.mini-split__beat { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-ink-3); }
.mini-split__score { font-family: var(--font-mono); font-size: 0.65rem; color: var(--color-ink-1); margin-top: 0.3rem; padding-top: 0.3rem; border-top: 1px solid var(--color-hairline); }
.mini-split__right { display: grid; align-content: start; gap: 0.25rem; }
.mini-split__subject { margin: 0; font-size: 0.74rem; font-weight: 600; color: var(--color-ink-1); }
.mini-split__body { margin: 0; font-size: 0.72rem; line-height: 1.35; color: var(--color-ink-2); }

.mini-editor { display: grid; gap: 0.4rem; }
.mini-editor__tabs { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.mini-editor__tab { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.15rem 0.45rem; border: 1px solid var(--color-hairline); border-radius: 4px; color: var(--color-ink-3); }
.mini-editor__tab--active { background: var(--color-ink-1); color: var(--color-paper-3); border-color: var(--color-ink-1); }
.mini-editor__line { margin: 0; font-size: 0.74rem; line-height: 1.35; color: var(--color-ink-1); }
.mini-editor__line--mute { color: var(--color-ink-3); }

/* ─────────────────────────────────────────────  agent modal  ────── */

.agent-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-out),
              visibility 0s linear var(--dur-mid);
}
.agent-modal.is-open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transition-delay: 0s, 0s;
}

.agent-modal__backdrop {
  position: absolute;
  inset: 0;
  background: oklch(0% 0 0 / 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.agent-modal__sheet {
  position: relative;
  width: min(96vw, 1200px);
  max-height: 90vh;
  background: var(--color-paper-3);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px -20px oklch(0% 0 0 / 0.55);
  transform: translateY(8px);
  transition: transform var(--dur-mid) var(--ease-out);
}
.agent-modal.is-open .agent-modal__sheet { transform: translateY(0); }

.agent-modal__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: var(--space-md);
  padding: clamp(var(--space-lg), 2vw, var(--space-2xl));
  border-bottom: 1px solid var(--color-hairline);
  flex: 0 0 auto;
}
.agent-modal__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-ink-3);
  margin-bottom: 0.4rem;
}
.agent-modal__title { margin: 0 0 0.4rem; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2.25rem); letter-spacing: -0.025em; line-height: 1; color: var(--color-ink-1); }
.agent-modal__purpose { margin: 0; font-family: var(--font-body); font-size: 0.95rem; color: var(--color-ink-2); max-width: 70ch; line-height: 1.45; }
.agent-modal__close {
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--color-hairline);
  background: var(--color-paper-3);
  color: var(--color-ink-1);
  font-size: 0.9rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--dur-fast) var(--ease-out);
}
.agent-modal__close:hover { background: var(--color-newsprint); }
.agent-modal__close:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.agent-modal__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-md);
  padding: var(--space-md) clamp(var(--space-lg), 2vw, var(--space-2xl));
  background: var(--color-newsprint);
  border-bottom: 1px solid var(--color-hairline);
  flex: 0 0 auto;
}
.agent-modal__stats > div { display: grid; gap: 0.1rem; }
.agent-modal__stats > div b { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--color-ink-1); line-height: 1; }
.agent-modal__stats > div span { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-ink-3); }
.agent-modal__stat-live {
  align-self: end;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink-1);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.agent-modal__stat-live .dot {
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: var(--color-lemon);
  animation: hwhPulse 2s ease-out infinite;
}

.agent-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: var(--space-lg);
  padding: clamp(var(--space-lg), 2vw, var(--space-2xl));
}
.agent-modal__body--monitor,
.agent-modal__body--radar,
.agent-modal__body--scout,
.agent-modal__body--medialist {
  grid-template-columns: 1fr 280px;
}
.agent-modal__body--pitch { grid-template-columns: 240px 1fr 360px; gap: var(--space-md); padding: var(--space-md); }
.agent-modal__body--voice { grid-template-rows: auto 1fr; gap: var(--space-md); }
.agent-modal__body--voice .voice-main { display: grid; grid-template-columns: 220px 1fr 240px; gap: var(--space-md); }

/* — utilities — */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--color-hairline);
  background: var(--color-paper-3);
  color: var(--color-ink-1);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.btn-pill:hover { background: var(--color-newsprint); border-color: var(--color-hairline-strong); }
.btn-pill--accent { background: var(--color-ink-1); color: var(--color-paper-3); border-color: var(--color-ink-1); }
.btn-pill--accent:hover { background: var(--color-ink-2); }
.btn-pill:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.chip { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.3rem 0.7rem; border: 1px solid var(--color-hairline); border-radius: 999px; color: var(--color-ink-3); }
.chip--active { background: var(--color-ink-1); color: var(--color-paper-3); border-color: var(--color-ink-1); }
.chip--ok { color: var(--color-ink-1); border-color: var(--color-hairline-strong); }
.chip--xs { font-size: 0.58rem; padding: 0.18rem 0.45rem; }

.bar-row { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-ink-3); padding: 0.35rem 0; }
.bar-row i { display: block; height: 3px; background: var(--color-hairline); border-radius: 2px; position: relative; overflow: hidden; }
.bar-row i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); background: var(--color-ink-1); }
.bar-row b { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; color: var(--color-ink-1); }

/* — agent body components — */

.agent-modal__feed { display: grid; gap: var(--space-md); }
.feed-card { padding: var(--space-md); border: 1px solid var(--color-hairline); border-radius: 6px; background: var(--color-paper-3); }
.feed-card header { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-ink-3); margin-bottom: 0.55rem; }
.feed-card__fit { color: var(--color-ink-1); font-weight: 600; }
.feed-card h4 { margin: 0 0 0.5rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.015em; line-height: 1.2; }
.feed-card p { margin: 0 0 0.35rem; font-size: 0.85rem; line-height: 1.45; color: var(--color-ink-2); }
.feed-card em { color: var(--color-ink-3); font-style: normal; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; margin-right: 0.4rem; }
.feed-card__actions { display: flex; gap: 0.4rem; margin-top: 0.7rem; flex-wrap: wrap; }

.agent-modal__side { display: grid; gap: var(--space-lg); align-content: start; }
.agent-modal__side section { display: grid; gap: 0.3rem; padding: var(--space-md); background: var(--color-newsprint); border-radius: 6px; border: 1px solid var(--color-hairline); }
.agent-modal__side h5,
.scout-side h5, .ml-side h5, .radar-side h5,
.pitch-left h5, .pitch-right h5, .pitch-center h5,
.voice-left h5, .voice-right h5 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ink-3);
}
.agent-modal__side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.25rem; }
.agent-modal__side ul li { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--color-ink-1); }
.agent-modal__side ul li b { font-family: var(--font-mono); font-weight: 600; }
.side-quote { font-style: italic; font-size: 0.85rem; line-height: 1.4; color: var(--color-ink-2); margin: 0.3rem 0 0; }

/* radar */
.radar-main { display: grid; gap: var(--space-md); }
.radar-alert { padding: var(--space-md); border: 1px solid var(--color-hairline-strong); border-left: 3px solid var(--color-lemon); border-radius: 6px; background: var(--color-paper-3); }
.radar-alert__top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-ink-1); margin-bottom: 0.5rem; }
.radar-alert__count { color: var(--color-accent); }
.radar-alert h4 { margin: 0 0 0.8rem; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.018em; }
.radar-alert__scores { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.radar-alert__scores > div { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-ink-3); }
.radar-alert__scores > div i { display: block; height: 4px; background: var(--color-hairline); border-radius: 2px; position: relative; overflow: hidden; }
.radar-alert__scores > div i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); background: var(--color-lemon); }
.radar-alert__scores > div b { font-family: var(--font-mono); font-weight: 600; color: var(--color-ink-1); font-size: 0.75rem; }
.radar-block { display: grid; gap: 0.4rem; padding: var(--space-sm) 0; border-top: 1px solid var(--color-hairline); }
.radar-block h5 { margin: 0; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-ink-3); }
.radar-block p { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--color-ink-1); }
.radar-block--quote blockquote { margin: 0; padding: 0.6rem 0.9rem; border-left: 2px solid var(--color-ink-1); background: var(--color-newsprint); font-style: italic; font-size: 0.95rem; color: var(--color-ink-1); }
.radar-pitch { font-family: var(--font-mono); font-size: 0.85rem; padding: 0.5rem 0.7rem; background: var(--color-newsprint); border-radius: 4px; }
.radar-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-md); }
.radar-side { display: grid; gap: var(--space-lg); align-content: start; }
.radar-side section { padding: var(--space-md); background: var(--color-newsprint); border-radius: 6px; border: 1px solid var(--color-hairline); }
.radar-countdown { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 600; color: var(--color-ink-1); margin: 0.4rem 0 0; }
.radar-countdown-label { font-size: 0.7rem; color: var(--color-ink-3); font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.radar-journos { list-style: none; padding: 0; margin: 0.4rem 0 0; display: grid; gap: 0.4rem; }
.radar-journos li { display: flex; justify-content: space-between; font-size: 0.82rem; }
.radar-journos li b { color: var(--color-ink-1); font-weight: 600; }
.radar-journos li span { color: var(--color-ink-3); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; }
.radar-related { font-size: 0.8rem; color: var(--color-ink-2); margin: 0.4rem 0 0; }

/* scout */
.scout-main { display: grid; gap: var(--space-md); }
.scout-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; padding-bottom: var(--space-sm); border-bottom: 1px solid var(--color-hairline); }
.scout-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-md); }
.opp-card { padding: var(--space-md); border: 1px solid var(--color-hairline); border-radius: 6px; display: grid; gap: 0.5rem; }
.opp-card__type { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-ink-3); }
.opp-card h4 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.015em; }
.opp-card__why { margin: 0; font-size: 0.85rem; color: var(--color-ink-2); line-height: 1.4; }
.opp-card__meta { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; list-style: none; padding: 0.5rem 0; margin: 0; border-top: 1px solid var(--color-hairline); border-bottom: 1px solid var(--color-hairline); }
.opp-card__meta li { display: grid; gap: 0.15rem; }
.opp-card__meta li span { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-ink-3); }
.opp-card__meta li b { font-family: var(--font-mono); font-size: 0.85rem; color: var(--color-ink-1); }
.opp-card__meta li b.hot { color: var(--color-ink-1); }
.opp-card__topic { margin: 0; font-size: 0.85rem; line-height: 1.4; }
.opp-card__topic em { font-style: normal; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-ink-3); margin-right: 0.3rem; }
.opp-card__assets { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.08em; color: var(--color-ink-3); }
.scout-side { display: grid; gap: var(--space-lg); align-content: start; }
.scout-side section { padding: var(--space-md); background: var(--color-newsprint); border-radius: 6px; border: 1px solid var(--color-hairline); }
.kpi { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem; align-items: baseline; padding: 0.3rem 0; }
.kpi b { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--color-ink-1); }
.kpi span { font-size: 0.75rem; color: var(--color-ink-3); font-family: var(--font-mono); letter-spacing: 0.1em; }

/* media list */
.ml-main { display: grid; gap: var(--space-md); }
.ml-input { padding: var(--space-md); background: var(--color-newsprint); border: 1px solid var(--color-hairline); border-radius: 6px; }
.ml-input header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.ml-input__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 0.8rem; }
.ml-input__grid > div { display: grid; gap: 0.1rem; }
.ml-input__grid span { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-ink-3); }
.ml-input__grid b { font-size: 0.92rem; color: var(--color-ink-1); font-weight: 500; }
.ml-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.ml-table thead { background: var(--color-newsprint); }
.ml-table th { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-ink-3); text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--color-hairline-strong); }
.ml-table td { padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--color-hairline); color: var(--color-ink-1); vertical-align: top; }
.ml-table td:nth-child(4) { color: var(--color-ink-2); font-size: 0.78rem; }
.prio { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--color-ink-1); color: var(--color-paper-3); font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600; }
.prio--b { background: var(--color-mute); }
.ml-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ml-side { display: grid; gap: var(--space-lg); align-content: start; }
.ml-side section { padding: var(--space-md); background: var(--color-newsprint); border-radius: 6px; border: 1px solid var(--color-hairline); }

/* pitch */
.pitch-left { border-right: 1px solid var(--color-hairline); padding: var(--space-md); overflow-y: auto; }
.pitch-journos { list-style: none; padding: 0; margin: 0.6rem 0 0; display: grid; gap: 0.3rem; }
.pitch-journos li { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 0.4rem; padding: 0.5rem 0.55rem; border-radius: 4px; cursor: pointer; }
.pitch-journos li:hover { background: var(--color-newsprint); }
.pitch-journos li.active { background: var(--color-newsprint); border: 1px solid var(--color-hairline-strong); padding: calc(0.5rem - 1px) calc(0.55rem - 1px); }
.pitch-journos li b { font-size: 0.82rem; color: var(--color-ink-1); }
.pitch-journos li > span:nth-of-type(1) { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--color-ink-3); grid-row: 2; }
.pitch-journos li .chip { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.pitch-center { padding: var(--space-md); overflow-y: auto; border-right: 1px solid var(--color-hairline); display: grid; gap: var(--space-md); align-content: start; }
.pitch-prof { display: grid; gap: 0.15rem; padding-bottom: var(--space-sm); border-bottom: 1px solid var(--color-hairline); }
.pitch-prof b { font-family: var(--font-display); font-size: 1.1rem; }
.pitch-prof > span { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--color-ink-3); }
.pitch-prof__fit { color: var(--color-ink-1) !important; font-weight: 600; }
.pitch-center section { display: grid; gap: 0.4rem; }
.pitch-center section p { margin: 0; font-size: 0.88rem; line-height: 1.45; color: var(--color-ink-1); }
.pitch-articles { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.25rem; font-size: 0.82rem; }
.pitch-articles li { color: var(--color-ink-2); padding-left: 0.8rem; position: relative; }
.pitch-articles li::before { content: "·"; position: absolute; left: 0; color: var(--color-ink-3); }
.pitch-right { padding: var(--space-md); overflow-y: auto; display: grid; gap: var(--space-sm); align-content: start; background: var(--color-newsprint); }
.pitch-draft-head { display: grid; gap: 0.5rem; }
.tone-row { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.pitch-subj { display: grid; gap: 0.2rem; }
.pitch-subj label { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-ink-3); }
.pitch-subj select { font-family: var(--font-body); font-size: 0.85rem; padding: 0.45rem 0.55rem; border: 1px solid var(--color-hairline); border-radius: 4px; background: var(--color-paper-3); color: var(--color-ink-1); }
.pitch-body { padding: var(--space-md); background: var(--color-paper-3); border: 1px solid var(--color-hairline); border-radius: 6px; font-size: 0.88rem; line-height: 1.55; color: var(--color-ink-1); display: grid; gap: 0.7rem; max-height: 320px; overflow-y: auto; }
.pitch-body p { margin: 0; }
.pitch-body mark { background: oklch(89% 0.19 98 / 0.4); padding: 0 0.2rem; color: var(--color-ink-1); }
.pitch-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.pitch-conf { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem 0.6rem; padding: var(--space-sm); background: var(--color-paper-3); border: 1px solid var(--color-hairline); border-radius: 4px; font-size: 0.75rem; }
.pitch-conf span { color: var(--color-ink-3); display: flex; justify-content: space-between; }
.pitch-conf b { color: var(--color-ink-1); font-family: var(--font-mono); font-weight: 600; }
.pitch-conf b.ok { color: oklch(50% 0.15 145); }

/* voice */
.voice-prof { padding: var(--space-md); background: var(--color-newsprint); border-bottom: 1px solid var(--color-hairline); border-radius: 6px; }
.voice-prof b { font-family: var(--font-display); font-size: 1.05rem; color: var(--color-ink-1); display: block; }
.voice-prof span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--color-ink-3); display: block; margin-top: 0.2rem; }
.voice-left { padding: var(--space-md); border: 1px solid var(--color-hairline); border-radius: 6px; }
.voice-ideas { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.45rem; }
.voice-ideas li { font-size: 0.85rem; line-height: 1.35; color: var(--color-ink-1); padding-bottom: 0.45rem; border-bottom: 1px dashed var(--color-hairline); cursor: pointer; }
.voice-ideas li:last-child { border: 0; }
.voice-center { display: grid; gap: var(--space-md); }
.voice-tabs { display: flex; gap: 0.4rem; border-bottom: 1px solid var(--color-hairline); }
.voice-tab { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.5rem 0.8rem; color: var(--color-ink-3); cursor: pointer; }
.voice-tab--active { color: var(--color-ink-1); border-bottom: 2px solid var(--color-lemon); margin-bottom: -1px; }
.voice-editor { padding: var(--space-md); background: var(--color-paper-3); border: 1px solid var(--color-hairline); border-radius: 6px; font-size: 0.92rem; line-height: 1.55; color: var(--color-ink-1); display: grid; gap: 0.7rem; }
.voice-editor mark { background: oklch(89% 0.19 98 / 0.4); padding: 0 0.2rem; }
.voice-right { display: grid; gap: var(--space-md); align-content: start; }
.voice-right section { padding: var(--space-md); background: var(--color-newsprint); border-radius: 6px; border: 1px solid var(--color-hairline); }
.voice-right ul { list-style: none; padding: 0; margin: 0.4rem 0 0; display: grid; gap: 0.25rem; font-size: 0.82rem; color: var(--color-ink-1); }
.voice-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* — responsive — */
@media (max-width: 1100px) {
  .agent-modal__body--monitor,
  .agent-modal__body--radar,
  .agent-modal__body--scout,
  .agent-modal__body--medialist { grid-template-columns: 1fr; }
  .agent-modal__body--pitch { grid-template-columns: 1fr; }
  .agent-modal__body--voice .voice-main { grid-template-columns: 1fr; }
  .pitch-left, .pitch-center { border-right: 0; border-bottom: 1px solid var(--color-hairline); }
  .pitch-left,
  .pitch-center,
  .pitch-right {
    overflow-y: visible;
    max-height: none;
  }
}
@media (max-width: 720px) {
  .hwh__stats { grid-template-columns: 1fr; }
  .agent-modal__sheet { width: 96vw; max-height: 94vh; border-radius: 8px; }
  .agent-modal__head { grid-template-columns: 1fr auto; }
  .ml-table { font-size: 0.75rem; }
  .ml-table th, .ml-table td { padding: 0.4rem 0.45rem; }
}

@media (max-width: 480px) {
  .agent-modal__sheet {
    width: 100vw;
    max-height: 100dvh;
    border-radius: 0;
  }
  .agent-modal__head { padding: var(--space-md); }
  .agent-modal__body { padding: var(--space-md); }
  .agent-modal__stats { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
  .agent-modal__stats > div b { font-size: 1.15rem; }
  .agent-modal__stat-live { align-self: start; }
  .mini-split,
  .opp-card__meta,
  .radar-alert__scores,
  .pitch-conf,
  .ml-input__grid,
  .book-times__list { grid-template-columns: 1fr; }
  .ml-table thead { display: none; }
  .ml-table tr {
    display: grid;
    gap: 0.25rem;
    padding: var(--space-sm) 0;
  }
  .ml-table td { padding: 0.2rem 0; border: 0; }
}

/* ─────────────────────────────────────────────  sub-page header  ─── */

.subpage {
  background: var(--color-newsprint);
}

.subpage__bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) clamp(var(--space-lg), 4vw, var(--space-3xl));
  background: var(--color-newsprint);
  border-bottom: 1px solid oklch(0% 0 0 / 0.1);
}

.subpage__brand {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
}
.subpage__brand .brand__mark {
  background-color: var(--color-ink-1);
  width: 100%;
  height: 100%;
}
.subpage__brand:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
  border-radius: 6px;
}

.subpage__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--space-lg), 3vw, 2.5rem);
}
.subpage__link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-2);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.subpage__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--color-ink-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out);
}
.subpage__link:hover { color: var(--color-ink-1); }
.subpage__link:hover::after,
.subpage__link.is-current::after { transform: scaleX(1); }
.subpage__link.is-current { color: var(--color-ink-1); }
.subpage__link:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
  border-radius: 2px;
}

.subpage__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.6rem 1.1rem;
  background: var(--color-ink-1);
  color: var(--color-paper-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: 999px;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out);
}
.subpage__cta:hover { background: var(--color-ink-2); }
.subpage__cta:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .subpage__bar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cta"
      "nav nav";
    gap: var(--space-sm);
    align-items: center;
  }
  .subpage__brand { grid-area: brand; }
  .subpage__cta { grid-area: cta; }
  .subpage__nav {
    grid-area: nav;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    padding-top: var(--space-sm);
    border-top: 1px solid oklch(0% 0 0 / 0.1);
    margin-top: var(--space-xs);
  }
  .subpage__link {
    font-size: var(--text-xs);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.25rem;
  }
}

/* Sub-page-mode How we work: more top padding because no hero above */
.hww--page {
  padding-top: clamp(var(--space-4xl), 12vw, 9rem);
}

/* ─────────────────────────────────────────────  how we work  ────── */

.hww {
  position: relative;
  width: 100%;
  background-color: var(--color-newsprint);
  /* watercolor lemon pattern at 20% visibility (80% transparency overlay on top) */
  background-image:
    linear-gradient(
      oklch(95% 0.014 85 / 0.8),
      oklch(95% 0.014 85 / 0.8)
    ),
    url("./public/hwh-pattern.png");
  background-repeat: no-repeat, repeat;
  background-size: cover, 640px auto;
  padding: clamp(var(--space-3xl), 8vw, 7rem) var(--frame-padding) clamp(var(--space-4xl), 10vw, 9rem);
  color: var(--color-ink-1);
}

.hww__inner {
  max-width: var(--max-w-page);
  margin: 0 auto;
}

.hww__header {
  display: grid;
  gap: clamp(var(--space-md), 2vw, var(--space-xl));
  margin-bottom: clamp(var(--space-2xl), 5vw, 4rem);
  max-width: 56rem;
}

.hww__eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-ink-3);
}
.hww__eyebrow-slash {
  color: var(--color-ink-3);
}

.hww__heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--color-ink-1);
  max-width: 26ch;
  text-wrap: balance;
  font-variation-settings: "wght" 700;
}

.hww__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(var(--space-md), 1.5vw, var(--space-xl));
}

.hww__step {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: clamp(var(--space-sm), 1.2vw, var(--space-md));
  padding: clamp(var(--space-lg), 2vw, var(--space-xl));
  background: var(--color-paper-3);
  border: 1px solid var(--color-hairline);
  border-radius: 10px;
  overflow: hidden;
  min-height: 280px;
  transition: transform var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out);
}
.hww__step:hover {
  transform: translateY(-2px);
  border-color: var(--color-hairline-strong);
  box-shadow: 0 12px 32px -16px oklch(0% 0 0 / 0.16);
}

.hww__step-pill {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  background: var(--color-lemon);
  color: var(--color-ink-1);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  font-weight: 500;
  box-shadow: 0 6px 14px -6px oklch(89% 0.19 98 / 0.65);
  position: relative;
  z-index: 1;
}

.hww__step-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.5vw, 1.45rem);
  letter-spacing: -0.018em;
  line-height: 1.15;
  color: var(--color-ink-1);
  font-variation-settings: "wght" 700;
  position: relative;
  z-index: 1;
}

.hww__step-desc {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-ink-2);
  position: relative;
  z-index: 1;
}

/* large faded ordinal numeral at bottom-right of each card — editorial typographic decoration */
.hww__step-num {
  position: absolute;
  right: -0.15em;
  bottom: -0.3em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(7rem, 12vw, 11rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: oklch(0% 0 0 / 0.05);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* responsive */
@media (max-width: 1024px) {
  .hww__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hww__grid { grid-template-columns: 1fr; }
  .hww__step { min-height: 220px; }
}

/* ─────────────────────────────────────────────  about  ────────── */

.about {
  position: relative;
  width: 100%;
  background: var(--color-lemon);
  padding: clamp(var(--space-3xl), 8vw, 7rem) var(--frame-padding) clamp(var(--space-3xl), 8vw, 7rem);
  color: var(--color-ink-1);
  overflow: hidden;
}

.about__container {
  max-width: 76rem;
  margin: 0 auto;
}

/* — head (left-aligned) — */
.about__head {
  display: grid;
  gap: clamp(var(--space-md), 1.6vw, var(--space-xl));
  justify-items: start;
  text-align: left;
  max-width: 52rem;
  margin: 0;
}

.about__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-ink-2);
}

.about__heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.7rem, 8vw, 7.65rem);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--color-ink-1);
  font-variation-settings: "wght" 700;
  text-wrap: balance;
}
.about__heading em {
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.05em;
  font-variation-settings: "wght" 700;
}

.about__subheading {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--color-ink-1);
  font-weight: 400;
  max-width: 44ch;
}

/* — duo layout: bio paired tight with its photo, photos meet in the middle
   Visual model: [ Ram-block ][ Yan-block ] where each block = bio + photo
   ↳ bio justifies INWARD (toward its photo), photo justifies INWARD (toward center)
   ↳ tight gap between bio↔photo (paired); photos meet at the visual center */
.about__duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(var(--space-md), 2vw, var(--space-xl));
  margin: clamp(var(--space-2xl), 6vw, 5rem) auto clamp(var(--space-xl), 4vw, 3rem);
  max-width: 80rem;
}

.about__photo {
  position: relative;
  margin: 0;
  /* Bigger founder photos — they're the visual anchor */
  height: clamp(22rem, 32vw, 32rem);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
/* Photos pull inward to meet in the visual center */
.about__photo--ram { justify-self: end; }
.about__photo--yan { justify-self: start; }
.about__photo img {
  display: block;
  height: 100%;
  width: auto;
  /* subtle 2-px white outline + soft floor shadow */
  filter:
    drop-shadow( 2px  0   0 #fff)
    drop-shadow(-2px  0   0 #fff)
    drop-shadow( 0    2px 0 #fff)
    drop-shadow( 0   -2px 0 #fff)
    drop-shadow( 1.5px  1.5px 0 #fff)
    drop-shadow(-1.5px -1.5px 0 #fff)
    drop-shadow( 1.5px -1.5px 0 #fff)
    drop-shadow(-1.5px  1.5px 0 #fff)
    drop-shadow(0 14px 24px oklch(0% 0 0 / 0.18))
    drop-shadow(0 4px 8px oklch(0% 0 0 / 0.1));
}
/* z-order so Yan sits slightly in front when they overlap */
.about__photo--ram { z-index: 1; transform: translateX(2%); }
.about__photo--yan { z-index: 2; transform: translateX(-2%); }

/* — bios paired tight with their photo —
   Each bio JUSTIFIES INWARD toward the center so it sits right next to its founder.
   Both bios get a generous reading measure and a small top offset so the name lines
   up with the founder's shoulders, not their head — gives the photo room to breathe. */
.about__bio {
  display: grid;
  gap: clamp(var(--space-sm), 1.2vw, var(--space-md));
  align-self: start;
  max-width: 24rem;
  padding-top: clamp(var(--space-md), 2.5vw, 2rem);
}
.about__bio--left {
  justify-self: end;
  text-align: right;
  justify-items: end;
}
.about__bio--right {
  justify-self: start;
  text-align: left;
  justify-items: start;
}

.about__bio-head {
  display: grid;
  gap: 0.35rem;
}
.about__bio-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(2rem, 2.8vw, 2.75rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--color-ink-1);
}
.about__bio-name em {
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.045em;
}
.about__bio-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-ink-3);
}

.about__bio-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.05vw, 1.1rem);
  line-height: 1.6;
  letter-spacing: -0.005em;
  color: var(--color-ink-1);
  font-weight: 400;
  max-width: 38ch;
}

/* Credentials strip — past organizations. Natural colors preserved (so badges
   like IDF Spokesperson keep their detail). Sized larger and balanced via opacity. */
.about__creds {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: var(--space-md) 0 0;
  border-top: 1px solid oklch(0% 0 0 / 0.18);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(1.2rem, 2vw, 1.85rem);
}
.about__bio--left .about__creds {
  justify-content: flex-end;
  gap: clamp(0.85rem, 1.4vw, 1.25rem);
}
.about__bio--left .about__creds img { max-width: 6rem; }
.about__bio--right .about__creds { justify-content: flex-start; }

.about__creds li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
}
.about__creds img {
  height: 100%;
  width: auto;
  max-width: 8rem;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.about__creds img:hover { opacity: 1; }

.about__creds-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-ink-1);
  font-style: italic;
}

/* legacy classes kept hidden so previous styling can't leak in */
.about__round,
.about__logos,
.about__bio,
.about__meta,
.about__pair,
.about__side { display: revert; }

/* — responsive — */
@media (max-width: 1024px) {
  .about__duo {
    grid-template-columns: 1fr 1fr;
    gap: clamp(var(--space-xl), 4vw, var(--space-2xl));
    align-items: start;
  }
  .about__bio--left,
  .about__bio--right {
    text-align: center;
    padding-bottom: 0;
    justify-items: center;
  }
  .about__bio-text { max-width: 38ch; margin-inline: auto !important; }
  .about__photo {
    height: clamp(16rem, 38vw, 22rem);
    grid-row: 1;
  }
  .about__photo--ram { grid-column: 1; }
  .about__photo--yan { grid-column: 2; }
  .about__bio--left  { grid-column: 1; grid-row: 2; }
  .about__bio--right { grid-column: 2; grid-row: 2; }
  .about__creds {
    justify-content: center;
    flex-wrap: wrap;
  }
  .about__bio--left .about__creds,
  .about__bio--right .about__creds {
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .about__duo {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .about__photo,
  .about__bio--left,
  .about__bio--right { grid-column: 1; grid-row: auto; width: 100%; max-width: 24rem; }
  .about__photo--ram { order: 1; justify-self: center; }
  .about__bio--left { order: 2; justify-self: center; }
  .about__photo--yan { order: 3; justify-self: center; }
  .about__bio--right { order: 4; justify-self: center; }
  .about__photo {
    justify-self: center;
    height: clamp(15rem, 60vw, 20rem);
    transform: none;
  }
  .about__photo--ram,
  .about__photo--yan { transform: none; }
  .about__photo img {
    filter: drop-shadow(0 6px 16px oklch(0% 0 0 / 0.15));
  }
  .about__heading {
    font-size: clamp(2.5rem, 14vw, 4.5rem);
    white-space: normal;
    text-wrap: balance;
  }
}

/* ─────────────────────────────────────────────  closing CTA  ────── */

.cta {
  position: relative;
  width: 100%;
  padding: var(--frame-padding);
  background: var(--color-paper-1);
}

.cta__viewport {
  position: relative;
  width: 100%;
  height: clamp(540px, 72vh, 820px);
  overflow: hidden;
  isolation: isolate;
  background: var(--color-ink-1);
}

.cta__photo {
  position: absolute;
  inset: 0;
  background-image: url("./public/cta-chairs.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
.cta__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  /* subtle bottom darken so the pill + heading have legibility */
  background:
    radial-gradient(60% 50% at 50% 65%, var(--color-scrim-corner) 0%, transparent 70%),
    linear-gradient(180deg, transparent 40%, var(--color-scrim-bottom) 100%);
  pointer-events: none;
}

.cta__overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding: clamp(var(--space-xl), 5vw, var(--space-3xl));
}

.cta__heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6.5vw, 5.75rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--color-on-photo-1);
  text-shadow: 0 6px 26px var(--color-scrim-bottom);
  max-width: 18ch;
}

.cta__pill {
  font-size: var(--text-base);
  padding: 1rem 0.85rem 1rem 1.65rem;
}
.cta__pill .pill__icon { width: 2.05rem; height: 2.05rem; }

@media (max-width: 640px) {
  .cta__viewport { height: clamp(480px, 86vh, 640px); }
  .cta__heading { font-size: clamp(2.2rem, 11vw, 3.25rem); }
  /* Mobile uses a portrait image with the "Let AI do the heavy lifting"
     headline baked in. Drop the bottom scrim so it doesn't darken the type. */
  .cta__photo {
    background-image: url("./public/cta-chairs-mobile.png");
    background-position: center;
  }
  .cta__photo::after { display: none; }
}

/* ─────────────────────────────────────────────  book a call modal  ─ */

.book-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-out),
              visibility 0s linear var(--dur-mid);
  padding: var(--space-lg);
}
.book-modal.is-open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transition-delay: 0s, 0s;
}

.book-modal__backdrop {
  position: absolute;
  inset: 0;
  background: oklch(0% 0 0 / 0.55);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
}

/* Frosted glass sheet — same liquid-glass language as the pill, scaled up */
.book-modal__sheet {
  position: relative;
  width: min(96vw, 980px);
  max-height: 92vh;
  overflow: hidden;
  background: oklch(100% 0 0 / 0.16);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border: 1px solid oklch(100% 0 0 / 0.32);
  border-radius: 24px;
  color: var(--color-on-photo-1);
  box-shadow:
    inset 0 1px 0 0 oklch(100% 0 0 / 0.45),
    inset 0 -1px 0 0 oklch(0% 0 0 / 0.1),
    0 24px 60px -16px oklch(0% 0 0 / 0.5),
    0 8px 18px -6px oklch(0% 0 0 / 0.3);
  transform: translateY(12px) scale(0.985);
  transition: transform var(--dur-mid) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.book-modal.is-open .book-modal__sheet { transform: translateY(0) scale(1); }

/* Refraction sheen (same as pill) */
.book-modal__sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    oklch(100% 0 0 / 0.4) 0%,
    oklch(100% 0 0 / 0.05) 30%,
    transparent 55%,
    oklch(100% 0 0 / 0.05) 75%,
    oklch(100% 0 0 / 0.22) 100%
  );
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

.book-modal__close {
  position: absolute;
  top: clamp(var(--space-md), 1.6vw, var(--space-lg));
  right: clamp(var(--space-md), 1.6vw, var(--space-lg));
  z-index: 4;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid oklch(100% 0 0 / 0.45);
  border-radius: 50%;
  background: oklch(100% 0 0 / 0.14);
  color: var(--color-on-photo-1);
  font-size: 0.9rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--dur-fast) var(--ease-out);
}
.book-modal__close:hover { background: oklch(100% 0 0 / 0.28); }
.book-modal__close:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.book-modal__head {
  position: relative;
  z-index: 2;
  padding: clamp(var(--space-xl), 3vw, var(--space-3xl));
  padding-right: 4rem; /* room for close button */
  border-bottom: 1px solid oklch(100% 0 0 / 0.18);
  display: grid;
  gap: var(--space-sm);
  flex: 0 0 auto;
}
.book-modal__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: oklch(100% 0 0 / 0.65);
}
.book-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-on-photo-1);
}
.book-modal__sub {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  color: oklch(100% 0 0 / 0.8);
  max-width: 50ch;
}

.book-modal__progress {
  display: inline-flex;
  gap: 0.4rem;
  padding-top: 0.6rem;
  padding-right: 2.5rem; /* leave room for close button */
}
.book-modal__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: oklch(100% 0 0 / 0.3);
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.book-modal__dot.is-active {
  background: var(--color-lemon);
  transform: scale(1.2);
}

/* Step containers — only one is visible at a time, animated swap */
.book-modal__step {
  position: relative;
  z-index: 2;
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-mid) var(--ease-out),
              transform var(--dur-mid) var(--ease-out);
}
.book-modal__step.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.book-modal__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 0;
  overflow-y: auto;
}
.book-modal__body--cal { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.book-modal__body[hidden],
.book-modal__success[hidden] { display: none !important; }

/* — form — */
.book-form {
  display: grid;
  gap: var(--space-md);
  padding: clamp(var(--space-xl), 3vw, var(--space-3xl));
  border-right: 1px solid oklch(100% 0 0 / 0.18);
  align-content: start;
}
.book-form__field { display: grid; gap: 0.4rem; }
.book-form__field label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: oklch(100% 0 0 / 0.6);
}
.book-form__field input {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-on-photo-1);
  padding: 0.7rem 0.95rem;
  border: 1px solid oklch(100% 0 0 / 0.22);
  border-radius: 10px;
  background: oklch(100% 0 0 / 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.book-form__field input::placeholder { color: oklch(100% 0 0 / 0.4); }
.book-form__field input:hover {
  background: oklch(100% 0 0 / 0.12);
  border-color: oklch(100% 0 0 / 0.32);
}
.book-form__field input:focus {
  outline: none;
  border-color: oklch(100% 0 0 / 0.7);
  background: oklch(100% 0 0 / 0.18);
}

.book-form__submit {
  margin-top: var(--space-sm);
  justify-self: start;
  /* uses .pill liquid-glass styling already */
}
.book-form__submit[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.book-form__status {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: oklch(100% 0 0 / 0.72);
}
.book-form__status.is-error {
  color: oklch(78% 0.16 28);
}

/* — success state (replaces the form after a successful submission) — */
.book-modal__success {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 0;
  color: oklch(100% 0 0 / 0.92);
}
.book-modal__success-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(var(--space-xl), 3vw, var(--space-3xl));
  border-right: 1px solid oklch(100% 0 0 / 0.18);
  text-align: left;
}
.book-modal__success-icon {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: oklch(72% 0.18 145 / 0.22);
  border: 1px solid oklch(78% 0.16 145 / 0.55);
  color: oklch(92% 0.16 145);
  box-shadow: 0 0 0 6px oklch(72% 0.18 145 / 0.08);
  margin-bottom: var(--space-md);
}
.book-modal__success-icon svg {
  width: 1.6rem;
  height: 1.6rem;
}
.book-modal__success-title {
  margin: 0 0 var(--space-xs) 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  color: var(--color-on-photo-1);
}
.book-modal__success-sub {
  margin: 0 0 var(--space-lg) 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  color: oklch(100% 0 0 / 0.72);
  max-width: 40ch;
}
.book-modal__success-close {
  margin-top: 0;
}
.book-modal__success-portrait {
  margin: 0;
  padding: clamp(var(--space-md), 2vw, var(--space-xl));
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-modal__success-portrait img {
  display: block;
  width: 75%;
  max-width: 22rem;
  height: auto;
  border-radius: 16px;
  box-shadow:
    0 24px 50px -20px oklch(0% 0 0 / 0.5),
    0 6px 14px -4px oklch(0% 0 0 / 0.3);
}

/* — portrait (step 1, right side) — */
.book-portrait {
  margin: 0;
  padding: clamp(var(--space-md), 2vw, var(--space-xl));
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-portrait img {
  display: block;
  width: 75%;          /* 25% smaller than the column */
  max-width: 22rem;
  height: auto;
  border-radius: 16px;
  box-shadow:
    0 24px 50px -20px oklch(0% 0 0 / 0.5),
    0 6px 14px -4px oklch(0% 0 0 / 0.3);
}

/* — calendar mockup (step 2) — */
.book-cal {
  padding: clamp(var(--space-md), 2.5vw, var(--space-2xl));
  border-right: 1px solid oklch(100% 0 0 / 0.18);
  display: grid;
  gap: var(--space-md);
  align-content: start;
}
.book-cal__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-sm);
}
.book-cal__month {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--color-on-photo-1);
}
.book-cal__nav {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid oklch(100% 0 0 / 0.32);
  background: oklch(100% 0 0 / 0.08);
  color: var(--color-on-photo-1);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--dur-fast) var(--ease-out);
}
.book-cal__nav:hover { background: oklch(100% 0 0 / 0.18); }

.book-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(100% 0 0 / 0.55);
}
.book-cal__weekdays span {
  text-align: center;
  padding-top: 0.2rem;
}

.book-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
}
.book-cal__day {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-on-photo-1);
  background: oklch(100% 0 0 / 0.08);
  border: 1px solid transparent;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.book-cal__day:hover {
  background: oklch(100% 0 0 / 0.18);
  border-color: oklch(100% 0 0 / 0.32);
}
.book-cal__day--mute {
  color: oklch(100% 0 0 / 0.25);
  background: transparent;
  cursor: default;
  pointer-events: none;
}
.book-cal__day--off {
  color: oklch(100% 0 0 / 0.3);
  background: oklch(100% 0 0 / 0.03);
  cursor: not-allowed;
  pointer-events: none;
}
.book-cal__day--selected {
  background: var(--color-lemon);
  color: var(--color-ink-1);
  border-color: var(--color-lemon);
  font-weight: 700;
}

/* — time slots (step 2, right column) — */
.book-times {
  padding: clamp(var(--space-md), 2.5vw, var(--space-2xl));
  display: grid;
  gap: var(--space-md);
  align-content: start;
}
.book-times__head {
  display: grid;
  gap: 0.25rem;
}
.book-times__day {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: oklch(100% 0 0 / 0.6);
}
.book-times__date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--color-on-photo-1);
}
.book-times__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.book-time {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-on-photo-1);
  background: oklch(100% 0 0 / 0.08);
  border: 1px solid oklch(100% 0 0 / 0.22);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.book-time:hover {
  background: oklch(100% 0 0 / 0.18);
  border-color: oklch(100% 0 0 / 0.45);
}
.book-time--selected {
  background: var(--color-lemon);
  color: var(--color-ink-1);
  border-color: var(--color-lemon);
  font-weight: 600;
}
.book-times__confirm {
  margin-top: var(--space-sm);
}

@media (max-width: 760px) {
  .book-modal__body { grid-template-columns: 1fr; }
  .book-form { border-right: none; border-bottom: 1px solid oklch(100% 0 0 / 0.18); }
  .book-portrait img { width: 60%; max-width: 16rem; }
  .book-cal { border-right: none; border-bottom: 1px solid oklch(100% 0 0 / 0.18); }
  .book-times__list { grid-template-columns: 1fr 1fr 1fr; }

  .book-modal__success { grid-template-columns: 1fr; }
  .book-modal__success-left { border-right: none; border-bottom: 1px solid oklch(100% 0 0 / 0.18); align-items: center; text-align: center; }
  .book-modal__success-portrait img { width: 60%; max-width: 16rem; }
}

@media (max-width: 640px) {
  .book-modal { padding: 0; }
  .book-modal__sheet {
    width: 100vw;
    max-height: 100dvh;
    border-radius: 0;
  }
  .book-modal__head { padding: var(--space-lg); }
  .book-portrait { display: none; }
  .book-modal__success-portrait { display: none; }
}

/* ─────────────────────────────────────────────  footer  ────────── */

.footer {
  position: relative;
  width: 100%;
  background: var(--color-newsprint);
  padding: clamp(var(--space-xl), 4vw, 3.5rem) var(--frame-padding) 0;
  color: var(--color-ink-2);
}

.footer__card {
  max-width: var(--max-w-page);
  margin: 0 auto;
  padding: clamp(var(--space-xl), 3.5vw, 3rem) clamp(var(--space-lg), 3.5vw, 3rem);
  background: var(--color-paper-3);
  border: 1px solid oklch(0% 0 0 / 0.08);
  border-radius: 20px;
  position: relative;
  z-index: 1;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: clamp(var(--space-xl), 4vw, 4rem);
  padding-bottom: clamp(var(--space-xl), 3vw, 2.5rem);
  border-bottom: 1px solid oklch(0% 0 0 / 0.08);
}

.footer__brand-block {
  display: flex;
  flex-direction: column;
  gap: clamp(var(--space-md), 1.8vw, var(--space-lg));
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-ink-1);
}
.footer__mark {
  width: 2.3rem;          /* 25% bigger than the previous 1.85rem */
  height: 2.3rem;
  background-color: var(--color-ink-1);
  -webkit-mask: url("./public/lemon-logo-transparent.png") center / contain no-repeat;
          mask: url("./public/lemon-logo-transparent.png") center / contain no-repeat;
}
.footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--color-ink-1);
}
.footer__tagline {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-ink-3);
  max-width: 36ch;
}

.footer__social {
  display: inline-flex;
  gap: var(--space-md);
  margin-top: var(--space-xs);
}
.footer__icon {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-ink-2);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__icon svg { width: 100%; height: 100%; }
.footer__icon:hover { color: var(--color-ink-1); }
.footer__icon:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
  border-radius: 4px;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(var(--space-md), 3vw, 3rem);
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer__col-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-ink-1);
}
.footer__link {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--color-ink-3);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__link:hover { color: var(--color-ink-1); }
.footer__link:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
  border-radius: 2px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-top: clamp(var(--space-md), 2vw, var(--space-lg));
}
.footer__copy {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-ink-3);
}
.footer__legal {
  display: inline-flex;
  flex-wrap: wrap;
  gap: clamp(var(--space-md), 2vw, 1.75rem);
}
.footer__legal-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-ink-3);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__legal-link:hover { color: var(--color-ink-1); }
.footer__legal-link:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (max-width: 860px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}
@media (max-width: 560px) {
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .footer__cols { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────  brand sign-off (watermark) ── */

.brand-end {
  width: 100%;
  padding: clamp(var(--space-lg), 3vw, 2rem) 0 0;
  overflow: hidden;          /* crops the bottom portion of the letters */
  line-height: 0;
  text-align: center;
  position: relative;
  z-index: 0;
  /* Only the top 70% of the word peeks out — show ~0.55em of the ~0.78em line */
  height: clamp(3.5rem, 18vw, 19.5rem);
}
.brand-end__word {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(5rem, 26vw, 28rem);
  line-height: 0.78;
  letter-spacing: -0.12em;       /* CLOSER letters */
  color: oklch(0% 0 0 / 0.1);    /* 10% visible — 90% transparent */
  -webkit-text-stroke: 0.04em oklch(0% 0 0 / 0.1); /* BOLDER (thickens stroke) */
          text-stroke: 0.04em oklch(0% 0 0 / 0.1);
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  transform: scaleX(1.18);       /* WIDER letters */
  transform-origin: center top;
}

/* sign-off below hero (legacy — kept hidden for any lingering references) */
.signoff {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--frame-padding) var(--space-xl);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-2);
  flex-wrap: wrap;
}
.signoff__stage {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}
.signoff__stage::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--color-accent);
  border-radius: 50%;
}

/* ─────────────────────────────────────────────  responsive  ──────── */

@supports (height: 100dvh) {
  .hero__viewport,
  .cta__viewport { height: calc(100dvh - calc(var(--frame-padding) * 2)); }
  .book-modal__sheet { max-height: 92dvh; }
  .agent-modal__sheet { max-height: 90dvh; }
}

@media (max-width: 640px) {
  /* prevent iOS form-zoom */
  input, select, textarea { font-size: max(16px, 1rem); }

  .brand__mark { width: 1.75rem; height: 1.75rem; }
  .cta__overlay { padding: var(--space-lg); }
  .brand-end { height: clamp(2.5rem, 12vw, 6rem); }

  .nav__link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-block: 0.7rem;
    padding-inline: 0.25rem;
  }
  .subpage__link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 0.25rem;
  }
  .subpage__cta span:first-child { display: none; }
  .footer__link {
    padding: 0.4rem 0;
    display: inline-block;
  }
  .footer__icon {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0.4rem;
  }

  .book-form__field input {
    min-height: 44px;
    padding-block: 0.75rem;
  }

  .book-modal__sheet {
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
  }
  .book-modal__backdrop {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .hww--page {
    padding-top: clamp(var(--space-2xl), 6vw, 4rem);
  }
}

@supports not (backdrop-filter: blur(1px)) {
  .book-modal__sheet {
    background: oklch(22% 0.012 65 / 0.94);
  }
  .book-modal__backdrop {
    background: oklch(0% 0 0 / 0.75);
  }
}

@media (max-width: 900px) {
  /* statement stays centered, just smaller */
  .hero__statement {
    font-size: clamp(1.5rem, 6vw, 2.75rem);
  }
  .hero__callout {
    font-size: 0.85rem;
    max-width: 12ch;
  }
  .hero__callout--p1 { top: 12%; left: 5%; }
  .hero__callout--p2 { top: 12%; right: 5%; }
  .hero__callout--p3 { display: none; }
  .hero__callout--p4 { bottom: 22%; left: 5%; }
  .hero__callout--p5 { bottom: 6%; }

  .hero__top {
    grid-template-columns: auto 1fr auto;
    gap: var(--space-md);
    padding: var(--space-lg);
  }
  .nav {
    align-items: flex-end;
    padding-top: var(--space-xs);
  }
  .nav__link { font-size: var(--text-sm); }
  .hero__headline-wrap {
    padding: 0 var(--space-lg) var(--space-2xl);
  }
  .hero__headline {
    font-size: clamp(2.75rem, 11vw, 5.5rem);
    letter-spacing: -0.03em;
    max-width: 18ch;
  }
  .hero__sub {
    font-size: var(--text-base);
    margin-top: var(--space-md);
  }
  .pill {
    padding: 0.7rem 0.9rem 0.7rem 1.1rem;
    font-size: var(--text-xs);
  }
  .pill__icon { width: 1.35rem; height: 1.35rem; }
}

@media (max-width: 560px) {
  /* Give the hero photo a bit more vertical room on phones. */
  .hero__viewport { min-height: 620px; }
}

/* Keep each lemon-"o" word (work, modern) intact so the lemon graphic
   doesn't wrap onto its own line and split the word on narrow screens. */
.hwh__nowrap {
  white-space: nowrap;
}

/* Mobile CTA: shorter viewport that fills the section's full width.
   Image is cropped slightly top/bottom (favoring the middle headline area).
   Placed late so it wins over the 100dvh @supports rule above. */
@media (max-width: 640px) {
  .cta__viewport {
    height: clamp(520px, 78vh, 640px);
  }
  .cta__photo {
    background-size: cover;
    background-position: center;
  }
}

/* ────────  Mobile hero overrides — placed late so they win cascade  ──── */
@media (max-width: 768px) {
  /* Hide inline nav; only brand + pill remain in the top bar. */
  .hero__top .nav { display: none; }
  /* With nav hidden, grid auto-placement drops the pill into the 1fr
     middle column where it would stretch. Force a clean 2-col layout: brand
     on the left, pill on the right at its natural width. */
  .hero__top {
    grid-template-columns: auto 1fr;
  }
  .hero__top .pill {
    justify-self: end;
  }
}

@media (max-width: 640px) {
  /* Restore scroll runway so callouts have room to reveal as the user scrolls. */
  .hero-stage { height: 200vh; }

  /* Keep the absolute-positioned chaos layout, but tuned for narrow screens:
     each callout sits in its own corner-ish slot, none overlap the headline. */
  .hero__callouts {
    display: block;
    inset: 0;
    padding: 0;
  }
  .hero__callout {
    max-width: 14ch;
    font-size: clamp(1rem, 3.6vw, 1.2rem);
  }
  /* Scattered placements — non-overlapping with each other or the centered headline */
  .hero__callout--p1 { top: 9%;   left: 5%;  right: auto; bottom: auto; }  /* top-left */
  .hero__callout--p2 { top: 16%;  right: 5%; left: auto;  bottom: auto; }  /* top-right, slightly lower */
  .hero__callout--p5 { bottom: 26%; left: 5%; right: auto; top: auto; }    /* mid-bottom-left */
  .hero__callout--p4 { bottom: 6%; right: 5%; left: auto; top: auto; }     /* bottom-right (last to appear) */

  /* The blur-ghost ::before reads better on desktop; turn it off on mobile. */
  .hero__callout::before { display: none; }
  /* Replace per-letter reveal with a whole-callout fade. */
  .hero__callout .letter {
    opacity: 1;
    transform: none;
  }

  /* Sequential reveal driven by --scroll (0 at top of hero-stage, 1 at bottom).
     Order: p1 → p2 → p5 → p4 (Your team needs leverage is last). */
  .hero__callout--p1 { opacity: clamp(0, calc((var(--scroll, 0) - 0.05) * 5), 1); }
  .hero__callout--p2 { opacity: clamp(0, calc((var(--scroll, 0) - 0.20) * 5), 1); }
  .hero__callout--p5 { opacity: clamp(0, calc((var(--scroll, 0) - 0.35) * 5), 1); }
  .hero__callout--p4 { opacity: clamp(0, calc((var(--scroll, 0) - 0.50) * 5), 1); }

  /* Let the headline wrap to two lines and scale up. */
  .hero__statement {
    white-space: normal;
    text-wrap: balance;
    font-size: clamp(2.25rem, 10vw, 3rem);
    max-width: 12ch;
    line-height: 0.95;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
  .hero__callout .letter {
    opacity: 1;
    transform: none;
  }
  .nav__link:hover::after { transform: scaleX(1); }
  .pill:hover::before,
  .pill:hover::after,
  .pill:hover .pill__icon { transform: none; }
}
