/* H2Ou public site. Tokens from the r40 dark theme and Solutions That Flow. */

@font-face {
  font-family: "Gotham Rounded";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/GothamRnd-Book.woff2") format("woff2");
}
@font-face {
  font-family: "Gotham Rounded";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/GothamRnd-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Gotham Rounded";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/GothamRnd-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Gotham";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/Gotham-Light.woff2") format("woff2");
}
@font-face {
  font-family: "Gotham";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/Gotham-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Gotham";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/Gotham-Bold.woff2") format("woff2");
}

@property --header-alpha {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
@property --drawer-backdrop {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

:root {
  --navy: #183754;
  --navy-deep: #11283f;
  --navy-brand: #1c4770;
  --arctic: #75cfed;
  --arctic-ring: #5bc0eb;
  --arctic-40: #c8ecf8;
  --tint: #e3f5fb;
  --ink: #231f20;
  --white: #fff;
  --link: #8ccbff;
  --link-on-light: #1565c0;
  --line: rgb(255 255 255 / 0.28);
  --glass: linear-gradient(165deg, rgb(28 71 112 / 0.82), rgb(17 40 63 / 0.92));
  --wrap: 1280px;
  --pad: clamp(20px, 4vw, 48px);
  --header-h: 72px;
  --r: "Gotham Rounded", "Segoe UI", sans-serif;
  --a: "Gotham", "Segoe UI", sans-serif;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--navy-deep);
}

body {
  margin: 0;
  font-family: var(--r);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--white);
  background: var(--navy-deep);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--r); line-height: 1.15; text-wrap: balance; }
h1, h2 { font-weight: 700; margin: 0 0 0.4em; letter-spacing: 0; }
h2 strong, h1 .h1b { font-weight: 700; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.4vw, 2.35rem); }
h3 { margin: 0 0 0.4em; font-size: 1.2rem; font-weight: 700; color: var(--arctic); }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--white); }

::selection { background: var(--arctic); color: var(--navy-deep); }

:focus-visible {
  outline: 3px solid var(--arctic);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--arctic);
  color: var(--navy-deep);
  padding: 10px 14px;
  font-family: var(--a);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { transform: none; }

