/* ==========================================================================
   Right Brain Ministries — Unlimited Graphics
   Direction: RBM refreshed. Two neutrals (near-black / warm paper) carry the
   surface; RBM's own yellow-orange-pink gradient is committed at the hero and
   two other key moments only. See .impeccable/surfaces/index-html.md
   ========================================================================== */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('assets/fonts/bricolage-grotesque-var.woff2') format('woff2-variations'),
       url('assets/fonts/bricolage-grotesque-var.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('assets/fonts/hanken-grotesk-var.woff2') format('woff2-variations'),
       url('assets/fonts/hanken-grotesk-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* neutrals — the surface's real ground */
  --ink: #0a0a0a;
  --ink-soft: #2b2a27;
  --paper: #fffcf6;
  --paper-dim: #f4efe3;
  --paper-line: rgba(10, 10, 10, 0.12);
  --white: #ffffff;

  /* RBM signature gradient — committed, not scattered */
  --yellow: #fffc00;
  --orange: #ff8a1e;
  --pink: #ff0060;
  --gradient-signature: linear-gradient(150deg, var(--yellow) 0%, var(--orange) 52%, var(--pink) 100%);
  --gradient-signature-soft: linear-gradient(150deg, #fffce6 0%, #ffe4c2 52%, #ffd0df 100%);

  /* type */
  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;

  --fs-display: clamp(2.55rem, 5vw + 1.4rem, 5.25rem);
  --fs-h2: clamp(2rem, 3.4vw + 1rem, 3.4rem);
  --fs-h3: clamp(1.375rem, 1.6vw + 1rem, 1.85rem);
  --fs-lead: clamp(1.05rem, 0.8vw + 0.85rem, 1.3rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  /* space */
  --space-1: 0.5rem;
  --space-2: 0.875rem;
  --space-3: 1.5rem;
  --space-4: 2.25rem;
  --space-5: 3.25rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;
  --section-pad: clamp(3.5rem, 6vw + 1rem, 7rem);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-pill: 999px;

  --shadow-tile: 0 18px 40px -20px rgba(10, 10, 10, 0.35);
  --shadow-tile-lg: 0 28px 60px -24px rgba(10, 10, 10, 0.4);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 68px;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
/* Keep same-page anchor jumps (Start Trial CTAs, footer links) clear of the sticky header. */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.06; }
::selection { background: var(--ink); color: var(--yellow); }

/* browser surfaces carry the design too */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-gradient :focus-visible, .section-ink :focus-visible, .site-footer :focus-visible { outline-color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow-none { /* intentionally absent: no kicker labels above headings in this system */ }

.section-label {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: #1c1c1a; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn-primary:hover { transform: translateY(-2px) scale(1.015); }
}
.btn-primary:active { transform: scale(0.97); }
/* On a black section the default black-on-black button is invisible — invert it. */
.section-ink .btn-primary { background: var(--paper); color: var(--ink); }
.section-ink .btn-primary:hover { background: var(--yellow); }
.section-ink .btn-primary:focus-visible { outline-color: var(--ink); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  min-height: 46px;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 252, 246, 0.94);
  border-bottom: 1px solid var(--paper-line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.logo .logo-mark {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}
.logo .logo-product {
  display: none;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-left: 0.85rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--paper-line);
}
.header-cta { padding: 0.65rem 1.25rem; min-height: 44px; font-size: 0.9rem; }

/* ---------- hero (+ video) — clean centered stack, neutral ground ---------- */
.hero {
  background: var(--paper);
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.hero .wrap.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.1rem, 2.6vw, 1.5rem);
}
.hero-title {
  font-size: var(--fs-display);
  color: var(--ink);
  max-width: 720px;
}
.hero-title .mark-wrap { position: relative; display: inline-block; }
.hero-title .mark-wrap svg { position: absolute; left: -4%; top: -12%; width: 108%; height: 132%; pointer-events: none; overflow: visible; }
.hero-title .mark-wrap path { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; }
/* pathLength="1" on the path normalizes its length to 1, so dasharray/dashoffset of 1
   always match the path exactly — the stroke completes fully regardless of geometry or scale. */
.js-reveal .hero-title .mark-wrap path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease-out) 0.35s; }
.hero-title .mark-wrap.is-visible path { stroke-dashoffset: 0; }

.hero .hero-lead {
  margin-top: 0;
  font-size: var(--fs-lead);
  max-width: 46ch;
  color: var(--ink-soft);
}
.hero-video { width: 100%; max-width: 620px; margin-top: 0.25rem; }

/* Offer + CTA block beneath the video — everything centered as one unit. */
.hero-offer {
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.hero-offer .btn-primary { width: 100%; max-width: 340px; }
.hero-offer .link-secondary { margin-top: -0.75rem; }
.hero-fineprint { font-size: var(--fs-micro); color: var(--ink-soft); text-align: center; }

/* ---------- secondary "Talk to a Team Member" link ----------
   Never a competing button: underlined text with a small arrow that nudges
   forward on hover. Reused across a handful of sections, never beside every
   trial CTA and never inside the mobile sticky bar. */
.link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-arrow { display: inline-block; transition: transform 0.25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-secondary:hover .link-arrow { transform: translateX(3px); }
}

/* Typographic offer line — plain centered row, no enclosing box. */
.offer-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  row-gap: 0.35rem;
}
.offer-chip {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.5vw, 1.02rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.offer-chip:not(:first-child)::before {
  content: '•';
  display: inline-block;
  margin: 0 0.9rem;
  color: var(--ink-soft);
  font-weight: 400;
}

/* ---------- creative energy — proof-of-work moment on the gradient ---------- */
.creative-moment {
  background: var(--gradient-signature);
  padding-block: clamp(3rem, 7vw, 5rem);
}
/* Flat children (copy, collage, cta) in this DOM order so mobile stacks in
   the intended reading order — headline, real work, then the ask — while
   desktop remaps them into a 45/55 two-column grid via named areas below. */
.creative-moment-layout {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 5vw, 2.25rem);
}
.creative-moment-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.creative-moment-line {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.25rem);
  color: var(--ink);
  letter-spacing: -0.01em;
  max-width: 14ch;
}
.creative-moment-lead {
  font-size: var(--fs-body);
  max-width: 36ch;
}
.creative-moment-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}
.creative-moment-cta .offer-line { justify-content: center; margin-top: 0.15rem; }
.creative-moment-collage {
  position: relative;
  height: clamp(280px, 78vw, 360px);
}
.creative-moment-tile {
  position: absolute;
  height: auto;
  border-radius: var(--radius-md);
  border: 3px solid var(--paper);
  box-shadow: var(--shadow-tile);
  overflow: hidden;
}
.creative-moment-tile--a { --rot: -4deg; --z: 2; width: 44%; aspect-ratio: 4 / 5; top: 0; left: 2%; z-index: 2; }
.creative-moment-tile--b { --rot: 5deg; --z: 3; width: 32%; aspect-ratio: 1 / 1; top: 2%; right: 2%; z-index: 3; }
.creative-moment-tile--c { --rot: -2deg; --z: 1; width: 52%; aspect-ratio: 1 / 1; bottom: 0; left: 18%; z-index: 1; }
.creative-moment-collage .creative-moment-tile.reveal-child { transform: rotate(var(--rot)); }
.js-reveal .creative-moment-collage .creative-moment-tile.reveal-child {
  transform: translateY(24px) rotate(calc(var(--rot) * 2.2)) scale(0.92);
  transition: transform 0.8s var(--ease-out), opacity 0.7s var(--ease-out);
}
.creative-moment-collage.is-visible .creative-moment-tile.reveal-child { transform: rotate(var(--rot)); }

