/* ============================================
   SAGEWELL
   Dark, hairline-ruled, one 3D scene behind it all.
   ============================================ */

:root {
  --bg: #07090A;
  --bg-2: #0C1110;

  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --fog: #F2F5F1;
  --fog-2: #A8B0A6;
  --fog-3: #6A736A;

  --sage: #8FB37E;
  --sage-glow: #B8D4A8;
  --leaf: #8FCB6A;
  --leaf-glow: #C4F4A8;
  --gold: #D0913F;
  --gold-bright: #F0C37E;

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --panel: rgba(7, 9, 10, 0.70);
  --panel-open: rgba(7, 9, 10, 0.48);

  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  font-weight: 350;
  line-height: 1.65;
  color: var(--fog-2);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

::selection { background: rgba(208, 145, 63, 0.28); color: var(--fog); }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

/* ============================================
   THE SCENE
   ============================================ */

#tree-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* Darkens the edges so text stays readable over the beams. */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%, transparent 0%, rgba(7, 9, 10, 0.34) 62%, rgba(7, 9, 10, 0.78) 100%),
    linear-gradient(to bottom, rgba(7, 9, 10, 0.7) 0%, transparent 22%, transparent 80%, rgba(7, 9, 10, 0.7) 100%);
}

/* Follows the tree, which moves right of centre on wide screens. */
@media (min-width: 1100px) {
  .scrim {
    background:
      radial-gradient(ellipse 62% 70% at 68% 45%, transparent 0%, rgba(7, 9, 10, 0.34) 62%, rgba(7, 9, 10, 0.78) 100%),
      linear-gradient(to bottom, rgba(7, 9, 10, 0.7) 0%, transparent 22%, transparent 80%, rgba(7, 9, 10, 0.7) 100%);
  }
}

.page { position: relative; z-index: 2; }

/* ============================================
   TYPE
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--fog);
}

.label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fog-3);
}

.label--gold { color: var(--gold); }

.h2 { font-size: clamp(2rem, 3.6vw + 0.6rem, 3.4rem); }
.h3 { font-size: clamp(1.35rem, 1.4vw + 0.9rem, 1.9rem); }

.lede {
  font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.3rem);
  line-height: 1.6;
  color: var(--fog-2);
  max-width: 62ch;
}

p + p { margin-top: 1.1em; }

.link {
  color: var(--fog);
  border-bottom: 1px solid var(--line-2);
  transition: border-color 0.25s, color 0.25s;
}
.link:hover { color: var(--gold-bright); border-color: var(--gold); }

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  position: relative;
  padding: 120px 0;
  background: var(--panel);
  border-top: 1px solid var(--line);
  scroll-margin-top: 72px;
}

/* No backdrop-filter anywhere over the canvas. A blurred backdrop has to be
   recomputed on every frame the scene repaints, which costs more than the
   whole 3D scene does — it took this page from 60fps to about 30. Flat
   translucent panels leave the beams crisp behind the text instead. */

/* Lets more of the tree through. */
.section--open { background: var(--panel-open); }

/* Marks the section we most want people to land on. */
.section--feature { border-top: 1px solid rgba(208, 145, 63, 0.4); }

/* Breathing room where the scene is fully visible. */
.gap { height: 34vh; }
.gap--sm { height: 18vh; }

.section-head { margin-bottom: 64px; }
.section-head .label { margin-bottom: 22px; }
.section-head .lede { margin-top: 22px; }

/* ============================================
   NAV
   ============================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(7, 9, 10, 0.9);
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--fog);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog-3);
  transition: color 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--fog); }
.nav-links a.nav-cta { color: var(--gold); }
.nav-links a.nav-cta:hover { color: var(--gold-bright); }

.nav-toggle {
  display: none;
  width: 34px; height: 24px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--fog-2);
  margin: 6px 0;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid var(--line-2);
  color: var(--fog);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.btn:hover { border-color: var(--gold); color: var(--gold-bright); }

.btn--solid {
  background: var(--gold);
  border-color: var(--gold);
  color: #12100C;
}
.btn--solid:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: #12100C; }

.btn--gold { border-color: rgba(208, 145, 63, 0.55); color: var(--gold-bright); }
.btn--gold:hover { border-color: var(--gold); background: rgba(208, 145, 63, 0.1); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============================================
   CANOPY
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.canopy {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 150px 0 100px;
}
.canopy-inner { width: 100%; }

.canopy-phrase {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--fog);
}

.canopy-gloss {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--leaf-glow);
}

.canopy-note {
  margin-top: 40px;
  max-width: 46ch;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--fog-3);
}
.canopy-note .link { color: var(--fog-2); }

/* --- Finder --- */

