/* ==========================================================================
   Vibe Tribe — homepage
   Brand system: gold / warm white / warm black
   Type: Fraunces (display) · Manrope (text) · JetBrains Mono (labels)
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --ink: #121110;
  --ink-2: #191815;
  --ink-3: #23211c;
  --ink-4: #2d2a23;
  --paper: #f8f6f0;
  --paper-2: #f0ede4;
  --paper-3: #e5e0d3;
  --white: #fffdf8;

  --gold: #e3c27a;
  --gold-hi: #f6e3b2;
  --gold-deep: #a9843f;
  --gold-ink: #6b5220;

  --on-dark: #f6f3ea;
  --on-dark-muted: #a9a496;
  --on-dark-faint: #7d786b;
  --line-dark: rgba(255, 253, 248, 0.14);
  --line-dark-soft: rgba(255, 253, 248, 0.08);

  --on-light: #191814;
  --on-light-muted: #6c685d;
  --on-light-faint: #97917f;
  --line-light: rgba(41, 34, 20, 0.16);
  --line-light-soft: rgba(41, 34, 20, 0.09);

  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --text: 'Manrope', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --wrap: 1340px;
  --gutter: clamp(20px, 5vw, 68px);
  --nav-h: 78px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 0.8, 0.26, 1);
  --shadow-deep: 0 30px 90px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body.menu-open { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }

ul, ol { list-style: none; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--ink);
  font: 600 13px/1 var(--text);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
  padding-inline: var(--gutter);
  color: var(--on-dark);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), height 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 11, 10, 0.72), rgba(12, 11, 10, 0));
  transition: opacity 0.4s var(--ease);
}
.nav.is-scrolled {
  height: 66px;
  background: rgba(18, 17, 16, 0.86);
  border-bottom-color: var(--line-dark-soft);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.nav.is-scrolled::before { opacity: 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--on-dark);
  flex-shrink: 0;
}
.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--gold);
  transition: transform 0.7s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(45deg); }
.brand-word {
  font: 500 23px/1 var(--display);
  letter-spacing: -0.02em;
  font-variation-settings: 'SOFT' 30, 'WONK' 0;
}
.brand-word span { color: var(--gold); font-style: italic; font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 38px);
  margin-inline: auto;
}
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  font: 500 13.5px/1 var(--text);
  color: rgba(246, 243, 234, 0.86);
  transition: color 0.25s var(--ease);
}
.nav-links a i {
  font: 500 10px/1 var(--mono);
  font-style: normal;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  position: relative;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.menu-toggle:hover { border-color: var(--gold); }
.menu-toggle span {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1.5px;
  margin-left: -8px;
  background: var(--on-dark);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded='true'] span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 26px 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 14.5px/1 var(--text);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translate(3px, -3px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 62%, #d6b266);
  color: #1b1608;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 14px 34px rgba(227, 194, 122, 0.22);
}
.btn-gold:hover { background: linear-gradient(180deg, #fff1cd, var(--gold-hi) 60%, var(--gold)); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 18px 44px rgba(227, 194, 122, 0.34); }

.btn-ghost {
  border-color: rgba(255, 253, 248, 0.34);
  color: var(--on-dark);
  background: rgba(18, 17, 16, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); background: rgba(18, 17, 16, 0.5); }

.btn-ink {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-ink:hover { background: var(--ink-3); border-color: var(--ink-3); color: var(--gold-hi); }

.btn-small { min-height: 44px; padding: 0 18px 0 20px; font-size: 13px; gap: 10px; }
.btn-small svg { width: 15px; height: 15px; }
.btn-large { min-height: 66px; padding: 0 34px 0 38px; font-size: 16px; }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-light-muted);
  transition: color 0.25s var(--ease);
}
.btn-text svg { width: 15px; height: 15px; transition: transform 0.6s var(--ease); }
.btn-text:hover { color: var(--on-light); }
.btn-text:hover svg { transform: rotate(180deg); }
.btn-text:disabled { opacity: 0.45; cursor: wait; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-light);
  font: 600 14.5px/1 var(--text);
  color: var(--on-light);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.link-arrow svg { width: 17px; height: 17px; color: var(--gold-deep); transition: transform 0.35s var(--ease); }
.link-arrow:hover { border-color: var(--gold-deep); color: var(--gold-ink); }
.link-arrow:hover svg { transform: translate(3px, 3px); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #1a1712;
  padding: calc(var(--nav-h) + 40px) 0 120px;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: #1a1712 url('https://api.aicodesit.com/storage/cce6ef7d-a28a-4188-ab05-1e6a82ac6c7d/vibe-tribe-hero-city-web.webp') 68% 46% / cover no-repeat;
  transform: scale(1.07);
  animation: hero-settle 16s var(--ease) forwards;
}
@keyframes hero-settle { to { transform: scale(1); } }

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(96deg, rgba(13, 12, 10, 0.96) 0%, rgba(13, 12, 10, 0.86) 30%, rgba(13, 12, 10, 0.42) 55%, rgba(13, 12, 10, 0.08) 78%),
    linear-gradient(0deg, var(--ink) 0%, rgba(18, 17, 16, 0.6) 16%, rgba(18, 17, 16, 0) 42%),
    linear-gradient(180deg, rgba(13, 12, 10, 0.55) 0%, rgba(13, 12, 10, 0) 26%),
    radial-gradient(90% 70% at 74% 42%, rgba(255, 222, 150, 0.1), rgba(255, 222, 150, 0) 70%);
}

.hero-dust {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 11.5px/1.3 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 243, 234, 0.82);
}
.seal { color: var(--gold); font-size: 14px; line-height: 1; }
.hero-tag .rule { width: 46px; height: 1px; background: rgba(227, 194, 122, 0.6); }

.hero-title {
  margin: 30px 0 0;
  max-width: 17ch;
  font: 300 clamp(44px, 7.3vw, 116px) / 0.97 var(--display);
  letter-spacing: -0.032em;
  font-variation-settings: 'SOFT' 40, 'WONK' 0;
  color: var(--white);
  text-wrap: balance;
}
.hero-title .line { display: block; }
.hero-title .answer {
  margin-top: 0.12em;
  font-weight: 400;
  color: var(--gold);
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-hi);
}

.hero-lede {
  margin-top: 34px;
  max-width: 52ch;
  font-size: clamp(16px, 1.35vw, 19.5px);
  line-height: 1.68;
  color: rgba(246, 243, 234, 0.84);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 46px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 243, 234, 0.6);
}
.hero-foot span { display: inline-flex; align-items: center; gap: 22px; }
.hero-foot span:not(:last-child)::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.8;
}

.hero-caption {
  position: absolute;
  right: var(--gutter);
  bottom: 30px;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 243, 234, 0.46);
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #d4b066);
  color: #1d1809;
  border-block: 1px solid rgba(107, 82, 32, 0.35);
}
.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 34px;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font: 500 12.5px/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.marquee i { font-style: normal; font-size: 13px; color: rgba(29, 24, 9, 0.6); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Section furniture
   ========================================================================== */
