@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=DM+Sans:wght@400;500;600;700&display=swap");

:root {
  --primary: #371d31;
  --primary-dark: #2a1524;
  --primary-light: #563c50;
  --accent-soft: #edd1cb;
  --bg: #fbf8f7;
  --bg-mid: #f5edeb;
  --surface: #ffffff;
  --surface-muted: #e8d8d4;
  --ink: #371d31;
  --ink-muted: #563c50;
  --ink-subtle: #8a7384;
  --scribe: #f95950;
  --scribe-dark: #e04840;
  --patient: #371d31;
  --clinician: #371d31;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(55, 29, 49, 0.08);
  --shadow-lg: 0 12px 48px rgba(55, 29, 49, 0.12);
  --max: 1120px;
  --page-gutter: clamp(1.25rem, 5vw, 2.75rem);
  --scene-progress: 0;
  --story-progress: 0;
  --handoff-progress: 0;
  --stage-out: 1;
  --outro-progress: 0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

/* Ambient floating orbs */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.14;
  will-change: transform;
}

.orb-a {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #c4a8b8 0%, transparent 70%);
  top: -8%;
  right: -6%;
  animation: ambient-drift 18s ease-in-out infinite;
}

.orb-b {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #371D31 0%, transparent 70%);
  bottom: 20%;
  left: -8%;
  animation: ambient-drift 22s ease-in-out infinite reverse;
}

.orb-c {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #EDD1CB 0%, transparent 70%);
  top: 45%;
  right: 15%;
  animation: ambient-drift 26s ease-in-out infinite;
  animation-delay: -4s;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(251, 248, 247, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--surface-muted);
  box-shadow: 0 4px 24px rgba(55, 29, 49, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 0.1rem;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--primary);
}

.kite-wordmark-host {
  display: inline-flex;
  align-items: baseline;
  margin: 0;
  line-height: 1;
}

.kite-lockup {
  display: inline;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.kite-lockup--nav {
  font-size: 1.2rem;
}

.kite-lockup--hero {
  font-size: clamp(2.75rem, 7.5vw, 4.4rem);
}

.kite-lockup__k {
  color: var(--primary);
}

.kite-lockup__i {
  color: var(--scribe);
}

.kite-lockup__te {
  color: var(--primary);
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.mascot-img {
  display: block;
  object-fit: contain;
}

.mascot-float {
  animation: float-mascot 4.5s ease-in-out infinite;
}

.hero-mascot {
  position: absolute;
  top: -20px;
  right: clamp(0px, 2vw, 12px);
  z-index: 3;
  will-change: transform;
  pointer-events: none;
}

.hero-mascot .mascot-float {
  animation-duration: 4.5s;
}

.mascot-hero {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 8px 24px rgba(249, 89, 80, 0.18));
}

.scribe-mascot {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.scribe-mascot-float {
  position: absolute;
  top: -36px;
  left: 50%;
  margin-left: -44px;
  z-index: 2;
  will-change: transform;
  pointer-events: none;
}

.scribe-mascot-float .mascot-float {
  animation-duration: 5s;
  animation-delay: -1.5s;
}

.mascot-md {
  width: 88px;
  height: 88px;
  filter: drop-shadow(0 6px 20px rgba(249, 89, 80, 0.15));
}

.scribe-visual {
  position: relative;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-lg);
}

/* Request Access — solid orange (scribe) */
.btn-request,
a.btn[href="request-access.html"],
a.btn[href$="/request-access.html"] {
  background: var(--scribe);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 24px rgba(249, 89, 80, 0.22);
}

.btn-request:hover,
a.btn[href="request-access.html"]:hover,
a.btn[href$="/request-access.html"]:hover {
  background: var(--scribe-dark);
  color: #fff;
  box-shadow: 0 12px 40px rgba(249, 89, 80, 0.28);
}

.header-nav a.btn-request,
.header-nav a.btn[href="request-access.html"],
.header-nav a.btn-primary[data-app-link] {
  color: #fff;
  background: var(--scribe);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(249, 89, 80, 0.2);
}

.header-nav a.btn-request:hover,
.header-nav a.btn[href="request-access.html"]:hover,
.header-nav a.btn-primary[data-app-link]:hover {
  color: #fff;
  background: var(--scribe-dark);
}

.btn-outline {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--accent-soft);
}

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 1.05rem;
  border-radius: 14px;
}