.wrap {
  width: min(var(--wrap), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.eyebrow {
  display: block;
  margin: 0 0 12px;
  font-family: var(--a);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--arctic);
}

.lede {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  max-width: 62ch;
  color: var(--white);
}

.tagline {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  font-family: var(--a);
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: clamp(0.78rem, 0.7rem + 0.5vw, 1.05rem);
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(100deg, #fff 0%, #fff 16%, #75cfed 42%, #75cfed 58%, #fff 84%, #fff 100%);
  background-size: 280% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 2px;
  background: #1c4770;
  color: var(--white);
  font-family: var(--r);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgb(17 40 63 / 0.16);
}
.btn:hover {
  color: var(--white);
  background: #245a86;
}
.btn.ghost {
  background: #16324d;
  color: var(--white);
  box-shadow: none;
}
.btn.ghost:hover {
  background: #1c4770;
  color: var(--white);
}

.credit {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--arctic-40);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  background: #11283f;
}
.site-header.is-solid { background: #11283f; }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  width: min(1360px, calc(100% - var(--pad) * 2));
  margin-inline: auto;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 32px; width: auto; }

.desktop-nav { display: none; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

/* Navigation drawer: popover + scroll-snap sheet */
.Drawer {
  --drawer-width: min(22rem, 86dvw);
  --drawer-backdrop: 0;
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  color: var(--white);
}
.Drawer::backdrop {
  background: #000;
  opacity: 0.5;
}
@supports (animation-timeline: scroll()) {
  .Drawer {
    timeline-scope: --drawer-fade;
    animation: fade-drawer-backdrop linear both;
    animation-timeline: --drawer-fade;
  }
  .Drawer::backdrop { opacity: calc(var(--drawer-backdrop) / 2); }
  .Drawer-scroller { scroll-timeline: --drawer-fade x; }
  @keyframes fade-drawer-backdrop {
    from { --drawer-backdrop: 1; }
    to { --drawer-backdrop: 0; }
  }
}
.Drawer-scroller {
  display: grid;
  grid-template-columns: var(--drawer-width) 100%;
  width: 100vw;
  height: 100svh;
  overflow-x: scroll;
  overscroll-behavior: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.Drawer-scroller::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .Drawer-scroller { scroll-behavior: smooth; }
}
.Drawer-scroller::after {
  content: "";
  scroll-snap-align: end;
  scroll-initial-target: nearest;
}
.Drawer-sheet {
  display: flex;
  flex-direction: column;
  height: 100svh;
  overflow-y: auto;
  scroll-snap-align: start;
  scrollbar-width: none;
  background: #11283f;
  padding: max(18px, env(safe-area-inset-top)) 22px 28px;
}
.drawer-close {
  align-self: flex-end;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--white);
  font-family: var(--a);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  cursor: pointer;
}
.Drawer-sheet ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.Drawer-sheet li a {
  display: flex;
  align-items: center;
  min-height: 52px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--r);
  font-weight: 500;
  font-size: 1.35rem;
  border-bottom: 1px solid var(--line);
}
.Drawer-sheet li a[aria-current="true"] { color: var(--arctic); }
.Drawer-sheet .btn { margin-top: 22px; width: 100%; }
.drawer-portals {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}
.drawer-portals .btn { margin-top: 0; }
.Drawer-sheet .btn-client {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.96), rgb(255 255 255 / 0.78));
  border-color: rgb(255 255 255 / 0.9);
  color: var(--navy-deep);
}
.Drawer-sheet .btn-client:hover {
  background: linear-gradient(180deg, #fff, var(--arctic-40));
  border-color: #fff;
  color: var(--navy-deep);
}
.Drawer-sheet .btn-staff {
  background: linear-gradient(180deg, rgb(232 154 112 / 0.95), rgb(196 92 38 / 0.82));
  border-color: rgb(255 220 196 / 0.7);
  color: #fff;
}
.Drawer-sheet .btn-staff:hover {
  background: linear-gradient(180deg, rgb(214 120 72 / 0.98), rgb(163 75 28 / 0.9));
  border-color: rgb(255 220 196 / 0.85);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100svh;
  height: auto;
  overflow: hidden;
  background: var(--navy-deep);
}
.stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.stage picture,
.stage .aerial,
.stage .plans {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.stage .aerial { object-fit: cover; object-position: center; }
.stage video.aerial {
  display: block;
  background: #11283f url("../assets/video/hero-poster.webp") center / cover no-repeat;
  transform: none;
}
.stage .plans {
  object-fit: cover;
  opacity: 0.45;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 58%, rgb(0 0 0 / 0.8) 82%);
}
.gps { display: none; }
.scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgb(17 40 63 / 0.55) 0%, rgb(17 40 63 / 0.28) 28%, rgb(17 40 63 / 0.72) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  width: min(1180px, calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: calc(var(--header-h) + 12px) 0 16px;
}
.hero-copy > * { margin: 0; }
.hero h1 { font-size: clamp(1.85rem, 1.15rem + 3.4vw, 3.6rem); max-width: 16ch; margin: 0; }
.hero h1 .h1a { display: block; font-weight: 700; font-size: 0.58em; line-height: 1.25; margin: 0 0 8px; max-width: 22ch; }
.hero h1 .pl { color: var(--arctic); }
.hero .focus { max-width: 42ch; margin: 0; font-size: 1rem; line-height: 1.45; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.hero .credit {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - var(--pad) * 2));
  margin: 0 auto 12px;
}

.steps {
  position: relative;
  z-index: 2;
  margin-top: auto;
  background: var(--glass);
}
.steps ol {
  list-style: none;
  margin: 0 auto;
  padding: 16px 0;
  width: min(1180px, calc(100% - var(--pad) * 2));
  display: grid;
  gap: 14px;
}
.steps li {
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 12px 14px;
  border: 0;
  border-radius: 2px;
  background: var(--glass);
}
.steps li b {
  display: block;
  font-family: var(--a);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--arctic);
  margin-bottom: 2px;
}
.steps li b::before {
  content: counter(step, decimal-leading-zero) "  ";
  font-variant-numeric: tabular-nums;
}
.steps ol { counter-reset: step; }
.steps li { counter-increment: step; }

/* Sections */
.sec { padding: clamp(48px, 5.5vw, 80px) 0; position: relative; }
.photo { position: relative; overflow: hidden; background: var(--navy) center / cover no-repeat; isolation: isolate; }
.photo > picture,
.photo > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.photo .wrap,
.photo .band-inner { position: relative; z-index: 2; }

.proof-head { display: grid; gap: 28px; align-items: end; }
.inset { margin: 0; width: min(100%, 480px); justify-self: end; }
.inset picture { display: block; }
.inset img,
.fac img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  box-shadow: 0 8px 22px rgb(0 0 0 / 0.45);
}
.inset figcaption,
.fac figcaption { margin-top: 6px; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--arctic-40); }