.sec-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line-dark);
  font: 500 11px/1.2 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.sec-no { color: var(--gold); }
.sec-name { color: var(--on-dark); }
.sec-note { color: var(--on-dark-faint); text-align: right; }

.welcome .sec-head,
.neighbours .sec-head,
.faq .sec-head { border-top-color: var(--line-light); }
.welcome .sec-name,
.neighbours .sec-name,
.faq .sec-name { color: var(--on-light); }
.welcome .sec-no,
.neighbours .sec-no,
.faq .sec-no { color: var(--gold-deep); }
.welcome .sec-note,
.neighbours .sec-note,
.faq .sec-note { color: var(--on-light-faint); }

.welcome h2,
.map h2,
.neighbours h2,
.build h2,
.faq h2,
.closing h2 {
  font: 300 clamp(40px, 5.3vw, 88px) / 0.98 var(--display);
  letter-spacing: -0.03em;
  font-variation-settings: 'SOFT' 40, 'WONK' 0;
  text-wrap: balance;
}
.welcome h2 em,
.neighbours h2 em,
.faq h2 em { font-style: italic; font-weight: 400; color: var(--gold-deep); }
.map h2 em,
.build h2 em,
.closing h2 em { font-style: italic; font-weight: 400; color: var(--gold); }

.fine {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--on-dark-faint);
}
.welcome .fine,
.neighbours .fine,
.faq .fine { color: var(--on-light-faint); }

