/* ─── Shared base (from proposals/shared/base.css) ─── */

:root {
  --black: #080503;
  --bg: #0d0804;
  --bg-card: #1d1509;
  --bg-card-2: #2a2015;
  --ember: #e8651a;
  --ember-2: #ff7a2a;
  --ember-glow: #e8651a55;
  --ember-dim: #e8651a22;
  --gold: #f0b429;
  --gold-2: #ffd166;
  --gold-glow: #f0b42933;
  --cream: #f4ede0;
  --cream-2: #c8bfb0;
  --muted: #8a7a63;
  --muted-2: #5a4d3c;

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --text-base: 16px;
}

[data-text="large"] { --text-base: 18.5px; }

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

html { scroll-behavior: smooth; font-size: var(--text-base); }

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }

/* ─── Spark field ─── */
.ember-field {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}
.spark {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: floatUp var(--dur) ease-in var(--delay) infinite;
  filter: drop-shadow(0 0 4px currentColor);
}
@keyframes floatUp {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  15%  { opacity: 0.7; }
  85%  { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-80vh) scale(0.3) translateX(var(--drift)); }
}
[data-motion="off"] .spark { animation: none !important; opacity: 0 !important; }

/* ─── Lang pill ─── */
.lang-pill {
  display: inline-flex;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 100px;
  padding: 4px;
  gap: 2px;
}
.lang-pill .lang-btn {
  padding: 7px 14px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.lang-pill .lang-btn:hover { color: var(--cream); }
.lang-pill .lang-btn.is-active {
  background: var(--ember);
  color: #fff;
  box-shadow: 0 0 14px var(--ember-glow);
}

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--ember);
  color: #fff;
  padding: 10px 16px;
  border-radius: 100px;
  z-index: 999;
  text-decoration: none;
  font-size: 0.85rem;
}
.skip-link:focus { left: 16px; }

.placeholder-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(240,180,41,0.08);
  border: 1px dashed rgba(240,180,41,0.4);
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ─── HEARTH — refined cinematic dark-ember theme ─── */

:root {
  --h-bg: #0a0604;
  --h-bg-2: #150a04;
  --h-card: #1c130a;
  --h-card-2: #261b0e;
  --h-line: rgba(255, 240, 220, 0.06);
}

[data-palette="amber"] {
  --ember: #e8651a;
  --ember-2: #ff7a2a;
  --gold: #f0b429;
  --gold-2: #ffd166;
}
[data-palette="copper"] {
  --ember: #c9461a;
  --ember-2: #e25a26;
  --gold: #d18b1f;
  --gold-2: #e6a738;
  --ember-glow: rgba(201,70,26,0.35);
  --gold-glow: rgba(209,139,31,0.25);
}
[data-palette="cinder"] {
  --ember: #ff5b1f;
  --ember-2: #ff8645;
  --gold: #ffc857;
  --gold-2: #ffe0a3;
  --ember-glow: rgba(255,91,31,0.35);
  --gold-glow: rgba(255,200,87,0.25);
}

body {
  background: var(--h-bg);
}

/* ─── Cursor ember ─── */
.cursor-ember {
  position: fixed;
  width: 380px; height: 380px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(232,101,26,0.10) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
}
@media (max-width: 900px) { .cursor-ember { display: none; } }
[data-motion="off"] .cursor-ember { display: none; }

/* ─── Nav ─── */
.h-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: linear-gradient(to bottom, rgba(8,5,3,0.85) 0%, transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: padding 0.3s ease, background 0.3s ease;
}
.h-nav.scrolled {
  padding: 10px 48px;
  background: rgba(8,5,3,0.95);
  border-bottom: 1px solid var(--h-line);
}
.h-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.h-flame {
  width: 28px; height: 28px;
  display: inline-block;
  color: var(--ember);
  flex-shrink: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: 0 0 14px var(--ember);
  animation: hbreathe 2.6s ease-in-out infinite;
}
@keyframes hbreathe {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.65); opacity: 0.7; }
}
.h-nav-mid {
  display: flex; gap: 32px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (max-width: 900px) { .h-nav-mid { display: none; } }
.h-nav-mid a {
  color: var(--cream-2);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.h-nav-mid a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--ember);
  transition: width 0.3s ease;
}
.h-nav-mid a:hover { color: var(--cream); }
.h-nav-mid a:hover::after { width: 100%; }

