:root {
  color-scheme: dark;

  --bg: #1E1C18;
  --bg-elev: #28251F;
  --bg-input: #302C25;
  --border: #3B362D;
  --border-strong: #5A5447;
  --text: #F5F1E8;
  --text-soft: #D4CCBC;
  --muted: #B0A693;

  --accent: #E0AAB4;
  --accent-hover: #E8BAC3;
  --cta: #DC6076;
  --cta-hover: #E67288;
  --cta-glow: rgba(220, 96, 118, 0.38);

  --edge-light: rgba(255, 255, 255, 0.07);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 14px rgba(0, 0, 0, 0.32);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.5), 0 28px 60px rgba(0, 0, 0, 0.6);

  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");

  --rainbow: linear-gradient(90deg,
    #8CC09C 0 16.66%,
    #DBCA7C 16.66% 33.33%,
    #DEB07E 33.33% 50%,
    #DA9898 50% 66.66%,
    #A992CE 66.66% 83.33%,
    #8EAFD6 83.33% 100%);

  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  /* Guard against any element nudging the layout wider than the screen.
     `clip` (not `hidden`) avoids creating a scroll container, so the
     sticky nav keeps working. */
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

/* In-page anchors land below the sticky nav rather than under it. */
:target,
main[id],
section[id] { scroll-margin-top: 88px; }

::selection { background: var(--accent); color: #1a1612; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

.narrow { max-width: 720px; }
.wide { max-width: 1320px; }

/* ── Scroll-progress rainbow strip ─────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--rainbow);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 20;
  pointer-events: none;
}

/* ── Reveal-on-scroll ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Nav ───────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(30, 28, 24, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.brand, .brand:visited { color: var(--text); }
.cta, .cta:visited { color: #fff; }
.cta-ghost, .cta-ghost:visited { color: var(--text); }
.cta-ghost:hover { color: var(--accent); }

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
  flex: none;
}

.brand::after {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  background: var(--rainbow);
  border-radius: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a,
.nav-links a:visited {
  position: relative;
  margin-left: 28px;
  padding: 6px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text); }

.nav-links a.active,
.nav-links a.active:visited {
  color: #FFFFFF;
  font-weight: 700;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--rainbow);
  border-radius: 1px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-cta,
.nav-cta:visited {
  flex: none;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  background: rgba(245, 241, 232, 0.03);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.nav-cta:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(224, 170, 180, 0.1);
}

/* ── Eyebrow / small labels ────────────────────────────── */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 960px) {
  .hero { padding: 108px 0 120px; }
}

.hero::before {
  /* Warm rainbow wash behind the card — committed, not faint. */
  content: "";
  position: absolute;
  inset: -20% -20% auto -20%;
  height: 820px;
  background:
    radial-gradient(45% 55% at 50% 8%, rgba(218, 152, 152, 0.22), transparent 70%),
    radial-gradient(40% 50% at 22% 18%, rgba(140, 192, 156, 0.13), transparent 72%),
    radial-gradient(40% 50% at 80% 18%, rgba(169, 146, 206, 0.16), transparent 72%);
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
}

.hero::after {
  /* Subtle film grain — perturbs the gradient colors rather than overlaying white. */
  content: "";
  position: absolute;
  inset: -20% -20% auto -20%;
  height: 820px;
  background-image: var(--noise);
  background-size: 220px 220px;
  opacity: 0.5;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 0;
}

.hero > .container { position: relative; z-index: 1; }

/* ── Aime hero card ────────────────────────────────────── */
.aime-hero-card {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 44px 44px 40px;
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(224, 170, 180, 0.10), transparent 65%),
    linear-gradient(180deg, var(--bg-elev) 0%, #221F1A 100%);
  border: 1px solid rgba(224, 170, 180, 0.28);
  border-radius: 22px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.5),
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(220, 96, 118, 0.14);
  isolation: isolate;
  overflow: hidden;
}

/* ── Sleek glass variant — sits over the full-screen prism image ── */
.aime-hero-card.is-glass {
  max-width: 540px;
  padding: 38px 40px 32px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(224, 170, 180, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(38, 35, 29, 0.66) 0%, rgba(26, 24, 20, 0.74) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45),
    0 40px 90px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Frost the message frame a touch more so it reads as a layer inside glass. */
.aime-hero-card.is-glass .aime-message-frame {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.10);
}

