:root {
  --ink: #17231f;
  --ink-soft: #35443f;
  --pine: #092a22;
  --moss: #47634d;
  --cream: #f3efe6;
  --paper: #fbf8f1;
  --bronze: #c27c45;
  --gold: #e4b66f;
  --line: rgba(23, 35, 31, 0.14);
  --shadow: 0 24px 70px rgba(12, 24, 20, 0.18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 clamp(18px, 4vw, 64px);
  color: #fff;
  background: linear-gradient(180deg, rgba(7, 28, 23, 0.86), rgba(7, 28, 23, 0.34));
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: background 240ms ease, height 240ms ease;
}
.site-header.is-scrolled { height: 66px; background: rgba(7, 28, 23, 0.94); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: clamp(154px, 15vw, 220px); }
.brand-logo { display: block; width: clamp(142px, 14vw, 206px); height: auto; max-height: 52px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(255,255,255,0.72)) drop-shadow(0 0 7px rgba(255,255,255,0.32)); }
.site-header.is-scrolled .brand-logo { max-height: 46px; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.5); border-radius: 8px;
  font: 700 24px var(--serif); background: rgba(255,255,255,0.12);
}
.brand strong { display: block; line-height: 1; font-weight: 800; }
.brand small { display: block; margin-top: 3px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.78; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2vw, 30px); margin-left: auto; }
.primary-nav a { text-decoration: none; font-weight: 800; font-size: 13px; }
.header-cta, .button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 7px;
  border: 1px solid transparent; text-decoration: none; font-weight: 900;
}
.header-cta, .button.primary { background: var(--bronze); color: #fff; }
.button.ghost { color: #fff; border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.08); }
.nav-toggle { display: none; }

.hero {
  position: relative;
  min-height: 100svh;
  color: #fff;
  overflow: hidden;
  background: var(--pine);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 110%; object-fit: cover; filter: saturate(0.9) contrast(1.02); transform: translateY(calc(var(--scroll, 0) * -38px)); }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 74% 22%, rgba(228,182,111,0.22), transparent 28%),
    linear-gradient(90deg, rgba(4,22,18,0.76), rgba(4,22,18,0.34) 42%, rgba(4,22,18,0.08)),
    linear-gradient(0deg, rgba(4,22,18,0.7), rgba(4,22,18,0.08) 52%, transparent 72%);
}
.hero-grid {
  position: relative; z-index: 2;
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(300px, 360px);
  align-items: end; gap: clamp(24px, 5vw, 90px);
  padding: clamp(220px, 38vh, 360px) clamp(22px, 8vw, 122px) 122px;
}
.hero-copy { max-width: 650px; align-self: end; }
.eyebrow { margin: 0 0 18px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; font-weight: 900; }
h1, h2, h3 { margin: 0; line-height: 0.98; letter-spacing: 0; }
h1 { font-family: var(--serif); font-size: clamp(36px, 4.25vw, 64px); max-width: 660px; overflow-wrap: break-word; }
h2 { font-family: var(--serif); font-size: clamp(30px, 3.45vw, 52px); max-width: 900px; }
h3 { font-size: 22px; line-height: 1.15; }
.hero-copy > p:not(.eyebrow), .section-heading > p:not(.eyebrow), .contact-copy > p {
  font-size: clamp(18px, 2vw, 23px);
  max-width: 620px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-console {
  align-self: end;
  max-width: 360px;
  margin-left: auto;
  padding: 28px;
  background: rgba(10, 34, 29, 0.78);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.console-light { width: 10px; height: 10px; display: block; border-radius: 50%; background: #8ee7bc; box-shadow: 0 0 22px #8ee7bc; }
.hero-console h2 { font: 900 22px var(--sans); margin: 18px 0; }
.console-row { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,0.16); }
.console-row span { opacity: 0.72; }
.console-row strong { text-align: right; }
.progress { height: 8px; margin: 18px 0; background: rgba(255,255,255,0.14); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--bronze), var(--gold)); border-radius: inherit; }
.hero-strip {
  position: absolute; z-index: 3; left: clamp(22px, 8vw, 122px); right: clamp(22px, 8vw, 122px); bottom: 28px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 14px; overflow: hidden;
}
.hero-strip span { padding: 18px; background: rgba(7,28,23,0.64); font-size: 13px; font-weight: 900; text-align: center; }

.section { padding: clamp(78px, 10vw, 140px) clamp(22px, 8vw, 122px); }
.section-heading { max-width: 940px; margin-bottom: 42px; }
.section-heading p { color: #68736e; }
.pathway-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pathway-card {
  display: grid; grid-template-rows: 260px auto; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 60px rgba(0,0,0,0.07);
}
.pathway-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms ease; }
.pathway-card:hover img { transform: scale(1.05); }
.pathway-card div { padding: 28px; }
.pathway-card span { color: var(--bronze); font-weight: 900; }
.pathway-card p { color: #65706b; }

.intelligence-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1.22fr);
  gap: clamp(30px, 6vw, 88px);
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 16% 18%, rgba(228, 182, 111, 0.22), transparent 28%),
    radial-gradient(circle at 82% 70%, rgba(85, 191, 70, 0.16), transparent 28%),
    var(--pine);
  overflow: hidden;
}

