/* =================================================================
   HUMANA · LANDING
   Editorial-noir × forensic.
   ================================================================= */

/* ============ TOKENS ============ */
:root {
  /* Colors (mirror humana_tokens.dart) */
  --bg: #121212;
  --bg-soft: #1A1A1A;
  --card: #1E1E1E;
  --surface: #2A2A2A;
  --gold: #D4AF37;
  --gold-soft: #F0E6C8;
  --ivory: #F5F2EB;
  --text-1: #FFFFFF;
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.50);
  --text-4: rgba(255, 255, 255, 0.30);
  --text-5: rgba(255, 255, 255, 0.18);
  --divider: rgba(255, 255, 255, 0.08);
  --divider-strong: rgba(255, 255, 255, 0.16);
  --error: #E05050;
  --success: #6BDD6B;

  /* Spacing (4-base) */
  --s-xxs: 4px;
  --s-xs: 8px;
  --s-sm: 12px;
  --s-md: 16px;
  --s-lg: 24px;
  --s-xl: 32px;
  --s-xxl: 48px;
  --s-xxxl: 64px;
  --s-mega: 120px;

  /* Type */
  --ff-display: "Fraunces", Georgia, serif;
  --ff-italic: "Cormorant Garamond", Georgia, serif;
  --ff-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --ff-body: "Fraunces", Georgia, serif;

  /* Layout */
  --max-w: 1280px;
  --max-w-text: 720px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ============ RESET ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02", "kern", "liga";
}

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--ff-body);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

::selection {
  background: var(--gold);
  color: var(--bg);
}

/* ============ GRAIN OVERLAY ============ */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--s-md) var(--gutter);
  background: linear-gradient(to bottom, rgba(18,18,18,0.95) 0%, rgba(18,18,18,0.6) 70%, transparent 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-lg);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-name {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.32em;
  color: var(--text-1);
  line-height: 1;
  padding-left: 2px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--s-xl);
}

.nav-link {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-3);
  transition: color 200ms ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text-1);
}

.nav-link--cta {
  color: var(--gold);
  padding: var(--s-xs) var(--s-md);
  border: 1px solid var(--gold);
  border-radius: 2px;
  transition: all 200ms ease;
}

.nav-link--cta:hover {
  background: var(--gold);
  color: var(--bg);
}

@media (max-width: 768px) {
  .header-nav { gap: var(--s-md); }
  .nav-link:not(.nav-link--cta) { display: none; }
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  padding: 140px var(--gutter) var(--s-xxxl);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  /* Subtle radial vignette */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(212,175,55,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto auto;
  gap: var(--s-lg) var(--s-xxl);
  position: relative;
  z-index: 2;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-meta--top { grid-column: 1; grid-row: 1; }
.hero-meta--top-right {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
  align-items: flex-end;
}

.hero-meta--bottom { grid-column: 1; grid-row: 4; }
.hero-meta--bottom-right {
  grid-column: 2;
  grid-row: 4;
  text-align: right;
  align-items: flex-end;
}

.meta-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--text-3);
}

.meta-value {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-2);
}

.hero-title {
  grid-column: 1 / -1;
  grid-row: 2;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(72px, 14vw, 220px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--text-1);
  margin: var(--s-xl) 0;
  font-feature-settings: "ss01", "kern", "liga", "dlig";
}

.hero-line-1 {
  display: block;
}

.hero-line-2 {
  display: block;
  font-family: var(--ff-italic);
  font-weight: 400;
  font-style: italic;
  font-size: 0.6em;
  color: var(--gold);
  letter-spacing: -0.02em;
  margin-left: 1.2em;
  margin-top: 0.05em;
  margin-bottom: 0.05em;
}

.hero-line-3 {
  display: block;
  text-align: right;
  margin-right: -0.02em;
}

.hero-manifesto {
  grid-column: 1 / 2;
  grid-row: 3;
  max-width: 460px;
}

.manifesto-lead {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
  margin-bottom: var(--s-md);
}

.manifesto-sub {
  font-family: var(--ff-italic);
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  color: var(--text-1);
  letter-spacing: -0.005em;
}

.hero-cta {
  grid-column: 2 / 3;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: var(--s-sm);
}

.cta-aside {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-3);
}

.hero-scroll {
  position: absolute;
  bottom: var(--s-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-sm);
  z-index: 2;
}

.scroll-label {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--text-4);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-4), transparent);
  position: relative;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--gold);
  animation: scroll-drop 2s ease-in-out infinite;
}

