/* ───────────────────────────────────────────────────────────
   Magic Calendar — Editorial Night
   Type-driven, asymmetric, themeable. CSS-only motion.
   ─────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

/* ── Theme palettes (mirror calendar/Theme/AppTheme.swift) ── */

:root,
[data-theme="dark"] {
  --bg:        #1a1a2e;
  --bg-deep:   #0f0f1f;
  --surface:   #2a2a4e;
  --sidebar:   #12122a;
  --accent:    #e94560;
  --accent-2:  #ff7a59;
  --accent-soft: rgba(233, 69, 96, 0.18);
  --text:      #eeeeee;
  --muted:     rgba(238, 238, 238, 0.55);
  --hairline:  rgba(238, 238, 238, 0.10);
  --rule:      rgba(238, 238, 238, 0.16);
  --glow:      rgba(233, 69, 96, 0.35);
  --grain-opacity: 0.07;
  --hero-mesh:
    radial-gradient(ellipse 80% 60% at 80% 0%,  rgba(255, 122, 89, 0.22), transparent 60%),
    radial-gradient(ellipse 70% 60% at 10% 30%, rgba(233, 69, 96, 0.18),  transparent 60%),
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(15, 52, 96, 0.55),  transparent 60%);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg:        #fafafa;
  --bg-deep:   #ececec;
  --surface:   #ffffff;
  --sidebar:   #f0f0f5;
  --accent:    #e94560;
  --accent-2:  #c0392b;
  --accent-soft: rgba(233, 69, 96, 0.12);
  --text:      #1a1a2e;
  --muted:     rgba(26, 26, 46, 0.55);
  --hairline:  rgba(26, 26, 46, 0.10);
  --rule:      rgba(26, 26, 46, 0.18);
  --glow:      rgba(233, 69, 96, 0.18);
  --grain-opacity: 0.05;
  --hero-mesh:
    radial-gradient(ellipse 80% 60% at 80% 0%,  rgba(233, 69, 96, 0.10),  transparent 60%),
    radial-gradient(ellipse 70% 60% at 10% 30%, rgba(255, 122, 89, 0.10), transparent 60%),
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(15, 52, 96, 0.06),  transparent 60%);
  color-scheme: light;
}

[data-theme="sunrise"] {
  --bg:        #2a1320;
  --bg-deep:   #1a0a14;
  --surface:   #3d1d2c;
  --sidebar:   #1f0d18;
  --accent:    #ff7a59;
  --accent-2:  #ffd166;
  --accent-soft: rgba(255, 122, 89, 0.20);
  --text:      #fff1e6;
  --muted:     rgba(255, 241, 230, 0.55);
  --hairline:  rgba(255, 241, 230, 0.10);
  --rule:      rgba(255, 241, 230, 0.18);
  --glow:      rgba(255, 122, 89, 0.45);
  --grain-opacity: 0.09;
  --hero-mesh:
    radial-gradient(ellipse 80% 60% at 80% 0%,  rgba(255, 209, 102, 0.28), transparent 60%),
    radial-gradient(ellipse 70% 60% at 10% 30%, rgba(255, 122, 89, 0.30),  transparent 60%),
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(120, 30, 60, 0.55),  transparent 60%);
  color-scheme: dark;
}

[data-theme="neon"] {
  --bg:        #000000;
  --bg-deep:   #000000;
  --surface:   #0d0d0d;
  --sidebar:   #050005;
  --accent:    #ff10f0;
  --accent-2:  #00f0ff;
  --accent-soft: rgba(255, 16, 240, 0.18);
  --text:      #f0fff7;
  --muted:     rgba(240, 255, 247, 0.55);
  --hairline:  rgba(240, 255, 247, 0.12);
  --rule:      rgba(240, 255, 247, 0.20);
  --glow:      rgba(255, 16, 240, 0.55);
  --grain-opacity: 0.10;
  --hero-mesh:
    radial-gradient(ellipse 80% 60% at 80% 0%,  rgba(255, 16, 240, 0.30), transparent 60%),
    radial-gradient(ellipse 70% 60% at 10% 30%, rgba(0, 240, 255, 0.20),  transparent 60%),
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(120, 0, 120, 0.50), transparent 60%);
  color-scheme: dark;
}

