/* ============================================================
   Hope Town AI — visual system v2
   Dark editorial, sharpened. Near-black layered surfaces,
   large Inter display type, mono labels, orange accent for
   brand, a cool cyan borrowed from the robot's eyes for the
   "AI" signal. Motion is scroll- and pointer-driven, never
   decorative.
   ============================================================ */

/* -- Tokens -------------------------------------------------- */
:root {
  /* surfaces */
  --bg:          #08080b;
  --bg-raise:    #0e0e13;
  --paper:       #f4f2ed;

  /* accent — brand orange */
  --accent:        #e87722;
  --accent-bright: #ff8c33;
  --accent-deep:   #c9631a;

  /* secondary — robot cyan, used for glow and AI cues only */
  --cyan:      #8fe9fb;
  --cyan-deep: #3ea6c4;

  /* ink */
  --ink:             #ffffff;
  --ink-muted:       #9c9ca6;
  --ink-dim:         #6e6e78;
  --ink-paper:       #0a0a0c;
  --ink-paper-muted: #55555f;

  /* rules */
  --line:       rgba(255, 255, 255, 0.10);
  --line-soft:  rgba(255, 255, 255, 0.06);
  --line-paper: rgba(10, 10, 15, 0.12);

  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --maxw:    1240px;
  --nav-h:   76px;

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* -- Reset --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* -- Typography ---------------------------------------------- */
h1, h2, h3, h4 { color: inherit; font-weight: 700; }

.display {
  font-size: clamp(2.75rem, 6.4vw, 5.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.99;
}

h2, .h2 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h3 {
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p { max-width: 62ch; }
p + p { margin-top: 1.15rem; }

.lead {
  font-size: clamp(1.125rem, 1.55vw, 1.4375rem);
  line-height: 1.5;
  max-width: 46ch;
  letter-spacing: -0.01em;
  color: #cbcbd4;
}
.band-paper .lead { color: #3d3d46; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}
.band-paper .eyebrow { color: #83838d; }

.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.8s var(--ease) infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232, 119, 34, 0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(232, 119, 34, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 119, 34, 0); }
}

.measure { max-width: 62ch; }
.tight   { max-width: 20ch; }
.tighter { max-width: 16ch; }

/* -- Layout -------------------------------------------------- */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 2rem;
  width: 100%;
}

section { padding-block: clamp(5rem, 10vw, 9rem); position: relative; }

.band-dark  { background: var(--bg);       color: var(--ink); }
.band-raise { background: var(--bg-raise); color: var(--ink); }
.band-paper { background: var(--paper);    color: var(--ink-paper); }
.band-paper h1, .band-paper h2, .band-paper h3 { color: var(--ink-paper); }
.band-dark p, .band-raise p { color: var(--ink-muted); }
.band-paper p { color: var(--ink-paper-muted); }
.band-raise + .band-dark, .band-dark + .band-raise { border-top: 1px solid var(--line-soft); }

.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

/* film grain over the dark bands */
.noise { position: relative; isolation: isolate; }
.noise::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0; opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
.noise > * { position: relative; z-index: 1; }

/* -- Skip link ----------------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--accent); color: #fff; padding: 0.75rem 1.25rem;
  font-size: 0.875rem; font-weight: 600;
}
.skip:focus { left: 1rem; top: 1rem; }

/* -- Scroll progress ----------------------------------------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 200; pointer-events: none;
}
.progress span {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: left center;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-bright), var(--cyan));
}

/* -- Navigation ---------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.45s var(--ease), border-color 0.45s var(--ease),
              transform 0.5s var(--ease), height 0.45s var(--ease);
}
.nav.scrolled {
  height: 64px;
  background: rgba(8, 8, 11, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line-soft);
}
.nav.hidden { transform: translateY(-100%); }
.nav .container { display: flex; align-items: center; gap: 2rem; }

/* brand lockup: robot mark + wordmark */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; flex: none; }
.brand .mark {
  width: 34px; height: 34px; flex: none;
  filter: drop-shadow(0 0 10px rgba(143, 233, 251, 0.28));
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
}
.brand:hover .mark {
  transform: translateY(-2px) rotate(-4deg);
  filter: drop-shadow(0 0 16px rgba(143, 233, 251, 0.5));
}
.brand .word {
  height: 22px; width: auto;
  filter: brightness(0) invert(1);   /* wordmark reads white on dark */
}

.nav-links { display: flex; align-items: center; gap: 2.25rem; margin-left: auto; list-style: none; }
.nav-links a {
  position: relative;
  font-size: 0.9375rem; font-weight: 500; color: #d6d6de;
  padding-block: 4px;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent-bright);
  transform: scaleX(0); transform-origin: right center;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left center; }
