/* ==========================================================================
   Ambient Electric Ltd. — site styles
   Vanilla CSS, no framework.
   Colour system is built from the logo blue (#004BAB): one primary, one
   light accent for dark surfaces, a deep navy, and true neutrals.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/inter-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;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Tight"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/intertight-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  /* colour */
  --navy-950: #06101f;
  --navy-900: #0a1a31;
  --navy-800: #102544;
  --blue: #004bab;           /* logo blue — primary */
  --blue-700: #003b88;       /* primary hover */
  --blue-tint: #e9f0fa;
  --sky: #8fbaf0;            /* accent on dark surfaces (AA on navy) */
  --ink: #0c1626;
  --text: #364152;
  --muted: #5b6676;
  --line: #e2e7ee;
  --line-dark: rgba(255, 255, 255, 0.14);
  --mist: #f4f6f9;
  --paper: #ffffff;

  /* type */
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2.5rem, 1.35rem + 3.9vw, 4.6rem);
  --fs-h2: clamp(1.95rem, 1.45rem + 1.75vw, 3.05rem);
  --fs-h3: clamp(1.2rem, 1.12rem + 0.3vw, 1.375rem);
  --fs-lg: clamp(1.0625rem, 1rem + 0.28vw, 1.2rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-label: 0.75rem;

  /* space & layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --col-gap: clamp(24px, 3vw, 40px);
  --section: clamp(88px, 9vw + 40px, 160px);
  --utility-h: 36px;
  --bar-h: 80px;
  --header-h: calc(var(--utility-h) + var(--bar-h));
  --radius: 2px;

  /* motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);       /* expo-out: confident settle */
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 0.25s;
  --t-med: 0.5s;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 16px);
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
  overflow-x: hidden; /* full-bleed bands + decorative line must never cause sideways scroll */
}
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  overflow-x: clip;
}
body.nav-open { overflow: hidden; }
img, video, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 1px; }
.on-dark :focus-visible, .hero :focus-visible, .experience :focus-visible, .contact-info :focus-visible { outline-color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -64px; z-index: 200; background: var(--navy-900); color: #fff; padding: 12px 18px; transition: top var(--t-fast) var(--ease); }
.skip-link:focus { top: 12px; }

/* ---------- Type scale ---------- */
.display {
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-display);
  line-height: 1.02; letter-spacing: -0.034em; color: #fff;
}
.h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.026em; }
.h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.012em; }
.body-lg { font-size: var(--fs-lg); line-height: 1.6; color: var(--text); max-width: 54ch; }
.label {
  font-family: var(--font-text); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); line-height: 1.4;
}
.eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 22px;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; flex: none; }
.eyebrow.on-dark { color: var(--sky); }
.sep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.55; margin: 0 12px; vertical-align: middle; }

/* ---------- Buttons & links ---------- */
.btn {
  --arrow-x: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: var(--radius);
  font: 600 0.9375rem/1 var(--font-text); letter-spacing: 0.005em; cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-med) var(--ease), color var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.btn-arrow {
  position: relative; display: inline-block; width: 16px; height: 10px; flex: none;
  transform: translateX(var(--arrow-x)); transition: transform var(--t-med) var(--ease);
}
.btn-arrow::before { content: ""; position: absolute; left: 0; right: 1px; top: 50%; height: 1.5px; margin-top: -0.75px; background: currentColor; }
.btn-arrow::after { content: ""; position: absolute; right: 1px; top: 50%; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.btn:hover, .link-arrow:hover { --arrow-x: 4px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--blue-tint); }
.btn-block { width: 100%; }

.link-arrow {
  --arrow-x: 0px;
  position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 6px 0;
  font-weight: 600; font-size: 0.9375rem; color: var(--blue);
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 28px; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--t-med) var(--ease);
}
.link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }
.link-arrow.on-dark { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transform: translateY(0); transition: transform var(--t-med) var(--ease);
}
.site-header.compact { transform: translateY(calc(var(--utility-h) * -1)); }