.pp, .regions {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.pp li, .rg {
  padding: 18px 16px 16px;
  border: 0;
  border-radius: 2px;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
}
.kicker {
  display: block;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid var(--arctic);
  font-family: var(--a);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}
.pp h3 { font-size: 1.15rem; margin-bottom: 6px; }
.pp p, .rg p { margin: 0; font-size: 0.95rem; line-height: 1.45; }

.worktypes { display: grid; gap: 20px; margin-top: 24px; align-items: center; }
.wt + .wt { margin-top: 16px; }
.wl {
  display: block;
  margin-bottom: 8px;
  font-family: var(--r);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--arctic);
}
.wt ul, .chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0; padding: 0; }
.wt li, .chips li {
  padding: 2px 0 2px 11px;
  border-left: 2px solid var(--arctic);
  font-family: var(--a);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}
.fac { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: min(100%, 480px); justify-self: end; }
.fac figure { margin: 0; min-width: 0; }
.fac img { box-shadow: 0 6px 16px rgb(0 0 0 / 0.45); }

/* Services */
.svc-grid { display: grid; gap: 16px; margin-top: 28px; }
.card {
  background: var(--glass);
  border: 0;
  border-radius: 2px;
  padding: 22px 20px 20px;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.card ul { list-style: none; margin: 0; padding: 0; }
.card li { position: relative; padding-left: 18px; margin: 0 0 10px; }
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--arctic);
  box-shadow: 0 0 0 1.5px rgb(255 255 255 / 0.4);
}
.life {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}
.life span {
  padding: 14px 12px;
  border: 0;
  border-radius: 2px;
  font-family: var(--r);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.life span.hl {
  background: linear-gradient(180deg, rgb(214 242 250 / 0.92), rgb(117 207 237 / 0.7));
  color: var(--navy-deep);
  font-family: var(--a);
  font-weight: 300;
  letter-spacing: 0.14em;
}

/* Projects */
.proj-grid { display: grid; gap: 16px; margin-top: 28px; }
.pc {
  display: flex;
  flex-direction: column;
  background: var(--glass);
  color: var(--white);
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  min-width: 0;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.pc img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.pc-body { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 18px; }
.pc h3 { font-size: 1.05rem; color: var(--white); }
.pc p { font-size: 0.92rem; color: rgb(232 244 250 / 0.92); }
.pc .who { margin-top: auto; font-size: 0.78rem; color: var(--arctic-40); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 12px 0 0; padding: 0; }
.tags li {
  padding: 4px 8px;
  background: rgb(17 40 63 / 0.72);
  color: var(--white);
  border: 0;
  border-radius: 2px;
  font-family: var(--r);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tags li.c { background: rgb(117 207 237 / 0.28); color: var(--white); }
.proj-actions { margin-top: 22px; }
.pc.is-held { display: none !important; }
#more-projects-btn[hidden] { display: none !important; }
.note { margin-top: 22px; max-width: 78ch; color: var(--arctic-40); font-size: 0.95rem; }

/* Band */
.band { min-height: clamp(260px, 32vw, 420px); display: flex; align-items: flex-end; }
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(17 40 63 / 0.82), rgb(17 40 63 / 0.28) 48%, rgb(17 40 63 / 0) 72%);
}
.band-inner { width: min(var(--wrap), calc(100% - var(--pad) * 2)); margin: 0 auto 40px; }
.band h2 { max-width: 18ch; }
.band .credit { margin-top: 12px; }

/* Credentials */
.badges { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
.badge {
  background: var(--glass);
  color: var(--white);
  border: 0;
  border-radius: 2px;
  padding: 22px 18px;
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
}
.badge .k { display: block; margin-bottom: 8px; font-family: var(--r); font-weight: 700; font-size: 1.35rem; line-height: 1.1; color: var(--arctic); }
.badge .v { display: block; font-weight: 700; color: var(--white); }
.badge .s { display: block; margin-top: 8px; color: var(--arctic-40); font-size: 0.88rem; }

/* Inspectors */
.rg h3 { font-size: 1rem; color: var(--white); }
.ct {
  display: block;
  margin-bottom: 6px;
  font-family: var(--r);
  font-weight: 500;
  font-size: 1.8rem;
  color: var(--arctic);
  line-height: 1;
}
.cl { display: block; margin-top: 8px; font-size: 0.82rem; color: var(--arctic-40); }
.subhead { margin-top: 40px; }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; margin-top: 8px; }
.person h4 { margin: 10px 0 2px; font-size: 1rem; color: var(--white); }
.person p { margin: 0; font-size: 0.92rem; color: var(--arctic-40); }
.initials {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--glass);
  border: 0;
  color: var(--arctic);
  font-family: var(--a);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
}

