/* Vandalai — layout & components.
 * Geometry transcribed from Figma node data (design/desktop-spec.txt,
 * design/mobile-spec.txt). Canonical widths: 1920 (desktop), 504 (mobile). */

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  /* Unpainted frame regions (the band between innovation and process, the
     mobile chips area) composite over black in the prototype — the dark
     sections flow into each other. */
  background: var(--neutral-950);
  color: var(--ink);
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

/* ---------- Header (desktop: large nav; 134px tall) ----------
   Sticky on both breakpoints: solid light at rest, glassmorphism (the MENU
   component's #CBD3DE 40% + 21.4px blur variant) once scrolled. */

.site-header {
  container-type: inline-size;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  height: 134px;
  padding: 17px var(--page-margin) 0;
  background: var(--neutral-50);
  transition: background 0.3s ease, border-radius 0.3s ease;
}

/* Floating glass menu — MENU component: 504x76, #CBD3DE 40% + 21.4px
   background blur, radius 20. Fades in once the page is scrolled (the
   prototype behavior: the header itself scrolls away). */
.menu-pill {
  position: fixed;
  top: 25px;
  left: 50%;
  translate: -50% 0;
  z-index: 20;
  display: flex;
  align-items: center;
  width: 504px;
  height: 76px;
  padding: 0 27px 0 33px;
  border-radius: 20px;
  background: rgb(203 211 222 / 0.4);
  -webkit-backdrop-filter: blur(21.4px);
  backdrop-filter: blur(21.4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.is-scrolled .menu-pill {
  opacity: 1;
  pointer-events: auto;
}

.menu-pill a {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--ink);
  font-size: var(--text-menu);
  line-height: var(--lh-menu);
  font-weight: 300;
}

.menu-pill a + a {
  margin-left: 30px;
}

.menu-pill-icon {
  width: 35px;
  height: 35px;
  margin-top: 4px; /* icon y21 vs text y17 in the MENU component */
  image-rendering: pixelated;
}

.menu-pill-logo {
  width: 42px;
  height: 36px;
  margin-left: auto;
  object-fit: contain;
}

/* Nav sizes are capped by the header's own width (cqw) so a squeezed
   embedding (e.g. a preview panel narrower than the window) scales the nav
   down instead of colliding with the logo. At the 1920 canvas the caps
   resolve to the design values. */
.site-nav {
  display: flex;
  gap: min(120px, 6.6cqw); /* Solution group 50..296, Process group starts 416 */
  transition: gap 0.35s ease;
}

.nav-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--ink);
  font-size: min(var(--text-nav), 3.4cqw);
  line-height: 1.25;
  font-weight: 300;
  white-space: nowrap;
  transition: font-size 0.35s ease, gap 0.35s ease;
}

.nav-icon {
  width: min(88px, 7.6cqw);
  height: auto;
  margin-top: 10px; /* icon y27 vs text y17 */
  image-rendering: pixelated;
}

/* Brand (design update 2026-08-12): the header logo is the designer's
   animated lockup GIF (V + VANDALAI cycle, 2009x352 master, 6.4s loop),
   pulled from the file's image fills. The pill/mobile states swap to the
   V-only loop GIF (Logo_v_loop_v3). Lottie sources archived in design/. */
.brand {
  display: flex;
  align-items: center;
  margin-top: 10px;
  transition: margin-top 0.35s ease;
}

.brand-lockup {
  width: min(502px, 34cqw);
  height: auto;
  object-fit: contain;
}

.brand-mark {
  width: 0;
  height: auto;
  opacity: 0;
  object-fit: contain;
}

/* Hover: the logo and the Solution/Process icons transition to brand orange.
   The filter chain maps the dark glyphs to exactly #F97F11 (orange-400) and
   applies live to the animated GIF frames. */
.nav-icon,
.brand img,
.menu-pill-icon,
.menu-pill-logo {
  transition: filter 0.3s ease, width 0.35s ease, margin-top 0.35s ease, opacity 0.35s ease;
}

.nav-link:hover .nav-icon,
.brand:hover img,
.menu-pill a:hover .menu-pill-icon,
.menu-pill-logo:hover,
.footer-logo:hover {
  filter: brightness(0) saturate(100%) invert(45%) sepia(100%) saturate(1235%) hue-rotate(-5deg) brightness(109%) contrast(95%);
}

/* ---------- Hero ---------- */

