/* =============================================
   TIMEPOINT AI — Landing Page Styles (v2)
   Fonts: Cormorant Garamond, Sora, JetBrains Mono
   ============================================= */

:root {
  --bg-void: #fefcf8;
  --bg-deep: #f5f1ea;
  --bg-panel: #ede9e0;
  --bg-card: #ffffff;
  --bg-card-hover: #f9f6f1;
  --gold: #9a6f22;
  --gold-bright: #b8852a;
  --gold-dim: #6e4d12;
  --gold-glow: rgba(154, 111, 34, 0.10);
  --ice: #1a7a9a;
  --ice-dim: #145e7a;
  --ice-glow: rgba(26, 122, 154, 0.10);
  --ivory: #1a1510;
  --text-primary: #2d2520;
  --text-secondary: #6b6055;
  --text-dim: #9a9085;
  --border: #d8d0c4;
  --border-gold: rgba(154, 111, 34, 0.22);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Sora', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--sans);
  background: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* GRAIN + VIGNETTE */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(210,204,194,0.30) 100%);
  pointer-events: none;
  z-index: 9998;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ALPHA BANNER — killed. A quiet Alpha badge lives in the header instead. */
.alpha-banner {
  display: none !important;
}
.alpha-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--gold-dim);
  color: var(--bg-void);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-radius: 2px;
}
.alpha-text {
  color: var(--text-secondary);
}
.alpha-cta {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}
.alpha-cta:hover {
  text-decoration: underline;
}
.alpha-close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 8px 12px;
  min-width: 44px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.alpha-close:hover {
  color: var(--text-secondary);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-alpha {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* NAV */
/* The bar spans the viewport; .nav-inner holds the content to the same 1200px
   column as the page body. Previously 12 items sat in a no-wrap flex row with no
   max-width, so at 1440px "Work With Us" wrapped to three lines and the Request
   Access CTA was clipped off-screen. */
nav.site-nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(254, 252, 248, 0.96);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 48px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-cta { flex-shrink: 0; }
.nav-signin { color: var(--text-dim) !important; }

.nav-logo img {
  height: 32px;
  width: auto;
}

/* HAMBURGER */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 201;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-secondary);
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* NAV ICON LINKS (X, GitHub) */
.nav-icon {
  display: flex;
  align-items: center;
  color: var(--text-dim) !important;
}
.nav-icon:hover { color: var(--ivory) !important; }
.nav-icon svg { display: block; }

.nav-links {
  display: flex; gap: 28px; align-items: center;
}
.nav-links a {
  font-size: 12px; color: var(--text-secondary);
  text-decoration: none; letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--ivory); }

.nav-cta {
  font-size: 12px !important;
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  border-radius: 2px;
  font-weight: 500;
  transition: all 0.25s;
  letter-spacing: 1px;
}
.nav-cta:hover { background: var(--gold); color: var(--bg-void) !important; }

/* HERO */
.hero {
  padding: 140px 48px 80px;
}

/* Modular hero layout */
.hero-modules {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}

/* Shared module styling */
.hero-mod {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-deep);
}

/* Copy module — spans left column, both rows */
.hero-mod-copy {
  grid-row: 1 / 3;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Image module — top right */
.hero-mod-image {
  display: block;
  text-decoration: none;
  overflow: hidden;
  position: relative;
}

.hero-scene-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 220px;
  transition: filter 0.3s;
}

.hero-mod-image:hover .hero-scene-img {
  filter: brightness(1.1);
}

.hero-mod-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(248,246,241,0.88));
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}

/* Graph module — bottom right */
.hero-mod-graph {
  padding: 20px 24px;
  overflow-x: auto;
}

.hero-mod-graph-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-mod-graph .tree-svg {
  width: 100%;
  height: auto;
}

.hero-epigraph {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-bottom: 32px;
  animation: fadeUp 1s ease-out;
}

.mkt-hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  animation: fadeUp 1s ease-out both;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--ivory);
  margin: 0 0 20px;
  animation: fadeUp 1s ease-out 0.1s both;
}

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-secondary);
  margin: 0 0 20px;
  animation: fadeUp 1s ease-out 0.15s both;
}

.hero-tagline .future-line {
  color: var(--gold);
}

.tagline-sentence {
  white-space: nowrap;
}