[data-theme="paper"] {
  --bg:        #f5efe6;
  --bg-deep:   #e6dec9;
  --surface:   #fffaf0;
  --sidebar:   #ebe3d4;
  --accent:    #c0392b;
  --accent-2:  #b58a4a;
  --accent-soft: rgba(192, 57, 43, 0.12);
  --text:      #1a1a2e;
  --muted:     rgba(26, 26, 46, 0.60);
  --hairline:  rgba(26, 26, 46, 0.12);
  --rule:      rgba(26, 26, 46, 0.20);
  --glow:      rgba(192, 57, 43, 0.20);
  --grain-opacity: 0.08;
  --hero-mesh:
    radial-gradient(ellipse 80% 60% at 80% 0%,  rgba(192, 57, 43, 0.10),  transparent 60%),
    radial-gradient(ellipse 70% 60% at 10% 30%, rgba(181, 138, 74, 0.14), transparent 60%),
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(120, 80, 50, 0.10), transparent 60%);
  color-scheme: light;
}

/* ── Base ── */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-feature-settings: "ss01", "cv11", "ss03";
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background 0.6s ease, color 0.6s ease;
}

/* Atmosphere: grain overlay (SVG turbulence baked in url) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

main { position: relative; z-index: 2; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-2); }

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

/* ── Type scale ── */

.serif { font-family: 'Instrument Serif', 'Times New Roman', serif; font-weight: 400; }
.italic { font-style: italic; }
.mono  { font-family: 'Geist Mono', ui-monospace, monospace; }

h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; }

/* ── Nav ── */

nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.logo {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.logo:hover { color: var(--accent); }
.logo .star { font-style: normal; color: var(--accent); font-size: 0.7em; transform: translateY(-0.2em); display: inline-block; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  justify-self: center;
}
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

/* Theme switcher dots */
.theme-dots {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-self: end;
  list-style: none;
}
.theme-dots .label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 6px;
}
.theme-dots button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.theme-dots button:hover { transform: scale(1.18); }
.theme-dots button[aria-pressed="true"] {
  border-color: var(--text);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--text);
}
.theme-dots button .sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
/* Each dot shows the theme's bg/accent split diagonally */
.dot-dark    { background: linear-gradient(135deg, #1a1a2e 50%, #e94560 50%); }
.dot-light   { background: linear-gradient(135deg, #fafafa 50%, #e94560 50%); }
.dot-sunrise { background: linear-gradient(135deg, #2a1320 50%, #ff7a59 50%); }
.dot-neon    { background: linear-gradient(135deg, #000000 50%, #ff10f0 50%); }
.dot-paper   { background: linear-gradient(135deg, #f5efe6 50%, #c0392b 50%); }

/* ── Hero ── */

.hero {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0 clamp(80px, 14vw, 160px);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% 0;
  background: var(--hero-mesh);
  filter: blur(60px) saturate(120%);
  z-index: -1;
  opacity: 1;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  opacity: 0;
  animation: rise 0.9s 0.1s ease forwards;
}
.eyebrow .pip {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 12px var(--glow);
}

.hero h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  opacity: 0;
  animation: rise 1.1s 0.25s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero h1 .magic {
  font-style: italic;
  color: var(--accent);
  position: relative;
  display: inline-block;
  text-shadow: 0 0 40px var(--glow);
}
.hero h1 .magic::after {
  content: "✦";
  position: absolute;
  top: -0.05em;
  right: -0.55em;
  font-size: 0.34em;
  font-style: normal;
  color: var(--accent-2);
  animation: twinkle 3.4s ease-in-out infinite;
}
.hero h1 .lower { display: block; color: var(--text); }

.hero .lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  max-width: 44ch;
  line-height: 1.55;
  margin-bottom: 36px;
  opacity: 0;
  animation: rise 1s 0.45s ease forwards;
}

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  opacity: 0;
  animation: rise 1s 0.6s ease forwards;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 15px 24px;
  border-radius: 999px;
  border: 1px solid var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 18px 40px -16px var(--glow); color: var(--bg); }
.cta .arrow { transition: transform 0.25s ease; }
.cta:hover .arrow { transform: translateX(3px); }

.cta.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--rule);
}
.cta.ghost:hover { border-color: var(--text); background: transparent; color: var(--text); }

.cta.accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cta.accent:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }

.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: rise 1s 0.8s ease forwards;
}
.hero-meta strong { color: var(--text); font-weight: 500; }
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--rule); align-self: center; }

/* ── Hero device (iPad) ── */

.device-stage {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  perspective: 1400px;
  opacity: 0;
  animation: rise 1.4s 0.5s cubic-bezier(.2,.7,.2,1) forwards;
}

.ipad {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1180 / 820;
  border-radius: 28px;
  background: linear-gradient(180deg, #2b2b3a, #14141d);
  padding: 14px;
  transform: rotate(5deg) translateX(8%);
  box-shadow:
    0 80px 120px -40px rgba(0,0,0,0.7),
    0 30px 60px -20px var(--glow),
    0 0 0 1px rgba(255,255,255,0.04) inset;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.ipad:hover { transform: rotate(2deg) translateX(4%) translateY(-6px); }

.ipad::before { /* speaker grille top edge */
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 38px; height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
}
.ipad::after { /* camera */
  content: "";
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #0a0a0a;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.06);
}
.ipad-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-deep);
}
.ipad-screen img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ipad-screen::after { /* glass reflection */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,0.10) 0%, transparent 35%, transparent 65%, rgba(255,255,255,0.04) 100%);
  pointer-events: none;
}