.aime-hero-credit {
  margin: 22px 0 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.aime-hero-credit strong {
  color: var(--text-soft);
  font-weight: 600;
}

.aime-hero-card::before {
  /* Rainbow accent strip — the card's signature. */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--rainbow);
  z-index: 2;
}

.aime-hero-card::after {
  /* Slow, soft glow halo behind the card. */
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(169, 146, 206, 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.aime-hero-card > * { position: relative; z-index: 1; }

.aime-hero-flag {
  display: inline-block;
  margin: 4px 0 26px;
  padding: 3px 11px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.aime-hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.aime-hero-logo svg {
  width: 84px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.35));
}

.aime-hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 14px;
  font-variation-settings: "opsz" 144;
  color: var(--text);
}

.aime-hero-kicker {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.32rem);
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 22px;
  line-height: 1.45;
  letter-spacing: -0.008em;
  font-variation-settings: "opsz" 36;
}

.aime-hero-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 11px;
  margin-bottom: 30px;
  background: rgba(140, 192, 156, 0.08);
  border: 1px solid rgba(140, 192, 156, 0.30);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ── Sample-message carousel ───────────────────────────── */
.aime-message-stage {
  margin: 0 auto 32px;
  max-width: 520px;
}

.aime-message-frame {
  position: relative;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px 20px;
  /* Reserve space so message changes don't reflow the card. */
  min-height: 184px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.aime-message-frame::before {
  content: "";
  position: absolute;
  top: 0; left: 14px; right: 14px;
  height: 1px;
  background: var(--rainbow);
  opacity: 0.55;
}

.aime-message-from {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.aime-message-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  flex: 1;
}

.aime-message {
  position: absolute;
  inset: 0;
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0.002em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.aime-message.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .aime-message { transition: none; transform: none; }
}

.aime-message-dots {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-top: 8px;
}

/* The dot stays a 7px circle visually, but the button fills a 22px
   touch target via a transparent border + content-box background. */
.aime-message-dot {
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 7.5px solid transparent;
  border-radius: 50%;
  background: var(--border-strong);
  background-clip: content-box;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.aime-message-dot:hover { background: var(--muted); background-clip: content-box; }

.aime-message-dot.is-active {
  background: var(--accent);
  background-clip: content-box;
  transform: scale(1.25);
}

/* ── Hero CTAs ─────────────────────────────────────────── */
.aime-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  background: var(--cta);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.005em;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 6px 18px rgba(0, 0, 0, 0.35),
    0 0 28px rgba(220, 96, 118, 0.28);
  transition: background 0.18s ease, box-shadow 0.25s ease, transform 0.18s ease, gap 0.2s ease;
}

.aime-hero-cta:visited { color: #fff; }

.aime-hero-cta .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.aime-hero-cta:hover {
  background: var(--cta-hover);
  gap: 14px;
  transform: translateY(-1px);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 8px 22px rgba(0, 0, 0, 0.4),
    0 0 44px rgba(220, 96, 118, 0.5);
}

.aime-hero-cta:hover .arrow { transform: translateX(3px); }

/* ── Framing section (was hero text) ───────────────────── */
.section.framing { padding-top: 64px; border-top: none; }
.section.framing h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.018em;
  line-height: 1.1;
  margin: 0 0 22px;
  max-width: none;
  font-variation-settings: "opsz" 96;
}
.section.framing h2 .accent {
  font-style: italic;
  font-weight: 600;
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 640px) {
  .aime-hero-card { padding: 34px 22px 32px; border-radius: 18px; }
  .aime-hero-logo svg { width: 68px; }
  .aime-message-frame { min-height: 224px; padding: 16px 16px 18px; }
  .aime-message { font-size: 1.04rem; }
  .aime-hero-cta { width: 100%; justify-content: center; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 11px;
  margin: 0 0 26px;
  background: rgba(140, 192, 156, 0.08);
  border: 1px solid rgba(140, 192, 156, 0.30);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8CC09C;
  box-shadow: 0 0 0 3px rgba(140, 192, 156, 0.22);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(140, 192, 156, 0.22); }
  50%      { box-shadow: 0 0 0 5px rgba(140, 192, 156, 0.08); }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
  margin: 0 0 24px;
  font-weight: 600;
  font-variation-settings: "opsz" 144;
}

.hero h1 .accent {
  font-style: italic;
  font-weight: 600;
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 1.24rem;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 0 40px;
  line-height: 1.6;
  font-weight: 400;
}

.hero-aside {
  margin: -16px 0 32px;
  max-width: 580px;
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.6;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.cta {
  display: inline-block;
  background: var(--cta);
  color: #fff;
  padding: 14px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  box-shadow: var(--shadow-1);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.25s ease;
}

.cta:hover {
  transform: translateY(-1px);
  background: var(--cta-hover);
  box-shadow: 0 1px 2px rgba(0,0,0,0.35), 0 4px 14px rgba(0,0,0,0.32), 0 0 28px var(--cta-glow);
}

.cta-ghost {
  display: inline-block;
  padding: 14px 22px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: transparent;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.cta-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(224, 170, 180, 0.05);
}

/* ── Sections ──────────────────────────────────────────── */
.section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.section.alt {
  background: var(--bg-elev);
  position: relative;
}

.section.alt::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--rainbow);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin: 0 0 26px;
  font-weight: 600;
  font-variation-settings: "opsz" 48;
  color: var(--text);
  max-width: 26ch;
}

