/* ─── Variables ───────────────────────────────────────────────────────────── */
:root {
  --black:       #08090a;
  --dark:        #0d1117;
  --dark-green:  #0f1c16;
  --green:       #2d4a3e;
  --green-mid:   #1e3329;
  --gold:        #c8a56e;
  --gold-light:  #dfc08f;
  --cream:       #f9f5ed;
  --warm-white:  #fdfaf4;
  --paper:       #f4efe3;
  --text:        #1a1a1a;
  --text-muted:  #6b7280;
  --cold-gray:   #2a2a2e;
  --cold-mid:    #3d3d42;
  --border:      #e5e0d5;
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-body:   'Source Serif 4', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
}

/* ─── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--black); overflow-x: hidden; }
nav, button, input, label, .btn, .plan__features, .pricing__story-report, .sources__list, .sources__note { font-family: var(--font-sans); }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.6rem; border-radius: 4px;
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.02em; cursor: pointer; transition: all 0.2s;
  border: 1.5px solid transparent;
}
.btn--gold        { background: var(--gold); color: var(--black); border-color: var(--gold); font-weight: 600; }
.btn--gold:hover  { background: var(--gold-light); border-color: var(--gold-light); }
.btn--outline-light {
  background: rgba(255,255,255,0.08);
  color: white; border-color: rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
  font-weight: 500;
}
.btn--outline-light:hover { border-color: white; background: rgba(255,255,255,0.16); }
.btn--outline-dark { background: transparent; color: var(--green); border-color: var(--green); }
.btn--outline-dark:hover { background: var(--green); color: white; }
.btn--ghost-light { background: transparent; color: rgba(255,255,255,0.7); border-color: transparent; }
.btn--ghost-light:hover { color: white; }
.btn--lg { padding: 0.9rem 2.2rem; font-size: 0.95rem; }

/* ─── Navigation ──────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 2rem; height: 68px;
  display: flex; align-items: center;
  /* Always-on dark band so links are readable over any image */
  background: linear-gradient(to bottom, rgba(8,9,10,0.7) 0%, rgba(8,9,10,0) 100%);
  transition: background 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(8,9,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav__inner { max-width: 1160px; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__logo { font-family: var(--font-serif); font-size: 1.35rem; color: var(--gold); letter-spacing: 0.01em; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a:not(.btn) { color: rgba(255,255,255,0.65); font-size: 0.875rem; transition: color 0.2s; }
.nav__links a:not(.btn):hover { color: white; }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__hamburger span { width: 22px; height: 1.5px; background: white; display: block; transition: all 0.2s; }

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: visible; background: var(--black);
}

/* Clips background media without clipping the search dropdown */
.hero__bg-clip {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none;
}

.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.25;
}

/* Subtle vignette + bottom fade into next section */
.hero__split-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,9,10,0.0) 60%,
    rgba(8,9,10,0.9) 100%
  );
  pointer-events: none;
}

/* Film grain */
.hero__grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.4;
}

.hero__content {
  position: relative; z-index: 2;
  width: 100%; max-width: 1160px; margin: 0 auto;
  padding: 0 2rem 0 3rem;
  padding-top: 100px;
  display: flex; flex-direction: column; align-items: flex-start;
}

.hero__badge {
  display: inline-block;
  background: rgba(200,165,110,0.15);
  border: 1px solid rgba(200,165,110,0.4);
  color: var(--gold);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem; border-radius: 20px;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.5vw, 5.2rem);
  font-weight: 700; line-height: 1.05;
  color: white; margin-bottom: 1.25rem;
  display: flex; flex-direction: column;
  max-width: 600px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.hero__title em { font-style: italic; color: var(--gold); }
