:root {
  --ink-0: #020504;
  --green-950: #050f0a;
  --green-900: #07140d;
  --green-800: #0a1d14;
  --green-700: #0f2419;
  --green-600: #14301f;
  --green-500: #1f3a2e;
  --green-400: #2d5a3d;
  --green-300: #4a7c59;

  --cream-50: #faf8f3;
  --cream-100: #f5f1e8;
  --cream-200: #ebe4d3;
  --cream-300: #c9bfa6;

  --gold-300: #e6cfa3;
  --gold-400: #d4b483;
  --gold-500: #c29a66;
  --gold-600: #a67f4a;

  --ink: #0b1611;
  --ink-soft: #2a3a31;
  --paper: #f5f1e8;
  --muted: #6c7a72;
  --muted-dark: rgba(245, 241, 232, 0.55);

  --font-display: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ui: "Inter Tight", "Inter", sans-serif;

  --container: 1320px;
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--green-950); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--cream-100);
  background: var(--green-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── Typography — HARMONY IN HUES inspired ───────── */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--cream-50);
  margin: 0 0 0.6em;
  display: block;
}

.display span {
  display: block;
}

.display .accent {
  color: var(--gold-400);
}

h1.display, .hero-title {
  font-size: clamp(4.5rem, 14vw, 13rem);
}

h2.display {
  font-size: clamp(3.2rem, 9vw, 8rem);
}

.display .oversize {
  font-size: 1.15em;
  line-height: 0.82;
  letter-spacing: -0.005em;
}

.display .smaller {
  font-size: 0.68em;
  color: var(--cream-100);
  opacity: 0.9;
}

h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--cream-50);
  margin: 0 0 0.5em;
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin: 0 0 1.8em;
}

.lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(245, 241, 232, 0.78);
  max-width: 56ch;
  font-weight: 300;
}

/* ─── Buttons ─────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 260ms var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--gold-400);
  color: var(--green-950);
  border-color: var(--gold-400);
}
.btn-primary:hover {
  background: var(--gold-300);
  border-color: var(--gold-300);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--cream-100);
  border-color: rgba(245, 241, 232, 0.3);
}
.btn-ghost:hover {
  border-color: var(--cream-100);
  background: rgba(245, 241, 232, 0.04);
}

/* ─── Photo slots ─────────────────────────────────── */

.photo-slot {
  position: absolute;
  inset: 0;
  background-color: var(--green-800);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
}

/* When a data-photo attribute is set, load that image. If it 404s, the
   background-color fallback shows through. */
.photo-slot[data-photo] {
  background-image: var(--photo-bg, none);
}

.photo-slot-label {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.35);
  padding: 8px 14px;
  border: 1px dashed rgba(212, 180, 131, 0.25);
  border-radius: 2px;
  font-weight: 500;
}
.photo-slot-label code {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 0.9em;
  color: var(--gold-400);
  letter-spacing: 0.02em;
}

.photo-slot--hero {
  background:
    radial-gradient(ellipse 60% 70% at 70% 30%, rgba(212, 180, 131, 0.08), transparent 60%),
    linear-gradient(180deg, #07140d 0%, #0a1d14 100%);
}

.photo-slot--portrait {
  background: linear-gradient(135deg, var(--green-600) 0%, var(--green-900) 100%);
  position: relative;
}
.photo-slot--portrait::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(212, 180, 131, 0.3);
}

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

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 28px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cream-100);
}

.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--gold-400);
  color: var(--gold-400);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  border-radius: 2px;
  padding-top: 3px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cream-50);
}

.brand-sub {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-top: 3px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0; padding: 0;
  align-items: center;
}

.nav-links a {
  color: var(--cream-100);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 200ms var(--ease);
}
.nav-links a:hover { color: var(--gold-400); }

.nav-links a.nav-cta {
  border: 1px solid rgba(245, 241, 232, 0.32);
  padding: 12px 22px;
  border-radius: var(--radius);
}
.nav-links a.nav-cta:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
}

.nav-toggle {
  display: none;
  background: transparent; border: 0;
  width: 42px; height: 42px;
  cursor: pointer;
  padding: 10px 8px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 2px;
  background: var(--cream-100);
  transition: all 220ms var(--ease);
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--cream-100);
  overflow: hidden;
  padding: 160px 0 120px;
}

.hero-photo { position: absolute; inset: 0; z-index: 0; }
.hero-photo .photo-slot-label { opacity: 0.4; }

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  mix-blend-mode: multiply;
  opacity: 0.95;
}
.hero-backdrop svg { width: 100%; height: 100%; object-fit: cover; }