.h-nav-right { display: flex; align-items: center; gap: 12px; }

/* ─── Hero ─── */
.h-hero {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 32px 80px;
  background: radial-gradient(ellipse 80% 55% at 50% 65%, var(--h-bg-2) 0%, #0a0503 50%, var(--h-bg) 90%);
}
.h-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 100%, var(--ember-dim) 0%, transparent 70%);
  pointer-events: none;
}
.h-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 32px;
}
.h-eyebrow::before, .h-eyebrow::after {
  content: ''; width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember));
}
.h-eyebrow::after { background: linear-gradient(-90deg, transparent, var(--ember)); }

.h-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 9rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin-bottom: 18px;
}
.h-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.h-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  color: var(--cream-2);
  margin-bottom: 56px;
  font-weight: 300;
}
.h-stats {
  display: inline-flex;
  border: 1px solid var(--h-line);
  border-radius: 100px;
  background: rgba(20,14,8,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.h-stat {
  padding: 14px 30px;
  border-right: 1px solid var(--h-line);
  text-align: center;
  min-width: 120px;
}
.h-stat:last-child { border-right: none; }
.h-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.h-stat-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 700px) {
  .h-stats { border-radius: var(--r-md); }
  .h-stat { padding: 12px 20px; min-width: 90px; flex: 1 0 40%; border-bottom: 1px solid var(--h-line); }
  .h-stat:nth-last-child(-n+2) { border-bottom: none; }
  .h-stat-num { font-size: 1.3rem; }
}

.h-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-fire {
  padding: 16px 36px;
  background: var(--ember);
  border: none;
  border-radius: 100px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 30px var(--ember-glow);
  min-height: 48px;
}
.btn-fire:hover {
  background: var(--ember-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px var(--ember-glow);
}
.btn-ghost {
  padding: 16px 30px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  color: var(--cream-2);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.3s ease;
  min-height: 48px;
}
.btn-ghost:hover {
  border-color: var(--cream-2);
  color: var(--cream);
  transform: translateY(-2px);
}

/* ─── Constellation scene ─── */
.h-constellation {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 60px;
  aspect-ratio: 1100 / 540;
}
@media (max-width: 700px) {
  .h-constellation { aspect-ratio: 4 / 5; max-width: 480px; margin-bottom: 40px; }
  /* Scale up labels/tags — SVG viewBox is 1100-wide; at ~430 px the 0.39× scale
     makes the defaults (22 px / 11 px) land at ~8–4 px. Boost them here so they
     read at ≈ 19 px / 11 px after the tighter mobile viewBox is applied by JS. */
  .h-spark-label { font-size: 100px; }
  .h-spark-tag   { font-size: 56px; }
  /* Larger glowing core and centre dot */
  .h-spark-core  { transform: scale(1.5); }
  .h-spark-grp > circle:not(.h-spark-halo):not(.h-spark-core) { r: 7px; }
}
.h-constellation svg { width: 100%; height: 100%; display: block; overflow: visible; }
.h-link { stroke: rgba(255, 220, 180, 0.18); stroke-width: 1; fill: none; }
.h-spark-grp {
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.h-spark-grp:focus-visible { outline: none; }
.h-spark-grp:hover .h-spark-halo,
.h-spark-grp:focus-visible .h-spark-halo { opacity: 1; transform: scale(1.4); }
.h-spark-grp:hover .h-spark-core,
.h-spark-grp:focus-visible .h-spark-core { transform: scale(1.15); }
.h-spark-grp:hover .h-spark-label,
.h-spark-grp:focus-visible .h-spark-label { opacity: 1; transform: translateY(-4px); }
.h-spark-halo, .h-spark-core, .h-spark-label {
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1), opacity 0.3s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.h-spark-halo { opacity: 0.7; mix-blend-mode: screen; }
.h-spark-label {
  font-family: var(--font-display);
  font-size: 22px;
  fill: var(--cream, #f6ecdf);
  text-anchor: middle;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.h-spark-tag {
  font-family: var(--font-body);
  font-size: 11px;
  fill: rgba(245, 220, 180, 0.55);
  text-anchor: middle;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0.85;
}
.h-pulse { animation: hPulse 4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.h-pulse.alt { animation-duration: 5s; animation-delay: 0.6s; }
.h-pulse.alt2 { animation-duration: 6s; animation-delay: 1.2s; }
@keyframes hPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.18); opacity: 0.95; }
}
[data-motion="off"] .h-pulse { animation: none; }
[data-motion="off"] .h-spark-grp:hover .h-spark-halo { transform: none; }
.h-future {
  fill: rgba(180,210,255,0.4);
  animation: hTwinkle 3s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.h-future.b { animation-delay: 0.8s; animation-duration: 4s; }
.h-future.c { animation-delay: 1.6s; animation-duration: 3.5s; }
.h-future.d { animation-delay: 0.4s; animation-duration: 4.5s; }
@keyframes hTwinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* ─── Family section ─── */
.h-family {
  position: relative; z-index: 2;
  padding: 140px 32px;
  background: var(--h-bg);
  border-top: 1px solid var(--h-line);
  text-align: center;
}
.h-section-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 18px;
}
.h-section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.h-section-title em { font-style: italic; color: var(--gold); }
.h-section-intro {
  max-width: 580px; margin: 0 auto 64px;
  color: var(--cream-2);
  font-size: 1rem;
  line-height: 1.75;
}

.h-ring {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) { .h-ring { grid-template-columns: 1fr; gap: 16px; max-width: 460px; } }

.h-portrait {
  position: relative;
  background: linear-gradient(180deg, var(--h-card) 0%, var(--h-bg-2) 100%);
  border: 1px solid var(--h-line);
  border-radius: var(--r-xl);
  padding: 36px 30px 32px;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column; align-items: center;
  gap: 14px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1), border-color 0.3s ease, box-shadow 0.4s ease;
}
.h-portrait::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 100%, var(--ember-dim) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.h-portrait:hover {
  transform: translateY(-6px);
  border-color: rgba(232,101,26,0.4);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 60px var(--ember-dim);
}
.h-portrait:hover::before { opacity: 1; }

.h-avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--cream);
  background: radial-gradient(circle at 30% 30%, var(--h-card-2), var(--h-bg-2));
  border: 1px solid var(--h-line);
  margin-bottom: 6px;
}
.h-avatar::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--ember), var(--gold), var(--ember-2), var(--gold-2), var(--ember));
  z-index: -1;
  opacity: 0.5;
  filter: blur(8px);
  animation: ring 12s linear infinite;
}
@keyframes ring { to { transform: rotate(360deg); } }
[data-motion="off"] .h-avatar::before { animation: none; }