.hero__title-line { display: block; opacity: 0; transform: translateY(20px); animation: fadeUp 0.8s forwards; }
.hero__title-line--1 { animation-delay: 0.2s; }
.hero__title-line--2 { animation-delay: 0.4s; }
.hero__title-line--3 { animation-delay: 0.6s; }
.hero__title-line--4 { animation-delay: 0.8s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero__sub {
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  color: rgba(255,255,255,0.7);
  line-height: 1.75; max-width: 440px;
  margin-bottom: 1.75rem;
  opacity: 0; animation: fadeUp 0.8s 1s forwards;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.hero__actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.8s 1.2s forwards;
}

/* ─── Origin search bar (hero) ───────────────────────────────────────────── */
.hero__search-wrap {
  position: relative; width: 100%; max-width: 580px;
  opacity: 0; animation: fadeUp 0.8s 1.2s forwards;
  /* Ensure dropdown stays within hero flow, not clipped */
  z-index: 10;
}

.hero__search-bar {
  display: flex; align-items: center;
  background: rgba(10,12,10,0.72);
  border: 1px solid rgba(200,165,110,0.55);
  border-radius: 10px; overflow: visible;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  transition: border-color 0.2s, background 0.2s;
}
.hero__search-bar:focus-within {
  border-color: rgba(200,165,110,0.9);
  background: rgba(10,12,10,0.85);
}

.hero__search-badge {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #1a1a0e;
  background: #c8a56e; padding: 0.15rem 0.5rem;
  border-radius: 99px; flex-shrink: 0; margin-left: 0.75rem;
}

.hero__search-input {
  flex: 1; background: none; border: none; outline: none;
  color: white; font-size: 0.95rem; padding: 0.85rem 0.75rem;
  font-family: inherit;
}
.hero__search-input::placeholder { color: rgba(255,255,255,0.35); }

.hero__search-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.45); padding: 0.75rem 1rem;
  transition: color 0.15s; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.hero__search-btn:hover { color: #c8a56e; }

/* Results panel — opens upward from the search bar */
.hero__search-results {
  position: absolute;
  bottom: calc(100% + 10px);
  top: auto;
  left: 0; right: 0;
  z-index: 9999;
  pointer-events: none;
  max-height: 60vh;
  overflow-y: auto;
  border-radius: 12px;
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(200,165,110,0.3) transparent;
}
.hero__search-results::-webkit-scrollbar { width: 4px; }
.hero__search-results::-webkit-scrollbar-thumb { background: rgba(200,165,110,0.3); border-radius: 99px; }
.hero__search-results:not(:empty) { pointer-events: all; }

/* Wrapper that holds the card + bottom-fade hint */
.era-card-wrap {
  position: relative;
}
/* Fades out the bottom edge while streaming to hint at more content */
.era-card-wrap::after {
  content: '';
  position: sticky;
  bottom: 0;
  left: 0; right: 0;
  height: 48px;
  display: block;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.95));
  pointer-events: none;
  transition: opacity 0.3s;
}
.era-card-wrap.is-done::after {
  opacity: 0;
}

.search-results-inner {
  background: rgba(255,255,255,0.97); border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  animation: panelDropIn 0.18s ease;
}
@keyframes panelDropIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.search-results-count {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(0,0,0,0.35);
  padding: 0.65rem 1rem 0.4rem;
}
.search-results-list { display: flex; flex-direction: column; }

.search-result {
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(0,0,0,0.07);
  display: grid; grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  column-gap: 0.75rem; align-items: start;
  transition: background 0.15s;
}
.search-result:hover { background: rgba(0,0,0,0.03); }
.search-result--living { opacity: 0.7; }