@keyframes scroll-drop {
  0% { transform: translateY(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

@media (max-width: 768px) {
  /* ============ HERO MOBILE ============ */
  .hero { padding: 100px var(--gutter) var(--s-xxxl); min-height: auto; }
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
    gap: var(--s-md);
  }
  .hero-meta--top { grid-row: 1; }
  .hero-meta--top-right {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
    align-items: flex-start;
  }
  .hero-title {
    grid-row: 3;
    font-size: clamp(64px, 17vw, 88px);
    margin: var(--s-lg) 0 var(--s-md);
    line-height: 0.92;
  }
  .hero-line-2 {
    margin-left: 0.3em;
    font-size: 0.55em;
  }
  .hero-line-3 {
    text-align: left;
    margin-right: 0;
  }
  .hero-manifesto {
    grid-column: 1;
    grid-row: 4;
    max-width: none;
  }
  .manifesto-lead { font-size: 16px; }
  .manifesto-sub { font-size: 17px; }
  .hero-cta {
    grid-column: 1;
    grid-row: 5;
    align-items: stretch;
    width: 100%;
  }
  .hero-cta .btn-primary {
    justify-content: space-between;
    width: 100%;
  }
  .hero-meta--bottom,
  .hero-meta--bottom-right {
    display: none;  /* Too much clutter at bottom mobile */
  }

  /* Hide hero-scroll indicator on mobile */
  .hero-scroll { display: none; }

  /* ============ HOW MOBILE ============ */
  .how-title { font-size: clamp(36px, 8vw, 48px); margin-bottom: var(--s-xl); }

  /* ============ SHOWCASE / PHONE MOBILE ============ */
  /* Reduce phone mockup so it fits inside the viewport */
  .phone {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 320 / 650;
    transform: none;  /* No tilt in mobile, cleaner */
  }
  .showcase:hover .phone { transform: none; }

  /* ============ CERTIFICATE MOBILE ============ */
  .cert-card {
    width: 100%;
    max-width: 340px;
    padding: 24px 22px;
    transform: rotate(-1deg);
  }
  .cert-row {
    grid-template-columns: 72px 1fr;
    gap: 10px;
  }
  .showcase--cert:hover .cert-card { transform: rotate(0) scale(1); }

  /* ============ WAITLIST MOBILE ============ */
  .waitlist-title { font-size: clamp(32px, 8vw, 44px); }
  .form-input { font-size: 18px; }

  /* ============ FOOTER MOBILE — fix the broken bottom area ============ */
  /* The form-privacy used to overlap into the footer due to grid spacing. */
  .form-privacy { padding-bottom: 0; margin-bottom: 0; }
  .form-status:empty { display: none; }

  /* Section padding consistency */
  .manifesto, .how, .showcase, .against {
    padding: var(--s-xxxl) var(--gutter);
  }
  .waitlist {
    padding: var(--s-xxxl) var(--gutter) var(--s-xl);
  }
  .site-footer {
    padding: var(--s-xl) var(--gutter) var(--s-lg);
  }
}

/* Even tighter for very small screens (iPhone SE etc) */
@media (max-width: 380px) {
  .header-inner { gap: var(--s-sm); }
  .brand-name { font-size: 12px; letter-spacing: 0.28em; }
  .hero-title { font-size: 44px; }
  .phone { max-width: 240px; }
}

/* ============ BUTTONS ============ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--s-md);
  padding: 18px 28px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  border-radius: 2px;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text-1);
  transform: translateY(100%);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary > * {
  position: relative;
  z-index: 1;
}

.btn-primary:hover::before {
  transform: translateY(0);
}

.btn-primary-arrow {
  transition: transform 250ms ease;
}

.btn-primary:hover .btn-primary-arrow {
  transform: translateX(4px);
}

/* ============ SECTION LABEL ============ */
.section-label {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  margin-bottom: var(--s-xxl);
}

.section-label-mark {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-3);
  padding: 4px 8px;
  border: 1px solid var(--divider-strong);
}

.section-label-text {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--text-2);
}

.section-label--gold .section-label-mark {
  color: var(--gold);
  border-color: var(--gold);
}

.section-label--gold .section-label-text {
  color: var(--gold);
}

/* ============ MANIFESTO ============ */
.manifesto {
  padding: var(--s-mega) var(--gutter);
  border-top: 1px solid var(--divider);
}

.manifesto-inner {
  max-width: var(--max-w-text);
  margin: 0 auto;
}

.manifesto-block {
  display: flex;
  flex-direction: column;
  gap: var(--s-xl);
}

.manifesto-paragraph {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
  color: var(--text-1);
  letter-spacing: -0.005em;
}

.manifesto-paragraph em {
  font-family: var(--ff-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0;
}

.manifesto-closer {
  font-family: var(--ff-italic);
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.25;
  color: var(--text-1);
  text-align: center;
  margin-top: var(--s-xxl);
  padding-top: var(--s-xxl);
  border-top: 1px solid var(--divider);
}

/* ============ HOW IT WORKS ============ */
.how {
  padding: var(--s-mega) var(--gutter);
  border-top: 1px solid var(--divider);
}

.how-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.how-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-mega);
  max-width: 900px;
}

.how-title em {
  font-family: var(--ff-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: -0.01em;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-xl);
}

@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; gap: var(--s-xxl); }
}

.how-step {
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
  padding: var(--s-xl);
  border: 1px solid var(--divider);
  background: linear-gradient(135deg, rgba(255,255,255,0.015) 0%, transparent 100%);
  transition: all 400ms ease;
  position: relative;
}

.how-step:hover {
  border-color: var(--divider-strong);
  background: linear-gradient(135deg, rgba(212,175,55,0.025) 0%, transparent 100%);
}

.how-step-number {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 72px;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.04em;
  margin-bottom: var(--s-md);
  font-feature-settings: "lnum", "tnum";
}

.how-step-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-1);
  margin-bottom: var(--s-xs);
}

.how-step-text {
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  flex: 1;
}

.how-step-meta {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-3);
  padding-top: var(--s-md);
  border-top: 1px solid var(--divider);
  margin-top: var(--s-md);
}

/* ============ SHOWCASE ============ */
.showcase {
  padding: var(--s-mega) var(--gutter);
  border-top: 1px solid var(--divider);
}

.showcase-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-mega);
  align-items: center;
}

.showcase-grid--reverse > :first-child { order: 1; }

@media (max-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: var(--s-xxl);
  }
  .showcase-grid--reverse > :first-child { order: 0; }
}

.showcase-text {
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
}

.showcase-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-1);
}

.showcase-title em {
  font-family: var(--ff-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.showcase-body {
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 480px;
}

.showcase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-xs);
  margin-top: var(--s-md);
}

.showcase-list li {
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: var(--s-md);
}

.list-bullet {
  color: var(--gold);
  font-size: 18px;
  line-height: 0;
}

.showcase-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

/* ============ PHONE MOCKUP ============ */
.phone {
  width: 320px;
  height: 650px;
  background: #0a0a0a;
  border-radius: 44px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 0 8px #1a1a1a,
    0 0 0 9px rgba(255, 255, 255, 0.04),
    0 40px 80px -20px rgba(0, 0, 0, 0.8),
    0 80px 120px -40px rgba(212, 175, 55, 0.12);
  position: relative;
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase:hover .phone {
  transform: rotateY(0deg) rotateX(0deg);
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  background: #000;
  border-radius: 14px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
}

/* ============ MOCK FEED ============ */
.mock-feed {
  padding: 60px 16px 20px;
  height: 100%;
  overflow: hidden;
}

.mock-feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 16px;
}