.finder { margin-top: 44px; max-width: 420px; }
.finder .label { margin-bottom: 12px; }

.finder input {
  width: 100%;
  background: rgba(7, 9, 10, 0.6);
  border: 1px solid var(--line-2);
  color: var(--fog);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 14px 16px;
  transition: border-color 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.finder input::placeholder { color: var(--fog-3); }
.finder input:focus { outline: none; border-color: var(--leaf); }
.finder input::-webkit-search-cancel-button { filter: invert(0.6); }

.finder-count {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog-3);
  min-height: 1em;
}

.finder-results {
  margin-top: 8px;
  max-height: 210px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}
.finder-results:empty { border-top: 0; }
.finder-results li { border-bottom: 1px solid var(--line); }
.finder-results button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--fog-2);
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.4;
  padding: 11px 4px;
  cursor: pointer;
  transition: color 0.2s;
}
.finder-results button:hover,
.finder-results button:focus-visible { color: var(--leaf-glow); }

/* --- Leaf hover card --- */

.leaf-card {
  position: fixed;
  z-index: 40;
  max-width: 330px;
  padding: 14px 16px;
  background: rgba(7, 9, 10, 0.94);
  border: 1px solid rgba(143, 203, 106, 0.4);
  pointer-events: none;
  transform: translate(14px, -50%);
}
.leaf-card[hidden] { display: none; }
/* Touch has no hover, so there the card itself has to be tappable. */
.leaf-card--touch { pointer-events: auto; }
.leaf-card-name {
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--fog);
}
.leaf-card-meta {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog-3);
}
.leaf-card-go {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
}

/* A flex item shrink-wraps by default, which would centre the hero text
   instead of aligning it to the container edge. */
.hero > .container { width: 100%; }

.hero .label { color: var(--fog-2); }

.hero-title {
  font-size: clamp(3.4rem, 11vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 26px 0 0;
}

.hero-tagline {
  margin-top: 26px;
  font-size: clamp(1.1rem, 0.7vw + 1rem, 1.5rem);
  color: var(--fog-2);
  max-width: 34ch;
}

.hero .btn-row { margin-top: 44px; }

.scroll-cue {
  position: absolute;
  left: 32px;
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
}
/* An invitation rather than a label, so it drops the mono treatment. */
.scroll-cue-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fog-2);
}

.scroll-cue .rule {
  width: 46px;
  height: 1px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
}
.scroll-cue .rule::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  animation: sweep 2.6s var(--ease) infinite;
}
@keyframes sweep {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* ============================================
   STATS
   ============================================ */

.stat-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.5fr) 2fr minmax(120px, 0.6fr);
  gap: 28px;
  align-items: baseline;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.stat-row:last-child { border-bottom: 1px solid var(--line); }

.stat-number {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 3.4vw, 3.6rem);
  line-height: 1;
  color: var(--gold-bright);
  letter-spacing: -0.02em;
}

.stat-desc {
  font-size: 1rem;
  color: var(--fog-2);
  max-width: 48ch;
}

.stat-source {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog-3);
  font-style: normal;
  text-align: right;
}

.footnote {
  margin-top: 36px;
  font-size: 0.85rem;
  color: var(--fog-3);
}
.footnote a { color: var(--fog-2); border-bottom: 1px solid var(--line); }
.footnote a:hover { color: var(--gold-bright); }

/* ============================================
   FEATURES
   ============================================ */

.feature {
  display: grid;
  grid-template-columns: 64px 1fr 1.3fr;
  gap: 32px;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.feature:last-child { border-bottom: 1px solid var(--line); }

.feature-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--fog-3);
  padding-top: 6px;
}

.feature-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.feature-head svg { color: var(--sage); flex-shrink: 0; }
.feature-title { font-size: 1.45rem; }
.feature-desc { font-size: 0.98rem; color: var(--fog-2); }

/* ============================================
   PHONE PREVIEWS
   ============================================ */