.intelligence-copy p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 20px;
}

.intelligence-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.intelligence-switch button {
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font: 900 13px var(--sans);
  cursor: pointer;
}

.intelligence-switch button.is-active {
  color: var(--pine);
  background: var(--gold);
}

.intelligence-console {
  position: relative;
  display: grid;
  min-height: 560px;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    rgba(255, 255, 255, 0.07);
  background-size: 42px 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(520px, 82%);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit::before,
.orbit::after {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: inherit;
  content: "";
}

.orbit::after {
  inset: 35%;
}

.orbit span,
.orbit i,
.orbit b {
  position: absolute;
  width: 13px;
  height: 13px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(228, 182, 111, 0.6);
}

.orbit span {
  top: 16%;
  left: 36%;
}

.orbit i {
  right: 18%;
  top: 44%;
}

.orbit b {
  bottom: 20%;
  left: 42%;
}

.intelligence-console article {
  position: relative;
  z-index: 1;
  align-self: end;
  max-width: 540px;
  padding: 28px;
  background: rgba(5, 24, 20, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
}

.intelligence-console article span {
  color: var(--gold);
  font-weight: 900;
}

.intelligence-console article p {
  color: rgba(255, 255, 255, 0.74);
}

.intel-checks {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-self: end;
  margin-top: 18px;
}

.intel-checks strong {
  padding: 12px;
  color: var(--pine);
  background: rgba(255, 253, 248, 0.9);
  border-radius: 999px;
  font-size: 12px;
  text-align: center;
}

.walkthrough { min-height: 250svh; background: #101714; color: #fff; }
.walkthrough-sticky {
  position: sticky; top: 0; min-height: 100svh;
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 50px; align-items: center;
  padding: 110px clamp(22px, 7vw, 108px);
  overflow: hidden;
}
.walk-copy p:not(.eyebrow) { color: rgba(255,255,255,0.72); max-width: 560px; font-size: 20px; }
.room-stage { position: relative; min-height: 620px; perspective: 1400px; }
.room-card {
  position: absolute; inset: 0; margin: 0;
  border-radius: 22px; overflow: hidden; opacity: 0; transform: translate3d(0, 42px, -80px) rotateX(6deg);
  transition: opacity 540ms ease, transform 700ms ease;
  box-shadow: 0 40px 100px rgba(0,0,0,0.45);
}
.room-card.is-active { opacity: 1; transform: translate3d(0, 0, 0) rotateX(0); }
.room-card img { width: 100%; height: 100%; object-fit: cover; }
.room-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.62), transparent 48%); }
.room-card figcaption { position: absolute; z-index: 2; left: 30px; right: 30px; bottom: 28px; }
.room-card span { display: block; color: var(--gold); text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; font-weight: 900; }
.room-card strong { display: block; font: 700 clamp(26px, 3vw, 44px) var(--serif); line-height: 1.05; margin-top: 6px; }