/* Two stacked image layers per tile — crossfading between real work samples. */
.creative-moment-tile .tile-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.creative-moment-tile .tile-layer:first-of-type { opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  .creative-moment-collage.is-visible .creative-moment-tile.reveal-child:hover {
    transform: rotate(0deg) scale(1.06);
    z-index: 10;
    box-shadow: var(--shadow-tile-lg);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  }
}

@media (min-width: 641px) {
  /* A confident 45/55 split: text column left, real-work collage right,
     both vertically centered against each other. The cta block sits under
     the copy in its own row; the collage spans both rows as one tall cell. */
  .creative-moment-layout {
    display: grid;
    grid-template-columns: minmax(0, 45%) minmax(0, 55%);
    grid-template-areas:
      "copy    collage"
      "cta     collage";
    align-items: center;
    column-gap: clamp(2.5rem, 6vw, 4.5rem);
    row-gap: clamp(1rem, 2vw, 1.5rem);
  }
  .creative-moment-copy { grid-area: copy; max-width: none; }
  .creative-moment-cta { grid-area: cta; align-items: flex-start; }
  .creative-moment-cta .offer-line { justify-content: flex-start; }
  .creative-moment-collage { grid-area: collage; height: clamp(340px, 28vw, 440px); }
}

/* ---------- placeholder tiles (shared) ---------- */
.ph {
  position: relative;
  display: flex;
  align-items: flex-end;
  background-color: var(--paper-dim);
  background-image: repeating-linear-gradient(135deg, rgba(10, 10, 10, 0.07) 0 2px, transparent 2px 12px);
  border: 1.5px dashed rgba(10, 10, 10, 0.28);
  color: var(--ink-soft);
  min-height: 100%;
}
/* A real image tile: no hatch pattern, no dashed border — just the photo. */
.work-tile {
  background: none;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-tile);
  margin: 0;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.work-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Portfolio tiles: two stacked layers crossfading between real work samples. */