.h-portrait[data-member="alex"] .h-avatar::before { opacity: 0.4; }
.h-portrait[data-member="katya"] .h-avatar::before {
  background: conic-gradient(from 0deg, #f0b429, #ff8b6a, #ffd9c0, #f0b429);
  opacity: 0.4;
}
.h-portrait[data-member="daniil"] .h-avatar::before {
  background: conic-gradient(from 0deg, #3a82d6, #6db3f0, #9ed8ff, #3a82d6);
  opacity: 0.5;
}

.h-portrait-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: -0.005em;
}
.h-portrait-tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
}
.h-portrait-line {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--cream-2);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 240px;
  font-weight: 300;
}
.h-portrait-cta {
  margin-top: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.h-portrait:hover .h-portrait-cta .arr { transform: translateX(4px); }
.arr { transition: transform 0.3s ease; display: inline-block; }

/* ─── Meaning ─── */
.h-meaning {
  position: relative; z-index: 2;
  padding: 120px 32px;
  text-align: center;
  background: var(--h-bg-2);
  border-top: 1px solid var(--h-line);
}
.h-meaning-body {
  font-size: 1.05rem;
  color: var(--cream-2);
  line-height: 1.85;
  max-width: 580px;
  margin: 0 auto;
}
.h-divider {
  display: flex; align-items: center; gap: 18px;
  justify-content: center;
  margin: 48px auto 0;
  max-width: 320px;
}
.h-divider::before, .h-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember-glow));
}
.h-divider::after { background: linear-gradient(-90deg, transparent, var(--ember-glow)); }
.h-divider-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 12px var(--ember);
}