/* Scale */
.scale { background: var(--tint); color: var(--ink); }
.scale h2, .scale p, .scale .lede { color: var(--ink); }
.scale .eyebrow { color: var(--navy); }
.scale-grid { display: grid; gap: 36px; }
.org { font-family: var(--r); text-align: center; }
.org .lvl { display: flex; justify-content: center; gap: 10px; }
.org .box {
  background: var(--glass);
  border: 0;
  border-radius: 2px;
  color: var(--white);
  padding: 12px 10px;
  font-size: 0.92rem;
  font-weight: 700;
  flex: 1;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.org .box small { display: block; margin-top: 3px; font-weight: 400; font-size: 0.8rem; color: var(--arctic-40); }
.org .box.lead {
  background: linear-gradient(180deg, rgb(44 90 130 / 0.92), rgb(24 55 84 / 0.78));
  color: var(--white);
}
.org .box.lead small { color: var(--tint); }
.org .box.sup {
  background: linear-gradient(180deg, rgb(214 242 250 / 0.9), rgb(117 207 237 / 0.62));
  color: var(--navy-deep);
}
.org .box.sup small { color: var(--navy-deep); }
.org .v { width: 2px; height: 22px; margin: 0 auto; background: var(--navy); }
.org .unit {
  position: relative;
  margin-top: 8px;
  padding: 26px 12px 14px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, rgb(28 71 112 / 0.55), rgb(17 40 63 / 0.72));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.org .unit::before {
  content: "Regional unit";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 8px;
  background: var(--tint);
  color: var(--navy);
  font-family: var(--a);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.org .core { display: grid; gap: 8px; }
.org .repeat { margin: 12px 0 0; color: var(--navy); font-size: 0.85rem; }

/* Leadership */
.lead-grid { display: grid; gap: 22px; margin-top: 28px; }
.lead-grid .person img {
  width: 148px;
  height: 148px;
  max-height: 148px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid var(--arctic-ring);
}
.lead-grid .person h3 { color: var(--white); font-size: 1.2rem; }
.lead-grid .role { margin: 0; color: var(--white); }
.cred { display: block; margin-top: 4px; color: var(--arctic); font-size: 0.88rem; }
.quote {
  margin: 14px 0 0;
  padding-left: 12px;
  border-left: 3px solid var(--arctic);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.5;
}
.quote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-family: var(--a);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--arctic);
}
.bio-details { margin-top: 12px; }
.bio-details summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font-family: var(--a);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--arctic);
}
.bio-details summary::-webkit-details-marker { display: none; }
.bio-details summary::after { content: "+"; font-size: 1.1rem; line-height: 1; }
.bio-details[open] summary::after { content: "\2013"; }
.bio { margin: 0 0 8px; font-size: 0.92rem; color: var(--arctic-40); }
.person-textonly {
  border-left: 3px solid var(--arctic);
  padding-left: 16px;
}

/* Careers and split */
.careers-grid { display: grid; gap: 28px; }
.apply-note { font-size: 0.95rem; }
.split { display: grid; }
.split .client, .split .career { padding: clamp(36px, 5vw, 64px) var(--pad); }
.split .client { background: var(--navy); color: var(--white); text-decoration: none; }
.split .client h3 { color: var(--arctic); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); }
.split .career {
  background: var(--tint);
  color: var(--ink);
  color-scheme: light;
  position: relative;
  overflow: hidden;
}
.split .career h3 { color: var(--navy); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); }
.split .career .eyebrow { color: var(--navy-brand); }
.split .career p { color: var(--ink); }
.split .career a { color: var(--link-on-light); }
.split .fade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  z-index: 0;
}
.split .career > :not(.fade) { position: relative; z-index: 1; }
.go {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--a);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--arctic);
  text-decoration: none;
}
.split .career .go { color: var(--navy-brand); }