.mock-h-brand {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 22px;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.mock-h-icons {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.3em;
}

.mock-post {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-post-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8a6a4a, #d4af37);
  border: 1px solid var(--divider-strong);
}

.mock-post-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}

.mock-username {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.mock-loc {
  font-family: var(--ff-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.mock-loc-pin {
  color: var(--gold);
  font-size: 9px;
  line-height: 1;
}

.mock-loc-sep {
  color: var(--text-4);
}

.mock-loc-time {
  color: var(--text-3);
}

.mock-verified {
  font-size: 14px;
  color: var(--gold);
}

.mock-post-image {
  border-radius: 4px;
  overflow: hidden;
  background: #1a1a1a;
  aspect-ratio: 4 / 5;
}

.mock-post-image svg,
.mock-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mock-post-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 4px;
}

.mock-action-box {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--divider-strong);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-2);
  transition: all 200ms ease;
}

.mock-action-box svg {
  width: 16px;
  height: 16px;
}

.mock-action-box--gold {
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--gold);
}

.mock-action-box--right {
  margin-left: auto;
}

.mock-caption {
  font-family: var(--ff-italic);
  font-style: italic;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-1);
}

.mock-cert {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-top: 1px solid var(--divider);
  margin-top: 4px;
}

.mock-cert-mark {
  font-size: 10px;
  color: var(--gold);
}

.mock-cert-text {
  font-family: var(--ff-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-3);
}

/* ============ CERTIFICATE CARD ============ */
.cert-card {
  width: 360px;
  background: var(--ivory);
  color: var(--bg);
  padding: 32px 28px;
  border-radius: 4px;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 60px 100px -40px rgba(212, 175, 55, 0.2);
  position: relative;
  transform: rotate(-1.5deg);
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase--cert:hover .cert-card {
  transform: rotate(0deg) scale(1.02);
}

.cert-card::before {
  /* Subtle paper texture */
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.08;
  mix-blend-mode: multiply;
  pointer-events: none;
  border-radius: 4px;
}

.cert-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.cert-seal {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.cert-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cert-eyebrow {
  font-family: var(--ff-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: #666;
}

.cert-name {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--bg);
}

.cert-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.2), transparent);
  margin: 16px 0;
}

.cert-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cert-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: baseline;
}

.cert-row--hash {
  align-items: flex-start;
  margin-top: 4px;
}

.cert-key {
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #888;
}

.cert-val {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--bg);
  word-break: break-all;
}

.cert-val--hash {
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.cert-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.cert-qr {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.cert-footer-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.cert-foot-lead {
  font-family: var(--ff-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: #888;
  text-transform: uppercase;
}

.cert-foot-url {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--bg);
  font-weight: 600;
  word-break: break-all;
}

.cert-foot-meta {
  font-family: var(--ff-italic);
  font-style: italic;
  font-size: 10px;
  color: #666;
  margin-top: 4px;
}

.cert-callout {
  margin-top: var(--s-md);
  padding: var(--s-md) var(--s-lg);
  border-left: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(212, 175, 55, 0.04);
}

.cert-callout-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 600;
}

.cert-callout-value {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--text-1);
  letter-spacing: 0.05em;
}

/* ============ AGAINST ============ */
.against {
  padding: var(--s-mega) var(--gutter);
  border-top: 1px solid var(--divider);
  background: linear-gradient(180deg, var(--bg) 0%, #0a0a0a 100%);
}

.against-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.against-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--divider);
}

@media (max-width: 700px) {
  .against-list { grid-template-columns: 1fr; }
}

.against-item {
  display: flex;
  align-items: center;
  gap: var(--s-lg);
  padding: var(--s-lg) var(--s-md);
  border-bottom: 1px solid var(--divider);
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--text-1);
  letter-spacing: -0.01em;
  transition: background 250ms ease;
}

.against-item:hover {
  background: rgba(224, 80, 80, 0.04);
}

.against-x {
  font-family: var(--ff-display);
  font-size: 1.4em;
  font-weight: 300;
  color: var(--error);
  width: 1em;
  text-align: center;
  line-height: 1;
}

/* ============ WAITLIST ============ */
.waitlist {
  padding: var(--s-mega) var(--gutter);
  border-top: 1px solid var(--divider);
  position: relative;
  overflow: hidden;
}

.waitlist::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.waitlist-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.waitlist-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-md);
}

.waitlist-title em {
  font-family: var(--ff-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.waitlist-sub {
  font-family: var(--ff-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  margin-bottom: var(--s-xxl);
  max-width: 540px;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-xl);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--s-xs);
}

.form-label {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--text-3);
}

.form-label-mark {
  color: var(--gold);
}

.form-input {
  width: 100%;
  padding: 16px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--divider-strong);
  color: var(--text-1);
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  transition: border-color 250ms ease;
}

.form-input:focus {
  border-bottom-color: var(--gold);
}

.form-input::placeholder {
  color: var(--text-4);
}

.form-field--check {
  margin-top: var(--s-md);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--s-md);
  cursor: pointer;
  padding: var(--s-lg);
  border: 1px solid var(--divider-strong);
  transition: all 250ms ease;
}

.form-check:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.03);
}

.form-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-check-box {
  width: 22px;
  height: 22px;
  border: 1px solid var(--divider-strong);
  border-radius: 2px;
  flex-shrink: 0;
  position: relative;
  transition: all 200ms ease;
  margin-top: 2px;
}

.form-check input:checked ~ .form-check-box {
  background: var(--gold);
  border-color: var(--gold);
}

.form-check input:checked ~ .form-check-box::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--bg);
  font-size: 14px;
  font-weight: 800;
}

.form-check-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-check-label {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.form-check-aside {
  font-family: var(--ff-body);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-3);
}