.work-tile .tile-layer { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.6s ease; }
.work-tile .tile-layer:first-of-type { opacity: 1; }

/* Portal screenshot deck — a stack of solid, opaque cards. The active card
   sits at full scale/opacity in front; the rest sit behind it, offset and
   scaled down, ordered cyclically by how recently each was active. Every
   card stays fully opaque (no transparency bleed) — depth comes from
   transform + z-index only. */
.portal-deck {
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 5;
  min-width: 0;
}
.portal-deck-card {
  position: absolute;
  inset: 0;
  margin: 0;
  background: var(--paper);
  border-radius: var(--radius-md);
  border: 3px solid var(--paper);
  box-shadow: var(--shadow-tile);
  overflow: hidden;
  cursor: pointer;
  transform: translate(calc(var(--dx, 0) * 1px), calc(var(--dy, 0) * 1px)) scale(var(--card-scale, 1)) rotate(var(--rot, 0deg));
  z-index: var(--zi, 1);
  transition: transform 0.55s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.portal-deck-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portal-deck-card.is-active { box-shadow: var(--shadow-tile-lg); }
@media (hover: hover) and (pointer: fine) {
  .portal-deck-card:hover { box-shadow: var(--shadow-tile-lg); }
}
.ph-square { aspect-ratio: 1 / 1; }
.ph-portrait { aspect-ratio: 3 / 4; }
.ph-wide { aspect-ratio: 16 / 10; }
.ph-video { aspect-ratio: 16 / 9; }

/* ---------- generic section rhythm ---------- */
.section { padding-block: var(--section-pad); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-dim { background: var(--paper-dim); }
.section-wash { background: var(--gradient-signature-soft); }
/* Pulls two adjacent, thematically connected sections (Real Designers → Problem) close together. */
.pad-b-tight { padding-bottom: var(--space-4); }
.pad-t-tight { padding-top: var(--space-3); }
.section-head { max-width: 640px; margin-bottom: var(--space-5); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { margin-top: var(--space-2); font-size: var(--fs-lead); color: var(--ink-soft); }
.section-ink .section-head p { color: rgba(255, 252, 246, 0.72); }

/* ---------- problem section ---------- */
.problem-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 520px;
  margin-top: var(--space-5);
}
.problem-note {
  --rest-rot: 0deg;
  background: var(--paper);
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 10px 24px -18px rgba(10, 10, 10, 0.4);
}
.problem-note:nth-child(1) { --rest-rot: -0.7deg; }
.problem-note:nth-child(2) { --rest-rot: 0.6deg; margin-left: clamp(0px, 4vw, 28px); }
.problem-note:nth-child(3) { --rest-rot: -0.5deg; }
.problem-note:nth-child(4) { --rest-rot: 0.7deg; margin-left: clamp(0px, 4vw, 28px); }

/* Brand-color activation per card, applied once scrolled into view. */
.problem-note[data-color="yellow"] { --card-bg: var(--yellow); --card-fg: var(--ink); }
.problem-note[data-color="orange"] { --card-bg: var(--orange); --card-fg: var(--ink); }
.problem-note[data-color="pink"] { --card-bg: var(--pink); --card-fg: var(--paper); }
.problem-note[data-color="ink"] { --card-bg: var(--ink); --card-fg: var(--paper); }

.js-reveal .problem-stack .problem-note.reveal-child {
  transform: rotate(calc(var(--rest-rot) * 3)) translateY(18px) scale(0.92);
  transition:
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.45s var(--ease-out),
    background-color 0.45s var(--ease-out) 0.12s,
    color 0.45s var(--ease-out) 0.12s,
    border-color 0.45s var(--ease-out) 0.12s;
}
.problem-stack.is-visible .problem-note.reveal-child {
  transform: rotate(var(--rest-rot)) translateY(0) scale(1);
  background: var(--card-bg);
  color: var(--card-fg);
  border-color: transparent;
}

/* Desktop-only pointer interaction: subtle scale/lift, plus a light cursor tilt from script.js. */
@media (hover: hover) and (pointer: fine) {
  .problem-stack.is-visible .problem-note.reveal-child:hover {
    transform: rotate(calc(var(--rest-rot) + var(--tilt, 0deg))) translateY(calc(-3px + var(--lift, 0px))) scale(1.035);
    transition: transform 0.2s var(--ease-out);
  }
}

/* ---------- solution section ---------- */
.solution-grid {
  display: grid;
  gap: var(--space-5);
  align-items: start;
}
.solution-copy p + p { margin-top: var(--space-2); }
.solution-copy p { font-size: var(--fs-lead); }
/* Editorial numbered points — replaces a generic checkmark list. No icons,
   no cards: a numeral, a rule, and an oversized statement. */
.solution-points { margin-top: var(--space-4); display: flex; flex-direction: column; }
.solution-points li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding-block: 1rem;
  border-top: 1.5px solid var(--paper-line);
}
.solution-points li:last-child { border-bottom: 1.5px solid var(--paper-line); }
.solution-points-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--pink);
  flex-shrink: 0;
  width: 1.8rem;
}
.solution-points p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.4vw + 0.85rem, 1.35rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.solution-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-tile);
}
.solution-photo img { width: 100%; height: auto; aspect-ratio: 1400 / 775; object-fit: cover; display: block; }

