/* Layout and components. Colours and fonts come from theme.css. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; }
a { color: var(--accent-text); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); color: var(--head); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.mono { font-family: var(--font-mono); }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.kicker { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.lead { font-size: 19px; line-height: 1.65; color: var(--muted); max-width: 620px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 10px 14px; z-index: 30; }
.skip:focus { left: 8px; }
.staging-bar { background: #efa23b; color: #1d1a12; font-family: var(--font-mono); font-size: 13px; text-align: center; padding: 6px; position: relative; z-index: 25; }

/* bands */
.band { background: var(--bg); color: var(--text); }
.band__inner { padding-top: 92px; padding-bottom: 100px; }
.sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; }
.sec-head h2, .split h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15; max-width: 780px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; }
.split__text { display: flex; flex-direction: column; gap: 16px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: var(--radius); font-family: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--ghost { border-color: var(--btn-ghost-border); color: var(--head); background: transparent; }
.btn--ghost:hover { border-color: var(--accent-text); color: var(--head); }
.btn--outline { border-color: var(--accent-text); color: var(--accent-text); background: transparent; }
.btn--outline:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--sm { min-height: 44px; font-size: 15px; padding: 0 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.header { background: var(--bg); position: relative; z-index: 20; }
.header--over { position: absolute; left: 0; right: 0; background: linear-gradient(rgba(var(--hero-shade), 0.75), rgba(var(--hero-shade), 0)); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.logo { display: inline-flex; align-items: center; }
.logo img { display: block; height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px 26px; flex-wrap: wrap; }
.nav a:not(.btn) { color: var(--head); text-decoration: none; font-size: 15px; padding: 12px 2px; }
.nav a:not(.btn):hover { color: var(--accent-text); }
.nav-toggle { display: none; background: rgba(var(--hero-shade), 0.5); border: 1px solid var(--btn-ghost-border); color: var(--head); border-radius: 12px; width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 84px; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 28px 20px; }
  .nav.is-open { display: flex; }
  .nav__cta { margin-top: 8px; justify-content: center; }
  .logo img { height: 40px; }
}

/* hero: about 90% of the screen so the next band shows */
.hero { position: relative; min-height: 90vh; min-height: 90svh; display: flex; align-items: center; overflow: hidden; background: var(--bg); }
.hero__media, .hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img, .hero__media video { object-fit: cover; object-position: 50% 70%; max-width: none; }
.hero__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(var(--hero-shade), 0.9) 0%, rgba(var(--hero-shade), 0.62) 48%, rgba(var(--hero-shade), 0.2) 100%),
  linear-gradient(0deg, rgba(var(--hero-shade), 0.85) 0%, rgba(var(--hero-shade), 0) 28%); }
.hero__inner { position: relative; width: 100%; padding-top: 120px; padding-bottom: 96px; }
.hero__text { display: flex; flex-direction: column; gap: 24px; max-width: 720px; }
.hero h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -0.03em; }
.hero .lead { color: var(--text); }
.hero__scroll { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--btn-ghost-border); color: var(--head); background: rgba(var(--hero-shade), 0.4); }
.hero__scroll:hover { color: var(--accent-text); border-color: var(--accent-text); }
.hero__clips { position: absolute; right: 20px; bottom: 76px; left: 20px; display: flex; gap: 6px; justify-content: flex-end; }
.hero__clips button { font-size: 13px; }

@media (max-width: 700px) { .hero__media::after { background: linear-gradient(0deg, rgba(var(--hero-shade), 0.9) 0%, rgba(var(--hero-shade), 0.68) 30%, rgba(var(--hero-shade), 0.68) 100%); } }

