/* ============================================================
   SMILE HIGH BRC — "AXIS MUNDI" 2026
   Design tokens + global system
   ------------------------------------------------------------
   The signature device is a VERTICAL gradient that reads as a
   journey from dark roots (earth) up a glowing trunk (ember)
   into a starlit canopy (cosmos). Dark-first, warm glow + grain.
   ============================================================ */

:root {
  /* — Cosmos / earth base — */
  --cosmos-900: #0B0E1A;   /* near-black indigo, the night sky base */
  --cosmos-800: #11142a;
  --loam-900:   #1A1209;   /* deep loam brown, the earth */
  --loam-800:   #241708;

  /* — Roots / earth — */
  --umber:   #6B3A1E;
  --bronze:  #B87333;
  --clay:    #C25A2B;

  /* — Trunk / ember (echoes the Man burning) — */
  --ember:   #E8743B;
  --gold:    #F2B33D;

  /* — Branches / heavens — */
  --sap:     #3E8E5A;
  --teal:    #1F8A8A;
  --violet:  #5B3A8C;

  /* — Warm starlight off-white (never clinical) — */
  --starlight: #EDE7D6;
  --star-dim:  #b9b3a3;
  --star-faint: #8a8576;

  /* — Functional — */
  --ink:        var(--starlight);
  --ink-soft:   rgba(237,231,214,0.72);
  --ink-faint:  rgba(237,231,214,0.46);
  --line:       rgba(237,231,214,0.12);
  --line-warm:  rgba(232,116,59,0.30);
  --panel:      rgba(20,17,28,0.55);
  --panel-2:    rgba(26,18,9,0.55);

  /* — Signature vertical journey gradient (roots → trunk → canopy) — */
  --axis-grad: linear-gradient(
      180deg,
      #060812 0%,            /* canopy / deep sky */
      #0B0E1A 22%,
      #170f1f 46%,           /* trunk dusk */
      #241708 74%,           /* loam */
      #0a0703 100%           /* roots, deepest earth */
  );
  --ember-grad: linear-gradient(180deg, var(--gold) 0%, var(--ember) 55%, var(--clay) 100%);
  --sap-grad:   linear-gradient(0deg, var(--umber) 0%, var(--clay) 22%, var(--ember) 46%, var(--gold) 66%, var(--sap) 85%, var(--teal) 100%);

  /* — Type — */
  --f-display: 'Cinzel', 'Times New Roman', serif;       /* engraved / totemic */
  --f-serif:   'Cormorant Garamond', Georgia, serif;     /* humanist mythic warmth */
  --f-body:    'Space Grotesk', system-ui, sans-serif;   /* grounded sans */
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;/* field-guide labels */

  /* — Rhythm — */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --glow-ember: 0 0 60px rgba(232,116,59,0.28);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--cosmos-900);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The whole page sits on the vertical journey gradient + a star canvas. */
#bg-stars {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -2; pointer-events: none;
  background: var(--axis-grad);
}
/* Grain / dust texture overlay */
#grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.05; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

h1, h2, h3 { font-weight: 600; line-height: 1.05; margin: 0; }

.section-title {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: clamp(34px, 5.2vw, 62px);
  color: var(--starlight);
  line-height: 1.04;
}
.section-lede {
  font-family: var(--f-serif);
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 62ch;
}

.section {
  position: relative;
  padding: clamp(82px, 11vw, 150px) var(--gutter);
}
.wrap { max-width: var(--maxw); margin: 0 auto; }
.center { text-align: center; }
.center .section-lede { margin-left: auto; margin-right: auto; }