/* ─── Adventures ─── */
.h-adventures {
  position: relative; z-index: 2;
  padding: 120px 32px;
  background: var(--h-bg);
  border-top: 1px solid var(--h-line);
}
.h-section-intro-row {
  max-width: 1100px;
  margin: 0 auto 64px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.h-section-intro-row .h-section-eyebrow,
.h-section-intro-row .h-section-title {
  text-align: left;
  margin: 0;
}
.h-section-aside {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted);
  max-width: 320px;
  font-size: 1rem;
}

.h-cards {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) { .h-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .h-cards { grid-template-columns: 1fr; } }

a.h-card {
  text-decoration: none;
  color: inherit;
}
.h-card {
  position: relative;
  padding: 36px 28px 32px;
  background: var(--h-card);
  border: 1px solid var(--h-line);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), border-color 0.3s ease, background 0.3s ease;
}
.h-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.h-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,101,26,0.3);
  background: var(--h-card-2);
}
.h-card:hover::before { opacity: 1; }
.h-card-icon {
  width: 36px; height: 36px;
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--ember-dim);
  color: var(--ember);
}
.h-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 12px;
}
.h-card-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ─── Home card trigger (button variant) ─── */
.h-card.is-home-trigger {
  cursor: pointer;
  text-align: left;
  background: var(--h-card);
  border: 1px solid var(--h-line);
  font: inherit;
  /* button resets — match div/a card layout exactly */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  align-self: stretch;
  width: 100%;
  padding: 36px 28px 32px;
  box-sizing: border-box;
}
.h-card.is-home-trigger:hover { border-color: rgba(232, 101, 26, 0.32); }

.h-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.h-card-cta-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.h-card.is-home-trigger:hover .h-card-cta-arrow { transform: translate(2px, 4px); }

/* ─── Countries ─── */
.h-countries {
  position: relative; z-index: 2;
  padding: 100px 32px 120px;
  text-align: center;
  background: var(--h-bg-2);
  border-top: 1px solid var(--h-line);
}
.h-chips {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 48px;
  max-width: 860px;
  margin-left: auto; margin-right: auto;
}
.h-flag {
  width: 22px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,240,220,0.12), 0 2px 6px rgba(0,0,0,0.4);
  overflow: hidden;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.h-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px 9px 12px;
  background: var(--h-card);
  border: 1px solid var(--h-line);
  border-radius: 100px;
  font-size: 0.84rem;
  color: var(--cream-2);
  transition: all 0.25s ease;
}
.h-chip:hover {
  border-color: var(--ember);
  color: var(--cream);
  background: var(--ember-dim);
  box-shadow: 0 0 16px var(--ember-dim);
  transform: translateY(-2px);
}
.h-chip.more {
  border-style: dashed;
  opacity: 0.45;
  font-style: italic;
}

