/* Landing page. Shared tokens and form styles live in styles.css. */
:root {
  --band-green: #2F4B45;
  --band-green-ink: #F4EEE4;
  --band-ochre: #E2B657;
  --band-ochre-ink: #231C14;
  --band-ink: #1E1915;
  --band-ink-text: #F4EEE4;
  --band-ink-muted: #B7AA9B;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --band-green: #1F302C;
    --band-ochre: #D9AE5B;
    --band-ink: #0F0D0B;
  }
}
:root[data-theme="dark"] {
  --band-green: #1F302C;
  --band-ochre: #D9AE5B;
  --band-ink: #0F0D0B;
}

body.home { padding: 0; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.kicker {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 32px;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
}
@media (min-width: 720px) { .topbar { padding: 14px 40px; } }
.topbar .brand { font-size: 1.35rem; }
.topbar .brand .mark { width: 40px; }
.topbar nav { display: flex; align-items: center; gap: 22px; font-size: 0.9rem; }
.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a:hover { color: var(--ink); }
.topbar .pill {
  color: var(--accent-ink);
  background: var(--accent);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
}
.topbar .pill:hover { color: var(--accent-ink); opacity: 0.9; }
@media (max-width: 560px) {
  .topbar nav a:not(.pill) { display: none; }
}
.topbar { transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease; }
.topbar.on-dark {
  background: color-mix(in srgb, var(--band-ink) 78%, transparent);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.topbar.on-dark .brand { color: var(--band-ink-text); }
.topbar.on-dark .bar { stroke: var(--band-ink-text); }
.topbar.on-dark nav a:not(.pill) { color: var(--band-ink-muted); }
.topbar.on-dark nav a:not(.pill):hover { color: var(--band-ink-text); }
.topbar.on-ochre {
  background: color-mix(in srgb, var(--band-ochre) 85%, transparent);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
.topbar.on-ochre .brand, .topbar.on-ochre nav a:not(.pill) { color: var(--band-ochre-ink); }
.topbar.on-ochre .bar { stroke: var(--band-ochre-ink); }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - 69px);
  max-width: 72rem;
  margin: 0 auto;
  padding: 56px 16px 96px;
  display: grid;
  align-content: center;
  gap: 48px;
}
@media (min-width: 720px) { .hero { padding: 72px 40px 112px; } }
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.35fr 1fr; align-items: center; gap: 64px; }
}
.eyebrow {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.008em;
  margin: 0;
  font-variation-settings: "opsz" 120;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero h1 em:last-of-type { color: var(--ring-b); }
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 34rem;
  margin: 28px 0 36px;
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--rule);
}
.button.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); opacity: 1; }
.hero-mark { width: min(100%, 460px); justify-self: center; overflow: visible; }
@media (max-width: 959px) {
  .hero { align-content: start; gap: 36px; }
  .hero-mark { order: -1; width: min(200px, 52vw); justify-self: start; }
  .scroll-cue { display: none; }
}
.hero-mark .parent { fill: var(--ring-a); }
.hero-mark .child { fill: var(--ring-b); }
.hero-mark .bar { stroke: var(--ink); stroke-width: 3; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--muted);
}

