@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.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: "Montserrat"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/montserrat-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/montserrat-latin-wght-normal.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;
}
/* Metric-matched stand-in so text does not jump when Inter arrives. */
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }

/* Ydnar brand kit v4 (adopted 15 Nov 2026). UI tokens are the official interface palette;
   logo colours (highlight blue, orange, yellow) are used as accents and in the 3D scene. */
:root {
  --ground: #05162f;
  --ground-2: #082048;
  --ground-3: #123a6e;
  --ink: #f7fafd;
  --ink-2: #bccde2;
  --ink-3: #8ba5c4;
  --rule: #1c3c6b;
  --edge-line: #3b679c;
  --orange: #ff8a12;
  --orange-hi: #ffa544;
  --yellow: #ffe344;
  --blue: #125b9a;
  --blue-hover: #0a477c;
  --blue-hi: #35c8ff;
  --cyan: #35c8ff;
  --threat: #ff4a3a;
  --warning: #c16b00;
  --paper: #f7fafd;
  --paper-2: #ffffff;
  --paper-ink: #17324f;
  --paper-ink-2: #46607c;
  --paper-rule: #d9e4ef;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  /* One left and right edge for the whole page: the 82rem container's edge, or the gutter on smaller screens. */
  --edge: max(var(--gutter), calc(50% - 41rem + var(--gutter)));
  --col-gap: clamp(1.25rem, 2.4vw, 2.5rem);

  /* Type scale. Display is used once, in the hero. */
  --fs-display: clamp(2.5rem, 5.3vw, 4.75rem);
  --fs-h2: clamp(1.85rem, 3.1vw, 2.875rem);
  --fs-h3: clamp(1.3rem, 1.95vw, 1.875rem);
  --fs-lede: clamp(1.1rem, 1.45vw, 1.3125rem);
  --fs-label: 0.8125rem;
  --bar-h: 5.5rem;
  --header-h: var(--bar-h);
  --tint: #f3f5f8;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font: "Inter", "Inter Fallback", "Helvetica Neue", Arial, sans-serif;
  /* Headings and navigation: the geometric face the original site used. */
  --font-head: "Montserrat", "Inter", "Inter Fallback", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--ground-3) var(--ground);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--orange);
}

::selection { background: var(--orange); color: var(--paper-ink); }

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
button { font: inherit; color: inherit; }

h1, h2, h3 { text-wrap: balance; font-family: var(--font-head); }
p, dd, li { text-wrap: pretty; }

h1 { font-size: var(--fs-display); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--orange); color: var(--paper-ink);
  padding: 0.6rem 1rem; border-radius: 6px; font-weight: 650;
}
.skip:focus { top: 0.75rem; }