/* ==========================================================================
   01 — Welcome
   ========================================================================== */
.welcome {
  background: var(--paper);
  color: var(--on-light);
  padding: clamp(72px, 9vw, 130px) 0 clamp(88px, 10vw, 150px);
}
.welcome-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 7vw, 110px);
  padding-top: clamp(48px, 6.5vw, 96px);
}
.welcome-lead h2 { margin-bottom: 34px; }
.drop {
  position: relative;
  max-width: 22ch;
  padding-left: 26px;
  font: 300 clamp(22px, 2.1vw, 31px) / 1.3 var(--display);
  color: var(--on-light);
}
.drop::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 2px;
  background: var(--gold);
}
.welcome-body p {
  font-size: 17px;
  line-height: 1.78;
  color: var(--on-light-muted);
}
.welcome-body p + p { margin-top: 20px; }

.pillars { margin-top: 44px; border-top: 1px solid var(--line-light); }
.pillars li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-light);
  transition: padding-left 0.4s var(--ease);
}
.pillars li:hover { padding-left: 10px; }
.pillars b {
  font: 500 11px/1.9 var(--mono);
  color: var(--gold-deep);
  letter-spacing: 0.1em;
}
.pillars strong { display: block; font: 600 17px/1.3 var(--text); color: var(--on-light); }
.pillars span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: var(--on-light-muted); }

/* ==========================================================================
   02 — The map
   ========================================================================== */
.map {
  background:
    radial-gradient(120% 80% at 82% 0%, rgba(227, 194, 122, 0.09), rgba(227, 194, 122, 0) 60%),
    var(--ink);
  color: var(--on-dark);
  padding: clamp(72px, 9vw, 130px) 0 clamp(88px, 10vw, 150px);
}
.map-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
  padding-top: clamp(48px, 6.5vw, 96px);
}
.map-copy h2 { margin-bottom: 28px; }
.map-copy > p {
  max-width: 50ch;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--on-dark-muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 40px 0 34px;
  border-top: 1px solid var(--line-dark);
}
.stats > div { padding: 20px 14px 0 0; }
.stats dt {
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}
.stats dd {
  margin-top: 14px;
  font: 300 clamp(30px, 3.1vw, 46px) / 1 var(--display);
  letter-spacing: -0.02em;
  color: var(--gold-hi);
  font-variant-numeric: tabular-nums;
}
.stats dd small {
  display: block;
  margin-top: 8px;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}

.districts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.districts button {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: baseline;
  text-align: left;
  padding: 16px 18px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.02);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.districts button b {
  grid-row: span 2;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.1em;
  color: var(--gold);
}
.districts button span { font: 500 18px/1.2 var(--display); color: var(--on-dark); }
.districts button small { margin-top: 5px; font-size: 12.5px; line-height: 1.4; color: var(--on-dark-faint); }
.districts button:hover { border-color: rgba(227, 194, 122, 0.6); transform: translateY(-2px); }
.districts button.is-active {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(227, 194, 122, 0.16), rgba(227, 194, 122, 0.05));
}
.map-copy .fine {
  margin-top: 22px;
  max-width: 54ch;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--on-dark-faint);
}