.btn-primary--form {
  align-self: flex-start;
  margin-top: var(--s-md);
}

.form-privacy {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--text-4);
  line-height: 1.5;
}

.form-status {
  margin-top: var(--s-md);
  padding: var(--s-md);
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  min-height: 0;
  transition: all 300ms ease;
}

.form-status.is-success {
  color: var(--success);
  border-left: 2px solid var(--success);
  padding-left: var(--s-md);
  background: rgba(107, 221, 107, 0.04);
}

.form-status.is-error {
  color: var(--error);
  border-left: 2px solid var(--error);
  padding-left: var(--s-md);
  background: rgba(224, 80, 80, 0.04);
}

/* ============ FOOTER ============ */
.site-footer {
  padding: var(--s-xxxl) var(--gutter) var(--s-xl);
  border-top: 1px solid var(--divider);
  background: #0a0a0a;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--s-xl);
  align-items: start;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--s-xl);
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--s-xs);
}

.footer-mark {
  display: inline-flex;
  width: 56px;
  height: 56px;
  margin-bottom: var(--s-xs);
}

.footer-mark svg {
  width: 100%;
  height: 100%;
}

.footer-tagline {
  font-family: var(--ff-italic);
  font-style: italic;
  font-size: 16px;
  color: var(--text-2);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: var(--s-xs);
}

.footer-meta-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: var(--s-sm);
  align-items: baseline;
}

.footer-meta-key {
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--text-3);
}

.footer-meta-val {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--text-2);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}

.footer-link {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-2);
  transition: color 200ms ease;
  width: fit-content;
}

.footer-link:hover {
  color: var(--gold);
}

.footer-sep { display: none; }

.footer-copyright {
  grid-column: 1 / -1;
  margin-top: var(--s-xxl);
  padding-top: var(--s-md);
  border-top: 1px solid var(--divider);
  display: flex;
  gap: var(--s-md);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-4);
}

/* ============ REVEAL ANIMATIONS ============ */
/* Progressive enhancement: content is visible by default.
   Only when JS adds .js-ready to <html>, the reveal animation kicks in. */
@media (prefers-reduced-motion: no-preference) {
  .js-ready .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 800ms ease, transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .js-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero entrance — defined in apple-polish section */

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =================================================================
   APPLE-LEVEL POLISH v2 — with real assets
   ================================================================= */

/* ============ FOUC PREVENTION ============ */
html.fonts-loading body { opacity: 0; }
html.fonts-loaded body {
  opacity: 1;
  transition: opacity 400ms ease;
}

/* ============ HERO EYEBROW ============ */
.hero-eyebrow {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: var(--s-md);
  margin-top: var(--s-md);
  opacity: 0;
  animation: eyebrow-fade 800ms ease 100ms forwards;
}

.eyebrow-line {
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--gold);
  animation: eyebrow-line-grow 1000ms cubic-bezier(0.16, 1, 0.3, 1) 200ms forwards;
}

.eyebrow-text {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}

@keyframes eyebrow-fade { to { opacity: 1; } }
@keyframes eyebrow-line-grow { to { width: 48px; } }

/* ============ HERO LETTER STAGGER ============ */
.hero-grid {
  grid-template-rows: auto auto auto auto auto;
}

.hero-title { grid-row: 3; display: block; }
.hero-manifesto { grid-row: 4; }
.hero-cta { grid-row: 4; }
.hero-meta--bottom { grid-row: 5; }
.hero-meta--bottom-right { grid-row: 5; }

.hero-line {
  display: block;
  overflow: hidden;
  padding-top: 0.12em;
  margin-top: -0.12em;
  padding-bottom: 0.28em;
  margin-bottom: -0.28em;
  padding-right: 0.1em;
  margin-right: -0.1em;
}

/* WORD container — keeps letters from breaking across lines */
.hero-title .word {
  display: inline-block;
  white-space: nowrap;
  margin-right: 0.18em; /* preserves space between words */
}

.hero-title .word:last-child {
  margin-right: 0;
}

/* DESKTOP: char-by-char rise animation */
.hero-title .char {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  will-change: transform, opacity;
  animation: char-rise 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes char-rise {
  0%   { transform: translateY(110%); opacity: 0; }
  50%  { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Stagger desktop chars by position in their line */
.hero-line-1 .char:nth-child(1)  { animation-delay: 400ms; }
.hero-line-1 .char:nth-child(2)  { animation-delay: 440ms; }
.hero-line-1 .char:nth-child(3)  { animation-delay: 480ms; }
.hero-line-1 .word:nth-child(2) .char:nth-child(1) { animation-delay: 540ms; }
.hero-line-1 .word:nth-child(2) .char:nth-child(2) { animation-delay: 580ms; }
.hero-line-1 .word:nth-child(2) .char:nth-child(3) { animation-delay: 620ms; }
.hero-line-1 .word:nth-child(2) .char:nth-child(4) { animation-delay: 660ms; }
.hero-line-1 .word:nth-child(2) .char:nth-child(5) { animation-delay: 700ms; }
.hero-line-1 .word:nth-child(2) .char:nth-child(6) { animation-delay: 740ms; }

.hero-line-2 .word:nth-child(1) .char:nth-child(1) { animation-delay: 880ms; }
.hero-line-2 .word:nth-child(1) .char:nth-child(2) { animation-delay: 920ms; }
.hero-line-2 .word:nth-child(2) .char:nth-child(1) { animation-delay: 980ms; }
.hero-line-2 .word:nth-child(2) .char:nth-child(2) { animation-delay: 1020ms; }
.hero-line-2 .word:nth-child(2) .char:nth-child(3) { animation-delay: 1060ms; }

.hero-line-3 .char:nth-child(1) { animation-delay: 1180ms; }
.hero-line-3 .char:nth-child(2) { animation-delay: 1220ms; }
.hero-line-3 .char:nth-child(3) { animation-delay: 1260ms; }
.hero-line-3 .char:nth-child(4) { animation-delay: 1300ms; }
.hero-line-3 .char:nth-child(5) { animation-delay: 1340ms; }

.hero-manifesto {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-rise-soft 800ms cubic-bezier(0.22, 1, 0.36, 1) 1500ms forwards;
}

.hero-cta {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-rise-soft 800ms cubic-bezier(0.22, 1, 0.36, 1) 1700ms forwards;
}

.hero-meta--top,
.hero-meta--top-right {
  opacity: 0;
  animation: hero-fade-soft 800ms ease 200ms forwards;
}

.hero-meta--bottom,
.hero-meta--bottom-right {
  opacity: 0;
  animation: hero-fade-soft 800ms ease 1900ms forwards;
}

@keyframes hero-rise-soft { to { opacity: 1; transform: translateY(0); } }
@keyframes hero-fade-soft { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .char-stagger > .char,
  .hero-manifesto, .hero-cta,
  .hero-meta--top, .hero-meta--top-right,
  .hero-meta--bottom, .hero-meta--bottom-right,
  .hero-eyebrow, .eyebrow-line {
    animation: none;
    opacity: 1;
    transform: none;
    width: 48px;
  }
}

/* ============ BUTTON ARROW SVG ============ */
.btn-primary-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary-arrow svg {
  width: 100%;
  height: 100%;
}

/* ============ HOW SECTION — STICKY ============ */
.how-sticky-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-mega);
  position: relative;
}

.how-sticky-left {
  position: sticky;
  /* Vertical-center the sticky block in the viewport.
     The flex centering on a 100vh min-height makes the inner content
     align to the middle while position:sticky tracks scroll. */
  top: 0;
  align-self: start;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s-xl) 0;
}

