/* CAPITA — Par Excellence
   Single-screen site: a looping film sits behind every page, pages swap on top of it. */

:root {
  --navy: #002060;          /* brand blue, sampled from the logo */
  --navy-900: #000d26;
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, .90);
  --ink-3: rgba(255, 255, 255, .68);
  --line: rgba(255, 255, 255, .32);
  --line-2: rgba(255, 255, 255, .18);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 20px rgba(0, 0, 0, .22);
  --accent: #a8d5ff;

  --font: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-body: clamp(16px, .55vw + 12.5px, 21px);   /* 21px on desktop, as briefed */
  --fs-small: 14px;                                /* 14px for menu, footer, labels */
  --fs-display: clamp(23px, .7vw + 15px, 30px);      /* a touch above body, as in the reference */
  --fs-h2: clamp(23px, 1vw + 15px, 34px);
  --menu-w: clamp(170px, 15vw, 230px);              /* column kept clear for the docked menu */

  --pad-x: clamp(20px, 4vw, 64px);
  --head-h: clamp(78px, 10vh, 112px);
  --foot-h: clamp(60px, 8vh, 88px);
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-in: cubic-bezier(.55, 0, .75, .25);
  color-scheme: dark;
}

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

html, body { height: 100%; margin: 0; }

body {
  background: var(--navy-900);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.js body { overflow: hidden; }

a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, p, ol, ul, dl, dd, figure, address { margin: 0; }
ol, ul { padding: 0; list-style: none; }
address { font-style: normal; }
em { font-style: normal; color: var(--ink); }
::selection { background: rgba(168, 213, 255, .35); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 6px; }
:focus:not(:focus-visible),
[tabindex="-1"]:focus { outline: none; }

.skip {
  position: fixed; left: 16px; top: 16px; z-index: 200;
  padding: 10px 16px; background: #fff; color: var(--navy);
  font-size: var(--fs-small); text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Background film ---------- */
.bg {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background: var(--navy-900) url("../img/office-poster.jpg") center / cover no-repeat;
}
.bg-video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.8s ease;
}
.video-on .bg-video { opacity: 1; }
.bg-shade, .bg-deep, .bg-grain { position: absolute; inset: 0; pointer-events: none; }
.bg-shade {
  background:
    linear-gradient(0deg, rgba(0, 10, 30, .62) 0%, rgba(0, 10, 30, .3) 30%, rgba(0, 10, 30, 0) 62%),
    linear-gradient(90deg, rgba(0, 10, 30, .24) 0%, rgba(0, 10, 30, 0) 55%),
    linear-gradient(270deg, rgba(0, 10, 30, .3) 0%, rgba(0, 10, 30, 0) 32%),
    linear-gradient(180deg, rgba(0, 10, 30, .32) 0%, rgba(0, 10, 30, 0) 22%);
}
.bg-deep {
  background: rgba(0, 12, 34, .6);
  opacity: 0; transition: opacity 1s ease;
}
body[data-view="more"] .bg-deep { opacity: 1; }
.bg-grain {
  opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Logo (letters are separate images so they can animate) ---------- */
.logo { display: block; width: clamp(92px, 7vw, 124px); text-decoration: none; }
.logo-art { position: relative; display: block; aspect-ratio: 1089 / 361; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
.logo-word { position: absolute; left: 0; top: 0; width: 100%; height: 66.48%; }
.lt {
  position: absolute; top: 0; height: 100%;
  left: var(--l); width: var(--w); overflow: hidden;
}
.lt img {
  width: 100%; height: 100%;
  transform: translateY(108%);
  transition: transform 1.15s var(--ease);
  transition-delay: calc(var(--i) * 75ms + var(--d0, 0ms));
}
.logo-tag {
  position: absolute; left: 42.424%; top: 78.947%; width: 56.382%; height: 21.05%;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.3s var(--ease) calc(var(--d0, 0ms) + 520ms);
}
.logo-tag img { width: 100%; height: 100%; }
.is-in .lt img { transform: translateY(0); }
.is-in .logo-tag { clip-path: inset(0 0 0 0); }
.no-js .lt img { transform: none; }
.no-js .logo-tag { clip-path: none; }

/* letters roll up and back in on hover, and on every page change */
.logo:hover .lt img,
.logo:focus-visible .lt img,
.logo.roll .lt img { animation: roll .9s var(--ease) calc(var(--i) * 55ms) both; }
@keyframes roll {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-108%); }
  40.1%{ transform: translateY(108%); }
  100% { transform: translateY(0); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  height: var(--head-h);
  padding: env(safe-area-inset-top) var(--pad-x) 0;
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.menu-toggle {
  display: none;                 /* phones only; on wide screens the menu is always on screen */
  position: relative; width: 48px; height: 48px; margin-right: -12px;
  border: 0; padding: 0; background: none; color: var(--ink); cursor: pointer;
}
.plus { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.plus::before, .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 26px; height: 1.5px; margin: -.75px 0 0 -13px;
  background: currentColor;
}
.plus::after { transform: rotate(90deg); }
.menu-toggle:hover .plus { transform: rotate(90deg); }
.menu-open .plus,
.menu-open .menu-toggle:hover .plus { transform: rotate(225deg); }

/* ---------- Menu: a quiet list docked on the right, as in the reference ---------- */
.menu-scrim {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(0, 12, 34, .94);
  opacity: 0; pointer-events: none;
  transition: opacity .6s ease;
}
.menu {
  position: fixed; z-index: 25;
  top: clamp(132px, 20vh, 210px); right: var(--pad-x);
  text-align: right;
  font-size: var(--fs-small); letter-spacing: .02em;
}
.menu a {
  position: relative; display: inline-block; padding: 5px 0;
  font-weight: 300; color: var(--ink-2); text-decoration: none;
  transition: color .3s ease;
}
.menu .t { position: relative; }
.menu .t::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease);
}
.menu a:hover, .menu a[aria-current="page"] { color: var(--ink); }
.menu a:hover .t::after, .menu a[aria-current="page"] .t::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Stage (pages) ---------- */
.stage {
  position: fixed; inset: 0; z-index: 10;
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain;
  padding: calc(var(--head-h) + 28px) var(--pad-x) calc(var(--foot-h) + 28px);
  display: flex; flex-direction: column;
  --mask-b: var(--foot-h);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 calc(var(--head-h) + 6px), #000 calc(100% - var(--mask-b) - 6px), transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 calc(var(--head-h) + 6px), #000 calc(100% - var(--mask-b) - 6px), transparent 100%);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent;
  transition: opacity .6s ease, filter .6s ease;
  outline: none;
}
.stage::-webkit-scrollbar { width: 6px; }
.stage::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .25); border-radius: 6px; }
.menu-open .stage { opacity: .28; filter: blur(3px); }
.stage, .menu, .social, .site-footer { text-shadow: var(--shadow); }