/* ─── Portal CTA ─── */
.h-portal {
  position: relative; z-index: 2;
  padding: 120px 32px 140px;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, #1f0d04 0%, var(--h-bg) 60%);
  border-top: 1px solid var(--h-line);
}
.h-portal-card {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(20,14,8,0.92);
  border: 1px solid rgba(232,101,26,0.22);
  border-radius: var(--r-xl);
  padding: 60px 52px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(232,101,26,0.10);
}
.h-portal-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
}
.h-portal-flame {
  position: relative;
  width: 88px; height: 112px;
  margin: 0 auto 26px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform-origin: 50% 100%;
  animation: hPortalFlameSway 4.6s ease-in-out infinite;
}
.h-portal-flame-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 -4px 10px rgba(232, 101, 26, 0.55))
          drop-shadow(0 0 22px rgba(245, 179, 102, 0.35));
  animation: hPortalFlameFlicker 2.4s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.h-portal-flame-glow {
  position: absolute;
  inset: -30px -40px -8px -40px;
  background:
    radial-gradient(ellipse 55% 60% at 50% 88%, rgba(232,101,26,0.55) 0%, rgba(232,101,26,0.18) 35%, transparent 70%),
    radial-gradient(ellipse 35% 45% at 50% 78%, rgba(245,179,102,0.55) 0%, transparent 70%);
  filter: blur(6px);
  animation: hPortalFlameGlow 3.1s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.h-portal-flame::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(232,101,26,0.85) 0%, rgba(232,101,26,0.15) 60%, transparent 100%);
  filter: blur(2px);
  animation: hPortalFlameGlow 2.2s ease-in-out infinite reverse;
}
@keyframes hPortalFlameFlicker {
  0%, 100% { transform: scale(1.00, 1.00); }
  18%      { transform: scale(1.02, 0.98); }
  35%      { transform: scale(0.99, 1.02); }
  52%      { transform: scale(1.015, 0.985); }
  72%      { transform: scale(0.985, 1.015); }
  88%      { transform: scale(1.005, 0.995); }
}
@keyframes hPortalFlameSway {
  0%, 100% { transform: rotate(-0.6deg); }
  50%      { transform: rotate(0.6deg); }
}
@keyframes hPortalFlameGlow {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .h-portal-flame,
  .h-portal-flame-img,
  .h-portal-flame-glow,
  .h-portal-flame::after { animation: none; }
}

.h-portal-flame-clone {
  will-change: transform, filter;
  transform-origin: 50% 100%;
  transition:
    transform 1.05s cubic-bezier(0.5, 0.05, 0.2, 1),
    filter   1.05s ease-out;
}
.h-portal-flame-clone .h-portal-flame-img,
.h-portal-flame-clone .h-portal-flame-glow,
.h-portal-flame-clone::after { animation: none; }
.h-portal-flame-zooming {
  transform:
    translate(calc(50vw - 50% - var(--clone-x, 0px)),
              calc(100vh - 100% - var(--clone-y, 0px)))
    scale(14);
  filter:
    drop-shadow(0 -10px 40px rgba(232,101,26,0.9))
    drop-shadow(0 0 80px rgba(245,179,102,0.7))
    brightness(1.15)
    saturate(1.1);
}
.h-portal-bloom {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(232,101,26,0.85) 0%, rgba(232,101,26,0.35) 35%, transparent 70%),
    radial-gradient(ellipse 90% 80% at 50% 100%, rgba(245,179,102,0.5) 0%, transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(10,6,4,0) 0%, rgba(10,6,4,0.6) 90%);
  transition: opacity 1.05s ease-out;
}
.h-portal-bloom-on { opacity: 1; }
html.h-portal-igniting { overflow: hidden; }
html.h-portal-igniting .h-nav,
html.h-portal-igniting main { transition: opacity 0.9s ease-out 0.1s; opacity: 0.18; }
@media (prefers-reduced-motion: reduce) {
  .h-portal-flame-clone { transition: none; }
  .h-portal-bloom { transition: none; }
}
.h-portal-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 18px;
  letter-spacing: -0.005em;
}
.h-portal-body {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 36px;
}
.btn-portal {
  display: inline-block;
  padding: 16px 36px;
  background: var(--ember);
  border: none;
  border-radius: 100px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 30px var(--ember-glow);
  min-height: 48px;
}
.btn-portal:hover {
  background: var(--ember-2);
  box-shadow: 0 10px 40px var(--ember-glow);
  transform: translateY(-2px);
}

