:root {
  --bg: #f2eee6;
  --bg-2: #e7e1d4;
  --ink: #16140f;
  --ink-dim: #5a554c;
  --ink-mute: #8a8478;
  --line: rgba(22, 20, 15, 0.1);
  --line-2: rgba(22, 20, 15, 0.18);
  --rust: #c24a1a;
  --rust-2: #a63c14;
  --teal: #1f5c4e;
  --black: #111110;
  --paper-inv: #17150f;
  --r: 4px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Source Sans 3", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body { min-height: 100%; min-height: 100dvh; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  -webkit-tap-highlight-color: rgba(194, 74, 26, 0.18);
  touch-action: manipulation;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.13;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--ink); color: #fff; padding: 8px 12px; }

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.mono { font-family: var(--mono); }
.serif { font-family: var(--display); }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 238, 230, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  padding: 14px 0;
  position: relative;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 13px;
}
.brand-mark {
  width: 26px; height: 26px;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
}
.nav-spacer { flex: 1; }
.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--ink);
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  min-height: 44px;
}
.nav-links {
  display: flex; gap: 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-dim);
}
.nav-links a:hover { color: var(--ink); }

.geo-switch { position: relative; }
.geo-btn {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--ink);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  background: transparent;
}
.geo-btn small {
  color: var(--rust);
  font-family: var(--mono);
  font-size: 10px;
}
.geo-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--rust);
}
.geo-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 220px;
  background: var(--bg);
  border: 1px solid var(--ink);
  padding: 6px;
  display: none;
  z-index: 20;
}
.geo-switch.is-open .geo-menu { display: block; }
.geo-menu button {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  display: flex; justify-content: space-between;
  font-size: 13px;
  color: var(--ink-dim);
}
.geo-menu button:hover,
.geo-menu button.is-on {
  background: var(--ink);
  color: var(--bg);
}

/* BUTTONS — solid, no glow */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn-copper,
.btn-primary {
  background: var(--black);
  color: #f4efe6;
  box-shadow: 4px 4px 0 var(--rust);
}
.btn-copper:hover,
.btn-primary:hover {
  background: var(--rust);
  color: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--black);
}
.btn-ghost {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-2px);
}
.btn-lg {
  padding: 16px 28px;
  font-size: 16px;
  min-width: 220px;
}

/* HERO */
.hero { padding: 56px 0 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(42px, 5.8vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  max-width: 11ch;
}
.hero h1 em {
  font-style: italic;
  font-weight: 650;
  color: var(--rust);
  padding: 0 0.08em 0 0.02em;
}
.hero-lead {
  margin-top: 20px;
  max-width: 44ch;
  color: var(--ink-dim);
  font-size: 17px;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 32px;
}
.detect {
  margin-top: 22px;
  font-size: 12px;
  color: var(--ink-mute);
  font-family: var(--mono);
}
.detect strong { color: var(--ink-dim); font-weight: 600; }

.hero-visual {
  position: relative;
}
.hero-card {
  background: #fffdf8;
  border: 1px solid var(--line-2);
  padding: 18px 18px 16px;
  position: relative;
  z-index: 2;
}
.hero-card h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.hero-card .geo-title {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.fact {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.fact:first-of-type { border-top: 0; }
.fact b {
  color: var(--ink-mute);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--mono);
}
.rails { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 9px;
  border: 1px solid var(--line-2);
  background: var(--bg);
}

/* MAP */
.map {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 8px;
}
.map-node { cursor: pointer; }
.map-node circle.core {
  fill: var(--bg);
  stroke: var(--ink);
  stroke-width: 1.6;
  transition: fill 0.25s var(--ease), stroke 0.25s var(--ease);
}
.map-node text {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  fill: var(--ink-dim);
}
.map-node.is-on circle.core {
  fill: var(--rust);
  stroke: var(--rust);
}
.map-node.is-on text { fill: var(--ink); font-weight: 600; }
.map-node:hover circle.core { fill: var(--ink); }
.map-pulse {
  fill: none;
  stroke: var(--rust);
  stroke-width: 1;
  opacity: 0;
}
.map-node.is-on .map-pulse {
  opacity: 1;
  animation: pulse 2.2s var(--ease) infinite;
}
.map-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  stroke-dasharray: 4 5;
  opacity: 0.35;
}
.map-line.is-live {
  stroke: var(--rust);
  opacity: 1;
  stroke-dasharray: 80 240;
  animation: dash 7s linear infinite;
}

@keyframes dash {
  to { stroke-dashoffset: -320; }
}
@keyframes pulse {
  0% { r: 7; opacity: 0.7; }
  100% { r: 22; opacity: 0; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.rise {
  animation: rise 0.7s var(--ease) both;
}
.rise-2 { animation-delay: 0.08s; }
.rise-3 { animation-delay: 0.16s; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* MARQUEE */
.ticker {
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-2);
  margin: 36px 0 8px;
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 28s linear infinite;
}
.ticker-track span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 28px;
  color: var(--ink-dim);
  white-space: nowrap;
}
.ticker-track span::before {
  content: "◆";
  color: var(--rust);
  margin-right: 28px;
  font-size: 8px;
}

/* PATHS */
.paths { padding: 40px 0 72px; }
.paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.path {
  text-align: left;
  background: #fffdf8;
  border: 1px solid var(--line-2);
  padding: 28px;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.path::after {
  content: "";
  position: absolute;
  right: 0; bottom: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 0 18px 18px;
  border-color: transparent transparent var(--rust) transparent;
}
.path:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--ink);
  border-color: var(--ink);
}
.path .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
}
.path h2 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 10px 0 12px;
}
.path p { color: var(--ink-dim); flex: 1; }
.path .go {
  margin-top: 22px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--display);
}