.utility { height: var(--utility-h); background: var(--navy-950); color: rgba(255,255,255,0.72); font-size: var(--fs-xs); letter-spacing: 0.01em; }
.utility-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.utility p { margin: 0; white-space: nowrap; }
.utility a { color: #fff; font-weight: 500; }
.utility a:hover { color: var(--sky); }

/* One solid white bar, full width. The logo file has an opaque white background, so the bar is pure #fff. */
.mainbar { height: var(--bar-h); background: #fff; border-bottom: 1px solid var(--line); }
.site-header.compact .mainbar { box-shadow: 0 10px 30px -22px rgba(10, 26, 49, 0.45); }
.mainbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: block; flex: none; margin-left: -10px; }
.brand img { height: 60px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.primary-nav ul { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 38px); }
.primary-nav ul a {
  position: relative; display: block; padding: 8px 0;
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink); transition: color var(--t-fast) var(--ease);
}
.primary-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease);
}
.primary-nav ul a:hover { color: var(--blue); }
.primary-nav ul a:hover::after { transform: scaleX(0.35); }
.primary-nav ul a[aria-current="true"] { color: var(--blue); }
.primary-nav ul a[aria-current="true"]::after { transform: scaleX(1); }
.nav-cta { min-height: 46px; padding: 0 20px; }
.drawer-phone { display: none; }

.nav-toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; }
.nav-toggle .bar { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform var(--t-med) var(--ease), top var(--t-med) var(--ease); }
.nav-toggle .bar:nth-of-type(2) { top: 17px; }
.nav-toggle .bar:nth-of-type(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] .bar:nth-of-type(2) { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-of-type(3) { top: 21.5px; transform: rotate(-45deg); }

.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(640px, 100svh); padding-top: var(--header-h);
  display: flex; flex-direction: column; background: var(--navy-900); color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media picture, .hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-poster, .hero-video { object-fit: cover; }
.hero-poster { animation: kenburns 24s var(--ease) both; }
.hero-video { opacity: 0; transform: scale(1.04); transition: opacity 1.8s var(--ease-io); }
.hero-video.is-playing { opacity: 1; }
@keyframes kenburns { from { transform: scale(1.1); } to { transform: scale(1.0); } }
/* Shared dark-navy treatment for the hero photo and video */
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,16,31,0.9) 0%, rgba(6,16,31,0.72) 40%, rgba(6,16,31,0.34) 75%, rgba(6,16,31,0.3) 100%),
    linear-gradient(0deg, rgba(6,16,31,0.88) 0%, rgba(6,16,31,0) 42%),
    linear-gradient(180deg, rgba(0,59,136,0.35), rgba(0,59,136,0.12));
}
.hero-inner { flex: 1; display: flex; align-items: center; padding-block: clamp(56px, 8vh, 96px) clamp(140px, 18vh, 200px); }
.hero-copy { max-width: 820px; will-change: transform, opacity; }
.hero .display { margin-bottom: 28px; max-width: 15ch; }
.hero-lede { font-size: var(--fs-lg); line-height: 1.6; color: rgba(255,255,255,0.84); max-width: 52ch; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }

.hero-foot { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: clamp(120px, 14vh, 150px); }
.hero-foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hero-meta { margin: 0; font-size: var(--fs-xs); letter-spacing: 0.06em; color: rgba(255,255,255,0.66); }
.video-toggle {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 4px; border: 0; background: none; cursor: pointer;
  color: rgba(255,255,255,0.72); font-size: var(--fs-xs); transition: color var(--t-fast);
}
.video-toggle:hover { color: #fff; }
.video-toggle[hidden] { display: none; }
.vt-icon { position: relative; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,0.4); border-radius: 50%; }
.vt-icon::before, .vt-icon::after { content: ""; position: absolute; top: 10px; width: 2px; height: 9px; background: currentColor; }
.vt-icon::before { left: 11px; }
.vt-icon::after { left: 16px; }
.video-toggle[aria-pressed="true"] .vt-icon::before { left: 12px; top: 9px; width: 0; height: 0; background: none; border-left: 8px solid currentColor; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }
.video-toggle[aria-pressed="true"] .vt-icon::after { display: none; }