.section p {
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.75;
}

.section p strong { color: var(--text); font-weight: 600; }

.kicker {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1.32rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 22px;
  letter-spacing: -0.012em;
  line-height: 1.35;
  font-variation-settings: "opsz" 36;
}

/* ── Pull quote (vision section) ───────────────────────── */
.pull-quote {
  position: relative;
  margin: 36px 0 36px;
  padding: 6px 0 6px 26px;
  border-left: none;
}

.pull-quote::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 2px;
  background: var(--rainbow);
  background: linear-gradient(180deg,
    #8CC09C 0 16.66%, #DBCA7C 16.66% 33.33%, #DEB07E 33.33% 50%,
    #DA9898 50% 66.66%, #A992CE 66.66% 83.33%, #8EAFD6 83.33% 100%);
}

.pull-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--text);
  font-weight: 500;
  margin: 0 0 12px;
  font-variation-settings: "opsz" 24;
}

.pull-quote p:last-child {
  margin-bottom: 0;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--accent);
}

/* ── Status callout (Aime live) ────────────────────────── */
.status {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 32px;
  padding: 18px 20px;
  background: rgba(140, 192, 156, 0.06);
  border: 1px solid rgba(140, 192, 156, 0.22);
  border-radius: 10px;
}

.status-dot {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 50%;
  background: #8CC09C;
  box-shadow: 0 0 0 4px rgba(140, 192, 156, 0.18);
}

.status span:last-child { color: var(--text-soft); font-size: 0.98rem; line-height: 1.6; }
.status strong { color: var(--text); }

.product-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Product showcase cards ────────────────────────────── */
.product-grid {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 22px;
}

.product-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-elev) 0%, #221F1A 100%);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.3s ease;
}

.product-card::before {
  /* Rainbow accent strip at the top — the card's signature. */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rainbow);
  z-index: 2;
}

.product-card::after {
  /* Faint warm wash so the card feels lit, not flat. */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 100% 0%, rgba(224, 170, 180, 0.07), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 28px 60px rgba(0,0,0,0.6), 0 0 36px rgba(224, 170, 180, 0.12);
}

.product-card-link {
  display: block;
  position: relative;
  z-index: 1;
  padding: 30px 32px 30px;
  color: var(--text);
  text-decoration: none;
}

.product-card-link:visited { color: var(--text); }

.product-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.product-card-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--text);
  line-height: 1;
  font-variation-settings: "opsz" 48;
}

.product-card-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 9px;
  background: rgba(140, 192, 156, 0.08);
  border: 1px solid rgba(140, 192, 156, 0.28);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.product-card-status .live-dot {
  width: 6px; height: 6px;
  box-shadow: 0 0 0 2.5px rgba(140, 192, 156, 0.22);
}

.product-card-kicker {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  line-height: 1.35;
  font-variation-settings: "opsz" 36;
}

.product-card-body {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 1.04rem;
  line-height: 1.7;
}

/* Flagship-product treatment: more prominent, with a clear filled CTA. */
.product-card.flagship {
  border-color: rgba(224, 170, 180, 0.32);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 28px 60px rgba(0,0,0,0.62), 0 0 48px rgba(220, 96, 118, 0.10);
}

.product-card.flagship::before { height: 4px; }

.product-card.flagship .product-card-link { padding: 36px 36px 36px; }

