@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("../../assets/fonts/instrument-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../../assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../../assets/fonts/ibm-plex-mono-700-latin.woff2") format("woff2");
}

:root {
  --font-sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
  --red: #ec1e27;
  --red-dark: #bd141d;
  --ink: #1d2522;
  --cream: #f4f2ea;
  --cream-deep: #e9e5d9;
  --sky: #d7edf3;
  --sky-bright: #eef9fa;
  --peach: #f6c6b0;
  --white: #fff;
  --border: rgba(29, 37, 34, .2);
  --display-stretch: 92%;
  --display-tracking: -.028em;
  --header-h: 84px;
  --gutter: clamp(1rem, 3vw, 3.25rem);
  --section-space: clamp(4rem, 5vw, 5.5rem);
  --section-space-end: clamp(4.5rem, 6vw, 6.5rem);
  --section-stack: clamp(2rem, 3vw, 3rem);
  --hero-p: 0;
  --overview-p: 0;
  --overview-shift: 64px;
  --route-p: 0;
  --page-p: 0;
  --pointer-x: 0;
  --pointer-y: 0;
  --motion-fast: 180ms;
  --motion-normal: 320ms;
  --motion-slow: 600ms;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --ease-out: cubic-bezier(0, 0, .2, 1);
  color-scheme: light;
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-synthesis: none;
  overflow-x: hidden;
}

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

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

::selection { color: white; background: var(--red); }

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

.skip-link {
  position: fixed;
  z-index: 999;
  left: 1rem;
  top: .7rem;
  padding: .8rem 1rem;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.scroll-progress {
  position: fixed;
  z-index: 300;
  inset: 0 0 auto;
  height: 3px;
  background: rgba(29, 37, 34, .08);
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--red);
  transform: scaleX(var(--page-p));
  transform-origin: left;
}

.eyebrow {
  margin: 0;
  color: var(--red-dark);
  font-family: var(--font-mono);
  font-size: clamp(.64rem, .72vw, .78rem);
  font-weight: 700;
  letter-spacing: .17em;
  line-height: 1.45;
  text-transform: uppercase;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .75s var(--ease-out), transform .9s var(--ease-out);
}

[data-reveal].is-visible { opacity: 1; transform: none; }

.site-header {
  position: fixed;
  z-index: 200;
  inset: 3px 0 auto;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 112px minmax(170px, .8fr) auto auto;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.8rem);
  padding: .65rem var(--gutter);
  border-bottom: 1px solid transparent;
  background: rgba(244, 242, 234, 0);
  transition: min-height .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
}

.site-header.is-scrolled {
  min-height: 68px;
  border-color: var(--border);
  background: rgba(244, 242, 234, .9);
  backdrop-filter: blur(14px);
}

.brand { width: 96px; display: block; }
.brand img { width: 100%; height: auto; }

.context {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.context span { color: var(--red-dark); }
.context b { color: rgba(29, 37, 34, .35); }
.context strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.section-nav { display: flex; align-items: center; gap: clamp(.9rem, 1.6vw, 1.8rem); }

.section-nav a {
  position: relative;
  padding: .7rem 0;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-nav a::after {
  position: absolute;
  inset: auto 0 3px;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}

.section-nav a:hover::after,
.section-nav a:focus-visible::after,
.section-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.header-enquire {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem 1rem;
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .25s var(--ease), background .25s var(--ease);
}

.header-enquire b { font-size: 1rem; transition: transform .25s var(--ease); }
.header-enquire:hover, .header-enquire:focus-visible, .header-enquire.is-active { color: white; background: var(--ink); }
.header-enquire:hover b, .header-enquire:focus-visible b { transform: translate(4px, 4px); }

.township-hero {
  position: relative;
  min-height: 142vh;
  color: var(--ink);
  background: linear-gradient(132deg, var(--sky-bright), var(--sky) 50%, #e9efd9);
}

.hero-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-sky::before,
.hero-sky::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  filter: blur(14px);
}

.hero-sky::before {
  width: 42vw;
  height: 42vw;
  right: -10vw;
  top: 15vh;
  background: rgba(255, 255, 255, .74);
  transform: translate3d(calc(var(--hero-p) * -8vw), calc(var(--hero-p) * 12vh), 0);
}

.hero-sky::after {
  width: 25vw;
  height: 18vw;
  left: 4vw;
  bottom: 15vh;
  background: rgba(246, 198, 176, .28);
}

.hero-grid {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  padding: calc(var(--header-h) + 3.5vh) var(--gutter) 3vh;
  overflow: hidden;
}

.hero-copy {
  z-index: 5;
  grid-column: 1 / 9;
  grid-row: 1;
  padding-top: clamp(1rem, 3vh, 2.5rem);
  opacity: calc(1 - var(--hero-p));
  transform: translateY(calc(var(--hero-p) * -4vh));
  transform-origin: left top;
}

.hero-copy h1 {
  margin: .65rem 0 0;
  font-size: clamp(5.6rem, 12.5vw, 13.8rem);
  font-stretch: var(--display-stretch);
  font-weight: 700;
  letter-spacing: var(--display-tracking);
  line-height: .78;
  text-transform: uppercase;
}

.hero-copy h1 span { display: block; }
.hero-copy h1 span:last-child { margin-left: 13%; }

.hero-intro {
  max-width: 34ch;
  margin: 2.1rem 0 0 13%;
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  font-weight: 520;
  line-height: 1.45;
}

.terrain-stage {
  position: absolute;
  z-index: 3;
  left: 16vw;
  right: -3vw;
  top: 37vh;
  height: min(54vw, 65vh);
  perspective: 1200px;
  transform-style: preserve-3d;
  pointer-events: none;
}

.terrain-stage > img {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(.92) contrast(1.03);
  transform: translate3d(calc(6vw - var(--hero-p) * 6vw + var(--pointer-x) * 12px), calc(3vh + var(--pointer-y) * 8px - var(--hero-p) * 6vh), 0) rotateX(calc(7deg - var(--hero-p) * 6deg)) rotateZ(calc(-1deg + var(--pointer-x) * .7deg)) scale(calc(.69 + var(--hero-p) * .31));
  transform-origin: 60% 54%;
  transition: filter .3s ease;
}

.terrain-shadow {
  position: absolute;
  z-index: 1;
  width: 64%;
  height: 23%;
  left: 21%;
  bottom: 9%;
  border-radius: 50%;
  background: rgba(29, 37, 34, .24);
  filter: blur(38px);
  transform: translateX(calc(5vw - var(--hero-p) * 5vw)) scale(calc(.55 + var(--hero-p) * .32));
  opacity: calc(.55 - var(--hero-p) * .18);
}

.terrain-orbit {
  position: absolute;
  z-index: 2;
  inset: 9% -3% auto;
  width: 106%;
  height: 54%;
  overflow: visible;
}

.terrain-orbit path {
  fill: none;
  stroke: var(--red);
  stroke-width: 1.7;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--hero-p));
}