/* ---------- 2. Intro / credibility ---------- */
.intro { position: relative; z-index: 2; padding-bottom: clamp(64px, 6vw + 24px, 112px); }
.intro-panel {
  position: relative; margin-top: -96px; background: #fff;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap);
  padding: clamp(36px, 5vw, 72px); box-shadow: 0 40px 80px -60px rgba(10,26,49,0.5), 0 0 0 1px rgba(10,26,49,0.04);
}
.intro-panel::before { content: ""; position: absolute; left: 0; top: 0; width: 96px; height: 3px; background: var(--blue); }
.intro-statement { grid-column: 1 / span 6; }
.intro-statement .h2 { margin-bottom: 24px; font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2.5rem); }
.intro-statement .body-lg { margin: 0; }
.stats { grid-column: 8 / span 5; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; margin: 0; align-content: center; }
.stat { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.stat dd {
  margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 1.9rem + 1.6vw, 3.25rem);
  line-height: 1; letter-spacing: -0.035em; color: var(--navy-900); font-variant-numeric: tabular-nums;
}
.stat .unit { color: var(--blue); letter-spacing: -0.02em; }
.stat dt { font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); max-width: 24ch; }

.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 0; margin-top: 44px; font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.02em; color: var(--muted); }
.trust-row li { padding: 0 22px; position: relative; }
.trust-row li + li::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 14px; margin-top: -7px; background: #cfd6e0; }

/* ---------- Sections (shared) ---------- */
.section { padding-block: var(--section); position: relative; }
.section-head {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head > div { grid-column: 1 / span 7; }
.section-head > .body-lg { grid-column: 8 / span 5; margin: 0; }
.section-head .h2 { max-width: 18ch; }

/* ---------- Image system ---------- */
/* Every photo is pre-graded (navy/mist duotone blend) at export. Here: one shared
   overlay and one reveal so real and stock imagery read as a single shoot. */
.img-reveal { position: relative; display: block; overflow: hidden; background: var(--navy-800); }
.img-reveal picture { width: 100%; height: 100%; }
.img-reveal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.img-reveal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,26,49,0) 55%, rgba(10,26,49,0.28)); pointer-events: none; }
.js .img-reveal { clip-path: inset(8% 8% 8% 8%); transition: clip-path 1.4s var(--ease); }
.js .img-reveal img { transform: scale(1.14); }
.js .in .img-reveal, .js .img-reveal.in { clip-path: inset(0 0 0 0); }
.js .in .img-reveal img { transform: scale(1.0); }
.ratio-45 { aspect-ratio: 4 / 5; }

/* ---------- 3. Capabilities ---------- */
.capabilities { background: var(--mist); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--col-gap); }
.card { position: relative; background: #fff; display: flex; flex-direction: column; }
.card-media { aspect-ratio: 4 / 3; }
.card-body { position: relative; padding: 30px 32px 36px; flex: 1; }
.card-body::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease); }
.card:hover .card-body::before { transform: scaleX(1); }
.js .in.card:hover .img-reveal img, .card:hover .img-reveal img { transform: scale(1.035); }
.card-index { margin: 0 0 14px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; color: var(--blue); font-variant-numeric: tabular-nums; }
.card .h3 { margin-bottom: 12px; }
.card-body p:last-child { margin: 0; font-size: var(--fs-sm); line-height: 1.65; color: var(--text); }

.cap-index { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); margin-top: clamp(72px, 8vw, 112px); }
.cap-index > .label { grid-column: 1 / span 3; padding-top: 26px; }
.cap-list { grid-column: 4 / span 9; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); counter-reset: cap; }
.cap {
  display: flex; align-items: center; gap: 20px; padding: 20px 0;
  border-top: 1px solid #d8dee7; font-weight: 500; color: var(--ink); font-size: var(--fs-body); line-height: 1.4;
}
.cap:nth-last-child(-n+2) { border-bottom: 1px solid #d8dee7; }
.icon { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon * { stroke-dasharray: 220; stroke-dashoffset: 0; }
.js .icon * { stroke-dashoffset: 220; transition: stroke-dashoffset 2s var(--ease); transition-delay: calc(var(--d, 0) * 90ms + 0.2s); }
.js .cap.in .icon * { stroke-dashoffset: 0; }
.scope-note {
  grid-column: 4 / span 9; margin: 32px 0 0; padding-left: 18px; border-left: 2px solid var(--blue);
  font-size: var(--fs-sm); line-height: 1.6; color: var(--muted); max-width: 72ch;
}
.scope-note strong { color: var(--ink); font-weight: 600; }

/* ---------- 4. Company ---------- */
.story { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); align-items: center; }
.story-media { grid-column: 1 / span 5; margin: 0; }
.story-media figcaption { margin-top: 14px; font-size: var(--fs-xs); color: var(--muted); }
.story-copy { grid-column: 7 / span 6; }
.story-copy .h2 { margin-bottom: 28px; max-width: 17ch; }
.prose { max-width: 60ch; }
.prose .body-lg { color: var(--ink); }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--col-gap); margin-top: 36px; }
.pillars li {
  position: relative; padding: 16px 0 16px 26px; border-top: 1px solid var(--line);
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink); line-height: 1.45;
}
.pillars li::before { content: ""; position: absolute; left: 0; top: 23px; width: 8px; height: 8px; border: 1.5px solid var(--blue); transform: rotate(45deg); }