.wrap { max-width: 82rem; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 2.9rem; padding: 0.7rem 1.5rem;
  border: 1.5px solid transparent; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: 0.97rem; line-height: 1.15;
  text-decoration: none; cursor: pointer; background: none;
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--paper-ink); }
.btn-primary:hover { background: var(--orange-hi); }
.btn-line { border-color: #fff; color: #fff; }
.btn-line:hover { background: #fff; color: #0b0f14; }
.btn-pill { background: var(--orange); color: var(--paper-ink); }
.btn-pill:hover { background: var(--orange-hi); }
.btn-ghost { border-color: var(--edge-line); color: var(--ink); background: rgb(5 22 47 / 0.55); }
.btn-ghost:hover { border-color: var(--cyan); color: #fff; }
.btn-ink { background: var(--paper-ink); color: #fff; }
.btn-ink:hover { background: var(--blue-hover); }
.btn-ink-ghost { border-color: var(--paper-ink); color: var(--paper-ink); }
.btn-ink-ghost:hover { background: rgb(23 50 79 / 0.1); }
.btn .size { font-weight: 450; color: var(--ink-2); }
.btn-stack { border-radius: 14px; flex-direction: column; align-items: flex-start; gap: 0.15rem; text-align: left; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.where {
  font-size: 0.8125rem; font-weight: 620;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--cyan);
}
.where a { color: inherit; }

/* ---------- Header: the original site's frame. A dark utility strip, then a white bar with the mark in the
   centre and three menus either side. Each menu opens a full-width panel. ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--paper-ink); color-scheme: light; }
.site-header :focus-visible { outline-color: var(--blue); }
.bar { position: relative; height: var(--bar-h); padding-inline: var(--gutter); background: #fff; box-shadow: 0 1px 0 var(--paper-rule); display: flex; align-items: center; transition: background-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out); }
.wordmark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; display: grid; }
.wordmark img { grid-area: 1 / 1; width: 8.5rem; height: auto; transition: opacity 0.35s var(--ease-out); }
.mark-white { opacity: 0; }
.site-nav { display: grid; grid-template-columns: 1fr 11.5rem 1fr; align-items: center; width: 100%; height: 100%; }
.nav-list { display: flex; height: 100%; gap: clamp(1rem, 1.7vw, 2.1rem); }
.nav-left { grid-column: 1; justify-content: flex-end; }
.nav-right { grid-column: 3; justify-content: flex-start; }
.nav-list > li { display: flex; }
.nav-top {
  height: 100%; padding: 0 0.15rem; border: 0; background: none; cursor: pointer; white-space: nowrap;
  font-family: var(--font-head); font-size: 0.86rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--paper-ink);
  box-shadow: inset 0 -3px 0 transparent; transition: color 0.25s, box-shadow 0.25s var(--ease-out);
}
.nav-top:hover, .nav-top[aria-expanded="true"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--orange); }
.bar-tools { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 0.5rem; }
.bar-cta { min-height: 2.6rem; padding: 0.5rem 1.1rem; border-radius: 999px; font-size: 0.9rem; white-space: nowrap; background: var(--paper-ink); color: #fff; }
.bar-cta:hover { background: var(--blue); }
.langs { position: relative; }
.langs-toggle {
  display: inline-flex; align-items: center; gap: 0.4em; min-height: 2.6rem; padding: 0 0.6rem; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-family: var(--font-head); font-size: 0.84rem; font-weight: 700; letter-spacing: 0.02em; color: var(--paper-ink); transition: color 0.25s;
}
.langs-toggle::after { content: ""; width: 0.4em; height: 0.4em; margin-top: -0.2em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.langs-toggle:hover { color: var(--blue); }
.langs-menu { position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 3; display: grid; min-width: 13rem; padding: 0.35rem; background: #fff; border: 1px solid var(--paper-rule); border-radius: 10px; box-shadow: 0 18px 40px -14px rgb(8 45 110 / 0.45); }
.langs-menu[hidden] { display: none; }
.langs-menu > * { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.5rem; padding: 0.4rem 0.7rem; border-radius: 6px; font-size: 0.92rem; font-weight: 600; color: var(--paper-ink-2); text-decoration: none; }
.langs-menu a { color: var(--paper-ink); }
.langs-menu a[aria-current] { background: var(--tint); }
.langs-menu small { font-size: 0.7rem; font-weight: 640; letter-spacing: 0.07em; text-transform: uppercase; }

/* At the top of the page the bar is clear and its text white, so the menu sits on the picture.
   It turns white once the page moves, or while a menu is open. */
.site-header.is-clear .bar { background: transparent; box-shadow: none; }
.site-header.is-clear .nav-top, .site-header.is-clear .langs-toggle { color: #fff; text-shadow: 0 1px 12px rgb(0 0 0 / 0.35); }
.site-header.is-clear .nav-top:hover { color: #fff; }
.site-header.is-clear .mark-colour { opacity: 0; }
.site-header.is-clear .mark-white { opacity: 1; }
.site-header.is-clear .bar-cta { background: #fff; color: var(--paper-ink); }
.site-header.is-clear .nav-toggle { background: rgb(8 12 20 / 0.35); border-color: rgb(255 255 255 / 0.6); }
.site-header.is-clear .nav-toggle-bars, .site-header.is-clear .nav-toggle-bars::before, .site-header.is-clear .nav-toggle-bars::after { background: #fff; }
.site-header :focus-visible { outline-color: var(--blue); }
.site-header.is-clear :focus-visible { outline-color: #fff; }

.mega { position: absolute; left: 0; right: 0; top: 100%; padding: 1.75rem var(--edge) 2.25rem; background: var(--tint); border-top: 1px solid var(--paper-rule); box-shadow: 0 34px 50px -34px rgb(8 45 110 / 0.45); }
.mega[hidden] { display: none; }
.mega-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: stretch; }
.mega-feature { grid-column: span 3; padding: 1.6rem; border-radius: 12px; background: #e7eaef; }
.mega-title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 650; }
.mega-feature .btn { margin-top: 1.25rem; white-space: nowrap; }
.mega-links { grid-column: span 6; columns: 2; column-gap: var(--col-gap); padding: 0.4rem 0 0 1rem; }
.mega-links li { break-inside: avoid; }
.mega-links a, .mega-links span { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0; font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--paper-ink); text-decoration: none; }
.mega-links a:hover { color: var(--blue); }
.mega-links span { color: var(--paper-ink-2); }
.mega-links .mega-alert { color: #9a5300; }
.mega-links small { font-family: var(--font); font-size: 0.68rem; font-weight: 640; letter-spacing: 0.07em; text-transform: uppercase; }
.mega-card { grid-column: span 3; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: var(--ground-2); color: #fff; text-decoration: none; }
.mega-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.mega-card span { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.95rem 1.2rem; font-family: var(--font-head); font-weight: 600; }
.mega-card span::after { content: ""; flex: none; width: 0.5em; height: 0.5em; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform 0.25s var(--ease-out); }
.mega-card:hover span::after { transform: translateX(0.25em) rotate(45deg); }

.nav-toggle { display: none; margin-left: auto; width: 2.75rem; height: 2.75rem; border: 1.5px solid var(--paper-rule); border-radius: 6px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 1.15rem; height: 2px; background: var(--paper-ink); border-radius: 1px; transition: transform 0.3s var(--ease-out), opacity 0.2s; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 75rem) {
  :root { --bar-h: 4.25rem; }
  .wordmark { position: static; transform: none; }
  .wordmark img { width: 6.4rem; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; height: auto; display: block; overflow-y: auto; overscroll-behavior: contain;
    padding: 0.5rem var(--gutter) 2rem; background: #fff;
    visibility: hidden; opacity: 0; transform: translateY(-0.5rem);
    transition: opacity 0.25s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s 0.3s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-list { display: block; height: auto; }
  .nav-list > li { display: block; border-bottom: 1px solid var(--paper-rule); }
  .nav-top { display: flex; align-items: center; justify-content: space-between; width: 100%; height: auto; padding: 1rem 0; font-size: 1rem; box-shadow: none !important; }
  .nav-top::after { content: ""; width: 0.45em; height: 0.45em; margin-right: 0.3em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.3s var(--ease-out); }
  .nav-top[aria-expanded="true"]::after { transform: rotate(225deg); }
  .mega { position: static; padding: 0 0 0.75rem; background: none; border: 0; box-shadow: none; }
  .mega-in { display: block; }
  .mega-feature, .mega-card { display: none; }
  .mega-links { columns: 1; padding: 0 0 0 0.75rem; }
  .mega-links a, .mega-links span { padding: 0.6rem 0; font-size: 0.97rem; font-weight: 560; }
  .bar-tools { position: static; transform: none; order: 2; margin-left: auto; gap: 0.15rem; }
  .nav-toggle { order: 3; margin-left: 0.5rem; }
  .bar-cta { min-height: 2.5rem; padding-inline: 0.95rem; font-size: 0.84rem; }
  .site-header.is-clear .nav-top { color: var(--paper-ink); text-shadow: none; }
}

/* ---------- Slider: a full-width picture that runs up under the clear header, with the words set on it. ---------- */
.slider { position: relative; z-index: 2; height: min(92vh, 54rem); min-height: 34rem; background: #0b0f14; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s var(--ease-out), visibility 0s 0.9s; }
.slide.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
/* Shade for the words and the menu; the picture stays visible. */
.slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgb(6 12 24 / 0.5) 0%, rgb(6 12 24 / 0) 22%),
    linear-gradient(90deg, rgb(6 12 24 / 0.78) 0%, rgb(6 12 24 / 0.55) 34%, rgb(6 12 24 / 0) 68%);
}
.slide-copy { position: absolute; z-index: 1; left: var(--edge); bottom: clamp(5rem, 14vh, 9rem); width: min(40rem, 52%); color: #fff; }
.slide-copy h2 { font-size: clamp(2.1rem, 4.3vw, 3.9rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.slide-copy p { margin-top: 1.25rem; max-width: 34rem; font-size: var(--fs-lede); line-height: 1.5; color: #eef2f6; }
.slide-copy .btn { margin-top: 2rem; min-height: 3.1rem; padding-inline: 1.75rem; }
.slider-ui { position: absolute; z-index: 1; left: 0; right: 0; bottom: 1.25rem; display: flex; align-items: center; justify-content: center; gap: 0.9rem; }
.dots { display: flex; gap: 0.25rem; }
.dot { width: 1.75rem; height: 1.75rem; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dot::before { content: ""; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgb(255 255 255 / 0.55); box-shadow: 0 0 0 2px rgb(0 0 0 / 0.35); transition: background-color 0.25s, transform 0.25s var(--ease-out); }
.dot:hover::before { background: #fff; }
.dot.is-on::before { background: var(--orange); transform: scale(1.2); }
.slider-pause { width: 1.75rem; height: 1.75rem; padding: 0; border: 0; border-radius: 50%; background: rgb(0 0 0 / 0.55); cursor: pointer; display: grid; place-items: center; }
.slider-pause::before { content: ""; width: 0.5rem; height: 0.6rem; border-inline: 0.16rem solid #fff; }
.slider-pause[aria-pressed="true"]::before { width: 0; height: 0; border-block: 0.32rem solid transparent; border-inline: 0.55rem solid #fff; border-right: 0; }
.slider :focus-visible { outline-color: #fff; }

/* ---------- Intro band and picture cards ---------- */
.tint { position: relative; z-index: 2; background: var(--tint); color: var(--paper-ink); color-scheme: light; }
.tint :focus-visible { outline-color: var(--blue); }
.tint a:not(.btn) { color: var(--blue); }
.solutions { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.cards { margin-top: clamp(2rem, 4vw, 3.25rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); }
.card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; background: var(--ground); }
.card-label { margin-top: 1.4rem; font-family: var(--font-head); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--paper-ink); }
.card h3 { margin-top: 1rem; font-size: 1.3rem; font-weight: 600; line-height: 1.25; }
.card h3 + p { margin-top: 0.6rem; color: var(--paper-ink-2); }
.card-go { margin-top: 0.9rem; }
.card-go a { display: inline-flex; align-items: center; gap: 0.5em; padding-block: 0.35rem; font-weight: 620; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; }
.card-go a::after { content: ""; width: 0.5em; height: 0.5em; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform 0.25s var(--ease-out); }
.card-go a:hover::after { transform: translateX(0.25em) rotate(45deg); }
@media (max-width: 75rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; } }
@media (max-width: 52rem), (orientation: portrait) and (max-width: 64rem) {
  .slider { height: min(88svh, 44rem); min-height: 32rem; }
  .slide::after { background: linear-gradient(180deg, rgb(6 12 24 / 0.5) 0%, rgb(6 12 24 / 0) 20%), linear-gradient(0deg, rgb(6 12 24 / 0.9) 0%, rgb(6 12 24 / 0.7) 42%, rgb(6 12 24 / 0) 78%); }
  .slide-copy { left: var(--gutter); right: var(--gutter); bottom: 4.25rem; width: auto; }
  .slide-img { object-position: var(--pos-m, var(--pos, 50% 50%)); }
  .cards { grid-template-columns: 1fr; }
}

/* ---------- Journey: stage ---------- */
.journey { position: relative; background: var(--ground); }

.stage {
  position: sticky; top: 0; z-index: 0;
  height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh;
  overflow: hidden; --scrim: 0;
}
.stage picture, .stage-poster, .stage canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.stage-poster { object-fit: cover; background: var(--ground); }
.stage canvas { opacity: 0; transition: opacity 1.1s var(--ease-out); touch-action: pan-y; }
.stage.is-live canvas { opacity: 1; }
.stage.is-live .stage-poster { visibility: hidden; transition: visibility 0s 1.2s; }

.stage-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--ground) 0%, var(--ground) 30%, rgb(5 22 47 / 0) 56%);
  opacity: var(--scrim);
}
.stage::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%; pointer-events: none;
  background: radial-gradient(120% 100% at 0% 100%, rgb(5 22 47 / 0.92) 0%, rgb(5 22 47 / 0.6) 38%, rgb(5 22 47 / 0) 70%);
  opacity: calc(1 - var(--scrim));
}

/* Device tags, positioned by the scene */
.stage-tags { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.6s var(--ease-out); }
.stage.is-live .stage-tags[data-placed] { opacity: var(--tags, 1); }
.tag {
  position: absolute; left: 0; top: 0; will-change: transform;
  display: inline-flex; align-items: center; gap: 0.45em;
  padding: 0.28rem 0.55rem; border-radius: 4px;
  font-size: 0.72rem; font-weight: 640; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); background: rgb(5 22 47 / 0.72); border: 1px solid var(--rule);
  white-space: nowrap; transform-origin: 50% 100%;
}
.tag::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 14px; background: var(--rule);
}
.tag-side::after { left: -10px; top: 50%; width: 10px; height: 1px; }
button.tag { pointer-events: auto; cursor: pointer; color: #fff; border-color: var(--edge-line); transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
button.tag::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--orange); }
button.tag:hover, button.tag.is-hot { border-color: var(--orange); background: var(--ground); }

.stage-markers { position: absolute; inset: 0; pointer-events: none; opacity: var(--markers, 0); }
.marker {
  position: absolute; left: 0; top: 0; will-change: transform;
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: -0.8rem;
  height: 1.6rem; padding: 0 0.6rem 0 0; border-radius: 4px;
  font-size: 0.78rem; font-weight: 620; white-space: nowrap;
  background: var(--ground); color: var(--ink-2); border: 1px solid var(--edge-line); cursor: pointer; pointer-events: auto;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.marker .n { width: 1.5rem; text-align: center; font-weight: 680; font-variant-numeric: tabular-nums; color: var(--ink); }
.marker:hover { border-color: var(--orange); color: #fff; }
.marker.is-on { background: var(--orange); color: var(--paper-ink); border-color: var(--orange); }
.marker.is-on .n { color: var(--paper-ink); }

/* Story notes and the step counter */
.stage-notes { position: absolute; inset: 0; pointer-events: none; opacity: var(--tags, 1); }
.note {
  position: absolute; left: 0; top: 0; will-change: transform;
  padding: 0.3rem 0.6rem; border-radius: 4px; white-space: nowrap;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease-out), visibility 0s 0.3s;
}
.note.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.note-stop { background: var(--orange); color: var(--paper-ink); }
.note-zone { padding: 0.15rem 0; color: #fff; text-shadow: 0 1px 6px var(--ground); }
.note-kept { background: var(--ground); color: var(--yellow, #ffe344); border: 1px solid rgb(255 227 68 / 0.5); }
.stage-steps {
  position: absolute; left: var(--edge); bottom: clamp(1.5rem, 5vh, 3rem); margin: 0;
  display: flex; align-items: center; gap: 0.9rem; pointer-events: none;
  opacity: var(--steps, 0);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.stage-steps b { color: #fff; font-weight: 680; }
.stage-steps .ticks { display: flex; gap: 0.3rem; }
.stage-steps .ticks i { width: 1.1rem; height: 3px; border-radius: 2px; background: var(--edge-line); transition: width 0.35s var(--ease-out), background-color 0.35s var(--ease-out); }
.stage-steps .ticks .is-done { background: var(--ink-2); }
.stage-steps .ticks .is-now { width: 2.2rem; background: var(--orange); }
.static .stage-steps, .static .stage-notes, .poster-mode .stage-steps, .poster-mode .stage-notes { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 1rem) var(--edge) clamp(2rem, 6vh, 4.5rem);
  pointer-events: none;
}
.hero-copy { max-width: 46rem; pointer-events: auto; }
.hero h2 { max-width: 12em; }
.lede { margin-top: 1.4rem; max-width: 36rem; font-size: var(--fs-lede); line-height: 1.5; color: var(--ink-2); }
.hero .actions { margin-top: 1.9rem; align-items: center; }
.hero-skip { margin-left: 0.5rem; padding-block: 0.6rem; font-weight: 560; color: var(--ink-2); text-underline-offset: 0.25em; }
.hero-skip:hover { color: #fff; }
.stage-optin { margin-top: 0.9rem; }

.view { position: absolute; pointer-events: none; visibility: hidden; }
.hero .view { inset: calc(var(--header-h) + 4%) 10% 5% 52%; }

/* ---------- Story ---------- */
.story { position: relative; z-index: 1; pointer-events: none; }
.step {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: var(--header-h) var(--edge) 2rem;
}
.step .view { inset: 16% 4% 14% 46%; }
.step, .inspect, .story { scroll-margin-top: calc(-1 * var(--header-h)); }
.step-copy { max-width: 27rem; pointer-events: auto; }
.story-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.step-copy h3 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.025em; }
.step-copy p { margin-top: 1.1rem; color: var(--ink-2); }
.step-copy .where { margin-top: 1.4rem; color: var(--cyan); }

/* ---------- Inspector ---------- */
.inspect {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 1rem) var(--edge) 2.5rem;
  pointer-events: none;
}
.inspect-copy { pointer-events: auto; }
.inspect .view { inset: 14% 5% 12% 50%; }
.inspect-copy { width: min(30rem, 44%); }
.inspect-lede { margin-top: 0.9rem; color: var(--ink-2); max-width: 26rem; }

.device-tabs {
  display: flex; gap: 0.35rem; margin-top: 1.75rem; padding: 0.3rem;
  background: var(--ground-2); border-radius: 8px; width: max-content; max-width: 100%;
}
.device-tabs [role="tab"] {
  border: 0; background: none; cursor: pointer;
  padding: 0.55rem 0.95rem; border-radius: 5px; min-height: 2.6rem;
  font-size: 0.9rem; font-weight: 620; color: var(--ink-2);
  transition: background-color 0.25s var(--ease-out), color 0.2s;
}
.device-tabs [role="tab"]:hover { color: #fff; }
.device-tabs [role="tab"][aria-selected="true"] { background: var(--orange); color: var(--paper-ink); }

.device-panel { margin-top: 1.25rem; }
.device-line { font-size: 1.15rem; font-weight: 560; color: #fff; }
.layers { margin-top: 1rem; border-top: 1px solid var(--rule); }
.layers > li { border-bottom: 1px solid var(--rule); }
.layer {
  display: flex; align-items: center; gap: 0.85rem; width: 100%;
  padding: 0.7rem 0.25rem; min-height: 3rem;
  border: 0; background: none; text-align: left; cursor: pointer;
  font-weight: 600; color: var(--ink);
  transition: color 0.2s;
}
.layer .n {
  flex: none; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border-radius: 4px;
  font-size: 0.75rem; font-weight: 680; font-variant-numeric: tabular-nums;
  border: 1px solid var(--edge-line); color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.layer:hover .n { border-color: var(--orange); color: #fff; }
.layer[aria-current="true"] .n { background: var(--orange); border-color: var(--orange); color: var(--paper-ink); }
.layer-body {
  display: grid; grid-template-rows: 0fr; padding-left: 2.6rem;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.layer-body > div { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s 0.45s; }
.layer[aria-current="true"] + .layer-body > div { visibility: visible; transition-delay: 0s; }
html:not(.js) .layer-body > div { visibility: visible; }
.layer-body p:first-child { color: var(--ink-2); font-size: 1rem; }
.layer-body .where { padding-block: 0.7rem 1rem; }
.layer[aria-current="true"] + .layer-body { grid-template-rows: 1fr; }
html:not(.js) .layer-body { grid-template-rows: 1fr; }

/* ---------- Paper region ---------- */
.paper { position: relative; z-index: 2; background: var(--paper); color: var(--paper-ink); color-scheme: light; }
.paper ::selection { background: var(--paper-ink); color: #fff; }
.paper :focus-visible { outline-color: var(--blue); }
.paper a:not(.btn) { color: var(--blue); }
.paper a:not(.btn):hover { color: var(--blue-hover); }

.move-see a, .sector-go a { display: inline-flex; align-items: center; gap: 0.5em; padding-block: 0.4rem; font-weight: 620; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; }
.move-see a::after, .sector-go a::after { content: ""; width: 0.5em; height: 0.5em; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform 0.25s var(--ease-out); }
.move-see a:hover::after, .sector-go a:hover::after { transform: translateX(0.25em) rotate(45deg); }

.sectors { padding-block: clamp(4rem, 8vw, 7rem); }
.who { margin-top: clamp(2rem, 4vw, 3.25rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.who > li { display: flex; flex-direction: column; padding: clamp(1.5rem, 2.4vw, 2.25rem); border-radius: 16px; background: var(--tint); }
.who h3 { font-size: 1.35rem; line-height: 1.25; }
.who h3 + p { margin-top: 0.75rem; color: var(--paper-ink-2); }
.who-uses { margin: 1.25rem 0 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--paper-rule); display: grid; gap: 0.5rem; }
.who-uses li { display: flex; align-items: center; gap: 0.6em; }
.who-uses li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.who .sector-go { margin-top: auto; }

/* ---------- Deep region ---------- */
.deep { position: relative; z-index: 2; background: var(--ground-2); }
.innovation { position: relative; overflow: hidden; padding-block: clamp(4.5rem, 11vw, 9rem); }
/* Her portrait fills the right half of the band and dissolves into the ground on the left. */
.innovation-figure { position: absolute; inset: 0 0 0 46%; margin: 0; }
.innovation-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 40%; }
.innovation-figure::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--ground-2) 0%, rgb(8 32 72 / 0.72) 16%, rgb(8 32 72 / 0) 46%), linear-gradient(0deg, rgb(8 32 72 / 0.55) 0%, rgb(8 32 72 / 0) 30%); }
.innovation .wrap { position: relative; }
.innovation-copy { width: min(100%, 31rem); }
.innovation-copy article { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.innovation-copy h2 + article { margin-top: clamp(2rem, 4vw, 3rem); }
.innovation-copy p { margin-top: 0.7rem; color: var(--ink-2); }
.innovation-copy .btn { margin-top: 2.25rem; }

.partners { padding-block: clamp(4rem, 8vw, 7rem); }
.partners-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 2.5rem; align-items: start; }
.partners-head { grid-column: 1 / span 5; }
.partners-head p { margin-top: 1rem; max-width: 34rem; color: var(--paper-ink-2); font-size: var(--fs-lede); }
.partners-head .actions { margin-top: 2rem; }
.vendors { grid-column: 7 / -1; }
.vendors > div { display: grid; grid-template-columns: 12rem 1fr; gap: 1rem; padding-block: 1.15rem; border-top: 1px solid var(--paper-rule); }
.vendors > div:last-child { border-bottom: 1px solid var(--paper-rule); }
.vendors dt { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; }
.vendors dd { color: var(--paper-ink-2); }

/* ---------- Signal region ---------- */
.signal { position: relative; z-index: 2; background: var(--orange); color: var(--paper-ink); color-scheme: light; }
.signal ::selection { background: var(--paper-ink); color: #fff; }
.signal :focus-visible { outline-color: var(--paper-ink); }
.contact { padding-block: clamp(3.5rem, 6vw, 5.5rem) clamp(4rem, 8vw, 7rem); }
.contact h2 { max-width: 14ch; }
.contact-lede { margin-top: 1.1rem; font-size: var(--fs-lede); font-weight: 500; }
.contact .actions { margin-top: 2rem; }
.contact-grid { align-items: start; row-gap: 2.5rem; }
.contact-form { display: grid; gap: 0.4rem; }
.contact-form label { font-weight: 640; font-size: 0.94rem; margin-top: 0.7rem; }
.contact-form input, .contact-form textarea { font: inherit; color: var(--paper-ink); background: #fff; border: 1.5px solid var(--paper-ink); border-radius: 6px; padding: 0.65rem 0.8rem; width: 100%; resize: vertical; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { background: #fff; outline-offset: 2px; }
.contact-form .btn { margin-top: 1rem; justify-self: start; }
.form-note { font-size: 0.875rem; max-width: 30rem; }
.contact address { margin-top: 2.5rem; font-style: normal; font-weight: 560; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 2; background: var(--ground); padding-block: 3rem 2.5rem; color: var(--ink-2); font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem clamp(2rem, 6vw, 6rem); align-items: start; }
.footer-mark img { width: 13.75rem; height: auto; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer ul { display: grid; grid-template-columns: repeat(2, max-content); gap: 0.25rem 2.5rem; }
.site-footer a { text-decoration: none; display: inline-block; padding-block: 0.3rem; }
.where a { display: inline-block; padding-block: 0.25rem; }
.draft-flag { position: fixed; left: 0.5rem; bottom: 0.5rem; z-index: 60; margin: 0; padding: 0.2rem 0.45rem; border-radius: 4px; font-size: 0.6rem; opacity: 0.85; font-weight: 640; letter-spacing: 0.06em; text-transform: uppercase; background: var(--paper-ink); color: var(--ink); border: 1px solid var(--edge-line); pointer-events: none; }
.poster-mode .draft-flag { display: none; }
.device-poster { display: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); color: var(--ink-3); }

/* ---------- Narrow screens ---------- */
@media (max-width: 52rem), (orientation: portrait) and (max-width: 64rem) {
  .stage-scrim { background: linear-gradient(0deg, var(--ground) 0%, rgb(5 22 47 / 0.94) 38%, rgb(5 22 47 / 0) 60%); }
  .stage::after { height: 62%; background: linear-gradient(0deg, var(--ground) 0%, rgb(5 22 47 / 0.9) 45%, rgb(5 22 47 / 0) 100%); }

  .hero { justify-content: flex-start; padding-top: var(--header-h); padding-bottom: 1.75rem; }
  .hero .view { position: relative; inset: auto; flex: 1 1 auto; min-height: 34svh; margin-inline: calc(-1 * var(--gutter)); }
  .hero h2 { font-size: clamp(2.2rem, 9.6vw, 3rem); max-width: none; }
  .lede { margin-top: 1rem; }
  .hero .actions { margin-top: 1.4rem; }
  .step { align-items: flex-end; padding-bottom: clamp(2rem, 7vh, 4rem); }
  .step .view { inset: 11% 5% 52% 5%; }
  .stage-steps { bottom: 0.7rem; font-size: 0.72rem; }

  .inspect { display: block; height: 100vh; height: 100svh; min-height: 0; padding: 0; }
  .inspect .view { inset: calc(var(--header-h) + 1svh) 16% auto 16%; height: 33svh; }
  .inspect-copy {
    position: absolute; inset: 42svh 0 0 0; width: auto; overflow-y: auto;
    padding: 1rem var(--gutter) 1.5rem; background: var(--ground); box-shadow: 0 -1px 0 var(--rule);
  }
  .inspect-copy h2 { font-size: 1.5rem; }
  .inspect-lede { display: none; }
  .device-tabs { margin-top: 0.8rem; }
  .device-tabs [role="tab"] { padding-inline: 0.75rem; }
  .device-line { font-size: 1.05rem; }
  .layer { padding-block: 0.5rem; min-height: 2.75rem; }
  .marker .l { display: none; }
  .marker { padding: 0; }
  .tag { font-size: 0.66rem; padding: 0.35rem 0.5rem; min-height: 1.6rem; }
  button.tag::before { width: 5px; height: 5px; }
  .move-map { grid-column: 1; }

  .tag:not(button) { display: none; }

  .move h3 { grid-row: auto; grid-column: 1; }
  .sectors h2 { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Poster capture mode: scene only */
.poster-mode .site-header, .poster-mode .stage-tags, .poster-mode .stage::after { display: none !important; }
.poster-mode .stage picture { display: none; }
.poster-mode .stage canvas { transition: none; opacity: 1; }

/* ---------- Static tier: no 3D running (slow connection, data saver, reduced motion, no WebGL) ---------- */
.static .stage { position: absolute; inset: 0 0 auto 0; margin: 0; }
.static .stage-scrim { display: none; }
.static .stage::after { opacity: 1; }
.static .story, .static .inspect { background: var(--ground); pointer-events: auto; }
.static .story { padding: clamp(3.5rem, 9vw, 7rem) var(--gutter) 1rem; }
.static .story-title { position: static; width: auto; height: auto; clip-path: none; max-width: 18ch; margin-bottom: 2rem; }
.static .step { min-height: 0; display: block; padding: 1.6rem 0; border-top: 1px solid var(--rule); }
.static .step-copy { max-width: 40rem; }
.static .step-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.static .inspect { display: block; height: auto; min-height: 0; padding: clamp(3rem, 8vw, 6rem) var(--gutter); }
.static .inspect-copy { position: static; width: auto; max-width: 44rem; overflow: visible; padding: 0; box-shadow: none; }
.static .inspect-lede { display: block; }
.static .device-poster { display: block; width: min(100%, 22rem); height: auto; margin: 0 0 1rem -1rem; }
.poster-mode .hero-copy { visibility: hidden; }
.poster-inspect .inspect .view { inset: 5% !important; height: auto !important; }
.poster-unit .hero .view { position: absolute !important; inset: 5% !important; min-height: 0 !important; margin: 0 !important; }
.poster-inspect .inspect-copy, .poster-inspect .stage-markers { display: none !important; }

@media (max-width: 52rem), (orientation: portrait) and (max-width: 64rem) {
  .static .stage { height: 50svh; }
  .static .stage-poster { object-position: 50% 18%; }
  .static .hero { min-height: 0; padding-top: 47svh; }
  .static .hero .view { display: none; }
  .draft-flag { position: static; display: block; text-align: center; border-radius: 0; border-width: 1px 0 0; font-size: 0.66rem; padding: 0.6rem; }
  .static .stage::after { height: 28%; }
}

/* ---------- Our work ---------- */
.work { padding-block: 0 clamp(4rem, 8vw, 7rem); }
/* One case, in one dark panel on the light page. */
.case-panel {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 2.5rem; align-items: start;
  padding: clamp(2rem, 4.5vw, 4rem); border-radius: 20px; background: var(--ground-2); color: var(--ink); color-scheme: dark;
}
.case-panel :focus-visible { outline-color: var(--cyan); }
.case-main { grid-column: span 6; }
.case-main h3 { margin-top: 2rem; font-size: 1.35rem; color: var(--cyan); }
.case-line { margin-top: 0.75rem; color: var(--ink-2); font-size: var(--fs-lede); max-width: 32rem; }
.case-main .btn { margin-top: 2rem; }
.case-moves { grid-column: 8 / -1; }
.case-moves > div { display: grid; grid-template-columns: 10.5rem 1fr; gap: 1rem; padding-block: 1rem; border-top: 1px solid var(--rule); }
.case-moves > div:last-child { border-bottom: 1px solid var(--rule); }
.case-moves dt { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.case-moves dd { color: var(--ink-2); }
.case-also { grid-column: 1 / -1; padding-top: 1.75rem; border-top: 1px solid var(--rule); color: var(--ink-2); }
.case-also strong { color: var(--ink); font-weight: 600; }
/* The panel is dark inside a light section: its links take the dark ground's ink, not the paper blue. */
.paper .case-panel a:not(.btn):not(.wp-block-button__link) { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; text-decoration-color: var(--cyan); }
.paper .case-panel a:not(.btn):not(.wp-block-button__link):hover { color: var(--cyan); }

/* ---------- Company story: the route, drawn at each city's true position ---------- */
.story-band { padding-block: clamp(4.5rem, 11vw, 9rem); }
.story-grid { align-items: start; row-gap: 2.5rem; }
.story-band h2 { max-width: 12ch; }
.story-band h2 span { color: var(--blue); }
.story-lede { margin-top: 1.25rem; max-width: 36rem; color: var(--paper-ink-2); font-size: var(--fs-lede); }
.route { margin-top: clamp(2rem, 4vw, 3.5rem); max-width: 40rem; }
.route li { position: relative; padding: 1rem 0 1rem 2.4rem; border-top: 1px solid var(--paper-rule); }
.route li:last-child { border-bottom: 1px solid var(--paper-rule); }
.route li::before { content: ""; position: absolute; left: 0.1rem; top: 1.2rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #2f8fd6, #0874c4 60%, #0a5aa0); box-shadow: 0 3px 6px rgb(8 45 110 / 0.35); }
.route li:nth-child(3)::before { background: radial-gradient(circle at 38% 32%, #ffa245, #ff8a12 60%, #e07205); box-shadow: 0 3px 6px rgb(184 84 0 / 0.35); }
.route li:nth-child(4)::before { background: radial-gradient(circle at 38% 32%, #ffec7a, #ffe344 60%, #e6c81f); box-shadow: 0 3px 6px rgb(160 130 0 / 0.35); }
.route strong { display: block; font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.2; }
.route span { display: block; margin-top: 0.25rem; color: var(--paper-ink-2); }
/* The location map: real coastlines, state and province lines, and an enlarged view of Hispaniola. */
.loc-map { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 30px 60px -40px rgb(8 45 110 / 0.55); }
.lm-sea { fill: #dbe8f6; }
.lm-land { fill: #fdfefe; stroke: #a9bdd2; stroke-width: 0.8; stroke-linejoin: round; }
.lm-states { fill: none; stroke: #cfdbe8; stroke-width: 0.6; }
.lm-lake { fill: #dbe8f6; stroke: #a9bdd2; stroke-width: 0.5; }
.lm-haiti { fill: var(--blue); stroke: #082d6e; stroke-width: 0.8; stroke-linejoin: round; }
.lm-country { font-family: var(--font-head); font-size: 10px; font-weight: 600; letter-spacing: 0.16em; fill: #7d93aa; }
.lm-country .lm-on-haiti { fill: #fff; }
.lm-arcs { fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 1 5; }
.lm-pins circle { fill: var(--blue); stroke: #fff; stroke-width: 2; }
.lm-home, .lm-pins .lm-home { fill: var(--orange); stroke: #fff; stroke-width: 2; }
.lm-ring { fill: none; stroke: var(--orange); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }
.lm-city { font-family: var(--font-head); font-size: 13.5px; font-weight: 600; fill: var(--paper-ink); paint-order: stroke; stroke: rgb(255 255 255 / 0.92); stroke-width: 4px; stroke-linejoin: round; }
.lm-city .lm-here { font-size: 15px; font-weight: 700; }
.lm-leader { fill: none; stroke: #5b7390; stroke-width: 1; stroke-dasharray: 3 3; }
.lm-inset-frame { fill: none; stroke: #5b7390; stroke-width: 1.2; }
@media (prefers-reduced-motion: no-preference) {
  .lm-ring { animation: home-ring 2.6s var(--ease-out) infinite; }
}
@media (prefers-reduced-motion: no-preference) {
  .rm-home { animation: home-ring 2.6s var(--ease-out) infinite; }
  @keyframes home-ring { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(1.5); opacity: 0; } }
}
@media (max-width: 52rem), (orientation: portrait) and (max-width: 64rem) {
  .case-moves > div { grid-template-columns: 1fr; gap: 0.15rem; }
  .route-map { max-width: 21rem; justify-self: center; }
}

/* ---------- The grid: twelve columns, and only two ways to split them ---------- */
.sectors-grid, .pair, .partners-grid, .contact-grid, .cases, .story-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
}
/* 5 + 7: a heading or statement on the left, its detail on the right */
.sectors-grid > h2, .partners-grid > :first-child { grid-column: 1 / span 5; }
.sectors-grid > .sector-list, .partners-grid > .vendor-list { grid-column: 6 / -1; }
/* 6 + 6: two things of equal standing */
.pair > *, .cases > *, .contact-grid > *, .story-grid > * { grid-column: span 6; }
.story-grid > :first-child { grid-column: 1 / span 5; }
.story-grid > .loc-map { grid-column: 6 / -1; }
.story-grid > .route-map { justify-self: end; }
.contact-form { max-width: 32rem; justify-self: end; width: 100%; }

@media (max-width: 52rem), (orientation: portrait) and (max-width: 64rem) {
  .moves, .sectors-grid, .pair, .partners-grid, .contact-grid, .cases, .story-grid { grid-template-columns: minmax(0, 1fr); }
  .moves > * { grid-column: 1 / -1; }
  .move-stage { position: relative; top: auto; order: -1; margin-bottom: 1.5rem; }
  .sectors-grid > *, .pair > *, .partners-grid > *, .contact-grid > *, .cases > *, .story-grid > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .story-grid > .route-map, .contact-form { justify-self: start; }
  .sectors h2 { position: static; }
}

@media (min-width: 52.01rem) and (orientation: landscape) {
  .step { min-height: 84vh; min-height: 84svh; }
}

@media (max-width: 52rem), (orientation: portrait) and (max-width: 64rem) {
  .innovation { padding-top: 0; }
  .innovation-figure { position: relative; inset: auto; aspect-ratio: 4 / 3; margin-bottom: 2.5rem; }
  .innovation-figure::after { background: linear-gradient(0deg, var(--ground-2) 0%, rgb(8 32 72 / 0) 38%); }
}

@media (max-width: 62rem) { .who { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 52rem), (orientation: portrait) and (max-width: 64rem) {
  .case-main, .case-moves { grid-column: 1 / -1; }
  .case-moves > div { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ================= Round 4: first screen, contact route, laptop header, no-3D story, proof ================= */

/* Header: a tighter bar keeps the full menu down to 68rem; below that the menu is a drawer, but the
   language switch and the contact button stay in the bar. */
.mega-desc { margin-top: 0.5rem; font-size: 0.94rem; line-height: 1.45; color: var(--paper-ink-2); }
@media (max-width: 84rem) and (min-width: 75.01rem) {
  :root { --bar-h: 4.75rem; }
  .bar { padding-inline: 1.5rem; }
  .wordmark img { width: 7rem; }
  .site-nav { grid-template-columns: 1fr 9rem 1fr; }
  .nav-list { gap: 0.95rem; }
  .nav-top { padding-inline: 0; font-size: 0.8rem; letter-spacing: 0.01em; }
  .bar-tools { right: 1.5rem; gap: 0.15rem; }
  .bar-cta { padding-inline: 0.95rem; font-size: 0.84rem; }
}
@media (max-width: 78rem) and (min-width: 75.01rem) {
  .bar { padding-inline: 1.25rem; }
  .bar-tools { right: 1.25rem; gap: 0; }
  .bar-cta { padding-inline: 0.8rem; font-size: 0.8rem; }
  .nav-list { gap: 0.8rem; }
}
@media (max-width: 30rem) { .langs { display: none; } }

/* Slider: the first slide's heading is the page's h1; every slide carries two actions. */
.slide-copy h1, .slide-copy h2 { font-size: clamp(2.1rem, 4.3vw, 3.9rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.slide-copy .actions { margin-top: 2rem; }
.slide-copy .btn { margin-top: 0; }
.slider-ui { bottom: 0.6rem; gap: 0.25rem; }
.dots { gap: 0; }
.dot { width: 2.75rem; height: 2.75rem; }
.slider-pause { width: 2.75rem; height: 2.75rem; background: radial-gradient(circle, rgb(0 0 0 / 0.55) 0 0.85rem, rgb(0 0 0 / 0) 0.9rem); }

/* Intro band: the claim on the left; what it covers, one line of proof and a number to call on the right. */
.intro { padding-block: clamp(3.5rem, 7vw, 6rem); }
.intro-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 1.5rem; align-items: start; }
.intro-grid h2 { grid-column: 1 / span 5; max-width: 14ch; }
.intro-body { grid-column: 7 / -1; }
.intro-body > p:first-child { font-size: var(--fs-lede); color: var(--paper-ink-2); }
.intro-proof { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--paper-rule); }
.intro-proof a, .intro-call a { font-weight: 620; white-space: nowrap; }
.intro-call { margin-top: 0.75rem; }
.intro-call a { display: inline-block; padding-block: 0.5rem; }

/* Story */
.step-go { margin-top: 1.6rem; }
.step-net { display: none; --n-off: #3b679c; }
.card { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* Contact form */
.contact-form select { font: inherit; color: var(--paper-ink); background-color: #fff; border: 1.5px solid var(--paper-ink); border-radius: 6px; padding: 0.65rem 0.8rem; width: 100%; min-height: 2.9rem; }
.contact-form input, .contact-form textarea, .contact-form select { scroll-margin-top: calc(var(--header-h) + 4rem); }
.contact-form .opt { font-weight: 450; }
.contact-form [aria-invalid="true"] { border-color: #8a1616; border-width: 2px; }
.field-hint { font-size: 0.9rem; font-weight: 560; }
.field-err { padding: 0.5rem 0.75rem; border: 1.5px solid #8a1616; border-radius: 6px; background: #fff; color: #8a1616; font-size: 0.92rem; font-weight: 620; }
.form-status { margin-top: 0.75rem; padding: 1rem 1.15rem; border-radius: 10px; background: #fff; color: var(--paper-ink); }
.form-status p + p { margin-top: 0.4rem; }
.form-status a { color: var(--blue); font-weight: 620; }
.link-btn { padding: 0.35rem 0; border: 0; background: none; font: inherit; font-weight: 620; color: var(--blue); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }

@media (max-width: 52rem), (orientation: portrait) and (max-width: 64rem) {
  .intro-grid h2, .intro-body, .partners-head, .vendors { grid-column: 1 / -1; }
  .vendors > div { grid-template-columns: 1fr; gap: 0.15rem; }
  .slide-copy { bottom: 4rem; }
  .slide-copy .actions { margin-top: 1.4rem; gap: 0.6rem; }
  .slide-copy .btn { min-height: 2.9rem; padding-inline: 1.25rem; }
  /* The step's words sit on a solid panel, so they never run across the scene's own labels. */
  .step { padding-bottom: 2.75rem; }   /* room for the step counter, which sits on the scene below the panel */
  .step-copy { max-width: none; width: auto; margin-inline: calc(-1 * var(--gutter)); padding: 1.25rem var(--gutter) 1.5rem; background: var(--ground); box-shadow: 0 -1px 0 var(--rule); flex: 1 1 auto; }
}

/* Without 3D each step gets a small diagram of the network with the part in question lit. */
.static .story, .static .inspect { padding-inline: var(--edge); }
.static .step { display: grid; grid-template-columns: minmax(0, 40rem) minmax(0, 24rem); column-gap: clamp(2rem, 6vw, 6rem); row-gap: 1.25rem; align-items: center; justify-content: space-between; }
.static .step-copy { margin: 0; padding: 0; background: none; box-shadow: none; }
.static .step-net { display: block; width: 100%; height: auto; }
@media (max-width: 52rem), (orientation: portrait) and (max-width: 64rem) {
  .static .step { grid-template-columns: minmax(0, 1fr); }
  .static .step-net { order: -1; max-width: 19rem; }
}

/* ================= Round 5 ================= */
.contact, .solutions, .sectors, .work, .partners, .story-band, .innovation { scroll-margin-top: calc(var(--header-h) - 1.5rem); }
.form-status:focus-visible { outline: 3px solid var(--paper-ink); outline-offset: 3px; }
.nav-call { display: none; }
.step-skip { margin-top: 0.9rem; }
.step-skip a { display: inline-block; padding-block: 0.6rem; font-weight: 560; color: var(--ink-2); text-underline-offset: 0.25em; }
.step-skip a:hover { color: #fff; }
.static .step-skip { display: none; }
/* Comfortable tap targets for the small text links. */
.intro-proof a { display: inline; padding-block: 0.6rem; }
.where a { padding-block: 0.65rem; }
.layer-body .where { padding-block: 0.2rem 0.5rem; }
.site-footer a { padding-block: 0.65rem; }
.site-footer address { line-height: 1.45; }
.site-footer ul { row-gap: 0; }
.form-status a, .form-status .link-btn { display: inline-block; padding-block: 0.6rem; }
@media (max-width: 75rem) {
  .nav-call { display: block; margin-top: 1.5rem; }
  .nav-call a { display: inline-block; padding-block: 0.75rem; font-family: var(--font-head); font-weight: 650; color: var(--blue); }
}
@media (max-width: 52rem), (orientation: portrait) and (max-width: 64rem) {
  /* Shorter steps, so the next panel arrives before the screen empties. */
  .step { min-height: 78svh; }
  .step[data-step="1"] { min-height: 100svh; }
  /* The opening words ride on a solid panel too, so they cover the rack instead of running across it. */
  .hero-copy { margin-inline: calc(-1 * var(--gutter)); padding: 1.1rem var(--gutter) 0.5rem; background: var(--ground); }
}
@media (max-width: 52rem), (orientation: portrait) and (max-width: 64rem) { .static .step, .static .step[data-step="1"] { min-height: 0; } .static .hero-copy { margin-inline: 0; padding: 0; background: none; } }

/* Capture mode: nothing dims the scene. */
.poster-mode .stage-scrim { display: none !important; }

/* ================= Round 6 ================= */
/* On wide screens the step counter sits under the scene, clear of the column the words travel through. */
@media (min-width: 52.01rem) and (orientation: landscape), (min-width: 64.01rem) {
  .stage-steps { left: 54%; }
}
.card-go a, .sector-go a { padding-block: 0.65rem; }
@media (max-width: 52rem), (orientation: portrait) and (max-width: 64rem) {
  .step { min-height: 68svh; }
  .step[data-step="1"] { min-height: 100svh; }
}
@media (max-width: 52rem), (orientation: portrait) and (max-width: 64rem) { .static .step, .static .step[data-step="1"] { min-height: 0; } }

/* ================= Round 7: three picture cards ================= */
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; }
.card img { aspect-ratio: 16 / 10; border-radius: 16px; }
.card h3 { margin-top: 1.5rem; font-size: clamp(1.35rem, 1.9vw, 1.7rem); }
.card .card-lead { margin-top: 0.6rem; font-size: 1.08rem; font-weight: 560; color: var(--paper-ink); }
.card .card-lead + p { margin-top: 0.6rem; color: var(--paper-ink-2); }
.card .card-go { margin-top: auto; padding-top: 0.9rem; }
/* Supplier rows leave room for a partner badge beside each name once the owner supplies them. */
.vendors dt { display: flex; align-items: center; gap: 0.75rem; }
.vendors dt img { height: 1.75rem; width: auto; }
@media (max-width: 60rem) { .cards { grid-template-columns: minmax(0, 1fr); row-gap: 2.75rem; } }

/* ================= Round 12: social links ================= */
.site-footer .socials { grid-column: 1 / -1; display: flex; gap: 0.5rem; margin-left: -0.6rem; }
.site-footer .socials a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 50%; color: var(--ink); transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out); }
.site-footer .socials a:hover { background: var(--ground-3); color: #fff; text-decoration: none; }
.site-footer .socials svg { width: 1.5rem; height: 1.5rem; }

/* ================= Round 13: chat assistant mock-up ================= */
.chat { position: fixed; right: 0.75rem; bottom: 3.25rem; z-index: 45; color-scheme: light; }
.poster-mode .chat { display: none; }
.chat-toggle {
  display: inline-flex; align-items: center; gap: 0.55rem; min-height: 3rem; padding: 0.6rem 1.15rem 0.6rem 0.95rem;
  border: 1.5px solid rgb(255 255 255 / 0.4); border-radius: 999px; background: var(--paper-ink); color: #fff; cursor: pointer;
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 600; box-shadow: 0 12px 28px -12px rgb(5 22 47 / 0.7);
  transition: background-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.chat-toggle:hover { background: var(--blue); }
.chat-toggle:active { transform: translateY(1px); }
.chat-toggle svg { width: 1.25rem; height: 1.25rem; }
.chat-toggle[aria-expanded="true"] { display: none; }
.chat :focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.chat-panel {
  display: flex; flex-direction: column; width: min(23rem, calc(100vw - 1.5rem)); height: min(34rem, calc(100svh - var(--header-h) - 5rem));
  border-radius: 16px; overflow: hidden; background: #fff; color: var(--paper-ink); box-shadow: 0 24px 60px -20px rgb(5 22 47 / 0.75);
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0.75rem 0.9rem 1.1rem; background: var(--paper-ink); color: #fff; }
.chat-title { font-family: var(--font-head); font-weight: 650; }
.chat-note { margin-top: 0.1rem; font-size: 0.8rem; color: #c9d7e8; }
.chat-close { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; }
.chat-close:hover { background: rgb(255 255 255 / 0.14); }
.chat-close svg { width: 1.25rem; height: 1.25rem; }
.chat-log { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; background: var(--tint); }
.chat-msg { max-width: 88%; padding: 0.65rem 0.85rem; border-radius: 14px; font-size: 0.95rem; line-height: 1.45; }
.chat-msg.from-bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.chat-msg.from-user { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg a { color: var(--blue); font-weight: 620; }
.chat-msg p + p { margin-top: 0.45rem; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chat-chips button { min-height: 2.25rem; padding: 0.35rem 0.8rem; border: 1.5px solid var(--paper-rule); border-radius: 999px; background: #fff; color: var(--paper-ink); font: inherit; font-size: 0.86rem; font-weight: 560; cursor: pointer; }
.chat-chips button:hover { border-color: var(--blue); color: var(--blue); }
.chat-form { display: flex; gap: 0.5rem; padding: 0.75rem 1rem 1rem; background: #fff; }
.chat-form input { flex: 1 1 auto; min-width: 0; min-height: 2.75rem; padding: 0.5rem 0.85rem; border: 1.5px solid var(--paper-ink); border-radius: 999px; font: inherit; color: var(--paper-ink); background: #fff; }
.chat-form button { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: var(--orange); color: var(--paper-ink); cursor: pointer; }
.chat-form button:hover { background: var(--orange-hi); }
.chat-form button svg { width: 1.2rem; height: 1.2rem; }
@media (prefers-reduced-motion: no-preference) {
  .chat-panel:not([hidden]) { animation: chat-in 0.28s var(--ease-out); }
  @keyframes chat-in { from { opacity: 0; transform: translateY(0.75rem); } }
}
@media (max-width: 52rem), (orientation: portrait) and (max-width: 64rem) {
  .chat { right: 0.75rem; bottom: 0.75rem; }
  .chat-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .chat-toggle { width: 3.25rem; height: 3.25rem; padding: 0; justify-content: center; }
  .chat-panel { position: fixed; inset: auto 0 0 0; width: auto; height: min(78svh, 36rem); border-radius: 16px 16px 0 0; }
}

/* ================= Round 14 ================= */

/* Slider: a deeper shade behind the words, firmer dots. */
.slide::after {
  background:
    linear-gradient(180deg, rgb(6 12 24 / 0.55) 0%, rgb(6 12 24 / 0) 24%),
    linear-gradient(90deg, rgb(6 12 24 / 0.88) 0%, rgb(6 12 24 / 0.74) 36%, rgb(6 12 24 / 0.38) 58%, rgb(6 12 24 / 0) 80%);
}
.slide-copy { text-shadow: 0 1px 16px rgb(6 12 24 / 0.6); }
.slide-copy .btn { text-shadow: none; }
.dot::before { width: 0.85rem; height: 0.85rem; background: rgb(255 255 255 / 0.9); box-shadow: 0 0 0 2px rgb(6 12 24 / 0.6); }
.dot.is-on::before { background: var(--orange); }
@media (max-width: 52rem), (orientation: portrait) and (max-width: 64rem) {
  .slide::after { background: linear-gradient(180deg, rgb(6 12 24 / 0.55) 0%, rgb(6 12 24 / 0) 20%), linear-gradient(0deg, rgb(6 12 24 / 0.94) 0%, rgb(6 12 24 / 0.78) 44%, rgb(6 12 24 / 0) 80%); }
}

/* Contact form */
.form-call { justify-self: start; margin-top: 1rem; }
.form-call[hidden], .contact-form [hidden] { display: none; }
.chat.is-away .chat-toggle { visibility: hidden; }
.step:not([data-step="1"]) .step-skip { display: none; }

/* Phone, 3D running: the scene is pinned in the top of the screen for the whole section and the words
   scroll beneath it, so there is never an empty stretch and the device list is part of the page. */
@media (max-width: 52rem), (orientation: portrait) and (max-width: 64rem) {
  :root:not(.static) .stage { z-index: 3; background: var(--ground); clip-path: inset(0 0 58svh 0); }
  :root:not(.static) .stage-scrim, :root:not(.static) .stage::after { display: none; }
  :root:not(.static) .stage::before { content: ""; position: absolute; z-index: 2; inset: calc(42svh - 1px) 0 auto 0; height: 1px; background: var(--rule); }
  :root:not(.static) .stage-steps { top: calc(42svh - 1.9rem); bottom: auto; left: var(--gutter); }

  :root:not(.static) .hero { display: block; min-height: 0; padding: 42svh var(--gutter) 2.5rem; }
  :root:not(.static) .hero .view { position: absolute; inset: calc(var(--header-h) + 1svh) 0 auto 0; height: calc(41svh - var(--header-h) - 2svh); min-height: 0; margin: 0; flex: none; }
  :root:not(.static) .hero-copy { margin: 0; padding: 1.5rem 0 0; background: none; }

  :root:not(.static) .step { display: block; min-height: 0; padding: 0 var(--gutter); }
  :root:not(.static) .step[data-step="1"] { min-height: 0; }
  :root:not(.static) .step .view { position: absolute; inset: calc(var(--header-h) + 1svh) 4% auto 4%; height: calc(41svh - var(--header-h) - 4.5svh); }
  :root:not(.static) .step-copy { width: auto; max-width: none; margin: 0; padding: 1.75rem 0 2.25rem; background: none; box-shadow: none; border-top: 1px solid var(--rule); }

  :root:not(.static) .inspect { display: block; height: auto; min-height: 60svh; padding: 0 var(--gutter) 3rem; scroll-margin-top: 42svh; }
  :root:not(.static) .inspect .view { position: absolute; inset: calc(var(--header-h) + 1svh) 14% auto 14%; height: calc(41svh - var(--header-h) - 3svh); }
  :root:not(.static) .inspect-copy { position: static; inset: auto; width: auto; overflow: visible; padding: 1.75rem 0 0; background: none; box-shadow: none; border-top: 1px solid var(--rule); }
  :root:not(.static) .step, :root:not(.static) .story { scroll-margin-top: 42svh; }
}

/* ================= Round 15 ================= */
.site-footer .socials { align-items: center; }
.socials-note { margin-left: 0.5rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 75rem) {
  /* The language list opens inside the screen, under the bar. */
  .langs { position: static; }
  .langs-menu { position: fixed; top: calc(var(--header-h) + 0.35rem); right: var(--gutter); left: auto; }
}
@media (max-width: 52rem), (orientation: portrait) and (max-width: 64rem) {
  /* The pinned scene is only as tall as the part that shows, so it lets go when its section ends. */
  /* It takes its own space at the top of the section (no negative margin), so it cannot hang past the end. */
  :root:not(.static) .stage { height: 42svh; margin-bottom: 0; clip-path: none; }
  :root:not(.static) .hero { padding-top: 0; }
  :root:not(.static) .stage::before { inset: auto 0 0 0; }
}
@media (max-width: 52rem), (orientation: portrait) and (max-width: 64rem) {
  /* The step counter gets its own backing, so the scene never shows through its words. */
  :root:not(.static) .stage-steps { left: 0.75rem; top: calc(42svh - 2.4rem); padding: 0.3rem 0.65rem; border-radius: 999px; background: rgb(5 22 47 / 0.82); }
}

/* ================= Round 16: the language menu is one of the menus ================= */
/* Same lettering and underline as the other menu names; its list drops flush from the bar in the same
   tinted panel, and the bar turns white while it is open, as it does for the others. */
.langs-toggle { font-size: 0.86rem; letter-spacing: 0.02em; box-shadow: inset 0 -3px 0 transparent; transition: color 0.25s, box-shadow 0.25s var(--ease-out); }
.langs-toggle:hover, .langs-toggle[aria-expanded="true"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--orange); }
.site-header.is-clear .langs-toggle:hover { color: #fff; }
.langs { position: static; }
.langs-menu {
  position: fixed; top: var(--bar-h); right: 0; left: auto; min-width: 0; width: min(19rem, 100vw);
  padding: 1rem var(--gutter) 1.25rem 1.5rem; gap: 0;
  background: var(--tint); border: 0; border-top: 1px solid var(--paper-rule); border-radius: 0 0 0 14px;
  box-shadow: 0 34px 50px -34px rgb(8 45 110 / 0.45);
}
.langs-menu > * { min-height: 0; padding: 0.7rem 0; border-radius: 0; font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--paper-ink-2); }
.langs-menu a { color: var(--paper-ink); }
.langs-menu a:hover { color: var(--blue); }
.langs-menu a[aria-current] { background: none; }
.langs-menu a[aria-current]::after { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--orange); }
.langs-menu small { font-family: var(--font); font-size: 0.68rem; }
@media (max-width: 84rem) and (min-width: 75.01rem) { .langs-toggle { font-size: 0.8rem; letter-spacing: 0.01em; } }
@media (max-width: 75rem) {
  .langs-menu { top: var(--bar-h); right: 0; width: 100vw; border-radius: 0; padding: 0.5rem var(--gutter) 1rem; }
  .langs-toggle, .site-header.is-clear .langs-toggle:hover { box-shadow: none; }
}
/* The tools span the full bar height without a transform, so the language name can carry the same underline
   as the other menus and its panel can hang from the bar itself. */
@media (min-width: 75.01rem) {
  .bar-tools { top: 0; bottom: 0; transform: none; }
  .langs { display: flex; height: 100%; }
  .langs-toggle { height: 100%; min-height: 0; border-radius: 0; padding-inline: 0.5rem; }
}
@media (max-width: 75rem) {
  .langs-toggle[aria-expanded="true"], .langs-toggle:hover { box-shadow: none; }
}

/* ---------- Header: "Under attack?" on the left, and a fit for longer menu labels ----------
   On desktop the urgent call sits at the left edge of the bar, mirroring the language and contact controls on the
   right. Translated menu labels run longer than English, so the page script measures the bar and steps it down:
   is-tight trims spacing and type, is-tighter also narrows the space around the mark, and no-urgent drops the
   call link (it stays in the footer, the Company menu and the phone menu) when even that leaves no room. */
.bar-urgent { display: none; }
@media (min-width: 75.01rem) {
  .bar-urgent {
    position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 1;
    display: inline-flex; align-items: center; gap: 0.5em; min-height: 2.6rem; white-space: nowrap;
    font-family: var(--font-head); font-size: 0.84rem; font-weight: 700; letter-spacing: 0.01em; color: var(--paper-ink); text-decoration: none;
  }
  .bar-urgent::before { content: ""; flex: none; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--orange); }
  .bar-urgent:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 0.3em; }
  .site-header.is-clear .bar-urgent { color: #fff; text-shadow: 0 1px 12px rgb(0 0 0 / 0.35); }
  .bar.no-urgent .bar-urgent { display: none; }
  .bar.is-tight .nav-list { gap: 0.7rem; }
  .bar.is-tight .nav-top { font-size: 0.78rem; letter-spacing: 0; }
  .bar.is-tight .bar-cta { padding-inline: 0.8rem; font-size: 0.8rem; }
  .bar.is-tight .bar-urgent { font-size: 0.78rem; }
  .bar.is-tighter .site-nav { grid-template-columns: 1fr 7.75rem 1fr; }
  .bar.is-tighter .nav-list { gap: 0.55rem; }
  .bar.is-tighter .nav-top { font-size: 0.74rem; }
}
@media (max-width: 84rem) and (min-width: 75.01rem) { .bar-urgent { left: 1.5rem; } }
@media (max-width: 78rem) and (min-width: 75.01rem) { .bar-urgent { left: 1.25rem; } }

/* Urgent topic: the call comes straight after the choice, and the written form folds away behind a link. */
.form-fields { display: grid; gap: 0.4rem; }
.form-fields[hidden] { display: none; }
.form-call { margin-top: 0.75rem; }
.form-write { justify-self: start; margin-top: 0.35rem; padding-block: 0.6rem; font-weight: 620; }

/* ---------- P3 polish (3 Dec critique) ---------- */
/* Phones: the chat button steps out of the way while the visitor reads down the page. */
.chat-toggle { transition: background-color 0.25s var(--ease-out), transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out); }
.chat.is-tucked .chat-toggle { transform: translateY(5rem); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .chat.is-tucked .chat-toggle { transform: none; visibility: hidden; } }
/* Desktop: the draft note sits in the opposite corner from the chat button. */
@media (min-width: 52.01rem) and (orientation: landscape), (min-width: 64.01rem) {
  .draft-flag { right: auto; left: 0.75rem; }
}
/* Footer: the phone number and email read as links. */
.site-footer address a { text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.35); text-underline-offset: 0.25em; }
.site-footer address a:hover { text-decoration-color: currentColor; }

/* ---------- Critique 10 (3 Dec) ---------- */
/* The menu of the section you are in keeps its orange underline. */
.nav-top.is-current { box-shadow: inset 0 -3px 0 var(--orange); }
/* Phone menu: the emergency line comes first. */
@media (max-width: 75rem) {
  .nav-call { display: block; margin: 0.25rem 0 0.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--paper-rule); }
  .nav-call strong { color: var(--paper-ink); }
}
/* Urgent: the call is the one big action, with first steps under it. */
.form-call { width: 100%; justify-content: center; min-height: 3.4rem; font-size: 1.05rem; }
.form-urgent { margin-top: 0.75rem; font-size: 0.95rem; }
.form-urgent[hidden] { display: none; }
.form-urgent ol { margin-top: 0.5rem; padding-left: 1.25rem; list-style: decimal; display: grid; gap: 0.35rem; }
/* Errors read as messages, not as extra fields. */
.field-err { display: flex; gap: 0.5em; align-items: baseline; border: 0; padding: 0.4rem 0.65rem; background: rgb(255 255 255 / 0.92); }
.field-err::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; border-radius: 50%; background: #8a1616; color: #fff; font-size: 0.8em; font-weight: 800; }
.field-err[hidden] { display: none; }
/* "See how we work with them" and similar: the arrow stays with its last word. */
.move-see a, .sector-go a, .card-go a { display: inline; }
.move-see a::after, .sector-go a::after, .card-go a::after { display: inline-block; margin-left: 0.45em; vertical-align: 0.08em; }
/* The slider fills the first screen on desktop. */
@media (min-width: 52.01rem) and (orientation: landscape) { .slider { height: min(100svh, 60rem); } }
/* Desktop: "Ask Ydnar" becomes its icon once the visitor is reading. */
.chat.is-compact .chat-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.chat.is-compact .chat-toggle { width: 3.25rem; height: 3.25rem; padding: 0; justify-content: center; }

/* ---------- Critique 11 (3 Dec) ---------- */
/* Phones and tablets: the 24/7 line as a round orange call button in the header. */
.bar-call { display: none; }
@media (max-width: 75rem) {
  .bar-call { display: inline-grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--orange); color: var(--paper-ink); }
  .bar-call svg { width: 1.15rem; height: 1.15rem; }
  /* Room between the call button and the Contact pill, so a thumb hits the one it means. */
  .bar-call { margin-right: 0.45rem; }
  .bar-call:hover { background: var(--orange-hi); }
  /* The phone menu shows each section's overview link (the panel's own button), as a plain link. */
  .mega-feature { display: block; padding: 0 0 0.25rem 0.75rem; }
  .mega-feature .mega-title, .mega-feature .mega-desc { display: none; }
  .mega-feature .btn { min-height: 0; padding: 0.6rem 0; border: 0; background: none; color: var(--blue); font-size: 0.97rem; text-decoration: underline; text-underline-offset: 0.2em; }
}
/* The 24/7 line above the form, on the Contact page on phones only (the home band already shows it). */
.form-top-urgent { display: none; }
@media (max-width: 52rem) {
  .pg-contact .form-top-urgent { display: block; margin-bottom: 0.75rem; padding: 0.8rem 1rem; border-radius: 12px; background: var(--tint); }
  .pg-contact .form-top-urgent a { font-weight: 650; color: var(--blue); white-space: nowrap; }
}
/* On the orange band, the "write instead" link carries the band's own ink. */
.signal .form-write { color: var(--paper-ink); text-decoration: underline; text-underline-offset: 0.2em; }

/* Narrow phones: the header button says just "Contact", so the mark keeps its size beside the call button. */
.cta-short { display: none; }
@media (max-width: 75rem) { .bar .wordmark { flex: none; } }
@media (max-width: 27.5rem) {
  .bar-cta .cta-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .bar-cta .cta-short { display: inline; }
}

/* ---------- Critique 12 (3 Dec) ---------- */
/* The draft note sits under the header, clear of the slider's dots and pause button. */
@media (min-width: 52.01rem) and (orientation: landscape), (min-width: 64.01rem) {
  .draft-flag { top: calc(var(--header-h) + 0.5rem); bottom: auto; }
}
/* Under attack, the home band's "no obligation" line steps aside for the call. */
.is-urgent .contact-lede { display: none; }

/* ---------- Critique 16 (3 Dec) ---------- */
/* The draft note sits in the page flow at the end, so it never covers a heading or a menu. */
.draft-flag { position: static; display: block; top: auto; left: auto; right: auto; text-align: center; border-radius: 0; border-width: 1px 0 0; padding: 0.6rem; font-size: 0.7rem; opacity: 1; }

/* ---------- Critique 17 (3 Dec) ---------- */
/* Social icons wait for their real addresses: while any still points nowhere, the row stays hidden. */
.site-footer .socials:has(a[href="#"]) { display: none; }
/* Up to 1280px wide the chat button is its icon, so it never sits on the text beside it. */
@media (max-width: 80rem) {
  .chat-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .chat-toggle { width: 3.25rem; height: 3.25rem; padding: 0; justify-content: center; }
}

/* Menu panels: a line under each link says what is behind it (phones keep the plain list). */
.mega-links a { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
.mega-links a em { font-family: var(--font); font-style: normal; font-size: 0.86rem; font-weight: 400; line-height: 1.35; color: var(--paper-ink-2); }
.mega-links a:hover em { color: var(--paper-ink-2); }
@media (max-width: 75rem) { .mega-links a em { display: none; } }

/* ---------- Critique 20 (4 Dec) ---------- */
.chat.is-over-intro .chat-toggle { visibility: hidden; }
/* One rule between the Ministry rows and the link under them, not two. */
.case-moves + .case-also { border-top: 0; padding-top: 1.5rem; }
/* The 24/7 number never breaks across two lines in the phone menu: "Under attack?" sits above it. */
.nav-call a { white-space: nowrap; }
.nav-call a strong { display: block; }
/* Static version on wide screens: the opened device sits beside its layers, as in the live inspector. */
@media (min-width: 64.01rem) {
  .static .inspect .view { display: none; }
  .static .inspect-copy { max-width: none; }
  .static .inspect-copy > h2, .static .inspect-copy > .inspect-lede, .static .inspect-copy > .device-tabs { max-width: 44rem; }
  .static .device-panel:not([hidden]) { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--col-gap); align-items: start; }
  .static .device-panel > * { grid-column: 1; }
  .static .device-panel > .device-poster { grid-column: 2; grid-row: 1 / span 3; width: 100%; max-width: 32rem; margin: -6rem 0 0; justify-self: center; }
}
