/* ═══════════════════════════════════════════════════════════════════════════
 * COMPONENT PRIMITIVES — DO NOT OVERWRITE
 *
 * Base styles, animations, layout utilities, and component classes.
 * Theme tokens live in tokens.css (overwritten by generate_theme).
 * ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
 * DEFENSIVE ALIASES
 * Safety net — resolved by tokens.css if it defines the canonical names.
 * These ensure components work regardless of which naming convention
 * tokens.css uses (template placeholders vs generateTheme output).
 * ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Color aliases (component names → canonical names) */
  --color-text: var(--color-foreground);
  --color-text-secondary: var(--color-muted-foreground);
  --color-surface-elevated: color-mix(in oklch, var(--color-surface, oklch(0.97 0 0)), white 5%);
  --color-card: var(--color-surface-elevated);
  --color-card-foreground: var(--color-foreground);
  --color-accent: var(--color-primary);
  --color-accent-foreground: var(--color-primary-foreground);
  --color-warning: var(--color-cta);
  --color-primary-light: color-mix(in oklch, var(--color-primary) 60%, white);
  --color-primary-dark: color-mix(in oklch, var(--color-primary) 80%, black);

  /* Static tokens (theme-independent) */
  --shadow-xl: 0 20px 25px -5px oklch(0.2 0 0 / 0.1), 0 8px 10px -6px oklch(0.2 0 0 / 0.05);
  --duration-slower: 1s;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ═══════════════════════════════════════════════════════════════════════════
 * BASE STYLES
 * ═══════════════════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

::selection {
  background: var(--color-primary);
  color: white;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * ANIMATION KEYFRAMES
 * ═══════════════════════════════════════════════════════════════════════════ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes successRing {
  from { opacity: 0.6; transform: scale(0.8); }
  to { opacity: 0; transform: scale(1.6); }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * ANIMATION UTILITIES
 * Use these classes on elements for entrance animations
 * ═══════════════════════════════════════════════════════════════════════════ */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp var(--duration-slow) var(--ease-out) forwards;
}

.fade-in {
  opacity: 0;
  animation: fadeIn var(--duration-slow) var(--ease-out) forwards;
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  animation: slideInLeft var(--duration-slow) var(--ease-out) forwards;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  animation: slideInRight var(--duration-slow) var(--ease-out) forwards;
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  animation: scaleIn var(--duration-slow) var(--ease-spring) forwards;
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

.success-ring {
  animation: successRing 0.8s var(--ease-out) forwards;
}

/* Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* Hover Effects */
.hover-lift {
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.hover-scale {
  transition: transform var(--duration-normal) var(--ease-spring);
}
.hover-scale:hover {
  transform: scale(1.02);
}

/* ═══════════════════════════════════════════════════════════════════════════
 * LAYOUT UTILITIES
 * ═══════════════════════════════════════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 4rem; }
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .section { padding: 8rem 0; }
  .section-sm { padding: 4rem 0; }
}

.section-accent {
  background: var(--color-accent-bg);
  color: var(--color-accent-text);
}

.section-accent h1,
.section-accent h2,
.section-accent h3,
.section-accent h4 {
  color: var(--color-accent-text);
}

.section-overlay {
  color: white;
}

.section-overlay h1,
.section-overlay h2,
.section-overlay h3,
.section-overlay h4 {
  color: white;
}

.section-alt {
  background: var(--color-surface);
}

/* ═══════════════════════════════════════════════════════════════════════════
 * COMPONENT BASES
 * Minimal styles for common elements - extend as needed
 * ═══════════════════════════════════════════════════════════════════════════ */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.btn-primary {
  background: var(--color-cta);
  color: var(--color-cta-foreground);
  box-shadow: var(--shadow-cta-glow);
}

.btn-primary:hover {
  background: var(--color-cta-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* Inputs */
.input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-surface-elevated);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
}

.input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--color-primary) 10%, transparent);
}

.input::placeholder {
  color: var(--color-muted-foreground);
}