/* city plan */
.plan { position: sticky; top: calc(var(--nav-h) + 22px); }
.plan-frame {
  border: 1px solid rgba(227, 194, 122, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #1b1915, #141310);
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.plan-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(227, 194, 122, 0.16);
  font: 500 10.5px/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}
.plan-bar span:first-child { color: var(--gold); }
#plan-readout { text-align: right; color: var(--on-dark-muted); }

.plan-canvas {
  position: relative;
  aspect-ratio: 1;
  padding: 10px;
  background:
    radial-gradient(circle at 50% 50%, rgba(227, 194, 122, 0.1), rgba(227, 194, 122, 0) 62%);
}
.plan-canvas svg { width: 100%; height: 100%; touch-action: manipulation; }

.plan-coast { fill: #0f0e0c; stroke: rgba(227, 194, 122, 0.34); stroke-width: 0.8; }
.plan-shore { fill: none; stroke: rgba(227, 194, 122, 0.22); stroke-width: 0.5; stroke-dasharray: 2 3; }
.plan-streets line { stroke: rgba(255, 253, 248, 0.055); stroke-width: 0.5; }
.plan-plaza { fill: rgba(227, 194, 122, 0.16); stroke: rgba(227, 194, 122, 0.42); stroke-width: 0.4; }
.plan-avenue { fill: rgba(227, 194, 122, 0.06); stroke: rgba(227, 194, 122, 0.16); stroke-width: 0.3; }
.plan-plot {
  cursor: pointer;
  fill: rgba(255, 253, 248, 0.05);
  stroke: rgba(255, 253, 248, 0.2);
  stroke-width: 0.3;
  transition: fill 0.25s var(--ease), opacity 0.35s var(--ease), stroke 0.25s var(--ease);
}
.plan-plot.is-claimed { fill: rgba(227, 194, 122, 0.42); stroke: var(--gold); }
.plan-plot.is-built { fill: var(--gold); stroke: var(--gold-hi); }
.plan-plot.is-dim { opacity: 0.16; }
.plan-plot.is-focus { fill: var(--gold-hi); stroke: #fff; stroke-width: 0.9; opacity: 1; }
.plan-road { stroke: rgba(227, 194, 122, 0.5); stroke-width: 1.5; stroke-linecap: round; }
.plan-monument circle { fill: var(--gold); }
.plan-monument path { stroke: #1b1608; stroke-width: 1.3; stroke-linecap: round; fill: none; }
.plan-compass path { fill: var(--gold); }
.plan-compass text { fill: var(--gold); font: 500 8px var(--mono); letter-spacing: 0.1em; }

.plan-tip {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 3px;
  min-width: 148px;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--gold-hi);
  color: #1b1608;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  font-size: 12px;
  line-height: 1.35;
}
.plan-tip[hidden] { display: none; }
.plan-tip strong { font: 600 14px/1.25 var(--display); }
.plan-tip span { color: rgba(27, 22, 8, 0.72); }
.plan-tip em { font: 500 10px/1.2 var(--mono); font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); }

.plan-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 14px 18px;
  border-top: 1px solid rgba(227, 194, 122, 0.16);
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}
.plan-legend span { display: inline-flex; align-items: center; gap: 8px; }
.key { width: 11px; height: 11px; border-radius: 3px; border: 1px solid rgba(255, 253, 248, 0.3); }
.key-free { background: rgba(255, 253, 248, 0.06); }
.key-claimed { background: rgba(227, 194, 122, 0.42); border-color: var(--gold); }
.key-built { background: var(--gold); border-color: var(--gold-hi); }
.key-plaza { background: rgba(227, 194, 122, 0.16); border-color: rgba(227, 194, 122, 0.5); }
.plan > .fine { margin-top: 14px; text-align: center; }

/* ==========================================================================
   03 — Neighbours
   ========================================================================== */
.neighbours {
  background: var(--paper-2);
  color: var(--on-light);
  padding: clamp(72px, 9vw, 130px) 0 clamp(88px, 10vw, 150px);
}
.neighbours-head {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
  padding: clamp(48px, 6.5vw, 96px) 0 clamp(36px, 4vw, 56px);
}
.neighbours-head p { font-size: 16.5px; line-height: 1.75; color: var(--on-light-muted); }

.ledger {
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 26px 70px rgba(41, 34, 20, 0.1);
  overflow: hidden;
}
.ledger-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line-light-soft);
  background: linear-gradient(180deg, #fffefb, var(--paper));
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-light-muted);
}
.live b {
  margin-left: 4px;
  padding: 5px 9px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font: 600 12px/1 var(--mono);
  letter-spacing: 0;
  color: var(--on-light);
  font-variant-numeric: tabular-nums;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f9e63;
  box-shadow: 0 0 0 0 rgba(47, 158, 99, 0.55);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 158, 99, 0.55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(47, 158, 99, 0); }
}
.ledger-status { padding: 44px 22px; font-size: 15px; color: var(--on-light-muted); text-align: center; }
.ledger-status[hidden] { display: none; }