.how-sticky-right {
  display: flex;
  flex-direction: column;
  gap: 40vh;
  /* Top/bottom padding ~ 20vh so first card centers when section enters viewport,
     and last card centers when sticky reaches its end. */
  padding: 20vh 0;
}

.how-subtitle {
  font-family: var(--ff-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  margin-top: var(--s-lg);
  max-width: 420px;
}

.how-progress {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  margin-top: var(--s-xl);
}

.how-progress-dot {
  width: 32px;
  height: 1px;
  background: var(--divider-strong);
  display: inline-block;
  transition: all 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.how-progress-dot.is-active {
  background: var(--gold);
  width: 48px;
}

.how-step {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s-xxl);
  border: 1px solid var(--divider);
  background: linear-gradient(135deg, rgba(255,255,255,0.012) 0%, transparent 100%);
  border-radius: 2px;
  position: relative;
  opacity: 0.3;
  transform: scale(0.96);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 600ms ease;
}

.how-step.is-active {
  opacity: 1;
  transform: scale(1);
  border-color: var(--divider-strong);
  background: linear-gradient(135deg, rgba(212,175,55,0.035) 0%, transparent 100%);
}

.how-step.is-active .how-step-number {
  color: var(--gold);
}

.how-step.is-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
}

@media (max-width: 900px) {
  .how-sticky-container {
    grid-template-columns: 1fr;
    gap: var(--s-xl);
  }
  .how-sticky-left {
    position: static;
    min-height: 0;
    padding: 0 0 var(--s-xl);
  }
  .how-sticky-right {
    gap: var(--s-lg);
    padding: 0 0 var(--s-xxxl);
  }
  .how-step {
    min-height: auto;
    opacity: 1;
    transform: none;
    padding: var(--s-xl);
  }
}

/* ============ REAL MOMENTS SECTION ============ */
.moments {
  padding: var(--s-mega) var(--gutter);
  border-top: 1px solid var(--divider);
  position: relative;
}

.moments-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.moments-header {
  max-width: 720px;
  margin: 0 auto var(--s-mega);
  text-align: center;
}

.moments-header .section-label {
  justify-content: center;
}

.moments-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: var(--s-lg) 0 var(--s-md);
}

.moments-title em {
  font-family: var(--ff-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.moments-sub {
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto;
}

.moments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 360px);
  gap: var(--s-md);
}

.moment {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--card);
  cursor: default;
}

.moment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.moment:hover img {
  transform: scale(1.04);
}

.moment::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 400ms ease;
}

.moment:hover::after {
  opacity: 1;
}

.moment figcaption {
  position: absolute;
  bottom: var(--s-md);
  left: var(--s-md);
  right: var(--s-md);
  z-index: 2;
  pointer-events: none;
}

.moment-loc {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-1);
  text-transform: uppercase;
}

/* Masonry-ish: tall items span 2 rows */
.moment--tall {
  grid-row: span 2;
}

.moment--wide {
  grid-column: span 2;
}

/* Specific placement for visual balance */
.moments-grid .moment:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; } /* window — tall left */
.moments-grid .moment:nth-child(2) { grid-column: 2; grid-row: 1; }
.moments-grid .moment:nth-child(3) { grid-column: 3; grid-row: 1; }
.moments-grid .moment:nth-child(4) { grid-column: 4; grid-row: 1 / span 2; } /* bike-sunset → tall right too actually */
.moments-grid .moment:nth-child(5) { grid-column: 2; grid-row: 2; }
.moments-grid .moment:nth-child(6) { grid-column: 3; grid-row: 2; }

@media (max-width: 900px) {
  .moments-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 200px);
    gap: var(--s-sm);
  }
  .moments-grid .moment:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }
  .moment--tall, .moment--wide {
    grid-row: auto;
    grid-column: auto;
  }
}

/* ============ PHONE — CERT VARIANT ============ */
.phone--cert {
  /* The cert screenshot is a full screen, no extra padding inside */
}

.phone--cert .phone-screen {
  background: var(--bg);
}

.phone--cert .phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 36px;
}

/* ============ PHONE PARALLAX ============ */
.showcase-mockup { perspective: 1500px; }

.phone {
  transition: transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
  transform: rotateY(-6deg) rotateX(3deg) translateY(40px);
}