/* ─── Footer ─── */
.h-foot {
  padding: 40px 32px;
  border-top: 1px solid var(--h-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--h-bg);
}
.h-foot .h-brand { font-size: 0.95rem; color: var(--muted); }
.h-foot p {
  font-size: 0.78rem;
  color: var(--muted-2);
  letter-spacing: 0.08em;
}

/* ─── Scroll reveals ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
[data-motion="off"] .reveal { opacity: 1; transform: none; transition: none; }

/* ─── Member page ─── */
.h-member-hero {
  position: relative; z-index: 2;
  min-height: 70vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 140px 32px 80px;
  background: radial-gradient(ellipse 70% 50% at 50% 70%, var(--h-bg-2) 0%, var(--h-bg) 80%);
}
.h-member-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 300;
  color: var(--cream);
  background: radial-gradient(circle at 30% 30%, var(--h-card-2), var(--h-bg-2));
  margin-bottom: 32px;
}
.h-member-avatar::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--ember), var(--gold), var(--ember-2), var(--gold-2), var(--ember));
  z-index: -1;
  opacity: 0.5;
  filter: blur(10px);
  animation: ring 14s linear infinite;
}
.h-member-tag {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 14px;
}
.h-member-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.h-member-name em { font-style: italic; color: var(--gold); }
.h-member-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--cream-2);
  max-width: 540px;
  font-weight: 300;
}

.h-chapters {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 32px 100px;
}
.h-chapter {
  position: relative;
  padding: 60px 0;
  border-bottom: 1px solid var(--h-line);
}
.h-chapter:first-child { padding-top: 0; }
.h-chapter:last-child { border-bottom: none; }
.h-chapter-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}
.h-chapter-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 18px;
}
.h-chapter-body {
  font-size: 1.05rem;
  color: var(--cream-2);
  line-height: 1.85;
}

.h-coming {
  text-align: center;
  padding: 60px 32px 100px;
  border-top: 1px solid var(--h-line);
  background: var(--h-bg-2);
}