/* Scenes — full-viewport parallax sections */
main {
  position: relative;
  z-index: 1;
  padding-top: 64px;
}

.scene {
  position: relative;
  padding: clamp(4rem, 10vh, 7rem) 0;
  overflow: clip;
}

.scene-inner {
  position: relative;
  z-index: 2;
}

.scene-bg {
  position: absolute;
  inset: -15% 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.scene-bg-hero {
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(56, 189, 248, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #f5edeb 100%);
}

.scene-bg-scribe {
  background:
    radial-gradient(ellipse 70% 50% at 30% 50%, rgba(255, 237, 213, 0.45) 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(243, 242, 237, 0.8) 100%);
}

.scene-bg-record {
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(219, 234, 254, 0.5) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 70%, rgba(224, 231, 255, 0.4) 0%, transparent 50%);
}

.scene-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #EDD1CB;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid #C4A8B8;
}

.hero-brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-display, inherit);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--primary);
}

.hero-brand.kite-wordmark-host {
  font-size: 0;
  line-height: 1;
}

.hero-tagline {
  font-size: clamp(1.55rem, 3.4vw, 2.35rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  max-width: 22ch;
}
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  filter: blur(8px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Section typography helpers */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
}

.section-title-left {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
}

.section-lead {
  max-width: none;
  margin-bottom: 1rem;
}

.feature-list {
  color: var(--ink-muted);
  line-height: 1.8;
  padding-left: 1.25rem;
  margin: 0;
}

.section-header .scene-eyebrow {
  display: block;
  text-align: center;
}

.section-header .section-title {
  text-align: center;
}

.section-header p {
  margin: 0 auto;
  color: var(--ink-muted);
  max-width: 40rem;
  text-align: center;
  line-height: 1.65;
}

/* Hero */
.scene-hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.scene-inner.hero-grid {
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--ink-muted);
  margin: 0 0 1.75rem;
  max-width: 34rem;
}

.hero-lead strong {
  color: var(--ink);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

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

/* Consultation stage */
.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-visual .graphic-card {
  max-width: 100%;
}

.consultation-stage {
  position: relative;
}

.consultation-card {
  background: var(--surface);
  border: 2px solid var(--surface-muted);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem 1rem;
  box-shadow: var(--shadow-lg);
}

.consultation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 0.5rem;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--scribe);
  background: #EDD1CB;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--scribe);
  animation: pulse-dot 1.4s ease-in-out infinite;
}

.consent-pill {
  font-size: 0.68rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

.consultation-figures {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 0.5rem;
  align-items: end;
  min-height: 200px;
}

.figure {
  margin: 0;
  text-align: center;
}

.figure figcaption {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-top: 0.35rem;
}

.figure-avatar {
  width: 72px;
  height: 88px;
  margin: 0 auto;
  animation: float-figure 4s ease-in-out infinite;
}

.figure-clinician .figure-avatar {
  animation-delay: -2s;
}

.figure-svg {
  width: 100%;
  height: 100%;
}

.conversation-bridge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.speech-bubble {
  max-width: 100%;
  padding: 0.45rem 0.7rem;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0.35;
  transform: scale(0.92);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.speech-bubble.is-speaking {
  opacity: 1;
  transform: scale(1);
}

.bubble-patient {
  align-self: flex-start;
  background: #EDD1CB;
  color: var(--patient);
  border-bottom-left-radius: 4px;
}

.bubble-clinician {
  align-self: flex-end;
  background: var(--accent-soft);
  color: var(--clinician);
  border-bottom-right-radius: 4px;
}

.waveform {
  width: 100%;
  height: 32px;
  margin-top: 0.35rem;
}

.wave-path {
  fill: none;
  stroke: var(--primary-light);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw-wave 3s ease-in-out infinite;
}

.scribe-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.55rem 0.75rem;
  background: #EDD1CB;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--scribe-dark);
}

.scribe-pulse {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--scribe);
  animation: pulse-dot 1s ease-in-out infinite;
}