.hero {
  background: var(--neutral-50);
  padding: 71px var(--page-margin) 0;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  aspect-ratio: 1820 / 1024;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-title {
  position: relative;
  margin: 53px 0 0 56px;
  max-width: 696px;
  color: #FFFFFF;
  font-size: var(--text-display);
  line-height: var(--lh-display);
  font-weight: 400;
}

/* Headline segments — the design dimmed these (white at reduced opacity
   over the media); all full white per client feedback. */
.reveal--hero    { color: #FFFFFF; }
.reveal--water   { color: #FFFFFF; }
.reveal--process { color: #FFFFFF; }

/* ---------- Intro cards (about + value) ---------- */

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 14px var(--page-margin) 0;
  background: var(--neutral-50);
}

.intro-card {
  border-radius: var(--radius-card);
  min-height: 653px;
  padding: 42px 46px;
}

.intro-card--about {
  background: var(--neutral-300);
}

.intro-card--value {
  background: var(--orange-300);
}

.intro-text {
  max-width: 815px;
  font-size: var(--text-display);
  line-height: var(--lh-display);
  font-weight: 400;
}

/* Single tone per client feedback (design had a three-tone gray fade) */
.tone-dark,
.tone-mid,
.tone-light { color: var(--neutral-600); }

.intro-text--value {
  color: #FFFFFF;
}

/* ---------- Clients strip ---------- */

/* ---------- Brand film showcase ---------- */

.showcase {
  padding: 16px var(--page-margin) 0;
  background: var(--neutral-50);
}

.showcase-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  aspect-ratio: 16 / 9; /* full film, no crop */
}

.showcase-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clients {
  background: var(--neutral-50);
  padding: 76px 157px 119px;
}

.clients-strip {
  --wstep: 160ms; /* logos fade in one by one, left to right */
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 65px;
  overflow-x: auto;
  scrollbar-width: none;
}

.clients-strip::-webkit-scrollbar {
  display: none;
}

/* Design gaps are uneven: 275 / 249 / 237 / 238 */
.clients-strip li:nth-child(1) { margin-bottom: 7px; }
.clients-strip li:nth-child(2) { margin-left: 275px; }
.clients-strip li:nth-child(3) { margin-left: 249px; }
.clients-strip li:nth-child(4) { margin-left: 237px; }
.clients-strip li:nth-child(5) { margin-left: 238px; }

.clients-strip li {
  flex: 0 0 auto;
}

.clients-strip img {
  width: auto;
  max-width: none;
}

/* ---------- Water removal unit (full bleed) ---------- */

.water {
  position: relative;
  aspect-ratio: 1920 / 1080;
}

/* Anchor targets land clear of the sticky header */
.water,
.process {
  scroll-margin-top: 134px;
}

.water-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.water-title {
  position: relative;
  margin: 0;
  padding: 51px 0 0 96px;
  max-width: 762px; /* 666 text box + 96 left pad */
  color: #FFFFFF;
  font-size: var(--text-display);
  line-height: var(--lh-display);
  font-weight: 400;
}

/* ---------- Core innovation (black band, 812 tall) ---------- */

.innovation {
  min-height: 812px;
  /* Side padding keeps the 1467px text block off the edges on sub-1570px
     desktops (client feedback 2026-08-17). */
  padding: 166px var(--page-margin) 0;
  background: var(--neutral-950);
  color: #FFFFFF;
  text-align: center;
}

.innovation-title {
  margin: 0;
  font-size: var(--text-display);
  line-height: var(--lh-display);
  font-weight: 300;
}

.innovation-text {
  margin: 47px auto 0;
  max-width: 1467px;
  font-size: var(--text-body-lg);
  line-height: var(--lh-body-lg);
  font-weight: 300;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 14px;
  margin: 97px auto 0;
  padding: 0;
  max-width: 1440px;
  list-style: none;
}

.chip {
  display: flex;
  align-items: center;
  min-height: 59px;
  padding: 0 24px;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-card);
  font-size: var(--text-base);
  line-height: var(--lh-base);
  font-weight: 300;
  text-align: left;
  white-space: nowrap;
}

.chip-plus {
  margin-right: 24px;
  font-size: 1.25em; /* checkmark glyph; scales with the chip */
  line-height: 1.28;
  font-weight: 600;
}

/* ---------- Process (gradient band, 1377 tall incl. white gap above) ---------- */

.process {
  position: relative;
  /* the unpainted band above renders black — carried as a border so it
     never depends on the page ground */
  border-top: 115px solid var(--neutral-950);
  /* Natural flow (was min-height 1492): 66+80+66+card+141 = the design's
     1377 band at 1920, and the tail no longer balloons at narrower widths
     now that the monitoring card grid overlaps into it. */
  padding: 66px var(--page-margin) 141px;
  background: var(--grad-process);
}

/* Full-width black strip behind the card, visible in the side margins */
.process::before {
  content: "";
  position: absolute;
  top: 517px;
  left: 0;
  right: 0;
  height: 89px;
  background: var(--neutral-950);
}

.process-title {
  margin: 0 0 0 46px; /* 96 abs − 50 page margin */
  color: #FFFFFF;
  font-size: var(--text-display);
  line-height: var(--lh-display);
  font-weight: 400;
}

.process-card {
  position: relative;
  overflow: hidden;
  margin-top: 66px;
  border-radius: var(--radius-card);
  aspect-ratio: 1820 / 1024;
}

/* Monitoring software dashboard card (design update 2026-08-12) */
.process-card--monitor {
  margin-top: 90px;
  aspect-ratio: 1920 / 920;
}

.process-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Monitoring (card-grid redesign, design update 2026-08-20):
   orange statement card + a neutral ramp (500→800) of feature cards around
   the full-width dashboard video. The gradient continues the process band
   (start color = its end color) and settles back to black. ---------- */

.monitoring {
  background: linear-gradient(0deg, #030303 55%, #38424A 100%);
  padding: 0 var(--page-margin) 74px;
  color: #FFFFFF;
}

.monitoring-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* The design overlaps the first card row 58px into the process band's tail;
   position:relative lifts it above the (positioned) .process section. */
.monitoring-grid--upper {
  position: relative;
  margin-top: -58px;
}

.monitoring-stack {
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.monitoring-stack .monitor-card {
  flex: 1;
}

.monitor-card {
  border-radius: var(--radius-card);
  padding: 42px 46px;
  min-height: 316px;
}

.monitor-card--statement {
  background: var(--orange-300);
  min-height: 653px;
}

.monitor-card--t1 { background: var(--neutral-500); }
.monitor-card--t2 { background: var(--neutral-600); }
.monitor-card--t3 { background: var(--neutral-700); }
.monitor-card--t4 { background: var(--neutral-800); }

.monitor-statement {
  margin: 0;
  max-width: 815px;
  font-size: var(--text-display);
  line-height: var(--lh-display);
  font-weight: 400;
  --wstep: 60ms;
}

.monitor-card-title {
  margin: 0;
  color: var(--neutral-300);
  font-size: var(--text-display);
  line-height: var(--lh-display);
  font-weight: 400;
}

.monitor-card-text {
  margin: 74px 0 0;
  max-width: 771px;
  color: var(--neutral-300);
  font-size: var(--text-body-lg);
  line-height: var(--lh-body-lg);
  font-weight: 300;
}

.monitoring .process-card--monitor {
  margin-top: 26px;
}

.monitoring-grid--lower {
  margin-top: 44px;
}

/* ---------- Brand film player (client request 2026-08-24: the film must be
   pausable). One glass bar in the menu-pill's material — play/pause, seek,
   elapsed time and the sound toggle. Visible whenever the film is paused so
   the control is never hidden when it's needed; it fades away during
   playback and returns on hover/focus. Touch devices keep it visible. ---- */

.video-controls {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding: 0 20px;
  border-radius: 20px;
  background: rgb(203 211 222 / 0.4);
  -webkit-backdrop-filter: blur(21.4px);
  backdrop-filter: blur(21.4px);
  color: #FFFFFF;
  transition: opacity 0.3s ease;
}

.showcase-card.is-playing .video-controls {
  opacity: 0;
}

.showcase-card.is-playing:hover .video-controls,
.showcase-card.is-playing:focus-within .video-controls {
  opacity: 1;
}

@media (hover: none) {
  .showcase-card.is-playing .video-controls { opacity: 1; }
}

.video-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.video-btn svg {
  display: block;
  width: 20px;
  height: 20px;
}

/* Play/pause and sound each show one of two icons for their current state */
.video-play .icon-pause { display: none; }
.showcase-card.is-playing .video-play .icon-play { display: none; }
.showcase-card.is-playing .video-play .icon-pause { display: block; }

/* Progress is an indicator, not a scrubber: Cloudflare Pages serves these
   assets without Range support, so the browser cannot seek at all — a drag
   bar would be a control that visibly does nothing. The time readout carries
   position instead. */
.video-progress {
  flex: 1;
  min-width: 0;
  height: 4px;
  border-radius: 2px;
  background-color: rgb(255 255 255 / 0.35);
  background-image: linear-gradient(#FFFFFF, #FFFFFF);
  background-repeat: no-repeat;
  background-size: var(--p, 0%) 100%;
}

.video-time {
  flex: none;
  font-size: 14px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sound-toggle .icon-on { display: none; }
.sound-toggle[aria-pressed="true"] .icon-on { display: block; }
.sound-toggle[aria-pressed="true"] .icon-off { display: none; }

/* ---------- People ---------- */

.people {
  background: var(--neutral-50);
  padding: 107px var(--page-margin) 0;
}

.people-title {
  margin: 0;
  color: #000000;
  font-size: var(--text-display);
  line-height: var(--lh-display);
  font-weight: 400;
}

.person:hover .person-photo {
  filter: grayscale(0);
}

.person--placeholder .person-photo {
  filter: none;
}

/* Full-bleed carousel (client request): the row breaks out of the page
   margins and consumes the entire viewport width; cards grow evenly and
   their content scales with them (cqw). Scrolls when it can't fit. */
.people-cards {
  display: flex;
  gap: 10px;
  margin: 49px calc(-1 * var(--page-margin)) 0;
  padding: 0 var(--page-margin); /* cards rest at the page inset, scroll to the edge */
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.people-cards::-webkit-scrollbar {
  display: none;
}

.person {
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  flex: 1 0 356px; /* design proportions at 356x593, growing to fill */
  aspect-ratio: 356 / 593;
  border-radius: var(--radius-card);
  background: var(--card-people);
}

.person-photo {
  position: absolute;
  top: 0;
  left: -37.92%;  /* -135px at the 356px design card */
  width: 166.57%; /* 593px square at the 356px design card */
  height: auto;
  max-width: none;
  /* Portraits rest in black-and-white; hovering the card reveals color.
     Placeholders keep their navy V-mark tint. */
  filter: grayscale(1);
  transition: filter 0.4s ease;
  object-fit: cover;
}

.person::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-people-overlay);
}

.person-info {
  position: absolute;
  top: 68.97%; /* 409px at the 593px design card */
  left: 8.43%; /* 30px at the 356px design card */
  z-index: 1;
  color: var(--neutral-800);
}

.person-role {
  font-size: 4.49cqw; /* 16px at the 356px design card */
  line-height: 1.25;
}

.person-name {
  margin-top: 3.37cqw;
  font-size: 8.99cqw; /* 32px at the 356px design card */
  line-height: 1.25;
  font-weight: 500;
}

.person-contact {
  margin-top: 3.37cqw;
  margin-left: 0.56cqw;
  font-size: 6.74cqw; /* 24px at the 356px design card */
  line-height: 1.25;
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: 902fr 900fr;
  gap: 18px;
  padding: 107px var(--page-margin) 0;
  background: var(--neutral-50);
}

.contact-pitch {
  min-height: 593px;
  padding: 42px 46px;
  border-radius: var(--radius-card);
  background: var(--orange-300);
  color: var(--neutral-800);
  font-size: var(--text-display);
  line-height: var(--lh-display);
}

.contact-pitch p {
  max-width: 815px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 593px;
  padding: 51px 47px 0;
  border-radius: var(--radius-card);
  background: var(--neutral-800);
}

.form-field {
  height: 59px;
  padding: 0 32px;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-card);
  background: none;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--lh-base);
  font-weight: 300;
}

.form-field::placeholder {
  color: #FFFFFF;
  opacity: 1;
}

.form-field--area {
  height: 215px;
  padding-top: 14px;
  resize: none;
}

.form-send {
  height: 59px;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--neutral-300);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--lh-base);
  font-weight: 300;
  cursor: pointer;
}

