/* ============================================================
   PathCrafter — styles.css
   Taste Skill: soft-skill variant / rugged-premium
   ============================================================ */

/* --- Custom Properties --- */
:root {
  /* Palette */
  --bg:          #0d0d0b;
  --bg-surface:  #161614;
  --bg-card:     #1a1a17;
  --text:        #f0ede8;
  --text-muted:  #9e9b95;
  --accent:      #c47c34;
  --accent-dim:  rgba(196, 124, 52, 0.15);
  --border:      rgba(240, 237, 232, 0.08);
  --border-hover:rgba(240, 237, 232, 0.18);

  /* Typography */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Motion vocabulary — 3 easings only */
  --ease-standard:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-overshoot: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-decel:     cubic-bezier(0, 0, 0.2, 1);

  /* Legacy aliases (kept so existing `.reveal` rules don't break) */
  --ease:     var(--ease-standard);
  --ease-out: var(--ease-decel);

  /* Layout */
  --section-gap: clamp(80px, 12vw, 140px);
  --container:   1240px;

  /* Scroll-sequence pin depth (consumed in §4.2) */
  --pin-depth:   300vh;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.active {
  opacity: 1;
  transform: none;
}
/* Hero copy must not wait for JS (it is the LCP element): pure-CSS
   staggered entrance, independent of the IntersectionObserver. */
.hero-content .reveal {
  animation: heroReveal 0.7s var(--ease-out) forwards;
}
.hero-content .reveal:nth-child(2) { animation-delay: 0.08s; }
.hero-content .reveal:nth-child(3) { animation-delay: 0.16s; }
.hero-content .reveal:nth-child(4) { animation-delay: 0.24s; }
.hero-content .reveal:nth-child(5) { animation-delay: 0.32s; }
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content .reveal { animation: none; opacity: 1; transform: none; }
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* --- Section Labels --- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: clamp(48px, 7vw, 80px);
}
.section-header h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* --- CTA Buttons --- */
.cta-primary {
  display: inline-block;
  padding: 16px 44px;
  border: 1px solid var(--text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border-radius: 2px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  cursor: pointer;
}
.cta-primary:hover {
  background: var(--text);
  color: var(--bg);
}

.cta-secondary {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s var(--ease);
}
.cta-secondary::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--text-muted);
  transition: width 0.3s var(--ease);
}
.cta-secondary:hover { color: var(--text); }
.cta-secondary:hover::after { width: 100%; background: var(--text); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease),
              border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(13, 13, 11, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 0;
  border-color: var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo, .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  transition: color 0.3s var(--ease);
}
.nav-logo__mark, .footer-logo__mark { color: var(--accent); flex-shrink: 0; }
.nav-logo__word, .footer-logo__word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.footer-logo__word { font-size: 0.9rem; }
.nav-logo:hover { color: var(--accent); }
.footer-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  padding: 10px 24px;
  border: 1px solid var(--border-hover);
  border-radius: 2px;
  color: var(--text);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.nav-links .nav-cta:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-container {
  /* Extra vertical room so parallax translateY never reveals background */
  position: absolute;
  top: -30%;
  left: 0;
  right: 0;
  bottom: -30%;
  z-index: 0;
  will-change: transform;
}
.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
/* Masking gradient */
.hero-video-mask {
  position: absolute;
  inset: 0;
  background:
    /* darkened center panel so the headline always sits on shadow,
       whatever frame the video is on */
    radial-gradient(ellipse 62% 58% at center, rgba(13, 13, 11, 0.62) 0%, rgba(13, 13, 11, 0.3) 55%, transparent 80%),
    radial-gradient(ellipse at center, transparent 30%, var(--bg) 85%),
    linear-gradient(to bottom, var(--bg) 0%, rgba(13, 13, 11, 0.25) 25%, rgba(13, 13, 11, 0.25) 65%, var(--bg) 100%);
}
.hero-video-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, var(--bg) 95%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  /* top padding clears the fixed nav; bottom clears the scroll hint */
  padding: clamp(88px, 12vh, 140px) clamp(20px, 5vw, 60px) clamp(110px, 15vh, 170px);
  max-width: 900px;
  will-change: transform, opacity;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  transition-delay: 0s !important;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-weight: 900;
  /* vh term keeps four display lines + CTA inside one viewport —
     without it the eyebrow rode up under the nav and the CTA
     collided with the scroll hint on 900px-tall screens */
  font-size: clamp(3.5rem, min(10vw, 12.5vh), 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 28px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55);
  transition-delay: 0.1s !important;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 300;
  /* muted gray vanished against the video — full text color at
     reduced opacity keeps hierarchy but stays legible */
  color: var(--text);
  opacity: 0.82;
  line-height: 1.65;
  margin-top: clamp(16px, 2vw, 24px);
  margin-bottom: 0;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.6);
  transition-delay: 0.2s !important;
}