.search-result__name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; color: #1a1a14; font-weight: 600;
  grid-column: 1; grid-row: 1;
}
.search-result__meta {
  font-size: 0.75rem; color: rgba(0,0,0,0.45);
  grid-column: 1; grid-row: 2; margin-top: 0.1rem;
  display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap;
}
.search-result__sep { opacity: 0.4; }
.search-result__tree {
  font-size: 0.7rem; color: #a07840;
  grid-column: 1; grid-row: 3; margin-top: 0.25rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.search-result__docs {
  background: rgba(200,165,110,0.15); color: #8a6030;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.05em;
  padding: 0.1rem 0.35rem; border-radius: 99px; text-transform: uppercase;
}
.search-result__cta {
  grid-column: 2; grid-row: 1 / 4; align-self: center;
  font-size: 0.75rem; color: #a07840; white-space: nowrap;
  text-decoration: none; transition: opacity 0.15s; font-weight: 500;
}
.search-result__cta:hover { opacity: 0.7; }

.search-results-footer {
  padding: 0.65rem 1rem;
  border-top: 1px solid rgba(0,0,0,0.07);
  font-size: 0.75rem; color: rgba(0,0,0,0.35);
}
.search-results-footer a {
  color: #a07840; text-decoration: none; margin-left: 0.25rem;
}
.search-results-footer a:hover { color: #c8a56e; }

/* Empty state */
.search-empty {
  background: rgba(255,255,255,0.97); border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px; padding: 1.5rem;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  animation: panelDropIn 0.18s ease;
}
.search-empty__headline {
  font-size: 0.9rem; color: #1a1a14; margin-bottom: 0.6rem; line-height: 1.5;
}
.search-empty__headline strong { color: #a07840; font-weight: 600; }
.search-empty__body {
  font-size: 0.82rem; color: rgba(0,0,0,0.5);
  line-height: 1.65; margin-bottom: 1rem;
}

/* Loading dots */
.search-loading {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; padding: 1.5rem;
  background: rgba(255,255,255,0.97); border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px; box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  animation: panelDropIn 0.18s ease;
}
.search-loading span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #c8a56e; animation: search-bounce 1s ease-in-out infinite;
}
.search-loading span:nth-child(2) { animation-delay: 0.15s; }
.search-loading span:nth-child(3) { animation-delay: 0.3s; }
@keyframes search-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40%           { transform: translateY(-5px); opacity: 1; }
}
.search-error {
  padding: 1rem; font-size: 0.8rem;
  color: rgba(0,0,0,0.4); text-align: center;
  background: rgba(255,255,255,0.93); border-radius: 10px;
}

/* ─── Era context card ───────────────────────────────────────────────────── */
.era-card {
  background: rgba(255,255,255,0.97); border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  animation: panelDropIn 0.18s ease;
}

.era-card__head {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.85rem 1.1rem;
  background: rgba(200,165,110,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.era-card__badge {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #1a1a0e;
  background: #c8a56e; padding: 0.15rem 0.5rem; border-radius: 99px;
  flex-shrink: 0;
}
.era-card__location {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.85rem;
}
.era-card__place {
  color: #1a1a14; font-weight: 600;
  font-family: 'Playfair Display', serif;
}
.era-card__sep { color: rgba(0,0,0,0.25); }
.era-card__period { color: #a07840; font-style: italic; }

.era-card__headline {
  padding: 0.9rem 1.1rem 0;
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-style: italic;
  color: rgba(0,0,0,0.75); line-height: 1.5;
}

.era-card__sections {
  padding: 0.75rem 0;
}
.era-section {
  padding: 0.6rem 1.1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.era-section:last-child { border-bottom: none; }
.era-section__title {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #a07840;
  margin-bottom: 0.3rem;
}
.era-section__body {
  font-size: 0.82rem; color: rgba(0,0,0,0.65); line-height: 1.7;
}

/* Streaming state */
.era-card__thinking {
  font-size: 0.8rem; color: rgba(0,0,0,0.3);
  font-style: italic; letter-spacing: 0.02em;
}
.era-section--live .era-section__body { color: rgba(0,0,0,0.65); }
.era-cursor {
  display: inline-block;
  color: #c8a56e;
  animation: cursorBlink 0.9s step-end infinite;
  margin-left: 1px; font-size: 0.85em;
  vertical-align: baseline;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.era-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 1.1rem;
  border-top: 1px solid rgba(0,0,0,0.07);
  background: rgba(0,0,0,0.03);
  flex-wrap: wrap;
}
.era-card__footer > span {
  font-size: 0.78rem; color: rgba(0,0,0,0.4); font-style: italic;
}
.era-card__cta {
  font-size: 0.8rem; padding: 0.5rem 1rem; white-space: nowrap;
}
.era-card__era-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.8rem; color: var(--green); font-weight: 600;
  text-decoration: none; white-space: nowrap;
  padding: 0.45rem 0.9rem; border-radius: 6px;
  border: 1.5px solid var(--green);
  transition: all 0.15s;
}
.era-card__era-link:hover {
  background: var(--green); color: white;
}

.hero__scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.3); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* ─── The Question ────────────────────────────────────────────────────────── */
.question {
  background: var(--dark-green);
  padding: 8rem 2rem;
  position: relative; overflow: hidden;
}
.question::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(200,165,110,0.06) 0%, transparent 70%);
}
.question__inner { max-width: 800px; margin: 0 auto; position: relative; }
.question__label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 2.5rem;
}
.question__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-style: italic; font-weight: 400;
  line-height: 1.5; color: var(--gold);
  border-left: 2px solid rgba(200,165,110,0.4);
  padding-left: 2rem; margin-bottom: 3rem;
}
.question__body {
  font-size: 1.05rem; line-height: 1.85;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.25rem;
}
.question__body--emphasis {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  font-style: italic;
}