/* The )'( burning man glyph, set in the display face */
.bm-glyph {
  font-family: var(--f-display);
  letter-spacing: -0.05em;
  display: inline-block;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .3s ease, background .3s ease, color .3s ease, border-color .3s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-primary {
  color: #1a0d04;
  background: var(--ember-grad);
  box-shadow: var(--glow-ember);
  font-weight: 600;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 80px rgba(242,179,61,0.45); }
.btn-ghost {
  color: var(--starlight);
  border-color: var(--line);
  background: rgba(237,231,214,0.03);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: 11.5px; }

/* ---------- card surface ---------- */
.card {
  background: linear-gradient(160deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

/* ============================================================
   NAV
   ============================================================ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding: 14px var(--gutter);
  transition: background .35s ease, border-color .35s ease, padding .35s ease;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(8,9,18,0.78);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line);
  padding-top: 10px; padding-bottom: 10px;
}
.wordmark {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.04em;
  color: var(--starlight);
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}
.wordmark .smiley {
  color: var(--gold);
  filter: drop-shadow(0 0 10px rgba(242,179,61,0.6));
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 9px 13px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--gold); background: rgba(242,179,61,0.07); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-signin {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-soft); padding: 9px 6px;
}
.nav-signin:hover { color: var(--gold); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; color: var(--starlight);
}

/* Floating driver-training button */
#driver-training {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600;
  padding: 14px 20px; border-radius: 999px;
  color: var(--starlight);
  background: linear-gradient(150deg, rgba(91,58,140,0.92), rgba(31,138,138,0.9));
  border: 1px solid rgba(237,231,214,0.18);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
  transition: transform .25s ease, box-shadow .3s ease;
}
#driver-training:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 50px rgba(31,138,138,0.4); }
#driver-training .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px var(--gutter) 132px;
  overflow: hidden;
}
#tree-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0;
}
/* desert floor glow at the base of the trunk */
#hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background: radial-gradient(120% 100% at 50% 100%, rgba(232,116,59,0.18), transparent 70%);
  z-index: 0; pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(64px, 16vw, 188px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin: 22px 0 0;
  color: var(--starlight);
  text-shadow: 0 0 70px rgba(242,179,61,0.25);
}
.hero-title .l1 { display: block; }
.hero-title .l2 {
  display: block;
  background: var(--ember-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 40px rgba(232,116,59,0.35));
}
.hero-sub {
  font-family: var(--f-serif);
  font-size: clamp(20px, 2.8vw, 31px);
  font-weight: 400; font-style: italic;
  color: var(--ink-soft);
  margin: 26px auto 0;
  max-width: 30ch;
  line-height: 1.4;
}
.hero-btns {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 40px;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--ink-faint);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue .line {
  width: 1px; height: 46px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: cue 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue { 0%,100% { opacity:.3; transform: scaleY(.6); } 50% { opacity:1; transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue .line { animation: none; } }

/* ============================================================
   TIMELINE — "Our Roots Run Deep" (growth rings up the trunk)
   ============================================================ */
#timeline { background: linear-gradient(180deg, transparent, rgba(36,23,8,0.4) 40%, transparent); }
.timeline-head { margin-bottom: clamp(54px, 8vw, 96px); }

.trunk {
  position: relative;
  max-width: 1080px; margin: 0 auto;
  /* newest-first: render rings bottom-to-top (2026 -> 2011) */
  display: flex; flex-direction: column-reverse;
}
/* the central trunk line the rings grow from */
.trunk::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--umber) 0%, var(--clay) 28%, var(--ember) 55%, var(--gold) 78%, var(--sap) 100%);
  opacity: 0.5;
}
.ring {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 90px 1fr;
  align-items: center;
  margin-bottom: 56px;
}
.ring:nth-child(even) .ring-card { grid-column: 3; }
.ring:nth-child(even) .ring-media { grid-column: 1; }
.ring-node {
  grid-column: 2;
  justify-self: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 26px;
  background: radial-gradient(circle at 50% 35%, rgba(26,18,9,0.95), rgba(11,14,26,0.95));
  border: 1px solid var(--line-warm);
  box-shadow: 0 0 0 6px rgba(232,116,59,0.05), 0 0 0 12px rgba(232,116,59,0.03), 0 0 30px rgba(232,116,59,0.18);
  z-index: 2;
}
.ring-card { grid-column: 1; }
.ring-card .yr {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.2em;
  color: var(--gold); display: block; margin-bottom: 8px;
}
.ring-card h3 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px); color: var(--starlight);
  margin-bottom: 12px; letter-spacing: 0.01em;
}
.ring-card p { color: var(--ink-soft); font-size: 16px; margin: 0; }
.ring-media { grid-column: 3; }
/* Pin all three to one grid row — even rows assign columns in reverse order
   (card->3, node->2, media->1) and CSS grid's sparse auto-placement would
   otherwise stack them into 3 rows, breaking the left-image alignment. */