.js .page, .js .view { display: none; }
.js .page.is-active { display: flex; flex-direction: column; flex: 1 0 auto; }
.js .view.is-active { display: block; margin-top: auto; }
.js .view[data-view="more"].is-active { margin-bottom: auto; padding-top: 8px; padding-right: calc(var(--menu-w) + 12px); }

.no-js .stage { position: relative; display: block; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.no-js .view { padding: 48px 0; border-top: 1px solid var(--line-2); }

/* reveal: every .r and every headline line animates in, one after another */
.js .r {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .is-in .r { opacity: 1; transform: none; }
.js .is-out .r {
  opacity: 0; transform: translateY(-14px);
  transition: opacity .32s var(--ease-in), transform .38s var(--ease-in);
  transition-delay: 0ms;
}

/* ---------- Intro view typography ---------- */
.intro { max-width: min(700px, calc(100% - var(--menu-w) - 24px)); }
.kicker, .label, .back {
  display: flex; align-items: center; gap: 14px;
  font-size: 12.5px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-3);
}

.display {
  font-size: var(--fs-display); font-weight: 300;
  line-height: 1.3; letter-spacing: 0;
  margin: .3em 0 .6em;
}
.display .ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.display .ln > span { display: block; text-wrap: balance; }
.h2, .lede p { text-wrap: pretty; }
.js .display .ln > span {
  transform: translateY(112%);
  transition: transform 1.25s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .is-in .display .ln > span { transform: none; }
.js .is-out .display .ln > span { transform: translateY(-112%); transition: transform .45s var(--ease-in); transition-delay: 0ms; }

#h-home { margin-top: 0; }
.lede { max-width: 600px; color: var(--ink-2); }
.lede p + p { margin-top: .85em; }

.cta {
  display: inline-flex; align-items: center; gap: 18px;
  margin-top: 24px; padding: 6px 0;
  font-size: clamp(16px, .3vw + 13px, 18px); font-weight: 400; letter-spacing: .02em;
  text-decoration: none; color: var(--ink);
}
.cta-line {
  position: relative; width: 56px; height: 1px; background: currentColor;
  transition: width .7s var(--ease);
}
.cta-line::after {
  content: ""; position: absolute; right: 0; top: -4px;
  width: 9px; height: 9px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg); transform-origin: center;
}
.cta:hover .cta-line, .cta:focus-visible .cta-line { width: 104px; }
.cta > span { position: relative; }
.cta > span::after {
  content: ""; position: absolute; left: -14px; top: 50%;
  width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--accent);
  animation: beacon 2.6s ease-in-out infinite;
}
@keyframes beacon { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }

.contact {
  display: flex; flex-wrap: wrap; gap: 18px 56px;
  margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 16px; line-height: 1.7; color: var(--ink-2);
}
.contact a { text-decoration: none; transition: color .3s; }
.contact a:hover { color: var(--accent); }
.coords { letter-spacing: .04em; }

/* ---------- Detail views ---------- */
.back { text-decoration: none; margin-bottom: clamp(24px, 4vh, 44px); width: max-content; transition: color .3s; }
.back::before {
  content: ""; width: 9px; height: 9px;
  border-left: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg); margin-right: 2px;
}
.back:hover { color: var(--ink); }

.kicker { color: var(--accent); margin-bottom: 18px; }
.h2 { font-size: var(--fs-h2); font-weight: 300; line-height: 1.16; letter-spacing: -.01em; }
.h2.wide { max-width: 22ch; margin-bottom: clamp(28px, 5vh, 52px); }
.body { margin-top: 1.1em; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-3); }
.label { margin-bottom: 18px; }

.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 112px); align-items: start;
}
.split-a { position: sticky; top: 0; }

/* The CAPITA 7 */
.seven li {
  display: grid; grid-template-columns: 58px 1fr; gap: 8px;
  padding: 18px 0; border-top: 1px solid var(--line-2);
}
.seven li:last-child { border-bottom: 1px solid var(--line-2); }
.seven .no, .steps .no { font-size: 13px; letter-spacing: .18em; color: var(--accent); padding-top: 4px; }
.seven h3, .steps h3, .trio h3, .pillars h3 { font-size: clamp(17px, .35vw + 14px, 20px); font-weight: 400; line-height: 1.35; }
.seven p, .steps p, .trio p, .pillars p, .stats p, .sectors dd { font-size: clamp(15px, .2vw + 13px, 16.5px); line-height: 1.6; color: var(--ink-2); }
.seven p { margin-top: 4px; }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px) clamp(24px, 3vw, 48px);
}
.stats li { padding-top: 18px; border-top: 1px solid var(--line); }
.stat-num {
  display: block; font-size: clamp(44px, 3.6vw + 14px, 76px);
  font-weight: 300; line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat-unit { display: block; margin-top: 10px; font-size: 12.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); }
.stats p { margin-top: 12px; max-width: 26em; }

/* Governance sectors */
.sectors > div {
  display: grid; grid-template-columns: minmax(180px, 4fr) 8fr; gap: 8px 32px;
  padding: 18px 0; border-top: 1px solid var(--line-2);
}
.sectors > div:last-child { border-bottom: 1px solid var(--line-2); }
.sectors dt { font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); padding-top: 5px; }
.sectors dd { font-size: clamp(17px, .4vw + 13px, 20px); color: var(--ink); }
.trio {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px); margin-top: clamp(36px, 6vh, 64px);
}
.trio p, .pillars p { margin-top: 8px; }

/* Project steps */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 64px); max-width: 1100px; }
.two .body { margin-top: 0; }
.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 40px); margin-top: clamp(36px, 6vh, 64px);
}
.steps li { position: relative; padding-top: 22px; }
.steps li::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line);
}
.steps .no { display: block; margin-bottom: 10px; }
.steps p { margin-top: 8px; }
.aside { margin-top: clamp(32px, 5vh, 56px); font-size: 16px; color: var(--ink-3); }
.aside a { color: var(--ink); margin-left: 8px; text-underline-offset: 5px; text-decoration-color: var(--line); transition: text-decoration-color .3s; }
.aside a:hover { text-decoration-color: var(--ink); }