/* ---------- process (loop) ---------- */
.loop {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: step;
}
.loop-step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
  padding-block: var(--space-2);
  position: relative;
}
.loop-step::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 0 0 3px var(--pink);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}
.loop-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  width: 2px;
  height: calc(100% - 12px);
  background: var(--pink);
  transform-origin: top;
}
.js-reveal .loop-step:not(:last-child)::after { transform: scaleY(0); transition: transform 0.7s var(--ease-out); }
.reveal-group.is-visible .loop-step:nth-child(1):not(:last-child)::after { transform: scaleY(1); }
.reveal-group.is-visible .loop-step:nth-child(2):not(:last-child)::after { transform: scaleY(1); transition-delay: 0.15s; }
.reveal-group.is-visible .loop-step:nth-child(3):not(:last-child)::after { transform: scaleY(1); transition-delay: 0.3s; }
.loop-step h3 { font-size: 1.15rem; }
.loop-step p { margin-top: 0.25rem; color: var(--ink-soft); font-size: var(--fs-small); max-width: 46ch; }

.trial-steps {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--paper-line);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.trial-steps-heading { font-size: var(--fs-h3); }
.trial-steps-intro { color: var(--ink-soft); }
/* Animated stepper — an active dot/line progression, not a static tag row.
   Each step is a real interactive control (click/tap/keyboard) that brings
   its matching deck card to the front. */
.trial-stepper { display: flex; flex-direction: column; }
.trial-step {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.85rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.trial-step::before {
  content: '';
  position: absolute;
  left: 0; top: 1.05rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--paper-line);
  transition: background-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.trial-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 4px; top: calc(1.05rem + 9px);
  width: 1.5px;
  height: calc(100% - 9px);
  background: var(--paper-line);
}
.trial-step.is-active { color: var(--ink); font-weight: 800; transform: translateX(4px); }
.trial-step.is-active::before { background: var(--pink); transform: scale(1.4); }
.trial-step.is-done::before { background: var(--ink); }

/* ---------- hero video — the opening visual, not a lower section ---------- */
.ph-demo { aspect-ratio: 4 / 5; border-radius: var(--radius-md); overflow: hidden; }
@media (min-width: 641px) {
  .ph-demo { aspect-ratio: 16 / 9; }
}
/* Near-black backdrop so the mobile 4:5 frame letterboxes the 16:9 source
   cleanly (no cropping, no stretching) instead of showing empty white. */