.ledger-list { display: grid; }
.ledger-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 24px;
  padding: 22px;
  border-top: 1px solid var(--line-light-soft);
  transition: background 0.3s var(--ease);
}
.ledger-row:first-child { border-top: 0; }
.ledger-row:hover { background: #fbf7ec; }
.ledger-who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ledger-seal {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(169, 132, 63, 0.45);
  background: radial-gradient(circle at 32% 26%, #fff3cf, var(--gold) 70%);
  color: var(--gold-ink);
  font-size: 17px;
  transition: transform 0.7s var(--ease);
}
.ledger-row:hover .ledger-seal { transform: rotate(90deg); }
.ledger-who h3 {
  font: 500 21px/1.2 var(--display);
  letter-spacing: -0.01em;
  color: var(--on-light);
  overflow-wrap: anywhere;
}
.ledger-who p { margin-top: 4px; font-size: 13px; color: var(--on-light-faint); }

.ledger-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ledger-meta dt {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-light-faint);
}
.ledger-meta dd { margin-top: 8px; font-size: 13.5px; color: var(--on-light); overflow-wrap: anywhere; }

.ledger-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font: 600 12.5px/1 var(--text);
  color: var(--on-light);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.ledger-go:hover { background: var(--ink); border-color: var(--ink); color: var(--gold-hi); }

.neighbours-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.neighbours-foot p { font-size: 15px; color: var(--on-light-muted); }

/* ==========================================================================
   04 — Build with AI
   ========================================================================== */
.build {
  background:
    radial-gradient(90% 70% at 8% 0%, rgba(227, 194, 122, 0.1), rgba(227, 194, 122, 0) 62%),
    var(--ink-2);
  color: var(--on-dark);
  padding: clamp(72px, 9vw, 130px) 0 clamp(88px, 10vw, 150px);
}
.build-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  padding-top: clamp(48px, 6.5vw, 96px);
}
.build-copy h2 { margin-bottom: 28px; }
.build-copy > p { max-width: 50ch; font-size: 16.5px; line-height: 1.75; color: var(--on-dark-muted); }

.steps { margin-top: 40px; border-top: 1px solid var(--line-dark); }
.steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-dark);
  transition: padding-left 0.4s var(--ease);
}
.steps li:hover { padding-left: 10px; }
.steps b { font: 500 11px/1.9 var(--mono); color: var(--gold); letter-spacing: 0.1em; }
.steps h3 { font: 500 20px/1.25 var(--display); color: var(--on-dark); }
.steps p { margin-top: 5px; font-size: 14.5px; line-height: 1.65; color: var(--on-dark-muted); }

.console {
  border: 1px solid rgba(227, 194, 122, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #1d1b17, #151412);
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(227, 194, 122, 0.16);
  background: rgba(255, 253, 248, 0.02);
}
.lights { display: inline-flex; gap: 6px; }
.lights i { width: 9px; height: 9px; border-radius: 50%; background: rgba(227, 194, 122, 0.28); }
.lights i:first-child { background: var(--gold); }
.tabs { display: flex; gap: 4px; margin-right: auto; }
.tabs button {
  padding: 8px 13px;
  border-radius: 999px;
  font: 500 12px/1 var(--text);
  color: var(--on-dark-faint);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.tabs button:hover { color: var(--on-dark); }
.tabs button[aria-selected='true'] { background: rgba(227, 194, 122, 0.16); color: var(--gold-hi); }
.console-meta { font: 500 10px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-faint); }

.console-pane { display: none; padding: clamp(24px, 3vw, 38px); min-height: 300px; }
.console-pane.is-active { display: block; animation: fade-up 0.45s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }

.who {
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}
.who.agent { margin-top: 30px; color: var(--gold); }
.say {
  margin-top: 12px;
  font: 400 clamp(20px, 1.9vw, 26px) / 1.35 var(--display);
  color: var(--on-dark);
}
.say.agent-say { font: 400 16.5px/1.7 var(--text); color: var(--on-dark-muted); max-width: 46ch; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 10px 15px;
  border: 1px solid rgba(227, 194, 122, 0.34);
  border-radius: 999px;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-hi);
}
.status .dot { background: var(--gold); animation-name: pulse-gold; }
@keyframes pulse-gold {
  0% { box-shadow: 0 0 0 0 rgba(227, 194, 122, 0.6); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(227, 194, 122, 0); }
}