/* Spam honeypot — visually gone but still submittable by naive bots */
.form-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-error {
  margin: 4px 0 0;
  color: var(--orange-200);
  font-size: var(--text-base);
  line-height: var(--lh-base);
  font-weight: 300;
  text-align: center;
}

.contact-form.is-sent .form-field,
.contact-form.is-sent .form-send {
  display: none;
}

.form-success {
  margin: auto 0;
  color: #FFFFFF;
  font-size: var(--text-base);
  line-height: var(--lh-base);
  font-weight: 300;
  text-align: center;
}

.form-success-mark {
  display: block;
  margin: 0 auto;
  fill: var(--orange-400);
}

.form-success p {
  margin: 28px 0 0;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  height: 397px;
  margin-top: 57px;
  padding: 51px var(--page-margin) 0;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: var(--neutral-400);
  color: var(--neutral-800);
  font-size: var(--text-base);
  line-height: var(--lh-base);
}

/* Light ground above the footer and behind its rounded top corners */
.site-footer::before {
  content: "";
  position: absolute;
  inset: -57px 0 auto 0;
  height: 87px;
  z-index: -1;
  background: var(--neutral-50);
}

.footer-contact p + p {
  margin-top: 21px;
}

.footer-place {
  position: absolute;
  top: 102px;
  font-style: normal;
}