/* SECTIONS */
.section { padding: 80px 0; }
.section-head { max-width: 620px; margin-bottom: 36px; }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.section-head p { margin-top: 14px; color: var(--ink-dim); }

.paper {
  background: var(--paper-inv);
  color: #efece4;
}
.paper .section-head p { color: rgba(239, 236, 228, 0.62); }
.paper-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e08a62;
  margin-bottom: 10px;
}

.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tile {
  background: transparent;
  border: 1px solid rgba(239, 236, 228, 0.14);
  padding: 22px;
}
.tile .n {
  font-family: var(--mono);
  font-size: 11px;
  color: #e08a62;
  letter-spacing: 0.12em;
}
.tile h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  font-family: var(--display);
  font-weight: 700;
}
.tile p { color: rgba(239, 236, 228, 0.62); font-size: 15px; }

.geo-body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.geo-body p { color: var(--ink-dim); font-size: 17px; }
.quote {
  border-left: 3px solid var(--rust);
  padding: 8px 0 8px 20px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

/* FORM */
.sheet {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(22, 20, 15, 0.42);
  display: none;
  align-items: stretch;
  justify-content: flex-end;
}
.sheet.is-open { display: flex; }
.panel {
  width: min(540px, 100%);
  background: var(--bg);
  border-left: 1px solid var(--ink);
  overflow: auto;
  padding: 28px 28px 48px;
  animation: rise 0.35s var(--ease);
}
.panel-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.close {
  width: 36px; height: 36px;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.panel h2 {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.panel .sub { color: var(--ink-dim); margin: 8px 0 22px; font-size: 14px; }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute);
  margin-bottom: 6px;
  font-family: var(--mono);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #fffdf8;
  border: 1px solid var(--line-2);
  border-radius: 0;
  padding: 14px 12px;
  color: var(--ink);
  font-size: 16px;
  min-height: 48px;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--ink); outline: none; }
.field textarea { min-height: 90px; resize: vertical; }
.checks { display: grid; gap: 8px; }
.check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px;
  color: var(--ink-dim);
}
.check input {
  width: auto;
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--rust);
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error {
  color: var(--rust);
  font-size: 13px;
  margin: 4px 0 12px;
  display: none;
}
.form-error.is-on { display: block; }
.ok-box { display: none; text-align: center; padding: 48px 12px; }
.ok-box.is-on { display: block; }
.ok-box .mark {
  width: 52px; height: 52px; margin: 0 auto 16px;
  border: 1px solid var(--teal);
  display: grid; place-items: center;
  color: var(--teal);
  font-size: 22px;
}
.ok-box h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
}
.ok-box p { color: var(--ink-dim); margin-top: 10px; }

footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 40px;
  color: var(--ink-mute);
  font-size: 12px;
  font-family: var(--mono);
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

.field-hint {
  font-size: 13px;
  color: var(--ink-dim);
  margin: -2px 0 10px;
}
[hidden] { display: none !important; }
.checks-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.field .check-card,
.check-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 12px;
  border: 1px solid var(--line-2);
  background: #fffdf8;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 0;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.field .check-card input,
.check-card input {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  accent-color: var(--rust);
  appearance: auto;
  -webkit-appearance: checkbox;
}
.check-card:has(input:checked),
.check-card.is-on {
  border-color: var(--ink);
  background: #fff;
  box-shadow: 3px 3px 0 var(--rust);
}

.apply-page { padding: 36px 0 64px; position: relative; }
.apply-stage {
  position: absolute; inset: 0 auto auto 0;
  width: 42%; height: 280px;
  background:
    radial-gradient(circle at 20% 30%, rgba(194,74,26,.12), transparent 45%),
    repeating-linear-gradient(-18deg, transparent, transparent 18px, rgba(22,20,15,.035) 19px);
  pointer-events: none;
}
.apply-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.7fr);
  gap: 48px;
  align-items: start;
  position: relative;
}
.apply-form-col {
  position: relative;
}
.apply-form-col::before {
  content: "G";
  position: absolute;
  right: -12px;
  top: -28px;
  font-family: var(--display);
  font-size: 180px;
  font-weight: 700;
  line-height: 1;
  color: rgba(22, 20, 15, 0.045);
  pointer-events: none;
  letter-spacing: -0.08em;
}
.apply-form-col h1 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
}
.apply-form { margin-top: 28px; }
.apply-form .btn-lg { width: 100%; }
.apply-side {
  position: sticky;
  top: 88px;
}
.stamp {
  border: 1px solid var(--ink);
  padding: 22px;
  background: #fffdf8;
  transform: rotate(-1.5deg);
  box-shadow: 8px 8px 0 var(--ink);
}
.stamp-code {
  font-family: var(--mono);
  letter-spacing: 0.2em;
  color: var(--rust);
  font-size: 12px;
}
.stamp strong {
  display: block;
  font-family: var(--display);
  font-size: 32px;
  margin: 6px 0 8px;
}
.stamp p { color: var(--ink-dim); font-size: 14px; }
.rails-stack { margin-top: 22px; }
.side-map { width: 100%; margin-top: 24px; opacity: 0.7; }
.side-map .core { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; }
.side-map .core.on { fill: var(--rust); stroke: var(--rust); }
.ok-page { text-align: left; padding: 24px 0; }
.ok-page.is-on ~ .apply-side { display: none; }

@media (max-width: 860px) {
  .hero-grid, .paths-grid, .three, .geo-body, .row-2, .apply-layout, .checks-cards { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-links {
    display: none;
    position: static;
    flex-basis: 100%;
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--ink);
    flex-direction: column;
    padding: 6px 12px;
    gap: 0;
    order: 5;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
  .nav-inner { flex-wrap: wrap; gap: 10px; }
  .geo-switch { width: 100%; }
  .geo-btn { width: 100%; justify-content: space-between; min-height: 44px; }
  .hero { padding-top: 24px; }
  .btn { min-height: 48px; }
  .btn-lg { min-width: 0; width: 100%; }
  .hero h1 { max-width: none; font-size: clamp(34px, 11vw, 52px); }
  .map { max-height: 240px; }
  .apply-page { padding: 20px 0 48px; }
  .apply-stage { width: 100%; height: 140px; }
  .apply-side { position: static; order: -1; margin-bottom: 8px; }
  .stamp { transform: none; box-shadow: 5px 5px 0 var(--ink); }
  .side-map { display: none; }
  .wrap { width: min(1160px, calc(100% - 28px)); }
  .apply-form-col::before { font-size: 120px; top: -16px; right: 0; }
  .geo-menu { left: 0; right: 0; min-width: 0; }
  .check-card { min-height: 48px; }
  select, textarea { font-size: 16px; }
}

@media (max-width: 420px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
}