.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--surface-muted);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  font-size: 0.68rem;
  box-shadow: var(--shadow);
  will-change: transform;
  animation: float-card 5s ease-in-out infinite;
}

.float-card strong {
  display: block;
  font-size: 0.72rem;
  color: var(--ink);
}

.float-card span {
  color: var(--ink-muted);
}

.float-card-summary {
  top: -12px;
  right: -8px;
  animation-delay: -1.5s;
}

.float-card-profile {
  bottom: 24px;
  left: -16px;
  animation-delay: -3s;
}

/* Scribe scene */
.scene-scribe {
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.scribe-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.scribe-copy h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.scribe-copy p {
  color: var(--ink-muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}

.transcript-panel {
  background: var(--surface);
  border: 2px solid var(--surface-muted);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.transcript-line {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  opacity: 0;
  transform: translateX(-12px);
  animation: transcript-in 0.6s ease forwards;
}

.transcript-line:nth-child(1) { animation-delay: 0.3s; }
.transcript-line:nth-child(2) { animation-delay: 0.9s; }
.transcript-line:nth-child(3) { animation-delay: 1.5s; }

.line-clinician {
  background: var(--accent-soft);
  margin-right: 1.5rem;
}

.line-patient {
  background: #EDD1CB;
  margin-left: 1.5rem;
}

.transcript-line .speaker {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
  color: var(--primary);
}

.transcript-line p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink);
}

.transcript-cursor {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  width: 2px;
  height: 14px;
  background: var(--primary);
  animation: blink-cursor 1s step-end infinite;
}

.waveform-large {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 48px;
  margin-top: 1rem;
}

.waveform-large span {
  width: 5px;
  border-radius: 3px;
  background: var(--primary-light);
  animation: wave-bar 1.1s ease-in-out infinite;
}

.waveform-large span:nth-child(1) { height: 18px; animation-delay: 0s; }
.waveform-large span:nth-child(2) { height: 28px; animation-delay: 0.1s; }
.waveform-large span:nth-child(3) { height: 38px; animation-delay: 0.2s; }
.waveform-large span:nth-child(4) { height: 24px; animation-delay: 0.15s; }
.waveform-large span:nth-child(5) { height: 42px; animation-delay: 0.25s; }
.waveform-large span:nth-child(6) { height: 30px; animation-delay: 0.05s; }
.waveform-large span:nth-child(7) { height: 36px; animation-delay: 0.2s; }
.waveform-large span:nth-child(8) { height: 22px; animation-delay: 0.12s; }
.waveform-large span:nth-child(9) { height: 32px; animation-delay: 0.18s; }
.waveform-large span:nth-child(10) { height: 16px; animation-delay: 0.08s; }

.live-stats {
  display: flex;
  gap: 2rem;
}

.live-stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.live-stat-label {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-weight: 600;
}

/* Record scene */
.scene-record {
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.record-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.record-copy h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.record-copy p {
  color: var(--ink-muted);
  font-size: 1.05rem;
  margin: 0;
}

.record-cards {
  position: relative;
  min-height: 320px;
}

.record-card {
  position: absolute;
  background: var(--surface);
  border: 2px solid var(--surface-muted);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  will-change: transform;
  width: min(100%, 260px);
}

.record-card h4 {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.record-card p {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.record-calendar {
  top: 0;
  left: 0;
}

.record-path {
  top: 90px;
  right: 0;
}

.record-handoff {
  bottom: 0;
  left: 12%;
  width: min(100%, 300px);
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--surface) 100%);
}

.handoff-arrow {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.mini-timeline {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.mini-dot.active {
  box-shadow: 0 0 0 3px rgba(55, 29, 49, 0.2);
}

.mini-dot.future {
  background: var(--ink-subtle);
  opacity: 0.5;
}

.mini-line {
  flex: 1;
  height: 2px;
  background: var(--primary);
  min-width: 16px;
}

.mini-line.dotted {
  background: repeating-linear-gradient(
    90deg,
    var(--ink-subtle) 0,
    var(--ink-subtle) 4px,
    transparent 4px,
    transparent 8px
  );
}

.path-nodes {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.path-node {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-mid);
  color: var(--ink-muted);
  border: 1px solid var(--surface-muted);
}

.path-node.done {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

.path-node.active {
  background: var(--accent-soft);
  color: var(--primary);
  border-color: var(--primary-light);
  animation: pulse-node 2s ease-in-out infinite;
}

.path-connector {
  width: 12px;
  height: 2px;
  background: var(--surface-muted);
}

/* Features */
.section-alt {
  background: var(--bg-mid);
  border-block: 1px solid var(--surface-muted);
}

.section-alt .hero-lead,
.section-alt .lead,
.section-alt p {
  color: var(--ink-muted);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 2px solid var(--surface-muted);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.feature-tag {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: var(--accent-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.feature-tag.premium {
  color: #7c3aed;
  background: #f3e8ff;
}

/* Steps — scroll-linked */
.scene-steps {
  min-height: 220vh;
  padding: 0;
}

.steps-sticky {
  position: sticky;
  top: 64px;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

.steps-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.steps-intro h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.steps-progress {
  height: 4px;
  background: var(--surface-muted);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 1.5rem;
}

.steps-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 999px;
  transition: width 0.15s linear;
}

.steps-track {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  border: 2px solid var(--surface-muted);
  background: rgba(255, 255, 255, 0.6);
  opacity: 0.45;
  transform: scale(0.97);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.step-item.is-active {
  opacity: 1;
  transform: scale(1);
  border-color: var(--primary-light);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.step-item.is-past {
  opacity: 0.7;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--ink-muted);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.4s ease, color 0.4s ease;
}

.step-item.is-active .step-num {
  background: var(--primary);
  color: #fff;
}

.step-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 800;
}

.step-body p {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.step-visual {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  background: var(--bg-mid);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
  min-height: 36px;
}

.step-visual-scribe {
  color: var(--scribe-dark);
  background: #EDD1CB;
}

.step-visual-save {
  color: #059669;
  background: #ecfdf5;
}

/* CTA */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.cta-mascot-wrap {
  width: fit-content;
  margin: 0 auto 0.75rem;
}

.cta-mascot {
  width: 72px;
  height: 72px;
  opacity: 0.95;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.cta-mascot-wrap.mascot-float {
  animation-duration: 4s;
}

.cta-band h2 {
  margin: 0 0 0.65rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
}

.cta-band p {
  margin: 0 0 1.5rem;
  opacity: 0.95;
  font-size: 1.05rem;
  color: #f8fafc;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--primary);
}

.cta-band .btn-primary:hover {
  background: var(--accent-soft);
}

.cta-band .btn-request,
.cta-band a.btn[href="request-access.html"],
.cta-band a.btn[data-app-link] {
  background: var(--scribe);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 24px rgba(249, 89, 80, 0.3);
}

.cta-band .btn-request:hover,
.cta-band a.btn[href="request-access.html"]:hover,
.cta-band a.btn[data-app-link]:hover {
  background: var(--scribe-dark);
  color: #fff;
}

.cta-band .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.9);
}

.cta-band .btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--surface-muted);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
}

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

/* Keyframes */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes float-figure {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes float-mascot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes draw-wave {
  0% { stroke-dashoffset: 400; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -400; }
}

@keyframes transcript-in {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes wave-bar {
  0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes pulse-node {
  0%, 100% { box-shadow: 0 0 0 0 rgba(55, 29, 49, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(55, 29, 49, 0); }
}

@keyframes graphic-shimmer {
  0%, 100% { transform: translateX(-80%) rotate(8deg); opacity: 0; }
  45% { opacity: 1; }
  55% { opacity: 1; }
  100% { transform: translateX(80%) rotate(8deg); opacity: 0; }
}

@keyframes ambient-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(12px, -18px, 0) scale(1.04); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .orb,
  .scene-bg,
  [data-parallax],
  [data-depth],
  .float-card,
  .figure-avatar,
  .wave-path,
  .waveform-large span,
  .transcript-line,
  .live-dot,
  .scribe-pulse,
  .path-node.active,
  .graphic-card::after {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }

  .graphic-living {
    transform: none !important;
  }

  .transcript-line {
    opacity: 1;
  }

  .speech-bubble {
    opacity: 1;
    transform: none;
  }

  .step-item {
    opacity: 1;
    transform: none;
  }

  .mascot-float {
    animation: none !important;
  }

  .scroll-story-track {
    height: auto;
  }

  .scroll-story-sticky {
    position: relative;
    top: auto;
    height: auto;
    padding-block: 3rem;
  }

  .scroll-story-sticky::after {
    display: none;
  }

  .scroll-story-canvas {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .scroll-story-stage {
    position: relative;
    inset: auto;
    margin-bottom: 0;
  }

  .scroll-story-handoff {
    position: relative;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto;
  }

  .scroll-story-outro {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-story-intro {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-story-stage {
    opacity: 1 !important;
    transform: none !important;
  }

  .platform-stage {
    position: relative;
    inset: auto;
    margin-bottom: 1.5rem;
    opacity: 1 !important;
    transform: none !important;
  }

  .emerge-card {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    pointer-events: auto;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .hero-grid.scene-inner,
  .scribe-grid,
  .record-grid,
  .steps-layout {
    grid-template-columns: 1fr;
  }

  .scroll-story-stage {
    aspect-ratio: auto;
    min-height: 320px;
  }

  .emerge-card {
    width: min(260px, 72vw);
  }

  .hero-visual {
    order: -1;
    max-width: 28rem;
    margin-inline: auto;
    width: 100%;
  }

  .hero-copy {
    text-align: left;
  }

  .scribe-visual {
    order: -1;
  }

  .record-visual {
    order: -1;
  }

  .record-cards {
    min-height: 280px;
    margin-bottom: 1rem;
  }

  .record-path {
    top: 80px;
    right: 0;
  }

  .scene-steps {
    min-height: auto;
  }

  .steps-sticky {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .step-item {
    opacity: 1;
    transform: none;
  }

  .step-item.is-active {
    border-color: var(--primary-light);
  }
}

@media (max-width: 768px) {
  .header-nav a:not(.btn) {
    display: none;
  }

  .consultation-figures {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 0.75rem;
  }

  .conversation-bridge {
    order: -1;
  }

  .figure-avatar {
    width: 56px;
    height: 68px;
  }

  .consultation-figures {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .float-card-summary,
  .float-card-profile {
    display: none;
  }

  .hero-mascot {
    top: -20px;
    right: 0;
  }

  .mascot-hero {
    width: 88px;
    height: 88px;
  }

  .scribe-mascot-float {
    top: -28px;
    margin-left: -32px;
  }

  .mascot-md {
    width: 64px;
    height: 64px;
  }

  .live-stats {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* ─── Multi-page layout ─── */

body.use-serif-headings h1,
body.use-serif-headings h2,
body.use-serif-headings .display-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding: clamp(5rem, 12vh, 8rem) 0 clamp(3rem, 8vh, 5rem);
}

.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.08;
  margin: 0 0 1rem;
}

.page-hero .lead {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 36rem;
  line-height: 1.65;
}

.display-title {
  color: var(--ink);
}

.page-hero--center {
  text-align: center;
}

.page-hero--center .lead {
  margin-inline: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}

.header-nav a.is-active {
  color: var(--primary);
}

.header-nav .nav-features {
  position: relative;
}

.header-nav .nav-features summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.header-nav .nav-features summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--surface-muted);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 300;
}

.nav-dropdown a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
}

.nav-dropdown a:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split-section img,
.graphic-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-lg) - 4px);
}

.graphic-card {
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #fbf8f7 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-muted);
  padding: 0.65rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.graphic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 50% at 50% 0%,
    rgba(55, 29, 49, 0.08) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 1;
}

.graphic-card::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(255, 255, 255, 0.07) 50%,
    transparent 58%
  );
  animation: graphic-shimmer 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

.graphic-living {
  will-change: transform;
}

.graphic-card img {
  position: relative;
  z-index: 0;
  background: var(--bg);
  border: 1px solid var(--surface-muted);
  border-radius: calc(var(--radius-lg) - 6px);
}

.graphic-card:hover {
  border-color: rgba(55, 29, 49, 0.28);
  box-shadow:
    0 8px 32px rgba(55, 29, 49, 0.12),
    0 0 0 1px rgba(55, 29, 49, 0.06) inset;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.stat-box {
  background: var(--surface);
  border: 1px solid var(--surface-muted);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
  font-family: "Cormorant Garamond", Georgia, serif;
}

.stat-box span {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.feature-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.feature-pillar-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-pillar-grid--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .feature-pillar-grid--four,
  .feature-pillar-grid--five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pillar-card {
  background: var(--surface);
  border: 1px solid #d6d3cd;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.pillar-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--surface-muted);
  background: var(--bg);
  margin-bottom: 0.75rem;
}

.pillar-card .feature-tag {
  margin-top: auto;
  align-self: flex-start;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #C4A8B8;
}

.pillar-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--ink);
}

.pillar-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Scroll story — pillars emerge from platform as you scroll */
.scene-scroll-story {
  padding: 0;
  overflow: visible;
}

.scroll-story-track {
  /* Longer runway so each pillar has time to settle and be read */
  height: clamp(420vh, 500vh, 560vh);
  position: relative;
}

.scroll-story-sticky {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding-block: clamp(1.5rem, 4vh, 3rem);
  overflow: hidden;
}

.scroll-story-sticky::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: clamp(5rem, 18vh, 9rem);
  background: linear-gradient(
    to bottom,
    transparent,
    var(--bg-mid)
  );
  opacity: calc(var(--handoff-progress) * 0.95);
  pointer-events: none;
  z-index: 4;
}

.scroll-story-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vh, 1.75rem);
  min-height: 0;
  flex: 1;
  justify-content: center;
}

.scroll-story-canvas {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: clamp(300px, 54vh, 440px);
}

.scroll-story-stage {
  grid-area: 1 / 1;
  position: relative;
  width: min(100%, 720px);
  aspect-ratio: 16 / 11;
  min-height: clamp(280px, 52vh, 420px);
  will-change: transform, opacity;
  z-index: 2;
}

.scroll-story-handoff {
  grid-area: 1 / 1;
  align-self: end;
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  padding-bottom: clamp(0.25rem, 2vh, 1rem);
  opacity: 0;
  transform: translateY(48px);
  will-change: transform, opacity;
  z-index: 3;
  pointer-events: none;
}

.scroll-story-handoff .stat-row {
  margin: 0;
}

.scroll-story-outro {
  position: relative;
  z-index: 2;
  padding-block: clamp(1.5rem, 4vh, 2.5rem) clamp(3rem, 8vh, 5rem);
  opacity: 0.35;
  transform: translateY(32px);
  will-change: transform, opacity;
}

.scroll-story-outro .wedge-band {
  margin: 0;
}

.scroll-story-intro {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  will-change: transform, opacity;
  transition: opacity 0.2s linear, transform 0.2s linear;
}

.scroll-story-intro .section-title {
  margin-bottom: 0.5rem;
}

.scroll-story-sub {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.65;
}

.platform-stage {
  position: absolute;
  inset: 8% 10% 22%;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
  z-index: 1;
}

.platform-card {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.platform-card img {
  width: 100%;
  height: auto;
}

.emerge-card {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: min(280px, 42vw);
  background: linear-gradient(160deg, #ffffff 0%, #fbf8f7 100%);
  border: 1px solid var(--surface-muted);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  will-change: transform, opacity, filter;
  pointer-events: none;
}

.emerge-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  color: var(--ink);
}

.emerge-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.emerge-card p strong {
  color: var(--ink);
  font-weight: 700;
}

.emerge-card--plan {
  border-color: rgba(202, 138, 4, 0.35);
}

.emerge-card--plan .feature-tag {
  background: #fef9c3;
  color: #ca8a04;
}

.emerge-card--track {
  border-color: rgba(55, 29, 49, 0.28);
}

.emerge-card--track .feature-tag {
  background: var(--accent-soft);
  color: var(--primary);
}

.emerge-card--collab {
  border-color: rgba(249, 89, 80, 0.32);
}

.emerge-card--collab .feature-tag {
  background: #EDD1CB;
  color: #E04840;
}

.emerge-card .feature-tag {
  margin-top: 0.55rem;
}

.emerge-card:hover {
  border-color: rgba(55, 29, 49, 0.28);
  box-shadow:
    0 16px 48px rgba(55, 29, 49, 0.14),
    0 0 0 1px rgba(55, 29, 49, 0.06) inset;
}

.emerge-card.is-settled {
  pointer-events: auto;
}

.emerge-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--surface-muted);
  background: var(--bg);
  margin-bottom: 0.5rem;
}

.scroll-story-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 70% 55% at 50% 45%,
      rgba(55, 29, 49, calc(0.06 + var(--story-progress) * 0.14)) 0%,
      transparent 70%
    ),
    linear-gradient(
      to bottom,
      transparent calc(55% + var(--handoff-progress) * 20%),
      var(--bg-mid) calc(88% + var(--outro-progress) * 8%)
    );
  pointer-events: none;
  z-index: 0;
}

.wedge-band {
  background: linear-gradient(135deg, #371D31 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  margin: 3rem 0;
  box-shadow: var(--shadow-lg);
}

.wedge-band p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 40rem;
  color: #f8fafc;
}

.wedge-band strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #EDD1CB;
  margin-bottom: 0.5rem;
}

.wedge-band em {
  font-style: normal;
  font-weight: 700;
  color: #ffffff;
}

.content-narrow {
  max-width: 42rem;
}

.content-legal {
  max-width: 48rem;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.content-legal h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.faq-list-page {
  max-width: 40rem;
}

.faq-list-page details {
  border-bottom: 1px solid var(--surface-muted);
  padding: 1rem 0;
}

.faq-list-page summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq-list-page p {
  margin: 0.75rem 0 0;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.form-page {
  max-width: 28rem;
  margin-inline: auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--surface-muted);
  border-radius: 10px;
  font: inherit;
  background: var(--surface);
}

.form-check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

.footer-grid h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 0.4rem;
}

.footer-grid a {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  .split-section,
  .feature-pillar-grid,
  .stat-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .scroll-story-track {
    height: clamp(360vh, 420vh, 480vh);
  }

  .scroll-story-sub {
    font-size: 0.9375rem;
  }

  .emerge-card {
    width: min(260px, 82vw);
    padding: 0.85rem;
  }

  .emerge-card h3 {
    font-size: 1.05rem;
  }

  .emerge-card p {
    font-size: 0.8125rem;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .header-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0;
    border-top: 1px solid var(--surface-muted);
  }

  .header-nav.is-open {
    display: flex;
  }

  .header-nav a:not(.btn) {
    display: block;
    padding: 0.5rem 0;
  }

  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1rem;
  }
}