.product-card.flagship .product-card-name {
  font-size: clamp(2.2rem, 4.4vw, 2.8rem);
}

.product-card-flag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 11px;
  background: var(--rainbow);
  color: #1a1612;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
}

.product-card-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 24px;
  background: var(--cta);
  color: #fff;
  border-radius: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.005em;
  box-shadow: 0 1px 2px rgba(0,0,0,0.35), 0 4px 14px rgba(0,0,0,0.32), 0 0 24px rgba(220, 96, 118, 0.25);
  transition: background 0.18s ease, box-shadow 0.25s ease, transform 0.18s ease, gap 0.2s ease;
}

.product-card-button .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.product-card:hover .product-card-button {
  background: var(--cta-hover);
  box-shadow: 0 1px 2px rgba(0,0,0,0.35), 0 6px 18px rgba(0,0,0,0.4), 0 0 38px rgba(220, 96, 118, 0.45);
  gap: 14px;
  transform: translateY(-1px);
}

.product-card:hover .product-card-button .arrow { transform: translateX(3px); }

@media (max-width: 640px) {
  .product-card-link, .product-card.flagship .product-card-link { padding: 26px 22px; }
  .product-card-name, .product-card.flagship .product-card-name { font-size: 1.8rem; }
  .product-card-button { width: 100%; justify-content: center; }
}

/* ── Values grid ───────────────────────────────────────── */
.values {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.values li {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 30px 32px;
  color: var(--muted);
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  --stop: #E0AAB4;
}

/* Coloured top edge in the value's rainbow stop — a scannable cue.
   Pulled out by 1px to cover the card border and clipped by the card's
   overflow:hidden so it reads as the card's top edge, not a strip above it. */
.values li::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 4px;
  background: var(--stop);
}

/* Number + one-word label, side by side: scan the word, skip the prose. */
.values .v-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.values .v-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--stop);
  letter-spacing: 0.005em;
  flex: none;
}

.values .v-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--text);
  font-variation-settings: "opsz" 48;
}

.values li p { margin: 0; font-size: 1.08rem; line-height: 1.6; color: var(--text-soft); }
.values li strong { color: var(--text); font-weight: 600; }

/* ── Mode cards — "Three ways in" (Think / Plan / Learn) ──
   Mirrors the real Aime chat surface: a right-aligned, tailed user
   bubble and a flush-left assistant card with a rainbow "spine" —
   same shapes and tokens as resources/style/web_chat.html in the app. */
.mode-grid {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 36px;
}

.mode-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 34px 34px;
  box-shadow: var(--shadow-1);
  --stop: #E0AAB4;
}

.mode-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 4px;
  background: var(--stop);
}

.mode-card__tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--stop);
}

.mode-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 8px 0 0;
  color: var(--text);
  font-variation-settings: "opsz" 36;
}

.mode-card .mode-blurb {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

.mode-demo {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* User side — same tail shape and right alignment as .msg.user in the app. */
.mode-msg--user {
  align-self: flex-end;
  max-width: 88%;
  background: #4A3A38;
  border-radius: 16px 16px 4px 16px;
  padding: 10px 14px;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mode-msg--user p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}

/* Assistant side — flush-left card with the app's rainbow spine cue. */
.mode-msg--aime {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px 14px 18px;
}

.mode-msg--aime::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 3px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(180deg, #8CC09C, #DBCA7C, #DEB07E, #DA9898, #A992CE, #8EAFD6);
}

.mode-msg__from {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Structured-document preview (Think). */
.mode-doc h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.005em;
  margin: 0 0 8px;
  color: var(--text);
}

.mode-doc ul {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mode-doc li {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.mode-doc li strong { color: var(--text); font-weight: 600; }

/* Plain researched answer (Learn). */
.mode-answer {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-soft);
}

/* Source chips — pill shape, matches .source-chip in the app's chat UI. */
.mode-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.76rem;
  line-height: 1.3;
  color: var(--muted);
}

.source-chip__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--stop);
}

.source-chip strong { color: var(--accent); font-weight: 600; }

/* Calendar chips (Plan) — flat rows with a category-color left bar,
   same idea as .todo-item / .ev-* chips in the app. */
.mode-cal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.cal-chip {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 10px 7px 14px;
  background: var(--bg-input);
  border-radius: 8px;
}

.cal-chip::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background: var(--cat, var(--accent));
}

