/* =============================================================================
 * Cura - home page sections
 * Header, hero, about, outcomes, products, approach, contact, footer.
 * Dark navy-teal palette inherited from base.css.
 * ============================================================================= */

/* ── Header ────────────────────────────────────────────────────────── */

.cv-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 24, 31, 0.55);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease-out);
}
.cv-header.is-scrolled {
  background: rgba(8, 24, 31, 0.85);
  border-bottom-color: var(--border-glass);
}

.cv-header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem clamp(20px, 4vw, 40px);
}

.cv-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-strong);
  text-decoration: none;
}
.cv-brand:hover { color: var(--text-strong); }

.cv-brand-mark {
  display: inline-block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform var(--t-base) var(--ease-spring), filter var(--t-base) var(--ease-out);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}
.cv-brand:hover .cv-brand-mark {
  transform: rotate(-4deg) scale(1.06);
  filter: drop-shadow(0 4px 14px var(--accent-glow));
}
.cv-brand-mark--footer { width: 40px; height: 40px; }

/* Brand wordmark - "CURA Vita" inline.
   "CURA" is the primary mark (CalSans, all-caps, bold). "Vita" sits to its
   right at half the size, color-accented, baseline-aligned. Footer reuses
   the same markup so chrome is identical across every page. */
.cv-brand-text {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.42em;
  line-height: 1;
}
.cv-brand-name {
  font-family: var(--font-sans);     /* CalSans, modern brand wordmark */
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;            /* a little air between letters in all-caps */
  line-height: 1;
  color: var(--text-strong);
  text-transform: uppercase;
}
.cv-brand-sub {
  font-family: var(--font-display);  /* Caveat: hand-lettered counterpoint */
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  color: var(--accent-primary);
  text-transform: none;
  margin: 0;
}

.cv-nav {
  margin-left: auto;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.cv-nav-link {
  color: var(--text-soft);
  font-size: 0.93rem;
  position: relative;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.cv-nav-link:hover {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.04);
}

/* ── Mega-nav lanes ─────────────────────────────────────────────────── */

.cv-nav-lane {
  position: relative;
}
.cv-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 0;
  padding: 0.55rem 0.9rem;
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 400;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.cv-nav-trigger:hover,
.cv-nav-trigger:focus-visible,
.cv-nav-trigger[aria-expanded="true"] {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}
.cv-nav-chevron {
  transition: transform var(--t-base) var(--ease-out);
}
.cv-nav-trigger[aria-expanded="true"] .cv-nav-chevron {
  transform: rotate(180deg);
}

/* Invisible "bridge" so hover doesn't drop when crossing the gap between
   trigger and panel. */
.cv-nav-bridge {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  height: 12px;
  pointer-events: none;
}
.cv-nav-lane:hover .cv-nav-bridge,
.cv-nav-trigger[aria-expanded="true"] ~ .cv-nav-bridge {
  pointer-events: auto;
}

.cv-mega-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: calc(-1 * min(420px, calc(50vw - 24px)));
  width: min(840px, calc(100vw - 48px));
  margin-top: 12px;
  background: linear-gradient(180deg, #142a32 0%, #0a1c24 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 26px 30px 18px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  z-index: 1100;
  transform: translateY(-8px);
  transition:
    opacity var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out),
    visibility 0s linear var(--t-base);
}
.cv-mega-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out),
    visibility 0s linear 0s;
}
.cv-mega-panel--compact {
  width: min(540px, calc(100vw - 48px));
  margin-left: calc(-1 * min(270px, calc(50vw - 24px)));
  padding: 22px 26px 16px;
}

.cv-mega-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}
.cv-mega-grid--compact {
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.cv-mega-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cv-mega-eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cv-mega-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-strong);
  transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.cv-mega-product:hover,
.cv-mega-product:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(2px);
  outline: none;
}
.cv-mega-product img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  flex: 0 0 auto;
}
.cv-mega-product-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cv-mega-product-body--text { padding: 4px 0; }
.cv-mega-product-title {
  font-family: var(--font-sans);     /* CalSans for nav product titles - readable at small sizes */
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cv-mega-product-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-primary);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cv-mega-product-meta {
  font-size: 0.78rem;
  color: var(--text-soft);
  line-height: 1.4;
}

.cv-mega-col--links { gap: 2px; }
.cv-mega-col--links a {
  display: block;
  padding: 8px 12px;
  color: var(--text-soft);
  font-size: 0.88rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), padding-left var(--t-fast) var(--ease-out);
}
.cv-mega-col--links a:hover,
.cv-mega-col--links a:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-strong);
  padding-left: 16px;
  outline: none;
}