.demo-media { background: var(--ink); }
.demo-media video { display: block; width: 100%; height: 100%; object-fit: contain; }
.js-reveal .demo-media { clip-path: inset(0 42% 0 42% round var(--radius-md)); transition: clip-path 0.9s var(--ease-out); }
.hero-video.is-visible .demo-media { clip-path: inset(0 0 0 0 round var(--radius-md)); }

/* ---------- real designers ---------- */
.real-designers-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.real-designers { max-width: 640px; }
.real-designers-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-tile);
}
.real-designers-photo img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; display: block; }

@media (min-width: 641px) {
  .real-designers-layout { flex-direction: row; align-items: center; gap: clamp(2.5rem, 6vw, 5rem); }
  .real-designers { flex: 1 1 0; min-width: 0; }
  .real-designers-photo { flex: 0 0 auto; width: min(360px, 34vw); }
}

/* ---------- portfolio ---------- */
.portfolio-grid {
  margin-top: var(--space-5);
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
  margin-inline: calc(clamp(1.25rem, 4vw, 2.5rem) * -1);
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.portfolio-grid .ph { flex: 0 0 68vw; scroll-snap-align: start; }
.js-reveal .portfolio-grid .reveal-child { transition: opacity 0.6s var(--ease-out); }

/* ---------- included ---------- */
/* Editorial index of what's included: a numbered single column on mobile
   (every row owns its own full-width divider, so nothing dangles or hangs
   alone), an editorial 3-column grid on desktop. No cards, no icons. */
.included-editorial {
  counter-reset: included;
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  border-top: 1.5px solid var(--ink);
}
.included-editorial li {
  counter-increment: included;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 0.7rem;
  border-bottom: 1.5px solid var(--row-accent, var(--ink));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.included-editorial li::before {
  content: counter(included, decimal-leading-zero);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--ink-soft);
  flex-shrink: 0;
  width: 1.6rem;
}
.included-editorial li:nth-child(4n+1) { --row-accent: var(--yellow); }
.included-editorial li:nth-child(4n+2) { --row-accent: var(--orange); }
.included-editorial li:nth-child(4n+3) { --row-accent: var(--pink); }
.included-editorial li:nth-child(4n) { --row-accent: var(--ink); }

@media (min-width: 641px) {
  .included-editorial {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: none;
  }
  .included-editorial li {
    border-top: 1.5px solid var(--ink);
    border-bottom: none;
    padding: var(--space-3) var(--space-4) var(--space-3) 0;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
  }
  .included-editorial li::before { display: none; }
  .included-editorial li:nth-last-child(-n+3) { border-bottom: 1.5px solid var(--ink); }
}
@media (hover: hover) and (pointer: fine) and (min-width: 641px) {
  .included-editorial li.reveal-child:hover {
    background: var(--paper-dim);
    border-top-color: var(--pink);
    transform: translateX(4px);
  }
  /* Portfolio tiles lift forward on hover — a controlled scale, no layout shift.
     Selector must out-specify .reveal-group.is-visible .reveal-child (which also
     sets transform), or the hover scale silently loses the cascade tie. */
  .portfolio-grid .work-tile.reveal-child:hover {
    transform: scale(1.04);
    z-index: 5;
    box-shadow: var(--shadow-tile-lg);
  }
}

/* ---------- offer / pricing ---------- */
.offer-panel {
  margin-top: var(--space-5);
  max-width: 640px;
  margin-inline: auto;
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-tile-lg);
  overflow: hidden;
  border: 1px solid var(--paper-line);
}
.offer-panel-top {
  padding: var(--space-4) var(--space-4) var(--space-3);
  text-align: center;
}
.offer-panel-top .plan-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.offer-panel-top .plan-normal { margin-top: 0.35rem; font-size: var(--fs-small); color: var(--ink-soft); }
.offer-panel-top .plan-normal s { opacity: 0.7; }
.offer-hero-price { margin-top: var(--space-2); }
.offer-hero-price .amount { font-family: var(--font-display); font-size: clamp(3rem, 9vw, 4.5rem); font-weight: 800; line-height: 1; }
.offer-hero-price .caption { font-size: var(--fs-small); font-weight: 700; color: var(--ink-soft); margin-top: 0.3rem; }
.offer-divider { border: none; border-top: 1.5px dashed rgba(10, 10, 10, 0.25); margin: 0 var(--space-4); }
.offer-details { padding: var(--space-3) var(--space-4) var(--space-4); display: flex; flex-direction: column; gap: 0.75rem; }
.offer-row { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-body); }
.offer-row strong { font-weight: 700; }
.offer-callout {
  margin-top: 0.25rem;
  font-size: var(--fs-small);
  background: var(--gradient-signature-soft);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font-weight: 600;
}
.offer-panel-cta { padding: 0 var(--space-4) var(--space-4); }
.offer-panel-secondary { margin-top: 0.75rem; text-align: center; font-size: var(--fs-small); color: var(--ink-soft); }
.offer-panel-secondary .link-secondary { color: var(--ink); }