/* Contact */
.contact-grid { display: grid; gap: 28px; }
.route { list-style: none; margin: 18px 0 0; padding: 0; }
.route li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.route b {
  display: block;
  font-family: var(--a);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--arctic);
}
.offices { margin-top: 22px; padding-top: 8px; }
.offices h3 {
  font-family: var(--a);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--arctic);
}
.ofc { display: grid; gap: 4px; padding: 8px 0; }
.ofc b {
  font-family: var(--a);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
address { font-style: normal; }
form {
  background: var(--glass);
  border: 0;
  border-radius: 2px;
  padding: 22px 18px;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
label {
  display: block;
  margin: 0 0 6px;
  font-family: var(--a);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--arctic);
}
input, select, textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px;
  border: 0;
  border-radius: 2px;
  background: rgb(12 32 50 / 0.88);
  color: var(--white);
  font: inherit;
  font-size: 16px;
}
textarea { resize: vertical; min-height: 96px; }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: var(--white); }
.form-status { min-height: 1.4em; margin: 10px 0 0; color: var(--arctic-40); font-size: 0.92rem; }
.req { font-weight: 400; letter-spacing: 0; text-transform: none; }

/* Footer */
.footer-logo { height: 32px; width: auto; margin-bottom: 14px; }
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  font-size: 0.95rem;
}
.ft { display: grid; gap: 28px; }
.site-footer h2 {
  font-family: var(--a);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--arctic);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.soon { margin: 0 0 8px; color: var(--arctic-40); }
.soon b { color: var(--white); font-weight: 500; }
.legal {
  display: grid;
  gap: 8px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--arctic-40);
}

/* Footer changelog (H2O-02) */
.changelog { margin-top: 16px; font-size: 0.8rem; color: var(--arctic-40); }
.changelog summary { cursor: pointer; color: var(--arctic); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; }
.changelog summary:focus-visible { outline: 2px solid var(--arctic); outline-offset: 3px; }
.changelog .cl-ver { color: var(--white); margin-left: 6px; text-transform: none; letter-spacing: 0; }
.changelog ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.changelog b { color: var(--white); font-weight: 600; margin-right: 8px; }
.changelog time { margin-right: 8px; }

/* Motion follows the page hierarchy.
   Ground (photos) drifts the slowest and farthest.
   Headlines travel farther than the copy under them.
   Cards, photos, and labels inside a group share one view timeline
   and arrive in reading order. Scroll timelines stay linear so the
   movement stays locked to the hand. */
@media (prefers-reduced-motion: no-preference) {
  :root { --ease: cubic-bezier(0.16, 1, 0.3, 1); }

  @keyframes arrive-xl { from { opacity: 0; translate: 0 52px; } to { opacity: 1; translate: none; } }
  @keyframes arrive-lg { from { opacity: 0; translate: 0 36px; } to { opacity: 1; translate: none; } }
  @keyframes arrive-md { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: none; } }
  @keyframes arrive-sm { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: none; } }
  @keyframes pin-in { from { opacity: 0; scale: 0; } to { opacity: 1; scale: 1; } }
  @keyframes rise-xl { from { opacity: 0; translate: 0 96px; } to { opacity: 1; translate: none; } }
  @keyframes rise-lg { from { opacity: 0; translate: 0 64px; } to { opacity: 1; translate: none; } }
  @keyframes rise-md { from { opacity: 0; translate: 0 36px; } to { opacity: 1; translate: none; } }
  @keyframes rise-sm { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: none; } }
  @keyframes settle { from { opacity: 0; scale: 1.16; translate: 0 48px; } to { opacity: 1; scale: 1; translate: none; } }
  @keyframes ground { from { scale: 1.16; translate: 0 -6%; } to { scale: 1.16; translate: 0 7%; } }
  @keyframes drift-far { from { scale: 1.1; translate: 0 -4%; } to { scale: 1.18; translate: 0 8%; } }
  @keyframes drift-mid { from { translate: 0 -2%; } to { translate: 0 4%; } }
  @keyframes drift-near { from { translate: 0 10px; } to { translate: 0 -22px; } }
  @keyframes release { from { opacity: 1; translate: none; } to { opacity: 0; translate: 0 -40px; } }
  @keyframes stem { from { scale: 1 0; } to { scale: 1 1; } }
  @keyframes liquid-flow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

  .hero .eyebrow { animation: arrive-sm 0.896s var(--ease) 0.056s both; }
  .hero .h1a { animation: arrive-xl 1.12s var(--ease) 0.157s both; }
  .hero .h1b { animation: arrive-xl 1.21s var(--ease) 0.336s both; }
  .hero .focus { animation: arrive-md 1.008s var(--ease) 0.515s both; }
  .hero .tagline {
    animation:
      arrive-sm 0.84s var(--ease) 0.672s both,
      liquid-flow 6.5s ease-in-out 0.9s infinite alternate;
  }
  .hero .ctas { animation: arrive-md 0.784s var(--ease) 0.806s both; }
  .steps li:nth-child(1) { animation: arrive-md 0.784s var(--ease) 0.941s both; }
  .steps li:nth-child(2) { animation: arrive-md 0.784s var(--ease) 1.053s both; }
  .steps li:nth-child(3) { animation: arrive-md 0.784s var(--ease) 1.165s both; }
  .gps .pin { transform-origin: center; }
  .gps .pin:nth-child(1) { animation: pin-in 0.616s var(--ease) 1.176s both; }
  .gps .co:nth-child(2) { animation: arrive-sm 0.616s var(--ease) 1.366s both; }
  .gps .pin:nth-child(3) { animation: pin-in 0.616s var(--ease) 1.501s both; }
  .gps .co:nth-child(4) { animation: arrive-sm 0.616s var(--ease) 1.68s both; }
}