.ring-card, .ring-node, .ring-media { grid-row: 1; }
.ring:nth-child(odd) .ring-card  { text-align: right; }
.ring:nth-child(odd) .ring-media { }
.ring-photo {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/3; position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.ring-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.02) contrast(1.02); }
.ring-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11,14,26,0.55));
  pointer-events: none;
}
.ring.finale .ring-node {
  width: 78px; height: 78px; font-size: 32px;
  border-color: var(--gold);
  box-shadow: 0 0 0 8px rgba(242,179,61,0.07), 0 0 0 18px rgba(62,142,90,0.05), 0 0 50px rgba(242,179,61,0.35);
}
.ring.finale .ring-card h3 {
  background: var(--ember-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============================================================
   MISSION BAND — "Be Part of the Axis"
   ============================================================ */
#mission { text-align: center; }
#mission .wrap { max-width: 860px; }
.mission-quote {
  font-family: var(--f-serif);
  font-size: clamp(28px, 4.4vw, 50px);
  line-height: 1.28; font-weight: 400;
  color: var(--starlight);
  margin: 26px 0 30px;
  text-wrap: balance;
}
.mission-quote em { font-style: italic; color: var(--gold); }

/* ============================================================
   DONATE — "Support Axis Mundi"
   ============================================================ */
.donate-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 26px;
  margin-top: 52px;
}
.donate-card { padding: clamp(26px, 3.4vw, 40px); }
.donate-card h3 {
  font-family: var(--f-display); font-weight: 700; font-size: 24px;
  color: var(--starlight); margin-bottom: 22px; letter-spacing: 0.01em;
}
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.amount-btn {
  font-family: var(--f-mono); font-size: 17px; letter-spacing: 0.04em;
  padding: 18px 8px; border-radius: 12px;
  background: rgba(237,231,214,0.04);
  border: 1px solid var(--line); color: var(--ink);
  transition: all .22s ease;
}
.amount-btn:hover { border-color: var(--gold); color: var(--gold); }
.amount-btn.active {
  background: var(--ember-grad); color: #1a0d04; border-color: transparent;
  box-shadow: var(--glow-ember); font-weight: 600;
}
.custom-amount { position: relative; margin-top: 14px; }
.custom-amount .dollar {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--ink-faint); font-family: var(--f-mono);
}
.custom-amount input {
  width: 100%; padding: 16px 18px 16px 38px;
  background: rgba(0,0,0,0.25); border: 1px solid var(--line);
  border-radius: 12px; color: var(--ink); font-family: var(--f-mono); font-size: 16px;
}
.custom-amount input:focus { outline: none; border-color: var(--gold); }
.donate-note {
  font-family: var(--f-serif); font-style: italic; font-size: 18px;
  color: var(--ink-soft); margin: 20px 0;
  min-height: 3em; line-height: 1.4;
  border-left: 2px solid var(--line-warm); padding-left: 16px;
}
.btn-paypal { width: 100%; margin-top: auto; }
.donate-card form { display: flex; flex-direction: column; height: 100%; }

/* Fundraising goal — tree filling with sap/light from the roots up */
.goal-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.goal-gauge {
  position: relative; width: 96px; height: 300px; margin: 12px auto 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, rgba(237,231,214,0.05) 0 1px, transparent 1px 30px),
    rgba(0,0,0,0.32);
  overflow: hidden;
}
.goal-fill {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--sap-grad);
  border-radius: 999px 999px 0 0;
  box-shadow: 0 -8px 40px rgba(242,179,61,0.4);
  height: 0; transition: height 1.6s cubic-bezier(.2,.7,.2,1);
}
.goal-fill::after { /* shimmering sap surface */
  content: ""; position: absolute; top: -3px; left: 0; right: 0; height: 6px;
  background: rgba(255,247,230,0.85); filter: blur(2px);
}
.goal-amount {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(26px, 3.4vw, 36px);
  color: var(--starlight);
}
.goal-amount .of { color: var(--ink-faint); font-family: var(--f-mono); font-size: 15px; font-weight: 400; }
.goal-pct { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.18em; color: var(--gold); margin-top: 6px; }
.goal-line { font-family: var(--f-serif); font-style: italic; color: var(--ink-soft); margin-top: 16px; font-size: 18px; }

