:root {
  --ink: #eaf2ed;
  --muted: #aab8b1;
  --faint: rgba(234, 242, 237, .16);
  --lime: #d7ff64;
  --coral: #fd8567;
  --navy: #07141d;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --header-h: 88px;
  --radius: 28px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--navy); -webkit-text-size-adjust: 100%; }
html.no-js, html.is-fallback { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--navy);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, blockquote, dl, dd { margin: 0; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--lime); color: var(--navy); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ───────── Layers ───────── */

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 42%, rgba(141, 213, 188, .14), transparent 42%),
    radial-gradient(circle at 20% 90%, rgba(253, 133, 103, .08), transparent 40%),
    var(--navy);
}
.stage canvas { display: block; width: 100% !important; height: 100% !important; }
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(3, 10, 15, .6) 100%);
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
main, .site-footer { position: relative; z-index: 2; }
.section-wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ───────── Loader ───────── */

.loader { display: none; }
.js .loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--navy);
}
.is-fallback .loader { display: none; }
.loader-inner { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 15px; letter-spacing: .09em; }
.loader-count { min-width: 3ch; margin-left: 18px; color: var(--muted); font-size: 12px; }
.loader-bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 48px; height: 1px; background: var(--faint); }
.loader-bar i { display: block; height: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; }

/* ───────── Header ───────── */