.cal-chip .cal-when {
  flex: none;
  min-width: 92px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.cal-chip .cal-what {
  font-size: 0.88rem;
  color: var(--text);
}

/* Conflict flag — the "heads up" moment in the Plan demo. */
.mode-flag {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 4px;
  padding: 10px 12px;
  background: rgba(222, 176, 126, 0.10);
  border: 1px solid rgba(222, 176, 126, 0.32);
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.mode-flag .flag-icon {
  flex: none;
  font-weight: 700;
  color: #DEB07E;
}

@media (max-width: 640px) {
  .mode-card { padding: 24px 20px 22px; }
  .mode-msg--user { max-width: 94%; }
}

/* ── Routine tasks — scheduled job + permissions toggle ─── */
.routine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  margin-top: 36px;
  align-items: start;
}

.routine-card, .permission-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 32px 30px;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
}

.routine-card::before, .permission-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--rainbow);
  opacity: 0.7;
}

.panel-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

/* Schedule badge + manual trigger, side by side. */
.routine-card__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.routine-card__head .hero-badge { margin: 0 0 20px; }

.run-now-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  margin-bottom: 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
}

.routine-card h3, .permission-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.24rem;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--text);
  font-variation-settings: "opsz" 36;
}

.routine-card > p, .permission-intro {
  margin: 0 0 20px;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Action chips — what the job is allowed to touch, at a glance. */
.action-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.action-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.action-chip__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--c, var(--accent));
}

/* A permission the task hasn't been granted — present, but visibly inactive. */
.action-chip.is-off {
  color: var(--muted);
  border-style: dashed;
  background: transparent;
}

/* Success line — the job reporting back after a run. */
.routine-status {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: auto;
  padding: 12px 14px;
  background: rgba(140, 192, 156, 0.08);
  border: 1px solid rgba(140, 192, 156, 0.28);
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.routine-status .status-icon {
  flex: none;
  font-weight: 700;
  color: #8CC09C;
}

/* Permission toggles — read as real, not decorative. */
.toggle-list { display: flex; flex-direction: column; margin-top: 6px; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.toggle-row:first-child { border-top: none; padding-top: 4px; }

.toggle-row__label {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--text);
}

.toggle-row__desc {
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--muted);
}

.toggle {
  --w: 40px;
  --h: 22px;
  flex: none;
  width: var(--w);
  height: var(--h);
  border-radius: 999px;
  background: var(--border-strong);
  position: relative;
  transition: background 0.2s ease;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: calc(var(--h) - 4px);
  height: calc(var(--h) - 4px);
  border-radius: 50%;
  background: var(--text-soft);
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, background 0.2s ease;
}

.toggle.is-on { background: rgba(140, 192, 156, 0.38); }
.toggle.is-on::after {
  background: #8CC09C;
  transform: translateX(calc(var(--w) - var(--h)));
}

@media (max-width: 640px) {
  .routine-card, .permission-card { padding: 26px 22px 24px; }
}

/* ── "What we're not" — anti-list ──────────────────────── */
.section.not h2 { max-width: 22ch; }

.anti-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 26px;
}

.anti-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--text);
  font-size: 1.04rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.anti-list .x {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--accent);
  line-height: 1;
  flex: none;
  width: 16px;
  text-align: center;
}

.muted-line {
  margin-top: 16px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted);
  font-size: 1.02rem;
}

/* ── Horizon timeline ──────────────────────────────────── */
.horizon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 8px;
}

.horizon-step {
  position: relative;
  padding: 22px 22px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.horizon-step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--rainbow);
  opacity: 0.7;
}