/* ============================================================
   Editions prologue — three scroll chapters at top of home
   ============================================================ */
.editions-journey {
  position: relative;
  z-index: 2;
  background: var(--bg);
}

.editions-journey-track {
  height: 560vh;
}

.editions-journey-sticky {
  position: sticky;
  /* Match main padding-top so the headline doesn't jump up when pin engages */
  top: 64px;
  height: calc(100svh - 64px);
  min-height: calc(640px - 64px);
  overflow: visible;
  background: var(--bg);
}

.editions-chapter {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: opacity, transform, filter;
  display: flex;
  align-items: center;
  background: transparent;
  transition: none;
  overflow: visible;
}

.editions-chapter--complex {
  background: transparent;
}

.editions-chapter--organise {
  background: transparent;
}

.editions-chapter--agents {
  background: transparent;
}

.app-shot {
  width: min(100%, 260px);
  max-height: min(68vh, 520px);
  margin-inline: auto;
  border-radius: 28px;
  padding: 8px;
  background: linear-gradient(160deg, #1c1917 0%, #44403c 100%);
  box-shadow:
    0 24px 60px rgba(28, 25, 23, 0.22),
    0 0 0 1px rgba(28, 25, 23, 0.08);
  opacity: 0;
  transform: translate3d(0, 48px, 0) scale(0.72);
  transform-origin: center center;
  will-change: transform, opacity;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-shot.is-settled {
  will-change: auto;
}

.app-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(min(68vh, 520px) - 16px);
  object-fit: contain;
  object-position: center top;
  border-radius: 20px;
  background: var(--bg);
}

.editions-chapter-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-height: calc(100svh - 96px);
  overflow: visible;
}