/* ─── Split Demo ──────────────────────────────────────────────────────────── */
.split-demo {
  background: var(--cream);
  padding: 7rem 2rem;
}
.split-demo__inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center;
}
.split-demo__label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem;
}
.split-demo__label--color { color: var(--green); }

.split-demo__card {
  border-radius: 8px; padding: 2rem;
  border: 1px solid var(--border);
}
.split-demo__card--bw {
  background: #f0ede8;
  filter: grayscale(0.4) contrast(0.9);
}
.split-demo__card--color {
  background: white;
  box-shadow: 0 8px 40px rgba(45,74,62,0.12);
  border-color: rgba(45,74,62,0.15);
}

.demo-name { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; margin-bottom: 0.25rem; }
.demo-dates { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.15rem; }
.demo-place { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.15rem; }
.demo-occupation { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.25rem; }

.demo-empty {
  border-top: 1px solid var(--border); padding-top: 1.25rem;
  color: #aaa; font-size: 0.85rem; font-style: italic;
}
.demo-context {
  border-top: 1px solid rgba(45,74,62,0.12); padding-top: 1.25rem;
}
.demo-context p {
  font-size: 0.9rem; line-height: 1.75; color: #333; margin-bottom: 1rem;
}
.demo-context em { color: var(--green); font-style: normal; font-weight: 500; }
.demo-sources { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.source-tag {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.05em;
  background: rgba(45,74,62,0.08); color: var(--green);
  padding: 0.2rem 0.6rem; border-radius: 3px;
}

.split-demo__divider {
  display: flex; align-items: center; justify-content: center;
}
.split-demo__arrow {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

/* ─── How it works ────────────────────────────────────────────────────────── */
.how {
  background: var(--warm-white);
  padding: 8rem 2rem;
}
.how__header { margin-bottom: 5rem; }
.how__label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green); margin-bottom: 1rem;
}
.how__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700; line-height: 1.2; color: var(--text);
}
.how__title em { font-style: italic; color: var(--green); }

.how__steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem;
  max-width: 1160px; margin: 0 auto;
}
.how__step-number {
  font-family: var(--font-serif); font-size: 3.5rem; font-weight: 700;
  color: rgba(45,74,62,0.12); line-height: 1; margin-bottom: 1.25rem;
}
.how__step h3 {
  font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600;
  color: var(--text); margin-bottom: 1rem;
}
.how__step p {
  font-size: 0.95rem; line-height: 1.8; color: var(--text-muted);
}

/* ─── Views ───────────────────────────────────────────────────────────────── */
.views {
  background: var(--dark); padding: 8rem 2rem;
}
.views__header { margin-bottom: 4rem; }
.views__label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}
.views__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700; line-height: 1.2; color: white;
}
.views__title em { font-style: italic; color: var(--gold); }

.views__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1160px; margin: 0 auto;
}

/* ── Standard utility cards ── */
.view-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 2.25rem;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
}
.view-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
}
.view-card__icon {
  width: 44px; height: 44px; color: rgba(255,255,255,0.35);
  margin-bottom: 1.5rem;
}
.view-card h3 {
  font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600;
  color: white; margin-bottom: 0.65rem;
}
.view-card p { font-size: 0.875rem; line-height: 1.75; color: rgba(255,255,255,0.48); }
.view-card__badge {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(200,165,110,0.2); color: var(--gold);
  padding: 0.2rem 0.6rem; border-radius: 3px;
}

/* ── Origin hero card — spans full width, 2-col internal layout ── */
.view-card--origin {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: center;
  border-color: rgba(200,165,110,0.35);
  background: linear-gradient(120deg, rgba(200,165,110,0.08) 0%, rgba(20,30,22,0.55) 100%);
  padding: 3rem;
  border-radius: 12px;
}
.view-card--origin:hover {
  border-color: rgba(200,165,110,0.55);
  background: linear-gradient(120deg, rgba(200,165,110,0.11) 0%, rgba(20,30,22,0.65) 100%);
}

/* Left column: label + icon + heading */
.view-card__origin-left {
  display: flex; flex-direction: column; gap: 1.25rem;
}
.view-card__origin-left .view-card__icon {
  color: var(--gold); width: 52px; height: 52px; margin-bottom: 0;
}
.view-card__origin-left h3 {
  font-family: var(--font-serif); font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 700; line-height: 1.25; color: white; margin: 0;
}