.terrain-orbit circle { fill: var(--red); opacity: calc(var(--hero-p) * 1.4); }

.terrain-label {
  position: absolute;
  z-index: 8;
  display: grid;
  gap: .25rem;
  min-width: 158px;
  max-width: 190px;
  padding: .55rem .7rem;
  border-left: 1px solid var(--red);
  background: rgba(238, 249, 250, .82);
  box-shadow: 0 10px 28px rgba(29, 37, 34, .08);
  backdrop-filter: blur(7px);
  opacity: clamp(0, calc((var(--hero-p) - .25) * 4), 1);
  transform: translate3d(0, calc((1 - var(--hero-p)) * 14px), 110px);
}

.terrain-label::before {
  display: none;
  content: "";
}

.terrain-label b {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.terrain-label small { font-family: var(--font-mono); font-size: .55rem; letter-spacing: .06em; white-space: nowrap; }
.terrain-label-a { left: 15%; top: 59%; }
.terrain-label-b { left: 48%; top: 22%; }
.terrain-label-c { right: 17%; top: 44%; }

.hero-scroll {
  z-index: 6;
  grid-column: 1 / 4;
  grid-row: 3;
  align-self: end;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  max-width: 280px;
  padding: .8rem 0;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-scroll i { position: relative; height: 1px; background: var(--ink); }
.hero-scroll i::after { position: absolute; width: 7px; height: 7px; right: 0; top: -3px; border: solid currentColor; border-width: 0 1px 1px 0; content: ""; transform: rotate(-45deg); }
.hero-scroll:hover i { animation: line-pulse 1s var(--ease) infinite; }

@keyframes line-pulse { 0%,100% { transform: scaleX(1); transform-origin: right; } 45% { transform: scaleX(.35); transform-origin: right; } 55% { transform-origin: left; } }

.township-story {
  position: relative;
  padding: clamp(3.5rem, 5vw, 5rem) var(--gutter) clamp(5rem, 7vw, 7rem);
  overflow: hidden;
  background: var(--cream);
}

.overview-stage {
  position: relative;
  min-height: clamp(480px, 50vw, 620px);
  display: grid;
  place-items: center;
  padding: clamp(4.25rem, 7vw, 7rem) clamp(1rem, 4vw, 4rem);
  border-block: 1px solid rgba(29,37,34,.36);
}

.overview-contours {
  position: absolute;
  width: min(900px, 94%);
  height: 92%;
  inset: 4% auto auto 50%;
  fill: none;
  stroke: rgba(29,37,34,.3);
  stroke-width: 1.6;
  transform: translate3d(-50%, var(--overview-shift), 0);
  pointer-events: none;
}

.overview-contours path:nth-child(2),
.overview-contours path:nth-child(4) {
  stroke: rgba(236,30,39,.58);
  filter: drop-shadow(0 0 5px rgba(236,30,39,.14));
}

.overview-contours path:nth-child(5) { fill: rgba(236,30,39,.035); }

.overview-contours path {
  --ring-p: 0;
  --ring-alpha: 0;
  --ring-scale: .48;
  opacity: var(--ring-alpha);
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--ring-p));
  transform: scale(var(--ring-scale));
  transform-box: fill-box;
  transform-origin: center;
  vector-effect: non-scaling-stroke;
}