.hero-content .cta-primary {
  margin-top: clamp(32px, 5vw, 48px);
  transition-delay: 0.3s !important;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 0; /* never above the CTA */
  opacity: 0.65;
}
/* The hero's copy block needs ~920px of height before the hint has
   clear air below the fine print — drop it on anything shorter */
@media (max-height: 920px) {
  .hero-scroll-hint { display: none; }
}
.hero-scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 0.9; transform: scaleY(1.15); }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}
.trust-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.trust-item {
  flex: 1;
  text-align: center;
  padding: 0 clamp(16px, 3vw, 40px);
}
.trust-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}
.trust-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.trust-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ============================================================
   SCROLL SEQUENCE — pinned cinematic (spec §4.2)
   ============================================================ */
.scroll-sequence {
  position: relative;
  background: var(--bg);
}
.ss-pin {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.ss-stage {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
}
.ss-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.78) saturate(1.05);
}
.ss-vignette {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 40%, transparent 70%),
    linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 25%, transparent 55%, rgba(0,0,0,0.6) 100%);
}
.ss-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.78);
}
.ss-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: clamp(80px, 12vh, 140px) clamp(24px, 6vw, 80px) clamp(48px, 8vw, 96px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 24px;
  pointer-events: none;
}
.ss-copy__label {
  align-self: start;
  color: var(--brand);
}
.ss-act {
  grid-row: 2;
  grid-column: 1;
  align-self: end;
  max-width: 640px;
  display: grid;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}
.ss-act__headline {
  margin: 0;
  line-height: 0.95;
}
.ss-act__body {
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0;
}

.ss-stack { display: none; }
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
  .ss-pin { display: none; }
  .ss-stack {
    display: grid;
    gap: clamp(40px, 8vw, 64px);
    padding: var(--section-gap) clamp(20px, 5vw, 60px);
  }
  .ss-stack__item img {
    width: 100%;
    height: auto; /* the height="768" attribute wins otherwise — portrait crop */
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
  }
  .ss-stack__item h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 8px;
  }
  .ss-stack__item p { color: var(--text-muted); }
}

/* ============================================================
   PROBLEM — split visual layout (spec §4.3)
   ============================================================ */