.hero-sub {
  font-size: clamp(13px, 1.3vw, 15px);
  color: var(--text-secondary);
  margin: 0;
  font-weight: 300;
  line-height: 1.8;
  animation: fadeUp 1s ease-out 0.25s both;
}

.hero-rule {
  width: 60px; height: 1px;
  background: var(--gold-dim);
  margin: 36px 0;
  animation: fadeUp 1s ease-out 0.35s both;
}

.hero-badges {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-top: 24px;
  animation: fadeUp 1s ease-out 0.4s both;
}

.hero-badge {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* TREE (graph edges) */
.tree-svg { width: 100%; height: auto; }

.tree-edge {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawEdge 1.8s ease-out forwards;
}

@keyframes drawEdge { to { stroke-dashoffset: 0; } }

/* Hero graph node animations */
.tree-node-root {
  animation: nodePulse 3s ease-in-out 2s infinite;
  transform-origin: center;
}

.tree-node-gold {
  animation: nodeGlow 4s ease-in-out infinite;
}

.tree-node-ice {
  animation: nodeGlow 4s ease-in-out 1s infinite;
}

.tree-node-dim {
  animation: nodeGlow 5s ease-in-out 2s infinite;
}

@keyframes nodePulse {
  0%, 100% { r: 9; opacity: 0.9; }
  50% { r: 12; opacity: 1; }
}

@keyframes nodeGlow {
  0%, 100% { opacity: var(--base-opacity, 0.6); }
  50% { opacity: calc(var(--base-opacity, 0.6) + 0.25); }
}

/* Traveling dot along edges */
.tree-traveler {
  animation: travelDot 4s ease-in-out infinite;
}

@keyframes travelDot {
  0% { offset-distance: 0%; opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* Edge shimmer after draw-in */
.tree-edge-shimmer {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawEdge 1.8s ease-out forwards, edgeShimmer 6s ease-in-out 2.5s infinite;
}

@keyframes edgeShimmer {
  0%, 100% { opacity: var(--base-opacity, 0.5); }
  50% { opacity: calc(var(--base-opacity, 0.5) + 0.2); }
}

/* HERO CTAs */
.hero-ctas {
  display: flex; gap: 20px; margin-top: 32px; flex-wrap: wrap;
  animation: fadeUp 1s ease-out 0.65s both;
}

.cta-primary {
  padding: 16px 40px;
  background: var(--gold);
  color: var(--bg-void);
  font-weight: 600; font-size: 13px;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.25s;
  border: 1px solid var(--gold);
}
.cta-primary:hover { background: var(--gold-bright); }

.cta-secondary {
  padding: 16px 40px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 400; font-size: 13px;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid var(--border);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.25s;
}
.cta-secondary:hover { border-color: var(--text-dim); }

/* SECTIONS */
section {
  padding: 140px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.2;
  max-width: 780px;
  color: var(--ivory);
}

.section-body {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 660px;
  margin-top: 24px;
  line-height: 1.85;
  font-weight: 300;
}

/* VIBE SIMULATION */
.vibe-section {
  padding: 100px 48px 120px;
  max-width: 1200px;
  margin: 0 auto;
}

.vibe-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.vibe-intro .section-label { text-align: center; }
.vibe-intro .section-title {
  max-width: 100%;
  text-align: center;
  margin: 0 auto;
}

.vibe-intro p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.85;
  font-weight: 300;
  margin-top: 20px;
}

.vibe-examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.vibe-card {
  background: var(--bg-deep);
  padding: 36px 32px;
  transition: background 0.3s;
}
.vibe-card:hover { background: var(--bg-card); }

.vibe-prompt {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gold);
  line-height: 1.6;
  padding: 16px;
  background: rgba(154,111,34,0.06);
  border: 1px solid rgba(154,111,34,0.12);
  border-radius: 4px;
  margin-bottom: 20px;
}

.vibe-prompt::before {
  content: '>';
  color: var(--gold-dim);
  margin-right: 8px;
}

.vibe-result {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.vibe-output-label {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.vibe-outputs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vibe-output-item {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.vibe-output-item::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex-shrink: 0;
}

.vibe-card:nth-child(1) .vibe-output-item::before { background: var(--gold); }
.vibe-card:nth-child(2) .vibe-output-item::before { background: var(--ice); }
.vibe-card:nth-child(3) .vibe-output-item::before { background: #7c3aed; }

/* DIVIDER */
.divider {
  max-width: 1200px; margin: 0 auto; padding: 0 48px;
}
.divider hr {
  border: none; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* THREE REPOS SECTION */
.repos-section {
  background: var(--bg-void);
}

.repos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.repo-panel {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-deep);
}

.repo-panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.repo-panel-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
}

.repo-panel-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.repo-code {
  padding: 20px 24px;
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-secondary);
  overflow-x: auto;
  background: var(--bg-void);
  border-bottom: 1px solid var(--border);
}

.repo-code code {
  white-space: pre;
}

.repo-panel-note {
  padding: 16px 24px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.6;
  letter-spacing: 0.3px;
}

/* STEPS GRID (How It Works) */
.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 48px;
}

.step-block {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px;
  background: var(--bg-deep);
  position: relative;
}

.step-number {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.15;
  position: absolute;
  top: 16px;
  right: 24px;
  line-height: 1;
}

.step-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ivory);
  margin: 0 0 12px;
}