/* Operational excellence */
.flow {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: clamp(36px, 6vh, 60px); counter-reset: f;
}
.flow li {
  position: relative; padding-top: 22px;
  font-size: clamp(15px, .5vw + 11px, 19px); color: var(--ink);
}
.flow li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 9px; height: 9px; margin-top: -4px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(168, 213, 255, .14);
}
.flow li::after {
  content: ""; position: absolute; left: 14px; right: 6px; top: 0; height: 1px; background: var(--line);
}
.flow li:last-child::after { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; letter-spacing: .04em; color: var(--ink-2);
  transition: background-color .3s, color .3s;
}
.chips li:hover { background: rgba(255, 255, 255, .08); color: var(--ink); }
.pillars { display: grid; gap: 22px; }
.pillars > div { padding-top: 18px; border-top: 1px solid var(--line-2); }

/* Advisory: single-screen dashboard illustration */
.screen {
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding: 14px 16px 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
}
.screen-bar { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.screen-title { flex: 1; }
.live { display: flex; align-items: center; gap: 7px; color: var(--accent); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: beacon 1.8s ease-in-out infinite; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  min-height: 92px; padding: 12px; border-radius: 10px; background: rgba(255, 255, 255, .05);
  font-size: 12px; letter-spacing: .06em; color: var(--ink-3);
}
.tile svg { width: 100%; height: 36px; }
.tile .ring { width: 40px; height: 40px; align-self: flex-end; }
.screen path.draw {
  fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.2s var(--ease) .5s;
}
.is-in .screen path.draw { stroke-dashoffset: 0; }
.screen path.plan { stroke: var(--accent); stroke-opacity: .8; stroke-dasharray: 1; }
.screen path.grid { stroke: rgba(255, 255, 255, .08); stroke-width: 1; vector-effect: non-scaling-stroke; }
.screen path.area { opacity: 0; transition: opacity 1.4s ease 1.6s; }
.is-in .screen path.area { opacity: 1; }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 3; }
.ring-fg {
  fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  transform: rotate(-90deg); transform-origin: center;
  transition: stroke-dashoffset 2s var(--ease) .8s;
}
.is-in .ring-fg { stroke-dashoffset: 22; }
.chart { position: relative; margin-top: 10px; padding: 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.chart svg { width: 100%; height: clamp(120px, 16vh, 170px); }
.legend { display: flex; gap: 18px; font-size: 12px; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 6px; }
.legend span { display: flex; align-items: center; gap: 7px; }
.legend i { width: 16px; height: 0; border-top: 1.5px solid #fff; }
.legend .k-plan { border-top: 1.5px dashed var(--accent); }
.plot { position: relative; }
.pulse {
  position: absolute; right: 0; top: 17.65%;
  width: 8px; height: 8px; margin: -4px -4px 0 0; border-radius: 50%; background: #fff;
  opacity: 0; transition: opacity .6s ease 2.4s;
}
.is-in .pulse { opacity: 1; animation: ping 2s ease-out 2.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); } 100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); } }
.screen figcaption { margin-top: 12px; font-size: 12px; letter-spacing: .06em; color: var(--ink-3); }

/* Hello: access form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.full { grid-column: 1 / -1; }
.field label { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; padding: 8px 0 10px;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--ink);
  font: inherit; font-size: 18px; font-weight: 300;
  transition: border-color .3s;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='white' stroke-opacity='.6'/%3E%3C/svg%3E") right 4px center no-repeat; }
.field select option { color: #000; }
.field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 18px; height: 18px; margin: 3px 0 0; border: 1px solid var(--ink-3); border-radius: 3px;
  display: grid; place-items: center; cursor: pointer;
}
.check input::after { content: ""; width: 9px; height: 5px; border-left: 1.5px solid var(--navy-900); border-bottom: 1.5px solid var(--navy-900); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: #fff; border-color: #fff; }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 6px; }
.btn {
  padding: 14px 30px; border: 1px solid #fff; border-radius: 999px;
  background: transparent; color: #fff; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 400; letter-spacing: .08em;
  transition: background-color .35s, color .35s;
}
.btn:hover, .btn:focus-visible { background: #fff; color: var(--navy); }
.form-status { font-size: 15px; color: var(--accent); }

/* "Next" link appended to each detail view by script */
.next {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: clamp(40px, 7vh, 72px); padding-top: 22px;
  border-top: 1px solid var(--line-2); width: 100%;
  font-size: 15px; color: var(--ink-3); text-decoration: none;
}
.next b { font-weight: 400; color: var(--ink); font-size: clamp(18px, .5vw + 14px, 22px); transition: color .3s; }
.next:hover b { color: var(--accent); }