/* ---------- testimonials ---------- */
.testimonial-rail {
  margin-top: var(--space-5);
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.testimonial-card {
  scroll-snap-align: start;
  flex: 0 0 min(320px, 82vw);
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: 0 14px 30px -20px rgba(10, 10, 10, 0.35);
}
.testimonial-card .quote-mark { font-family: var(--font-display); font-size: 2.5rem; color: var(--pink); line-height: 1; }
.testimonial-card p { margin-top: 0.5rem; font-size: var(--fs-body); color: var(--ink-soft); }
.testimonial-who { margin-top: var(--space-3); display: flex; align-items: center; gap: 0.65rem; }
.avatar-initial {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}
.avatar-initial[data-color="yellow"] { background: var(--yellow); color: var(--ink); }
.avatar-initial[data-color="orange"] { background: var(--orange); color: var(--ink); }
.avatar-initial[data-color="pink"] { background: var(--pink); color: var(--paper); }
.testimonial-who strong { display: block; font-size: var(--fs-small); }
.testimonial-who span { font-size: var(--fs-micro); color: var(--ink-soft); }

.client-logos { margin-top: var(--space-6); }
.client-logos p.section-label { margin-bottom: var(--space-4); text-align: center; }

/* Seamless marquee: two identical logo sets side by side, track slides exactly
   one set's width (-50%) so the loop point is invisible. */
.logo-ticker {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.logo-ticker-track {
  display: flex;
  width: max-content;
  animation: logo-ticker-scroll 32s linear infinite;
}
@media (hover: hover) and (pointer: fine) {
  .logo-ticker:hover .logo-ticker-track { animation-play-state: paused; }
}
.logo-ticker-set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(2.5rem, 8vw, 4.5rem);
  padding-right: clamp(2.5rem, 8vw, 4.5rem);
}
.client-logo { height: 40px; display: flex; align-items: center; flex-shrink: 0; }
.client-logo img { height: 100%; width: auto; max-width: none; object-fit: contain; }

@keyframes logo-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-ticker-track { animation: none; width: auto; justify-content: center; flex-wrap: wrap; }
  .logo-ticker-set[aria-hidden] { display: none; }
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: var(--space-5); border-top: 1px solid var(--paper-line); }
.faq-more { margin-top: var(--space-4); text-align: center; font-size: var(--fs-small); }
.faq-more-label { color: var(--ink-soft); }
.faq-item { border-bottom: 1px solid var(--paper-line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0.25rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  min-height: 56px;
}
.faq-q .icon { flex-shrink: 0; width: 24px; height: 24px; position: relative; }
.faq-q .icon::before, .faq-q .icon::after {
  content: '';
  position: absolute;
  background: var(--ink);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-q .icon::before { width: 16px; height: 2px; }
.faq-q .icon::after { width: 2px; height: 16px; transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out); }
.faq-item[data-open="true"] .icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out);
}
.faq-item[data-open="true"] .faq-a { grid-template-rows: 1fr; }
.faq-a > p { overflow: hidden; min-height: 0; padding: 0 0.25rem 1.25rem; font-size: var(--fs-body); color: var(--ink-soft); max-width: 60ch; }