.cv-mega-col--feature {
  background: linear-gradient(160deg, rgba(136, 176, 126, 0.10) 0%, rgba(93, 204, 197, 0.06) 100%);
  border: 1px solid rgba(136, 176, 126, 0.20);
  border-radius: 12px;
  padding: 16px 18px;
  gap: 8px;
}
.cv-mega-feature-eyebrow {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-primary);
}
.cv-mega-feature-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--text-strong);
}
.cv-mega-feature-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 4px;
}
.cv-mega-feature-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.cv-mega-feature-copy {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.cv-mega-feature-cta {
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-primary);
  transition: letter-spacing var(--t-fast) var(--ease-out);
}
.cv-mega-feature-card:hover .cv-mega-feature-cta,
.cv-mega-feature-card:focus-visible .cv-mega-feature-cta {
  letter-spacing: 0.02em;
}

.cv-mega-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: flex-end;
  font-size: 0.84rem;
}
.cv-mega-footer a { color: var(--accent-primary); }
.cv-mega-footer a:hover { color: var(--accent-secondary); }

.cv-header-cta { margin-left: 0.6rem; padding: 0.65rem 1.2rem; font-size: 0.92rem; }

.cv-menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
  gap: 5px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
}
.cv-menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-strong);
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-fast) var(--ease-out);
}
.cv-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cv-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.cv-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.cv-mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem clamp(20px, 4vw, 40px) 1.6rem;
  border-top: 1px solid var(--border-glass);
  background: var(--surface-deep);
}
.cv-mobile-nav a {
  color: var(--text-strong);
  font-size: 1.05rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-glass);
}
.cv-mobile-nav a:last-child { border: 0; margin-top: 0.5rem; }

/* ── Hero ──────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(5rem, 9vw, 9rem) 0 clamp(5rem, 9vw, 8rem);
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -2;
  pointer-events: none;
  will-change: transform;
}
.hero::before {
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(136, 176, 126, 0.30) 0%, transparent 70%);
  top: -200px; left: -160px;
}
.hero::after {
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(93, 204, 197, 0.22) 0%, transparent 70%);
  bottom: -260px; right: -160px;
}

/* watermark logo behind the hero */
.hero-watermark {
  position: absolute;
  top: 50%;
  right: -8%;
  width: min(60%, 720px);
  aspect-ratio: 1;
  transform: translateY(-50%) rotate(-6deg);
  opacity: 0.07;
  pointer-events: none;
  z-index: -1;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.25));
}

.hero-leaves { display: none; } /* old leaf decorations not needed now */

.hero-inner {
  position: relative;
  text-align: left;
  max-width: 880px;
  z-index: 1;
}

.hero h1 {
  font-size: var(--fs-h1);
  letter-spacing: -0.02em;
}
.hero h1 .accent {
  color: var(--accent-primary);
}
.hero-sub {
  font-size: clamp(1.05rem, 0.6vw + 1rem, 1.2rem);
  color: var(--text-soft);
  margin: 1.5rem 0 0;
  max-width: 60ch;
  line-height: 1.55;
}
.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.4rem;
}

.hero-trust {
  margin-top: 3.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.2rem;
  color: var(--text-muted);
  font-size: var(--fs-small);
}
.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-trust-item::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
}

/* ── About ─────────────────────────────────────────────────────────── */

.about {
  background:
    radial-gradient(ellipse at top right, rgba(80, 118, 168, 0.10), transparent 60%),
    var(--surface-deep);
  position: relative;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 32% 28%, rgba(136, 176, 126, 0.36), transparent 55%),
    radial-gradient(circle at 70% 75%, rgba(80, 118, 168, 0.32), transparent 60%),
    linear-gradient(140deg, #143240 0%, #0b1f29 100%);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--border-glass);
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-portrait::after {
  content: "Catherine Brahe, MD";
  position: absolute;
  bottom: 1.2rem; left: 1.2rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--text-strong);
  background: rgba(8, 24, 31, 0.55);
  backdrop-filter: blur(8px);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
}
.about-portrait-placeholder {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.about-content p { color: var(--text-soft); }
.about-credentials {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem 1.4rem;
}
.about-credentials li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--fs-small);
  color: var(--text-soft);
}
.about-credentials li::before {
  content: "✦";
  color: var(--accent-gold);
  font-size: 1.05rem;
  line-height: 1.2;
}

/* ── Outcomes ──────────────────────────────────────────────────────── */