.nav-links a[aria-current="page"] { color: var(--accent-bright); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 600;
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--line);
  color: #fff;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-left: auto;
  align-items: center; justify-content: center;
}
.nav-toggle .bars { display: block; width: 22px; height: 12px; position: relative; }
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: #fff;
  transition: transform 0.4s var(--ease), top 0.3s var(--ease);
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars::after  { top: 10px; }
.nav.open .nav-toggle .bars::before { top: 5px; transform: rotate(45deg); }
.nav.open .nav-toggle .bars::after  { top: 5px; transform: rotate(-45deg); }

.nav-panel {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(8, 8, 11, 0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: calc(var(--nav-h) + 2rem) 1.5rem 2.5rem;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.nav-panel.open { opacity: 1; visibility: visible; }
.nav-panel a {
  font-size: clamp(1.75rem, 8vw, 2.75rem);
  font-weight: 700; letter-spacing: -0.03em;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s var(--ease) var(--d, 0s), transform 0.6s var(--ease) var(--d, 0s), color 0.25s var(--ease);
}
.nav-panel.open a { opacity: 1; transform: none; }
.nav-panel a:hover { color: var(--accent-bright); }
.nav-panel .panel-foot {
  margin-top: auto; padding-top: 2rem;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-dim);
  display: flex; align-items: center; gap: 0.75rem;
}
.nav-panel .panel-foot img { width: 30px; height: 30px; }

/* -- Buttons ------------------------------------------------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1.0625rem 2.125rem;
  font-size: 0.9375rem; font-weight: 600;
  border: 1px solid transparent;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.25s var(--ease);
  will-change: transform;
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.btn:active { transform: scale(0.985); }

.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary::before { background: #fff; }
.btn-primary:hover { color: var(--accent-deep); border-color: #fff; }
.btn-primary:hover::before { transform: translateY(0); }

.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost::before { background: #fff; }
.btn-ghost:hover { color: var(--ink-paper); border-color: #fff; }
.btn-ghost:hover::before { transform: translateY(0); }

.band-paper .btn-ghost { color: var(--ink-paper); border-color: rgba(10, 10, 15, 0.28); }
.band-paper .btn-ghost::before { background: var(--ink-paper); }
.band-paper .btn-ghost:hover { color: var(--paper); border-color: var(--ink-paper); }

.actions { display: flex; flex-wrap: wrap; gap: 0.875rem; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.9375rem; font-weight: 600; color: inherit;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.arrow-link::after { content: "\2192"; }
.arrow-link:hover { color: var(--accent-bright); gap: 0.8rem; }
.band-paper .arrow-link:hover { color: var(--accent-deep); }

.link { border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color 0.25s var(--ease); }
.link:hover { color: var(--accent-bright); }
.band-paper .link:hover { color: var(--accent-deep); }

/* -- Hero ---------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vw, 6rem));
  padding-bottom: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  background: var(--bg);
}
.hero--home { min-height: min(94vh, 940px); display: flex; align-items: center; }

.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg .orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.5;
  transform: translate3d(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px), 0);
  transition: transform 1.4s var(--ease);
}
.orb-a {
  width: 44vw; height: 44vw; min-width: 360px; min-height: 360px;
  top: -16%; left: 44%;
  background: radial-gradient(circle, rgba(232, 119, 34, 0.5), rgba(232, 119, 34, 0) 68%);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.orb-b {
  width: 36vw; height: 36vw; min-width: 280px; min-height: 280px;
  bottom: -24%; left: -10%;
  background: radial-gradient(circle, rgba(62, 166, 196, 0.32), rgba(62, 166, 196, 0) 70%);
  animation: drift-b 26s ease-in-out infinite alternate;
}
@keyframes drift-a { from { translate: 0 0; } to { translate: -5% 7%; } }
@keyframes drift-b { from { translate: 0 0; } to { translate: 7% -6%; } }

.hero-bg .mesh {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 78%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 78%);
}

.hero-inner { position: relative; z-index: 2; }
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero .display { margin-bottom: 1.5rem; max-width: 15ch; }
.hero .lead { margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; }

/* word-by-word mask reveal (JS wraps each word) */
.split .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.split .word > i {
  display: inline-block; font-style: inherit;
  transform: translateY(106%);
  transition: transform 1s var(--ease) var(--d, 0s);
}
.split.in .word > i { transform: translateY(0); }

/* rotating audience line */
.rotate-line {
  display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-dim);
  margin-bottom: 2.5rem;
}
.rotator {
  position: relative; display: inline-block;
  height: 1.5em; overflow: hidden; vertical-align: bottom;
  color: var(--cyan);
}
.rotator b { display: block; font-weight: 500; white-space: nowrap; }
.rotator b.in-up  { animation: rot-in 0.6s var(--ease) both; }
.rotator b.out-up { animation: rot-out 0.6s var(--ease) both; position: absolute; inset: 0; }
@keyframes rot-in  { from { transform: translateY(110%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes rot-out { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-110%); opacity: 0; } }

/* -- Robot mascot -------------------------------------------- */
.bot {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
  transform: translate3d(calc(var(--px, 0) * -0.6px), calc(var(--py, 0) * -0.6px), 0);
  transition: transform 1.4s var(--ease);
}
.bot img {
  position: relative; z-index: 1;
  width: 100%; height: auto;
  animation: bob 6.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}
@keyframes bob { from { transform: translateY(-10px) rotate(-1deg); } to { transform: translateY(10px) rotate(1.5deg); } }

/* halo behind the robot — absorbs the soft edge and reads as a "signal" */
.bot::before {
  content: ""; position: absolute; z-index: 0;
  left: 50%; top: 42%;
  width: 105%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(143, 233, 251, 0.20) 0%, rgba(62, 166, 196, 0.10) 38%, transparent 66%);
  animation: halo 5.5s ease-in-out infinite alternate;
}
@keyframes halo { from { opacity: 0.65; transform: translate(-50%, -50%) scale(0.94); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }

/* thin orbit ring, a quiet nod to "AI" without a single stock icon */
.bot::after {
  content: ""; position: absolute; z-index: 0;
  left: 50%; top: 46%;
  width: 84%; aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(0deg);
  border: 1px solid rgba(143, 233, 251, 0.16);
  border-radius: 50%;
  border-top-color: rgba(143, 233, 251, 0.45);
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.bot--sm { width: min(100%, 260px); }
.bot--inline { width: 120px; }
.bot--inline img { animation-duration: 8s; filter: none; }
.bot--inline::after { display: none; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.75rem; transform: translateX(-50%);
  z-index: 2;
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-dim);
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.scroll-cue .rail { width: 1px; height: 44px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue .rail::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: var(--accent-bright);
  animation: cue 2.4s var(--ease-io) infinite;
}
@keyframes cue { 0% { top: -50%; } 60%, 100% { top: 100%; } }

/* -- Stat row ------------------------------------------------ */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.band-paper .stats { border-top-color: var(--line-paper); }
.stats > div { padding: 1.75rem 1.5rem 0 0; border-right: 1px solid var(--line); }
.band-paper .stats > div { border-right-color: var(--line-paper); }
.stats > div:last-child { border-right: none; }
.stats .n {
  font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums; color: #fff;
}
.band-paper .stats .n { color: var(--ink-paper); }
.stats .n em { font-style: normal; color: var(--accent); }
.stats .k {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-dim);
  margin-top: 0.85rem; max-width: 24ch; line-height: 1.55;
}

/* -- Marquee ------------------------------------------------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1.15rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.band-paper .marquee { border-color: var(--line-paper); }
.marquee-track { display: flex; width: max-content; animation: slide 44s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-group { display: flex; }
.marquee-track span {
  font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-muted);
  display: inline-flex; align-items: center; gap: 2.5rem; white-space: nowrap;
  padding-right: 2.5rem;
}
.band-paper .marquee-track span { color: #6c6c76; }
.marquee-track span::after { content: "\2022"; color: var(--accent); }
@keyframes slide { to { transform: translateX(-50%); } }

/* -- Cards (spotlight on hover) ------------------------------ */
.cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.band-paper .cards { background: var(--line-paper); border-color: var(--line-paper); }

.card {
  position: relative; isolation: isolate;
  background: var(--bg);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex; flex-direction: column; gap: 0.85rem;
  overflow: hidden;
}
.band-paper .card { background: var(--paper); }
.band-raise .card { background: var(--bg-raise); }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%),
              rgba(232, 119, 34, 0.15), transparent 62%);
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.card:hover::before { opacity: 1; }
.card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.6s var(--ease);
}
.card:hover::after { transform: scaleX(1); }
.card .idx {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.35rem;
}
.card p { font-size: 1rem; }
.card .arrow-link { margin-top: auto; padding-top: 1.25rem; }