.step-desc {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 20px;
  max-width: 640px;
}

.step-block .repo-code {
  border-radius: 4px;
  border: 1px solid var(--border);
}

.step-repos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.step-repo-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: border-color 0.2s;
}

.step-repo-link:hover {
  border-color: var(--gold);
}

.step-code-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 20px 0 8px;
}

.step-code-label:first-of-type {
  margin-top: 0;
}

.step-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* Interop flow diagram */
.step-interop {
  margin: 20px 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-void);
}

.step-interop-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.interop-node {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--bg-deep);
}

.interop-flash { color: var(--gold); border-color: rgba(154,111,34,0.3); }
.interop-pro { color: var(--ice); border-color: rgba(26,122,154,0.3); }
.interop-clockchain { color: #7c3aed; border-color: rgba(124,58,237,0.3); }
.interop-tdf { color: #059669; border-color: rgba(5,150,105,0.3); }

.interop-arrow {
  font-size: 16px;
  color: var(--text-dim);
  opacity: 0.5;
}

.step-cta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 16px;
}

/* USE-CASE CODE + VIBE CODE */
.use-case-code, .vibe-code {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--bg-void);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
  color: var(--text-secondary);
  overflow-x: auto;
}

.use-case-code code, .vibe-code code {
  white-space: pre-wrap;
  word-break: break-all;
}

/* GLYPH DECORATION */
.glyph-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
.glyph-divider hr {
  border: none;
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.glyph-divider img {
  width: 44px;
  height: 44px;
  opacity: 0.5;
  flex-shrink: 0;
}
.glyph-float {
  position: absolute;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
.glyph-accent {
  display: block;
  margin: 0 auto;
  opacity: 0.25;
}

/* TIMEPOINT DEMO */
.timepoint-demo {
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-deep);
}

.tp-demo-header {
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}

.tp-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(154,111,34,0.3);
}

.tp-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.tp-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}

.tp-scene {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
}

.tp-scene-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 24px;
  display: block;
  background: var(--bg-void);
}

.tp-scene-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 4px;
}

.tp-scene-loc {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.tp-dialog {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.9;
  font-style: italic;
}

.tp-speaker {
  color: var(--ice);
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-top: 20px;
  margin-bottom: 6px;
}

.tp-speaker:first-child { margin-top: 0; }

.tp-data {
  padding: 36px 28px;
  display: flex; flex-direction: column; gap: 18px;
}

.tp-row {
  display: flex; justify-content: space-between; align-items: baseline;
}

.tp-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.tp-val {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-primary);
}

.tp-val.score {
  color: var(--gold);
  font-size: 22px;
  font-weight: 600;
}

.tp-val.dim { color: var(--text-dim); font-size: 10px; }