.map-section { background: var(--cream); }
.map-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 34px; align-items: stretch; }
.map-panel { position: relative; min-height: 560px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: var(--pine); }
.map-panel img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) brightness(0.62); }
.map-panel::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,0.22); border-radius: 18px; pointer-events: none; }
.map-pin {
  position: absolute; width: 18px; height: 18px; border: 0; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 8px rgba(228,182,111,0.22), 0 0 28px rgba(228,182,111,0.65);
}
.map-pin span {
  position: absolute; left: 24px; top: 50%; transform: translateY(-50%);
  color: #fff; background: rgba(4,22,18,0.76); padding: 7px 10px; border-radius: 999px; white-space: nowrap; font-weight: 900; font-size: 12px;
}
.pin-chch { left: 53%; top: 53%; }
.pin-rolleston { left: 39%; top: 68%; }
.pin-kaiapoi { left: 62%; top: 35%; }
.pin-ashburton { left: 25%; top: 82%; }
.pin-halswell { left: 48%; top: 63%; }
.map-copy { padding: 42px; background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.map-copy p, .map-copy li { color: #66716c; }
.map-copy li { margin: 12px 0; }

.team-section { background: #fff; }
.team-grid { display: grid; grid-template-columns: 1.1fr 0.45fr 0.45fr; gap: 24px; align-items: end; }
.team-card { background: var(--cream); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.team-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.team-card h3, .team-card p { margin: 22px 22px 0; }
.team-card p { margin-bottom: 26px; color: #65706b; }
.proof-section { background: var(--pine); color: #fff; padding-top: 50px; padding-bottom: 50px; overflow: hidden; }
.proof-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.proof-item { border: 1px solid rgba(255,255,255,0.14); border-radius: 16px; padding: 24px; background: rgba(255,255,255,0.06); }
.proof-item strong { display: block; font-size: 20px; margin-bottom: 8px; }
.proof-item span { color: rgba(255,255,255,0.68); }

.contact-section {
  display: grid; grid-template-columns: 0.82fr 1fr; gap: 44px;
  padding: clamp(78px, 10vw, 140px) clamp(22px, 8vw, 122px);
  background: radial-gradient(circle at 20% 10%, rgba(228,182,111,0.2), transparent 28%), var(--ink);
  color: #fff;
}
.contact-copy p { color: rgba(255,255,255,0.76); }
.contact-details { display: grid; gap: 10px; margin-top: 28px; }
.contact-details a, .contact-details span { color: #fff; text-decoration: none; font-weight: 800; }
.contact-form {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  padding: 28px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); border-radius: 20px; backdrop-filter: blur(18px);
}
.contact-form label { display: grid; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 900; color: rgba(255,255,255,0.72); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; min-height: 48px; border: 1px solid rgba(255,255,255,0.18); border-radius: 8px;
  background: rgba(255,255,255,0.1); color: #fff; padding: 12px 14px; font: 500 15px var(--sans);
}
.contact-form textarea, .contact-form button { grid-column: 1 / -1; }

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

@media (max-width: 980px) {
  .site-header { height: 72px; }
  .primary-nav {
    position: fixed; left: 16px; right: 16px; top: 82px; display: none; flex-direction: column; align-items: stretch;
    padding: 18px; background: rgba(7,28,23,0.96); border: 1px solid rgba(255,255,255,0.14); border-radius: 14px;
  }
  .primary-nav.is-open { display: flex; }
  .nav-toggle { display: grid; gap: 5px; margin-left: auto; background: transparent; border: 0; }
  .nav-toggle span { width: 26px; height: 2px; background: #fff; display: block; }
  .header-cta { display: none; }
  .hero-grid, .intelligence-section, .walkthrough-sticky, .map-grid, .team-grid, .contact-section { grid-template-columns: 1fr; }
  .hero-grid { padding: 260px 22px 116px; min-width: 0; }
  .hero-copy, .hero-console, .walk-copy, .map-copy { min-width: 0; max-width: 100%; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); left: 18px; right: 18px; }
  .pathway-grid, .proof-track { grid-template-columns: 1fr; }
  .walkthrough-sticky { position: relative; padding: 92px 22px; }
  .intelligence-console { min-height: 500px; }
  .intel-checks { grid-template-columns: repeat(2, 1fr); }
  .room-stage { min-height: 460px; }
  .map-panel { min-height: 430px; }
  .contact-form { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { padding-left: 18px; padding-right: 18px; gap: 12px; }
  .brand { min-width: auto; }
  .brand small { display: none; }
  .brand strong { font-size: 15px; }
  h1 { font-size: clamp(35px, 10.8vw, 42px); max-width: 100%; line-height: 1.03; }
  h2 { font-size: 38px; }
  .eyebrow { font-size: 10px; letter-spacing: 0.14em; }
  .hero { min-height: 780px; }
  .hero-copy h1, .hero-copy .eyebrow, .hero-copy > p:not(.eyebrow) { width: min(330px, calc(100vw - 58px)); max-width: min(330px, calc(100vw - 58px)); }
  .hero-copy > p:not(.eyebrow), .section-heading > p:not(.eyebrow), .contact-copy > p { font-size: 17px; }
  .hero-grid { grid-template-columns: minmax(0, calc(100vw - 44px)); width: 100%; overflow: hidden; }
  .hero-copy, .hero-console { width: calc(100vw - 44px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero-console { display: none; }
  .console-row { display: grid; gap: 4px; }
  .console-row strong { text-align: left; }
  .hero-strip { position: relative; left: auto; right: auto; bottom: auto; margin: -104px 18px 24px; grid-template-columns: 1fr; }
  .section, .contact-section { padding-left: 18px; padding-right: 18px; }
  .intelligence-copy,
  .intelligence-console {
    width: min(100%, 340px);
    margin-right: auto;
    margin-left: auto;
  }
  .intelligence-copy h2 { font-size: clamp(32px, 9vw, 40px); }
  .intelligence-copy p:not(.eyebrow) { font-size: 16px; }
  .intelligence-switch { display: grid; grid-template-columns: repeat(2, 1fr); }
  .intelligence-console {
    min-height: 570px;
    padding: 18px;
  }
  .intelligence-console article { padding: 18px; }
  .intel-checks { grid-template-columns: 1fr; }
  .map-pin span { left: 50%; top: -34px; transform: translateX(-50%); }
}
