:root {
  --sage: #8fae86;
  --sage-soft: #cfe0c9;
  --sky: #7fa3c4;
  --sky-soft: #cfe0ee;
  --peach: #d99e6e;
  --peach-soft: #f2ddc4;
  --paper: #fbf9f4;
  --paper-raised: #f4f0e7;
  --ink: #262a25;
  --ink-soft: #565f54;
  --ink-faint: #8a9086;
  --line: #dcd6c8;
  --radius-s: 10px;
  --radius-m: 16px;
  --shadow-1: 0 1px 2px rgba(38, 42, 37, 0.06), 0 8px 24px -12px rgba(38, 42, 37, 0.18);
  --shadow-2: 0 2px 4px rgba(38, 42, 37, 0.08), 0 24px 48px -20px rgba(38, 42, 37, 0.28);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

::selection {
  background: var(--sage-soft);
  color: var(--ink);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Cards translate ±70px in from the sides as they reveal; guard
     against that briefly opening a horizontal scrollbar. */
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

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

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 96px 32px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 52ch;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo), background 0.3s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  background: #1c1f1b;
}

.btn-small { padding: 10px 20px; font-size: 0.88rem; }
.btn-large { padding: 18px 36px; font-size: 1.08rem; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 249, 244, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}

.nav-logo span {
  color: var(--sage);
  font-weight: 500;
  margin-left: 6px;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--ink); }

/* ---------- Climb rail: the whole-page staircase ----------
   A fixed stair-profile rail that tracks which "flight" of the page
   you're on, so scrolling through the content reads as climbing,
   not just reading. Discrete steps, not a proportional scrollbar —
   a staircase has landings, not a continuous ramp. */

.climb-rail {
  display: none;
}

@media (min-width: 1320px) {
  .climb-rail {
    display: block;
    position: fixed;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 62vh;
    max-height: 620px;
    z-index: 30;
  }

  .climb-rail-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .rail-track {
    fill: none;
    stroke: var(--line);
    stroke-width: 2;
  }

  .rail-progress {
    fill: none;
    stroke: url(#rail-gradient);
    stroke-width: 2;
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    transition: stroke-dashoffset 0.5s var(--ease-out-expo);
  }

  .rail-point {
    position: absolute;
    left: var(--rx);
    top: var(--ry);
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--line);
    background: var(--paper);
    padding: 0;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease-out-expo);
  }

  .rail-point:hover {
    transform: translate(-50%, -50%) scale(1.15);
  }

  .rail-point.is-passed {
    border-color: var(--sage);
    background: var(--sage-soft);
  }

  .rail-point.is-active {
    border-color: var(--ink);
    background: var(--ink);
    transform: translate(-50%, -50%) scale(1.2);
  }

  .rail-traveler {
    position: absolute;
    left: 16.67%;
    top: 2.86%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: var(--paper);
    border: 2.5px solid var(--ink);
    box-shadow: 0 3px 8px rgba(38, 42, 37, 0.35);
    transition: left 0.5s var(--ease-out-expo), top 0.5s var(--ease-out-expo);
    pointer-events: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 88px 32px 60px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.eyebrow-free {
  color: var(--sage);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 1.8rem + 3vw, 4rem);
  line-height: 1.06;
  max-width: 12ch;
}