.phone.is-in-view {
  transform: rotateY(-2deg) rotateX(1deg) translateY(0);
}

.showcase:hover .phone {
  transform: rotateY(0deg) rotateX(0deg) translateY(-8px);
}

/* ============ NAV LINK HOVER UNDERLINE ============ */
.nav-link:not(.nav-link--cta) {
  position: relative;
  padding-bottom: 4px;
}

.nav-link:not(.nav-link--cta)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:not(.nav-link--cta):hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* ============ REVEAL ANIMATIONS ============ */
.section-label {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.section-label.in-view {
  opacity: 1;
  transform: translateY(0);
}

.manifesto-paragraph {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.manifesto-paragraph.in-view {
  opacity: 1;
  transform: translateY(0);
}

.manifesto-paragraph:nth-child(1).in-view { transition-delay: 0ms; }
.manifesto-paragraph:nth-child(2).in-view { transition-delay: 150ms; }
.manifesto-paragraph:nth-child(3).in-view { transition-delay: 300ms; }

.manifesto-closer {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms ease 400ms, transform 1100ms cubic-bezier(0.22, 1, 0.36, 1) 400ms;
}

.manifesto-closer.in-view {
  opacity: 1;
  transform: translateY(0);
}

.against-item {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
              background 250ms ease;
}

.against-item.in-view {
  opacity: 1;
  transform: translateX(0);
}

.against-list .against-item:nth-child(1).in-view { transition-delay: 0ms; }
.against-list .against-item:nth-child(2).in-view { transition-delay: 60ms; }
.against-list .against-item:nth-child(3).in-view { transition-delay: 120ms; }
.against-list .against-item:nth-child(4).in-view { transition-delay: 180ms; }
.against-list .against-item:nth-child(5).in-view { transition-delay: 240ms; }
.against-list .against-item:nth-child(6).in-view { transition-delay: 300ms; }
.against-list .against-item:nth-child(7).in-view { transition-delay: 360ms; }
.against-list .against-item:nth-child(8).in-view { transition-delay: 420ms; }

/* Moment reveals */
.moment {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.moment.in-view {
  opacity: 1;
  transform: translateY(0);
}

.moments-grid .moment:nth-child(1).in-view { transition-delay: 0ms; }
.moments-grid .moment:nth-child(2).in-view { transition-delay: 100ms; }
.moments-grid .moment:nth-child(3).in-view { transition-delay: 200ms; }
.moments-grid .moment:nth-child(4).in-view { transition-delay: 300ms; }
.moments-grid .moment:nth-child(5).in-view { transition-delay: 400ms; }
.moments-grid .moment:nth-child(6).in-view { transition-delay: 500ms; }

/* ============ FORM FIELD POLISH ============ */
.form-field { position: relative; }

.form-field::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 500ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.form-field:focus-within::after {
  width: 100%;
}

/* ============ BACKGROUND GRADIENT ============ */
body {
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212,175,55,0.03) 0%, transparent 60%),
              var(--bg);
  background-attachment: fixed;
}

/* ============ HEADER SCROLL STATE ============ */
.site-header {
  transition: backdrop-filter 400ms ease, background 400ms ease;
}

.site-header.is-scrolled {
  background: rgba(18,18,18,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* ============ SCROLL INDICATOR ============ */
.hero-scroll {
  opacity: 0;
  animation: hero-fade-soft 800ms ease 2300ms forwards;
}

/* ============ AGAINST HOVER REFINEMENT ============ */
.against-item {
  cursor: default;
  position: relative;
  overflow: hidden;
}

.against-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--error);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.against-item:hover::before {
  transform: scaleY(1);
}

/* ============ TYPOGRAPHY REFINEMENT ============ */
.hero-title {
  font-feature-settings: "ss01", "kern", "liga", "dlig", "swsh", "calt";
}

@media (min-width: 1400px) {
  .hero-title {
    letter-spacing: -0.045em;
  }
}

/* ============ MOBILE FIXES ============ */
@media (max-width: 768px) {
  /* Mobile hero grid */
  .hero-grid {
    grid-template-rows: auto auto auto auto auto auto !important;
  }
  .hero-meta--top { grid-row: 1; }
  .hero-meta--top-right { grid-row: 2; }
  .hero-eyebrow {
    grid-row: 3;
    margin-top: var(--s-md);
    margin-bottom: var(--s-xs);
  }
  .hero-title { grid-row: 4; }
  .hero-manifesto { grid-row: 5; }
  .hero-cta { grid-row: 6; }
  .hero-meta--bottom,
  .hero-meta--bottom-right {
    display: none !important;
  }
  .hero { padding-bottom: var(--s-xxl); }

  /* Mobile: simpler phone (no parallax) */
  .phone {
    transform: none !important;
  }
  .phone.is-in-view {
    transform: none !important;
  }

  /* Moments header on mobile */
  .moments-title {
    font-size: clamp(32px, 9vw, 44px);
  }
  .moments {
    padding: var(--s-xxxl) var(--gutter);
  }
}

/* ============ END APPLE POLISH v2 ============ */

/* =================================================================
   MOBILE OVERRIDES — Apple polish v2 mobile pass (24 may)
   ================================================================= */

@media (max-width: 768px) {
  /* ===== HERO GRID FIX ===== */
  /* Force grid to single column. Override desktop's 2-column. */
  .hero-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto auto auto auto !important;
    gap: var(--s-md);
  }

  .hero-meta--top { grid-column: 1; grid-row: 1; }
  .hero-meta--top-right {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
    align-items: flex-start;
  }
  .hero-eyebrow {
    grid-column: 1;
    grid-row: 3;
    margin-top: var(--s-md);
    margin-bottom: var(--s-xs);
  }
  .hero-title {
    grid-column: 1;
    grid-row: 4;
    font-size: clamp(64px, 17vw, 88px) !important;
    margin: var(--s-md) 0 var(--s-lg) !important;
    line-height: 0.95 !important;
  }
  .hero-manifesto {
    grid-column: 1 !important;
    grid-row: 5;
    max-width: none !important;
    width: 100%;
  }
  .hero-cta {
    grid-column: 1 !important;
    grid-row: 6;
    width: 100%;
    align-items: stretch !important;
  }
  .hero-cta .btn-primary {
    justify-content: space-between;
    width: 100%;
  }
  .hero-meta--bottom,
  .hero-meta--bottom-right {
    display: none !important;
  }

  /* ===== HERO TITLE: WORD-BY-WORD MOBILE ANIMATION ===== */
  /* Words enter as blocks, not letter-by-letter. Avoids word-break bugs. */
  .hero-title .char {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    display: inline; /* let inline flow handle layout */
  }

  .hero-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: word-rise 800ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    margin-right: 0.22em;
  }

  @keyframes word-rise {
    to { opacity: 1; transform: translateY(0); }
  }

  /* Stagger words */
  .hero-line-1 .word:nth-child(1) { animation-delay: 300ms; }
  .hero-line-1 .word:nth-child(2) { animation-delay: 420ms; }
  .hero-line-2 .word:nth-child(1) { animation-delay: 580ms; }
  .hero-line-2 .word:nth-child(2) { animation-delay: 700ms; }
  .hero-line-3 .word:nth-child(1) { animation-delay: 860ms; }

  /* Hero-line overflow needs to be visible so words can be transformed */
  .hero-line {
    overflow: visible;
  }

  /* ===== HERO MANIFESTO + CTA ===== */
  .manifesto-lead {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }
  .manifesto-sub {
    font-size: 17px !important;
    line-height: 1.5 !important;
  }

  .hero-manifesto {
    animation-delay: 1100ms;
  }
  .hero-cta {
    animation-delay: 1300ms;
  }

  /* ===== HERO HEIGHT ===== */
  .hero {
    min-height: auto;
    padding: 100px var(--gutter) var(--s-xxl);
  }

  .hero-scroll {
    display: none;
  }

  /* ===== PHONE MOBILE ===== */
  .phone {
    transform: none !important;
    margin: 0 auto;
  }
  .phone.is-in-view {
    transform: none !important;
  }

  /* ===== METHOD MOBILE — KEEP IT CLEAN ===== */
  /* Use the desktop sticky disabled in the existing media query — that's fine */
  .how-step {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .how-step.in-view {
    opacity: 1;
    transform: translateY(0);
  }

  /* ===== CERTIFICATE MOBILE ===== */
  .cert-card {
    width: calc(100% - 16px);
    max-width: 360px;
    padding: 20px 18px;
    margin: 0 auto;
    transform: rotate(-1deg);
  }
  .cert-card.is-in-view {
    transform: rotate(-1deg);
  }
  .cert-row {
    grid-template-columns: 70px 1fr;
    gap: 8px;
    font-size: 11px;
  }
  .cert-key, .cert-val {
    font-size: 10px;
  }
  .cert-val--hash {
    font-size: 9px;
    line-height: 1.4;
  }
  .cert-name {
    font-size: 18px;
  }

  /* ===== AGAINST / WAITLIST MOBILE TIGHTER ===== */
  .against, .waitlist {
    padding: var(--s-xxxl) var(--gutter);
  }
  .waitlist-title {
    font-size: clamp(32px, 9vw, 44px) !important;
    line-height: 1.05 !important;
  }

  /* ===== FORM ===== */
  .form-input {
    font-size: 18px;
  }
  .form-privacy {
    padding-bottom: 0;
    margin-bottom: 0;
  }
}

/* iPhone SE / very narrow */
@media (max-width: 380px) {
  .hero-title {
    font-size: clamp(42px, 12vw, 56px) !important;
  }
  .header-inner { gap: var(--s-sm); }
  .brand-name { font-size: 12px !important; letter-spacing: 0.26em !important; }
  .moments-title,
  .waitlist-title,
  .showcase-title,
  .how-title {
    font-size: clamp(30px, 9vw, 40px) !important;
  }
}

/* Add how-step to reveal observer targets (visible by default if no JS) */
.no-js .how-step {
  opacity: 1;
  transform: none;
}

/* =================================================================
   MOBILE FIX v10 — word-by-word reveal + manifesto layout + extra
   animations. This block is appended last so it overrides everything.
   ================================================================= */

@media (max-width: 768px) {

  /* ============ HERO TITLE — word-by-word, no char break ============ */
  /* Reset chars: no individual letter animation in mobile */
  .hero-title .char {
    display: inline !important;
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
  }

  /* Words become the animation unit */
  .hero-title .word {
    display: inline-block !important;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
    animation: word-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    margin-right: 0.22em;
  }

  /* Stagger by word — fast, premium feel */
  .hero-line-1 .word:nth-child(1) { animation-delay: 200ms; }
  .hero-line-1 .word:nth-child(2) { animation-delay: 340ms; }
  .hero-line-2 em .word:nth-child(1) { animation-delay: 520ms; }
  .hero-line-2 em .word:nth-child(2) { animation-delay: 620ms; }
  .hero-line-3 .word:nth-child(1) { animation-delay: 780ms; }

  @keyframes word-rise {
    to { opacity: 1; transform: translateY(0); }
  }

  /* Disable char-rise on mobile entirely */
  @keyframes char-rise-mobile-noop {
    from, to { transform: none; opacity: 1; }
  }

  /* ============ HERO MANIFESTO — full width, not column ============ */
  /* The bug screenshot showed it stuck in a narrow column.
     Force full width and proper paragraph flow. */
  .hero-manifesto {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
  }

  .manifesto-lead,
  .manifesto-sub {
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
  }

  /* Manifesto entrance: subtle fade-rise (instead of char-by-char dependency) */
  .manifesto-lead {
    opacity: 0;
    transform: translateY(24px);
    animation: manifesto-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) 1100ms forwards;
  }

  .manifesto-sub {
    opacity: 0;
    transform: translateY(24px);
    animation: manifesto-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) 1250ms forwards;
  }

  @keyframes manifesto-rise {
    to { opacity: 1; transform: translateY(0); }
  }

  /* CTA also rises */
  .hero-cta {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    opacity: 0;
    transform: translateY(24px);
    animation: manifesto-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) 1400ms forwards;
  }

  /* ============ METHOD CARDS — slide-in from right ============ */
  /* In mobile the sticky scrollytelling is disabled, so cards just stack.
     Give them a subtle entrance animation when scrolled into view. */
  .how-step {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .how-step.is-active,
  .how-step.in-view {
    opacity: 1;
    transform: translateX(0);
  }

  /* ============ FEED MOCKUP — subtle parallax on scroll ============ */
  /* The phone receives a slight tilt-and-rise when entering viewport */
  .showcase--feed .phone {
    transition: transform 1000ms cubic-bezier(0.22, 1, 0.36, 1),
                opacity 800ms ease;
    transform: translateY(30px) rotateZ(-1deg);
    opacity: 0.85;
  }

  .showcase--feed .phone.is-in-view {
    transform: translateY(0) rotateZ(0deg);
    opacity: 1;
  }

  /* ============ CERT CARD — gentle rise ============ */
  .cert-card {
    transition: transform 1000ms cubic-bezier(0.22, 1, 0.36, 1),
                opacity 800ms ease;
    transform: translateY(30px) rotate(-2deg);
    opacity: 0.85;
  }

  .cert-card.is-in-view {
    transform: translateY(0) rotate(-1deg);
    opacity: 1;
  }

  /* ============ AGAINST ITEMS — gold line growth on view ============ */
  /* Already exists, but tighten timing for mobile */
  .against-item.in-view {
    transition-duration: 500ms;
  }

  /* ============ SCROLL HINT — make scroll feel smoother on iOS ============ */
  html {
    -webkit-overflow-scrolling: touch;
  }

  /* Reduce motion respect */
  @media (prefers-reduced-motion: reduce) {
    .hero-title .word,
    .manifesto-lead,
    .manifesto-sub,
    .hero-cta,
    .how-step,
    .showcase--feed .phone,
    .cert-card {
      animation: none !important;
      transition: none !important;
      opacity: 1 !important;
      transform: none !important;
    }
  }
}