/* ---------- final CTA ---------- */
.final-cta {
  background: var(--gradient-signature);
  text-align: center;
  padding-block: var(--space-7);
}
.final-cta h2 { font-size: var(--fs-h2); max-width: 16ch; margin-inline: auto; }
.final-cta .hero-lead { margin-inline: auto; text-align: center; }
.final-cta .offer-line { justify-content: center; }
.final-cta .btn-primary { margin-top: var(--space-4); }
.final-cta-secondary { margin-top: 0.85rem; font-size: var(--fs-small); }

/* ---------- other services ---------- */
.services-section { background: var(--paper-dim); padding-block: var(--section-pad); }
.services-section .section-head { margin-bottom: var(--space-4); }
.services-section .section-head h2 { font-size: var(--fs-h3); }

/* Editorial split — two full-bleed color paths, deliberately quieter than the main funnel. */
.services-split { display: flex; flex-direction: column; }
.service-panel {
  display: block;
  padding-block: var(--space-5);
  text-decoration: none;
  transition: filter 0.25s var(--ease-out);
}
.service-panel:hover { filter: brightness(1.08); }
.service-panel--dark { background: var(--ink); color: var(--paper); }
.service-panel--wash { background: var(--gradient-signature-soft); color: var(--ink); }
.service-panel-inner { max-width: 480px; }
.service-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  letter-spacing: -0.01em;
}
.service-price {
  display: block;
  margin-top: 0.35rem;
  font-weight: 700;
  font-size: var(--fs-body);
  opacity: 0.75;
}
.service-desc { margin-top: var(--space-2); font-size: var(--fs-small); max-width: 40ch; opacity: 0.85; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-3);
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.service-link svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease-out); }
.service-panel:hover .service-link svg { transform: translateX(3px); }
.service-panel--dark :focus-visible { outline-color: var(--paper); }

.services-unsure { margin-top: var(--space-4); text-align: center; font-size: var(--fs-small); }
.services-unsure a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.site-footer { padding-block: var(--space-5); background: var(--ink); color: var(--paper); }
.footer-top { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-tagline { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; font-size: var(--fs-small); color: rgba(255, 252, 246, 0.72); }
.footer-links a:hover { color: var(--paper); }
.footer-meta { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid rgba(255, 252, 246, 0.15); font-size: var(--fs-micro); color: rgba(255, 252, 246, 0.55); }

/* ---------- sticky mobile CTA bar ---------- */
.mobile-cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem clamp(1rem, 4vw, 1.5rem);
  padding-bottom: calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(255, 252, 246, 0.96);
  border-top: 1px solid var(--paper-line);
  box-shadow: 0 -10px 24px -14px rgba(10, 10, 10, 0.3);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease-out);
}
.mobile-cta-bar.is-visible { transform: translateY(0); }
.mobile-cta-bar .offer-reminder { font-size: 0.78rem; font-weight: 700; line-height: 1.2; max-width: 42vw; }
.mobile-cta-bar .btn { min-height: 46px; padding: 0.65rem 1.1rem; font-size: 0.88rem; flex-shrink: 0; }
body.has-mobile-bar { padding-bottom: 74px; }