.outcomes { text-align: center; }
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  margin-top: 3rem;
}
.outcome-stat {
  background: var(--surface-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 1.8rem 1.2rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.outcome-stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: var(--accent-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}
.outcome-stat-unit {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent-primary);
  margin-left: 0.12em;
}
.outcome-stat-label {
  margin-top: 0.7rem;
  font-size: var(--fs-small);
  color: var(--text-muted);
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

/* ── Products ──────────────────────────────────────────────────────── */

.products {
  background:
    radial-gradient(ellipse at top left, rgba(136, 176, 126, 0.10), transparent 60%),
    var(--surface-deep);
  position: relative;
}
.products-header { text-align: center; margin-bottom: 3.5rem; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
}
/* =============================================================================
 * EDEN flagship hero card (Linear/Vercel-inspired)
 *
 * 2-column at desktop: product-visual left (animated module grid + EDEN seal),
 * content right (eyebrow, big Caveat headline, supporting copy, stat strip, CTA).
 * Stacks vertically below 820px. Glow gradients + grain texture beneath.
 * ============================================================================= */

.products-grid--single {
  grid-template-columns: 1fr;
  max-width: 1140px;
  margin: 0 auto;
  gap: 0;
}

.eden-flagship {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.4rem, 5vw, 4rem) clamp(2rem, 4vw, 3.4rem);
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(34, 197, 94, 0.10), transparent 65%),
    radial-gradient(ellipse 70% 60% at 90% 80%, rgba(80, 118, 168, 0.10), transparent 65%),
    linear-gradient(160deg, rgba(20, 42, 50, 0.65), rgba(10, 28, 36, 0.95));
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: clamp(20px, 2vw, 28px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
}
.eden-flagship:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 197, 94, 0.32);
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(34, 197, 94, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Backdrop glow that pulses subtly to mimic the EDEN emerald accent */
.eden-flagship::before {
  content: "";
  position: absolute;
  top: -50%; left: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.16) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
  animation: eden-glow-pulse 8s ease-in-out infinite;
}
@keyframes eden-glow-pulse {
  0%, 100% { opacity: 0.65; transform: translate(0, 0); }
  50%      { opacity: 1;    transform: translate(30px, 20px); }
}

/* ── Product visual: module-grid mock ─────────────────────────────────── */

.eden-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 280px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 35%, rgba(34, 197, 94, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(8, 24, 31, 0.7), rgba(6, 21, 28, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: clamp(1rem, 2vw, 1.6rem);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  overflow: hidden;
}
.eden-visual-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.eden-visual-logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: url("/assets/images/eden-logo-icon.webp") center/contain no-repeat;
  filter: drop-shadow(0 2px 8px rgba(34, 197, 94, 0.3));
}
.eden-visual-title {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-strong);
  letter-spacing: 0.01em;
}
.eden-visual-subtitle {
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.eden-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
.eden-module-pill {
  padding: 0.7rem 0.6rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  position: relative;
  overflow: hidden;
  transition: background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
/* Per-module accent: each pill sets --module-color via inline style so its
   icon-bg + status-dot match the EDEN module's brand color. */
.eden-module-pill:hover {
  background: color-mix(in srgb, var(--module-color, var(--accent-primary)) 12%, transparent);
  border-color: color-mix(in srgb, var(--module-color, var(--accent-primary)) 35%, transparent);
  transform: translateY(-1px);
}
.eden-module-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--module-color, var(--accent-primary)) 14%, transparent);
  border-radius: 8px;
  padding: 4px;
}
.eden-module-icon img,
.eden-module-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Brand variant: the icon already carries its own multi-color palette
   (e.g. the EDEN Education Center logo) so we drop the tinted backdrop
   + padding and let the artwork own the full 28px square. */
.eden-module-icon--brand {
  background: transparent;
  padding: 1px;
}
.eden-module-meta { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.eden-module-name {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-strong);
  letter-spacing: 0.005em;
  line-height: 1.1;
}
.eden-module-tag {
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}
.eden-module-tag::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--module-color, var(--accent-primary));
}
.eden-module-tag[data-status="live"]   { color: var(--module-color, var(--accent-primary)); }
.eden-module-tag[data-status="soon"]   { color: var(--text-muted); }
.eden-module-tag[data-status="soon"]::before { background: var(--text-muted); opacity: 0.6; }
/* Cycling highlight: each pill gets a soft glow on its own offset */
.eden-module-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, transparent 50%, rgba(34, 197, 94, 0.10) 100%);
  opacity: 0;
  animation: module-highlight 14s ease-in-out infinite;
}
.eden-module-pill:nth-child(1)::before { animation-delay: 0s; }
.eden-module-pill:nth-child(2)::before { animation-delay: 1.6s; }
.eden-module-pill:nth-child(3)::before { animation-delay: 3.2s; }
.eden-module-pill:nth-child(4)::before { animation-delay: 4.8s; }
.eden-module-pill:nth-child(5)::before { animation-delay: 6.4s; }
.eden-module-pill:nth-child(6)::before { animation-delay: 8.0s; }
.eden-module-pill:nth-child(7)::before { animation-delay: 9.6s; }
.eden-module-pill:nth-child(8)::before { animation-delay: 11.2s; }
.eden-module-pill:nth-child(9)::before { animation-delay: 12.8s; }
@keyframes module-highlight {
  0%, 90%, 100% { opacity: 0; }
  10%, 30%      { opacity: 1; }
}