.problem {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.problem-layout {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.problem-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.problem-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  transition: transform 1.4s var(--ease-out);
}
.problem-visual.active img { transform: scale(1); }
.problem-visual img.duotone { filter: url(#duotone-brand); }

.problem-body { display: flex; flex-direction: column; gap: 20px; }
.problem-body .t-headline { margin: 8px 0 8px; }
.problem-body .t-body { max-width: 56ch; }

.problem-quotes {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 2px solid var(--accent);
  padding-left: 20px;
}
.problem-quote {
  font-family: var(--font-display, var(--font-body));
  font-style: italic;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  .problem-layout { grid-template-columns: 1fr; gap: 40px; }
  .problem-visual { aspect-ratio: 3 / 2; }
}

/* ============================================================
   HOW IT WORKS — image-led cards (spec §4.4)
   ============================================================ */
.how-it-works {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.how-it-works .section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.how-it-works .section-header .t-label { display: inline-block; margin-bottom: 16px; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}
.how-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease-out);
}
.how-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.how-card__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a0a09;
}
.how-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.9s var(--ease-out);
}
.how-card:hover .how-card__img img { transform: scale(1.06); }
.how-card__body {
  padding: clamp(24px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.how-card__num {
  font-family: var(--font-display, var(--font-body));
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.how-card__title {
  font-family: var(--font-display, var(--font-body));
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
.how-card__desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0;
}

/* stagger reveal */
.how-grid .how-card.reveal { transition-delay: 0s; }
.how-grid .how-card:nth-child(2).reveal { transition-delay: 0.12s; }
.how-grid .how-card:nth-child(3).reveal { transition-delay: 0.24s; }

@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   FEATURES — 6-tile bento grid (spec §4.5)
   ============================================================ */
.features {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.features .section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.features .section-header .t-label { display: inline-block; margin-bottom: 16px; }

.bento {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: minmax(220px, auto);
  gap: clamp(12px, 1.6vw, 20px);
}
.bento-tile {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--border);
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  min-height: 220px;
  isolation: isolate;
  transition:
    transform 0.5s var(--ease-out),
    border-color 0.4s var(--ease),
    box-shadow 0.5s var(--ease-out);
}
.bento-tile:hover {
  border-color: rgba(196, 124, 52, 0.45);
  transform: translateY(-5px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 2px 10px rgba(196, 124, 52, 0.08);
}
.bento-tile:hover .bento-tile__overlay { opacity: 0.82; }
@media (prefers-reduced-motion: reduce) {
  .bento-tile, .bento-tile:hover { transform: none; }
}
.bento-tile--hero {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 460px;
}
.bento-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,13,11,0.25) 0%, rgba(13,13,11,0.55) 55%, rgba(13,13,11,0.92) 100%);
  z-index: 1;
  transition: opacity 0.5s var(--ease);
}
.bento-tile__body {
  position: absolute;
  left: clamp(20px, 2vw, 32px);
  right: clamp(20px, 2vw, 32px);
  bottom: clamp(20px, 2vw, 28px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bento-tile__body .t-label { color: var(--accent); }
.bento-tile__title {
  font-family: var(--font-display, var(--font-body));
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}
.bento-tile--hero .bento-tile__title {
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
}
.bento-tile__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 4px 0 0;
  max-width: 52ch;
}
.bento-tile[data-duotone]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: url(#duotone-brand);
  z-index: 0;
}
.bento-tile[data-duotone] { background-image: none; }

@media (max-width: 1024px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-tile--hero { grid-column: span 2; grid-row: span 1; min-height: 320px; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .bento-tile--hero { grid-column: span 1; min-height: 280px; }
}

/* ============================================================
   COMPARE — split-screen showdown (spec §4.6)
   ============================================================ */
.compare {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.compare .section-header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.compare .section-header .t-label { display: inline-block; margin-bottom: 16px; }
.compare-intro {
  max-width: 58ch;
  margin: 16px auto 0;
  color: var(--text-muted);
}

.showdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
  margin-bottom: clamp(48px, 6vw, 80px);
}
.showdown-side {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}
.showdown-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-out);
}
.showdown-side.active img { transform: scale(1); }
.showdown-side:first-child img {
  filter: saturate(0.4) brightness(0.85);
}
.showdown-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 12px;
  background: rgba(13,13,11,0.78);
  border: 1px solid var(--border-hover);
  border-radius: 3px;
  font-family: var(--font-display, var(--font-body));
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}
.showdown-side:last-child .showdown-caption {
  color: var(--accent);
  border-color: var(--accent);
}

.diff-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.diff-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 3px;
}
.diff-pullquote {
  font-family: var(--font-display, var(--font-body));
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  letter-spacing: -0.005em;
  color: var(--text);
  font-weight: 500;
}
.diff-note { color: var(--text-muted); font-size: 0.95rem; }

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

/* ============================================================
   ROADMAP — atmospheric backdrop (spec §4.7)
   ============================================================ */
.roadmap {
  position: relative;
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
}
.roadmap-intro {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 56px;
  max-width: 55ch;
  line-height: 1.7;
}
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.roadmap-col {
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--border);
  background: rgba(26, 26, 23, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.roadmap-col-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.roadmap-col h3 {
  font-family: var(--font-display, var(--font-body));
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.roadmap-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.roadmap-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}
.roadmap-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
  top: 3px;
}
@media (max-width: 900px) {
  .roadmap-grid { grid-template-columns: 1fr; }
}

.roadmap-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.roadmap-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.18;
  filter: url(#duotone-brand) blur(1px);
}
.roadmap-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, var(--bg) 85%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 15%, transparent 85%, var(--bg) 100%);
}
.roadmap .container { position: relative; z-index: 1; }

/* ============================================================
   FOUNDER — full-bleed emotional moment (spec §4.8)
   ============================================================ */
.founder {
  position: relative;
  padding: clamp(100px, 14vw, 180px) 0;
  overflow: hidden;
}
.founder-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.founder-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.28;
  animation: kenBurnsSlow 26s ease-in-out infinite alternate;
}
.founder-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(13,13,11,0.55) 35%, rgba(13,13,11,0.55) 65%, var(--bg) 100%);
}
.founder .container { position: relative; z-index: 1; }
.founder .section-header { text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.founder-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}
.founder-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.founder-body p {
  color: var(--text);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.65;
  margin: 0;
}
.founder-body p:first-child {
  font-family: var(--font-display, var(--font-body));
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  color: var(--accent);
}