/* ---------- Social + footer ---------- */
.social {
  position: fixed; z-index: 30;
  right: calc(var(--pad-x) - 6px); bottom: calc(var(--foot-h) + 6px);
  display: flex; flex-direction: column; gap: 6px;
  transition: opacity .6s ease, visibility 0s;
}
.social a { display: grid; place-items: center; width: 32px; height: 32px; color: var(--ink-2); transition: color .3s, transform .4s var(--ease); }
.social a:hover { color: var(--ink); transform: translateX(-3px); }
.social svg { width: 17px; height: 17px; }
.menu-open .social { opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s linear .4s; }

.site-footer {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  height: var(--foot-h);
  padding: 0 var(--pad-x) env(safe-area-inset-bottom);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: var(--fs-small); letter-spacing: .04em; color: var(--ink-2);
  pointer-events: none;
}
.site-footer > * { pointer-events: auto; }
.foot-right { display: flex; align-items: center; gap: 16px; }
.video-toggle {
  display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: none; color: var(--ink-2); cursor: pointer;
  transition: border-color .3s, color .3s;
}
.video-toggle:hover { border-color: var(--ink-2); color: var(--ink); }
.video-toggle svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.video-toggle .i-play { display: none; fill: currentColor; stroke: none; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }

/* header/footer wait for the opening to finish */
.js .site-header, .js .site-footer, .js .menu { opacity: 0; transition: opacity 1.2s ease .2s; }
.js .ready .site-header, .js .ready .site-footer, .js .ready .menu { opacity: 1; }
.js body:not(.ready) .social { opacity: 0; visibility: hidden; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; }
  .split-a { position: static; }
  .trio, .steps { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  :root { --foot-h: 58px; }
  .stage { padding-bottom: calc(var(--foot-h) + 64px); --mask-b: calc(var(--foot-h) + 40px); }
  body[data-page="home"] .stage { padding-bottom: calc(var(--foot-h) + 24px); --mask-b: var(--foot-h); }
  .bg-shade {
    background:
      linear-gradient(0deg, rgba(0, 10, 30, .74) 0%, rgba(0, 10, 30, .4) 45%, rgba(0, 10, 30, .08) 100%),
      linear-gradient(180deg, rgba(0, 10, 30, .36) 0%, rgba(0, 10, 30, 0) 24%);
  }
  .js .view[data-view="more"].is-active { padding-right: 0; }
  .intro { max-width: none; }

  /* the menu folds behind the + button */
  .menu-toggle { display: block; }
  .menu-open .menu-scrim { opacity: 1; pointer-events: auto; }
  .menu {
    top: calc(var(--head-h) + 8px); left: var(--pad-x);
    font-size: 26px; letter-spacing: .01em;
    visibility: hidden; transition: visibility 0s linear .7s;
  }
  .menu-open .menu { visibility: visible; transition: none; opacity: 1; }
  .menu li { overflow: hidden; }
  .menu a {
    padding: 8px 0;
    transform: translateY(105%); opacity: 0;
    transition: transform .5s var(--ease-in), opacity .4s ease, color .3s ease;
  }
  .menu-open .menu a {
    transform: none; opacity: 1;
    transition: transform 1s var(--ease), opacity .8s ease, color .3s ease;
    transition-delay: calc(var(--k) * 60ms + 120ms);
  }

  .social {
    flex-direction: row; gap: 4px;
    right: calc(var(--pad-x) - 6px); bottom: calc(var(--foot-h) + 2px);
  }
  .site-footer { font-size: 12.5px; letter-spacing: .02em; }
  .foot-right { gap: 10px; }

  .contact { gap: 14px 32px; font-size: 15px; }
  .two, .trio, .steps, .form { grid-template-columns: 1fr; }
  .sectors > div { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow li { padding: 0 0 18px 26px; }
  .flow li::before { top: 9px; }
  .flow li::after { left: 4px; right: auto; top: 18px; bottom: 0; width: 1px; height: auto; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile { min-height: 80px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: clamp(36px, 10vw, 48px); }
}
@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr; }
  .site-footer .foot-tag { max-width: 11em; line-height: 1.3; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js .r, .js .display .ln > span, .lt img, .menu a { transform: none !important; }
  .js .r { transition: opacity .3s ease; }
}