/* Full-bleed mist band whose content stays on the shared container grid */
.ownership {
  position: relative; isolation: isolate;
  margin-top: var(--section); margin-bottom: calc(var(--section) * -1); padding-block: var(--section);
  background: var(--mist); box-shadow: 0 0 0 100vmax var(--mist); clip-path: inset(0 -100vmax);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap);
}
.ownership-copy { grid-column: 1 / span 7; position: relative; z-index: 1; }
.ownership-copy .h2 { margin-bottom: 26px; max-width: 16ch; }
.ownership-copy p:last-child { margin: 0; max-width: 58ch; }
.lemniscate {
  position: absolute; z-index: 0; right: clamp(-160px, -8vw, -40px); top: calc(var(--section) - 24px);
  width: min(52%, 620px); height: auto; overflow: visible; pointer-events: none;
}
.lemniscate path { fill: none; stroke: var(--blue); stroke-width: 1.1; opacity: 0.32; vector-effect: non-scaling-stroke; }

.credentials {
  grid-column: 1 / -1; position: relative; z-index: 1; margin-top: clamp(48px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--col-gap);
  padding-top: 40px; border-top: 1px solid #d8dee7;
}
.cred-col .label { margin-bottom: 14px; }
.cred-col ul + .label { margin-top: 30px; }
.cred-col li { display: flex; flex-direction: column; gap: 2px; padding: 11px 0; border-bottom: 1px solid #e1e6ed; }
.cred-col li:last-child { border-bottom: 0; }
.cred-col strong { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.cred-col span { font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
.cred-col .link-arrow { margin-top: 18px; }

/* ---------- 5. Experience ---------- */
.experience { background: var(--navy-900); color: rgba(255,255,255,0.78); }
.experience .h2 { color: #fff; }
.experience .body-lg { color: rgba(255,255,255,0.74); }
.regions { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--col-gap); }
.region { position: relative; display: flex; flex-direction: column; gap: 10px; }
.region-k { font-family: var(--font-display); font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.6rem); font-weight: 500; letter-spacing: -0.015em; color: #fff; line-height: 1.2; }
.region-v { font-size: var(--fs-sm); line-height: 1.65; color: var(--sky); }
.discreet { display: flex; align-items: flex-start; gap: 14px; margin: 56px 0 0; max-width: 72ch; font-size: var(--fs-sm); line-height: 1.6; color: rgba(255,255,255,0.62); }
.discreet svg { width: 18px; height: 18px; flex: none; margin-top: 3px; fill: none; stroke: var(--sky); stroke-width: 1.5; }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(2, clamp(190px, 17vw, 260px)); gap: 16px; margin-top: clamp(56px, 6vw, 88px); }
.g-item { position: relative; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; overflow: hidden; }
.g-item .img-reveal { position: absolute; inset: 0; }
.g-item picture { height: 100%; }
.g-a { grid-column: 1 / span 7; grid-row: 1 / span 2; }
.g-b { grid-column: 8 / span 5; grid-row: 1; }
.g-c { grid-column: 8 / span 5; grid-row: 2; }
.g-c img { object-position: 50% 72%; }
.g-item .img-reveal::after { background: linear-gradient(180deg, rgba(6,16,31,0) 50%, rgba(6,16,31,0.7)); }
.g-cap { position: absolute; left: 22px; bottom: 18px; z-index: 1; font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.02em; color: #fff; }
.g-item:hover .img-reveal img { transform: scale(1.035); }
.gallery-note { margin: 16px 0 0; font-size: var(--fs-xs); color: rgba(255,255,255,0.5); }

.lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 1240px); max-height: 92vh; overflow: visible; color: #fff; }
.lightbox::backdrop { background: rgba(6,16,31,0.92); }
.lightbox[open] { animation: lb-in 0.5s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 80vh; width: auto; margin-inline: auto; }
.lb-cap { margin-top: 14px; font-size: var(--fs-sm); color: rgba(255,255,255,0.75); text-align: center; }
.lb-close { position: absolute; top: -56px; right: 0; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,0.35); border-radius: 50%; background: none; cursor: pointer; transition: border-color var(--t-fast); }
.lb-close:hover { border-color: #fff; }
.lb-close span::before, .lb-close span::after { content: ""; position: absolute; left: 13px; right: 13px; top: 50%; height: 1.5px; background: #fff; }
.lb-close span::before { transform: rotate(45deg); }
.lb-close span::after { transform: rotate(-45deg); }

/* ---------- 6. Land acknowledgement ---------- */
.land { background: var(--mist); padding-block: clamp(72px, 8vw, 120px); }
.land-inner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); }
.land-inner .label { grid-column: 1 / span 3; padding-top: 10px; }
.land-text {
  grid-column: 4 / span 9; margin: 0; max-width: 60ch;
  font-family: var(--font-display); font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.55rem); line-height: 1.55; font-weight: 400; letter-spacing: -0.008em; color: var(--ink);
}
.land-text span[lang] { font-family: var(--font-text); font-weight: 500; }