/* -- Statement ----------------------------------------------- */
.statement {
  font-size: clamp(1.75rem, 3.4vw, 2.875rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.15;
  max-width: 20ch;
}
.statement em { font-style: normal; color: var(--accent); }

/* -- Sticky process ------------------------------------------ */
.pin {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.pin-rail { position: sticky; top: calc(var(--nav-h) + 6vh); }
.pin-rail .big {
  font-size: clamp(5rem, 12vw, 10rem); font-weight: 700;
  letter-spacing: -0.06em; line-height: 0.85;
  font-variant-numeric: tabular-nums; color: var(--accent);
}
.pin-rail .cap {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-dim); margin-top: 1.25rem;
}
.pin-rail .ticks { display: flex; gap: 0.5rem; margin-top: 2rem; }
.pin-rail .ticks i { width: 34px; height: 2px; background: var(--line-paper); transition: background-color 0.4s var(--ease); }
.band-dark .pin-rail .ticks i, .band-raise .pin-rail .ticks i { background: var(--line); }
.pin-rail .ticks i.on { background: var(--accent); }

.steps { list-style: none; display: grid; }
.steps > li {
  padding-block: clamp(2.25rem, 4.5vw, 3.5rem);
  border-top: 1px solid var(--line-paper);
  opacity: 0.4; transition: opacity 0.5s var(--ease);
}
.band-dark .steps > li, .band-raise .steps > li { border-top-color: var(--line); }
.steps > li:first-child { border-top: none; padding-top: 0; }
.steps > li.active { opacity: 1; }
.steps h3 { margin-bottom: 1rem; }
.steps .kicker {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.85rem;
}
.steps ul { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.6rem; }
.steps ul li {
  display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem;
  font-size: 0.9375rem; color: var(--ink-paper-muted);
}
.band-dark .steps ul li, .band-raise .steps ul li { color: var(--ink-muted); }
.steps ul li::before { content: "\2014"; color: var(--accent); }

/* -- Tabs ---------------------------------------------------- */
.tabs { margin-top: clamp(2rem, 4vw, 3rem); }
.tablist { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.band-paper .tablist { border-bottom-color: var(--line-paper); }
.tablist button {
  position: relative; text-align: left;
  padding: 1rem 0 1.15rem; margin-right: 2.5rem;
  font-size: 0.9375rem; font-weight: 600; color: var(--ink-dim);
  transition: color 0.3s var(--ease);
}
.tablist button .n {
  display: block; font-family: var(--mono); font-size: 0.625rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 0.35rem; opacity: 0.75;
}
.tablist button:hover { color: var(--ink); }
.band-paper .tablist button:hover { color: var(--ink-paper); }
.tablist button[aria-selected="true"] { color: var(--ink); }
.band-paper .tablist button[aria-selected="true"] { color: var(--ink-paper); }
.tablist button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.45s var(--ease);
}
.tablist button[aria-selected="true"]::after { transform: scaleX(1); }

.tabpanel { padding-top: clamp(2.25rem, 4.5vw, 3.5rem); }
.tabpanel[hidden] { display: none; }
.tabpanel.enter { animation: panel 0.55s var(--ease) both; }
@keyframes panel { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.track-meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem; margin: 2.25rem 0;
  padding-block: 1.75rem;
  border-block: 1px solid var(--line);
}
.band-paper .track-meta { border-color: var(--line-paper); }
.track-meta dt {
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-dim); margin-bottom: 0.6rem;
}
.track-meta dd { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-muted); }
.band-paper .track-meta dd { color: var(--ink-paper-muted); }