.hero-sub {
  margin-top: 24px;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-note {
  color: var(--ink-faint);
  font-size: 0.92rem;
}

.hero-steps { width: 100%; }
.hero-steps-svg { width: 100%; height: auto; overflow: visible; }

.rise-line {
  stroke: var(--sage);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
}

.rise-dot {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  transform: scale(0.4);
}

.dot-1 { fill: var(--peach); }
.dot-2 { fill: var(--peach); }
.dot-3 { fill: var(--sky); }
.dot-4 { fill: var(--sage); }

/* Looping: JS toggles .is-animating on .hero-steps to replay this
   cycle every few seconds, so the ascent keeps happening rather than
   playing once and going still. */
.hero-steps.is-animating .rise-line {
  animation: draw-line 1.6s var(--ease-out-expo) 0.3s forwards;
}

.hero-steps.is-animating .rise-dot {
  animation: pop-dot 0.5s var(--ease-out-expo) forwards;
}

.hero-steps.is-animating .dot-1 { animation-delay: 0.4s; }
.hero-steps.is-animating .dot-2 { animation-delay: 0.9s; }
.hero-steps.is-animating .dot-3 { animation-delay: 1.3s; }
.hero-steps.is-animating .dot-4 { animation-delay: 1.7s; }

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

@keyframes pop-dot {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .rise-line, .rise-dot { animation: none !important; opacity: 1; stroke-dashoffset: 0; transform: scale(1); }
}

/* ---------- VSL ---------- */

.vsl { padding-top: 0; padding-bottom: 56px; }

.video-card.vsl-video {
  aspect-ratio: 16 / 9;
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .vsl { padding-top: 0; padding-bottom: 40px; }
  .vsl .vsl-video { margin: 0 24px; width: auto; }
}

/* ---------- Staircase / offers ---------- */

.staircase {
  position: relative;
  display: grid;
  gap: 32px;
}

.step {
  border-radius: var(--radius-m);
  padding: 36px 32px 40px;
  background-color: var(--paper-raised);
  border: 1px solid var(--line);
  position: relative;
  --reveal-x: 0px;
  transform: translateX(var(--reveal-x));
}

/* Slide-in composes through the single --reveal-x variable rather
   than setting `transform` directly, so it never fights the card's
   own staggered-ladder or arrival-lift transforms declared below —
   whichever rule wins the cascade for `transform` still reads the
   same current --reveal-x. Without .reveal (e.g. JS failed to run)
   .step stays at its normal opacity/position. */
.step.step-reveal {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo), background 0.4s ease;
}

.step.step-reveal.slide-left { --reveal-x: -70px; }
.step.step-reveal.slide-right { --reveal-x: 70px; }
.step.step-reveal.is-visible { opacity: 1; --reveal-x: 0px; }

@media (prefers-reduced-motion: reduce) {
  .step.step-reveal { opacity: 1; --reveal-x: 0px; transition: box-shadow 0.4s ease, background 0.4s ease; }
}

.step-marker {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-faint);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.step h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.step-tag {
  color: var(--ink-soft);
  font-size: 1rem;
  margin-bottom: 28px;
}

.step-block { margin-top: 22px; }

.step-block h4 {
  font-family: 'Public Sans', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.step-block p { color: var(--ink-soft); }

.step-block ul {
  display: grid;
  gap: 8px;
}

.step-block li {
  list-style: none;
  padding-left: 20px;
  position: relative;
  color: var(--ink-soft);
}

.step-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.5;
}

.step-1 { border-top: 3px solid var(--peach); }
.step-2 { border-top: 3px solid var(--sky); }
.step-3 { border-top: 3px solid var(--sage); }

.step-featured {
  background-color: var(--paper);
  box-shadow: var(--shadow-1);
}

/* ---------- Each step feels like its own name ---------- */

.step { overflow: hidden; }

/* Blueprint: drafting grid + a "not to scale" annotation, the way an
   architect's plan is actually marked up. */
.step-1 {
  background-image:
    linear-gradient(rgba(217, 158, 110, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 158, 110, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -1px -1px;
}

.step-1::after {
  content: 'N.T.S.';
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: #a2703f;
  opacity: 0.6;
  border: 1px dashed rgba(217, 158, 110, 0.55);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Blueprint on hover: a drafting crosshair tracks the cursor, like a
   CAD tool measuring against the grid. */
.step-1::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, transparent calc(var(--mx, 50%) - 1px), rgba(162, 112, 63, 0.55) calc(var(--mx, 50%) - 1px), rgba(162, 112, 63, 0.55) calc(var(--mx, 50%) + 1px), transparent calc(var(--mx, 50%) + 1px)),
    linear-gradient(to bottom, transparent calc(var(--my, 50%) - 1px), rgba(162, 112, 63, 0.55) calc(var(--my, 50%) - 1px), rgba(162, 112, 63, 0.55) calc(var(--my, 50%) + 1px), transparent calc(var(--my, 50%) + 1px));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.step-1:hover::before {
  opacity: 1;
}

/* Magnet: field lines pulling in from the corner, and a stronger
   pull on hover/arrival instead of a plain shadow lift. */
.step-2 {
  background-image: repeating-radial-gradient(
    circle at 100% 0%,
    transparent 0 9px,
    rgba(127, 163, 196, 0.14) 9px 11px
  );
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo), background 0.4s ease;
}

.step-2:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px rgba(127, 163, 196, 0.55);
}