.phones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  justify-items: center;
}

.phone {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 19;
  border: 1px solid var(--line-2);
  border-radius: 32px;
  background: #080B0A;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.phone--lift { transform: translateY(-28px); }

.phone::before {
  content: '';
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 62px; height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px 16px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog-3);
  border-bottom: 1px solid var(--line);
}
.app-bar strong { color: var(--fog-2); font-weight: 400; }

.app-body { flex: 1; padding: 18px 4px; display: flex; flex-direction: column; gap: 14px; }

.app-prompt {
  border-left: 1px solid var(--gold);
  padding-left: 12px;
}
.app-prompt .label { font-size: 0.58rem; margin-bottom: 6px; }
.app-prompt p { font-size: 0.82rem; line-height: 1.5; color: var(--fog-2); }

.app-lines { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.app-lines i { display: block; height: 1px; background: var(--line); }
.app-lines i:nth-child(2) { width: 82%; }
.app-lines i:nth-child(3) { width: 64%; }

.app-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.app-tag {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fog-3);
  border: 1px solid var(--line);
  padding: 5px 9px;
}
.app-tag--on { color: var(--gold); border-color: rgba(208, 145, 63, 0.4); }

/* Breathing */
.breathe {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.breathe-ring {
  width: 116px; height: 116px;
  border-radius: 50%;
  border: 1px solid rgba(184, 212, 168, 0.34);
  position: relative;
  display: grid;
  place-items: center;
}
.breathe-ring::after {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 179, 126, 0.34), transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(0.72); opacity: 0.55; }
  50%      { transform: scale(1.06); opacity: 1; }
}
.breathe-ring span {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-glow);
  z-index: 1;
}
.breathe-count {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--fog-3);
}

/* Check-in */
.checkin { display: flex; flex-direction: column; gap: 8px; }
.checkin-q { font-size: 0.86rem; color: var(--fog-2); margin-bottom: 6px; }
.checkin-opt {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
}
.checkin-opt--on { border-color: rgba(208, 145, 63, 0.45); background: rgba(208, 145, 63, 0.06); }
.checkin-word { font-size: 0.82rem; color: var(--fog); }
.checkin-opt--on .checkin-word { color: var(--gold-bright); }
.checkin-gloss {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fog-3);
}

.app-nav {
  display: flex;
  justify-content: space-around;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.app-nav span {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog-3);
}
.app-nav span.on { color: var(--gold); }

.phone-caption {
  margin-top: 20px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog-3);
}

/* ============================================
   QUOTE
   ============================================ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.quote {
  border-left: 1px solid var(--gold);
  padding-left: 28px;
  margin: 36px 0;
}
.quote p {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2vw + 0.8rem, 2.2rem);
  line-height: 1.25;
  color: var(--fog);
}
.quote footer {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog-3);
}

.directions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}
.direction {
  padding: 40px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.direction:nth-child(2n) { border-right: 0; }
.direction:nth-child(n+3) { border-bottom: 0; }
.direction .label { margin-bottom: 12px; }
.direction h3 { font-size: 1.6rem; }
.direction p { font-size: 0.92rem; margin-top: 8px; }

/* ============================================
   POLICY
   ============================================ */

.gap-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.gap-row:last-of-type { border-bottom: 1px solid var(--line); }

.gap-title { font-size: 1.55rem; }
.gap-title .num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.gap-body p { font-size: 0.98rem; }
.gap-cite {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog-3);
  border-bottom: 1px solid var(--line);
  transition: color 0.25s, border-color 0.25s;
}
.gap-cite:hover { color: var(--gold-bright); border-color: var(--gold); }

.turn {
  margin: 72px 0;
  padding: 48px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  text-align: center;
}
.turn p {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw + 0.8rem, 2.6rem);
  line-height: 1.24;
  color: var(--fog);
  max-width: 26ch;
  margin: 0 auto;
}

.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.action { background: var(--bg); padding: 34px 28px; }
.action .num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.action h3 { font-size: 1.3rem; margin: 14px 0 10px; }
.action p { font-size: 0.92rem; }

/* ============================================
   MAP
   ============================================ */