@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @media (prefers-reduced-motion: no-preference) {
    .hero { view-timeline: --hero block; }
    .stage .aerial {
      animation: drift-far linear both;
      animation-timeline: --hero;
      animation-range: cover;
    }
    .stage .plans {
      animation: drift-mid linear both;
      animation-timeline: --hero;
      animation-range: cover;
    }
    .gps {
      animation: drift-near linear both;
      animation-timeline: --hero;
      animation-range: cover;
    }
    .hero-copy {
      animation: release linear both;
      animation-timeline: --hero;
      animation-range: exit 0% exit 100%;
    }
    .steps {
      animation: release linear both;
      animation-timeline: --hero;
      animation-range: exit 18% exit 100%;
    }
    .proof-head h2,
    .sec > .wrap > h2,
    .band-inner > h2,
    .scale h2,
    .split h3 {
      animation: rise-xl linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 90%;
    }
    .proof-head .eyebrow,
    .sec > .wrap > .eyebrow,
    .band-inner > .eyebrow,
    .scale .eyebrow,
    .split .eyebrow {
      animation: rise-sm linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 55%;
    }
    .proof-head .lede,
    .sec > .wrap > .lede,
    .scale .lede,
    .scale-grid > div > p,
    .split p,
    .band-inner .credit,
    .sec > .wrap > .note {
      animation: rise-md linear both;
      animation-timeline: view();
      animation-range: entry 15% cover 94%;
    }

    .inset { view-timeline: --stack block; }
    .inset img {
      animation: settle linear both;
      animation-timeline: --stack;
      animation-range: entry 0% cover 82%;
    }
    .inset figcaption {
      animation: rise-sm linear both;
      animation-timeline: --stack;
      animation-range: entry 20% cover 92%;
    }

    .pp li,
    .card,
    .pc,
    .badge,
    .rg,
    .feat .person,
    .lead-grid .person,
    .life span,
    .wt,
    .fac figure,
    .org .box,
    .ft > div,
    .careers-grid > *,
    .contact-grid > *,
    .split > * {
      --i: 0;
      view-timeline: --stack block;
      animation: rise-lg linear both;
      animation-timeline: --stack;
      animation-range: entry calc(var(--i) * 7%) cover calc(70% + var(--i) * 5%);
    }
    .pp li:nth-child(3n + 2),
    .fac figure:nth-child(2),
    .life span:nth-child(2),
    .wt:nth-child(2),
    .org > .lvl .box:nth-child(2),
    .careers-grid > :nth-child(2),
    .contact-grid > :nth-child(2),
    .split > :nth-child(2) { --i: 1; }
    .pp li:nth-child(3n + 3),
    .fac figure:nth-child(3),
    .life span:nth-child(3),
    .wt:nth-child(3) { --i: 2; }
    .life span:nth-child(4) { --i: 3; }
    .card:nth-child(2),
    .pc:nth-child(4n + 2),
    .badge:nth-child(4n + 2),
    .rg:nth-child(4n + 2),
    .feat .person:nth-child(2),
    .lead-grid .person:nth-child(2),
    .ft > div:nth-child(2) { --i: 1; }
    .card:nth-child(3),
    .pc:nth-child(4n + 3),
    .badge:nth-child(4n + 3),
    .rg:nth-child(4n + 3),
    .feat .person:nth-child(3),
    .lead-grid .person:nth-child(3),
    .ft > div:nth-child(3) { --i: 2; }
    .card:nth-child(4),
    .pc:nth-child(4n + 4),
    .badge:nth-child(4n + 4),
    .rg:nth-child(4n + 4),
    .feat .person:nth-child(4),
    .lead-grid .person:nth-child(4),
    .ft > div:nth-child(4) { --i: 3; }
    .feat .person:nth-child(5),
    .ft > div:nth-child(5) { --i: 4; }
    .life span.hl { animation-name: rise-md; }

    .pp li .kicker,
    .card .eyebrow,
    .badge .k,
    .rg .ct,
    .person .initials {
      animation: rise-sm linear both;
      animation-timeline: --stack;
      animation-range: entry calc(6% + var(--i) * 7%) cover calc(62% + var(--i) * 5%);
    }
    .pp li h3,
    .card h3,
    .pc h3,
    .badge .v,
    .rg h3,
    .person h3,
    .person h4,
    .org .box {
      animation: rise-lg linear both;
      animation-timeline: --stack;
      animation-range: entry calc(14% + var(--i) * 7%) cover calc(84% + var(--i) * 3%);
    }
    .pp li p,
    .card p,
    .card li,
    .pc p,
    .badge .s,
    .rg p,
    .rg .cl,
    .person p,
    .person .cred,
    .person .quote {
      animation: rise-md linear both;
      animation-timeline: --stack;
      animation-range: entry calc(22% + var(--i) * 7%) cover calc(94% + var(--i) * 1%);
    }
    .pc .tags,
    .bio-details {
      animation: rise-sm linear both;
      animation-timeline: --stack;
      animation-range: entry calc(30% + var(--i) * 7%) cover calc(98% + var(--i) * 0%);
    }
    .pc img,
    .fac img,
    .lead-grid .person img,
    .split .fade {
      animation: settle linear both;
      animation-timeline: --stack;
      animation-range: entry calc(var(--i) * 7%) cover calc(78% + var(--i) * 4%);
    }
    .pc picture,
    .fac picture,
    .inset picture { display: block; overflow: clip; }

    .org .box.lead { animation-name: rise-lg; }
    .org .box.sup { --i: 2; animation-name: rise-lg; }
    .org .unit > .lvl:nth-child(3) .box { --i: 3; }
    .org .core .box:nth-child(1) { --i: 4; }
    .org .core .box:nth-child(2) { --i: 5; }
    .org .core .box:nth-child(3) { --i: 6; }
    .org .v {
      --i: 1;
      transform-origin: top center;
      view-timeline: --stem block;
      animation: stem linear both;
      animation-timeline: --stem;
      animation-range: entry calc(var(--i) * 8%) cover calc(60% + var(--i) * 6%);
    }
    .org .unit > .v:nth-child(2) { --i: 2; }
    .org .unit > .v:nth-child(4) { --i: 3; }

    #contact-form {
      view-timeline: --form block;
    }
    #contact-form > * {
      animation: rise-sm linear both;
      animation-timeline: --form;
      animation-range: entry calc((sibling-index() - 1) * 3%) cover calc(68% + (sibling-index() - 1) * 2%);
    }

    /* View ranges were ending before the type was readable. Scroll progress drives these instead. */
    .sec :not(.mv),
    .band :not(.mv),
    .split :not(.mv),
    .site-footer :not(.mv) { animation: none !important; }
  }
}