/* ============================================================
   FIND US — map + plus code
   ============================================================ */
.map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; margin-top: 48px; }
.map-stage {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); min-height: 380px;
  background: radial-gradient(circle at 50% 50%, #14182e 0%, #0a0c18 70%);
}
#map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  text-align: center; z-index: 2;
}
.map-pin .glyph { font-family: var(--f-display); font-size: 30px; color: var(--gold); filter: drop-shadow(0 0 12px rgba(242,179,61,0.7)); }
.map-pin .label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--starlight); margin-top: 4px; }
.map-info { display: flex; flex-direction: column; justify-content: center; padding: clamp(26px,3.4vw,40px); }
.pluscode {
  font-family: var(--f-mono); font-size: clamp(26px, 4vw, 40px); letter-spacing: 0.06em;
  color: var(--gold); margin: 14px 0 6px; word-break: break-all;
}
.map-info .label-sm { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); }
.map-info p { color: var(--ink-soft); margin: 14px 0 20px; }
.coord-row { display: flex; flex-direction: column; gap: 3px; margin-bottom: 14px; }
.coord-row a { font-family: var(--f-mono); font-size: 18px; letter-spacing: 0.04em; color: var(--gold); text-decoration: none; word-break: break-all; }
.coord-row a:hover { text-decoration: underline; }

/* ============================================================
   MEMORIES — gallery + share form
   ============================================================ */
.memories-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 26px; margin-top: 48px; align-items: start; }
.gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.mem-card { overflow: hidden; border-radius: 12px; }
.mem-card.testimonial { padding: 22px; }
.mem-card.testimonial .quote { font-family: var(--f-serif); font-style: italic; font-size: 19px; color: var(--starlight); line-height: 1.4; }
.mem-card.testimonial .who { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-top: 14px; }
.mem-photo { aspect-ratio: 1/1; }
.mem-photo img { width:100%; height:100%; object-fit: cover; }
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center; padding: 40px 24px;
  border: 1px dashed var(--line-warm); border-radius: 12px;
}
.gallery-empty .glyph { font-size: 34px; }
.gallery-empty p { font-family: var(--f-serif); font-style: italic; font-size: 19px; color: var(--ink-soft); margin: 12px auto 0; max-width: 34ch; }