/* Floating chip annotations near device */
.chip {
  position: absolute;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  font-family: 'Geist Mono', monospace;
  letter-spacing: 0.06em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.4);
  opacity: 0;
  animation: rise 1s 1s ease forwards;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.chip-1 { left: -4%; top: 14%; transform: rotate(-4deg); }
.chip-2 { left: 4%; bottom: 16%; transform: rotate(3deg); animation-delay: 1.15s; }

/* ── Section primitives ── */

section { position: relative; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

.section-rule {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 0 32px;
  max-width: 1280px;
  margin: 0 auto 72px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-rule::after { content: ""; height: 1px; background: var(--hairline); }
.section-rule .num { color: var(--accent); }

.section-head {
  max-width: 1280px;
  margin: 0 auto 64px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.45fr);
  gap: 48px;
  align-items: end;
}
.section-head h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.025em;
}
.section-head h2 em { color: var(--accent); }
.section-head .blurb {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 42ch;
}

/* ── Features ── */

.features-section { padding: clamp(80px, 10vw, 140px) 0; }
.features {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.feature {
  background: var(--bg);
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: background 0.3s ease;
}
.feature:hover { background: color-mix(in srgb, var(--surface) 50%, var(--bg)); }
.feature:hover .feature-icon { color: var(--accent); transform: translateY(-2px); }

.feature.f-wide  { grid-column: span 6; }
.feature.f-half  { grid-column: span 6; }
.feature.f-third { grid-column: span 4; }
.feature.f-full  { grid-column: span 12; }

.feature-num {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.20em;
  color: var(--muted);
  text-transform: uppercase;
}
.feature-icon {
  width: 40px; height: 40px;
  color: var(--text);
  transition: color 0.3s ease, transform 0.3s ease;
}
.feature-icon svg { width: 100%; height: 100%; display: block; }
.feature h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.feature h3 em { color: var(--accent); font-style: italic; }
.feature p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 38ch;
}

/* ── Editorial number block (5 themes) ── */

.themes-block {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.themes-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 50%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.themes-grid {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
}

.megafive {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(220px, 32vw, 440px);
  line-height: 0.85;
  color: var(--accent);
  letter-spacing: -0.05em;
  text-shadow: 0 30px 80px var(--glow);
  user-select: none;
  position: relative;
}
.megafive .small {
  display: block;
  font-family: 'Geist Mono', monospace;
  font-style: normal;
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
  text-shadow: none;
}

.themes-copy h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.themes-copy h2 em { color: var(--accent); font-style: italic; }
.themes-copy p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 46ch;
}

.theme-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.theme-list li {
  display: flex; align-items: center; gap: 10px;
  color: var(--text);
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.theme-list li:hover { opacity: 0.7; }
.theme-list .swatch {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid var(--hairline);
}
.theme-list .num {
  color: var(--muted);
  width: 22px;
}
.theme-list em {
  font-style: italic;
  color: var(--muted);
  font-size: 12px;
}
.theme-list .active { color: var(--accent); }

.theme-hint {
  margin-top: 26px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.theme-hint kbd {
  font-family: inherit;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2px 8px;
  margin: 0 2px;
  color: var(--text);
}

/* ── Editorial big-zero block (no tracking) ── */

.privacy-block {
  padding: clamp(80px, 12vw, 160px) 0;
  border-bottom: 1px solid var(--hairline);
}
.privacy-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
}
.privacy-grid .copy h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.privacy-grid .copy h2 em { font-style: italic; color: var(--accent); }
.privacy-grid .copy p { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 46ch; }
.privacy-list {
  margin-top: 30px;
  list-style: none;
  display: grid;
  gap: 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text);
}
.privacy-list li { display: flex; gap: 14px; align-items: baseline; }
.privacy-list .x { color: var(--accent); width: 14px; flex-shrink: 0; }