.tp-prov {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.tp-prov-title {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.tp-src {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-secondary);
  padding: 3px 0;
  display: flex; align-items: center; gap: 8px;
}
.tp-src::before {
  content: '\2713';
  color: var(--ice);
  font-size: 9px;
}

.tp-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.tp-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.tp-carousel-dot:hover {
  background: var(--text-dim);
}

.tp-carousel-dot.active {
  background: var(--gold);
  transform: scale(1.25);
}

/* SNAG */
.snag-grid {
  margin-top: 56px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.snag-col { background: var(--bg-deep); padding: 44px; }

.snag-header {
  font-family: var(--mono);
  font-size: 14px; font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}

.snag-tag {
  font-size: 8px; padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.snag-col:first-child .snag-tag {
  background: rgba(0,0,0,0.04);
  color: var(--text-dim);
}
.snag-col:last-child .snag-tag {
  background: var(--gold-glow);
  color: var(--gold);
  border: 1px solid rgba(154,111,34,0.2);
}

.snag-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.snag-row:last-child { border-bottom: none; }

.snag-row-label {
  font-family: var(--mono);
  font-size: 9px; color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.snag-row-value {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.snag-col:last-child .snag-row-value { color: var(--ivory); }

.snag-note {
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  font-style: italic;
  font-family: var(--serif);
  max-width: 640px;
}

/* THREE POWERS */
.powers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 56px;
}

.power-card {
  background: var(--bg-deep);
  padding: 48px 36px;
  transition: background 0.3s;
  position: relative;
}
.power-card:hover { background: var(--bg-card); }

.power-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.power-card:nth-child(1)::before { background: var(--gold); }
.power-card:nth-child(2)::before { background: var(--ice); }
.power-card:nth-child(3)::before { background: #7c3aed; }

.power-number {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  color: var(--border);
  line-height: 1;
  margin-bottom: 24px;
}

.power-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 16px;
}

.power-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.power-engine {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* CLOCKCHAIN */
.clock-stats {
  display: flex; gap: 56px; margin-top: 56px; flex-wrap: wrap;
}

.clock-stat-value {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -1px;
}
.clock-stat-value.gold { color: var(--gold); }
.clock-stat-value.ice { color: var(--ice); }
.clock-stat-value.ivory { color: var(--ivory); }

.clock-stat-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 6px;
}

/* GRAPH VIZ */
.graph-section {
  margin-top: 64px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 56px;
}

.graph-title {
  font-family: var(--mono);
  font-size: 10px; color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 36px;
}

.graph-chain {
  display: flex; align-items: stretch; gap: 0;
}

.graph-node {
  flex: 1;
  padding: 20px 24px;
  border: 1px solid var(--border);
  position: relative;
  text-align: center;
}

.graph-node:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -20px; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 1px;
  background: var(--gold-dim);
  z-index: 1;
}

.graph-node-name {
  font-family: var(--mono);
  font-size: 12px; font-weight: 500;
  margin-bottom: 6px;
}

.graph-node-role {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
}

.graph-node.flash-n .graph-node-name { color: var(--gold); }
.graph-node.pro-n .graph-node-name { color: var(--ice); }
.graph-node.clock-n .graph-node-name { color: #7c3aed; }
.graph-node.bench-n .graph-node-name { color: #059669; }
.graph-node.proteus-n .graph-node-name { color: #db2777; }

.graph-loop {
  margin-top: 28px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--text-secondary);
  font-style: italic;
  display: flex; align-items: center; gap: 12px;
}

.graph-loop-icon {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 18px;
  font-style: normal;
}

/* SYNTHESIZER */
.synth-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 56px;
}

.synth-panel {
  background: var(--bg-deep);
  padding: 48px;
}

.synth-panel-title {
  font-family: var(--mono);
  font-size: 10px; color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 24px;
}

.mode-list { list-style: none; }

.mode-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 110px 1fr;
  gap: 20px; align-items: baseline;
}
.mode-item:last-child { border-bottom: none; }

.mode-name {
  font-family: var(--mono);
  font-size: 12px; font-weight: 500;
  color: var(--ivory);
  letter-spacing: 0.5px;
}

.mode-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.mechanism-count {
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.mechanism-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.mech-example {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  padding: 10px 14px;
  background: rgba(0,0,0,0.03);
  border-left: 2px solid var(--border);
  margin-bottom: 4px;
  display: flex; justify-content: space-between;
  letter-spacing: 0.3px;
}
.mech-example span { color: var(--text-secondary); }

/* OSS */
.oss-grid {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.oss-card {
  background: var(--bg-deep);
  padding: 36px;
  transition: background 0.3s;
}
.oss-card:hover { background: var(--bg-card); }

.oss-name {
  font-family: var(--mono);
  font-size: 14px; font-weight: 500;
  margin-bottom: 10px;
}

.oss-role {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.oss-tag {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* FIDELITY CALLOUT */
.fidelity-callout {
  margin-top: 64px;
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  padding: 56px;
  background: linear-gradient(135deg, rgba(154,111,34,0.05) 0%, transparent 60%);
}

.fidelity-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--ivory);
  margin-bottom: 16px;
}

.fidelity-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 700px;
}

/* USE CASES */
.use-cases {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 56px;
}

.use-case {
  background: var(--bg-deep);
  padding: 44px;
  transition: background 0.3s;
}
.use-case:hover { background: var(--bg-card); }

.use-case-title {
  font-family: var(--serif);
  font-size: 20px; font-weight: 600;
  color: var(--ivory);
  margin-bottom: 12px;
}

.use-case-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.use-case-link {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.use-case-link:hover { color: var(--gold-bright); }

/* LABS */
.labs-section {
  padding: 140px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.labs-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 56px;
}

.labs-col {
  background: var(--bg-deep);
  padding: 48px;
}

.labs-col-header {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.labs-col:first-child .labs-col-header { color: var(--gold); }
.labs-col:last-child .labs-col-header { color: var(--ice); }

.labs-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.labs-item:last-child { border-bottom: none; }

.labs-item-name {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ivory);
  margin-bottom: 4px;
}

.labs-item-status {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.labs-item-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  margin-top: 8px;
}

.tag-live { background: rgba(5,150,105,0.10); color: #059669; border: 1px solid rgba(5,150,105,0.2); }
.tag-alpha { background: var(--gold-glow); color: var(--gold); border: 1px solid rgba(154,111,34,0.2); }
.tag-dev { background: var(--ice-glow); color: var(--ice); border: 1px solid rgba(26,122,154,0.2); }
.tag-research { background: rgba(109,40,217,0.10); color: #7c3aed; border: 1px solid rgba(109,40,217,0.2); }

.labs-vision {
  margin-top: 40px;
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 700px;
}

/* API WAITLIST */
.api-waitlist {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
}

.waitlist-inner {
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  padding: 40px 48px;
  background: linear-gradient(135deg, rgba(154,111,34,0.06) 0%, rgba(26,122,154,0.03) 100%);
  display: flex;
  align-items: center;
  gap: 48px;
}

.waitlist-text { flex: 1; }

.waitlist-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 10px;
}

.waitlist-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ivory);
  margin-bottom: 8px;
}

.waitlist-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 440px;
}

.waitlist-form {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.waitlist-input {
  font-family: var(--mono);
  font-size: 12px;
  padding: 12px 16px;
  background: var(--bg-void);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-primary);
  width: 220px;
  outline: none;
  transition: border-color 0.25s;
}

.waitlist-input::placeholder { color: var(--text-dim); }
.waitlist-input:focus { border-color: var(--gold-dim); }

.waitlist-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.waitlist-btn:hover {
  background: var(--gold);
  color: var(--bg-void);
}

.waitlist-success {
  font-family: var(--mono);
  font-size: 12px;
  color: #059669;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .api-waitlist { padding: 60px 20px; }
  .waitlist-inner {
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    align-items: flex-start;
  }
  .waitlist-form { width: 100%; flex-direction: column; }
  .waitlist-input { width: 100%; }
}

/* CTA SECTION */
.cta-section {
  text-align: center;
  padding: 140px 48px 80px;
  max-width: 800px;
  margin: 0 auto;
}

.cta-section .section-title { max-width: 100%; margin: 0 auto; }

.cta-buttons {
  display: flex; gap: 20px; justify-content: center;
  margin-top: 48px; flex-wrap: wrap;
}

.cta-buttons a {
  padding: 16px 40px;
  border-radius: 2px;
  font-size: 12px; font-weight: 500;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.25s;
}

.cta-buttons .primary { background: var(--gold); color: var(--bg-void); border: 1px solid var(--gold); }
.cta-buttons .primary:hover { background: var(--gold-bright); }
.cta-buttons .secondary { border: 1px solid var(--border); color: var(--text-primary); }
.cta-buttons .secondary:hover { border-color: var(--text-dim); }
.cta-buttons .tertiary { color: var(--text-secondary); border: none; }
.cta-buttons .tertiary:hover { color: var(--ivory); }

/* CLOSING */
.closing {
  text-align: center;
  padding: 80px 48px 48px;
  max-width: 740px;
  margin: 0 auto;
}

.closing p {
  font-family: var(--serif);
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 400;
  color: var(--text-dim);
  line-height: 1.7;
  font-style: italic;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 72px 48px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-about {
  font-size: 13px; color: var(--text-dim);
  line-height: 1.8; max-width: 320px;
  font-family: var(--serif);
  font-style: italic;
}

.footer-col-title {
  font-family: var(--mono);
  font-size: 9px; text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 12px; color: var(--text-dim);
  text-decoration: none; padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--ivory); }

.footer-bottom {
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 10px; color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* TWGF GRAPH CONTAINERS */
.twgf-container {
  width: 100%;
  max-width: 920px;
  margin: 16px auto 0;
}

.twgf-svg {
  width: 100%;
  height: auto;
}

.twgf-edge {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}

.twgf-edge.animated {
  animation: drawEdge 1.8s ease-out forwards;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .nav-inner { padding: 14px 20px; }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0; right: -280px;
    width: 280px; height: 100vh;
    flex-direction: column;
    /* Fully opaque, not 0.99: backdrop-filter is ignored on some mobile browsers,
       and a July audit found hero text bleeding through this drawer. Nothing behind
       it should ever be legible. */
    background: #f8f6f1;
    backdrop-filter: blur(24px);
    padding: 80px 32px 40px;
    gap: 24px;
    transition: right 0.3s ease;
    z-index: 200;
    border-left: 1px solid var(--border);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30,25,20,0.45);
    z-index: 199;
  }

  .nav-overlay.open {
    display: block;
  }

  .tagline-sentence {
    white-space: normal;
    text-wrap: balance;
  }

  /* TWGF mobile scroll */
  .twgf-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .twgf-container .twgf-svg {
    min-width: 600px;
  }
  .use-case .twgf-container .twgf-svg {
    min-width: 280px;
  }

  section { padding: 80px 20px; }
  .hero { padding: 100px 20px 60px; }
  .hero-modules { grid-template-columns: 1fr; }
  .hero-mod-copy { grid-row: auto; padding: 32px 24px; text-align: center; }
  .hero-mod-copy .hero-badges { justify-content: center; }
  .hero-mod-copy .hero-ctas { justify-content: center; }
  .hero-headline { font-size: clamp(28px, 7vw, 40px); }
  .hero-mod-graph { padding: 16px; }
  .tagline-sentence { white-space: normal; }
  .step-interop-flow { gap: 8px; }
  .interop-node { font-size: 11px; padding: 6px 12px; }
  .tp-body { grid-template-columns: 1fr; }
  .tp-scene { border-right: none; border-bottom: 1px solid var(--border); }
  .step-block { padding: 24px 20px; }
  .snag-grid, .synth-grid { grid-template-columns: 1fr; }
  .oss-grid { grid-template-columns: 1fr; }
  .vibe-examples { grid-template-columns: 1fr; }
  .vibe-section { padding: 60px 20px 80px; }
  .use-cases { grid-template-columns: 1fr; }
  .labs-columns { grid-template-columns: 1fr; }
  .graph-chain { flex-direction: column; }
  .graph-node:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .labs-section { padding: 80px 20px; }
  .cta-section { padding: 80px 20px 60px; }
  .closing { padding: 60px 20px 40px; }
  footer { padding: 48px 20px 32px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badges { gap: 16px; }
}

/* HERO PILLS */
.hero-mod-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-void);
  border-top: 1px solid var(--border);
}

.hero-pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.hero-pill-action {
  color: var(--gold);
  border-color: rgba(154,111,34,0.25);
  cursor: pointer;
  transition: background 0.2s;
}

.hero-pill-action:hover {
  background: rgba(154,111,34,0.08);
}

.hero-mod-image[role="button"] {
  cursor: pointer;
}

/* GRAPH ZOOM */
.graph-zoom-container {
  overflow: hidden;
  cursor: grab;
  position: relative;
}

.graph-zoom-container:active {
  cursor: grabbing;
}

.graph-zoom-container .tree-svg {
  transform-origin: 0 0;
  transition: none;
}

.graph-zoom-hint {
  font-size: 9px;
  color: var(--text-dim);
  opacity: 0.5;
  margin-left: 8px;
  text-transform: none;
  letter-spacing: 0;
}

/* TIMEPOINT MODAL */
.tp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,8,13,0.92);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: modalFadeIn 0.25s ease-out;
}

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