/* Design positions (416/783/1148 at the 1920 canvas) as percentages so
   narrow desktop widths compress instead of overflowing; floors keep the
   columns clear of each other down to the 1025px breakpoint. */
/* One location (client request): the office address sits in the design's
   first place column. */
.footer-place--fornebu    { left: max(280px, 21.67%); }

.footer-logo {
  position: absolute;
  top: 56px;
  right: var(--page-margin);
  width: 100px;
  height: 85px;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.footer-copy {
  position: absolute;
  bottom: 50px;
  left: var(--page-margin);
}

.footer-disclaimer {
  position: absolute;
  bottom: 22px;
  left: var(--page-margin);
  right: var(--page-margin);
  font-size: var(--text-tiny);
  line-height: var(--lh-tiny);
  opacity: 0.7;
}

/* ---------- Motion: scroll fade-ins (JS-driven; without JS everything is
   visible). Per client decision these play regardless of reduced-motion. */

html.js [data-reveal] {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.6s ease-out, translate 0.6s ease-out;
}

html.js [data-reveal].in-view {
  opacity: 1;
  translate: 0 0;
}

/* Word-by-word reveal on the headlines and key texts: words fade in in
   sequence, once per page load. */
html.js .wfade .word {
  opacity: 0;
  transition: opacity 0.45s ease-out;
  transition-delay: calc(var(--wi) * var(--wstep, 120ms));
}

html.js .wfade.in-view .word {
  opacity: 1;
}

/* Long texts get a tighter word stagger so the full reveal stays under ~2s */
.intro-card--about .intro-text { --wstep: 70ms; }
.innovation-text { --wstep: 26ms; } /* ~50 words since the 2026-08-18 copy */
.monitor-card-text { --wstep: 40ms; } /* ~20 words per card */

/* ============================================================
   Mobile / compact (canonical 504px canvas, 20px margins)
   ============================================================ */

@media (max-width: 1024px) {
  :root {
    /* Mobile is a 504px design canvas. Every geometry value below is a fixed
       fraction of that canvas, expressed as calc(var(--cw) * X / 504), so the
       whole layout keeps its Figma proportions on any phone width — not just
       the type. Previously only fonts scaled while paddings/heights/gaps stayed
       pinned at 504-canvas px, which left narrower phones (e.g. 412px) with
       82%-size text inside 100%-size boxes: cards read as too tall and boxy.
       --cw caps at 504 so tablets (505–1024px) render at 1:1, exactly as before;
       only sub-504 phones rescale. */
    --cw: min(100vw, 504px);

    --text-display: calc(var(--cw) * 32 / 504);
    --lh-display:   calc(var(--cw) * 40 / 504);
    --text-menu:    calc(var(--cw) * 20 / 504);
    --lh-menu:      calc(var(--cw) * 25 / 504);
    /* Shared body text + gaps + spacing tokens used across the mobile sections */
    --text-body-m:  calc(var(--cw) * 24 / 504);
    --lh-body-m:    calc(var(--cw) * 30 / 504);
    --page-margin:  calc(var(--cw) * 20 / 504);
    --pad-card:     calc(var(--cw) * 24 / 504);
    --gap-card:     calc(var(--cw) *  9 / 504);
    --radius-card:  calc(var(--cw) * 30 / 504);
  }

  /* Header becomes the MENU component bar (504x76): sticky, solid light at
     rest, glassmorphism once scrolled. */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    align-items: center;
    justify-content: flex-start;
    height: calc(var(--cw) * 76 / 504);
    padding: 0 calc(var(--cw) * 27 / 504) 0 calc(var(--cw) * 33 / 504);
    /* Square at rest so no black shows behind the corners at page top;
       the pill radius belongs to the scrolled glass state. */
    background: var(--neutral-50);
  }

  .menu-pill {
    display: none;
  }

  body.is-scrolled .site-header {
    border-radius: calc(var(--cw) * 20 / 504);
    background: rgb(203 211 222 / 0.4);
    -webkit-backdrop-filter: blur(21.4px);
    backdrop-filter: blur(21.4px);
  }

  .site-nav {
    gap: calc(var(--cw) * 30 / 504); /* groups at 33..149 and 179..291 */
  }

  .nav-link {
    align-items: flex-start;
    gap: calc(var(--cw) * 6 / 504);
    font-size: var(--text-menu);
    line-height: var(--lh-menu);
  }

  .nav-icon {
    width: calc(var(--cw) * 35 / 504);
    height: calc(var(--cw) * 35 / 504);
    margin-top: calc(var(--cw) * 4 / 504); /* icon y21 vs text y17 in the MENU component */
  }

  .brand {
    margin-left: auto;
    margin-top: 0;
  }

  .brand-lockup {
    display: none; /* mobile keeps the V-only mark */
  }

  .brand-mark {
    width: calc(var(--cw) * 42 / 504);
    height: calc(var(--cw) * 36 / 504);
    opacity: 1;
  }

  /* Hero: card 464x631 at y88 (12px below the 76px menu) */
  .hero {
    padding: calc(var(--cw) * 12 / 504) var(--page-margin) 0;
  }

  .hero-card {
    aspect-ratio: 464 / 631;
  }

  .hero-title {
    margin: calc(var(--cw) * 25 / 504) 0 0 calc(var(--cw) * 22 / 504);
    max-width: calc(var(--cw) * 438 / 504);
  }

  /* Intro cards stack: about 335, gap 9, orange 336 */
  .intro {
    grid-template-columns: 1fr;
    gap: var(--gap-card);
    padding-top: var(--gap-card);
  }

  .intro-card {
    height: auto;
    min-height: calc(var(--cw) * 335 / 504);
    padding: var(--pad-card);
  }

  /* one empty text line below "and more sustainable." */
  .intro-card--about {
    padding-bottom: calc(var(--cw) * 64 / 504);
  }

  .intro-text {
    max-width: calc(var(--cw) * 426 / 504);
  }

  .showcase {
    padding: var(--gap-card) var(--page-margin) 0;
  }

  /* Player bar scales with the 504 canvas like the rest of the mobile layout */
  .video-controls {
    right: calc(var(--cw) * 12 / 504);
    bottom: calc(var(--cw) * 12 / 504);
    left: calc(var(--cw) * 12 / 504);
    gap: calc(var(--cw) * 10 / 504);
    height: calc(var(--cw) * 40 / 504);
    padding: 0 calc(var(--cw) * 12 / 504);
    border-radius: calc(var(--cw) * 14 / 504);
  }

  .video-btn {
    width: calc(var(--cw) * 24 / 504);
    height: calc(var(--cw) * 24 / 504);
  }

  .video-btn svg {
    width: calc(var(--cw) * 16 / 504);
    height: calc(var(--cw) * 16 / 504);
  }

  .video-time {
    font-size: calc(var(--cw) * 12 / 504);
  }

  /* Clients: overflowing horizontal strip, design order 1, 2, 4, 5, 3 with
     47/42/34/25 gaps. Centered when it fits; scrollable from the start edge
     when it doesn't (no cut-off logos). */
  .clients {
    padding: calc(var(--cw) * 74 / 504) 0 calc(var(--cw) * 93 / 504);
  }

  .clients-strip {
    justify-content: safe center;
    gap: 0;
    padding: 0 var(--page-margin);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .clients-strip::-webkit-scrollbar {
    display: none;
  }

  .clients-strip {
    align-items: flex-start;
  }

  .clients-strip li:nth-child(1) { order: 1; margin-bottom: 0; }
  .clients-strip li:nth-child(2) { order: 2; margin-left: calc(var(--cw) * 47 / 504); }
  .clients-strip li:nth-child(4) { order: 3; margin-left: calc(var(--cw) * 42 / 504); }
  .clients-strip li:nth-child(5) { order: 4; margin-left: calc(var(--cw) * 34 / 504); }
  .clients-strip li:nth-child(3) { order: 5; margin-left: calc(var(--cw) * 25 / 504); margin-top: calc(var(--cw) * 8 / 504); }

  /* Water: full-bleed 504x436 */
  .water {
    aspect-ratio: 504 / 436;
  }

  /* Anchor targets clear the 76px sticky header */
  .water,
  .process {
    scroll-margin-top: calc(var(--cw) * 76 / 504);
  }

  .water-title {
    padding: calc(var(--cw) * 12 / 504) 0 0 calc(var(--cw) * 43 / 504);
    max-width: calc(var(--cw) * 386 / 504);
  }

  /* Innovation: 379-tall black band; the chips sit BELOW it on the unpainted
     (white) gap, exactly as the design renders them. */
  .innovation {
    min-height: 0;
    height: auto;
    padding-top: 0;
  }

  .innovation-band {
    /* The design's black rect is 379 tall but starts 3px under the water
       image; visible height below it is 376. */
    min-height: calc(var(--cw) * 376 / 504);
    padding-top: calc(var(--cw) * 68 / 504);
    background: var(--neutral-950);
  }

  /* chips sit on the black passage between band and process */
  .innovation {
    background: var(--neutral-950);
    padding-bottom: 1px; /* contain the chips margin */
  }

  .innovation-text {
    margin: calc(var(--cw) * 33 / 504) auto 0;
    max-width: calc(var(--cw) * 409 / 504);
    font-size: var(--text-body-m);
    line-height: var(--lh-body-m);
  }

  .chips {
    gap: calc(var(--cw) * 11 / 504);
    margin-top: calc(var(--cw) * 21 / 504);
    max-width: calc(var(--cw) * 464 / 504);
    color: #FFFFFF; /* white on white, as designed */
  }

  /* Mobile chip order differs from desktop: Reduced downtime leads.
     Innovation-only — the monitoring chips keep their natural order. */
  .innovation .chip:nth-child(1) { order: 3; }
  .innovation .chip:nth-child(2) { order: 1; }
  .innovation .chip:nth-child(3) { order: 2; }
  .innovation .chip:nth-child(4) { order: 4; }
  .innovation .chip:nth-child(5) { order: 5; }

  .chip {
    min-height: calc(var(--cw) * 42 / 504);
    padding: 0 calc(var(--cw) * 17 / 504);
    border-width: 0.72px;
    border-radius: calc(var(--cw) * 21.5 / 504);
    /* Fluid one-liner: text budget = viewport − margins/padding/plus (107px
       fixed); 17.18px at the 504px design width, shrinking below it. */
    font-size: min(17.18px, calc((100vw - 107px) * 0.0433));
    line-height: 1.28;
  }

  .chip-plus {
    margin-right: calc(var(--cw) * 17 / 504);
  }

  /* Process */
  .process {
    border-top-width: calc(var(--cw) * 74 / 504);
    min-height: calc(var(--cw) * 518 / 504); /* 444 + 74 border */
    height: auto;
    padding: calc(var(--cw) * 16 / 504) var(--page-margin) calc(var(--cw) * 40 / 504);
  }

  .process::before {
    content: none; /* strip is fully covered by the card on mobile */
  }

  .process-title {
    margin-left: calc(var(--cw) * 23 / 504);
  }

  .process-card {
    margin-top: calc(var(--cw) * 36 / 504);
    aspect-ratio: 464 / 261;
  }

  .process-card--monitor {
    margin-top: calc(var(--cw) * 24 / 504);
    aspect-ratio: 1920 / 920;
  }

  /* Monitoring: cards stack in one column, mirroring the intro card scale */
  .monitoring {
    padding: 0 var(--page-margin) calc(var(--cw) * 40 / 504);
  }

  .monitoring-grid {
    grid-template-columns: 1fr;
    gap: var(--gap-card);
  }

  .monitoring-grid--upper {
    margin-top: calc(var(--cw) * -28 / 504);
  }

  .monitoring-stack {
    gap: var(--gap-card);
  }

  .monitor-card {
    padding: var(--pad-card);
    min-height: 0;
  }

  .monitor-card--statement {
    min-height: calc(var(--cw) * 335 / 504);
  }

  .monitor-statement {
    max-width: calc(var(--cw) * 426 / 504);
  }

  .monitor-card-text {
    margin-top: calc(var(--cw) * 20 / 504);
    font-size: var(--text-body-m);
    line-height: var(--lh-body-m);
  }

  .monitoring .process-card--monitor {
    margin-top: var(--gap-card);
  }

  .monitoring-grid--lower {
    margin-top: var(--gap-card);
  }

  /* People: horizontal scroll, cards 229x381. Internals (photo crop, info
     position, text sizes) already track the card via % + cqw in the base
     rules, so scaling the card size alone keeps them proportional. */
  .people {
    padding-top: calc(var(--cw) * 51 / 504);
  }

  .people-cards {
    gap: calc(var(--cw) * 6 / 504);
    margin-top: calc(var(--cw) * 34 / 504);
    padding: 0 var(--page-margin); /* cards rest at the design inset */
    overflow-x: auto;
    scrollbar-width: none;
  }

  .people-cards::-webkit-scrollbar {
    display: none;
  }

  .person {
    flex: 0 0 calc(var(--cw) * 229 / 504);
    width: calc(var(--cw) * 229 / 504);
    height: calc(var(--cw) * 381 / 504);
    border-radius: calc(var(--cw) * 19.27 / 504);
  }

  /* Contact stack */
  .contact {
    grid-template-columns: 1fr;
    gap: calc(var(--cw) * 24 / 504);
    padding-top: calc(var(--cw) * 32 / 504);
  }

  .contact-pitch {
    height: auto;
    min-height: calc(var(--cw) * 306 / 504);
    /* one empty text line below "sustainability goals." */
    padding: calc(var(--cw) * 22 / 504) var(--pad-card) calc(var(--cw) * 62 / 504);
    border-radius: calc(var(--cw) * 15.5 / 504);
  }

  .contact-pitch p {
    max-width: calc(var(--cw) * 420 / 504);
  }

  .contact-form {
    min-height: calc(var(--cw) * 481 / 504);
    padding: calc(var(--cw) * 41 / 504) var(--pad-card) 0;
    border-radius: calc(var(--cw) * 24.3 / 504);
    gap: calc(var(--cw) * 12 / 504);
  }

  .form-field {
    height: calc(var(--cw) * 48 / 504);
    padding: 0 calc(var(--cw) * 17 / 504);
    border-width: 0.81px;
    border-radius: calc(var(--cw) * 24.3 / 504);
    font-size: calc(var(--cw) * 19.47 / 504);
    line-height: var(--text-body-m);
  }

  .form-field--area {
    height: calc(var(--cw) * 175 / 504);
    padding-top: calc(var(--cw) * 12 / 504);
  }

  .form-send {
    height: calc(var(--cw) * 48 / 504);
    border-radius: calc(var(--cw) * 24.3 / 504);
    font-size: calc(var(--cw) * 19.47 / 504);
    line-height: var(--text-body-m);
  }

  .form-success {
    font-size: calc(var(--cw) * 19.47 / 504);
    line-height: var(--text-body-m);
  }

  /* Video sound toggle: kept at a comfortable ~40px tap target rather than
     scaled down with the canvas — controls must stay tappable on touch. */
  .sound-toggle {
    right: calc(var(--cw) * 14 / 504);
    bottom: calc(var(--cw) * 14 / 504);
    width: 40px;
    height: 40px;
  }

  .sound-toggle svg {
    width: 18px;
    height: 18px;
  }

  /* Footer: 549 tall, stacked places */
  .site-footer {
    height: calc(var(--cw) * 549 / 504);
    margin-top: calc(var(--cw) * 35 / 504);
    padding-top: calc(var(--cw) * 51 / 504);
    font-size: var(--text-body-m);
    line-height: var(--lh-body-m);
  }

  .site-footer::before {
    inset: calc(var(--cw) * -35 / 504) 0 auto 0;
    height: calc(var(--cw) * 65 / 504);
  }

  .footer-place {
    position: static;
    margin-top: calc(var(--cw) * 67 / 504);
  }


  .footer-logo {
    top: calc(var(--cw) * 56 / 504);
    right: var(--page-margin);
    width: calc(var(--cw) * 82 / 504);
    height: calc(var(--cw) * 70 / 504);
  }

  .footer-copy {
    bottom: calc(var(--cw) * 74 / 504);
  }

  .footer-disclaimer {
    bottom: calc(var(--cw) * 16 / 504);
    font-size: calc(var(--cw) * 16 / 504);
    line-height: calc(var(--cw) * 20 / 504);
  }
}

/* Beyond 1920px the whole canvas is scaled up proportionally via a JS-set
   zoom on <html> (see js/main.js) so the layout stays full-bleed. */

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .menu-pill,
  .site-nav,
  .nav-link,
  .nav-icon,
  .brand img {
    transition: none;
  }
}