/* -- Accordion ----------------------------------------------- */
.acc { border-top: 1px solid var(--line); }
.band-paper .acc { border-top-color: var(--line-paper); }
.acc-item { border-bottom: 1px solid var(--line); }
.band-paper .acc-item { border-bottom-color: var(--line-paper); }
.acc-head {
  width: 100%; display: grid; grid-template-columns: 3rem 1fr 1.25rem;
  gap: 1rem; align-items: center; text-align: left;
  padding: 1.35rem 0;
  transition: color 0.3s var(--ease);
}
.acc-head:hover { color: var(--accent-bright); }
.band-paper .acc-head:hover { color: var(--accent-deep); }
.acc-head .n {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.acc-head .t { font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; }
.acc-head .sign { position: relative; width: 14px; height: 14px; justify-self: end; }
.acc-head .sign::before, .acc-head .sign::after {
  content: ""; position: absolute; background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.acc-head .sign::before { top: 6px; left: 0; width: 14px; height: 1.5px; }
.acc-head .sign::after  { left: 6px; top: 0; width: 1.5px; height: 14px; }
.acc-item.open .acc-head .sign::after { transform: rotate(90deg); opacity: 0; }
.acc-item.open .acc-head { color: var(--accent-bright); }
.band-paper .acc-item.open .acc-head { color: var(--accent-deep); }

.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }
.acc-body p { padding: 0 0 1.5rem 4rem; font-size: 1rem; }

/* -- People -------------------------------------------------- */
.people { display: grid; margin-top: clamp(2.5rem, 5vw, 4rem); }
.person {
  display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(1.25rem, 4vw, 4rem);
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
  border-top: 1px solid var(--line-paper);
  align-items: start;
}
.band-dark .person, .band-raise .person { border-top-color: var(--line); }
.person:first-child { border-top: none; padding-top: 0; }
.person .role {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.7rem;
}
.person h3 { font-size: clamp(1.625rem, 3vw, 2.25rem); }

/* -- Contact ------------------------------------------------- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start; margin-top: clamp(2.5rem, 5vw, 4rem);
}
.form-shell { border: 1px solid var(--line-paper); background: #fff; padding: 0.5rem; }
/* the GHL embed runs tall — two consent blocks plus the submit button */
.form-shell iframe { width: 100%; height: 820px; border: 0; display: block; }

.contact-details dt {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-dim); margin-bottom: 0.5rem;
}
.contact-details dd { font-size: 1.0625rem; margin-bottom: 2.25rem; line-height: 1.55; color: var(--ink-paper); }
.contact-details a:hover { color: var(--accent-deep); }

