/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  --parchment:    #F7F0E3;
  --cream:        #EFE8D5;
  --ink:          #1C1610;
  --ink-mid:      #3D3428;
  --ink-light:    #6B5C4A;
  --amber:        #B8732A;
  --amber-warm:   #D4956A;
  --sepia:        #8B6F47;
  --border:       rgba(28,22,16,0.12);
  --card-bg:      rgba(247,240,227,0.7);
  --serif-head:   'Playfair Display', Georgia, serif;
  --serif-body:   'Source Serif 4', Georgia, serif;
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;
  --radius:    6px;
}

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif-head); line-height: 1.15; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--parchment); }
::-webkit-scrollbar-thumb { background: var(--sepia); border-radius: 3px; }

/* ─── Site Header ───────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,240,227,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark {
  font-family: var(--serif-head);
  font-size: 1.25rem; font-weight: 600;
  letter-spacing: -0.01em;
}
.site-header nav { display: flex; gap: 2rem; }
.site-header nav a {
  font-size: 0.875rem;
  color: var(--ink-mid);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.site-header nav a:hover { color: var(--amber); }

/* ─── Section Primitives ─────────────────────────────────── */
.section-inner { max-width: 1200px; margin: 0 auto; padding: var(--space-xl) 2rem; }
.section-label {
  font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--sepia);
  margin-bottom: 1.25rem; font-weight: 600;
}
.section-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600; color: var(--ink);
  margin-bottom: 2.5rem;
  max-width: 680px;
}
.section-headline em { font-style: italic; color: var(--amber); }

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
  padding: 5rem 2rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 0%, rgba(184,115,42,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 0.8rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--amber);
  margin-bottom: 1.5rem; font-weight: 600;
}
.hero-headline {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700; line-height: 1.05;
  margin-bottom: 2rem;
}
.hero-headline em {
  font-style: italic; color: var(--amber);
  display: block;
}
.hero-lede {
  font-size: 1.125rem; color: var(--ink-mid);
  max-width: 500px; line-height: 1.75;
  margin-bottom: 3rem;
}
.hero-rule {
  width: 60px; height: 2px;
  background: var(--amber); margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex; gap: 2rem; align-items: center;
}
.stat-number {
  display: block; font-family: var(--serif-head);
  font-size: 1.5rem; font-weight: 700; color: var(--ink);
}
.stat-label {
  display: block; font-size: 0.8rem; color: var(--ink-light);
  max-width: 110px; margin-top: 0.25rem; line-height: 1.3;
}
.stat-sep {
  width: 1px; height: 40px; background: var(--border);
}

/* Archive Cards Column */
.hero-image-column {
  display: flex; flex-direction: column; gap: 1.25rem;
  position: relative; padding-top: 3rem;
}
.hero-image-column::before {
  content: '';
  position: absolute;
  inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 30%, rgba(184,115,42,0.07) 0%, transparent 70%);
}
.archive-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  position: relative;
  transition: transform 0.3s ease;
}
.archive-card:hover { transform: translateY(-3px); }
.card-1 { transform: rotate(-1deg); }
.card-2 { transform: rotate(0.8deg); margin-left: 1.5rem; }
.card-3 { transform: rotate(-0.6deg); }
.card-year {
  font-family: var(--serif-head); font-weight: 700;
  font-size: 0.75rem; letter-spacing: 0.08em;
  color: var(--amber); margin-bottom: 0.5rem;
}
.card-line {
  width: 30px; height: 1.5px; background: var(--sepia);
  margin-bottom: 0.75rem; opacity: 0.5;
}
.card-text {
  font-size: 0.875rem; line-height: 1.6;
  color: var(--ink-mid); font-style: italic;
  margin-bottom: 0.75rem;
}
.card-attribution {
  font-size: 0.7rem; color: var(--ink-light);
  letter-spacing: 0.02em;
}