/* Entrance animation: the child arrives and the bond draws in. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > * { animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .js .hero-copy > :nth-child(3) { animation-delay: 0.18s; }
  .js .hero-copy > :nth-child(4) { animation-delay: 0.28s; }
  .js .hero-mark .parent { animation: fade 0.8s ease 0.2s both; }
  .js .hero-mark .child { animation: arrive 1.2s cubic-bezier(.2,.7,.2,1) 0.35s both; }
  .js .hero-mark .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.7s ease-out 1.3s forwards; }
  .js .hero-mark .draw + .draw { animation-delay: 1.45s; }
  .scroll-cue span { animation: cue 2s ease-in-out infinite; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes arrive { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: 0; } }

/* Distance: parent and child close the gap as you scroll. --p runs 0 to 1. */
.distance { --p: 1; position: relative; border-top: 1px solid var(--rule); }
.distance-stage {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 16px;
  overflow: hidden;
}
.js .distance.scrolly { height: 360vh; }
.js .distance.scrolly .distance-stage { position: sticky; top: 0; height: 100svh; min-height: 0; }
.distance .kicker { margin-bottom: 8vh; }
.distance-pair { display: flex; align-items: center; justify-content: center; }
.d-node { position: relative; border-radius: 50%; flex: none; }
.d-node.parent { width: clamp(84px, 13vw, 150px); aspect-ratio: 1; background: var(--ring-a); }
.d-node.child { width: clamp(52px, 8vw, 92px); aspect-ratio: 1; background: var(--ring-b); }
.d-node span {
  position: absolute;
  top: calc(50% + clamp(84px, 13vw, 150px) / 2 + 18px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.d-gap {
  width: calc(clamp(56px, 9vw, 110px) + (1 - var(--p)) * (min(64vw, 760px) - clamp(56px, 9vw, 110px)));
  display: grid;
  gap: clamp(8px, 1.2vw, 14px);
  margin: 0 -2px;
}
.d-gap i {
  display: block;
  height: clamp(4px, 0.55vw, 6px);
  background: var(--ink);
  transform-origin: left center;
  transform: scaleX(clamp(0, calc((var(--p) - 0.55) * 2.6), 1));
}
.distance-text {
  position: relative;
  margin-top: 12vh;
  width: min(100%, 52rem);
  min-height: 9em;
}
.distance-text p {
  position: absolute;
  inset: 0 0 auto;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.4vw, 3.3rem);
  line-height: 1.14;
  letter-spacing: -0.008em;
  font-variation-settings: "opsz" 144;
}
/* Three beats: the barriers, what Bond does about them, then the vision. */
.d-before { opacity: clamp(0, calc(1 - var(--p) * 3.6), 1); }
.d-bridge { opacity: clamp(0, min(calc((var(--p) - 0.3) * 8), calc((0.74 - var(--p)) * 12)), 1); }
.d-after { opacity: clamp(0, calc((var(--p) - 0.74) * 6), 1); }
.distance:not(.scrolly) .d-bridge { display: none; }
/* Cue: tells you the story continues, then fades once the parent and child start moving. */
.d-cue { display: none; }
.js .distance.scrolly .d-cue {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(28px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: clamp(0, calc(1 - var(--p) * 4), 1);
}
.d-arrow {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
@media (prefers-reduced-motion: no-preference) {
  .distance.at-rest .d-node.child { animation: nudge 2.4s ease-in-out infinite; }
  .d-arrow { animation: bob 1.8s ease-in-out infinite; }
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(6px) rotate(45deg); } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-14px); } }
.d-after .label {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* Values */
.values-band { padding: clamp(96px, 14vw, 180px) 0; background: var(--surface); border-top: 1px solid var(--rule); }
.acrostic { list-style: none; margin: 0; padding: 0; }
.acrostic li {
  display: grid;
  grid-template-columns: clamp(4.5rem, 14vw, 10rem) 1fr;
  gap: clamp(16px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 4vw, 44px) 0;
  border-top: 1px solid var(--rule);
}
.acrostic li:last-child { border-bottom: 1px solid var(--rule); }
.acrostic .big {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(4.5rem, 14vw, 10rem);
  line-height: 0.85;
  font-variation-settings: "opsz" 144;
}
.acrostic .big.a { color: var(--ring-a); }
.acrostic .big.b { color: var(--ring-b); }
.acrostic .big.c { color: var(--ring-c); }
.acrostic h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.acrostic p { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 40rem; }

/* How it works */
.how-band { padding: clamp(96px, 14vw, 180px) 0; background: var(--band-green); color: var(--band-green-ink); }
.how-band .kicker { color: color-mix(in srgb, var(--band-green-ink) 70%, transparent); }
.steps-big { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(40px, 6vw, 72px); }
@media (min-width: 860px) { .steps-big { grid-template-columns: repeat(3, 1fr); } }
.steps-big .num {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  line-height: 1;
  color: var(--band-ochre);
  margin-bottom: 20px;
  font-variation-settings: "opsz" 144;
}
.steps-big p {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.3;
  font-variation-settings: "opsz" 48;
}

/* 100% promise */
.promise-band { background: var(--band-ochre); color: var(--band-ochre-ink); padding: clamp(80px, 12vw, 160px) 0; overflow: hidden; }
.promise { display: grid; gap: 24px; align-items: end; }
@media (min-width: 900px) { .promise { grid-template-columns: auto 1fr; gap: 56px; } }
.hundred {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(7rem, 26vw, 20rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  font-variation-settings: "opsz" 144;
  font-variant-numeric: tabular-nums;
}
.promise-line {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.008em;
  margin-bottom: 18px;
}
.promise-sub { font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 30rem; opacity: 0.8; }

/* Pilot */
.pilot-band { padding: clamp(96px, 14vw, 180px) 0; text-align: center; }
.pilot-places {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 9vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144;
}
.pilot-places span { font-style: italic; color: var(--accent); padding: 0 0.12em; }
.pilot-line { margin-top: 24px; font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--muted); }

/* Join */
.join-band { background: var(--band-ink); color: var(--band-ink-text); padding: clamp(96px, 13vw, 168px) 0; }
.join { display: grid; gap: 48px; }
@media (min-width: 960px) { .join { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }
.join h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.012em;
  margin: 0 0 28px;
  font-variation-settings: "opsz" 144;
}
.join .lede { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--band-ink-muted); margin-bottom: 24px; }
.join .read-more { margin: 0; color: var(--band-ink-muted); }
.join .read-more a { color: var(--band-ink-text); text-decoration-color: color-mix(in srgb, var(--band-ink-text) 40%, transparent); }
.join-card {
  background: var(--bg);
  color: var(--ink);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.join-card .thanks { background: none; border: 0; padding: 24px 0; }
.join-card .thanks .mark { width: 120px; margin: 0 auto 20px; }
.join-card form .button { width: 100%; text-align: center; }

/* Footer */
.site-footer { background: var(--band-ink); color: var(--band-ink-muted); padding: 0 0 48px; max-width: none; border: 0; text-align: left; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}
.site-footer .brand { color: var(--band-ink-text); font-size: 1.3rem; }
.site-footer .brand .mark { width: 36px; }
.site-footer .bar { stroke: var(--band-ink-text); }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--band-ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--band-ink-text); }

/* Scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }
}