/* -- CTA ----------------------------------------------------- */
.cta h2 { margin-bottom: 1.5rem; max-width: 18ch; }
.cta .lead { margin-bottom: 2.25rem; }
/* The robot column is capped as a fraction of the row — an `auto` track would
   size to the image's intrinsic width and crush the copy into a column. */
.cta-with-bot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.42fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.cta-with-bot .bot { width: 100%; max-width: 300px; justify-self: end; }

/* -- Footer -------------------------------------------------- */
footer { background: var(--bg); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 2.25rem; }
.foot-top {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.25rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line-soft);
}
.foot-brand { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.35rem; }
.foot-brand .mark { width: 38px; height: 38px; }
.foot-brand .word { height: 20px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.foot-top p { font-size: 0.9375rem; max-width: 42ch; }
.foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.foot-nav h4 {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-dim); font-weight: 500; margin-bottom: 1rem;
}
.foot-nav ul { list-style: none; display: grid; gap: 0.65rem; }
.foot-nav a { font-size: 0.9375rem; color: #c3c3cc; transition: color 0.25s var(--ease); }
.foot-nav a:hover { color: var(--accent-bright); }

.foot-bot {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  justify-content: space-between; align-items: center;
  padding-top: 1.6rem;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-dim);
}
.foot-bot a:hover { color: var(--accent-bright); }
.to-top { display: inline-flex; align-items: center; gap: 0.5rem; transition: gap 0.3s var(--ease); }
.to-top:hover { gap: 0.75rem; }

