:root {
  --black: #0b0b0c;
  --ink: #171a20;
  --gray-1: #393c41;
  --gray-2: #5c5e62;
  --line: #e2e3e5;
  --bg-soft: #f4f4f4;
  --white: #ffffff;
  --accent: #f2b544;        /* dusk amber; used on dark bg or with dark text */
  --accent-ink: #8a5a00;    /* accessible amber text on white (5.4:1) */
  --radius: 14px;
  --maxw: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(2.5rem, 7vw, 5.25rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; margin-bottom: 1.25rem; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.section { padding: clamp(80px, 12vw, 140px) 0; scroll-margin-top: 60px; }
.section--dark { background: var(--black); color: #fff; }
.section--light { background: var(--bg-soft); }

.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.eyebrow--dark { color: var(--accent-ink); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #c9cbcf; max-width: 38rem; }
.lede--dark { color: var(--gray-1); }
.fine { font-size: .85rem; color: #9a9ca1; margin-top: 1.5rem; }
.fine a { color: #fff; }
.opt { font-weight: 400; opacity: .7; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px; border-radius: 6px;
  font: 600 .95rem/1 var(--font); text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: scale(.98); }
.btn--accent { background: var(--accent); color: #111; }
.btn--accent:hover { background: #ffc85e; }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.25); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--small { min-height: 38px; padding: 0 16px; font-size: .85rem; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s, color .3s; color: #fff; }
.nav__inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a:not(.btn) { text-decoration: none; font-size: .9rem; font-weight: 500; padding: 8px 14px; border-radius: 6px; transition: background .2s; }
.nav__links a:not(.btn):hover { background: rgba(127,127,127,.18); }
.nav__links .btn { margin-left: 8px; }
.nav.is-scrolled { background: rgba(255,255,255,.92); color: var(--ink); backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; color: inherit; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .25s; }
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 25px; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background: url("assets/hero.svg") center 70% / cover no-repeat, #1b1830; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,12,.55) 0%, rgba(5,6,12,.15) 45%, rgba(5,6,12,.55) 100%); }
.hero__content { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 110px 24px 220px; width: 100%; text-align: center; }
.hero h1 { max-width: 14ch; margin: 0 auto; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero__sub { font-size: clamp(1.05rem, 1.8vw, 1.35rem); max-width: 36rem; margin: 1.5rem auto 0; color: #eceef2; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 2.25rem; }
.hero__ctas .btn { min-width: 220px; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 1.75rem; font-size: .85rem; color: #e2e3e7; background: rgba(0,0,0,.35); padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(6px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(242,181,68,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(242,181,68,0); } 100% { box-shadow: 0 0 0 0 rgba(242,181,68,0); } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 2.25rem 2rem 0 0; }
.step + .step { padding-left: 2rem; border-left: 1px solid var(--line); }
.step__num { display: block; font-size: .85rem; font-weight: 700; color: var(--accent-ink); margin-bottom: 1.5rem; letter-spacing: .08em; }
.step h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .75rem; }
.step p { color: var(--gray-2); max-width: 26rem; }

/* Area */
.area { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.uses { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
.uses li { border-top: 1px solid #2a2b2f; padding-top: 1rem; }
.uses strong { display: block; font-weight: 600; margin-bottom: .25rem; }
.uses span { color: #a8abb1; font-size: .95rem; }
.map { margin: 0; }
.map svg { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.m-town circle { fill: #fff; }
.m-town text, .m-airport text, .m-home text { fill: #e9eaec; font: 500 13px var(--font); }
.m-home text { font-weight: 700; font-size: 15px; fill: #f2b544; }
.m-home .m-sub { font-size: 11px; font-weight: 500; fill: #c9cbcf; }
.m-airport text { font-weight: 600; }
.m-dc text { fill: #f2b544; font: 700 14px var(--font); }
.m-dc .m-sub { fill: #c9cbcf; font: 500 11px var(--font); }
.m-county { fill: #6d7077; font: 700 12px var(--font); letter-spacing: .2em; }
.m-ridge { fill: #9a8fc2; font: 700 11px var(--font); letter-spacing: .3em; }
.m-water { fill: #6fa3c4; font: italic 500 12px var(--font); }
.m-shield text { font: 800 12px var(--font); text-anchor: middle; }
.m-legend text { fill: #c9cbcf; font: 500 12px var(--font); }
.m-note { fill: #6d7077; font: 500 11px var(--font); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 3rem; }
.card { background: var(--bg-soft); border-radius: var(--radius); padding: 2rem 1.75rem; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.card__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; margin-bottom: 1.5rem; }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--gray-2); font-size: .97rem; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 3rem 0 0; }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem; padding: 1.75rem 0; border-top: 1px solid #dcdde0; }
.timeline h3 { margin-bottom: .35rem; }
.timeline p { color: var(--gray-2); }
.timeline__tag { align-self: start; justify-self: start; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid #c3c5c9; color: var(--gray-1); }
.timeline__tag--now { background: var(--ink); color: var(--accent); border-color: var(--ink); }

/* Forms */
.form-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .85rem; font-weight: 600; padding: 0; }
.field legend { margin-bottom: 10px; }
.form input, .form select, .form textarea {
  width: 100%; font: 400 1rem var(--font); padding: 13px 14px; border-radius: 8px;
  border: 1px solid #3a3b40; background: #17181b; color: #fff; transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242,181,68,.3); }
.form [aria-invalid="true"] { border-color: #ff6b6b; }
.form--light input, .form--light select, .form--light textarea { background: #fff; color: var(--ink); border-color: #c3c5c9; }
.form--light input:focus, .form--light select:focus, .form--light textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,26,32,.15); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid #3a3b40; font-size: .9rem; transition: all .2s; }
.chip:hover span { border-color: #777; }
.chip input:checked + span { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.form__status { font-size: .9rem; }
.form__status.is-error { color: #ff8a8a; }
.form--light .form__status.is-error { color: #b42318; }
.form__status.is-ok { color: var(--accent); }
.form--light .form__status.is-ok { color: #1f7a3a; }
.checks { list-style: none; padding: 0; margin: 2rem 0 0; }
.checks li { position: relative; padding: .55rem 0 .55rem 2rem; color: var(--gray-1); }
.checks li::before { content: ""; position: absolute; left: 0; top: .85rem; width: 18px; height: 18px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%23f2b544' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Footer */
.footer { background: var(--black); color: #c9cbcf; padding: 64px 0 40px; font-size: .92rem; }
.footer .footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid #222327; }
.footer__inner p { margin-top: .4rem; }
.brand--footer { color: #fff; margin-bottom: .5rem; }
.footer a { color: #fff; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-content: start; }
.footer__links a { text-decoration: none; color: #c9cbcf; }
.footer__links a:hover { color: #fff; }
.footer .footer__legal { padding-top: 24px; font-size: .8rem; color: #8d9096; display: grid; gap: .5rem; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .area { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; color: var(--ink); padding: 12px 16px 20px; box-shadow: 0 20px 40px rgba(0,0,0,.15);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s;
  }
  .nav__links a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__links .btn { margin: 14px 0 0; min-height: 48px; }
  .nav.is-open { background: #fff; color: var(--ink); }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step, .step + .step { padding: 1.75rem 0; border-left: 0; border-top: 1px solid var(--line); }
  .step__num { margin-bottom: .75rem; }
  .form-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .cards { grid-template-columns: 1fr; }
  .uses { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; }
  .hero__content { text-align: left; padding: 100px 20px 200px; }
  .hero h1, .hero__sub { margin-left: 0; }
  .hero__ctas { justify-content: flex-start; }
  .timeline li { grid-template-columns: 1fr; gap: .75rem; }
}

@media (max-width: 560px) {
  .map svg { border-radius: 14px; }
  .m-town text, .m-airport text { font-size: 22px; }
  .m-home text { font-size: 24px; }
  .m-home .m-sub { display: none; }
  .m-home text { transform: translateY(40px); }
  .m-minor, .m-county, .m-ridge, .m-water, .m-note { display: none; }
  .m-legend text { font-size: 15px; }
}
