/* =========================================================
   RXTXR Architecture — styles
   ========================================================= */

/* Inter Tight (SIL Open Font License 1.1), self-hosted, latin subset, variable weight */
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-tight-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #F5F4F0;
  --paper-2: #ECEAE4;
  --white: #FFFFFF;
  --ink: #0A0A0A;
  --ink-2: #33332F;
  --muted: #76746D;
  --line: rgba(10, 10, 10, .12);
  --yellow: #FFFF00;
  --night: #0A0A0A;
  --night-2: #131312;
  --night-line: rgba(255, 255, 255, .12);
  --night-muted: rgba(255, 255, 255, .62);

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --radius: clamp(20px, 2vw, 30px);
  --ease: cubic-bezier(.2, .75, .1, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ol, ul { list-style: none; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 6px; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(104px, 16vh, 184px) 0; }

/* ---------- Type ---------- */
.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted);
}
.label::before {
  content: ""; width: 11px; height: 10px; flex: none;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
[data-nav="dark"] .label { color: var(--night-muted); }
[data-nav="dark"] .label::before { background: var(--yellow); }

.display {
  font-size: clamp(2.6rem, 6.2vw, 6rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 600;
  margin-top: 24px;
  text-wrap: balance;
}
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); max-width: 44ch; margin-top: 28px; text-wrap: pretty; }
[data-nav="dark"] .lead { color: var(--night-muted); }

.hl {
  font-style: normal;
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 30%;
  padding: 0 .04em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: 54px; padding: 0 28px; border-radius: 999px;
  font-size: 16px; font-weight: 500; letter-spacing: -.005em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn .arr { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--yellow); color: var(--ink); }