.wordmark { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: .09em; }
.wordmark-mark { width: 25px; height: 25px; display: flex; align-items: end; gap: 3px; transform: rotate(180deg); }
.wordmark-mark i { display: block; width: 5px; background: var(--lime); border-radius: 2px; }
.wordmark-mark i:nth-child(1) { height: 10px; }
.wordmark-mark i:nth-child(2) { height: 18px; background: var(--coral); }
.wordmark-mark i:nth-child(3) { height: 25px; }

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: transform .7s var(--ease-out); }
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -30px;
  background: linear-gradient(to bottom, rgba(7, 20, 29, .9), rgba(7, 20, 29, 0));
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-110%); }
.header-inner {
  position: relative;
  height: var(--header-h);
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.primary-nav {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--faint);
  border-radius: 99px;
  background: rgba(7, 20, 29, .45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.primary-nav a { padding: 9px 15px; border-radius: 99px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .02em; transition: color .3s, background-color .4s var(--ease-out); }
.primary-nav a:hover { color: var(--ink); }
.primary-nav a.is-active { color: var(--navy); background: var(--lime); }
.header-cta { display: inline-flex; gap: 10px; align-items: center; padding: 12px 18px; border-radius: 99px; color: var(--navy); background: var(--lime); font-size: 12px; font-weight: 700; transition: background-color .3s; }
.header-cta:hover { background: var(--ink); }
.header-cta span { font-size: 16px; line-height: 10px; }

.menu-toggle { display: none; position: relative; width: 46px; height: 46px; padding: 0; border: 1px solid var(--faint); border-radius: 50%; background: rgba(7, 20, 29, .55); cursor: pointer; }
.menu-toggle i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); transition: transform .6s var(--ease-out); }
.menu-toggle i:nth-of-type(1) { top: 19px; }
.menu-toggle i:nth-of-type(2) { top: 25px; }
.menu-toggle[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] i:nth-of-type(2) { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 44px;
  padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
  background: rgba(7, 20, 29, .97);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu nav a { display: flex; align-items: baseline; gap: 16px; font-size: clamp(40px, 12vw, 64px); font-weight: 700; letter-spacing: -.05em; line-height: 1.05; }
.mobile-menu nav a span { color: var(--lime); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
.mobile-menu-mail { color: var(--muted); font-family: var(--mono); font-size: 13px; }

/* ───────── Section rail ───────── */

.scene-rail { position: fixed; right: 22px; top: 50%; z-index: 40; display: flex; flex-direction: column; gap: 12px; transform: translateY(-50%); }
.scene-rail a { display: flex; align-items: center; justify-content: flex-end; gap: 12px; height: 14px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.scene-rail a::after { content: ""; width: 14px; height: 1px; background: currentColor; opacity: .5; transition: width .6s var(--ease-out), opacity .3s; }
.scene-rail a span { opacity: 0; transform: translateX(8px); transition: opacity .4s, transform .6s var(--ease-out); }
.scene-rail a.is-active { color: var(--lime); }
.scene-rail a.is-active::after { width: 34px; opacity: 1; }
.scene-rail a.is-active span, .scene-rail a:hover span, .scene-rail a:focus-visible span { opacity: 1; transform: none; }

/* ───────── Shared type ───────── */

.eyebrow, .section-label, .card-number, .principle-caption {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.section-label { display: flex; align-items: center; gap: 12px; }
.section-label::before { content: ""; flex: none; width: 20px; height: 1px; background: var(--lime); }
h1 { font-size: clamp(54px, 8.6vw, 138px); font-weight: 700; line-height: .9; letter-spacing: -.07em; }
h2 { font-size: clamp(46px, 6.6vw, 100px); font-weight: 700; line-height: .95; letter-spacing: -.06em; }
h1 em, h2 em, blockquote em { padding-right: .06em; color: var(--lime); font-family: var(--serif); font-weight: 600; letter-spacing: -.05em; }

.button { display: inline-flex; align-items: center; gap: 14px; padding: 15px 22px; border-radius: 99px; font-size: 13px; font-weight: 700; transition: background-color .3s, color .3s, border-color .3s; }
.button b { font-size: 16px; font-weight: 400; }
.button-primary { background: var(--lime); color: var(--navy); }
.button-primary:hover { background: var(--ink); }
.button-ghost { border: 1px solid rgba(234, 242, 237, .28); background: rgba(7, 20, 29, .3); color: var(--ink); }
.button-ghost:hover { border-color: var(--lime); color: var(--lime); }

/* ───────── Hero ───────── */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: calc(var(--header-h) + clamp(40px, 10vh, 130px));
  padding-bottom: 36px;
}
.hero-copy { max-width: 920px; }
.eyebrow { display: flex; align-items: center; gap: 12px; }
.pulse-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(253, 133, 103, .14); animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 50% { box-shadow: 0 0 0 9px rgba(253, 133, 103, 0); } }
.hero h1 { margin-top: 32px; }
.hero-intro { max-width: 450px; margin-top: 34px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; padding-top: 64px; }
.hero-foot > p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.scroll-cue i { position: relative; width: 1px; height: 56px; overflow: hidden; background: var(--faint); }
.scroll-cue i::after { content: ""; position: absolute; inset: 0 0 60%; background: var(--lime); animation: drip 2.2s var(--ease-out) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
.hero-meta { justify-self: end; display: flex; gap: 36px; }
.hero-meta dt { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.hero-meta dd { margin-top: 6px; font-size: 14px; font-weight: 600; }

/* ───────── Manifesto ───────── */

.manifesto { padding-block: clamp(120px, 20vh, 220px); }
.manifesto-layout { display: grid; grid-template-columns: 1.15fr .75fr; column-gap: 8%; align-items: end; margin-top: 48px; }
.manifesto-body { max-width: 430px; padding-bottom: 8px; }
.manifesto-body p:first-child { font-size: 18px; line-height: 1.65; }
.manifesto-body .muted { margin-top: 24px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.orbit-note { display: flex; align-items: center; gap: 12px; margin-top: 110px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.orbit-dot { position: relative; width: 11px; height: 11px; border: 1px solid var(--lime); border-radius: 50%; }
.orbit-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--lime); }

/* ───────── Marquee ───────── */

.marquee { position: relative; z-index: 2; overflow: hidden; padding-block: 28px; border-block: 1px solid var(--faint); background: rgba(7, 20, 29, .4); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; gap: 44px; padding-right: 44px; white-space: nowrap; }
.marquee-group span { font-size: clamp(38px, 6vw, 86px); font-weight: 700; line-height: 1; letter-spacing: -.05em; }
.marquee-group span:nth-of-type(even) { color: transparent; font-family: var(--serif); font-style: italic; font-weight: 600; -webkit-text-stroke: 1px var(--lime); }
.marquee-group i { color: var(--coral); font-family: var(--serif); font-size: clamp(22px, 3vw, 40px); font-style: normal; }

/* ───────── Directions ───────── */

.directions { padding-block: clamp(120px, 18vh, 200px); }
.section-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px 60px; }
.section-heading .section-label { grid-column: 1 / -1; }
.section-heading > p { max-width: 320px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.direction-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(64px, 11vh, 120px); }
.direction-card {
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(17, 44, 52, .42), rgba(7, 20, 29, .2));
  transition: border-color .4s;
}
.direction-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(215, 255, 100, .16), transparent 45%);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.direction-card:hover { border-color: rgba(215, 255, 100, .45); }
.direction-card:hover::before { opacity: 1; }
.direction-card > * { position: relative; }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.card-glyph { width: 22px; height: 22px; border: 1px solid var(--lime); transition: transform .8s var(--ease-out), background-color .4s; }
.glyph-sphere { border-radius: 50%; }
.glyph-diamond { transform: rotate(45deg) scale(.85); }
.direction-card:hover .card-glyph { background: var(--lime); transform: rotate(135deg) scale(.85); }
.direction-card h3 { font-size: clamp(30px, 3vw, 42px); letter-spacing: -.05em; }
.direction-card p { max-width: 300px; margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.direction-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags span { padding: 6px 10px; border: 1px solid rgba(215, 255, 100, .35); border-radius: 99px; color: var(--lime); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; }

/* ───────── Principle ───────── */

.principle { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 120px; text-align: center; }
.principle blockquote { max-width: 12.5em; font-family: var(--serif); font-size: clamp(34px, 5vw, 78px); line-height: 1.08; letter-spacing: -.035em; }
.principle-caption { margin-top: 32px; }

/* ───────── Club ───────── */

.club { padding-block: clamp(120px, 18vh, 200px); }
.club-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 60px; }
.club-copy h2 { margin-top: 40px; }
.club-intro { max-width: 440px; margin-top: 28px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--faint); }
.stat { padding: 24px 20px 26px 0; border-bottom: 1px solid var(--faint); }
.stat:nth-child(odd) { border-right: 1px solid var(--faint); }
.stat:nth-child(even) { padding-left: 26px; }
.stat dt { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.stat dd { margin-top: 14px; }
.stat strong { display: block; font-size: clamp(30px, 3.4vw, 48px); font-weight: 700; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat dd > span { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; }
.people { margin-top: 64px; }
.people ul { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.people li { display: flex; align-items: center; gap: 16px; padding: 12px 20px 12px 12px; border: 1px solid var(--faint); border-radius: 99px; background: rgba(7, 20, 29, .45); transition: border-color .3s, transform .6s var(--ease-out); }
.people li:hover { border-color: rgba(215, 255, 100, .4); transform: translateX(8px); }
.avatar { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--navy); font-family: var(--mono); font-size: 12px; font-weight: 500; }
.people li:nth-child(2) .avatar { background: var(--coral); }
.people li:nth-child(3) .avatar { border: 1px solid var(--lime); background: transparent; color: var(--lime); }
.people strong { display: block; font-size: 15px; }
.people li div span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }

/* ───────── Connect ───────── */

.connect { padding-block: clamp(90px, 14vh, 160px); }
.connect-panel {
  position: relative;
  min-height: min(80vh, 700px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vw, 88px);
  overflow: hidden;
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(7, 20, 29, .92) 0%, rgba(7, 20, 29, .62) 48%, rgba(7, 20, 29, 0) 100%);
}
.connect-panel::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 50%, rgba(253, 133, 103, .16), transparent 42%); pointer-events: none; }
.connect-panel > * { position: relative; z-index: 1; max-width: 660px; }
.connect-panel h2 { margin-top: 36px; }
.connect-panel h2 em { color: var(--coral); }
.connect-copy { max-width: 430px; margin-top: 26px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.email-link { position: relative; display: inline-flex; align-items: center; gap: 18px; margin-top: 40px; padding-bottom: 12px; font-size: clamp(22px, 3.2vw, 46px); font-weight: 700; letter-spacing: -.04em; overflow-wrap: anywhere; }
.email-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--lime); transform: scaleX(.22); transform-origin: left; transition: transform .8s var(--ease-out); }
.email-link:hover::after { transform: scaleX(1); }
.email-link b { flex: none; display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--lime); color: var(--navy); font-size: .6em; transition: transform .6s var(--ease-out); }
.email-link:hover b { transform: rotate(45deg); }
.connect-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.copy-button { padding: 10px 16px; border: 1px solid rgba(234, 242, 237, .28); border-radius: 99px; background: transparent; color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 700; transition: border-color .3s, color .3s; }
.copy-button:hover { border-color: var(--lime); color: var(--lime); }
.copy-status { min-height: 1.4em; color: var(--lime); font-size: 12px; font-weight: 600; }