.overview-focus {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  max-width: 980px;
  text-align: center;
}

.overview-focus::before {
  position: absolute;
  z-index: -1;
  inset: -22% -12%;
  background: radial-gradient(ellipse at center, rgba(244,242,234,.98) 0%, rgba(244,242,234,.9) 48%, rgba(244,242,234,.42) 66%, rgba(244,242,234,0) 82%);
  content: "";
  pointer-events: none;
}

.overview-focus > p:first-child {
  margin: 0 0 1.5rem;
  color: var(--red-dark);
  font-family: var(--font-mono);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.overview-focus h2 {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(2.7rem, 4.6vw, 4.75rem);
  font-stretch: 96%;
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1;
}

.overview-focus > p:last-child {
  max-width: 61ch;
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
  color: rgba(29,37,34,.75);
  font-size: clamp(1.0625rem, 1.2vw, 1.2rem);
  line-height: 1.65;
}

.overview-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid rgba(29,37,34,.36);
}

.overview-facts[data-reveal] { opacity: 1; transform: none; transition: none; }

.overview-facts > div {
  min-width: 0;
  display: grid;
  gap: .7rem;
  padding: clamp(1.35rem, 2.2vw, 2rem) clamp(1rem, 2vw, 1.75rem);
  border-right: 1px solid var(--border);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--motion-normal) var(--ease-out), transform var(--motion-normal) var(--ease-out), background-color var(--motion-normal) var(--ease);
}

.overview-facts.is-visible > div { opacity: 1; transform: none; }
.overview-facts.is-visible > div:nth-child(2) { transition-delay: 40ms; }
.overview-facts.is-visible > div:nth-child(3) { transition-delay: 80ms; }
.overview-facts.is-visible > div:nth-child(4) { transition-delay: 120ms; }

.overview-facts > div:first-child { padding-left: 0; }
.overview-facts > div:last-child { padding-right: 0; border-right: 0; }

.overview-facts dt {
  display: grid;
  justify-items: start;
  gap: .8rem;
  color: rgba(29,37,34,.65);
  font-family: var(--font-mono);
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1.45;
  text-transform: uppercase;
}

.fact-icon {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--red-dark);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--motion-normal) var(--ease);
}