/* Magnet on hover: an attraction glow follows the cursor, like the
   card itself is magnetized toward it. */
.step-2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(127, 163, 196, 0.4), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.step-2:hover::before {
  opacity: 1;
}

/* Expansion: wider rings radiating outward and more room to breathe
   inside the card itself, not just a decorative pattern. */
.step-3 {
  padding: 40px 36px 46px;
  background-image: repeating-radial-gradient(
    circle at 0% 100%,
    transparent 0 16px,
    rgba(143, 174, 134, 0.13) 16px 18px
  );
}

/* Expansion on hover: a ring actually expands outward from the
   cursor, repeating for as long as the cursor stays put. */
.step-3::before {
  content: '';
  position: absolute;
  left: var(--mx, 50%);
  top: var(--my, 50%);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(143, 174, 134, 0.65);
  opacity: 0;
  pointer-events: none;
}

.step-3:hover::before {
  animation: ripple-expand 1.3s ease-out infinite;
}

@keyframes ripple-expand {
  0% { width: 12px; height: 12px; margin: -6px 0 0 -6px; opacity: 0.7; }
  100% { width: 150px; height: 150px; margin: -75px 0 0 -75px; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .step-3:hover::before { animation: none; opacity: 0; }
}


@media (min-width: 860px) {
  .staircase {
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
    gap: 28px;
  }
  .step { position: relative; z-index: 1; }
  .step-1 { transform: translateY(64px) translateX(var(--reveal-x)); }
  .step-2 { transform: translateY(24px) translateX(var(--reveal-x)); }
  .step-3 { transform: translateY(-16px) translateX(var(--reveal-x)); }
}

.stages-cta {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

/* ---------- Offer step "arrival" (fires from the global climb rail's
   IntersectionObserver — see .climb-rail below) ---------- */

@media (min-width: 860px) {
  .step {
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo), background 0.4s ease;
  }
  .step.is-reached {
    box-shadow: var(--shadow-2);
    background-color: var(--paper);
  }
  .step-1.is-reached { transform: translateY(56px) scale(1.015) translateX(var(--reveal-x)); }
  .step-2.is-reached {
    transform: translateY(16px) scale(1.015) translateX(var(--reveal-x));
    box-shadow: 0 16px 40px -10px rgba(127, 163, 196, 0.5), var(--shadow-1);
  }
  .step-3.is-reached { transform: translateY(-24px) scale(1.03) translateX(var(--reveal-x)); }
  .step-marker {
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out-expo);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
  }
  .step.is-reached .step-marker {
    transform: scale(1.1);
  }
  .step-1.is-reached .step-marker { background: var(--peach-soft); color: #6b4325; }
  .step-2.is-reached .step-marker { background: var(--sky-soft); color: #2c4a63; }
  .step-3.is-reached .step-marker { background: var(--sage-soft); color: #3a4f36; }
}

/* ---------- Portfolio ---------- */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
}

.portfolio-window {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--paper-raised);
  aspect-ratio: 4 / 3;
  padding: 26px 0 0;
  font: inherit;
  text-align: left;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

button.portfolio-window {
  cursor: pointer;
}

button.portfolio-window:hover img {
  transform: scale(1.03);
}

.portfolio-window img {
  transition: transform 0.5s var(--ease-out-expo);
}

.portfolio-card:hover .portfolio-window {
  transform: translateY(-4px);
  box-shadow: var(--shadow-1);
}

.portfolio-window img {
  width: 100%;
  height: calc(100% - 26px);
  object-fit: cover;
  object-position: top;
}

.portfolio-dot {
  position: absolute;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}

.portfolio-dot:nth-child(1) { left: 12px; }
.portfolio-dot:nth-child(2) { left: 24px; }
.portfolio-dot:nth-child(3) { left: 36px; }

.portfolio-window-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-placeholder-icon {
  width: 44px;
  height: 44px;
  color: var(--ink-faint);
  opacity: 0.7;
}

.portfolio-meta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portfolio-meta h3 {
  font-size: 1.02rem;
}

.portfolio-badge {
  flex-shrink: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--sage);
  background: var(--sage-soft);
  border-radius: 999px;
  padding: 3px 10px;
}

.portfolio-card p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

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

/* ---------- How it works ---------- */

.how-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 72px;
}