/* Even tighter for very small screens (iPhone SE: 320px effective) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 44px !important;
  }
  .hero-title .word {
    margin-right: 0.15em;
  }
}

/* =============== END MOBILE FIX v10 =============== */

/* Tighten mobile hero "of the" line */
@media (max-width: 768px) {
  .hero-title .hero-line-2 {
    margin-left: 0.5em;
    font-size: 0.7em;
  }
  .hero-title .hero-line-2 em {
    font-style: italic;
  }
}

/* =================================================================
   ROUND 30.2 — Hero mobile polish (26 may 2026)
   ================================================================= */

@media (max-width: 768px) {

  /* Cambio 2: ocultar elementos editoriales que saturan el hero mobile */
  .hero-meta--top,
  .hero-meta--top-right,
  .hero-eyebrow {
    display: none !important;
  }

  /* Cambio 3: colapsar a 3 filas reales, eliminar tracks huérfanos y gaps muertos */
  .hero-grid {
    grid-template-rows: auto auto auto !important;
    gap: var(--s-lg) !important; /* 24px entre secciones */
  }

  .hero-title     { grid-row: 1 !important; margin: 0 0 var(--s-sm) !important; }
  .hero-manifesto { grid-row: 2 !important; }
  .hero-cta       { grid-row: 3 !important; }

  /* Reducir top padding: header fijo ~64px + 16px breathing = 80px */
  .hero {
    padding-top: 80px !important;
  }

}