/* Vignette / darkening overlay for legibility */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 90% 70% at 30% 50%, rgba(5, 15, 10, 0.1) 0%, rgba(5, 15, 10, 0.55) 70%, rgba(3, 8, 6, 0.85) 100%),
    linear-gradient(180deg, rgba(3, 8, 6, 0.4) 0%, transparent 30%, rgba(3, 8, 6, 0.55) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1000px;
}

.hero-content .eyebrow { color: var(--gold-400); }

.hero-title { margin-bottom: 0.45em; }

.hero .lede {
  color: rgba(245, 241, 232, 0.85);
  margin-bottom: 2.6em;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

/* Strava-style stat card */
.hero-stats {
  max-width: 720px;
  padding: 28px 36px;
  background: linear-gradient(180deg, rgba(10, 29, 20, 0.55), rgba(5, 15, 10, 0.7));
  border: 1px solid rgba(212, 180, 131, 0.22);
  border-radius: 3px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-stats-label {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin: 0 0 20px;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.hero-stats-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  padding-left: 20px;
}

.hero-stats-grid > div:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0; top: 2px; bottom: 2px;
  width: 1px;
  background: rgba(212, 180, 131, 0.18);
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.55);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--cream-50);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.stat-sub {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: rgba(245, 241, 232, 0.5);
}

/* Route line draw-in animation */
.route-line {
  stroke-dasharray: 6 10;
  stroke-dashoffset: 1400;
  animation: drawRoute 3.2s var(--ease) 0.3s forwards;
}
@keyframes drawRoute {
  to { stroke-dashoffset: 0; }
}

.waypoints circle {
  opacity: 0;
  animation: waypointIn 400ms var(--ease) forwards;
}
.waypoints circle:nth-child(1) { animation-delay: 1.0s; }
.waypoints circle:nth-child(2) { animation-delay: 1.6s; }
.waypoints circle:nth-child(3) { animation-delay: 2.2s; }
.waypoints circle:nth-child(4) { animation-delay: 2.8s; }
@keyframes waypointIn {
  from { opacity: 0; r: 0; }
  to   { opacity: 1; r: 3.5; }
}

/* ─── Section shell ───────────────────────────────── */

.section { padding: 140px 0; }

.section-intro {
  max-width: 1000px;
  margin-bottom: 84px;
}

.section-intro .section-lede {
  font-size: 1.1rem;
  color: var(--muted-dark);
  margin-top: 1.6em;
  max-width: 58ch;
  line-height: 1.6;
}

/* ─── About ───────────────────────────────────────── */

.about {
  background: var(--paper);
  color: var(--ink);
}

.about h2 { color: var(--ink); }
.about h2 .accent { color: var(--gold-600); }
.about h2 .smaller { color: var(--ink-soft); opacity: 0.75; }
.about .eyebrow { color: var(--gold-600); }
.about p { color: var(--ink-soft); }

.grid-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 96px;
  align-items: center;
}

.portrait-frame {
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 100px -50px rgba(10, 22, 15, 0.5);
  border-radius: 2px;
}

.about-meta {
  margin: 48px 0 0;
  padding: 36px 0 0;
  border-top: 1px solid var(--cream-200);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.about-meta div { margin: 0; }
.about-meta dt {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.about-meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ─── Approach ─────────────────────────────────────── */

.approach {
  background: var(--green-900);
  color: var(--cream-100);
  position: relative;
}

.approach::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 180, 131, 0.2), transparent);
}

.approach h2,
.approach .eyebrow { color: var(--cream-50); }
.approach .eyebrow { color: var(--gold-400); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(212, 180, 131, 0.12);
  border: 1px solid rgba(212, 180, 131, 0.12);
}

.pillar {
  padding: 56px 40px;
  background: var(--green-950);
  transition: background 300ms var(--ease);
}
.pillar:hover { background: var(--green-800); }

.pillar-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold-500);
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}

.pillar h3 {
  color: var(--cream-50);
  margin-bottom: 18px;
  font-size: 1.4rem;
}

.pillar p {
  color: rgba(245, 241, 232, 0.65);
  font-size: 0.98rem;
  margin: 0;
}

/* ─── Playground / Neighbourhoods ──────────────────── */

.playground {
  background: var(--green-950);
  color: var(--cream-100);
}

.playground h2,
.playground .eyebrow { color: var(--cream-50); }
.playground .eyebrow { color: var(--gold-400); }

.playground .section-lede { color: rgba(245, 241, 232, 0.6); }

.hood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(212, 180, 131, 0.12);
  border: 1px solid rgba(212, 180, 131, 0.12);
}