@keyframes kenBurnsSlow {
  0%   { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1%); }
}
@media (prefers-reduced-motion: reduce) {
  .founder-backdrop img { animation: none; transform: none; }
}
/* Mobile perf: full-viewport blend-mode grain, infinite Ken Burns
   compositing, SVG duotone filters (CPU-rasterized), and column
   backdrop-blur are main-thread killers on phones — desktop only.
   Phones get an equivalent warm grade from cheap GPU color filters. */
@media (max-width: 767px) {
  .grain-overlay { display: none; }
  .founder-backdrop img,
  .email-capture-backdrop img,
  .cta-footer-backdrop img { animation: none; transform: none; }
  img.duotone, .duotone > img, .duotone-bg,
  .problem-visual img.duotone,
  .bento-tile[data-duotone]::before,
  .roadmap-backdrop img,
  .email-capture-backdrop img,
  .founder-backdrop img,
  .cta-footer-backdrop img {
    filter: sepia(0.45) saturate(1.3) hue-rotate(-12deg) brightness(0.75);
  }
  .roadmap-col {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(13, 13, 11, 0.82);
  }
}

/* ============================================================
   EMAIL CAPTURE — full-bleed atmospheric (spec §4.9)
   ============================================================ */
.email-capture {
  position: relative;
  padding: clamp(100px, 14vw, 180px) 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.email-capture-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.email-capture-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: url(#duotone-brand);
  animation: kenBurnsSlow 30s ease-in-out infinite alternate;
}
.email-capture-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 25%, var(--bg) 88%);
}
.email-capture .container { position: relative; z-index: 1; }
.email-capture-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
.email-capture-inner h2 {
  font-family: var(--font-display, var(--font-body));
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 8px 0 4px;
}
.email-capture-inner .sub {
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto;
}
.email-form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.email-input {
  flex: 1 1 240px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s var(--ease);
}
.email-input:focus {
  outline: none;
  border-color: var(--accent);
}
.email-form .cta-primary {
  flex: 0 0 auto;
  white-space: nowrap;
}
.email-fine-print, .email-social-proof {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}
.email-social-proof { color: var(--accent); }
.email-form__status {
  min-height: 1.4em;
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: opacity 0.3s var(--ease);
}
.email-form__status.is-success {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}
.email-form__status.is-error { color: #c4534a; }

@media (max-width: 560px) {
  .email-form { flex-direction: column; }
  .email-form .cta-primary { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .email-capture-backdrop img { animation: none; }
}

/* ============================================================
   CTA FOOTER — Ken-Burns (spec §4.10)
   ============================================================ */
.cta-footer {
  position: relative;
  overflow: hidden;
}
.cta-footer-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.cta-footer-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  animation: kenBurnsSlow 34s ease-in-out infinite alternate;
}
.cta-footer-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(13,13,11,0.5) 40%, var(--bg) 100%);
}
.cta-footer .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .cta-footer-backdrop img { animation: none; }
}

/* ============================================================
   SOCIAL PROOF
   ============================================================ */
.social-proof {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.testimonial {
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg-surface);
  position: relative;
  transition: border-color 0.3s var(--ease);
}
.testimonial:hover { border-color: var(--border-hover); }

.testimonial-quote-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 5rem;
  line-height: 0.8;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 16px;
  display: block;
}
.testimonial blockquote {
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 28px;
}
.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.testimonial-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}
.testimonial-rig {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================================================
   CTA FOOTER
   ============================================================ */
.cta-footer {
  padding: clamp(100px, 15vw, 180px) 0;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  text-align: center;
}
.cta-content { max-width: 680px; margin: 0 auto; }
.cta-content h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 28px;
}
.cta-content p {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 48px;
}
.cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
/* .footer-logo shares layout with .nav-logo above */
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}
.footer-links a:hover { color: var(--text); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .scroll-text-panels { right: clamp(20px, 4vw, 48px); width: clamp(240px, 40vw, 420px); }
}