.horizon-label {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.horizon-step p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.horizon-step strong { color: var(--text); font-weight: 600; }

/* ── Long-game aside ───────────────────────────────────── */
.muted-aside {
  margin-top: 36px !important;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 1rem !important;
  font-style: italic;
  font-weight: 500;
  font-family: var(--font-display);
  color: var(--muted) !important;
  line-height: 1.6 !important;
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  color: var(--muted);
  font-size: 0.92rem;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.footer-tag {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-copy { margin: 0; }

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

/* Below this width the inline section links crowd the bar, so we drop
   them and keep a clean brand + Sign In nav. Every section is still one
   scroll away, and the hero's "See what it does" jumps into the page. */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-inner { height: 64px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .nav-cta { padding: 9px 16px; font-size: 0.88rem; }
  .hero { padding: 96px 0 80px; }
  .section { padding: 72px 0; }
  .pull-quote { margin: 28px 0; padding-left: 20px; }
  .pull-quote p { font-size: 1.08rem; }

  /* Stack the hero / closing CTAs into full-width, thumb-friendly rows. */
  .aime-hero-actions { flex-direction: column; gap: 10px; }
  .aime-hero-actions .cta-ghost { width: 100%; text-align: center; }
  .start-actions { flex-direction: column; align-items: stretch; }
  .start-actions .cta,
  .start-actions .cta-ghost { width: 100%; text-align: center; }
}

/* ── Image / prism placeholders ─────────────────────────────
   Drop-in slots for the photography we'll add later. The brief:
   simple prism imagery that text can sit over easily. Until a real
   asset is dropped in, each slot shows a faint refracted-light wash
   and a quiet label. To use a real image, set a background-image on
   the element (inline or a modifier) and add .has-photo.            */

.prism-slot {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--border-strong);
  background-color: var(--bg-elev);
  background-image:
    radial-gradient(120% 140% at 12% 0%, rgba(140, 192, 156, 0.16), transparent 42%),
    radial-gradient(120% 140% at 38% 0%, rgba(219, 202, 124, 0.14), transparent 44%),
    radial-gradient(120% 140% at 58% 100%, rgba(222, 176, 126, 0.15), transparent 46%),
    radial-gradient(120% 140% at 74% 0%, rgba(218, 152, 152, 0.17), transparent 46%),
    radial-gradient(120% 140% at 90% 100%, rgba(169, 146, 206, 0.17), transparent 48%),
    radial-gradient(120% 160% at 100% 0%, rgba(142, 175, 214, 0.18), transparent 50%);
}

.prism-slot::after {
  content: attr(data-label);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(30, 28, 24, 0.55);
  backdrop-filter: blur(4px);
}

/* When a real photo is supplied, set it as a background-image and add
   this class — the placeholder chrome steps aside. */
.prism-slot.has-photo {
  border-style: solid;
  border-color: var(--border);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.prism-slot.has-photo::after { content: none; }

/* ── Text-over-image surfaces ───────────────────────────────
   Put .prism-bg on any block whose text must read over a picture.
   It supplies a prism wash as a stand-in background AND a warm scrim
   so overlaid copy stays legible the moment a real photo is dropped
   in (set the photo via the --photo custom property).               */

.prism-bg {
  position: relative;
  isolation: isolate;
  background-color: var(--bg);
}
.prism-bg > * { position: relative; z-index: 1; }

.prism-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-image: var(--photo, none),
    linear-gradient(115deg,
      rgba(140, 192, 156, 0.14) 0%,
      rgba(219, 202, 124, 0.12) 20%,
      rgba(222, 176, 126, 0.13) 40%,
      rgba(218, 152, 152, 0.15) 60%,
      rgba(169, 146, 206, 0.15) 80%,
      rgba(142, 175, 214, 0.16) 100%);
  background-size: cover;
  background-position: center;
}

/* Warm scrim — keeps headline contrast high over any image. */
.prism-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(30, 28, 24, 0.5) 0%, rgba(30, 28, 24, 0.66) 45%, rgba(30, 28, 24, 0.8) 100%);
  pointer-events: none;
}

/* A bare label that can sit in a corner of a .prism-bg block. */
.photo-note {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
}

/* ── Prism hero ─────────────────────────────────────────────
   Full-bleed image hero with centered text over it — the
   "prism in the background" treatment. Supply the photo via the
   --photo custom property (defaults to the prism image gradient). */

.prism-hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 28px 120px;
  overflow: hidden;
  background-color: #15140f;
}

.prism-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--photo, none);
  background-size: cover;
  background-position: center;
}

/* Centered scrim — darker in the middle so headlines stay crisp over
   the bright refraction beam, lighter at the edges so the image reads. */
.prism-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 92% at 50% 46%, rgba(21, 20, 15, 0.44), rgba(21, 20, 15, 0.66) 66%, rgba(21, 20, 15, 0.85)),
    linear-gradient(180deg, rgba(21, 20, 15, 0.34) 0%, rgba(21, 20, 15, 0.42) 40%, rgba(21, 20, 15, 0.72) 100%);
}

.prism-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 22px;
}

.prism-hero > h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 18ch;
  color: var(--text);
  text-shadow: 0 1px 30px rgba(0, 0, 0, 0.45);
}