/* ─── How It Works ──────────────────────────────────────── */
.how-it-works { background: var(--ink); color: var(--parchment); }
.how-it-works .section-label { color: var(--amber-warm); }
.how-it-works .section-headline { color: var(--parchment); }
.how-it-works .section-headline em { color: var(--amber-warm); }
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 3rem; margin-top: 3rem;
  position: relative;
}
.step { position: relative; }
.step-number {
  font-family: var(--serif-head); font-size: 4rem;
  font-weight: 700; line-height: 1;
  color: rgba(247,240,227,0.08);
  margin-bottom: 0.5rem;
}
.step-connector {
  width: 100%; height: 1px;
  background: linear-gradient(to right, var(--amber), rgba(184,115,42,0.2));
  margin-bottom: 1.5rem;
}
.step-connector-last { background: rgba(184,115,42,0.2); }
.step-title {
  font-size: 1.25rem; font-weight: 600;
  color: var(--parchment); margin-bottom: 0.75rem;
}
.step-body { font-size: 0.9rem; color: rgba(247,240,227,0.65); line-height: 1.7; }

/* ─── What You Preserve ──────────────────────────────────── */
.what-you-preserve {
  background: var(--cream);
  border-top: 1px solid var(--border);
}
.preserve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 3rem;
  margin-top: 3rem;
}
.preserve-item {}
.preserve-icon {
  width: 48px; height: 48px;
  background: rgba(184,115,42,0.1);
  border: 1px solid rgba(184,115,42,0.2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--amber); margin-bottom: 1rem;
}
.preserve-item h3 {
  font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem;
}
.preserve-item p { font-size: 0.875rem; color: var(--ink-mid); line-height: 1.65; }

/* ─── The Archive ───────────────────────────────────────── */
.the-archive {
  background: var(--parchment);
  border-top: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.archive-bg-shape {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,115,42,0.05) 0%, transparent 70%);
  top: -200px; right: -200px;
  pointer-events: none;
}
.archive-intro {
  font-size: 1.125rem; color: var(--ink-mid);
  max-width: 520px; margin-bottom: 4rem;
  font-style: italic;
}
.feature-pair {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
  margin-bottom: 5rem; padding-bottom: 5rem;
  border-bottom: 1px solid var(--border);
}
.feature-pair:last-child {
  border-bottom: none;
  margin-bottom: 0; padding-bottom: 0;
}
.feature-pair-reverse { direction: rtl; }
.feature-pair-reverse > * { direction: ltr; }
.feature-tag {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--amber); font-weight: 600; margin-bottom: 0.75rem;
}
.feature-headline { font-size: 1.75rem; font-weight: 600; margin-bottom: 1rem; }
.feature-body { color: var(--ink-mid); font-size: 0.9rem; line-height: 1.75; }

/* Voice visual */
.voice-visual {
  background: var(--ink);
  border-radius: 12px;
  padding: 2rem;
  display: flex; flex-direction: column; align-items: center;
  gap: 1.5rem;
}
.waveform {
  display: flex; align-items: center; gap: 3px;
  height: 64px;
}
.wave-bar {
  width: 3px; border-radius: 2px;
  background: var(--amber);
  animation: wave 1.2s ease-in-out infinite;
  opacity: 0.6;
}
.wave-bar:nth-child(odd) { animation-delay: 0.1s; }
.wave-bar-lg { height: 32px; opacity: 1; }
.wave-bar-xl { height: 48px; }
.wave-bar:nth-child(3n) { animation-delay: 0.25s; }
.wave-bar:nth-child(5n) { animation-delay: 0.05s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}
.voice-label {
  font-size: 0.8rem; color: rgba(247,240,227,0.5);
  font-style: italic; text-align: center;
}
.play-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--amber); color: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* Timeline visual */
.timeline-visual {
  padding: 1.5rem;
  position: relative;
}
.tl-line {
  position: absolute;
  left: 20px; top: 1.5rem; bottom: 1.5rem;
  width: 1px; background: var(--border);
}
.tl-item {
  display: flex; gap: 1.5rem; align-items: flex-start;
  margin-bottom: 2rem;
}
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); flex-shrink: 0;
  margin-top: 6px; position: relative; z-index: 1;
}
.tl-content { flex: 1; }
.tl-year {
  font-family: var(--serif-head); font-size: 0.75rem;
  font-weight: 700; color: var(--amber); letter-spacing: 0.06em;
}
.tl-snippet { font-size: 0.85rem; color: var(--ink-mid); font-style: italic; }