.tp-modal {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 6px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideUp 0.3s ease-out;
}

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

.tp-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 28px;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s;
}

.tp-modal-close:hover {
  color: var(--ivory);
}

.tp-modal-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
  border-radius: 6px 6px 0 0;
}

.tp-modal-body {
  padding: 24px 28px 32px;
}

.tp-modal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tp-modal-pills .hero-pill {
  font-size: 10px;
}

.tp-modal-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--ivory);
  margin: 0 0 12px;
  line-height: 1.3;
}

.tp-modal-desc {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.85;
  font-style: italic;
  margin: 0 0 24px;
}

.tp-modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.tp-modal-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.tp-modal-meta-label {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.tp-modal-meta-val {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-primary);
}

.tp-modal-path {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--bg-void);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  word-break: break-all;
  line-height: 1.6;
}

/* Explorer "View Details" button */
.tp-view-details {
  display: block;
  text-align: center;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s;
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  width: 100%;
}

.tp-view-details:hover {
  background: rgba(154,111,34,0.06);
}

@media (max-width: 768px) {
  .tp-modal-overlay { padding: 16px; }
  .tp-modal { max-height: 95vh; }
  .tp-modal-meta { grid-template-columns: 1fr; }
  .graph-zoom-hint { display: none; }
  .hero-mod-pills { padding: 8px 10px; }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .hero-epigraph,
  .hero-headline,
  .hero-tagline,
  .hero-sub,
  .hero-badges,
  .hero-ctas { animation: none; opacity: 1; transform: none; }
  .tree-edge, .tree-edge-shimmer { animation: none; stroke-dashoffset: 0; }
  .tree-node-root, .tree-node-gold, .tree-node-ice, .tree-node-dim { animation: none; }
  .tree-traveler { display: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* Footer link row injected server-side on pages whose footer is otherwise just a
   copyright line — see FOOTER_LINKS in server.js. */
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; max-width: 900px; margin: 0 auto 14px; padding: 0 24px; }
.footer-links a { font-family: var(--mono); font-size: 11px; color: var(--text-dim); text-decoration: none; letter-spacing: 0.4px; }
.footer-links a:hover { color: var(--gold); }
/* Disclosure text, so it is held to WCAG AA like body copy. It was 10.5px in
   --text-dim at opacity .75, which paints #b3aba2 on ivory: 2.21:1. The opacity
   is gone rather than compensated for — a stacked alpha is why the declared
   colour and the painted one disagreed in the first place. */
.footer-ledger { font-family: var(--mono); font-size: 12px; color: #7d7368; text-align: center; margin: 0 0 18px; }


/* Blog/journal cards — shared, since the homepage journal section reuses them.
   These lived only in blog.html, so the homepage rendered them as bare links. */
.blog-list { max-width: 800px; margin: 0 auto; padding: 0 48px 60px; }
.blog-card { border: 1px solid var(--border); border-radius: 4px; background: var(--bg-deep); overflow: hidden; margin-bottom: 24px; text-decoration: none; display: block; transition: border-color 0.3s; }
.blog-card:hover { border-color: var(--gold-dim); }
.blog-card-body { padding: 32px; }
.blog-card-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.blog-tag { font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-dim); border-radius: 2px; padding: 3px 8px; }
.blog-card-date { font-family: var(--mono); font-size: 10px; color: var(--text-dim); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; display: block; }
.blog-card-title { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ivory); margin-bottom: 12px; }
.blog-card-excerpt { font-size: 15px; color: var(--text-secondary); line-height: 1.8; font-weight: 300; }
.blog-card-read { font-family: var(--mono); font-size: 11px; color: var(--gold); letter-spacing: 0.5px; margin-top: 16px; display: inline-block; }
.blog-divider { max-width: 800px; margin: 20px auto; padding: 0 48px; }
.blog-divider-label { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); border-top: 1px solid var(--border); padding-top: 24px; }
.blog-list, .blog-magnet, .blog-divider { padding: 0 20px; }
.blog-card-body { padding: 24px; }