.how-item h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.how-item p {
  color: var(--ink-soft);
}

.how-item {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* Each step in the process gets its own small animated thought —
   the ideation → targeting → follow-up arc rendered as a brain
   thinking, a bubble chattering, and a pen actually writing. */

.how-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  overflow: visible;
}

.icon-brain { color: var(--peach); }
.icon-bubble { color: var(--sky); }
.icon-pen { color: var(--sage); }

.icon-brain .synapse {
  fill: currentColor;
  opacity: 0.25;
  animation: synapse-fire 2.4s ease-in-out infinite;
}

.syn-1 { animation-delay: 0s; }
.syn-2 { animation-delay: 0.5s; }
.syn-3 { animation-delay: 1s; }

@keyframes synapse-fire {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  30% { opacity: 1; transform: scale(1.3); }
  60% { opacity: 0.4; transform: scale(1); }
}

.icon-bubble .trail {
  fill: currentColor;
  opacity: 0.2;
  animation: trail-pulse 1.6s ease-in-out infinite;
}

.trail-1 { animation-delay: 0s; }
.trail-2 { animation-delay: 0.2s; }
.trail-3 { animation-delay: 0.4s; }

@keyframes trail-pulse {
  0%, 60%, 100% { opacity: 0.2; }
  30% { opacity: 1; }
}

.icon-pen .pen-line {
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  animation: pen-write 2.6s ease-in-out infinite;
}

@keyframes pen-write {
  0% { stroke-dashoffset: 26; }
  45%, 55% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -26; }
}

@media (prefers-reduced-motion: reduce) {
  .icon-brain .synapse,
  .icon-bubble .trail,
  .icon-pen .pen-line {
    animation: none;
    opacity: 0.7;
    stroke-dashoffset: 0;
  }
}

.results {
  background: var(--sky-soft);
  border-radius: var(--radius-m);
  padding: 44px 40px;
  margin-bottom: 72px;
}

.results h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.result-card {
  background: var(--paper);
  border-radius: var(--radius-s);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-figure {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
}

.result-label {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.results-note {
  margin-top: 20px;
  color: #3f5468;
  font-size: 0.88rem;
  max-width: 60ch;
}

.blockers h3 {
  font-size: 1.3rem;
  margin-bottom: 22px;
}

.blockers ol {
  display: grid;
  gap: 16px;
  counter-reset: item;
  margin-bottom: 22px;
}

.blockers li {
  list-style: none;
  padding-left: 34px;
  position: relative;
  color: var(--ink-soft);
  counter-increment: item;
}

.blockers li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--peach-soft);
  color: #6b4325;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.blockers strong { color: var(--ink); }

.blockers > p {
  color: var(--ink-soft);
  font-weight: 500;
}

/* ---------- Proof thumbnails ---------- */

.proof-link {
  margin-top: 14px;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}

.proof-link img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  object-position: top;
  filter: saturate(0.9);
  transition: transform 0.5s var(--ease-out-expo);
}

.proof-link:hover img { transform: scale(1.04); }

.proof-link span {
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(38, 42, 37, 0.72);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 10px;
}

/* ---------- Founder ---------- */

.founder-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
}

.founder-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
}

.founder h2 { font-size: 1.9rem; margin: 4px 0 6px; }