@media (max-width: 768px) {
  .nav-links li:not(:last-child) { display: none; }

  .hero-content h1 { font-size: clamp(3rem, 14vw, 6rem); }
  .hero-sub br { display: none; }

  .trust-grid { flex-wrap: wrap; gap: 32px; }
  .trust-divider { display: none; }
  .trust-item { flex: 0 0 calc(50% - 16px); }

  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-grid .testimonial:nth-child(3) { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-copy { order: 3; }

  .scroll-text-panels {
    margin-right: 0;
    padding: 0 24px;
    max-width: 100%;
  }
  .scroll-panel p { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: clamp(2.5rem, 16vw, 4.5rem); }
  .trust-item { flex: 0 0 100%; }
  .cta-group { flex-direction: column; align-items: stretch; }
  .cta-primary,
  .cta-footer .cta-primary { width: 100%; text-align: center; }
  .scroll-sequence { height: 250vh; }
}

/* ============================================================
   MOTION ENHANCEMENTS — max intensity
   ============================================================ */

/* --- H1 staggered word reveal --- */
@keyframes wordIn {
  from {
    opacity: 0;
    transform: translateY(0.45em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.h1-split {
  overflow: visible;
}

.h1-word {
  display: inline-block;
  opacity: 0;
  animation: wordIn 0.65s cubic-bezier(0.2, 0, 0, 1) forwards;
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .h1-word { opacity: 1; animation: none; }
}

/* --- Magnetic buttons: smooth return transition override via JS ---
   Base button sets will-change so GPU handles it cleanly */
.cta-primary {
  will-change: transform;
}

/* --- Trust bar counter: prevent layout shift during animation --- */
.trust-number {
  font-variant-numeric: tabular-nums;
  min-width: 4ch;
}

/* --- Hero parallax: ensure video fills with room to spare --- */
.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

/* --- Step number color pop on section reveal --- */
.steps-grid .step.active .step-number {
  color: rgba(196, 124, 52, 0.12);
  transition: color 0.6s var(--ease);
}

/* --- Testimonial subtle entrance delay per card --- */
.testimonials-grid .testimonial:nth-child(1) { transition-delay: 0s; }
.testimonials-grid .testimonial:nth-child(2) { transition-delay: 0.12s; }
.testimonials-grid .testimonial:nth-child(3) { transition-delay: 0.24s; }

/* ============================================================
   Typography utilities — LOCKED rhythm (see spec §5.1)
   ============================================================ */
.t-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.t-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

.t-pullquote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
}

.t-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-muted);
}

/* Headline casing — hero + CTA-footer keep ALL CAPS, others use Sentence case */
.t-headline-caps { text-transform: uppercase; }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 200ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Grain overlay — spec §5.3
   ============================================================ */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.9'/></svg>");
  background-size: 320px 320px;
}

/* ============================================================
   Duotone utility — spec §5.4
   Apply to Unsplash photos (NOT to generated product stills)
   ============================================================ */
img.duotone, .duotone > img, .duotone-bg {
  filter: url(#duotone-brand);
}

/* ============================================================
   Scroll progress bar — spec §5.6
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  z-index: 100;
  pointer-events: none;
  background: transparent;
}
.scroll-progress__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 80ms linear;
  will-change: width;
}

/* ============================================================
   Custom cursor — spec §5.5
   ============================================================ */
.cursor { display: none; }

@media (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0; left: 0;
    z-index: 999;
    pointer-events: none;
    mix-blend-mode: difference;
  }
  .cursor__ring,
  .cursor__dot {
    position: absolute;
    top: 0; left: 0;
    border-radius: 50%;
    transform: translate3d(-50%, -50%, 0);
    transition: transform 0.18s var(--ease-standard), width 0.2s var(--ease-standard), height 0.2s var(--ease-standard);
  }
  .cursor__ring {
    width: 24px; height: 24px;
    border: 1px solid var(--accent);
  }
  .cursor__dot {
    width: 6px; height: 6px;
    background: var(--accent);
  }
  .cursor.is-hover .cursor__ring { width: 36px; height: 36px; }
  .cursor.is-active .cursor__ring { background: var(--accent); }
  body.custom-cursor-active { cursor: none; }
  body.custom-cursor-active a,
  body.custom-cursor-active button { cursor: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { display: none !important; }
  body.custom-cursor-active { cursor: auto !important; }
}

/* --- FAQ (Common Questions) --- */
.faq {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.faq-list {
  max-width: 760px;
  margin: 48px auto 0;
}
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 36px 22px 0;
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  transition: color 0.25s var(--ease-standard);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.25s var(--ease-standard);
}
.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-item summary:hover { color: var(--accent); }
.faq-item p {
  padding: 0 36px 24px 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 68ch;
}