/* ── Content side ─────────────────────────────────────────────────────── */

.eden-content { display: flex; flex-direction: column; gap: 1rem; }
.eden-content-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eden-emerald);
}
.eden-content-eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--eden-emerald);
  box-shadow: 0 0 12px var(--eden-emerald);
  animation: eden-pulse-dot 2s ease-in-out infinite;
}
@keyframes eden-pulse-dot {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}
.eden-content h3.eden-content-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.95;
  color: var(--text-strong);
  margin: 0;
}
.eden-content-desc {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0;
  max-width: 48ch;
}
.eden-content-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  margin: 0.5rem 0;
}
.eden-content-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.eden-content-stat-value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--eden-emerald);
  line-height: 1;
  letter-spacing: 0;
}
.eden-content-stat-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}
.eden-content-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--eden-emerald);
  margin-top: 0.4rem;
  transition: gap var(--t-fast) var(--ease-out);
}
.eden-flagship:hover .eden-content-cta { gap: 0.85rem; }

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 820px) {
  .eden-flagship { grid-template-columns: 1fr; }
  .eden-visual { aspect-ratio: 5 / 4; }
  .eden-content-stats { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .eden-content-stat-value { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .eden-flagship::before,
  .eden-module-pill::before,
  .eden-content-eyebrow::before {
    animation: none !important;
  }
}
.product-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, transparent 55%, var(--accent-tint) 120%);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
  pointer-events: none;
}
.product-card:hover::before { opacity: 1; }
.product-card-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-primary);
}
.product-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.2vw, 2.2rem);
  color: var(--text-strong);
  margin: 0;
}
.product-card-desc {
  color: var(--text-soft);
  font-size: 1rem;
  flex: 1;
  margin: 0;
}
.product-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-primary);
  font-size: 0.95rem;
  transition: color var(--t-fast) var(--ease-out), gap var(--t-fast) var(--ease-out);
}
.product-card:hover .product-card-cta { color: var(--accent-secondary); gap: 0.85rem; }

/* EDEN product card gets EDEN emerald accent for brand-family continuity */
.product-card--eden .product-card-eyebrow,
.product-card--eden .product-card-cta {
  color: var(--eden-emerald);
}
.product-card--eden:hover .product-card-cta { color: #4ADE80; }
.product-card--eden::before { background: linear-gradient(140deg, transparent 55%, rgba(34, 197, 94, 0.16) 120%); }

.product-card--soon {
  background: var(--surface-3);
  border-style: dashed;
  border-color: var(--border-glass-strong);
}
.product-card--soon .product-card-title { color: var(--text-muted); }
.product-soon-badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-warm);
  background: rgba(228, 163, 103, 0.14);
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

/* ── Approach ──────────────────────────────────────────────────────── */

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  margin-top: 3.5rem;
}
.approach-item {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.4vw, 1.8rem);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.approach-item:hover { transform: translateY(-3px); border-color: var(--accent-primary); }
.approach-item::before {
  content: "";
  display: block;
  width: 40px; height: 2px;
  background: var(--accent-primary);
  border-radius: 2px;
  margin-bottom: 1rem;
}
.approach-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.55rem;
  color: var(--text-strong);
}
.approach-item p {
  color: var(--text-soft);
  font-size: 0.96rem;
  margin: 0;
}

.approach-header { text-align: center; }

/* ── Contact (modal-only) ──────────────────────────────────────────────
 * Goal: the dialog never scrolls on viewports ≥ 640px tall. Achieved by
 * - dropping the nested form-card visual (the dialog IS the card)
 * - 2-col name+email row
 * - condensed labels, smaller textarea min-height
 * - dvh-based height cap so iOS Safari address bar doesn't clip
 * --------------------------------------------------------------------- */

.cv-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 32px);
}
.cv-modal[hidden] { display: none; }

.cv-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 21, 28, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
}
.cv-modal-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #142a32 0%, #0a1c24 100%);
  border: 1px solid var(--border-glass-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04);
  width: min(560px, 100%);
  /* dvh = dynamic-viewport height (accounts for mobile address bar). */
  max-height: min(720px, calc(100dvh - 24px));
  max-height: min(720px, calc(100vh - 24px)); /* fallback */
  overflow-y: auto;
  padding: clamp(1.4rem, 2.8vw, 2rem);
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition:
    opacity var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out);
}
.cv-modal.is-open .cv-modal-overlay { opacity: 1; }
.cv-modal.is-open .cv-modal-dialog { opacity: 1; transform: translateY(0) scale(1); }