.founder-role {
  color: var(--sage);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.founder-bio {
  color: var(--ink-soft);
  max-width: 56ch;
}

.founder-bio a {
  color: var(--sky);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Testimonials ---------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card { display: flex; flex-direction: column; }

.video-card, .screenshot-card {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 12;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--ink);
}

.video-card img, .screenshot-card img, .video-card video, .video-card iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.screenshot-card { aspect-ratio: 4 / 3; background: var(--paper-raised); }
.screenshot-card img { object-fit: contain; }

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn::before {
  content: '';
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(251, 249, 244, 0.92);
  box-shadow: var(--shadow-1);
}

.play-btn::after {
  content: '';
  position: absolute;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--ink);
  transform: translateX(3px);
}

.video-card.is-playing .play-btn { display: none; }

.testimonial-name {
  margin-top: 16px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
}

.testimonial-detail {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.testimonial-more {
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sky);
}

.case-studies { margin-top: 64px; }

.case-studies h3 {
  font-size: 1.15rem;
  margin-bottom: 22px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.case-item {
  display: block;
  border-radius: var(--radius-s);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.case-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }

.case-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.case-item span {
  display: block;
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ---------- Products ---------- */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo), background 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-1);
  background: var(--paper);
}

.product-card h3 { font-size: 1.15rem; }
.product-card p { color: var(--ink-soft); font-size: 0.95rem; }

.product-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--sage);
  font-size: 0.92rem;
}

.products-note {
  margin-top: 32px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.products-note a {
  color: var(--sky);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 18px 22px;
  background: var(--paper-raised);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-family: 'Bricolage Grotesque', sans-serif;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--ink-faint);
  font-weight: 400;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 14px;
  color: var(--ink-soft);
}

/* ---------- Final CTA ---------- */

.cta-final {
  text-align: center;
  background: var(--sage-soft);
  border-radius: var(--radius-m);
  max-width: 1080px;
  margin: 0 auto 96px;
  padding: 72px 32px;
}

.cta-final h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  margin-bottom: 12px;
}