.zero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.megazero {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(280px, 38vw, 520px);
  line-height: 0.8;
  color: var(--text);
  letter-spacing: -0.05em;
  position: relative;
  user-select: none;
  text-shadow: 0 0 60px var(--glow);
}
.megazero .ring {
  position: absolute;
  inset: 8% 8%;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.35;
  animation: pulse 4s ease-in-out infinite;
}

/* ── Screenshots: editorial layout ── */

.shots-section { padding: clamp(80px, 12vw, 160px) 0; overflow: hidden; }
.shots-editorial {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: stretch;
}
.shots-editorial .shot {
  position: relative;
  aspect-ratio: 2064 / 2752;        /* exact iPad-portrait source aspect */
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--bg-deep);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.6);
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
  transform-origin: center;
}
.shots-editorial .shot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.shots-editorial .shot:hover { transform: translateY(-6px); }
.shots-editorial .shot:hover img { transform: scale(1.02); }

.shots-editorial .shot-tag {
  position: absolute;
  top: 16px; left: 16px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(10px);
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text);
  z-index: 1;
}

/* Aligned row — equal spacing, no rotation or offset */
.shot-year { grid-column: 1; grid-row: 1; }
.shot-week { grid-column: 2; grid-row: 1; }
.shot-day  { grid-column: 3; grid-row: 1; }

/* Pull quote */
.pullquote {
  max-width: 1280px;
  margin: clamp(80px, 10vw, 140px) auto;
  padding: 0 32px;
  text-align: center;
}
.pullquote q {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  display: block;
  max-width: 18ch;
  margin: 0 auto 20px;
  quotes: "“" "”";
}
.pullquote q::before { content: open-quote; color: var(--accent); }
.pullquote q::after  { content: close-quote; color: var(--accent); }
.pullquote .attrib {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Download ── */

.download-block {
  position: relative;
  padding: clamp(80px, 14vw, 180px) 0;
  border-top: 1px solid var(--hairline);
  text-align: center;
  overflow: hidden;
}
.download-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.download-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}
.download-inner h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.download-inner h2 em { font-style: italic; color: var(--accent); }
.download-inner p { color: var(--muted); font-size: 17px; margin-bottom: 36px; line-height: 1.55; }

.notify {
  display: flex;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px;
  max-width: 480px;
  margin: 0 auto 16px;
  transition: border-color 0.2s ease;
}
.notify:focus-within { border-color: var(--accent); }
.notify input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 10px 18px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
}
.notify input::placeholder { color: var(--muted); }
.notify button {
  border: 0;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.notify button:hover { background: var(--accent-2); transform: translateY(-1px); }
.notify-meta {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Footer ── */

footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 0 56px;
  position: relative;
  z-index: 2;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}
.footer-inner .copyright {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-inner .signature {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--text);
  text-align: center;
}
.footer-inner ul {
  display: flex;
  gap: 22px;
  list-style: none;
  justify-self: end;
}
.footer-inner a {
  color: var(--muted);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer-inner a:hover { color: var(--accent); }

/* ── Forms (support) ── */

.support-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 32px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}
.support-intro h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.support-intro h1 em { font-style: italic; color: var(--accent); }
.support-intro p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 38ch;
}
.support-intro .signoff {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--text);
  margin-top: 28px;
}
.support-intro .meta {
  margin-top: 28px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  display: grid;
  gap: 8px;
}
.support-intro .meta .row { display: flex; gap: 14px; align-items: baseline; }
.support-intro .meta .key { color: var(--muted); width: 110px; text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; }
.support-intro .meta .val { color: var(--text); }