/* strip */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; padding-top: 26px; padding-bottom: 26px; }
.strip div { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.strip strong { font-family: var(--font-head); font-weight: 500; font-size: 20px; color: var(--head); }
.strip span { font-size: 15px; color: var(--muted); }

/* services: ruled grid */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.service { background: var(--bg); padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; color: inherit; text-decoration: none; }
a.service:hover { background: var(--line); color: inherit; }
.service__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--accent-text); }
.service__top .mono { font-size: 12px; color: var(--muted); text-align: right; }
.service h3 { font-size: 22px; }
.service p { font-size: 16px; color: var(--muted); }
.more { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--accent-text); margin-top: auto; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 36px; }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.steps__n { font-family: var(--font-head); font-size: 56px; line-height: 1; color: var(--accent-text); }
.steps h3 { font-size: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.steps p { font-size: 16px; }

/* map */
.map { margin: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.map__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--head); }
.map__stage { perspective: 1500px; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--map-ground); }
.map__scene { position: relative; transform-style: preserve-3d; transform-origin: 50% 55%; transition: transform 0.7s ease; }
.map__base { display: block; width: 100%; height: auto; }
.map__ground { fill: var(--map-ground); }
.map__road { fill: none; stroke: var(--map-line); stroke-dasharray: 6 6; }
.map__bld { fill: var(--map-bld); stroke: var(--map-line); }
.map__src-ring { fill: none; stroke: var(--map-label); stroke-width: 1.5; }
.map__src { fill: var(--map-label); }
.map__rec path { fill: var(--map-label); }
.map__rec rect { fill: var(--map-ground); opacity: 0.92; }
.map__rec text { font-family: var(--font-mono); font-size: 11px; fill: var(--map-label); }
.map__extrude { position: absolute; inset: 0; width: 100%; height: 100%; display: none; transform: translateZ(var(--z)); }
.map__wall { fill: var(--map-wall); stroke: var(--map-line); stroke-width: 0.6; }
.map__roof { fill: var(--map-roof); stroke: var(--map-line); stroke-width: 0.6; }
.map.is-3d .map__scene { transform: rotateX(56deg) rotateZ(-30deg) scale(0.86) translateY(-20px); }
.map.is-3d .map__extrude { display: block; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend span { width: 14px; height: 10px; border: 1px solid var(--line); }

/* 3D noise map (static/js/noisemap3d.min.js) */
.split--map { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.45fr); }
@media (max-width: 960px) { .split--map { grid-template-columns: 1fr; } }
.nm3d { position: relative; margin: 0; min-width: 0; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--map-ground); overflow: hidden; isolation: isolate; }
.nm3d__stage { position: relative; width: 100%; aspect-ratio: 4 / 3; }
.nm3d--wide .nm3d__stage { aspect-ratio: 21 / 9; min-height: 460px; }
.nm3d--compact .nm3d__stage { aspect-ratio: 5 / 4; }
@media (max-width: 640px) { .nm3d .nm3d__stage, .nm3d--wide .nm3d__stage { aspect-ratio: 4 / 5; min-height: 0; } }
.nm3d__stage canvas { display: block; width: 100%; height: 100%; outline: none; cursor: grab; }
.nm3d__stage canvas:active { cursor: grabbing; }
.nm3d__ui { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; padding: 14px; pointer-events: none; background: linear-gradient(var(--map-chip), transparent); }
.nm3d__ui > * { pointer-events: auto; }
.nm3d__title { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--head); padding-top: 9px; }
.nm3d__controls { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.seg--sm { gap: 4px; }
.seg--sm button, .nm3d__btn { min-height: 36px; min-width: 0; padding: 0 14px; font-size: 13px; }
.nm3d__btn { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); border: 1px solid var(--btn-ghost-border); background: var(--map-chip); color: var(--text); font-family: inherit; cursor: pointer; }
.nm3d__btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.nm3d__btn--icon { width: 36px; padding: 0; }
.nm3d__btn:hover, .seg--sm button:hover { border-color: var(--accent-text); }
.nm3d__labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.nm3d__tag { position: absolute; left: 0; top: 0; display: flex; gap: 6px; align-items: baseline; padding: 3px 8px; border-radius: 6px; background: var(--map-chip); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; color: var(--muted); white-space: nowrap; will-change: transform; }
.nm3d__tag b { color: var(--map-label); font-weight: 500; }
.nm3d__chip { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; padding: 4px 9px; border-radius: 6px; background: var(--map-chip); border: 1px solid var(--line); color: var(--map-label); font-size: 12px; }
.nm3d__foot { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 12px 14px; pointer-events: none; background: linear-gradient(transparent, var(--map-chip)); }
.nm3d__legend { display: flex; flex-direction: column; gap: 4px; width: min(300px, 62%); }
.nm3d__ramp { display: flex; height: 7px; border-radius: 4px; overflow: hidden; }
.nm3d__ramp span { flex: 1; }
.nm3d__ticks { display: flex; justify-content: space-around; padding: 0 calc(100% / 16); font-size: 10px; color: var(--muted); }
.nm3d__unit { font-size: 11px; color: var(--muted); }
.nm3d__hint { position: absolute; z-index: 3; left: 50%; bottom: 46px; transform: translateX(-50%); font-size: 11px; color: var(--muted); padding: 5px 12px; border-radius: var(--radius); background: var(--map-chip); white-space: nowrap; transition: opacity 0.4s; pointer-events: none; }
.nm3d__hint.is-hidden { opacity: 0; }
.nm3d__hint.is-nudge { opacity: 1; color: var(--head); }
.nm3d__activate, .nm3d__done { pointer-events: auto; border: 0; background: transparent; color: var(--head); font: inherit; font-size: 13px; padding: 6px 4px; cursor: pointer; }
.nm3d__done { position: absolute; z-index: 5; right: 14px; bottom: 44px; padding: 8px 18px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-weight: 600; }
.nm3d.is-active { border-color: var(--accent-text); box-shadow: 0 0 0 2px var(--accent-text); }
@media (pointer: coarse) {
  .nm3d__hint { bottom: 50%; transform: translate(-50%, 50%); padding: 0; background: none; }
  .nm3d__activate { padding: 12px 22px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-family: var(--font-body, inherit); font-size: 15px; font-weight: 600; box-shadow: 0 6px 24px rgba(0,0,0,0.45); }
  .nm3d__done { bottom: 48px; font-size: 15px; padding: 10px 20px; }
}
.nm3d__fallback { display: none; padding: 40px 24px; color: var(--muted); }
.nm3d.is-nogl .nm3d__fallback { display: block; }
.nm3d.is-nogl .nm3d__stage { display: none; }
.nm3d-cap { margin-top: 12px; }

/* segmented buttons */
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 56px; padding: 0 16px; border-radius: var(--radius); border: 1px solid var(--btn-ghost-border); background: rgba(var(--hero-shade), 0.4); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }

/* sectors */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 22px; font-size: 17px; color: var(--head); }

/* contact */
.contact__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-size: 17px; color: var(--text); }
.contact__list a { color: var(--head); text-decoration: none; font-family: var(--font-head); font-weight: 500; font-size: 22px; overflow-wrap: anywhere; min-height: 44px; display: inline-flex; align-items: center; }
.contact__list a:hover { text-decoration: underline; color: var(--head); }
.contact__list .contact__phone { font-size: 30px; }
.contact__list .icon { flex: none; color: var(--head); }

/* footer */
.footer { background: var(--footer); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 40px; padding-bottom: 40px; font-size: 13px; color: var(--muted); }
.footer .logo img { height: 40px; }

/* 404 */
.notfound { display: flex; flex-direction: column; gap: 22px; padding-top: 96px; padding-bottom: 120px; }
.notfound h1 { font-size: clamp(36px, 4.6vw, 54px); line-height: 1.1; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .map__scene { transition: none; } }