.cta-final p {
  color: #3f4d3a;
  margin-bottom: 32px;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.footer-links a:hover { color: var(--ink); }

.footer-copy {
  color: var(--ink-faint);
  font-size: 0.85rem;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(38, 42, 37, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

.lightbox-img {
  max-width: min(100%, 900px);
  max-height: 85vh;
  width: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-2);
  transform: scale(0.96);
  transition: transform 0.3s var(--ease-out-expo);
}

.lightbox.is-open .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: transform 0.3s var(--ease-out-expo);
}

.lightbox-close:hover { transform: scale(1.08); }

.proof-link, .screenshot-card {
  font: inherit;
  text-align: left;
}

/* ---------- Scroll reveal ---------- */

/* Futuristic slide-in: headings and cards alternate in from the left
   or right instead of just fading up (JS assigns .slide-left or
   .slide-right per element in page order). .step cards use their own
   parallel .step-reveal system (see the offer-step rules) so the two
   never collide on the shared .reveal class name. */
.reveal {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.reveal.slide-left { transform: translateX(-70px); }
.reveal.slide-right { transform: translateX(70px); }

.reveal.is-visible {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 56px;
  }
  .hero-steps { order: -1; max-width: 280px; }
  .how-grid { grid-template-columns: 1fr; gap: 24px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .founder-grid { grid-template-columns: 1fr; text-align: left; }
  .founder-photo { max-width: 200px; }
  .nav-links { display: none; }
  .nav-inner { padding: 16px 20px; }
  .section { padding: 64px 24px; }
  .results { padding: 32px 24px; }
}

/* A brief flight through space, in the site's sage / sky / peach palette. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: none;
  min-height: 560px;
  display: block;
  padding: 96px max(32px, calc((100vw - 1016px) / 2)) 88px;
  background: var(--paper);
  color: var(--ink);
}
.hero-inner { position: relative; z-index: 1; max-width: 610px; }
.hero .eyebrow-free { color: var(--sage); }
.hero-sub { color: var(--ink-soft); }
.hero-note { color: var(--ink-faint); }
.hero-space { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero.is-entering .hero-inner { animation: space-arrival 1.8s cubic-bezier(.16,1,.3,1) both; }
@keyframes space-arrival {
  from { opacity: .15; transform: perspective(700px) translateZ(-240px); filter: blur(5px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
.portfolio-slideshow { min-width: 0; }
.portfolio-grid {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--sage) var(--paper);
  padding: 8px 2px 22px; scroll-padding-inline: 2px;
}
.portfolio-card { flex: 0 0 calc((100% - 48px) / 3); min-width: 0; scroll-snap-align: start; }
.portfolio-window { aspect-ratio: 16 / 11; }
.portfolio-window img { height: 100%; }
.portfolio-meta { align-items: flex-start; }
.portfolio-visit { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--sage); font-size: .9rem; font-weight: 600; text-underline-offset: 4px; }
.portfolio-controls { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: -12px 0 20px; }
.portfolio-controls[hidden] { display: none; }
.portfolio-controls button { min-height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); cursor: pointer; font: inherit; }
.portfolio-controls button:hover { background: var(--sage-soft); }
.portfolio-prev, .portfolio-next { width: 44px; display: grid; place-items: center; }
.portfolio-controls svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.portfolio-position { min-width: 48px; text-align: center; font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: .9rem; }
@media (max-width: 860px) {
  .portfolio-card { flex-basis: calc((100% - 24px) / 2); }
  .hero { padding: 72px 32px 80px; min-height: 540px; }
}
@media (max-width: 560px) {
  .portfolio-card { flex-basis: 88%; }
  .portfolio-controls { justify-content: flex-start; gap: 8px; }
  .hero { padding-top: 60px; }
  .hero h1 { font-size: 2.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero.is-entering .hero-inner { animation: none; }
  .portfolio-grid { scroll-behavior: auto; }
}

.hero h1 { color: var(--ink); max-width: 15ch; }
.portfolio-caption { margin-top: 8px; color: var(--ink-soft); font-size: .75rem; line-height: 1.5; }
/* Contain the existing section slide-ins without clipping the carousel's own scroll. */
main { overflow-x: clip; }
.portfolio-badge, .portfolio-visit { color: #46603f; }

/* Image inspection, with the project context kept beside the controls. */
.lightbox { padding: 24px; }
.lightbox-panel { width: min(1200px, 100%); max-height: calc(100dvh - 48px); overflow: auto; background: var(--paper); border-radius: 14px; box-shadow: var(--shadow-2); }
.lightbox-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; }
.lightbox-zoom-controls { display: flex; align-items: center; gap: 8px; }
.lightbox-toolbar button { min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; }
.lightbox-toolbar button:hover { background: var(--sage-soft); }
.lightbox-toolbar button:disabled { opacity: .4; cursor: default; }
.lightbox-zoom-level { width: 48px; text-align: center; font-size: .85rem; font-variant-numeric: tabular-nums; }
.lightbox .lightbox-close { position: static; width: auto; height: auto; box-shadow: none; transform: none; }
.lightbox-viewport { height: min(58dvh, 680px); overflow: auto; background: var(--paper-raised); overscroll-behavior: contain; scrollbar-color: var(--sage) var(--paper-raised); }
.lightbox .lightbox-img { display: block; max-width: none; max-height: none; height: auto; margin-inline: auto; border-radius: 0; box-shadow: none; transform: none; transition: none; }
.lightbox-copy { padding: 20px 24px 24px; }
.lightbox-copy h2 { font-size: clamp(1.3rem, 2vw, 1.8rem); margin-bottom: 8px; }
.lightbox-copy p { max-width: 75ch; color: var(--ink-soft); }
.lightbox-copy .lightbox-hint { font-size: .8rem; margin-top: 10px; }
button.portfolio-window { cursor: zoom-in; }
@media (max-width: 560px) {
  .lightbox { padding: 10px; }
  .lightbox-panel { max-height: calc(100dvh - 20px); }
  .lightbox-toolbar { padding: 10px; gap: 6px; }
  .lightbox-zoom-controls { gap: 4px; }
  .lightbox-toolbar button { padding: 8px; font-size: .8rem; }
  .lightbox-viewport { height: 43dvh; }
  .lightbox-copy { padding: 18px; }
}