/* ───────── Footer ───────── */

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 36px; border-top: 1px solid var(--faint); }
.site-footer p { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; }
.back-top { color: var(--muted); font-size: 12px; font-weight: 700; transition: color .3s; }
.back-top:hover { color: var(--lime); }

/* ───────── Responsive ───────── */

@media (max-width: 1180px) {
  .scene-rail { display: none; }
}

@media (max-width: 820px) {
  :root { --header-h: 72px; --radius: 22px; }
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .hero-foot { grid-template-columns: 1fr auto; padding-top: 48px; }
  .hero-foot > p { display: none; }
  .scroll-cue { display: none; }
  .hero-meta { justify-self: start; }
  .manifesto-layout, .section-heading, .club-layout { grid-template-columns: 1fr; gap: 34px; }
  .orbit-note { margin-top: 64px; }
  .direction-grid { grid-template-columns: 1fr; }
  .direction-card { min-height: 260px; }
  .club-visual { display: none; }
  .connect-panel { min-height: 0; background: rgba(7, 20, 29, .72); }
  .site-footer { flex-wrap: wrap; }
  .site-footer p { order: 3; width: 100%; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stat:nth-child(odd) { border-right: 0; }
  .stat:nth-child(even) { padding-left: 0; }
  .hero-actions .button { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