/* =============== END ROUND 30.2 =============== */

/* =================================================================
   ROUND 30.4 — Mobile premium polish (26 may 2026)
   ================================================================= */

@media (max-width: 768px) {

  /* ===== HERO: full-viewport layout, CTA anchored at bottom ===== */

  /* Hero fills the full viewport as a flex column */
  .hero {
    min-height: 100svh !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 80px var(--gutter) var(--s-xl) !important;
  }

  /* Grid becomes a flex item that fills remaining height.
     4-row layout: title / manifesto / spacer(1fr) / cta */
  .hero-grid {
    flex: 1 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto 1fr auto !important;
    gap: 0 !important;
  }

  .hero-title {
    grid-row: 1 !important;
    grid-column: 1 !important;
    font-size: clamp(64px, 17vw, 88px) !important;
    line-height: 0.95 !important;
    margin: 0 0 var(--s-xxl) !important;
  }

  .hero-manifesto {
    grid-row: 2 !important;
    grid-column: 1 !important;
    width: 100% !important;
    max-width: none !important;
  }

  /* Row 3 = 1fr spacer — no element, just breathing room */

  .hero-cta {
    grid-row: 4 !important;
    grid-column: 1 !important;
    width: 100% !important;
    align-items: stretch !important;
  }

  .hero-cta .btn-primary {
    justify-content: space-between;
    width: 100%;
  }

  /* ===== STATEMENT: Cormorant italic → JetBrains Mono label ===== */
  /* Desktop: Cormorant italic 19px (unchanged, no override here)  */
  /* Mobile:  JetBrains Mono uppercase, text-2, forensic register  */
  .hero-manifesto .manifesto-sub {
    font-family: var(--ff-mono) !important;
    font-style: normal !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.15em !important;
    color: var(--text-2) !important;
    line-height: 1.4 !important;
    margin-top: var(--s-md) !important;
  }

}

  /* source-order bug: desktop .how-title margin-bottom: var(--s-mega) (line 635)
     appears after this file's first mobile override (line 443) and wins the cascade.
     !important here ensures 32px applies on mobile. */
  .how-title {
    margin-bottom: var(--s-xl) !important;
  }

/* =============== END ROUND 30.4 =============== */