.hood {
  background: var(--green-900);
  position: relative;
  transition: all 300ms var(--ease);
  display: flex;
  flex-direction: column;
}
.hood:hover { background: var(--green-800); }

.hood-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--green-800);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hood-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 15, 10, 0.6) 100%);
  pointer-events: none;
}
.hood-photo span {
  position: relative;
  z-index: 1;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.3);
  padding: 6px 12px;
  border: 1px dashed rgba(212, 180, 131, 0.2);
  border-radius: 2px;
}
.hood[data-has-photo] .hood-photo span { display: none; }

.hood-body {
  padding: 36px 32px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hood-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}

.hood-num {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--gold-500);
  font-weight: 500;
}

.hood h3 {
  color: var(--cream-50);
  margin: 0;
  font-size: clamp(1.8rem, 2.2vw, 2.4rem);
  letter-spacing: 0.01em;
  line-height: 0.95;
}

.hood-route {
  width: 100%;
  height: 28px;
  color: rgba(212, 180, 131, 0.35);
  margin-bottom: 22px;
}

.hood-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 26px;
  padding: 18px 0;
  border-top: 1px solid rgba(212, 180, 131, 0.12);
  border-bottom: 1px solid rgba(212, 180, 131, 0.12);
}
.hood-stats div { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.hood-stats dt {
  font-family: var(--font-ui);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.5);
  font-weight: 500;
}
.hood-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--cream-50);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hood-body > p {
  color: rgba(245, 241, 232, 0.65);
  font-size: 0.95rem;
  margin: 0;
}

/* ─── Contact ─────────────────────────────────────── */

.contact {
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(212, 180, 131, 0.06), transparent 70%),
    var(--ink-0);
  color: var(--cream-100);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 96px;
  align-items: center;
}

.contact h2 { color: var(--cream-50); }
.contact .eyebrow { color: var(--gold-400); }

.contact-copy p {
  color: rgba(245, 241, 232, 0.72);
  max-width: 46ch;
}

.contact-card {
  background: rgba(10, 29, 20, 0.5);
  border: 1px solid rgba(212, 180, 131, 0.18);
  border-radius: 3px;
  padding: 12px 36px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid rgba(212, 180, 131, 0.13);
  transition: color 220ms var(--ease);
  gap: 20px;
}
.contact-row:last-child { border-bottom: 0; }

a.contact-row:hover .contact-value { color: var(--gold-400); }

.contact-label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.5);
  font-weight: 500;
  flex-shrink: 0;
}

.contact-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--cream-50);
  transition: color 220ms var(--ease);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: right;
}

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

.site-footer {
  background: var(--ink-0);
  color: rgba(245, 241, 232, 0.55);
  padding: 56px 0;
  border-top: 1px solid rgba(212, 180, 131, 0.1);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--cream-50);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-inner p { margin: 0 0 4px; font-size: 0.92rem; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
  font-size: 0.95rem;
}
.footer-contact a:hover { color: var(--gold-400); }

.footer-fine {
  grid-column: 1 / -1;
  margin-top: 40px !important;
  padding-top: 28px;
  border-top: 1px solid rgba(212, 180, 131, 0.08);
  font-size: 0.76rem !important;
  color: rgba(245, 241, 232, 0.35);
  font-family: var(--font-ui);
  letter-spacing: 0.04em;
}

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

@media (max-width: 960px) {
  .section { padding: 96px 0; }
  .section-intro { margin-bottom: 56px; }

  .grid-split {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .portrait-frame { max-width: 440px; }

  .pillars,
  .hood-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-contact { text-align: left; }

  .about-meta { grid-template-columns: 1fr; gap: 20px; }

  .hero-stats-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-stats-grid > div { padding-left: 0; padding-top: 16px; }
  .hero-stats-grid > div:not(:first-child)::before {
    top: 0; left: 0; right: 0; bottom: auto;
    height: 1px; width: auto;
  }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--green-950);
    padding: 28px 32px;
    gap: 22px;
    border-top: 1px solid rgba(212, 180, 131, 0.15);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 220ms var(--ease);
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .brand-name { font-size: 1.05rem; }
  .brand-sub { font-size: 0.58rem; }

  .hero { padding: 130px 0 90px; }
  .hero-actions .btn { flex: 1; min-width: 150px; }
  .hero-stats { padding: 24px 24px; }
  .stat-value { font-size: 1.7rem; }

  .hood-body { padding: 28px 24px 32px; }

  .contact-value {
    font-size: 1.1rem;
  }
  .contact-row { flex-wrap: wrap; gap: 6px; }
  .contact-value { text-align: left; width: 100%; }
}

/* ─── Reveal on scroll ────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .route-line { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
}