/* Security badge */
.security-badge {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex; gap: 1.5rem; align-items: center;
}
.lock-icon { color: var(--amber); flex-shrink: 0; }
.security-title {
  font-family: var(--serif-head); font-size: 1rem; font-weight: 600;
  margin-bottom: 0.25rem;
}
.security-sub { font-size: 0.8rem; color: var(--ink-light); line-height: 1.5; }

/* ─── Closing ────────────────────────────────────────────── */
.closing {
  background: var(--ink);
  padding: var(--space-xl) 2rem;
  text-align: center;
}
.closing-inner { max-width: 760px; margin: 0 auto; }

/* ─── Waitlist CTA ─────────────────────────────────────────── */
.waitlist-cta {
  background: rgba(247,240,227,0.04);
  border: 1px solid rgba(184,115,42,0.25);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}
.waitlist-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(184,115,42,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.waitlist-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
  font-weight: 600;
}
.waitlist-headline {
  font-family: var(--serif-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--parchment);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.waitlist-sub {
  font-size: 0.9rem;
  color: rgba(247,240,227,0.6);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.waitlist-form { max-width: 480px; margin: 0 auto; }
.waitlist-field-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}
.waitlist-field-row input {
  flex: 1;
  background: rgba(247,240,227,0.08);
  border: 1px solid rgba(247,240,227,0.15);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--parchment);
  font-family: var(--serif-body);
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
  min-width: 0;
}
.waitlist-field-row input::placeholder { color: rgba(247,240,227,0.35); }
.waitlist-field-row input:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(247,240,227,0.12);
}
.waitlist-btn {
  background: var(--amber);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-family: var(--serif-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.waitlist-btn:hover:not(:disabled) { background: #9e6222; }
.waitlist-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.waitlist-error {
  color: #f87171;
  font-size: 0.8rem;
  margin-top: 0.75rem;
  text-align: left;
}
.waitlist-confirmation {
  padding: 1.25rem;
  border: 1px solid rgba(184,115,42,0.3);
  border-radius: 8px;
  background: rgba(184,115,42,0.08);
}
.waitlist-confirm-text {
  color: var(--parchment);
  font-size: 1rem;
  font-style: italic;
}
.waitlist-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(184,115,42,0.3));
  margin: 0 auto 3rem;
}
.closing-rule {
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, transparent, var(--amber));
  margin: 0 auto 3rem;
}
.closing-divider {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(184,115,42,0.3));
  margin: 0 auto 3rem;
}
.closing-quote {
  font-family: var(--serif-head);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: italic; font-weight: 400;
  color: var(--parchment);
  line-height: 1.5;
  margin-bottom: 2.5rem;
  quotes: none;
}
.closing-attr { margin-bottom: 2.5rem; }
.closing-rule-short {
  width: 40px; height: 1px;
  background: rgba(184,115,42,0.4);
  margin: 0 auto 1rem;
}
.closing-attr p {
  font-size: 0.9rem; color: rgba(247,240,227,0.5);
  max-width: 460px; margin: 0 auto;
  line-height: 1.7;
}
.closing-vision {
  font-size: 1rem; color: rgba(247,240,227,0.75);
  line-height: 1.8;
  max-width: 560px; margin: 0 auto;
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: #16120B;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem;
}
.wordmark-footer { color: var(--parchment); }
.footer-tagline { font-size: 0.8rem; color: rgba(247,240,227,0.4); margin-top: 0.5rem; }
.footer-location { font-size: 0.75rem; color: rgba(247,240,227,0.3); margin-bottom: 0.25rem; }
.footer-copy { font-size: 0.7rem; color: rgba(247,240,227,0.2); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; }
  .hero-image-column { flex-direction: row; flex-wrap: wrap; padding-top: 0; }
  .card-1, .card-2, .card-3 { transform: none !important; margin-left: 0 !important; }
  .steps-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .preserve-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-pair { grid-template-columns: 1fr; gap: 2rem; }
  .feature-pair-reverse { direction: ltr; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
}

@media (max-width: 640px) {
  .section-inner { padding: 4rem 1.25rem; }
  .hero { padding: 3rem 1.25rem; }
  .preserve-grid { grid-template-columns: 1fr; }
  .site-header nav { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .card-2 { display: none; }
  .closing { padding: 4rem 1.25rem; }
}