/* ---------- 7. Contact ---------- */
.contact { background: var(--navy-900); color: rgba(255,255,255,0.78); }
.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); align-items: start; }
.contact-info { grid-column: 1 / span 5; }
.contact-info .h2 { color: #fff; margin-bottom: 22px; }
.contact-info .body-lg { color: rgba(255,255,255,0.74); margin-bottom: 44px; }
.contact-list { border-top: 1px solid var(--line-dark); }
.c-row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.c-k { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); padding-top: 4px; }
.c-v { color: #fff; font-size: var(--fs-body); overflow-wrap: anywhere; }
a.c-v { transition: color var(--t-fast); }
a.c-v:hover { color: var(--sky); }

.contact-form { grid-column: 7 / span 6; background: #fff; color: var(--text); padding: clamp(28px, 4vw, 52px); }
.contact-form .h3 { margin-bottom: 6px; }
.form-intro { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 28px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { margin-bottom: 20px; }
.field label { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; font: 400 1rem/1.4 var(--font-text); color: var(--ink);
  background: #fff; border: 1px solid #cbd3de; border-radius: var(--radius); appearance: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9fabbb; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,75,171,0.15); }
.field textarea { resize: vertical; min-height: 120px; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field-err { display: none; margin: 6px 0 0; font-size: var(--fs-xs); color: #b42318; }
.field [aria-invalid="true"] { border-color: #b42318; }
.field [aria-invalid="true"] ~ .field-err { display: block; }
.form-status { margin: 16px 0 0; font-size: var(--fs-sm); color: var(--blue); }
.form-status:empty { display: none; }
.form-note { margin: 12px 0 0; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #fff; font-size: var(--fs-sm); color: var(--text); }
.footer-top { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); padding-block: 72px 56px; }
.footer-brand { grid-column: 1 / span 4; }
.footer-brand img { height: 66px; width: auto; margin: -8px 0 16px -10px; }
.footer-brand p { max-width: 32ch; color: var(--muted); }
.footer-col { grid-column: span 2; }
.footer-col:nth-child(2) { grid-column: 6 / span 2; }
.footer-col:nth-child(3) { grid-column: 8 / span 2; }
.footer-col:nth-child(4) { grid-column: 10 / span 3; }
.footer-col .label { margin-bottom: 18px; color: var(--ink); }
.footer-col li { margin-bottom: 10px; line-height: 1.5; color: var(--muted); }
.footer-col a { color: var(--text); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-block: 24px 36px; font-size: var(--fs-xs); color: var(--muted); }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.footer-bottom p { margin: 0; }
.credits { max-width: 56ch; text-align: right; }
.credits summary { cursor: pointer; list-style: none; }
.credits summary::-webkit-details-marker { display: none; }
.credits summary:hover { color: var(--blue); }
.credits p { margin-top: 10px; }

/* ---------- Reveal motion ---------- */

/* ---------- Remote feature ---------- */
.remote-feature {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap);
  padding-block: clamp(32px, 4vw, 52px); margin-bottom: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
}
.rf-k { grid-column: 1 / span 3; margin: 0; padding-top: 12px; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky); }
.rf-text { grid-column: 4 / span 9; margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; color: #fff; text-wrap: balance; }
.experience .regions { grid-template-columns: repeat(5, 1fr); margin-bottom: clamp(56px, 6vw, 88px); }
.experience .discreet { margin-top: 40px; }

/* ---------- How we work ---------- */
.how { background: var(--mist); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--col-gap); }
.step { position: relative; }
.step-n { display: block; margin-bottom: 16px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; color: var(--blue); }
.step .h3 { margin-bottom: 12px; }
.step p { margin: 0; font-size: var(--fs-sm); line-height: 1.65; max-width: 38ch; }
.how-split { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); margin-top: clamp(56px, 6vw, 96px); }
.panel { grid-column: span 6; background: #fff; padding: clamp(28px, 3.6vw, 52px); }
.panel > .label { margin-bottom: 22px; }
.panel .scope-note { margin-top: 28px; }
.scope-list li { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.scope-list li:first-child { border-top: 1px solid var(--line); }
.scope-list strong { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--ink); }
.scope-list span { font-size: var(--fs-sm); line-height: 1.6; color: var(--text); }
.panel-dark { background: var(--navy-900); color: rgba(255,255,255,0.76); }
.panel-dark > .label { color: var(--sky); }
.panel-lead { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2.05rem); line-height: 1.18; letter-spacing: -0.02em; color: #fff; margin-bottom: 22px; text-wrap: balance; }
.panel-dark p:last-child { margin: 0; max-width: 52ch; }

/* ---------- Contact (details only) ---------- */
.contact-grid > .contact-list { grid-column: 7 / span 6; }
.contact-info .body-lg { margin-bottom: 0; }
.land { background: #fff; border-top: 1px solid var(--line); }

.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js.no-motion .reveal, .js.no-motion .img-reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; }
.js.no-motion .img-reveal img { transform: none !important; }
.js.no-motion .icon * { stroke-dashoffset: 0 !important; }

/* ---------- Responsive: large tablet ---------- */
@media (max-width: 1100px) {
  .intro-statement { grid-column: 1 / -1; margin-bottom: 48px; }
  .stats { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .cap-index > .label { grid-column: 1 / -1; padding: 0 0 20px; }
  .cap-list, .scope-note { grid-column: 1 / -1; }
  .story-media { grid-column: 1 / span 5; }
  .story-copy { grid-column: 6 / span 7; }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 40px; }
  .footer-col:nth-child(2) { grid-column: 1 / span 4; }
  .footer-col:nth-child(3) { grid-column: 5 / span 4; }
  .footer-col:nth-child(4) { grid-column: 9 / span 4; }
}

/* ---------- Responsive: tablet / nav drawer ---------- */
@media (max-width: 960px) {
  :root { --bar-h: 72px; }
  .brand img { height: 52px; }
  .hide-md { display: none; }
  .nav-toggle { display: block; }
  .primary-nav {
    /* The header is transformed, so it is the containing block: size from it, not the viewport. */
    position: absolute; left: 0; right: 0; top: 100%; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); z-index: -1;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 40px;
    background: #fff; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
  }
  .site-header.compact .primary-nav { height: calc(100vh - var(--bar-h)); height: calc(100dvh - var(--bar-h)); }
  .primary-nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease); }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav ul a { padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.015em; }
  .primary-nav ul a::after { display: none; }
  .nav-cta { margin-top: 32px; min-height: 56px; }
  .drawer-phone { display: block; margin-top: 18px; text-align: center; font-weight: 600; padding: 10px; }

  .section-head > div, .section-head > .body-lg { grid-column: 1 / -1; }
  .section-head > .body-lg { margin-top: 22px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .cards .card:last-child .card-media { aspect-ratio: auto; min-height: 260px; }
  .story-media { grid-column: 1 / span 10; margin-bottom: 48px; }
  .story-copy { grid-column: 1 / -1; }
  .ownership-copy { grid-column: 1 / -1; }
  .lemniscate { width: 70%; right: -18%; top: 12px; }
  .credentials { grid-template-columns: 1fr 1fr; }
  .regions, .experience .regions { grid-template-columns: 1fr 1fr 1fr; row-gap: 40px; }
  .rf-k { grid-column: 1 / -1; padding: 0 0 14px; }
  .rf-text { grid-column: 1 / -1; }
  .panel, .contact-grid > .contact-list { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; row-gap: 36px; }
  .contact-info, .contact-form { grid-column: 1 / -1; }
  .contact-info { margin-bottom: 56px; }
  .land-inner .label { grid-column: 1 / -1; padding: 0 0 18px; }
  .land-text { grid-column: 1 / -1; }
}

/* ---------- Responsive: phone ---------- */
@media (max-width: 640px) {
  :root { --utility-h: 32px; --bar-h: 64px; }
  body { font-size: 1rem; }
  .hide-sm { display: none; }
  .brand { margin-left: -8px; }
  .brand img { height: 46px; }
  .hero { min-height: max(600px, 100svh); }
  .hero-inner { align-items: flex-end; padding-block: 40px 176px; }
  .hero .eyebrow { letter-spacing: 0.14em; }
  .hero .display { font-size: clamp(2.3rem, 10vw, 2.9rem); margin-bottom: 22px; }
  .hero-lede { margin-bottom: 32px; }
  .hero-actions .btn { width: 100%; }
  .hero-foot { padding-bottom: 104px; }
  .vt-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .intro-panel { margin-top: -72px; padding: 32px 24px 36px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .stat dd { font-size: 2.15rem; white-space: nowrap; }
  .trust-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .trust-row li { padding: 0 0 0 16px; }
  .trust-row li::before, .trust-row li + li::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; background: var(--blue); border-radius: 50%; }
  .cards { grid-template-columns: 1fr; }
  .cards .card:last-child { grid-column: auto; display: flex; }
  .cards .card:last-child .card-media { aspect-ratio: 4 / 3; min-height: 0; }
  .card-body { padding: 24px 22px 28px; }
  .cap-list { grid-template-columns: 1fr; }
  .cap:nth-last-child(2) { border-bottom: 0; }
  .story-media { grid-column: 1 / -1; }
  .pillars { grid-template-columns: 1fr; }
  .lemniscate { width: 100%; right: -30%; top: 0; }
  .credentials { grid-template-columns: 1fr; gap: 32px; }
  .regions, .experience .regions { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 58vw 42vw; gap: 10px; }
  .g-a { grid-column: 1 / -1; grid-row: 1; }
  .g-b { grid-column: 1; grid-row: 2; }
  .g-c { grid-column: 2; grid-row: 2; }
  .g-cap { left: 14px; bottom: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .c-row { grid-template-columns: 1fr; gap: 4px; }
  .footer-top { padding-block: 56px 40px; row-gap: 36px; }
  .footer-col:nth-child(2) { grid-column: 1 / span 6; }
  .footer-col:nth-child(3) { grid-column: 7 / span 6; }
  .footer-col:nth-child(4) { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .credits { text-align: left; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .img-reveal { opacity: 1; transform: none; clip-path: none; }
  .js .img-reveal img { transform: none; }
  .js .icon * { stroke-dashoffset: 0; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .hero-media, .video-toggle, .contact-form, .lightbox, .lemniscate { display: none !important; }
  .hero, .experience, .contact { background: #fff !important; color: #000 !important; min-height: 0; padding-top: 0; }
  .display, .experience .h2, .contact-info .h2, .region-k, .c-v { color: #000 !important; }
  .js .reveal, .js .img-reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
.intro-statement .body-lg + .body-lg { margin-top: 14px; }