.map-link {
  display: block;
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
}
.map-link img {
  width: 100%;
  filter: grayscale(0.4) brightness(0.72) contrast(1.05);
  transition: filter 0.5s var(--ease), transform 0.8s var(--ease);
}
.map-link:hover img { filter: grayscale(0) brightness(0.9); transform: scale(1.02); }
.map-cta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 28px;
  background: linear-gradient(to top, rgba(7, 9, 10, 0.92), transparent);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog);
}

/* ============================================
   VALUES / RESOURCES
   ============================================ */

.values li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  font-size: 1rem;
  color: var(--fog-2);
}
.values li:last-child { border-bottom: 1px solid var(--line); }
.values .num { font-family: var(--mono); font-size: 0.68rem; color: var(--fog-3); padding-top: 5px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
/* Grid items default to min-width:auto, so a long unbroken URL widens the
   track past the viewport. */
.cards > *, .actions > * { min-width: 0; }

.card {
  background: var(--bg);
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.3s;
}
.card .go { overflow-wrap: anywhere; }
.card:hover { background: var(--bg-2); }
.card h3 { font-size: 1.4rem; }
.card .label { color: var(--gold); }
.card p { font-size: 0.93rem; flex: 1; }
.card .go {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog-3);
  transition: color 0.25s;
}
.card:hover .go { color: var(--gold-bright); }

/* ============================================
   WORKSHOPS
   ============================================ */

.page-hero {
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  padding: 180px 0 80px;
}
.page-hero > .container { width: 100%; }
.page-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  letter-spacing: -0.025em;
  margin-top: 24px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog-3);
  border: 1px solid var(--line);
  padding: 12px 18px;
}
.status .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.track {
  display: grid;
  grid-template-columns: 64px 1fr 1.2fr;
  gap: 32px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.track:last-of-type { border-bottom: 1px solid var(--line); }
.track h3 { font-size: 1.45rem; }
.track p { font-size: 0.96rem; }
.track .num { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--fog-3); padding-top: 7px; }

.narrow { max-width: 620px; }

/* ============================================
   FOOTER
   ============================================ */

.footer {
  position: relative;
  z-index: 2;
  background: rgba(7, 9, 10, 0.94);
  border-top: 1px solid var(--line);
  padding: 90px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 60px;
}
.footer h4 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fog-3); font-weight: 400; margin-bottom: 20px; }
.footer p { font-size: 0.92rem; max-width: 40ch; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 0.9rem; color: var(--fog-2); transition: color 0.25s; }
.footer-links a:hover { color: var(--gold-bright); }
.footer-mark { font-family: var(--serif); font-size: 1.5rem; color: var(--fog); margin-bottom: 18px; }
.footer-bottom {
  margin-top: 70px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog-3);
}

/* ============================================
   REVEAL
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .actions, .cards { grid-template-columns: 1fr; }
  .phones { grid-template-columns: 1fr; gap: 56px; }
  .phone--lift { transform: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 760px) {
  .container { padding: 0 22px; }
  .nav-inner { padding: 16px 22px; }
  .section { padding: 80px 0; }
  .gap { height: 20vh; }

  /* The <nav> collapses to zero width but stays a flex item, so without
     this space-between parks the toggle mid-header. */
  .nav-toggle { display: block; order: 3; }
  .nav-links {
    position: fixed;
    inset: 61px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(7, 9, 10, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 8px 22px 22px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); width: 100%; }

  .stat-row { grid-template-columns: 1fr; gap: 10px; }
  .stat-source { text-align: left; }
  .feature, .track { grid-template-columns: 1fr; gap: 14px; }
  .feature-num, .track .num { padding-top: 0; }
  .gap-row { grid-template-columns: 1fr; gap: 18px; }
  .directions { grid-template-columns: 1fr; }
  .direction { border-right: 0; }
  .direction:nth-child(3) { border-bottom: 1px solid var(--line); }
  .scroll-cue { left: 22px; }

  /* The tree sits directly behind the canopy copy on narrow screens. */
  .canopy-gloss, .finder .label, .canopy-note, .hero .label, .hero-tagline {
    text-shadow: 0 0 6px var(--bg), 0 0 14px var(--bg), 0 0 24px var(--bg);
  }
  .finder input { background: rgba(7, 9, 10, 0.88); }
  .turn { margin: 48px 0; padding: 36px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .breathe-ring::after, .scroll-cue .rule::after { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