.prism-hero > h1 em {
  font-style: italic;
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Full-screen variant — image fills most of the viewport, stopping just
   short of the bottom so the glow of the section below peeks through. */
.prism-hero.is-screen {
  min-height: 92vh;
  padding-top: 96px;
}

/* Dynamic viewport units track the mobile browser's collapsing toolbar,
   so the hero doesn't leave a gap or jump as the address bar hides. */
@supports (height: 100dvh) {
  .prism-hero { min-height: min(92dvh, 900px); }
  .prism-hero.is-screen { min-height: 92dvh; }
}

.prism-hero__sub {
  margin: 26px auto 0;
  max-width: 46ch;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-soft);
}
.prism-hero__sub em { font-style: italic; color: var(--text); }

.prism-hero__cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Scroll affordance: a soft glow blooming up from the section
   below the hero image — invites scrolling without a literal icon. */
.hero-seam {
  position: relative;
  height: 0;
  z-index: 3;
  pointer-events: none;
}
.hero-seam::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  transform: translateX(-50%);
  width: min(80vw, 820px);
  height: 170px;
  background:
    radial-gradient(50% 60% at 50% 0%,
      rgba(224, 170, 180, 0.55) 0%,
      rgba(169, 146, 206, 0.34) 38%,
      rgba(142, 175, 214, 0.18) 60%,
      transparent 76%);
  filter: blur(40px);
  animation: seam-glow 3.6s ease-in-out infinite;
}

@keyframes seam-glow {
  0%, 100% { opacity: 0.5;  transform: translateX(-50%) scaleY(0.9); }
  50%      { opacity: 0.95; transform: translateX(-50%) scaleY(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-seam::before { animation: none; opacity: 0.7; }
}

/* ── Big "your ideas matter" image panel (vision section) ───── */
.ideas-panel {
  /* Break out wider than the 1080px container so the prism image reads big. */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(1320px, 94vw);
  margin: 8px 0 36px;
  border-radius: 22px;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(28px, 5vw, 60px);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}

/* Lighter scrim — the glass pane carries text contrast now, so the
   rainbow image can stay vivid. Slightly darker on the pane's side. */
/* Zoom + anchor left so the prism sits in the right half, clear of the card. */
.ideas-panel.prism-bg::before {
  background-size: 150%;
  background-position: left center;
}

.ideas-panel.prism-bg::after {
  background:
    linear-gradient(90deg, rgba(21, 20, 15, 0.40) 0%, rgba(21, 20, 15, 0.18) 58%, rgba(21, 20, 15, 0.06) 100%);
}

/* The frosted glass pane that holds the title + examples. */
.ideas-panel__inner {
  width: 100%;
  max-width: 660px;
  padding: 40px 44px 44px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(26, 24, 20, 0.60) 0%, rgba(20, 18, 15, 0.70) 100%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ideas-panel__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
  font-variation-settings: "opsz" 96;
}

/* People rows when laid over the photo — lighter rules, brighter text. */
.people--on-photo { margin: 26px 0 0; }
.people--on-photo li {
  border-top-color: rgba(255, 255, 255, 0.18);
  padding: 18px 0;
}
.people--on-photo li:last-child { border-bottom-color: rgba(255, 255, 255, 0.18); }
.people--on-photo .who { color: #fff; }
.people--on-photo p {
  color: rgba(245, 241, 232, 0.88);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5);
}

@media (max-width: 560px) {
  .ideas-panel { min-height: 500px; padding: 20px; }
  .ideas-panel__inner { padding: 26px 22px 30px; }
  .ideas-panel__title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
}

/* ── "People with ideas" — scannable rows instead of a text block ── */
.people {
  list-style: none;
  margin: 28px 0 26px;
  padding: 0;
  display: grid;
  gap: 0;
}

.people li {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) 1fr;
  gap: 28px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.people li:last-child { border-bottom: 1px solid var(--border); }

.people .who {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--text);
  font-variation-settings: "opsz" 36;
}

.people p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.people-coda {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem !important;
  line-height: 1.4 !important;
  color: var(--text) !important;
  margin: 0 0 4px !important;
}

@media (max-width: 560px) {
  .prism-hero { min-height: 88vh; padding: 120px 22px 100px; }
  .people li { grid-template-columns: 1fr; gap: 4px; }
}