/* Right column: description + vision + cta */
.view-card__origin-right {
  display: flex; flex-direction: column; gap: 1rem;
}
.view-card__origin-right p {
  font-size: 0.93rem; line-height: 1.8; color: rgba(255,255,255,0.6);
}
.view-card__origin-right em { color: var(--gold); font-style: italic; }

.view-card__origin-label {
  display: flex; align-items: center; gap: 0.5rem;
}
.view-card__origin-badge {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #1a1a0e;
  background: #c8a56e; padding: 0.15rem 0.5rem; border-radius: 99px;
}
.view-card__origin-sub {
  font-size: 0.72rem; color: rgba(200,165,110,0.55);
  letter-spacing: 0.04em;
}

.view-card__origin-vision {
  font-size: 0.82rem;
  color: rgba(200,165,110,0.5);
  font-style: italic;
  border-top: 1px solid rgba(200,165,110,0.15);
  padding-top: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

.view-card__origin-cta {
  align-self: flex-start;
  margin-top: 0.25rem;
  font-size: 0.85rem;
}

/* ─── Sources ─────────────────────────────────────────────────────────────── */
.sources {
  background: var(--dark-green);
  padding: 4rem 2rem; text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.sources__label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  margin-bottom: 1.75rem;
}
.sources__list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem;
  margin-bottom: 1rem;
}
.sources__list span {
  font-family: var(--font-serif); font-size: 1rem;
  color: rgba(255,255,255,0.45);
}
.sources__note { font-size: 0.8rem; color: rgba(255,255,255,0.25); }

/* ─── Pricing ─────────────────────────────────────────────────────────────── */
.pricing { background: var(--warm-white); padding: 8rem 2rem; }
.pricing__header { margin-bottom: 4rem; }
.pricing__label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green); margin-bottom: 1rem;
}
.pricing__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.2; color: var(--text);
}
.pricing__title em { font-style: italic; color: var(--green); }

.plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  max-width: 960px;
}
.plan {
  background: white; border: 1px solid var(--border);
  border-radius: 8px; padding: 2.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  position: relative;
}
.plan--featured {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), 0 12px 48px rgba(45,74,62,0.12);
}
.plan__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: white;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 0.25rem 0.9rem; border-radius: 20px; white-space: nowrap;
}
.plan__name { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.plan__price {
  font-family: var(--font-serif); font-size: 2.5rem;
  color: var(--text); line-height: 1; margin: 0.25rem 0;
}
.plan__price span { font-family: var(--font-sans); font-size: 0.9rem; color: var(--text-muted); }
.plan__desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.plan__features { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; margin-bottom: 1.5rem; }
.plan__features li {
  font-size: 0.875rem; padding-left: 1.25rem; position: relative;
  color: var(--text);
}
.plan__features li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--green); font-weight: 700; font-size: 0.8rem;
}
.pricing__story-report {
  margin-top: 2.5rem; font-size: 0.9rem; color: var(--text-muted);
}
.pricing__story-report strong { color: var(--text); }