.cv-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 232, 207, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: var(--text-soft);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.cv-modal-close:hover {
  background: rgba(248, 232, 207, 0.12);
  color: var(--text-strong);
  transform: rotate(90deg);
}

.cv-modal-body {
  padding-top: 2px;
  display: flex;
  flex-direction: column;
}
.cv-modal-body .eyebrow { margin-bottom: 0.4rem; }
.cv-modal-body h2 {
  font-size: clamp(1.5rem, 1.4vw + 0.9rem, 1.9rem);
  margin: 0 0 0.55rem;
  letter-spacing: -0.005em;
  line-height: 1.05;
}
.cv-modal-body h2 .accent { color: var(--accent-primary); }
.cv-modal-lead {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.45;
  max-width: none;
}

/* Lock background scroll while modal is open. */
body.cv-modal-open {
  overflow: hidden;
}

/* The form, when inside the modal, drops its own card chrome -
   the dialog itself is already the card. Outside the modal the
   form keeps the lifted-card styling for any future standalone use. */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.cv-modal .contact-form {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* Standalone (outside-modal) lifted card preserved for future use. */
.contact-form:not(.cv-modal .contact-form) {
  background: var(--surface-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-lift);
  gap: 1.1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-primary);
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 300;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text-strong);
  background: rgba(8, 24, 31, 0.55);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.9rem;
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(8, 24, 31, 0.75);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-form-message textarea { min-height: 96px; }

.contact-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}
.contact-form-foot .btn {
  padding: 0.78rem 1.5rem;
  font-size: 0.95rem;
}
.contact-form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.contact-form-status {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.4;
  background: rgba(8, 24, 31, 0.55);
}
.contact-form-status[data-kind="success"] {
  background: var(--accent-tint);
  color: var(--accent-primary);
  border-left: 3px solid var(--accent-primary);
}
.contact-form-status[data-kind="error"] {
  background: rgba(228, 163, 103, 0.12);
  color: var(--accent-warm);
  border-left: 3px solid var(--accent-warm);
}

/* ── Footer ────────────────────────────────────────────────────────── */

.cv-footer {
  background: var(--cura-ink);
  color: var(--text-soft);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-glass);
}
.cv-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
.cv-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-strong);
}
.cv-footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: block;
  line-height: 1;
}
.cv-footer-tag {
  font-style: italic;
  font-size: 0.92rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.2rem;
}

.cv-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  justify-content: flex-end;
}
.cv-footer-links a {
  color: var(--text-soft);
  font-size: 0.93rem;
}
.cv-footer-links a:hover { color: var(--accent-primary); }

.cv-footer-legal {
  grid-column: 1 / -1;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
  font-size: 0.83rem;
  color: var(--text-muted);
}
.cv-footer-legal a { color: var(--text-soft); }
.cv-footer-legal a:hover { color: var(--accent-primary); }

/* ── Responsive ────────────────────────────────────────────────────── */

/* =============================================================================
 * Lush-Ghibli layer (P1 + P2 + P3)
 *
 * Sources the visual grammar from Kazuo Oga's Studio Ghibli backgrounds:
 * wet-on-wet color bleeds (mist), translucent layering (depth), observational
 * micro-detail (kodama spirits drifting), and dappled canopy light. All
 * additive on top of the dark navy-teal base; nothing here changes the
 * existing palette.
 * ============================================================================= */

/* Mist transitions between sections - replaces hard `border-top: 1px solid`
   with a soft gradient that bleeds the bg color upward, like a fog wash. */
.about::before,
.products::before,
.approach::before,
.about-detail::before,
.about-principles::before,
.about-cta::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0; right: 0;
  height: 96px;
  background: linear-gradient(180deg, transparent 0%, var(--surface-deep) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Watercolor noise texture - fixed-position grain overlay across the whole
   site. Breaks the flat-digital feel without becoming visible noise. */
.cv-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.97 0 0 0 0 0.91 0 0 0 0 0.75 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

/* Canopy silhouette - bottom-of-hero distant-trees silhouette in a
   misted-blue. Builds depth: hero copy in front, mist mid, canopy back. */
.hero-canopy {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: clamp(110px, 18vw, 220px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
.hero-canopy svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Dappled light overlay - 3 large soft spotlights that slowly drift across
   the hero, evoking sun shafts through canopy. Pure CSS, no JS needed. */
.hero-dapple {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.55;
  mix-blend-mode: screen;
}
.hero-dapple span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.hero-dapple span:nth-child(1) {
  width: 320px; height: 320px;
  top: -10%; left: 20%;
  background: radial-gradient(circle, rgba(240, 192, 96, 0.45) 0%, transparent 70%);
  animation: dapple-drift-1 28s ease-in-out infinite;
}
.hero-dapple span:nth-child(2) {
  width: 420px; height: 420px;
  top: 25%; right: 8%;
  background: radial-gradient(circle, rgba(136, 176, 126, 0.42) 0%, transparent 70%);
  animation: dapple-drift-2 36s ease-in-out infinite;
}
.hero-dapple span:nth-child(3) {
  width: 280px; height: 280px;
  bottom: 12%; left: 12%;
  background: radial-gradient(circle, rgba(93, 204, 197, 0.32) 0%, transparent 70%);
  animation: dapple-drift-3 32s ease-in-out infinite;
}
@keyframes dapple-drift-1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(40px, 30px, 0) scale(1.08); }
}
@keyframes dapple-drift-2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-50px, -20px, 0) scale(1.12); }
}
@keyframes dapple-drift-3 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(30px, -25px, 0) scale(1.10); }
}