.editions-chapter.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
  transform: none;
  filter: none;
}

.editions-chapter-panel {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  max-height: calc(100svh - 64px);
  overflow: visible;
}

.editions-chapter-panel--solo {
  grid-template-columns: 1fr;
  justify-items: center;
}

.editions-chapter-copy {
  text-align: left;
  will-change: opacity, transform;
}

.editions-chapter-copy--center {
  text-align: center;
  max-width: min(92vw, 22ch);
}

.editions-chapter-copy--center .editions-headline {
  white-space: nowrap;
}

.editions-line-ink,
.editions-line-scribe {
  display: inline;
}

.editions-headline {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 6.5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.editions-headline--split {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.95;
}

.editions-line-blue {
  color: var(--primary);
}

.editions-line-ink {
  color: var(--ink);
}

.editions-line-scribe {
  color: var(--scribe);
}

.editions-body {
  margin: 1rem 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.55;
  color: var(--ink-muted);
}

.editions-agent-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.editions-agent-list li {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
}

.editions-agent-list li::before {
  content: "·";
  margin-right: 0.45rem;
  color: var(--scribe);
}

.editions-agent-list li:first-child::before {
  content: "";
  margin: 0;
}


/* Shatter headline letters */
.editions-shatter-title {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  white-space: nowrap;
}

.shatter-char {
  display: inline-block;
  will-change: transform, opacity;
  transform-origin: center center;
}

.shatter-char.is-ink {
  color: var(--ink);
}

.shatter-char.is-scribe {
  color: var(--scribe);
}

.editions-shatter-title.is-shattering {
  pointer-events: none;
}

/* Organising stack — scattered care fragments settling */
.organise-stack {
  position: relative;
  z-index: 6;
  height: min(52vh, 380px);
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  overflow: visible;
}

.organise-card {
  position: absolute;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--surface-muted);
  box-shadow: var(--shadow);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity;
}