.fact-icon path,
.fact-icon rect,
.fact-icon circle {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.overview-facts.is-visible .fact-icon path,
.overview-facts.is-visible .fact-icon rect,
.overview-facts.is-visible .fact-icon circle { animation: fact-icon-draw var(--motion-slow) var(--ease-out) forwards; }

.overview-facts.is-visible > div:nth-child(2) .fact-icon * { animation-delay: 40ms; }
.overview-facts.is-visible > div:nth-child(3) .fact-icon * { animation-delay: 80ms; }
.overview-facts.is-visible > div:nth-child(4) .fact-icon * { animation-delay: 120ms; }

@keyframes fact-icon-draw { to { stroke-dashoffset: 0; } }

.overview-facts dd {
  margin: 0;
  font-size: clamp(1.125rem, 1.45vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.25;
  transition: color var(--motion-fast) var(--ease), transform var(--motion-normal) var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .overview-facts > div:hover { background: rgba(236,30,39,.035); }
  .overview-facts > div:hover .fact-icon { transform: translateY(-5px); }
  .overview-facts > div:hover dd { color: var(--red-dark); transform: translateX(4px); }
}

.connections-head h2,
.life-head h2,
.projects-head h2,
.updates-head h2,
.enquire-head h2 {
  margin: .65rem 0 0;
  font-stretch: var(--display-stretch);
  font-weight: 700;
  letter-spacing: var(--display-tracking);
  line-height: .88;
  white-space: nowrap;
  text-transform: uppercase;
}

.connections {
  min-height: 172vh;
  color: var(--ink);
  background: var(--cream);
}
.connections-sticky { position: sticky; top: 0; min-height: 100vh; display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; padding: calc(var(--header-h) + 1.75rem) var(--gutter) 2.5rem; overflow: hidden; isolation: isolate; }
.connections-head { z-index: 3; grid-column: 1 / 6; align-self: center; }
.connections-head .eyebrow { color: var(--red-dark); }
.connections-head h2 { margin-bottom: 1.5rem; font-size: clamp(2.2rem, 3.8vw, 4.5rem); }
.connections-head > p:last-child { max-width: 35ch; margin: 0; color: rgba(29,37,34,.68); font-size: 1.02rem; line-height: 1.55; }

.route-field { position: relative; grid-column: 6 / -1; min-height: 73vh; align-self: center; overflow: hidden; isolation: isolate; background: linear-gradient(145deg, #dff4f7 0%, var(--sky) 53%, #e7efd8 100%); clip-path: polygon(7% 0, 100% 0, 100% 91%, 88% 100%, 0 95%, 0 10%); }
.route-field::before { position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 7% 88%, transparent 0 20%, rgba(29,37,34,.11) 20.2% 20.45%, transparent 20.7% 33%, rgba(29,37,34,.08) 33.2% 33.45%, transparent 33.7% 47%, rgba(236,30,39,.09) 47.2% 47.45%, transparent 47.7%), linear-gradient(rgba(29,37,34,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(29,37,34,.055) 1px, transparent 1px); background-size: auto, 72px 72px, 72px 72px; content: ""; }
.route-field::after { position: absolute; z-index: 1; right: 1.5rem; bottom: 1.25rem; color: rgba(29,37,34,.42); content: "ISKANDAR / REGIONAL CORRIDOR"; font-family: var(--font-mono); font-size: .55rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.route-field > svg { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route-field path { fill: none; stroke-linecap: round; }
.route-base { stroke: rgba(29,37,34,.2); stroke-width: 2; }
.route-live { stroke: var(--red); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--route-p)); }

.route-mode { position: absolute; z-index: 3; top: 1.5rem; left: 9%; display: flex; align-items: center; gap: .65rem; color: rgba(29,37,34,.64); font-family: var(--font-mono); font-size: .56rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.route-mode svg { position: static; width: 30px; height: 30px; overflow: visible; }
.route-mode path, .route-mode circle { fill: none; stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke; }

.route-origin,
.route-node { position: absolute; z-index: 2; }
.route-origin { left: 1%; bottom: 5%; display: grid; gap: .4rem; }
.route-origin span, .route-node span { color: var(--red-dark); font-family: var(--font-mono); font-size: .6rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.route-origin strong { font-size: clamp(1.8rem, 3vw, 3.5rem); font-stretch: var(--display-stretch); line-height: .88; text-transform: uppercase; }
.route-origin small { color: rgba(29,37,34,.55); font-family: var(--font-mono); font-size: .56rem; text-transform: uppercase; }

.route-node { max-width: 175px; display: grid; justify-items: start; gap: .25rem; opacity: clamp(.55, calc(.35 + var(--route-p) * 1.7), 1); transform: translateY(calc((1 - var(--route-p)) * 22px)); }
.route-node i { width: 13px; height: 13px; margin: 0 0 .25rem -5px; border: 3px solid #e3f2f4; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 1px var(--red); }
.route-node span,
.route-node strong { position: relative; z-index: 2; padding: .18rem .35rem; background: rgba(238,249,250,.92); box-shadow: 0 0 0 2px rgba(238,249,250,.72); }
.route-node strong { max-width: 170px; font-size: .92rem; line-height: 1.1; }
.node-one { left: 21%; bottom: 36%; }
.node-two { left: 40%; bottom: 54%; }
.node-three { left: 60%; top: 27%; }
.node-four { right: 11%; top: 11%; }
.node-five { right: 2%; top: 3%; }

.life { padding: var(--section-space) var(--gutter) var(--section-space-end); background: var(--sky-bright); }
.life-frame { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--section-stack) 1rem; }
.life-head { z-index: 2; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 1rem; }
.life-head .eyebrow { grid-column: 1 / -1; }
.life-head h2 { grid-column: 1 / 9; font-size: clamp(3.5rem, 4.7vw, 5.5rem); }
.life-head h2 span { color: var(--red); }
.life-intro { grid-column: 9 / -1; max-width: 34ch; margin: 0 0 .4rem; color: rgba(29,37,34,.66); font-size: 1rem; line-height: 1.55; }

.life-experience { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr); height: clamp(590px, 48vw, 710px); border-bottom: 1px solid var(--ink); }
.life-visual { --mask-cut: 4%; position: relative; min-width: 0; overflow: hidden; background: var(--cream-deep); clip-path: polygon(var(--mask-cut) 0, 100% 0, 100% 100%, 0 100%, 0 7%); }
.life-visual::after { position: absolute; z-index: 4; height: 1px; top: 0; left: var(--mask-cut); right: 0; background: var(--ink); pointer-events: none; content: ""; }
.life-visual figure { position: absolute; inset: 0; margin: 0; opacity: 0; pointer-events: none; transform: scale(1.025); transition: opacity .48s var(--ease), transform .85s var(--ease); }
.life-visual figure.is-active { z-index: 1; opacity: 1; transform: scale(1); }
.life-visual img { width: 100%; height: 100%; object-fit: cover; }

.life-selector { display: flex; flex-direction: column; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.life-choice { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: 2.3rem minmax(0, 1fr) auto; align-items: center; gap: 1rem; width: 100%; padding: 1.35rem clamp(1.15rem, 2.25vw, 2.5rem); border: 0; border-bottom: 1px solid var(--border); border-radius: 0; color: var(--ink); background: rgba(255,255,255,.18); text-align: left; cursor: pointer; transition: flex-grow .42s var(--ease), color .3s var(--ease), background .3s var(--ease); }
.life-choice:last-child { border-bottom: 0; }
.life-choice:hover, .life-choice:focus-visible { background: rgba(255,255,255,.48); outline: none; }
.life-choice.is-active { flex-grow: 2; color: white; background: var(--ink); }
.life-choice-number { align-self: start; padding-top: .2rem; color: var(--red-dark); font-family: var(--font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .1em; }
.life-choice.is-active .life-choice-number { color: var(--red); }
.life-choice-copy { display: grid; gap: .85rem; }
.life-choice-copy strong { max-width: 17ch; font-size: clamp(1.35rem, 2.05vw, 2.25rem); font-stretch: var(--display-stretch); letter-spacing: -.01em; line-height: 1.08; text-transform: uppercase; }
.life-choice-copy small { display: block; max-width: 38ch; max-height: 0; color: rgba(255,255,255,.9); font-size: clamp(.88rem, 1vw, 1rem); font-weight: 500; line-height: 1.5; opacity: 0; overflow: hidden; transform: translateY(8px); transition: max-height .38s var(--ease), opacity .3s var(--ease), transform .38s var(--ease); }
.life-choice.is-active .life-choice-copy small { max-height: 6rem; opacity: 1; transform: translateY(0); }
.life-choice-mark { color: var(--red); font-size: 1rem; opacity: 0; transform: translate(-5px,5px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.life-choice.is-active .life-choice-mark { opacity: 1; transform: translate(0); }

.projects { padding: var(--section-space) 0 var(--section-space-end); background: var(--cream); overflow: hidden; }
.projects-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; padding: 0 var(--gutter) var(--section-stack); }
.projects-head h2 { font-size: clamp(3.9rem, 5.35vw, 6.1rem); }
.project-controls { display: flex; align-items: center; gap: .8rem; }
.project-controls button { width: 52px; height: 52px; border: 1px solid var(--ink); border-radius: 50%; color: var(--ink); background: transparent; cursor: pointer; transition: color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease); }
.project-controls button:hover, .project-controls button:focus-visible { color: white; background: var(--ink); transform: scale(1.06); }
.project-controls span { font-family: var(--font-mono); font-size: .66rem; font-weight: 700; letter-spacing: .1em; }
.project-controls b { color: var(--red-dark); }

.project-track {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  padding: 0 var(--gutter) 1.5rem;
  overflow-x: auto;
  scroll-padding-inline: var(--gutter);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.project-track::-webkit-scrollbar { display: none; }

.project-card {
  flex: 0 0 min(1040px, 82vw);
  min-height: min(620px, 70vh);
  display: grid;
  grid-template-columns: 1.45fr .85fr;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: #fffdf8;
  scroll-snap-align: start;
}

.project-media { min-width: 0; overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.025); }
.project-media-terrain { display: grid; place-items: center; background: linear-gradient(145deg, #d9f0f4, #e8efd7); }
.project-media-terrain img { object-fit: contain; transform: scale(.9); }
.project-card:hover .project-media-terrain img { transform: scale(.93) rotate(.7deg); }

.project-copy { display: flex; flex-direction: column; padding: clamp(1.7rem, 3vw, 3.2rem); }
.project-copy .eyebrow { color: var(--red-dark); }
.project-copy h3 { margin: auto 0 1.5rem; font-size: clamp(3rem, 5.2vw, 6.2rem); font-stretch: var(--display-stretch); letter-spacing: -.03em; line-height: .78; text-transform: uppercase; }
.project-copy > p:not(.eyebrow) { max-width: 30ch; margin: 0 0 2rem; color: rgba(29,37,34,.68); line-height: 1.5; }
.project-copy > span { padding-top: 1rem; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.updates { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--section-stack) 1rem; padding: var(--section-space) var(--gutter) var(--section-space-end); background: #f7eee8; }
.updates-head { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 1rem; }
.updates-head .eyebrow { grid-column: 1 / -1; }
.updates-head h2 { grid-column: 1 / 7; font-size: clamp(3.9rem, 5.2vw, 5.9rem); }
.updates-intro { grid-column: 8 / -1; max-width: 34ch; margin: 0 0 .4rem; color: rgba(29,37,34,.66); font-size: 1rem; line-height: 1.55; }

.updates-grid { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.update-card { min-width: 0; display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--ink); color: var(--ink); background: #fffdf8; overflow: hidden; }
.update-card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .7s var(--ease); }
.update-card:hover > img { transform: scale(1.025); }
.update-card-body { display: flex; flex-direction: column; gap: 1.25rem; min-height: 330px; padding: clamp(1.5rem, 2.5vw, 2.6rem); }
.update-card .eyebrow { color: var(--red-dark); }
.update-card h3 { max-width: 15ch; margin: 0; font-size: clamp(2.25rem, 3.4vw, 4rem); font-stretch: var(--display-stretch); letter-spacing: -.03em; line-height: .9; text-transform: uppercase; }
.update-card-body > p:not(.eyebrow) { max-width: 38ch; margin: 0; color: rgba(29,37,34,.68); line-height: 1.5; }
.update-card a { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--ink); color: var(--red-dark); font-family: var(--font-mono); font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.update-card a span { display: inline-block; margin-left: .5rem; transition: transform .25s var(--ease); }
.update-card a:hover span, .update-card a:focus-visible span { transform: translate(4px,-4px); }

.enquire { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto auto; gap: 2.25rem 1rem; padding: clamp(5.5rem, 7vw, 8rem) var(--gutter) 4rem; background: linear-gradient(135deg, var(--sky-bright), #e8f1e2 62%, var(--peach)); overflow: hidden; }
.enquire-aura { position: absolute; width: 47vw; height: 47vw; right: -17vw; top: -18vw; border: 1px solid rgba(236,30,39,.34); border-radius: 50%; }
.enquire-aura::before, .enquire-aura::after { position: absolute; border: 1px solid rgba(236,30,39,.23); border-radius: 50%; content: ""; }
.enquire-aura::before { inset: 10%; }
.enquire-aura::after { inset: 23%; }
.enquire-head { position: relative; z-index: 2; grid-column: 1 / 7; grid-row: 1; align-self: start; }
.enquire-head h2 { margin-bottom: 2rem; font-size: clamp(3.4rem, 4.8vw, 5.4rem); }
.enquire-head > p:last-child { max-width: 40ch; margin: 0; font-size: 1rem; line-height: 1.55; }

.enquire-landmark { position: relative; z-index: 2; grid-column: 1 / 7; grid-row: 2; min-width: 0; min-height: 255px; margin: -1rem 0 0; align-self: end; overflow: hidden; border-bottom: 1px solid var(--ink); }
.enquire-landmark svg { display: block; width: 100%; height: 230px; }
.enquire-landmark path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease); }
.enquire-landmark.is-visible path { stroke-dashoffset: 0; }
.enquire-landmark .landmark-ground { fill: none; stroke: rgba(29,37,34,.45); stroke-width: 1.2; }
.enquire-landmark .landmark-route { fill: none; stroke: var(--red); stroke-width: 2.2; transition-delay: .16s; }
.enquire-landmark .landmark-building, .enquire-landmark .landmark-glass { fill: none; stroke: var(--ink); stroke-width: 1.25; transition-delay: .08s; }
.enquire-landmark .landmark-glass { stroke: rgba(29,37,34,.36); transition-delay: .24s; }
.enquire-landmark .landmark-sun { fill: rgba(236,30,39,.1); stroke: var(--red); stroke-width: 1.5; }
.enquire-landmark .landmark-dot { fill: var(--red); }
.enquire-landmark figcaption { position: absolute; left: 0; bottom: .8rem; display: grid; gap: .3rem; padding: .75rem 1rem; color: var(--ink); background: rgba(244,242,234,.9); backdrop-filter: blur(8px); }
.enquire-landmark figcaption span { color: var(--red-dark); font-family: var(--font-mono); font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.enquire-landmark figcaption strong { font-size: 1rem; }

.enquire-form { position: relative; z-index: 2; grid-column: 8 / -1; grid-row: 1 / 3; display: grid; align-content: start; gap: 1rem; padding-top: 1rem; }
.enquire-form label { display: grid; gap: .55rem; }
.enquire-form label > span { color: rgba(29,37,34,.7); font-family: var(--font-mono); font-size: .61rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.enquire-form input, .enquire-form select, .enquire-form textarea { width: 100%; min-height: 54px; padding: .9rem 1rem; border: 1px solid rgba(29,37,34,.28); border-radius: 0; color: var(--ink); background: rgba(255,255,255,.72); outline: none; }
.enquire-form textarea { min-height: 95px; resize: vertical; }
.enquire-form select option { color: var(--ink); background: white; }
.enquire-form input:focus, .enquire-form select:focus, .enquire-form textarea:focus { border-color: var(--red-dark); box-shadow: 0 0 0 1px var(--red-dark); }
.enquire-form button { min-height: 58px; display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; padding: .8rem 1.1rem; border: 0; color: white; background: var(--red-dark); font-size: 1rem; font-weight: 700; letter-spacing: .08em; cursor: pointer; text-transform: uppercase; }
.enquire-form button b { font-size: 1.2rem; transition: transform .25s var(--ease); }
.enquire-form button:hover b, .enquire-form button:focus-visible b { transform: translate(5px,-5px); }
.form-status { margin: 0; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.form-status.is-success { color: var(--red-dark); font-weight: 700; }

.enquire-details { position: relative; z-index: 2; grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.5rem; border-block: 1px solid var(--ink); }
.enquire-details > * { min-width: 0; display: grid; align-content: start; gap: 1rem; padding: 1.4rem; border-right: 1px solid var(--border); font-style: normal; text-decoration: none; }
.enquire-details > *:last-child { border-right: 0; }
.enquire-details span { color: var(--red-dark); font-family: var(--font-mono); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.enquire-details strong { overflow-wrap: anywhere; font-size: clamp(.9rem, 1.3vw, 1.2rem); line-height: 1.35; }
.enquire-details small { margin-top: -.3rem; color: var(--ink); font-size: .8rem; font-weight: 600; line-height: 1.45; opacity: 1; }

.site-footer { min-height: 140px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; padding: 2rem var(--gutter); border-top: 1px solid var(--border); color: var(--ink); background: var(--cream); }
.footer-brand { width: 94px; opacity: 1; }
.site-footer p { margin: 0; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer > a:last-child { color: var(--red-dark); font-family: var(--font-mono); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }

@media (max-width: 1180px) {
  :root { --header-h: 78px; }
  main > section[id] { scroll-margin-top: 144px; }
  .site-header { grid-template-columns: 96px minmax(155px, 1fr) auto; }
  .section-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; order: 4; margin: -.65rem calc(var(--gutter) * -1) -.65rem; padding: .25rem var(--gutter); border-top: 1px solid var(--border); background: rgba(244,242,234,.94); }
  .site-header { align-content: center; }
  .header-enquire { grid-column: 3; }
  .township-hero { min-height: 150vh; }
  .hero-grid { padding-top: 122px; }
  .terrain-label { min-width: 145px; }
  .terrain-label-a { left: 18%; }
  .terrain-label-b { left: 47%; }
  .terrain-label-c { right: 20%; }
  .route-node { max-width: 125px; }
  .project-card { flex-basis: 88vw; }
}

@media (max-width: 900px) {
  :root { --gutter: clamp(1rem, 4vw, 2rem); }
  .context strong { display: none; }
  .hero-copy { grid-column: 1 / -1; }
  .hero-copy h1 { font-size: clamp(5rem, 15vw, 8rem); line-height: .8; }
  .hero-copy h1 span:last-child, .hero-intro { margin-left: 7%; }
  .terrain-stage { left: 0; right: -5vw; top: 36vh; height: 55vh; }
  .overview-stage { min-height: 540px; }
  .overview-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-facts > div { border-bottom: 1px solid var(--border); }
  .overview-facts > div:nth-child(2n) { border-right: 0; }
  .overview-facts > div:first-child { padding-left: clamp(1rem, 2vw, 1.75rem); }
  .overview-facts > div:last-child { padding-right: clamp(1rem, 2vw, 1.75rem); border-bottom: 0; }
  .overview-facts > div:nth-last-child(2) { border-bottom: 0; }
  .connections-sticky { grid-template-rows: auto 1fr; padding-top: 126px; }
  .connections-head { grid-column: 1 / 9; align-self: start; }
  .connections-head h2 { margin-bottom: 1rem; }
  .route-field { grid-column: 2 / -1; min-height: 58vh; }
  .life-head { grid-column: 1 / -1; grid-row: auto; }
  .life-experience { grid-template-columns: 1fr; height: auto; }
  .life-visual { min-height: 520px; }
  .life-selector { display: grid; grid-template-rows: none; border-top: 1px solid var(--ink); border-left: 0; }
  .life-choice { min-height: 132px; }
  .project-card { min-height: 590px; grid-template-columns: 1.15fr .85fr; }
  .updates-head { grid-column: 1 / -1; grid-row: auto; }
  .updates-grid { grid-column: 1 / -1; grid-row: auto; grid-template-columns: 1fr; }
  .enquire-head, .enquire-landmark { grid-column: 1 / 7; }
  .enquire-form { grid-column: 7 / -1; grid-row: 1 / 3; margin-top: 0; }
  .enquire-details { grid-template-columns: 1fr; }
  .enquire-details > * { border-right: 0; border-bottom: 1px solid var(--border); }
  .enquire-details > *:last-child { border-bottom: 0; }
}

@media (max-width: 660px) {
  :root { --header-h: 70px; }
  main > section[id] { scroll-margin-top: 122px; }
  .site-header { grid-template-columns: 76px 1fr auto; gap: .75rem; padding-block: .55rem; }
  .brand { width: 72px; }
  .context { font-size: .56rem; }
  .context b, .context strong { display: none; }
  .header-enquire { min-height: 40px; padding: .55rem .75rem; }
  .header-enquire b { display: none; }
  .section-nav { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; gap: .35rem; overflow: visible; }
  .section-nav::-webkit-scrollbar { display: none; }
  .section-nav a { font-size: .54rem; letter-spacing: .025em; }
  .township-hero { min-height: 132vh; }
  .hero-grid { min-height: 100svh; grid-template-rows: auto 1fr auto; padding-top: 112px; }
  .hero-copy { padding-top: 1rem; }
  .hero-copy h1 { font-size: clamp(3.75rem, 16.7vw, 5.2rem); line-height: .83; }
  .hero-copy h1 span:last-child { margin-left: 0; }
  .hero-intro { max-width: 28ch; margin: 1.3rem 0 0; font-size: .95rem; }
  .terrain-stage { left: -3vw; right: -3vw; top: 46vh; height: 34vh; }
  .terrain-label { display: none; }
  .hero-scroll { grid-column: 1 / 7; grid-row: 3; }
  .township-story { padding-block: 3.25rem 4.75rem; }
  .overview-stage { min-height: 520px; padding: 4rem .5rem; }
  .overview-contours { width: 165%; height: 88%; inset-block-start: 6%; }
  .overview-focus > p:first-child { margin-bottom: 1.2rem; }
  .overview-focus h2 { max-width: 17ch; font-size: clamp(2.1rem, 9.4vw, 2.55rem); line-height: 1.03; }
  .overview-focus > p:last-child { max-width: 35ch; margin-top: 1.6rem; font-size: 1.0625rem; line-height: 1.62; }
  .overview-facts { grid-template-columns: 1fr; }
  .overview-facts > div { grid-template-columns: minmax(145px, .9fr) minmax(0, 1.1fr); align-items: center; gap: 1rem; padding: 1.15rem 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .overview-facts > div:first-child { padding-left: 0; }
  .overview-facts > div:last-child { padding-right: 0; border-bottom: 0; }
  .overview-facts > div:nth-last-child(2) { border-bottom: 1px solid var(--border); }
  .overview-facts dt { grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: .75rem; font-size: .69rem; }
  .fact-icon { width: 30px; height: 30px; }
  .overview-facts dd { font-size: 1.125rem; }
  .connections-head h2, .life-head h2, .projects-head h2, .updates-head h2, .enquire-head h2 { font-size: clamp(3.15rem, 13.5vw, 4.45rem); line-height: .88; white-space: normal; }
  .connections { min-height: 165vh; }
  .connections-sticky { display: block; padding-top: 118px; }
  .connections-head { position: relative; z-index: 4; }
  .connections-head > p:last-child { font-size: .9rem; }
  .route-field { min-height: 58vh; margin-top: 1.2rem; }
  .route-field svg { opacity: .85; }
  .route-field::after { right: .8rem; bottom: .8rem; font-size: .46rem; }
  .route-mode { top: 1rem; left: 8%; font-size: .48rem; }
  .route-mode svg { width: 26px; height: 26px; }
  .route-origin { bottom: 2%; }
  .route-origin strong { font-size: 1.5rem; }
  .route-node { max-width: 105px; }
  .route-node strong { font-size: .7rem; }
  .route-node span { font-size: .48rem; }
  .node-one { left: 17%; bottom: 35%; }
  .node-two { left: 38%; bottom: 53%; }
  .node-three { left: 58%; top: 27%; }
  .node-four { right: 4%; top: 10%; }
  .node-five { right: -2%; top: -1%; }
  .life { padding-block: 4rem 4.75rem; }
  .life-frame { display: block; }
  .life-head { display: block; }
  .life-intro { margin-top: 1.4rem; }
  .life-experience { margin-top: 3rem; }
  .life-visual { --mask-cut: 5%; min-height: 340px; clip-path: polygon(var(--mask-cut) 0, 100% 0, 100% 100%, 0 100%, 0 8%); }
  .life-choice { grid-template-columns: 1.8rem minmax(0, 1fr) auto; min-height: 104px; padding: 1.1rem .95rem; }
  .life-choice-copy strong { font-size: 1.32rem; line-height: 1.12; }
  .life-choice.is-active { min-height: 164px; }
  .projects { padding-block: 4rem 4.75rem; }
  .projects-head { display: block; }
  .project-controls { margin-top: 2rem; }
  .project-card { flex-basis: calc(100vw - 2rem); min-height: 680px; grid-template-columns: 1fr; grid-template-rows: 54% 46%; }
  .project-copy { padding: 1.3rem; }
  .project-copy h3 { margin: auto 0 .8rem; font-size: 3.2rem; }
  .project-copy > p:not(.eyebrow) { margin-bottom: 1rem; font-size: .8rem; }
  .updates { display: block; padding-block: 4rem 4.75rem; }
  .updates-head { display: block; }
  .updates-intro { margin-top: 1.4rem; }
  .updates-grid { margin-top: 3rem; gap: 1rem; }
  .update-card-body { min-height: 300px; }
  .enquire { display: block; padding-block: 4.75rem 3rem; }
  .enquire-landmark { min-height: 230px; margin-top: 2.5rem; }
  .enquire-landmark svg { height: 215px; }
  .enquire-form { margin-top: 3rem; }
  .enquire-details { margin-top: 4rem; }
  .site-footer { grid-template-columns: 1fr auto; min-height: 130px; }
  .site-footer p { display: none; }
  .footer-brand { width: 75px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --motion-fast: 1ms; --motion-normal: 1ms; --motion-slow: 1ms; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .overview-contours { transform: translate3d(-50%, 0, 0); }
  .overview-contours path, .fact-icon path, .fact-icon rect, .fact-icon circle, .enquire-landmark path { stroke-dashoffset: 0; }
  .overview-facts > div { opacity: 1; transform: none; }
  .terrain-stage > img { transform: none; }
  .terrain-orbit path, .route-live { stroke-dashoffset: 0; }
  .route-node, .terrain-label { opacity: 1; transform: none; }
}