.tools { display: grid; gap: 10px; }
.tools li {
  display: grid;
  grid-template-columns: minmax(150px, auto) 1fr;
  align-items: center;
  gap: 16px;
  padding: 13px 15px;
  border: 1px solid var(--line-dark-soft);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.02);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.tools li:hover { border-color: rgba(227, 194, 122, 0.5); background: rgba(227, 194, 122, 0.06); }
.tools code { font: 500 13px/1.2 var(--mono); color: var(--gold-hi); }
.tools span { font-size: 14px; color: var(--on-dark-muted); }
.console-pane .fine { margin-top: 18px; }

.console-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-top: 1px solid rgba(227, 194, 122, 0.16);
  font: 500 10.5px/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}

/* ==========================================================================
   05 — FAQ
   ========================================================================== */
.faq {
  background: var(--paper);
  color: var(--on-light);
  padding: clamp(72px, 9vw, 130px) 0 clamp(88px, 10vw, 150px);
}
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(36px, 8vw, 120px);
  align-items: start;
  padding-top: clamp(48px, 6.5vw, 96px);
}
.faq-side { position: sticky; top: calc(var(--nav-h) + 22px); }
.faq-side p { margin: 24px 0 30px; max-width: 30ch; font-size: 16px; line-height: 1.7; color: var(--on-light-muted); }

.accordion { border-top: 1px solid var(--line-light); }
.acc-item { border-bottom: 1px solid var(--line-light); }
.acc-item > button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  text-align: left;
  font: 500 clamp(18px, 1.5vw, 22px) / 1.3 var(--display);
  color: var(--on-light);
  transition: color 0.25s var(--ease);
}
.acc-item > button:hover { color: var(--gold-ink); }
.acc-item > button i {
  position: relative;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.4s var(--ease);
}
.acc-item > button i::before,
.acc-item > button i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  background: var(--gold-deep);
  transition: transform 0.4s var(--ease), background 0.3s var(--ease);
}
.acc-item > button i::after { transform: rotate(90deg); }
.acc-item.is-open > button i { background: var(--ink); border-color: var(--ink); transform: rotate(180deg); }
.acc-item.is-open > button i::before,
.acc-item.is-open > button i::after { background: var(--gold); }
.acc-item.is-open > button i::after { transform: rotate(0deg); }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.acc-panel > div { overflow: hidden; }
.acc-panel p {
  max-width: 60ch;
  padding: 0 48px 26px 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--on-light-muted);
}

/* ==========================================================================
   Closing
   ========================================================================== */