/* ─── Tweaks panel ─── */
.h-tweaks-launcher {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 200;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--h-card);
  border: 1px solid var(--h-line);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 30px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
}
.h-tweaks-launcher:hover {
  border-color: var(--ember);
  color: var(--ember);
  transform: rotate(30deg);
}
.h-tweaks-panel {
  position: fixed;
  bottom: 80px; right: 22px;
  width: 280px;
  background: rgba(15,10,5,0.96);
  border: 1px solid var(--h-line);
  border-radius: var(--r-lg);
  padding: 18px 18px 14px;
  z-index: 199;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: none;
}
.h-tweaks-panel.open { display: block; animation: tweakIn 0.3s ease; }
@keyframes tweakIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.h-tweaks-title {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.h-tweak-row { margin-bottom: 14px; }
.h-tweak-row:last-child { margin-bottom: 0; }
.h-tweak-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.h-tweak-options {
  display: flex; gap: 6px;
}
.h-tweak-options button {
  flex: 1;
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--h-line);
  border-radius: 100px;
  color: var(--cream-2);
  font-size: 0.75rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s ease;
}
.h-tweak-options button:hover { color: var(--cream); }
.h-tweak-options button.on {
  background: var(--ember);
  color: #fff;
  border-color: var(--ember);
}
.h-tweak-pals {
  display: flex; gap: 8px;
}
.h-tweak-pals button {
  flex: 1; height: 32px;
  border-radius: 100px;
  border: 1px solid var(--h-line);
  cursor: pointer;
  position: relative;
}
.h-tweak-pals button.on {
  border-color: var(--cream);
  box-shadow: 0 0 0 2px var(--ember);
}
.h-pal-amber { background: linear-gradient(90deg, #e8651a, #f0b429); }
.h-pal-copper { background: linear-gradient(90deg, #c9461a, #d18b1f); }
.h-pal-cinder { background: linear-gradient(90deg, #ff5b1f, #ffc857); }

/* ─── Next fire (Camping card countdown, gated) ─── */
.h-next-trip {
  position: relative;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.h-next-trip::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 38px; height: 1px;
  background: linear-gradient(to right, var(--ember), transparent);
}
.h-nt-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.h-nt-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ember);
  position: relative;
  padding-left: 14px;
}
.h-nt-eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px var(--ember);
  animation: h-cd-blink 1.8s ease-in-out infinite;
}
.h-nt-dest {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--cream);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Locked (public) view */
.h-nt-locked {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.015);
  color: var(--cream-2);
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}
.h-nt-locked[hidden],
.h-nt-private[hidden] { display: none; }
.h-nt-locked:hover,
.h-nt-locked:focus-visible {
  border-color: rgba(232,101,26,0.55);
  background: rgba(232,101,26,0.05);
  transform: translateY(-1px);
}
.h-nt-lock-glyph {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--ember-dim);
  color: var(--ember);
  flex: none;
}
.h-nt-lock-lines {
  display: flex; flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.h-nt-lock-line {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--cream-2);
  line-height: 1.3;
}
.h-nt-lock-cta {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  transition: color 0.2s ease;
}
.h-nt-locked:hover .h-nt-lock-cta,
.h-nt-locked:focus-visible .h-nt-lock-cta {
  color: var(--ember-2, #ff7a2a);
}

/* Family (private) view — countdown */
.h-nt-private { display: block; }
.h-cd-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: end;
  gap: 4px;
}
.h-cd-cell {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.h-cd-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 4.4vw, 2.1rem);
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  text-shadow: 0 0 18px var(--gold-glow);
  transition: transform 0.28s ease, color 0.28s ease;
}
.h-cd-num--sec { animation: h-cd-pulse 1s ease-in-out infinite; }
.h-cd-lbl {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.h-cd-sep {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.3rem, 3.4vw, 1.7rem);
  color: var(--ember-dim);
  align-self: start;
  padding-top: 2px;
  user-select: none;
}
.h-nt-when {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

/* Reached state */
.h-next-trip.is-now .h-cd-grid { display: none; }
.h-next-trip.is-now .h-nt-when { display: none; }
.h-next-trip.is-now .h-nt-now {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold);
  text-shadow: 0 0 20px var(--gold-glow);
}
.h-nt-now { display: none; }

@keyframes h-cd-blink {
  0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
  50%      { opacity: 0.4; transform: translateY(-50%) scale(0.85); }
}
@keyframes h-cd-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.78; }
}
[data-motion="off"] .h-cd-num--sec,
[data-motion="off"] .h-nt-eyebrow::before { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .h-cd-num--sec, .h-nt-eyebrow::before { animation: none; }
}

/* ─── Next fire inside the family portal hero ─── */
.h-next-trip--portal {
  width: 100%;
  max-width: 480px;
  margin: 28px auto 0;
  border-top-color: rgba(255,255,255,0.10);
}
.h-next-trip--portal .h-nt-head {
  justify-content: center;
  gap: 16px;
}
.h-next-trip--portal .h-nt-when { text-align: center; }

/* ─── Mobile portal icon (hidden on desktop ≥ 900px) ─── */
.h-nav-portal-icon {
  display: none;
  align-ite