/* ─── Final CTA ───────────────────────────────────────────────────────────── */
.cta-final {
  background: var(--dark-green);
  padding: 10rem 2rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(200,165,110,0.08) 0%, transparent 70%);
}
.cta-final__inner { position: relative; max-width: 700px; margin: 0 auto; }
.cta-final__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700; line-height: 1.25;
  color: white; margin-bottom: 2.5rem;
}
.cta-final__title em { font-style: italic; color: var(--gold); }
.cta-final__note { margin-top: 1.25rem; font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 4rem 2rem 2.5rem;
}
.footer__inner {
  max-width: 1160px; margin: 0 auto;
}
.footer__cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__brand { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__logo { font-family: var(--font-serif); font-size: 1.25rem; color: var(--gold); display: block; margin-bottom: 0.25rem; }
.footer__brand p { font-size: 0.82rem; color: rgba(255,255,255,0.6); line-height: 1.6; max-width: 280px; }
.footer__col-title {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  margin-bottom: 0.9rem;
}
.footer__col-links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__col-links a {
  font-size: 0.85rem; color: rgba(255,255,255,0.7);
  transition: color 0.2s; text-decoration: none;
}
.footer__col-links a:hover { color: rgba(255,255,255,0.95); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.footer__copy { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.footer__legal-links { display: flex; gap: 1.5rem; }
.footer__legal-links a { font-size: 0.75rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer__legal-links a:hover { color: rgba(255,255,255,0.85); }

/* ─── Legal pages (terms, privacy, disclaimer) ──────────────────────────── */
.legal-page {
  min-height: 100vh;
  background: var(--black);
  color: rgba(255,255,255,0.75);
}
.legal-nav {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 1.5rem;
}
.legal-nav__logo { font-family: var(--font-serif); font-size: 1.1rem; color: var(--gold); text-decoration: none; }
.legal-nav__back { font-size: 0.82rem; color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.2s; }
.legal-nav__back:hover { color: rgba(255,255,255,0.65); }
.legal-body {
  max-width: 760px; margin: 0 auto;
  padding: 4rem 2rem 6rem;
}
.legal-body h1 {
  font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700;
  color: white; margin-bottom: 0.5rem;
}
.legal-body .legal-date {
  font-size: 0.8rem; color: rgba(255,255,255,0.25); margin-bottom: 3rem;
}
.legal-body h2 {
  font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600;
  color: rgba(255,255,255,0.85); margin: 2.5rem 0 0.75rem;
}
.legal-body p { font-size: 0.9rem; line-height: 1.8; margin-bottom: 1rem; color: rgba(255,255,255,0.55); }
.legal-body ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal-body ul li { font-size: 0.9rem; line-height: 1.8; color: rgba(255,255,255,0.55); margin-bottom: 0.35rem; }
.legal-body a { color: var(--gold); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }

/* ─── Hero background image ───────────────────────────────────────────────── */
.hero__bg-image {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('https://genealogic.co/herordambw.jpg');
  background-size: cover;
  background-position: 60% center;
  opacity: 1;
  /* No filter needed - image is already B&W */
}
/* Left-side darkening scrim - keeps headline legible, fades out mid-image */
.hero__bg-image::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to right,  rgba(8,9,10,0.82) 0%, rgba(8,9,10,0.55) 38%, rgba(8,9,10,0.0) 70%),
    linear-gradient(to bottom, rgba(8,9,10,0.0)  0%, rgba(8,9,10,0.0)  55%, rgba(8,9,10,0.85) 100%);
}
/* Video: hidden until playing, starts grayscale to match B&W image */
.hero__bg-video {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% center;
  opacity: 0;
  filter: grayscale(1);
}

/* Step 1: crossfade from image to video (both B&W - seam is invisible) */
@keyframes videoFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Step 2: colour bleeds in after crossfade completes */
@keyframes colourBleed {
  0%   { filter: grayscale(1); }
  100% { filter: grayscale(0); }
}

.hero__bg-video.is-playing {
  animation: videoFadeIn 1.5s ease forwards;
}

.hero__bg-video.bring-colour {
  animation: colourBleed 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Loop fade: gentle dip before loop point */
.hero__bg-video.loop-fade {
  transition: opacity 1.2s ease;
  opacity: 0.1;
}

/* Canvas subtle overlay */
.hero__bg-video ~ .hero__canvas,
.hero__bg-image + .hero__canvas { position: absolute; inset: 0; z-index: 2; opacity: 0.18; mix-blend-mode: screen; }

/* ─── Video section ───────────────────────────────────────────────────────── */
.video-section {
  position: relative; overflow: hidden;
  min-height: 85vh;
  display: flex; align-items: center; justify-content: center;
  padding: 8rem 2rem;
}

.video-section__bg {
  position: absolute; inset: 0; z-index: 0;
}
.video-section__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Grayscale by default - you can partially remove it with a gradient mask */
  filter: grayscale(0.85) brightness(0.5) contrast(1.1);
}
/* Fallback dark bg when no video src is set */
.video-section__bg { background: var(--black); }
.video-section__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,9,10,0.5) 0%,
    rgba(8,9,10,0.2) 40%,
    rgba(8,9,10,0.6) 100%
  );
}
/* Grain on video section */
.video-section::before {
  content: '';
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
}

.video-section__content {
  position: relative; z-index: 3;
  text-align: center; max-width: 700px;
}
.video-section__label {
  font-family: var(--font-sans);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.5rem;
}
.video-section__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400; line-height: 1.2;
  color: white; margin-bottom: 1.75rem;
}
.video-section__title em { color: var(--gold); font-style: italic; }
.video-section__body {
  font-size: 1.05rem; line-height: 1.85;
  color: rgba(255,255,255,0.65);
  max-width: 560px; margin: 0 auto;
}