/* Layered parallax mist - 3 SVG mist clouds at different z-depths in the
   hero. Different scroll coefficients applied via JS (see main.js). */
.hero-mist {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-mist svg {
  position: absolute;
  width: 140%;
  height: auto;
  opacity: 0.30;
  will-change: transform;
}
.hero-mist svg:nth-child(1) { top:  4%; left: -10%; opacity: 0.22; }
.hero-mist svg:nth-child(2) { top: 36%; left:  -5%; opacity: 0.32; }
.hero-mist svg:nth-child(3) { top: 68%; left: -15%; opacity: 0.24; }

/* Fireflies. Layered radial-gradient core + soft halo, warm amber. Two
   independent animations per bug: an outer-wrapper `drift` (translate3d
   around a wander path, 18-30s cycle) and an inner-glow `flicker`
   (asymmetric opacity stops with hard-off frames so the bug actually
   blinks the way a real firefly does, 4-7s cycle). Drift + flicker
   timings are coprime per-bug so they don't loop in lockstep.
   The wrapper is `display:block` (not flex) so the inner glow inherits
   its size correctly, and the wrapper carries no glow of its own. */
.hero-fireflies {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.firefly {
  position: absolute;
  width: 14px;
  height: 14px;
  will-change: transform;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
.firefly-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* 3-stop warm radial: hot core, mid glow, outer halo. No box-shadow -
     the gradient itself carries all the light falloff. */
  background:
    radial-gradient(circle at center,
      rgba(255, 248, 220, 1.0)  0%,
      rgba(255, 230, 150, 0.85) 18%,
      rgba(255, 200, 100, 0.45) 38%,
      rgba(240, 192, 96,  0.18) 60%,
      rgba(240, 192, 96,  0)   100%);
  opacity: 0;
  will-change: opacity;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

/* Five fireflies, each with its own drift path, flicker rhythm, scale, and
   starting position. Sizes vary from 10px to 18px for depth. */
.firefly--1 { top: 22%; left: 12%; animation-name: ff-drift-1; animation-duration: 22s; }
.firefly--1 .firefly-glow { animation-name: ff-flicker-1; animation-duration:  5.2s; }

.firefly--2 { top: 64%; left:  6%; animation-name: ff-drift-2; animation-duration: 27s; width: 11px; height: 11px; }
.firefly--2 .firefly-glow { animation-name: ff-flicker-2; animation-duration:  4.4s; animation-delay: -1.6s; }

.firefly--3 { top: 30%; right: 16%; animation-name: ff-drift-3; animation-duration: 24s; width: 12px; height: 12px; }
.firefly--3 .firefly-glow { animation-name: ff-flicker-3; animation-duration:  6.1s; animation-delay: -2.3s; }

.firefly--4 { top: 76%; right: 24%; animation-name: ff-drift-1; animation-duration: 30s; animation-direction: reverse; width: 16px; height: 16px; }
.firefly--4 .firefly-glow { animation-name: ff-flicker-2; animation-duration:  5.7s; animation-delay: -3.2s; }

.firefly--5 { top: 50%; right:  8%; animation-name: ff-drift-2; animation-duration: 26s; animation-direction: reverse; width: 10px; height: 10px; }
.firefly--5 .firefly-glow { animation-name: ff-flicker-1; animation-duration:  4.8s; animation-delay: -1.1s; }

.firefly--6 { top: 14%; left: 48%; animation-name: ff-drift-3; animation-duration: 28s; animation-direction: reverse; width: 9px; height: 9px; }
.firefly--6 .firefly-glow { animation-name: ff-flicker-3; animation-duration:  5.4s; animation-delay: -2.8s; }

.firefly--7 { top: 86%; left: 42%; animation-name: ff-drift-1; animation-duration: 25s; width: 13px; height: 13px; }
.firefly--7 .firefly-glow { animation-name: ff-flicker-1; animation-duration:  6.6s; animation-delay: -0.9s; }

/* Wander paths. Each is a small organic loop of ~80px across so the bug
   stays within its "territory" but drifts visibly. */
@keyframes ff-drift-1 {
  0%   { transform: translate3d(0, 0, 0); }
  25%  { transform: translate3d(38px, -22px, 0); }
  50%  { transform: translate3d(64px, 18px, 0); }
  75%  { transform: translate3d(22px, -40px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
@keyframes ff-drift-2 {
  0%   { transform: translate3d(0, 0, 0); }
  20%  { transform: translate3d(-18px, -34px, 0); }
  45%  { transform: translate3d(28px, -20px, 0); }
  70%  { transform: translate3d(46px, 12px, 0); }
  90%  { transform: translate3d(8px, 32px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
@keyframes ff-drift-3 {
  0%   { transform: translate3d(0, 0, 0); }
  30%  { transform: translate3d(-30px, 16px, 0); }
  55%  { transform: translate3d(-12px, -32px, 0); }
  80%  { transform: translate3d(34px, -8px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Flicker patterns. Real fireflies blink, they don't pulse evenly. Each
   pattern has 2-3 bright frames + several near-dark frames per cycle. */
@keyframes ff-flicker-1 {
  0%, 100%        { opacity: 0; }
  6%              { opacity: 1; }
  12%             { opacity: 0.6; }
  18%             { opacity: 0; }
  44%             { opacity: 0; }
  50%             { opacity: 0.95; }
  58%             { opacity: 0.45; }
  64%             { opacity: 0; }
}
@keyframes ff-flicker-2 {
  0%, 100%        { opacity: 0; }
  10%             { opacity: 0.85; }
  16%             { opacity: 1; }
  24%             { opacity: 0.3; }
  32%             { opacity: 0; }
  70%             { opacity: 0.7; }
  76%             { opacity: 0.95; }
  84%             { opacity: 0; }
}
@keyframes ff-flicker-3 {
  0%, 100%        { opacity: 0; }
  8%              { opacity: 0.8; }
  14%             { opacity: 0.4; }
  20%             { opacity: 0; }
  56%             { opacity: 0.6; }
  62%             { opacity: 1; }
  68%             { opacity: 0.5; }
  74%             { opacity: 0; }
}

/* About-page portrait treatment - vignette + grain for a painterly feel. */
.about-portrait {
  isolation: isolate;
}
.about-portrait img {
  filter: contrast(1.04) saturate(0.94);
}
.about-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(6, 21, 28, 0.55) 100%);
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* Reduced-motion: kill the drifts entirely so vestibular-sensitive users
   don't get the slow-pulse spotlight effect. */
@media (prefers-reduced-motion: reduce) {
  .hero-dapple span,
  .firefly,
  .firefly-glow,
  .hero-mist svg {
    animation: none !important;
    transform: none !important;
  }
  .firefly-glow { opacity: 0.45; }
}

/* =============================================================================
 * Viewport cascade
 *
 *   ≥ 961px  : default desktop, 2-3 cols throughout
 *   ≤ 960px  : iPad portrait, tighten gaps, shrink EDEN visual
 *   ≤ 820px  : nav collapses to mobile menu; about + flagship stack
 *   ≤ 720px  : large phone landscape, outcomes 2-col, eden modules 2-col
 *   ≤ 600px  : single-column everywhere, tighter padding
 *   ≤ 480px  : tightest type, footer center-stack
 *
 * dvh used wherever vh appears to keep iOS Safari from clipping under the
 * dynamic address bar.
 * ============================================================================= */

@media (max-width: 960px) {
  .eden-flagship {
    gap: 2rem;
    padding: clamp(2rem, 4vw, 3rem) clamp(1.6rem, 3.4vw, 2.8rem);
  }
  .eden-visual { min-height: 240px; }
  .eden-visual-grid { gap: 0.5rem; }
  .eden-module-pill { padding: 0.55rem 0.7rem; }
  .eden-content h3.eden-content-title { font-size: clamp(1.7rem, 2.4vw + 0.6rem, 2.2rem); }
  .approach-grid { gap: 1.2rem; }
  .outcomes-grid { gap: 1.2rem; }
}

@media (max-width: 820px) {
  .cv-nav, .cv-header-cta { display: none; }
  .cv-menu-toggle { display: inline-flex; }
  .cv-mobile-nav[hidden] { display: none; }
  .cv-mobile-nav:not([hidden]) { display: flex; }

  .hero { padding: clamp(4rem, 8vw, 6rem) 0 clamp(4rem, 8vw, 5.5rem); }
  .hero-inner { text-align: center; margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; gap: 0.8rem 1.6rem; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-portrait { max-width: 360px; margin: 0 auto; }
  .about-credentials { grid-template-columns: 1fr 1fr; }

  .cv-footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .cv-footer-links { justify-content: flex-start; gap: 0.4rem 1.2rem; }
  .cv-footer-legal { margin-top: 1.4rem; }
}

@media (max-width: 720px) {
  .hero h1 { font-size: clamp(2rem, 7vw + 0.6rem, 3rem); }
  .hero-trust { gap: 0.6rem 1.2rem; font-size: 0.85rem; }

  .outcomes-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .outcome-stat { padding: 1.4rem 1rem; }
  .outcome-stat-value { font-size: clamp(2.1rem, 6vw, 2.8rem); }

  .products-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .eden-flagship { padding: clamp(1.6rem, 4vw, 2.4rem) clamp(1.2rem, 3vw, 2rem); gap: 1.8rem; }
  .eden-visual { min-height: 220px; aspect-ratio: 4 / 3.4; }
  .eden-visual-grid { grid-template-columns: repeat(3, 1fr); gap: 0.45rem; }
  .eden-module-pill { padding: 0.5rem 0.6rem; }
  .eden-module-icon { width: 26px; height: 26px; }
  .eden-module-name { font-size: 0.82rem; }
  .eden-content-stats { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .eden-content-stat-value { font-size: clamp(1.3rem, 3.6vw, 1.65rem); }

  .approach-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .approach-item { padding: 1.2rem; }
  .approach-item h3 { font-size: 1.15rem; }

  .cv-mega-grid { grid-template-columns: 1fr !important; gap: 1.4rem; }

  .about-credentials { grid-template-columns: 1fr; gap: 0.7rem; }
  .about-portrait::after { font-size: 0.85rem; padding: 0.35rem 0.7rem; bottom: 0.8rem; left: 0.8rem; }

  /* Modal: drop the 2-col name+email pairing on small phones,
     drop the inline foot caption onto its own row. */
  .cv-modal-dialog { padding: 1.3rem; }
  .cv-modal-body h2 { font-size: clamp(1.35rem, 4vw + 0.4rem, 1.6rem); }
  .cv-modal-close { top: 8px; right: 8px; width: 30px; height: 30px; }
}

@media (max-width: 600px) {
  .container, .container-narrow { padding: 0 18px; }
  .section { padding: clamp(48px, 12vw, 80px) 0; }

  .hero { padding: 5rem 0 4rem; }
  .hero-actions { width: 100%; gap: 0.6rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-watermark { width: 90%; opacity: 0.05; }

  .outcomes-grid { grid-template-columns: 1fr; gap: 0.9rem; }
  .outcome-stat { padding: 1.2rem 1rem; text-align: left; }
  .outcome-stat-label { margin-left: 0; }

  .eden-visual-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .eden-visual { min-height: 280px; aspect-ratio: 1.1 / 1; }
  .eden-content-stats { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }

  .approach-grid { grid-template-columns: 1fr; gap: 0.9rem; }

  /* Modal: collapse 2-col fields to single column on small phones. */
  .contact-form-row { grid-template-columns: 1fr; gap: 0.7rem; }
  .contact-form-foot { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .contact-form-foot .btn { width: 100%; }
  .contact-form-foot .contact-form-note { text-align: center; }
  .contact-form textarea { min-height: 88px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: clamp(1.85rem, 9vw, 2.4rem); }
  .hero-sub { font-size: 1rem; }

  .cv-brand-name { font-size: 1.25rem; letter-spacing: 0.05em; }
  .cv-brand-sub  { font-size: 0.92rem; }
  .cv-brand-mark { width: 36px; height: 36px; }

  .eden-content h3.eden-content-title { font-size: clamp(1.45rem, 6.8vw, 1.9rem); }
  .eden-content-desc { font-size: 0.95rem; }
  .eden-module-pill { padding: 0.45rem 0.55rem; gap: 0.5rem; }
  .eden-module-icon { width: 22px; height: 22px; }
  .eden-module-name { font-size: 0.78rem; }

  /* Very short landscape phones: shrink textarea further so modal still fits. */
  .contact-form textarea { min-height: 72px; }
}

/* Short-viewport guard (landscape phones, ~≤ 680px tall). The dialog already
   caps at min(720px, 100dvh - 24px) but the textarea would push other rows
   off-screen at that height. Shrink it on short viewports. */
@media (max-height: 680px) {
  .cv-modal-body h2 { font-size: clamp(1.3rem, 3vw + 0.6rem, 1.6rem); margin-bottom: 0.35rem; }
  .cv-modal-lead { margin-bottom: 0.8rem; }
  .contact-form { gap: 0.65rem; }
  .contact-form textarea { min-height: 72px; }
  .contact-form input, .contact-form textarea { padding: 0.6rem 0.85rem; }
  .contact-form-foot { margin-top: 0.1rem; }
}