.btn-ghost { border-color: var(--line); background: rgba(255,255,255,.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: 72px; display: flex; align-items: center; gap: 36px;
  padding: 0 var(--gutter);
  transition: transform .6s var(--ease), color .35s;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(245, 244, 240, .72);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .35s, background .35s, border-color .35s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-dark { color: #fff; }
.nav.is-dark::before { background: rgba(10, 10, 10, .62); border-color: var(--night-line); }

.nav-brand { position: relative; width: 133px; height: 36px; flex: none; }
.nav-brand img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .35s; }
.nav-brand .on-dark, .nav.is-dark .nav-brand .on-light { opacity: 0; }
.nav.is-dark .nav-brand .on-dark { opacity: 1; }

.nav-links { display: flex; gap: 30px; margin-left: auto; font-size: 14px; font-weight: 500; }
.nav-links a { opacity: .66; transition: opacity .25s; }
.nav-links a:hover, .nav-links a.is-active { opacity: 1; }
.nav.is-dark .nav-cta { background: #fff; color: var(--ink); }
.nav.is-dark .nav-cta:hover { background: var(--yellow); }

.nav-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.nav-burger span:first-child { top: 18px; }
.nav-burger span:last-child { top: 25px; }
.menu-open .nav-burger span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .nav-burger span:last-child { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 104px var(--gutter) 40px;
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
.menu-open .menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.menu-open .nav { color: var(--ink); }
.menu-open .nav::before { opacity: 0; }
.menu-open .nav .on-light { opacity: 1; }
.menu-open .nav .on-dark { opacity: 0; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  display: flex; align-items: baseline; gap: 18px;
  font-size: clamp(2.4rem, 11vw, 4rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.15;
  border-bottom: 1px solid var(--line); padding: 10px 0;
  transform: translateY(20px); opacity: 0;
  transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.menu nav a span { font-size: 12px; letter-spacing: .2em; color: var(--muted); font-weight: 500; }
.menu-open .menu nav a { transform: none; opacity: 1; }
.menu-open .menu nav a:nth-child(2) { transition-delay: .04s; }
.menu-open .menu nav a:nth-child(3) { transition-delay: .08s; }
.menu-open .menu nav a:nth-child(4) { transition-delay: .12s; }
.menu-open .menu nav a:nth-child(5) { transition-delay: .16s; }
.menu-foot { color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .nav-brand { width: 118px; height: 32px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 300vh; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#city, #pyramid { position: absolute; inset: 0; width: 100%; height: 100%; }
#city { z-index: 0; opacity: 0; }
#pyramid { z-index: 1; }
.has-3d #city { animation: city-in 1.6s var(--ease) both; }
.has-3d #pyramid { display: none; }
@keyframes city-in { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }

/* Veil keeps the headline legible over the fly-through */
.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; display: none;
  background:
    linear-gradient(180deg, rgba(245,244,240,.85) 0, rgba(245,244,240,0) 110px),
    linear-gradient(90deg, rgba(245,244,240,.96) 0%, rgba(245,244,240,.82) 26%, rgba(245,244,240,0) 56%),
    linear-gradient(0deg, rgba(245,244,240,.95) 0%, rgba(245,244,240,0) 34%);
}
.has-3d .hero-veil { display: block; }

/* Annotation that follows the building the drone is visiting */
.hud-tag { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; opacity: 0; will-change: transform, opacity; }
.hud-inner { display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -100%); }
.hud-label {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 7px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.35);
}
.hud-num { background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.hud-line { width: 1px; height: 44px; background: var(--ink); }
.hud-dot { width: 11px; height: 11px; margin-top: -2px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); }

/* Typology reel (Apple-style autoplay indicator) */
.hero-reel {
  position: absolute; z-index: 2; display: none; gap: 14px;
  right: var(--gutter); bottom: clamp(48px, 10vh, 112px);
}
.has-3d .hero-reel { display: flex; }
.hero-reel button {
  width: clamp(84px, 7.4vw, 112px); background: none; border: 0; padding: 8px 0; cursor: pointer; text-align: left;
  font-size: 12px; font-weight: 500; color: var(--muted); transition: color .3s;
}
.hero-reel button i { display: block; height: 2px; margin-top: 10px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.hero-reel button i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--f, 0)); }
.hero-reel button.is-active, .hero-reel button:hover { color: var(--ink); }
@media (max-width: 1180px) { .hero-reel { display: none !important; } }

.hero-copy {
  position: absolute; z-index: 2;
  left: var(--gutter); right: var(--gutter); bottom: clamp(48px, 10vh, 112px);
  max-width: 900px;
  will-change: opacity, transform;
}
.hero h1 {
  font-size: clamp(3.3rem, 8.2vw, 8.6rem);
  line-height: .9; letter-spacing: -.055em; font-weight: 600;
  margin: 0 0 28px;
}
.hero h1 .h1-kicker { display: flex; line-height: 1.4; margin-bottom: 22px; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .ln > span { display: inline-block; transform: translateY(110%); animation: rise 1.3s var(--ease) .15s forwards; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .27s; }
.hero h1 .hl { background-size: 0% 30%; animation: sweep 1s var(--ease) 1.1s forwards; }
.hero-sub, .hero-ctas, .hero-copy .h1-kicker { opacity: 0; animation: fade-up 1s var(--ease) .55s forwards; }
.hero-ctas { animation-delay: .7s; }
.hero-copy .h1-kicker { animation-delay: .1s; }
.hero-sub { max-width: 30em; font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

@keyframes rise { to { transform: none; } }
@keyframes sweep { to { background-size: 100% 30%; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero-logo {
  position: absolute; left: 50%; top: 46%; z-index: 0;
  width: min(760px, 84vw);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.logo-box { position: relative; }
.logo-box img { width: 100%; height: auto; }
.logo-word {
  --r: 23.4%; --l: 23.4%;
  clip-path: polygon(23.4% 0, var(--r) 0, var(--r) 100%, var(--l) 100%, var(--l) 77%, 23.4% 77%);
}
.logo-full { position: absolute; inset: 0; opacity: 0; }
.hero-tag {
  position: absolute; left: 0; right: 0; top: calc(100% + clamp(28px, 5vh, 56px));
  text-align: center; font-size: clamp(17px, 1.9vw, 26px); font-weight: 500; letter-spacing: -.015em;
  color: var(--ink-2); opacity: 0;
}
.hero-tag span { white-space: nowrap; background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 88% / 100% 30%; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; z-index: 3; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 0 8px 0 18px;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  transition: border-color .3s, background .3s, opacity .5s var(--ease);
}
.scroll-cue:hover { border-color: var(--ink); background: #fff; }
.scroll-cue i { position: relative; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); overflow: hidden; }
.scroll-cue i::before, .scroll-cue i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -6px 0 0 -3.5px;
  border-right: 1.5px solid var(--yellow); border-bottom: 1.5px solid var(--yellow); transform: rotate(45deg);
  animation: chev 1.8s var(--ease) infinite;
}
.scroll-cue i::after { animation-delay: .9s; opacity: 0; }
@keyframes chev { 0% { transform: translateY(-9px) rotate(45deg); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(9px) rotate(45deg); opacity: 0; } }

@media (max-width: 900px) {
  .hero-copy { bottom: 68px; }
  .scroll-cue { bottom: 14px; }
  .scroll-cue span { display: none; }
  .scroll-cue { padding: 0 6px; height: 38px; }
  .hero-logo { top: 42%; }
  .hero-veil { background: linear-gradient(180deg, rgba(245,244,240,.85) 0, rgba(245,244,240,0) 96px), linear-gradient(0deg, rgba(245,244,240,.97) 0%, rgba(245,244,240,.9) 42%, rgba(245,244,240,0) 64%); }
  .hero-copy .h1-kicker { letter-spacing: .18em; font-size: 11px; }
}

/* ---------- Statement ---------- */
.statement { position: relative; height: 240vh; }
.statement-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: 32px;
}
.statement-text {
  font-size: clamp(1.9rem, 4.3vw, 4.25rem);
  line-height: 1.1; letter-spacing: -.035em; font-weight: 600;
  max-width: 22em; text-wrap: pretty;
}
.statement-text .w { opacity: .13; transition: opacity .4s var(--ease), background-size .6s var(--ease); }
.statement-text .w.on { opacity: 1; }
.statement-text .w.hl { background-size: 0% 30%; }
.statement-text .w.hl.on { background-size: 100% 30%; }

/* ---------- Sectors ---------- */
.sectors { background: var(--night); color: #fff; padding-top: clamp(104px, 16vh, 184px); }
.sectors-head {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end;
  padding-bottom: clamp(40px, 6vh, 72px);
}
.sectors-intro { color: var(--night-muted); font-size: clamp(17px, 1.35vw, 19px); max-width: 38ch; justify-self: end; text-wrap: pretty; }

.hscroll { position: relative; }
.hscroll-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.hscroll-track {
  display: flex; gap: 20px; width: max-content;
  padding: 0 var(--gutter);
  will-change: transform;
}
.sector-card {
  width: min(1140px, 84vw); height: min(640px, 70svh);
  display: grid; grid-template-columns: 1.3fr 1fr;
  background: var(--night-2);
  border: 1px solid var(--night-line); border-radius: var(--radius);
  overflow: hidden;
}
.sector-art {
  position: relative; display: grid; place-items: center;
  padding: clamp(16px, 3%, 36px);
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  min-height: 0;
}
.sector-art svg { width: 100%; height: 100%; overflow: visible; }
.sector-body {
  display: flex; flex-direction: column;
  padding: clamp(28px, 3.4vw, 56px);
  border-left: 1px solid var(--night-line);
}
.sector-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sector-num { font-size: 13px; font-weight: 600; letter-spacing: .3em; color: var(--yellow); }
.flag { font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--yellow); color: var(--ink); }
.flag-alt { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.sector-body h3 {
  font-size: clamp(2rem, 3.3vw, 3.3rem); line-height: 1; letter-spacing: -.04em; font-weight: 600;
  margin: auto 0 20px; text-wrap: balance;
}
.sector-body p { color: var(--night-muted); max-width: 40ch; text-wrap: pretty; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tags li { font-size: 13px; padding: 7px 14px; border: 1px solid var(--night-line); border-radius: 999px; color: rgba(255,255,255,.82); }

.hs-progress { display: flex; gap: clamp(16px, 3vw, 40px); padding-top: clamp(24px, 4vh, 40px); }
.hs-progress button {
  flex: 1; max-width: 200px; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.45); transition: color .3s;
}
.hs-progress button i { display: block; height: 2px; margin-top: 10px; background: rgba(255,255,255,.14); position: relative; overflow: hidden; border-radius: 2px; }
.hs-progress button i::after { content: ""; position: absolute; inset: 0; background: var(--yellow); transform-origin: left; transform: scaleX(var(--f, 0)); }
.hs-progress button.is-active { color: #fff; }

/* Isometric drawings */
.iso .f { stroke: rgba(255,255,255,.88); stroke-width: var(--sw); stroke-linejoin: round; fill-opacity: 0; }
.iso .f-t { fill: #262624; }
.iso .f-l { fill: #1A1A19; }
.iso .f-r { fill: #121211; }
.iso .accent .f-t { fill: #FFFF00; }
.iso .accent .f-l { fill: #E3DC00; }
.iso .accent .f-r { fill: #BDB500; }
.iso .accent .f { stroke: rgba(10,10,10,.55); }
.iso .ln { fill: none; stroke: rgba(255,255,255,.34); stroke-width: calc(var(--sw) * .8); }
.iso .ln-y { stroke: var(--yellow); stroke-width: var(--sw); }
.iso .site { fill: none; stroke: rgba(255,255,255,.28); stroke-width: var(--sw); stroke-dasharray: calc(var(--sw) * 6) calc(var(--sw) * 4); opacity: 0; transition: opacity 1.2s var(--ease) .1s; }
.iso .f, .iso .ln {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.5s var(--ease) calc(var(--i) * 45ms), fill-opacity .9s var(--ease) calc(var(--i) * 45ms + .55s);
}
.iso.drawn .f, .iso.drawn .ln { stroke-dashoffset: 0; }
.iso.drawn .f { fill-opacity: 1; }
.iso.drawn .site { opacity: 1; }

@media (max-width: 900px) {
  .sectors-head { grid-template-columns: 1fr; gap: 24px; }
  .sectors-intro { justify-self: start; }
  .hscroll-stage { position: static; height: auto; display: block; overflow: visible; padding-bottom: clamp(80px, 12vh, 120px); }
  .hscroll-track { flex-direction: column; width: auto; gap: 16px; }
  .sector-card { width: 100%; height: auto; grid-template-columns: 1fr; }
  .sector-art { aspect-ratio: 4 / 3; }
  .sector-body { border-left: 0; border-top: 1px solid var(--night-line); }
  .sector-body h3 { margin-top: 40px; }
  .hs-progress { display: none; }
}

/* ---------- Approach (bento) ---------- */
.approach .display { max-width: 16em; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: clamp(48px, 8vh, 88px); }
.card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 400px; padding: clamp(28px, 3vw, 44px);
  background: var(--white); border-radius: var(--radius);
}
.card h3 { font-size: clamp(1.7rem, 2.4vw, 2.5rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.card p { color: var(--muted); margin-top: 14px; max-width: 42ch; text-wrap: pretty; }
.c-principal { grid-column: span 4; }
.c-schedule, .c-finance, .c-approvals, .c-local { grid-column: span 2; }
.c-schedule, .c-finance { justify-content: flex-end; }
.c-approvals { background: var(--yellow); justify-content: flex-end; }
.c-approvals p { color: rgba(10,10,10,.7); }
.c-local { background: var(--ink); color: #fff; grid-column: span 2; }
.c-local p { color: var(--night-muted); margin-top: auto; }
.c-finance { grid-column: span 2; }

/* Principal timeline */
.timeline { margin-top: auto; padding-top: 48px; }
.tl-track { position: relative; height: 4px; background: var(--paper-2); border-radius: 4px; margin: 0 7px; }
.tl-bar { position: absolute; inset: 0; background: var(--ink); border-radius: 4px; transform-origin: left; transform: scaleX(0); transition: transform 2s var(--ease) .3s; }
.tl-track i {
  position: absolute; top: 50%; left: var(--x); width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--white); border: 2px solid var(--paper-2);
  transition: background .4s, border-color .4s, transform .5s var(--ease-spring);
}
.tl-phases { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 18px; font-size: 13px; color: var(--muted); }
.tl-phases span:nth-child(2), .tl-phases span:nth-child(3), .tl-phases span:nth-child(4) { text-align: center; }
.tl-phases span:last-child { text-align: right; }
.tl-legend { display: flex; align-items: center; gap: 10px; margin-top: 22px !important; font-size: 13px; color: var(--ink) !important; font-weight: 500; }
.tl-legend b { width: 22px; height: 4px; background: var(--ink); border-radius: 4px; }
.in .tl-bar { transform: scaleX(1); }
.in .tl-track i { background: var(--yellow); border-color: var(--ink); transform: scale(1.15); }
.in .tl-track i:nth-of-type(1) { transition-delay: .3s; }
.in .tl-track i:nth-of-type(2) { transition-delay: .75s; }
.in .tl-track i:nth-of-type(3) { transition-delay: 1.2s; }
.in .tl-track i:nth-of-type(4) { transition-delay: 1.65s; }
.in .tl-track i:nth-of-type(5) { transition-delay: 2.1s; }

/* Schedule ring */
.ring { width: 132px; margin-bottom: auto; }
.ring circle { fill: none; stroke-width: 8; }
.ring-bg { stroke: var(--paper-2); }
.ring-fg { stroke: var(--ink); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset 2s var(--ease) .3s; }
.ring-check { fill: none; stroke: var(--ink); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s var(--ease) 2s; }
.in .ring-fg, .in .ring-check { stroke-dashoffset: 0; }

/* Finance chart */
.chart { margin-bottom: auto; }
.chart svg { width: 100%; overflow: visible; }
.chart .budget { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 6; }
.chart text { font-size: 12px; fill: var(--muted); font-family: inherit; letter-spacing: .08em; }
.chart .cost { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease) .3s; }
.chart .cost-dot { fill: var(--yellow); stroke: var(--ink); stroke-width: 3; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .6s var(--ease-spring) 2.1s; }
.in .chart .cost { stroke-dashoffset: 0; }
.in .chart .cost-dot { transform: scale(1); }

/* Approval stamp */
.stamp { position: absolute; top: clamp(20px, 3vw, 36px); right: clamp(20px, 3vw, 36px); width: 150px; opacity: 0; transform: scale(1.7) rotate(-30deg); transition: transform .8s var(--ease-spring) .4s, opacity .3s .4s; }
.in .stamp { opacity: 1; transform: scale(1) rotate(-10deg); }
.stamp .stamp-ring { fill: none; stroke: var(--ink); stroke-width: 3; }
.stamp .stamp-ring.thin { stroke-width: 1.5; }
.stamp text { font-size: 12.5px; font-weight: 700; letter-spacing: .18em; fill: var(--ink); font-family: inherit; }
.stamp-mark { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: miter; }

/* Local */
.towns { margin: 32px 0; display: grid; gap: 4px; }
.towns li { display: flex; align-items: center; gap: 14px; font-size: clamp(1.4rem, 2vw, 1.9rem); letter-spacing: -.03em; font-weight: 500; }
.towns b { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(255,255,0,.5); animation: ping 2.6s ease-out infinite; }
.towns li:nth-child(2) b { animation-delay: .5s; }
.towns li:nth-child(3) b { animation-delay: 1s; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,255,0,.55); } 70%, 100% { box-shadow: 0 0 0 14px rgba(255,255,0,0); } }

@media (max-width: 1080px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .c-principal { grid-column: span 2; }
  .c-schedule, .c-finance, .c-approvals, .c-local { grid-column: span 1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .c-principal, .c-schedule, .c-finance, .c-approvals, .c-local { grid-column: auto; }
  .card { min-height: 340px; }
  .tl-phases { font-size: 11px; }
  .stamp { width: 116px; }
}

/* ---------- Services ---------- */
.services { border-top: 1px solid var(--line); }
.services-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.services-intro { position: sticky; top: 120px; }
.services-intro .display { font-size: clamp(2.6rem, 5vw, 4.8rem); }
.svc-list { border-bottom: 1px solid var(--line); }
.svc { border-top: 1px solid var(--line); }
.svc-head {
  width: 100%; display: grid; grid-template-columns: 64px 1fr 44px; align-items: center;
  padding: clamp(22px, 3vw, 34px) 0; background: none; border: 0; cursor: pointer; text-align: left;
}
.svc-num { font-size: 13px; font-weight: 600; letter-spacing: .2em; color: var(--muted); }
.svc-name { font-size: clamp(1.7rem, 3.2vw, 3rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; transition: transform .6s var(--ease); }
.svc-head:hover .svc-name { transform: translateX(10px); }
.svc-plus { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); transition: background .4s var(--ease), border-color .4s, transform .6s var(--ease); }
.svc-plus::before, .svc-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; transition: transform .5s var(--ease); }
.svc-plus::after { transform: rotate(90deg); }
.svc.open .svc-plus { background: var(--yellow); border-color: var(--yellow); transform: rotate(180deg); }
.svc.open .svc-plus::after { transform: rotate(0); }
.svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.svc.open .svc-body { grid-template-rows: 1fr; }
.svc-body > div { overflow: hidden; }
.svc-body p { padding: 0 44px clamp(26px, 3vw, 36px) 64px; font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); max-width: 44em; opacity: 0; transform: translateY(-8px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.svc.open .svc-body p { opacity: 1; transform: none; transition-delay: .1s; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-intro { position: static; }
  .svc-head { grid-template-columns: 44px 1fr 44px; }
  .svc-body p { padding-left: 44px; padding-right: 0; }
}

/* ---------- Process ---------- */
.process { background: var(--paper-2); }
.steps {
  position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(20px, 2.4vw, 36px);
  margin-top: clamp(64px, 10vh, 112px); padding-top: 56px;
}
.steps-line { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line); }
.steps-line i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.step { position: relative; }
.step::before {
  content: ""; position: absolute; top: -63px; left: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper-2); border: 2px solid rgba(10,10,10,.28);
  transition: background .4s, border-color .4s, transform .6s var(--ease-spring);
}
.step.on::before { background: var(--yellow); border-color: var(--ink); transform: scale(1.25); }
.step-num { font-size: 13px; font-weight: 600; letter-spacing: .2em; color: var(--muted); }
.step h3 { font-size: clamp(1.5rem, 2vw, 2rem); letter-spacing: -.035em; font-weight: 600; margin: 10px 0 10px; }
.step p { color: var(--muted); font-size: 16px; text-wrap: pretty; }
.step { opacity: .35; transition: opacity .6s var(--ease); }
.step.on { opacity: 1; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 40px; padding-top: 0; padding-left: 44px; }
  .steps-line { top: 8px; bottom: 8px; left: 7px; right: auto; width: 2px; height: auto; }
  .steps-line i { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .step::before { top: 4px; left: -44px; }
}

/* ---------- Contact ---------- */
.contact { background: var(--night); color: #fff; padding: clamp(104px, 16vh, 184px) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
.contact .display { font-size: clamp(2.8rem, 6vw, 6rem); }
.contact .hl { color: var(--ink); background-size: 100% 88%; background-position: 0 70%; padding: 0 .08em; }
.contact-info { display: grid; gap: 22px; margin-top: 48px; }
.contact-info dt { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--night-muted); margin-bottom: 4px; }
.contact-info dd { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.02em; font-weight: 500; }
.contact-info a { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size .5s var(--ease); }
.contact-info a:hover { background-size: 100% 1px; }

.form { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius); padding: clamp(24px, 3.2vw, 48px); }
.chips { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--night-muted); margin-bottom: 16px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--night-line); font-size: 14px; color: rgba(255,255,255,.82);
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.chips label:hover span { border-color: rgba(255,255,255,.4); }
.chips input:checked + span { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.chips input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin-top: 28px; }
.field { position: relative; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; background: none; border: 0; border-bottom: 1px solid var(--night-line);
  color: #fff; font: inherit; font-size: 17px;
  padding: 28px 0 10px; outline: none; resize: vertical; border-radius: 0;
  transition: border-color .3s;
}
.field textarea { min-height: 120px; }
.field input:focus, .field textarea:focus { border-color: var(--yellow); }
.field label {
  position: absolute; left: 0; top: 28px; color: var(--night-muted); font-size: 17px; pointer-events: none;
  transform-origin: left top; transition: transform .35s var(--ease), color .35s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-22px) scale(.72); color: rgba(255,255,255,.8);
}
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 36px; }
.form-status { font-size: 14px; color: var(--night-muted); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer { background: var(--night); color: #fff; padding: 0 0 36px; }
.footer .wrap { border-top: 1px solid var(--night-line); padding-top: 64px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-line { font-size: clamp(20px, 2vw, 28px); letter-spacing: -.025em; font-weight: 500; line-height: 1.2; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; color: var(--night-muted); }
.footer-nav a:hover { color: #fff; }
.footer-logo { width: 100%; height: auto; margin: clamp(64px, 12vh, 140px) 0 clamp(32px, 5vh, 56px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--night-muted); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq .svc-name { font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: -.025em; }

/* ---------- Form extras ---------- */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.turnstile { margin-top: 24px; }
.form-status[data-kind="ok"] { color: var(--yellow); }
.form-status[data-kind="error"] { color: #FF9C8A; }
.form-note { margin-top: 18px; font-size: 13px; color: var(--night-muted); }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- Service area ---------- */
.service-area { margin-top: 48px; max-width: 70ch; font-size: 14px; line-height: 1.7; color: var(--night-muted); }
.service-area span { color: #fff; font-weight: 600; margin-right: 6px; }

/* ---------- Mobile polish ---------- */
html { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .svc-head:hover .svc-name { transform: none; }
  .btn:hover .arr { transform: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 88px 0; }
  .display { font-size: clamp(2.3rem, 10.5vw, 3.2rem); }
  .hero h1 { font-size: clamp(2.9rem, 14vw, 3.8rem); }
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn { flex: 1 1 auto; height: 52px; padding: 0 20px; }
  .statement { height: 200vh; }
  .statement-text { font-size: clamp(1.7rem, 7.4vw, 2.3rem); }
  .sector-body { padding: 26px 22px 28px; }
  .sector-body h3 { margin-top: 28px; }
  .card { padding: 26px 22px; }
  .svc-head { padding: 20px 0; gap: 4px; }
  .svc-body p { font-size: 16px; }
  .steps { gap: 32px; }
  .contact { padding: 88px 0; }
  .form { padding: 22px 18px; border-radius: 22px; }
  .chips span { height: 44px; padding: 0 16px; }
  .form-foot .btn { width: 100%; }
  .footer .wrap { padding-top: 48px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 2.7rem; }
  .hero-sub { font-size: 16px; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.notfound img { width: 200px; height: auto; }
.notfound .display { margin-top: 0; max-width: 14em; }

/* ---------- Studio + map ---------- */
.studio {
  display: grid; grid-template-columns: 5fr 7fr; gap: 0;
  margin-top: clamp(64px, 10vh, 112px);
  background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius);
  overflow: hidden;
}
.studio-info { display: flex; flex-direction: column; padding: clamp(28px, 3.4vw, 56px); }
.studio-addr {
  font-style: normal; margin-top: 28px;
  font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 600;
}
.studio-meta { margin-top: 18px; color: var(--night-muted); max-width: 34ch; }
.studio-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 40px; }
.btn-line { border-color: rgba(255,255,255,.28); color: #fff; }
.btn-line:hover { background: #fff; color: var(--ink); border-color: #fff; }

.studio-map { position: relative; min-height: 440px; border-left: 1px solid var(--night-line); background: #151514; }
.studio-map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  /* monochrome, dark: matches the section */
  filter: grayscale(1) invert(.92) contrast(.88) brightness(1.05);
  opacity: 0; transition: opacity .8s var(--ease);
  pointer-events: none;
}
.studio-map.loaded iframe { opacity: 1; }
.studio-map.active iframe { pointer-events: auto; }

/* Placeholder drawing + brand pin, sits over the map's centre point */
.map-art {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px; background-position: center;
  transition: background-color .6s, opacity .5s var(--ease);
}
.studio-map.loaded .map-art { background-image: none; }
.studio-map.active .map-art { opacity: 0; }
.map-pin {
  position: absolute; left: 50%; top: 50%; width: 38px; height: 34px; margin: -20px 0 0 -19px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.55));
}
.map-ring { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 1.5px solid var(--yellow); animation: map-ping 2.8s ease-out infinite; }
.map-ring.r2 { animation-delay: 1.4s; }
@keyframes map-ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(6); opacity: 0; } }

.map-shield {
  position: absolute; inset: 0; z-index: 2; border: 0; cursor: pointer;
  background: transparent; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 22px;
}
.map-shield span {
  font-size: 13px; font-weight: 500; color: #fff; padding: 9px 16px; border-radius: 999px;
  background: rgba(10,10,10,.72); border: 1px solid var(--night-line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .4s var(--ease), background .3s;
}
.map-shield:hover span { transform: translateY(-2px); background: rgba(10,10,10,.9); }
.studio-map.active .map-shield { display: none; }

.contact-info a:not(.js-email), .menu-foot a, .footer-bottom a { transition: color .25s; }
.menu-foot a { color: var(--ink); font-weight: 500; }

@media (max-width: 900px) {
  .studio { grid-template-columns: 1fr; }
  .studio-map { min-height: 340px; border-left: 0; border-top: 1px solid var(--night-line); }
}
@media (max-width: 640px) {
  .studio-info { padding: 26px 22px; }
  .studio-actions .btn { flex: 1 1 100%; }
  .map-shield span::before { content: "Tap to explore the map"; }
  .map-shield span { font-size: 0; }
  .map-shield span::before { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .map-ring { display: none; } }