/* ─── Mobile menu ────────────────────────────────────────────────────────── */
.mobile-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
  opacity: 0; transition: opacity 0.25s;
}
.mobile-overlay.is-open { opacity: 1; }

.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(320px, 85vw);
  background: #08090a;
  border-left: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column;
  padding: 2rem 1.75rem;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.is-open { transform: translateX(0); }

.mobile-overlay { display: block; pointer-events: none; }
.mobile-overlay.is-open { pointer-events: auto; }

.mobile-menu__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: var(--gold);
  margin-bottom: 2.5rem;
}
.mobile-menu__nav {
  display: flex; flex-direction: column; gap: 0;
  flex: 1;
}
.mobile-menu__nav a {
  color: rgba(255,255,255,0.65);
  font-size: 1rem; padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.mobile-menu__nav a:hover { color: white; }
.mobile-menu__actions {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding-top: 2rem;
}
.mobile-menu__actions .btn { width: 100%; justify-content: center; }

/* Hamburger open state (becomes X) */
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .how__steps { grid-template-columns: 1fr; gap: 3rem; }
  .views__grid { grid-template-columns: 1fr; }
  .view-card--origin {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 2rem;
  }
  .plans { grid-template-columns: 1fr; max-width: 440px; }
  .split-demo__inner { grid-template-columns: 1fr; }
  .split-demo__divider { transform: rotate(90deg); }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .br-desktop { display: none; }
}

@media (max-width: 600px) {
  .hero__content { padding-top: 120px; }
  .hero__actions { flex-direction: row; flex-wrap: nowrap; gap: 0.75rem; }
  .hero__actions .btn { flex: 1; text-align: center; justify-content: center; padding-left: 0.5rem; padding-right: 0.5rem; font-size: 0.82rem; white-space: nowrap; }
  .question { padding: 5rem 1.5rem; }
  .how, .views, .pricing, .cta-final { padding: 5rem 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════════
   ERA PAGE  (/era/:slug)
   ═══════════════════════════════════════════════════════════════ */

.era-page {
  background: var(--paper);
  min-height: 100vh;
}

.era-page__main {
  max-width: 760px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

/* Loading dots */
.era-page__loading {
  display: flex;
  justify-content: center;
  padding: 6rem 0;
}
.era-page__loading-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.era-page__loading-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: era-bounce 1s ease-in-out infinite;
}
.era-page__loading-dots span:nth-child(2) { animation-delay: 0.15s; }
.era-page__loading-dots span:nth-child(3) { animation-delay: 0.30s; }
@keyframes era-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%           { transform: translateY(-5px); opacity: 1; }
}

/* Error state */
.era-page__error {
  text-align: center;
  padding: 6rem 2rem;
}
.era-page__error h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.era-page__error p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Breadcrumb */
.era-page__breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}
.era-page__breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.era-page__breadcrumb a:hover { color: var(--green); }
.era-page__breadcrumb span { opacity: 0.5; }

/* Hero */
.era-page__hero {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.era-page__badge-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.era-page__origin-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--gold);
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
}
.era-page__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.era-page__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 1rem;
}
.era-page__headline {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}
.era-page__location-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.era-page__location-place {
  font-weight: 600;
  color: var(--text);
}
.era-page__location-sep { opacity: 0.4; }

/* Content sections */
.era-page__sections {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.era-page__section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.era-page__section:last-child { border-bottom: none; }
.era-page__section-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.era-page__section-body {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

/* Ancestors CTA block */
.era-page__ancestors {
  margin: 3rem 0;
  background: var(--dark);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
}
.era-page__ancestors-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}
.era-page__ancestors-body {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 1.75rem;
}
.era-page__ancestors-cta {
  display: inline-block;
  font-size: 1rem;
  padding: 0.85rem 2rem;
}

/* Related eras */
.era-page__related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.era-page__related-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.era-page__related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.era-page__related-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  transition: all 0.15s;
}
.era-page__related-card:hover {
  border-color: var(--green);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.era-page__related-period {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.35rem;
}
.era-page__related-headline {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer bar on era page */
.era-page__footer-bar {
  margin-top: 0;
  padding: 1.5rem 2rem;
}

/* Era page responsive */
@media (max-width: 640px) {
  .era-page__main { padding: 5rem 1.25rem 3rem; }
  .era-page__related-grid { grid-template-columns: 1fr; }
  .era-page__ancestors { padding: 2rem 1.5rem; }
}