.input-accent {
  background: var(--color-accent-surface);
  border-color: var(--color-accent-border);
  color: var(--color-accent-text);
}

.input-accent:focus {
  border-color: var(--color-primary);
}

/* Cards */
.card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card-accent {
  background: var(--color-accent-surface);
  border-color: var(--color-accent-border);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

/* ═══════════════════════════════════════════════════════════════════════════
 * SPECIAL EFFECTS
 * ═══════════════════════════════════════════════════════════════════════════ */

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-cta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.noise-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.02;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════════════════════════════════════════
 * RESPONSIVE UTILITIES
 * ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * ACCESSIBILITY — REDUCED MOTION
 * ═══════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Design tokens — Mihira brand (docs/brand/tokens/brand.css) in OKLCH. Fonts load from index.html. */
:root {
  --font-heading: 'Jost', 'Jost Fallback', -apple-system, system-ui, sans-serif;
  --font-body: 'Jost', 'Jost Fallback', -apple-system, system-ui, sans-serif;

  /* Sun geometry: the brand's sun, ink and a warm paper. Three colours, used flat. */
  --color-paper: oklch(0.967 0.011 88);              /* #F7F4EC */
  --color-ink: oklch(0.218 0.004 286);               /* #1C1C1E */
  --color-ink-2: oklch(0.42 0.012 286);              /* #4A4A52 */
  --color-sun: oklch(0.842 0.128 88);                /* #EBC65C */
  --color-sun-on-dark: oklch(0.871 0.113 91.1);      /* #F0D27A */

  --color-background: var(--color-paper);
  --color-foreground: var(--color-ink);
  --color-text: var(--color-ink);
  --color-surface: var(--color-paper);
  --color-surface-elevated: oklch(1 0 0);
  --color-card: oklch(1 0 0);
  --color-card-foreground: var(--color-ink);
  --color-muted: oklch(0.93 0.012 88);
  --color-muted-foreground: var(--color-ink-2);      /* 8.6:1 on paper */

  --color-primary: var(--color-ink);
  --color-primary-foreground: var(--color-paper);
  --color-primary-light: var(--color-ink-2);
  --color-primary-dark: var(--color-ink);

  --color-cta: var(--color-ink);
  --color-cta-hover: oklch(0.32 0.006 286);
  --color-cta-foreground: var(--color-paper);

  --color-accent: var(--color-sun);
  --color-accent-foreground: var(--color-ink);
  --color-border: var(--color-ink);

  --color-success: oklch(0.55 0.13 155);
  --color-success-foreground: var(--color-paper);
  --color-warning: var(--color-sun);
  --color-error: oklch(0.55 0.19 28);

  --color-accent-bg: var(--color-ink);
  --color-accent-text: oklch(0.971 0.003 286.4);
  --color-accent-muted: oklch(0.88 0.008 286);
  --color-accent-surface: oklch(0.28 0.006 286);
  --color-accent-border: oklch(0.3 0.02 275);
  --color-sun-on-dark: oklch(0.871 0.113 91.1);

  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.6s;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);       /* strong ease-out (Emil Kowalski) */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);   /* on-screen movement */

  --space-xs: 0.25rem; --space-sm: 0.5rem; --space-md: 1rem; --space-lg: 2rem;
  --space-xl: 4rem; --space-2xl: 6rem; --space-3xl: 8rem;
  --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem; --radius-xl: 1rem; --radius-full: 9999px;

  --shadow-sm: 0 0 0 1px oklch(0 0 0 / 0.06), 0 1px 2px -1px oklch(0 0 0 / 0.06), 0 2px 4px 0 oklch(0 0 0 / 0.04);
  --shadow-md: 0 0 0 1px oklch(0 0 0 / 0.08), 0 1px 2px -1px oklch(0 0 0 / 0.08), 0 2px 4px 0 oklch(0 0 0 / 0.06);
  --shadow-lg: 0 0 0 1px oklch(0 0 0 / 0.06), 0 8px 16px -4px oklch(0 0 0 / 0.08), 0 24px 48px -12px oklch(0 0 0 / 0.1);
  --shadow-xl: 0 40px 80px -24px oklch(0 0 0 / 0.7);
  --shadow-glow: 0 0 0 1px var(--color-border), var(--shadow-lg);
  --shadow-cta-glow: none;
}