.share-form { padding: clamp(24px,3vw,34px); }
.share-form h3 { font-family: var(--f-display); font-weight: 700; font-size: 22px; color: var(--starlight); margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; background: rgba(0,0,0,0.28);
  border: 1px solid var(--line); border-radius: 10px; color: var(--ink);
  font-family: var(--f-body); font-size: 15px;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23F2B33D' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.robot-q { background: rgba(242,179,61,0.06); border: 1px solid var(--line-warm); border-radius: 10px; padding: 14px; }
.robot-q .hint { font-family: var(--f-serif); font-style: italic; color: var(--ink-soft); font-size: 15px; margin: 0 0 10px; }
.form-msg { font-family: var(--f-serif); font-style: italic; font-size: 16px; margin-top: 14px; min-height: 1.4em; }
.form-msg.ok { color: var(--sap); }
.form-msg.no { color: var(--clay); }

/* ============================================================
   SCHEDULE — date picker + events + countdown
   ============================================================ */
.countdown {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin: 34px auto 48px; text-align: center;
}
.countdown .num {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(54px, 12vw, 120px); line-height: 1;
  background: var(--ember-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 40px rgba(232,116,59,0.3));
}
.countdown .cap { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-soft); }
.countdown.burned .num { font-size: clamp(34px, 7vw, 72px); }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-bottom: 26px; }
.day-chip {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 6px; border-radius: 12px;
  background: rgba(237,231,214,0.03); border: 1px solid var(--line);
  transition: all .2s ease; text-align: center;
}
.day-chip:hover { border-color: var(--line-warm); }
.day-chip.active { background: var(--ember-grad); border-color: transparent; color: #1a0d04; box-shadow: var(--glow-ember); }
.day-chip.active .dow, .day-chip.active .dnum { color: #1a0d04; }
.day-chip .dow { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.day-chip .dnum { font-family: var(--f-display); font-weight: 700; font-size: 24px; color: var(--starlight); }
.day-chip.burn-day .dnum { color: var(--gold); }
.day-chip.burn-day::after { content: "🔥"; font-size: 12px; }

.events-panel { padding: clamp(22px,3vw,34px); min-height: 240px; }
.events-panel .panel-date { font-family: var(--f-display); font-weight: 700; font-size: 22px; color: var(--starlight); margin-bottom: 18px; }
.event-row { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.event-row:first-of-type { border-top: none; }
.event-row .etime { font-family: var(--f-mono); font-size: 13px; color: var(--gold); white-space: nowrap; min-width: 78px; letter-spacing: 0.04em; }
.event-row .etitle { color: var(--starlight); font-weight: 500; }
.event-row .edesc { color: var(--ink-soft); font-size: 14px; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer { padding: clamp(70px,9vw,110px) var(--gutter) 60px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(6,8,18,0.9)); text-align: center; }
.footer-glyph { font-family: var(--f-display); font-size: 46px; color: var(--gold); filter: drop-shadow(0 0 18px rgba(242,179,61,0.5)); }
.footer-contact { font-family: var(--f-serif); font-style: italic; font-size: clamp(20px, 2.6vw, 27px); color: var(--ink-soft); margin: 22px auto 8px; max-width: 44ch; line-height: 1.5; }
.footer-contact a { color: var(--gold); border-bottom: 1px solid var(--line-warm); }
.footer-socials { display: flex; gap: 10px; justify-content: center; margin: 28px 0 24px; flex-wrap: wrap; }
.footer-socials a { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; transition: all .2s; }
.footer-socials a:hover { color: var(--gold); border-color: var(--gold); }
.footer-fine { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-faint); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .donate-grid, .map-grid, .memories-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  #nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(8,9,18,0.97); padding: 16px var(--gutter) 24px;
    border-bottom: 1px solid var(--line); gap: 2px;
  }
  #nav.open .nav-links a { width: 100%; padding: 12px 8px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .ring { grid-template-columns: 52px 1fr; gap: 16px; }
  .trunk::before { left: 26px; }
  .ring-node { grid-column: 1; grid-row: 1; width: 52px; height: 52px; font-size: 22px; }
  .ring-card, .ring:nth-child(even) .ring-card { grid-column: 2; grid-row: 1; text-align: left !important; }
  .ring-media, .ring:nth-child(even) .ring-media { grid-column: 2; grid-row: 2; margin-top: 14px; }
  .ring.finale .ring-node { width: 60px; height: 60px; font-size: 26px; }
  .week { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  #driver-training { right: 14px; bottom: 14px; padding: 12px 16px; font-size: 11px; }
  .nav-actions .nav-signin { display: none; }
}
@media (max-width: 420px) {
  .week { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   DUSTY AI — the playa guide chat
   ============================================================ */
#dusty-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4,5,12,0.6);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
#dusty-backdrop.open { opacity: 1; pointer-events: auto; }

#dusty {
  position: fixed; top: 0; right: 0; z-index: 101;
  width: min(440px, 100vw); height: 100svh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0d1020 0%, #120c1c 60%, #1a1209 100%);
  border-left: 1px solid var(--line-warm);
  box-shadow: -30px 0 80px rgba(0,0,0,0.6);
  transform: translateX(105%);
  transition: transform .42s cubic-bezier(.22,.7,.2,1);
}
#dusty.open { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  #dusty, #dusty-backdrop { transition: none; }
}

.dusty-head {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
  background: rgba(232,116,59,0.05);
}
.dusty-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 22px;
  background: radial-gradient(circle at 50% 35%, rgba(242,179,61,0.25), rgba(11,14,26,0.9));
  border: 1px solid var(--line-warm);
  box-shadow: 0 0 22px rgba(242,179,61,0.25);
}
.dusty-id { flex: 1; min-width: 0; }
.dusty-id .name { font-family: var(--f-display); font-weight: 700; font-size: 19px; color: var(--starlight); letter-spacing: 0.02em; }
.dusty-id .role { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 7px; }
.dusty-id .role .live { width: 7px; height: 7px; border-radius: 50%; background: var(--sap); box-shadow: 0 0 8px var(--sap); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dusty-id .role .live { animation: none; } }
.dusty-close {
  background: none; border: 1px solid var(--line); border-radius: 50%;
  width: 34px; height: 34px; color: var(--ink-soft); font-size: 16px; flex: none;
  transition: all .2s;
}
.dusty-close:hover { border-color: var(--gold); color: var(--gold); transform: rotate(90deg); }

.dusty-log {
  flex: 1; overflow-y: auto; padding: 22px 20px;
  display: flex; flex-direction: column; gap: 16px;
  scrollbar-width: thin; scrollbar-color: var(--line-warm) transparent;
}
.dusty-log::-webkit-scrollbar { width: 7px; }
.dusty-log::-webkit-scrollbar-thumb { background: var(--line-warm); border-radius: 4px; }

.msg { display: flex; gap: 10px; max-width: 92%; }
.msg .bubble {
  padding: 12px 15px; border-radius: 14px; font-size: 15px; line-height: 1.5;
}
.msg.bot { align-self: flex-start; }
.msg.bot .bubble {
  background: rgba(237,231,214,0.06); border: 1px solid var(--line);
  border-top-left-radius: 4px; color: var(--ink);
}
.msg.bot .bubble strong { color: var(--gold); }
.msg.user { align-self: flex-end; }
.msg.user .bubble {
  background: var(--ember-grad); color: #1a0d04; font-weight: 500;
  border-top-right-radius: 4px;
}
.msg .mini-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 15px;
  background: radial-gradient(circle at 50% 35%, rgba(242,179,61,0.2), rgba(11,14,26,0.9));
  border: 1px solid var(--line-warm);
}
.typing { display: inline-flex; gap: 5px; align-items: center; padding: 4px 2px; }
.typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold); opacity: .4;
  animation: typing 1.2s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: .18s; }