.closing {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(110px, 15vw, 210px) 0;
  text-align: center;
  background: #17140f;
}
.closing-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #17140f url('https://api.aicodesit.com/storage/cce6ef7d-a28a-4188-ab05-1e6a82ac6c7d/vibe-tribe-coin-monument-web.webp') 50% 46% / cover no-repeat;
  transform: scale(1.05);
}
.closing-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 62% at 50% 50%, rgba(13, 12, 10, 0.86), rgba(13, 12, 10, 0.5) 62%, rgba(13, 12, 10, 0.74) 100%),
    linear-gradient(180deg, rgba(18, 17, 16, 0.5), rgba(18, 17, 16, 0) 30%, rgba(18, 17, 16, 0) 70%, rgba(18, 17, 16, 0.7));
}
.closing-inner { max-width: 780px; margin-inline: auto; padding-inline: var(--gutter); }
.closing-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 243, 234, 0.82);
}
.closing h2 { margin: 26px 0 0; font-size: clamp(54px, 9vw, 138px); color: var(--white); }
.closing p { margin-top: 24px; font-size: clamp(16px, 1.4vw, 19px); color: rgba(246, 243, 234, 0.8); }
.closing .btn { margin-top: 38px; }
.closing small {
  display: block;
  margin-top: 22px;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 243, 234, 0.5);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--ink);
  color: var(--on-dark);
  border-top: 1px solid var(--line-dark-soft);
  padding-top: clamp(56px, 7vw, 96px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: clamp(44px, 6vw, 80px);
}
.footer-brand p {
  margin-top: 18px;
  max-width: 32ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--on-dark-faint);
}
.footer h3 {
  margin-bottom: 18px;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer nav { display: grid; gap: 11px; align-content: start; }
.footer nav a {
  width: fit-content;
  font-size: 14.5px;
  color: var(--on-dark-muted);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer nav a:hover { color: var(--gold-hi); transform: translateX(3px); }
.footer-note p { font-size: 14.5px; line-height: 1.7; color: var(--on-dark-faint); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 22px;
  border-top: 1px solid var(--line-dark-soft);
  font: 500 10.5px/1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}

/* ==========================================================================
   Motion
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1120px) {
  .map-grid,
  .build-grid { grid-template-columns: 1fr; }
  .plan { position: static; max-width: 660px; width: 100%; margin-inline: auto; }
  .console { max-width: 760px; }
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-side { position: static; }
  .faq-side p { max-width: 46ch; }
}

@media (max-width: 900px) {
  :root { --nav-h: 68px; }
  .nav { gap: 14px; }
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: 10px var(--gutter) 28px;
    background: rgba(18, 17, 16, 0.97);
    border-bottom: 1px solid var(--line-dark);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav.is-scrolled .nav-links { top: 66px; }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a {
    width: 100%;
    padding: 18px 0;
    font: 400 26px/1.1 var(--display);
    border-bottom: 1px solid var(--line-dark-soft);
  }
  .nav-links a::after { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn span { display: none; }
  .nav-actions .btn { padding: 0 14px; min-height: 44px; }

  .welcome-grid,
  .neighbours-head { grid-template-columns: 1fr; }
  .neighbours-head { align-items: start; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .ledger-row { grid-template-columns: 1fr; gap: 18px; }
  .ledger-go { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: calc(var(--nav-h) + 28px) 0 96px; align-items: flex-end; }
  .hero-photo { background-position: 60% 50%; }
  .hero-veil {
    background:
      linear-gradient(0deg, var(--ink) 0%, rgba(18, 17, 16, 0.9) 34%, rgba(18, 17, 16, 0.55) 62%, rgba(18, 17, 16, 0.35) 100%),
      linear-gradient(180deg, rgba(13, 12, 10, 0.7), rgba(13, 12, 10, 0) 30%);
  }
  .hero-tag { flex-wrap: wrap; font-size: 10.5px; letter-spacing: 0.14em; }
  .hero-tag .rule { display: none; }
  .hero-title { font-size: clamp(40px, 11.4vw, 62px); margin-top: 24px; }
  .hero-lede { margin-top: 24px; font-size: 16px; }
  .hero-cta { margin-top: 30px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-foot { margin-top: 34px; gap: 8px 16px; }
  .hero-foot span { gap: 16px; }
  .hero-caption { left: var(--gutter); right: auto; bottom: 22px; }
  .marquee { padding: 16px 0; }
  .districts { grid-template-columns: 1fr; }
  .ledger-meta { grid-template-columns: 1fr 1fr; }
  .ledger-bar { padding: 14px 18px; }
  .ledger-row { padding: 20px 18px; }
  .console-bar { flex-wrap: wrap; }
  .console-meta { display: none; }
  .tabs { margin-right: 0; }
  .tools li { grid-template-columns: 1fr; gap: 6px; }
  .acc-panel p { padding-right: 0; }
  .neighbours-foot { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .closing h2 { font-size: clamp(50px, 15vw, 76px); }
}

@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;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-photo,
  .closing-photo { transform: none; }
}