/* ---------- scroll reveal ----------
   Visible by default: content must never depend on JS to be seen.
   The .js-reveal class (set immediately by script.js) opts into the
   hidden-then-animate-in state; no JS / a script error leaves everything
   shown, just without the entrance motion. */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.js-reveal .reveal-group .reveal-child { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal-group.is-visible .reveal-child { opacity: 1; transform: translateY(0); }
.reveal-child:nth-child(2) { transition-delay: 0.06s; }
.reveal-child:nth-child(3) { transition-delay: 0.12s; }
.reveal-child:nth-child(4) { transition-delay: 0.18s; }
.reveal-child:nth-child(5) { transition-delay: 0.24s; }

/* Masked upward reveal — reserved for a handful of major headlines only.
   The clip-path lives on an inner span, never on the observed .reveal element
   itself: a clip-path: inset(0 0 100% 0) target has zero effective area for
   IntersectionObserver, so revealing the observed element that way can never
   fire — a permanent deadlock. */
.reveal-mask-inner { display: inline-block; }
.js-reveal .reveal-mask .reveal-mask-inner { clip-path: inset(0 0 100% 0); transition: clip-path 0.8s var(--ease-out); }
.reveal-mask.is-visible .reveal-mask-inner { clip-path: inset(0 0 0% 0); }

/* Team photo entrance — a masked reveal with a very slight scale-settle. Desktop only. */
.photo-reveal img { transition: transform 0.9s var(--ease-out); }
.js-reveal .reveal.photo-reveal {
  opacity: 0;
  transform: none;
  clip-path: inset(6% round var(--radius-md));
  transition: opacity 0.6s var(--ease-out), clip-path 0.9s var(--ease-out);
}
.reveal.photo-reveal.is-visible { opacity: 1; clip-path: inset(0% round var(--radius-md)); }
.js-reveal .reveal.photo-reveal img { transform: scale(1.06); }
.reveal.photo-reveal.is-visible img { transform: scale(1); }

/* ==========================================================================
   Breakpoints — mobile is the base; desktop is progressive enhancement.
   ========================================================================== */
@media (max-width: 640px) {
  .reveal, .reveal-child { transition-duration: 0.35s; transform: translateY(8px); }
  .hero-title .mark-wrap path { transition-duration: 0.6s; }
  /* Mobile: considerably less motion — no masked wipes, no drawn connector timing. */
  .js-reveal .demo-media { clip-path: none; transition: none; }
  .js-reveal .loop-step:not(:last-child)::after { transform: scaleY(1); transition: none; }
  /* Problem cards: keep the color-activate settle, but shorter and gentler. */
  .js-reveal .problem-stack .problem-note.reveal-child {
    transform: translateY(10px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.35s var(--ease-out), background-color 0.4s var(--ease-out) 0.08s, color 0.4s var(--ease-out) 0.08s, border-color 0.4s var(--ease-out) 0.08s;
  }
  .problem-stack.is-visible .problem-note.reveal-child { transform: rotate(var(--rest-rot)) translateY(0) scale(1); }
  .js-reveal .creative-moment-collage .creative-moment-tile.reveal-child {
    transform: translateY(12px) rotate(var(--rot)) scale(0.96);
    transition-duration: 0.45s;
  }
  .js-reveal .reveal-mask .reveal-mask-inner { transition-duration: 0.45s; }
  /* Team photo: simple fade/translate on mobile — no clip-path/scale choreography. */
  .js-reveal .reveal.photo-reveal { clip-path: none; opacity: 0; transform: translateY(16px); transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out); }
  .reveal.photo-reveal.is-visible { clip-path: none; opacity: 1; transform: translateY(0); }
  .js-reveal .reveal.photo-reveal img, .reveal.photo-reveal.is-visible img { transform: none; }
}

@media (max-width: 480px) {
  /* Offer line stacks into centered lines — no bullets dangling at a wrap point. */
  .offer-line { flex-direction: column; align-items: center; gap: 0.45rem; }
  .offer-chip:not(:first-child)::before { display: none; }
}

@media (min-width: 641px) {
  .logo .logo-product { display: inline; }
  .hero .wrap.hero-stack { gap: 1.75rem; }
  .hero-video { max-width: 760px; }
  .solution-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  /* Two-column layout: copy + stepper + CTA on the left, a large screenshot
     deck dominant on the right. Grid areas let five flat children (heading,
     intro, stepper, deck, cta) reflow into columns without a wrapper div —
     the same flat markup stacks in natural reading order on mobile. */
  .trial-steps {
    display: grid;
    grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
    grid-template-areas:
      "heading deck"
      "intro deck"
      "stepper deck"
      "cta deck";
    column-gap: var(--space-6);
    row-gap: var(--space-3);
    align-items: center;
  }
  .trial-steps > * { min-width: 0; }
  .trial-steps-heading { grid-area: heading; }
  .trial-steps-intro { grid-area: intro; }
  .trial-stepper { grid-area: stepper; }
  .trial-steps-cta { grid-area: cta; }
  .portal-deck { grid-area: deck; }
  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
  .portfolio-grid .ph { flex-basis: auto; }
  .portfolio-grid .ph:first-child { grid-column: span 2; grid-row: span 2; }
  .js-reveal .portfolio-grid .reveal-child { clip-path: inset(0 0 100% 0); transition: clip-path 0.7s var(--ease-out), opacity 0.6s var(--ease-out); }
  .portfolio-grid.is-visible .reveal-child { clip-path: inset(0 0 0% 0); }
  .services-split { flex-direction: row; }
  .service-panel { flex: 1 1 50%; display: flex; align-items: center; }
  .service-panel-inner { margin-inline: auto; width: 100%; }
}