.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typing { 0%,60%,100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

.dusty-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 12px; }
.dusty-suggest button {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em;
  padding: 9px 13px; border-radius: 999px;
  background: rgba(237,231,214,0.04); border: 1px solid var(--line); color: var(--ink-soft);
  transition: all .2s;
}
.dusty-suggest button:hover { border-color: var(--gold); color: var(--gold); }

.dusty-input {
  display: flex; gap: 10px; padding: 14px 16px 18px;
  border-top: 1px solid var(--line); align-items: flex-end;
}
.dusty-input textarea {
  flex: 1; resize: none; max-height: 120px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); font-family: var(--f-body); font-size: 15px; padding: 12px 14px; line-height: 1.4;
}
.dusty-input textarea:focus { outline: none; border-color: var(--gold); }
.dusty-send {
  flex: none; width: 46px; height: 46px; border-radius: 12px; border: none;
  background: var(--ember-grad); color: #1a0d04; font-size: 20px;
  display: grid; place-items: center; box-shadow: var(--glow-ember);
  transition: transform .2s;
}
.dusty-send:hover { transform: translateY(-2px); }
.dusty-send:disabled { opacity: .4; cursor: default; transform: none; }

/* a small floating launcher above the driver-training button */
#dusty-launch {
  position: fixed; right: 22px; bottom: 78px; z-index: 80;
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600;
  padding: 13px 19px; border-radius: 999px; color: #1a0d04;
  background: var(--ember-grad);
  box-shadow: 0 10px 40px rgba(232,116,59,0.4);
  transition: transform .25s ease, box-shadow .3s ease;
}
#dusty-launch:hover { transform: translateY(-3px) scale(1.02); }
#dusty-launch .spark { font-size: 14px; }
@media (max-width: 720px) {
  #dusty-launch { right: 14px; bottom: 64px; padding: 11px 15px; font-size: 11px; }
}