.form-card {
  background: color-mix(in srgb, var(--surface) 60%, var(--bg));
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 36px;
  position: relative;
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.6);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--muted);
}
.form-row label .req { color: var(--accent); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15.5px;
  transition: border-color 0.2s ease, background 0.2s ease;
  font-family: inherit;
}
.form-row textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: color-mix(in srgb, var(--surface) 50%, var(--bg));
}
.form-row .hint {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.form-row.honeypot { display: none; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.form-actions .meta {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.banner {
  background: color-mix(in srgb, #2ecc71 12%, transparent);
  border: 1px solid #2ecc71;
  color: #2ecc71;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 15px;
}

/* ── Privacy article ── */

.prose-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 32px;
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}

.toc {
  position: sticky;
  top: 140px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.toc .label {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 14px;
  display: block;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 10px; }
.toc li { counter-increment: toc; }
.toc a {
  color: var(--muted);
  display: flex; gap: 10px; align-items: baseline;
  line-height: 1.4;
}
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--accent); }
.toc a:hover { color: var(--text); }

.prose {
  max-width: 720px;
}
.prose .meta-line {
  display: flex; gap: 20px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 36px;
}
.prose h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.prose h1 em { font-style: italic; color: var(--accent); }
.prose .lede {
  font-size: 19px;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 36px;
  max-width: 50ch;
}
.prose h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.015em;
  margin: 48px 0 14px;
  scroll-margin-top: 140px;
}
.prose h2::before {
  content: counter(section, decimal-leading-zero) "  ";
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  vertical-align: middle;
}
.prose { counter-reset: section; }
.prose h2 { counter-increment: section; }
.prose p { margin-bottom: 16px; line-height: 1.7; color: var(--text); font-size: 16.5px; }
.prose ul, .prose ol { margin: 0 0 16px 0; padding-left: 0; list-style: none; }
.prose li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  line-height: 1.65;
  color: var(--text);
}
.prose ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.prose ol { counter-reset: pli; }
.prose ol li { counter-increment: pli; }
.prose ol li::before {
  content: counter(pli, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
}
.prose strong { color: var(--text); font-weight: 600; }
.prose a { border-bottom: 1px solid var(--accent); }

/* ── Animations ── */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50%      { transform: scale(1.04); opacity: 0.55; }
}

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

/* ── Toast ── */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 999px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 100;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Skip link ── */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; color: var(--bg); }

/* ── Responsive ── */