/* Sun geometry (docs/designs/mihira-v0.25-site/SG.html). Flat posters from the logo's sun disc and crescent.
   Sun-gold, ink and paper only; Jost set large and tight. Motion is transform/opacity, plays once. */
:root {
  --ink: var(--color-ink);
  --ink-2: var(--color-ink-2);
  --sun: var(--color-sun);
  --sun-d: var(--color-sun-on-dark);
  --paper: var(--color-paper);
  --on-ink: oklch(0.971 0.003 286.4);
  --ease: cubic-bezier(.16, .84, .24, 1);
  --pad: clamp(20px, 4.4vw, 64px);
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); overflow-x: clip; -webkit-font-smoothing: antialiased; line-height: 1.5; }
h1, h2, h3 { color: inherit; font-weight: 600; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.label { font-size: clamp(13px, 1.05vw, 15px); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; }
.kicker { margin-bottom: clamp(16px, 1.8vw, 26px); }

/* Top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; position: relative; z-index: 3; }
.topbar img { height: 30px; width: auto; }
.topbar nav { display: flex; gap: clamp(16px, 2.4vw, 36px); font-size: 16px; font-weight: 500; }
.topbar nav a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .25s var(--ease); }
@media (hover: hover) { .topbar nav a:hover { background-size: 100% 2px; } }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: min(980px, 100svh); padding-bottom: clamp(48px, 6vw, 88px); }
.disc { position: absolute; width: min(62vw, 860px); aspect-ratio: 1; border-radius: 50%; background: var(--sun); right: -9vw; top: clamp(70px, 7vw, 110px); }
.hero-copy { position: relative; z-index: 2; padding-top: clamp(110px, 13vw, 200px); }
.hero h1 { font-size: clamp(52px, 9.4vw, 150px); line-height: .88; letter-spacing: -.045em; max-width: 9.6em; }
.hero h1 .l { display: block; }
.hero-sub { display: grid; grid-template-columns: minmax(0, 34rem); gap: 26px; margin-top: clamp(32px, 4vw, 56px); }
.hero-sub > p:first-child { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.42; font-weight: 420; max-width: 30em; }
.cities { color: var(--ink-2); }

/* App Store badge: Apple's artwork, never altered */
.store { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.store img { width: 150px; height: auto; }
.store-lg img { width: 180px; }
.store-link { display: inline-block; border-radius: 10px; transition: transform .16s var(--ease); }
a.store-link:active { transform: scale(.97); }
.fine { font-size: 15px; font-weight: 500; }

/* Section heads */
.sec-head { border-top: 6px solid var(--ink); padding-top: clamp(24px, 3vw, 40px); margin-bottom: clamp(36px, 5vw, 72px); }
.sec-head h2, .rule-head h2 { font-size: clamp(34px, 4.6vw, 72px); line-height: .95; letter-spacing: -.035em; max-width: 14em; }

/* Four skies */
.skies { padding: clamp(72px, 9vw, 140px) 0 clamp(64px, 8vw, 120px); scroll-margin-top: 16px; }
.rule-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 64px); align-items: end; border-top: 6px solid var(--ink); padding-top: clamp(24px, 3vw, 40px); }
.eighth { font-weight: 600; font-size: clamp(120px, 19vw, 300px); line-height: .74; letter-spacing: -.06em; display: flex; align-items: flex-start; }
.eighth sup, .eighth sub { font-size: .5em; line-height: 1; vertical-align: baseline; }
.eighth sub { align-self: flex-end; }
.eighth span { font-weight: 300; margin: 0 -.04em; }
.rule-head p { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.45; margin-top: 18px; max-width: 34em; }
.skies-date { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(48px, 6vw, 88px); }
.grid4 { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); margin-top: 14px; }
.sky { padding: clamp(24px, 2.6vw, 40px) clamp(0px, 2vw, 32px) clamp(28px, 3vw, 44px) 0; border-bottom: 2px solid var(--ink); min-width: 0; }
.sky:nth-child(2n) { border-left: 2px solid var(--ink); padding-left: clamp(20px, 2.6vw, 40px); padding-right: 0; }
.sky-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sky h3 { font-size: clamp(34px, 3.6vw, 56px); letter-spacing: -.035em; line-height: 1; }
.len { font-size: 15px; font-weight: 500; }
.len b { font-weight: 600; }
.sky-svg { display: block; width: 100%; height: auto; margin-top: clamp(10px, 1.4vw, 22px); overflow: visible; }
.sky-svg .w { fill: var(--sun); stroke: var(--paper); stroke-width: 4; stroke-linejoin: round; }
.sky-svg .wr { fill: var(--ink); stroke: var(--paper); stroke-width: 4; stroke-linejoin: round; }
.sky-svg .horizon { stroke: var(--ink); stroke-width: 3; }
.sky-svg .tick { stroke: var(--ink); stroke-width: 2; }
.sky-svg .bar { fill: var(--ink); }
.sky-svg .end { fill: var(--paper); stroke: var(--ink); stroke-width: 4; }
.sky-svg text { font-family: var(--font-body); font-size: 27px; font-weight: 500; fill: var(--ink-2); }
.sky-cap { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px 20px; flex-wrap: wrap; margin-top: 6px; }
.rk { display: flex; flex-direction: column; }
.rk-t { font-weight: 600; font-size: clamp(36px, 3.9vw, 60px); letter-spacing: -.04em; line-height: 1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.sun-times { display: flex; flex-direction: column; align-items: flex-end; font-size: 16px; line-height: 1.45; font-weight: 500; text-align: right; }
.legend { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 28px; font-size: 16px; align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 10px; }
.legend i { display: inline-block; width: 22px; height: 11px; border-radius: 22px 22px 0 0; background: var(--sun); }
.legend i.k { background: var(--ink); width: 14px; height: 14px; border-radius: 0; clip-path: polygon(0 100%, 100% 100%, 100% 0); }
.legend i.b { background: var(--ink); width: 28px; height: 8px; border-radius: 0; }

/* Today: ink poster, a half sun rising behind the phone */
.feature { background: var(--ink); color: var(--on-ink); overflow: hidden; }
.feature .wrap { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: clamp(32px, 5vw, 80px); align-items: end; padding-top: clamp(64px, 7vw, 110px); }
.f-copy { padding-bottom: clamp(64px, 9vw, 140px); }
.f-copy .kicker { color: var(--sun-d); }
.f-copy h2 { font-size: clamp(40px, 5.6vw, 88px); line-height: .92; letter-spacing: -.04em; max-width: 10em; }
.f-copy > p { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; margin-top: 28px; max-width: 30em; color: oklch(0.9 0.006 286); }
.f-list { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid oklch(0.42 0.012 286); }
.f-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid oklch(0.42 0.012 286); font-size: 17px; }
.f-list b { font-weight: 600; color: var(--sun-d); text-align: right; }
.f-stage { position: relative; display: flex; justify-content: center; align-self: stretch; align-items: flex-end; min-height: clamp(520px, 50vw, 720px); }
.f-sun { position: absolute; left: 50%; bottom: 0; width: min(108%, 620px); aspect-ratio: 2 / 1; border-radius: 999px 999px 0 0; background: var(--sun-d); transform: translateX(-50%); }
.phone { position: relative; width: clamp(250px, 24vw, 340px); margin-bottom: -12%; border-radius: clamp(36px, 3.4vw, 50px); background: #000; padding: clamp(9px, .8vw, 12px); box-shadow: 0 0 0 2px oklch(0.33 0.004 286); }
.phone img { width: 100%; border-radius: clamp(28px, 2.7vw, 40px); }

/* What it shows: numbered poster rows */
.features { padding: clamp(80px, 10vw, 160px) 0 clamp(40px, 5vw, 80px); scroll-margin-top: 16px; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
.rows li { display: grid; grid-template-columns: auto 1fr; column-gap: clamp(16px, 2vw, 28px); padding: clamp(22px, 2.4vw, 36px) clamp(0px, 2vw, 32px) clamp(24px, 2.6vw, 40px) 0; border-bottom: 2px solid var(--ink); }
.rows li:nth-child(2n) { border-left: 2px solid var(--ink); padding-left: clamp(20px, 2.6vw, 40px); padding-right: 0; }
.num { grid-row: span 2; font-weight: 600; font-size: clamp(44px, 4.6vw, 72px); line-height: .85; letter-spacing: -.05em; color: var(--sun); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.rows h3 { font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -.03em; line-height: 1.05; }
.rows p { margin-top: 10px; font-size: 17px; line-height: 1.5; max-width: 32em; }

/* What it leaves out */
.no { padding: clamp(56px, 7vw, 110px) 0 clamp(64px, 8vw, 120px); }
.no ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; border-top: 6px solid var(--ink); }
.no li { font-weight: 600; font-size: clamp(34px, 3.7vw, 58px); letter-spacing: -.04em; line-height: 1; padding-top: 22px; }
.no li small { display: block; margin-bottom: 10px; }
.no > .wrap > p { margin-top: clamp(40px, 5vw, 72px); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; max-width: 36em; font-weight: 450; }

/* Stories */
.moments-sec { padding: clamp(40px, 5vw, 80px) 0 clamp(80px, 10vw, 150px); scroll-margin-top: 16px; }
.moments { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
.moment { padding: clamp(24px, 2.6vw, 40px) clamp(0px, 2vw, 32px) clamp(28px, 3vw, 44px) 0; border-bottom: 2px solid var(--ink); }
.moment:nth-child(2n) { border-left: 2px solid var(--ink); padding-left: clamp(20px, 2.6vw, 40px); padding-right: 0; }
.moment .label { color: var(--ink-2); }
.moment h3 { font-size: clamp(28px, 2.8vw, 44px); letter-spacing: -.035em; line-height: 1; margin-top: 10px; }
.moment > p:last-child { margin-top: 14px; font-size: 17px; line-height: 1.5; max-width: 32em; }

/* FAQ */
.faq-sec { padding: 0 0 clamp(80px, 10vw, 150px); scroll-margin-top: 16px; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 clamp(32px, 5vw, 80px); align-items: start; }
.faq { border-top: 6px solid var(--ink); }
.faq details { border-bottom: 2px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: clamp(20px, 1.9vw, 28px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sun); box-shadow: inset 0 0 0 2px var(--ink); transition: transform .3s var(--ease); }
.faq details[open] summary::after { background: var(--ink); clip-path: inset(0 0 50% 0); transform: rotate(180deg); }
.faq details p { padding: 0 0 24px; font-size: 18px; line-height: 1.55; max-width: 38em; }

/* Close: gold poster with the ink crescent */
.close { position: relative; overflow: hidden; background: var(--sun); padding: clamp(80px, 10vw, 160px) 0 clamp(80px, 10vw, 150px); }
.close .wrap { position: relative; z-index: 2; }
.close h2 { font-size: clamp(46px, 8.2vw, 132px); line-height: .88; letter-spacing: -.045em; max-width: 8.5em; }
.close .wrap > p { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; margin: 28px 0 36px; max-width: 28em; }
.close-moon { position: absolute; right: -4vw; top: clamp(40px, 5vw, 80px); width: min(36vw, 520px); aspect-ratio: 1; color: var(--ink); }
.close-moon svg { width: 100%; height: 100%; display: block; }

/* Footer */
.footer { background: var(--paper); padding: clamp(48px, 6vw, 88px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; border-top: 6px solid var(--ink); padding-top: 32px; }
.footer-brand img { height: 26px; width: auto; }
.footer-brand p { margin-top: 14px; max-width: 22em; font-size: 16px; color: var(--ink-2); }
.footer nav { display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.footer nav h2 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.footer nav a { text-decoration: none; width: fit-content; }
@media (hover: hover) { .footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.footer-bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 36px; font-size: 14px; color: var(--ink-2); }

/* Legal pages */
.legal { padding: clamp(56px, 7vw, 110px) 0 0; }
.legal .wrap { max-width: calc(46rem + 2 * var(--pad)); }
.legal h1 { font-size: clamp(44px, 6vw, 88px); line-height: .92; letter-spacing: -.045em; border-top: 6px solid var(--ink); padding-top: 24px; }
.legal .lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; margin-top: 20px; color: var(--ink-2); }
.legal h2 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.02em; margin: 2.5rem 0 .5rem; }
.legal p { font-size: 17px; line-height: 1.6; }
.legal p + p { margin-top: .875rem; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal-caps { font-size: 15px !important; letter-spacing: .01em; }
.legal-credit { margin-top: 3.5rem; font-size: 14px !important; color: var(--ink-2); }

/* Motion: once, transform/opacity only */
@media (prefers-reduced-motion: no-preference) {
  .disc { animation: slide-in 1.3s var(--ease) both; }
  .hero-copy .kicker, .hero h1 .l, .hero-sub { animation: rise .9s var(--ease) both; }
  .hero h1 .l:nth-child(1) { animation-delay: .12s; }
  .hero h1 .l:nth-child(2) { animation-delay: .2s; }
  .hero h1 .l:nth-child(3) { animation-delay: .28s; }
  .hero-sub { animation-delay: .45s; }
  .sky .dome { transition: transform .9s var(--d) var(--ease); }
  .sky .rahu { transition: transform 1s calc(var(--d) + .6s) var(--ease), opacity .15s calc(var(--d) + .6s); }
  .sky .bar { transition: transform .6s calc(var(--d) + 1.4s) var(--ease); }
  .f-sun { transition: transform 1.2s var(--ease); }
  .close-moon { transition: transform 1.4s var(--ease), opacity .4s; }
  .sky.wait .dome { transform: rotate(180deg); }
  .sky.wait .rahu { transform: rotate(-112.5deg); opacity: 0; }
  .sky.wait .bar { transform: scaleX(0); }
  .feature.wait .f-sun { transform: translate(-50%, 100%); }
  .close.wait .close-moon { transform: rotate(-120deg); opacity: 0; }
}
@keyframes slide-in { from { transform: translateX(45%); } to { transform: none; } }
@keyframes rise { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Responsive */
@media (max-width: 1100px) {
  .feature .wrap { grid-template-columns: 1fr; }
  .f-copy { padding-bottom: 0; }
  .f-stage { min-height: 0; padding-top: 24px; }
  .no ul { grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .no li { padding-bottom: 22px; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar img { height: 24px; }
  .topbar nav { display: none; }
  .disc { width: 96vw; right: -30vw; top: 64px; }
  .hero { min-height: 0; }
  .hero-copy { padding-top: calc(64px + 56vw); }
  .hero h1 { font-size: clamp(46px, 13.4vw, 66px); }
  .rule-head { grid-template-columns: 1fr; gap: 20px; }
  .eighth { font-size: 38vw; }
  .grid4, .rows, .moments { grid-template-columns: 1fr; }
  .sky, .sky:nth-child(2n), .rows li, .rows li:nth-child(2n), .moment, .moment:nth-child(2n) { border-left: 0; padding-left: 0; padding-right: 0; }
  .sky-svg text { font-size: 46px; }
  .sky-svg text.tm { display: none; }
  .skies-date { flex-direction: column; }
  .sky-cap { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sun-times { flex-direction: row; gap: 20px; align-items: flex-start; text-align: left; }
  .f-sun { width: 150vw; }
  .phone { margin-bottom: -28%; }
  .no ul { grid-template-columns: 1fr; }
  .no li { border-bottom: 2px solid var(--ink); padding: 18px 0; }
  .no li:last-child { border-bottom: 0; }
  .close-moon { width: 50vw; right: 2vw; top: 28px; }
  .close .wrap { padding-top: 44vw; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