@media (prefers-reduced-motion: no-preference) {
  .mv {
    opacity: 0;
    translate: 0 16px;
    /* The view() timeline above also targets these nodes. Leave it off
       so the one-shot .in animation is the only play. */
    animation: none !important;
  }
  .mv.in {
    animation: arrive-md 0.52s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s) both !important;
  }
  .org .v.mv { opacity: 1; translate: none; }
  .org .v.mv.in {
    transform-origin: top center;
    animation: stem 0.42s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s) both !important;
  }
  .photo > picture img {
    translate: 0 var(--drift, 0px);
    scale: 1.12;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage video.aerial { animation: none; }
  .reveal-js { opacity: 1; translate: none; transition: none; }
  .Drawer-scroller { scroll-behavior: auto; }
  .tagline {
    color: var(--white);
    background: none;
    -webkit-text-fill-color: currentColor;
    animation: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.js-motion :is(.pp li, .card, .pc, .badge, .rg, .person, .wt, .fac figure, .org .box, .life span, .ft > div, .split > *, .inset, .sec > .wrap > h2, .band-inner > h2) {
    opacity: 0;
    translate: 0 22px;
    transition: opacity 0.7s var(--ease), translate 0.7s var(--ease);
  }
  html.js-motion :is(.pp li, .card, .pc, .badge, .rg, .person, .wt, .fac figure, .org .box, .life span, .ft > div).in,
  html.js-motion :is(.split > *, .inset, .sec > .wrap > h2, .band-inner > h2).in {
    opacity: 1;
    translate: none;
  }
  html.js-motion :is(.pp li, .pc, .badge, .rg):nth-child(2),
  html.js-motion .card:nth-child(2) { transition-delay: 0.08s; }
  html.js-motion :is(.pp li, .pc, .badge, .rg):nth-child(3),
  html.js-motion .card:nth-child(3) { transition-delay: 0.16s; }
  html.js-motion :is(.pp li, .pc, .badge):nth-child(4),
  html.js-motion .card:nth-child(4) { transition-delay: 0.24s; }
}

/* Wider layouts. Desktop density matches the prototype: 480px photo column, 3-up proof cards. */
@media (min-width: 720px) {
  .logo img { height: 36px; }
  .steps ol { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .pp { grid-template-columns: 1fr 1fr; }
  .regions, .proj-grid, .badges { grid-template-columns: 1fr 1fr; }
  .life { grid-template-columns: repeat(4, 1fr); }
  .feat { grid-template-columns: repeat(3, 1fr); }
  .lead-grid { grid-template-columns: 1fr 1fr; }
  .ft { grid-template-columns: 1fr 1fr; }
  .ofc { grid-template-columns: 120px 1fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .org .core { grid-template-columns: repeat(3, 1fr); }
  .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .proof-head,
  .worktypes {
    grid-template-columns: minmax(0, 1fr) 480px;
    align-items: end;
    gap: 28px 48px;
  }
  .pp { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (min-width: 960px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-family: var(--r);
    font-size: 0.92rem;
    font-weight: 500;
  }
  .desktop-nav a { color: var(--white); text-decoration: none; }
  .desktop-nav a:hover,
  .desktop-nav a[aria-current="true"] { color: var(--arctic); }
  .desktop-nav .btn { min-height: 40px; padding: 8px 14px; font-size: 0.85rem; }
  .desktop-nav .btn:hover { color: var(--white); }
  .menu-btn { display: none; }
  .gps { display: block; position: absolute; inset: 0; }
  .gps .pin {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid var(--white);
    background: var(--arctic);
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }
  .gps .co {
    position: absolute;
    padding: 6px 8px;
    background: var(--glass);
    border: 0;
    border-radius: 2px;
    font-family: var(--r);
    font-size: 0.68rem;
    line-height: 1.4;
    white-space: nowrap;
  }
  .gps .co b { color: var(--arctic); letter-spacing: 0.04em; }
  .proof-head,
  .worktypes {
    grid-template-columns: minmax(0, 1fr) 480px;
    align-items: end;
    gap: 40px 48px;
  }
  .svc-grid,
  .careers-grid,
  .contact-grid,
  .scale-grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; gap: 36px; }
  .pp { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pp li { padding: 22px 20px 18px; }
  .hero .focus { font-size: 1.08rem; }
  .hero { display: flex; height: auto; min-height: 100svh; }
  .stage .plans {
    mask-image: linear-gradient(90deg, transparent 0%, transparent 34%, rgb(0 0 0 / 0.75) 56%);
  }
  .hero-copy {
    height: auto;
    flex: 1;
    justify-content: flex-start;
    gap: 18px;
    padding-top: calc(var(--header-h) + 20px);
    padding-bottom: 20px;
  }
  .hero .credit {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 118px;
  }
  .steps { position: relative; left: auto; right: auto; bottom: auto; z-index: 3; margin-top: auto; }
  .scrim {
    background:
      linear-gradient(90deg, rgb(17 40 63 / 0.82) 0%, rgb(17 40 63 / 0.45) 42%, rgb(17 40 63 / 0.15) 68%),
      linear-gradient(180deg, rgb(17 40 63 / 0.45) 0%, transparent 24%, rgb(17 40 63 / 0.72) 100%);
  }
}

@media (min-width: 1100px) {
  .proj-grid, .badges, .regions, .lead-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1200px) {
  .lead-grid { grid-template-columns: repeat(4, 1fr); }
  .feat { grid-template-columns: repeat(5, 1fr); }
  .lead-grid .person-textonly { grid-column: auto; }
  .ft { grid-template-columns: 1.3fr 0.8fr 0.9fr 0.9fr 1.1fr; }
  .initials { width: 112px; height: 112px; }
}