@media (max-width: 980px) {
  .nav-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 10px 16px;
    padding: 12px 22px;
  }
  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    justify-content: center;
    gap: 22px;
    font-size: 13px;
  }
  .nav-links a::after { bottom: -4px; }
  .theme-dots .label { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .device-stage { justify-content: center; }
  .ipad { transform: rotate(2deg); width: 100%; max-width: 540px; }
  .chip-1 { left: 0; }
  .chip-2 { right: 0; left: auto; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .features { grid-template-columns: repeat(6, 1fr); }
  .feature.f-wide, .feature.f-half, .feature.f-full { grid-column: span 6; }
  .feature.f-third { grid-column: span 3; }
  .themes-grid { grid-template-columns: 1fr; }
  .megafive { font-size: 200px; text-align: center; }
  .privacy-grid { grid-template-columns: 1fr; }
  .megazero { font-size: 240px; text-align: center; }
  .shots-editorial { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .shot-year { grid-column: 1; grid-row: 1; }
  .shot-week { grid-column: 2; grid-row: 1; }
  .shot-day  { grid-column: 3; grid-row: 1; }
  .support-shell { grid-template-columns: 1fr; }
  .prose-shell { grid-template-columns: 1fr; }
  .toc { position: static; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-inner ul { justify-self: center; }
}

@media (max-width: 580px) {
  body { font-size: 16px; }
  .nav-links { gap: 14px; font-size: 12px; }
  .hero { padding: 56px 0 80px; }
  .shots-editorial { grid-template-columns: 1fr; gap: 18px; }
  .shot-year, .shot-week, .shot-day { grid-column: 1; }
  .features { grid-template-columns: 1fr; }
  .feature.f-wide, .feature.f-half, .feature.f-third, .feature.f-full { grid-column: 1; }
  .feature { padding: 28px 24px 32px; }
  .form-card { padding: 24px; }
  .download-inner h2 { font-size: 56px; }
  .pullquote q { font-size: 32px; }
  .megafive, .megazero { font-size: 160px; }
  .notify { flex-direction: column; border-radius: 18px; padding: 12px; }
  .notify input { padding: 8px 12px; }
  .notify button { width: 100%; border-radius: 999px; padding: 12px; }
}

/* ═══════════════════════════════════════════════════════════
   VIBE LAYER — masthead, marquee, clock, parallax, drop cap,
   constellation, vertical spine, custom scrollbar
   ═══════════════════════════════════════════════════════════ */

/* ── Custom scrollbar ── */
* { scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  border: 2px solid var(--bg);
}

/* ── Selection caret on focus ring ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Masthead bar (above nav) ── */
.masthead {
  position: relative;
  z-index: 21;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--hairline);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  overflow: hidden;
}
.masthead-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 9px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  white-space: nowrap;
  overflow: hidden;
}
.masthead .now {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.masthead .pip {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--glow);
  animation: blink 2.4s ease-in-out infinite;
}
.masthead .clock {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.masthead .center { color: var(--muted); flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.masthead .right { color: var(--muted); }
.masthead em { font-style: normal; color: var(--accent); }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* ── Vertical spine ── */
.spine {
  position: fixed;
  top: 50%;
  right: 16px;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 24px;
  opacity: 0.7;
}
.spine .star { color: var(--accent); transform: rotate(180deg); display: inline-block; }
@media (max-width: 1180px) { .spine { display: none; } }

/* ── Hero constellation ── */
.constellation {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.constellation .star {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text);
  opacity: 0.6;
  animation: twinkle-2 var(--d, 4s) ease-in-out infinite;
  animation-delay: var(--del, 0s);
  box-shadow: 0 0 8px currentColor;
}
.constellation .star.big   { width: 5px; height: 5px; color: var(--accent-2); background: var(--accent-2); }
.constellation .star.accent{ width: 4px; height: 4px; color: var(--accent);   background: var(--accent); }

@keyframes twinkle-2 {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

/* ── Marquee ticker ── */
.ticker {
  position: relative;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--bg-deep) 60%, var(--bg));
  overflow: hidden;
  padding: 16px 0;
}
.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--text);
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track > span {
  display: inline-flex; align-items: center; gap: 48px;
  white-space: nowrap;
}
.ticker-sep {
  color: var(--accent);
  font-style: normal;
  font-family: 'Instrument Serif', serif;
}
.ticker-item.muted { color: var(--muted); font-style: normal; font-family: 'Geist Mono', monospace; font-size: 0.55em; letter-spacing: 0.22em; text-transform: uppercase; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Drop cap (privacy lede) ── */
.prose .lede.dropcap::first-letter {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 4.6em;
  line-height: 0.85;
  float: left;
  color: var(--accent);
  margin: 0.04em 0.12em -0.1em 0;
  padding: 0;
}

/* ── Magnetic / parallax helpers ── */
.cta {
  will-change: transform;
}
.ipad {
  will-change: transform;
}

/* ── Scroll-reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Shortcuts overlay ── */
.shortcuts {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--bg-deep) 92%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: grid;
  place-items: center;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.shortcuts.show { opacity: 1; pointer-events: auto; }
.shortcuts-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 36px 40px;
  max-width: 460px;
  width: calc(100vw - 48px);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.6);
  position: relative;
}
.shortcuts h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.shortcuts h3 em { font-style: italic; color: var(--accent); }
.shortcuts ul { list-style: none; display: grid; gap: 12px; }
.shortcuts li {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 14px;
  color: var(--text);
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--hairline);
}
.shortcuts li:last-child { border: 0; padding-bottom: 0; }
.shortcuts kbd {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--text);
}
.shortcuts .hint {
  margin-top: 18px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ── Cursor sparkle (magic ink trail) ── */
.spark {
  position: fixed;
  pointer-events: none;
  z-index: 80;
  font-family: 'Instrument Serif', serif;
  color: var(--accent);
  opacity: 0.9;
  user-select: none;
  animation: spark 900ms ease-out forwards;
  text-shadow: 0 0 8px var(--glow);
}
@keyframes spark {
  0%   { transform: translate(-50%, -50%) scale(0.6) rotate(0deg);   opacity: 0.9; }
  60%  { opacity: 0.7; }
  100% { transform: translate(-50%, calc(-50% - 28px)) scale(1.1) rotate(40deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .spark { display: none; } }

/* ── Section ornament (between major sections) ── */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 56px 0;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--accent);
  font-size: 26px;
  letter-spacing: -0.02em;
  position: relative;
}
.ornament::before, .ornament::after {
  content: "";
  flex: 0 1 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
}
.ornament .glyph {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  font-size: 0.85em;
}

/* ── Hero copy: micro-parallax target ── */
.hero-copy { position: relative; }

/* ── Live theme tag in nav (replaces label area) ── */
.now-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 4px;
}
.now-tag .label { opacity: 0.7; }
.now-tag .value { color: var(--accent); }