.organise-card.is-assembled {
  animation: organise-float 4.5s ease-in-out infinite;
}

.organise-card--a { left: 4%; top: 12%; animation-delay: 0s; }
.organise-card--b { right: 6%; top: 8%; animation-delay: -0.8s; background: var(--accent-soft); color: var(--primary); }
.organise-card--c { left: 18%; top: 42%; animation-delay: -1.6s; }
.organise-card--d { right: 10%; top: 48%; animation-delay: -2.2s; }
.organise-card--e {
  left: 22%;
  bottom: 8%;
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.organise-card--e.is-assembled {
  animation: organise-settle 5s ease-in-out infinite;
}

@keyframes organise-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 6px -10px; }
}

@keyframes organise-settle {
  0%, 100% { translate: 0 0; box-shadow: var(--shadow-lg); }
  50% { translate: 0 -6px; box-shadow: 0 18px 48px rgba(55, 29, 49, 0.22); }
}

.site-header.is-editions-over {
  background: rgba(250, 249, 246, 0.86);
  backdrop-filter: blur(10px);
}

@media (max-width: 860px) {
  .editions-chapter-panel {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-top: 4.5rem;
    padding-bottom: 1.5rem;
  }

  .editions-chapter-visual {
    order: -1;
    max-width: 280px;
    max-height: 42vh;
    margin-inline: auto;
  }

  .app-shot {
    width: min(100%, 220px);
    max-height: 40vh;
  }

  .app-shot img {
    max-height: calc(40vh - 16px);
  }

  .editions-headline {
    font-size: clamp(2.1rem, 9vw, 3.2rem);
  }

  .editions-headline--split {
    font-size: clamp(2.4rem, 11vw, 3.6rem);
  }

  .organise-stack {
    height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editions-chapter,
  .organise-card {
    animation: none !important;
    filter: none !important;
  }
}