/* -- Reveal -------------------------------------------------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s);
  will-change: opacity, transform;
}
.js [data-reveal].in { opacity: 1; transform: none; }
.count { font-variant-numeric: tabular-nums; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards .card:last-child { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(2n) { border-right: none; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 1.5rem; }
  .band-paper .stats > div:nth-child(n+3) { border-top-color: var(--line-paper); }
  .bot { width: min(100%, 340px); }
}

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-split .bot { order: -1; width: min(72%, 300px); justify-self: start; }
  .hero--home { min-height: 0; }
  .grid-2, .pin { grid-template-columns: 1fr; }
  .pin-rail { position: static; display: flex; align-items: baseline; gap: 1.5rem; }
  .pin-rail .big { font-size: 3.75rem; }
  .pin-rail .cap { margin-top: 0; }
  .pin-rail .ticks { display: none; }
  .steps > li { opacity: 1; }
  .person { grid-template-columns: 1fr; gap: 0.75rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .cta-with-bot { grid-template-columns: 1fr; }
  .cta-with-bot .bot { display: none; }
}

@media (max-width: 768px) {
  .container { padding-inline: 1.5rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .cards { grid-template-columns: 1fr; }
  .cards .card:last-child { grid-column: auto; }
  .track-meta { grid-template-columns: 1fr; gap: 1.25rem; }
  .tablist button { margin-right: 1.5rem; font-size: 0.875rem; }
  .acc-head { grid-template-columns: 2.25rem 1fr 1.25rem; gap: 0.75rem; }
  .acc-body p { padding-left: 3rem; }
  .form-shell iframe { height: 900px; }
  .scroll-cue { display: none; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-right: none; }
  .stats > div + div { border-top: 1px solid var(--line); margin-top: 1.25rem; }
  .band-paper .stats > div + div { border-top-color: var(--line-paper); }
  .btn { padding: 0.95rem 1.6rem; }
  .foot-nav { grid-template-columns: 1fr; }
}

/* -- Static mode (?static=1): no motion, everything revealed --- */
.static *, .static *::before, .static *::after {
  animation: none !important;
  transition: none !important;
}
.static [data-reveal] { opacity: 1 !important; transform: none !important; }
.static .split .word > i { transform: none !important; }
.static .steps > li { opacity: 1 !important; }

/* -- Reduced motion ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .split .word > i { transform: none; }
  .steps > li { opacity: 1; }
}
