/* ==========================================================================
   Reform Solutions — main stylesheet
   Palette comes straight from the logo: paper cream, navy ink, burnt orange.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #fdf8ec;
  --paper-2: #f6efdc;
  --paper-3: #ece2c9;
  --ink: #2d445a;
  --ink-soft: #52667a;
  --ink-mute: #7f8d9b;
  --night: #1b2b3b;
  --night-2: #23374b;
  --night-3: #2f4760;
  --orange: #d2780c;
  --orange-2: #e8963a;
  --line: rgba(45, 68, 90, 0.16);
  --line-strong: rgba(45, 68, 90, 0.32);
  --night-line: rgba(253, 248, 236, 0.14);

  /* headings: Archivo semi-expanded (sturdy and wide, like the SOLUTIONS in the logo) */
  --display: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1480px;
  --nav-h: 76px;
  --unit: 85vh;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* the fixed WhatsApp button (bottom right): its offset from the edges and width */
  --wa-x: calc(clamp(16px, 2vw, 28px) + env(safe-area-inset-right, 0px));
  --wa-y: calc(clamp(14px, 2vw, 24px) + env(safe-area-inset-bottom, 0px));
  --wa-w: 52px;
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}
@supports (height: 1svh) {
  :root { --unit: 85svh; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--paper);
  scroll-behavior: auto;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Paper grain — keeps the flat cream from looking synthetic */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .18 0 0 0 0 .22 0 0 0 0 .27 0 0 0 1.1 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: italic; }
::selection { background: var(--orange); color: var(--paper); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 14px;
  background: var(--ink); color: var(--paper); border-radius: 4px; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.mono {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--orange);
  flex: none;
}
.eyebrow--light { color: rgba(253, 248, 236, 0.66); }

.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.3vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Every display heading uses semi-expanded Archivo.
   Accents (<em>) switch to a light weight rather than italic, so they stay easy to read. */
.hero__title, .section-title, .stage__title, .handoff__title, .eq-intro__title, .eq-card__title,
.eq-end__text, .client__name, .principle h3, .impact__title, .route__step h3, .footer__sign,
.menu a, .grades dt, .equipment__word, .lost h1 {
  font-stretch: 112%;
}
.hero__title em, .section-title em, .stage__title em, .handoff__title em, .eq-intro__title em,
.impact__title em, .footer__sign em, .lost h1 em {
  font-style: normal;
  font-weight: 300;
  letter-spacing: -0.025em;
}

/* Line-mask reveal helpers (SplitText) */
.split-line { overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 22px 0 24px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 620;
  font-stretch: 115%;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease-out), border-color 0.35s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--orange);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn__icon { width: 18px; height: 18px; transition: transform 0.4s var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(4px); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--paper); }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn--light:hover { color: var(--paper); }
.btn--sm { height: 40px; padding: 0 16px 0 18px; font-size: 0.72rem; gap: 8px; }
.btn--sm .btn__icon { width: 15px; height: 15px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--paper);
  animation: preloader-failsafe 0.6s ease 7s forwards;
}
.js-ready .preloader { animation: none; }
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; } }
.no-js .preloader { display: none; }
.preloader__inner { display: grid; gap: 28px; justify-items: center; }
.preloader__mark { width: clamp(140px, 18vw, 220px); height: auto; overflow: visible; }
.preloader__meta {
  display: flex;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 0.7rem;
}
.preloader__pct { color: var(--ink); min-width: 2.5ch; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding-inline: var(--gutter);
  color: var(--ink);
  transition: color 0.45s var(--ease-out), transform 0.6s var(--ease-out), background-color 0.45s, box-shadow 0.45s;
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-solid { background: rgba(253, 248, 236, 0.9); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.nav[data-theme="dark"] { color: var(--paper); }
.nav.is-solid[data-theme="dark"] { background: rgba(27, 43, 59, 0.88); box-shadow: 0 1px 0 var(--night-line); }
.nav__logo { display: block; flex: none; }
.nav__word { height: 38px; width: auto; aspect-ratio: 1320 / 505; }
.nav__links { display: flex; gap: clamp(18px, 2.2vw, 34px); font-size: 0.9rem; font-weight: 500; }
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { margin-left: auto; }
.nav[data-theme="dark"] .nav__cta { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.nav[data-theme="dark"] .nav__cta:hover { color: var(--paper); }
.nav__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  height: 40px;
  padding: 0 4px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav__toggle-lines { position: relative; width: 22px; height: 8px; }
.nav__toggle-lines::before, .nav__toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.nav__toggle-lines::before { top: 0; }
.nav__toggle-lines::after { top: 6.5px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines::before { top: 3.25px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines::after { top: 3.25px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--paper);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.menu a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 7.4vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.menu a .mono { color: var(--orange); font-size: 0.7rem; }

/* ---------- 3D bench ---------- */
/* Both sized to the large viewport (address bar hidden): a phone's address bar sliding
   in and out then doesn't resize the 3D canvas mid-scroll. */
.bench {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  pointer-events: none;
}
/* faint drafting grid — reads as a workbench mat behind the laptop */
.bench-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(45, 68, 90, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(45, 68, 90, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 62% 52%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 70% at 62% 52%, #000 30%, transparent 78%);
}
.bench.is-off, .bench-grid.is-off { visibility: hidden; }

.callouts { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.callout {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  will-change: transform, opacity;
}
.callout__dot {
  position: absolute;
  left: -5px;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(210, 120, 12, 0.18);
}
.callout__line {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--len, 64px);
  height: 1px;
  background: var(--ink);
  transform-origin: left center;
  transform: rotate(var(--ang, -18deg));
}
.callout__box {
  position: absolute;
  left: var(--bx, 60px);
  top: var(--by, -40px);
  transform: translate(var(--shift, 0px), -50%);
  display: grid;
  gap: 2px;
  min-width: 150px;
  padding: 8px 11px 9px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-soft);
  box-shadow: 0 10px 24px -18px rgba(27, 43, 59, 0.5);
}
.callout__box b { color: var(--ink); font-weight: 500; }
.callout__status { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-style: normal; }
.callout__status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.callout[data-status="pass"] .callout__status { color: var(--ink); }
.callout[data-status="pass"] .callout__status::before {
  width: 10px; height: 6px; border-radius: 0; background: none;
  border-left: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg) translate(1px, -1px);
}
.callout--left .callout__box { left: auto; right: var(--bx, 60px); }

/* ---------- Hero ---------- */
.story { position: relative; }
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: var(--nav-h);
}
/* copy sits centred between the nav and the foot line, so no dead band above it */
.hero__grid { display: grid; align-items: center; padding-block: clamp(16px, 3vh, 40px); }
.hero__copy { max-width: 760px; }
.hero__title {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(3.2rem, 7.6vw, 8.6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin-bottom: clamp(20px, 3vh, 34px);
}
.hero__title em { display: inline-block; color: var(--ink); }
.hero__lede { max-width: 44ch; color: var(--ink-soft); font-size: clamp(1rem, 1.15vw, 1.14rem); margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 22px;
  position: relative;
}
.hero__foot::before {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 0;
  height: 1px;
  background: var(--line);
}
.scroll-cue { display: flex; align-items: center; gap: 14px; color: var(--ink-soft); font-size: 0.68rem; }
.scroll-cue__line { position: relative; width: 1px; height: 28px; background: var(--line); overflow: hidden; }
.scroll-cue__line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 40%;
  background: var(--orange);
  /* transform, not top: runs on the compositor instead of re-laying out the page every frame */
  transform: translateY(-100%);
  animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue { to { transform: translateY(250%); } }
.hero__cats { display: flex; gap: 22px; color: var(--ink-mute); font-size: 0.68rem; }

/* ---------- Process (fixed UI over the 3D story) ---------- */
.process { position: relative; height: calc(var(--unit) * 8); }
.process__ui {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  visibility: hidden;
}
.process__panels { position: absolute; inset: 0; }
.process__shade { display: none; }
.stage {
  position: absolute;
  left: var(--gutter);
  top: 48%;
  width: min(460px, 34vw);
  /* `translate` (not `transform`) so it composes with GSAP's y animation */
  translate: 0 -50%;
  opacity: 0;
  visibility: hidden;
}
.stage__num {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  margin-bottom: 20px;
}
.stage__num b { color: var(--orange); font-weight: 500; font-size: 0.8rem; }
.stage__num span { margin-right: 10px; }
.stage__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.75rem, 2.8vw, 2.9rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.stage__text { color: var(--ink-soft); max-width: 42ch; margin-bottom: 22px; }
.stage__list { display: flex; flex-wrap: wrap; gap: 5px; font-size: 0.6rem; }
.stage__list li { padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); background: rgba(253, 248, 236, 0.7); }

.grades { display: grid; gap: 0; border-top: 1px solid var(--line); }
.grades__row {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-mute);
  transition: color 0.4s;
}
.grades dt { font-family: var(--display); font-weight: 600; font-size: 1.7rem; line-height: 1; }
.grades dd { font-size: 0.95rem; }
.grades__row.is-active { color: var(--ink); }
.grades__row.is-active dt { color: var(--orange); }

.rail {
  position: absolute;
  /* aligned with the centred content column on very wide screens */
  left: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  right: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)), calc(var(--wa-x) + var(--wa-w) + 20px)); /* clear of the WhatsApp button */
  bottom: 22px;
  pointer-events: auto;
}
.rail ol { display: flex; gap: 0; }
.rail li { flex: 1; }
.rail button {
  display: flex;
  gap: 8px;
  width: 100%;
  padding: 10px 0 12px;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  transition: color 0.3s;
  text-align: left;
}
.rail button span { color: inherit; opacity: 0.7; }
.rail button:hover, .rail button.is-active { color: var(--ink); }
.rail button.is-active span { color: var(--orange); opacity: 1; }
.rail__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.rail__bar i { position: absolute; inset: 0; background: var(--orange); transform-origin: left; transform: scaleX(0); }

/* ---------- Dark chapter: handoff + equipment ---------- */
.dark-chapter {
  position: relative;
  z-index: 4;
  background: var(--night);
  color: var(--paper);
}
.handoff {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0;
}
.handoff__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5.2vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 16ch;
  text-wrap: balance;
}
.handoff__title em { color: var(--orange-2); }
/* With the 3D story running, the dark chapter slides up underneath the dive into the
   laptop (story.js): the handoff is see-through, so the display filling the viewport
   is the backdrop its heading rises onto. */
.has-story .dark-chapter {
  margin-top: -100vh;
  margin-top: -100svh;
  background: none;
  pointer-events: none;
  /* apply at once, so ScrollTrigger measures the new layout (the reduced-motion rule
     would otherwise turn this change into a transition) */
  transition: none;
}
.has-story .dark-chapter > :not(.handoff) { background: var(--night); pointer-events: auto; }
/* room for ascenders and descenders inside the heading's line masks */
.handoff__line-mask { padding-block: 0.2em; margin-block: -0.2em; }
/* own layers while the story drives them: otherwise every frame of the reveal repaints the
   whole page (this long page takes a phone tens of milliseconds to repaint) */
.has-story .handoff__line, .has-story .handoff .eyebrow { will-change: transform, opacity; }

.equipment { position: relative; }
.equipment__pin {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.equipment__word {
  position: absolute;
  top: 46%;
  left: 0;
  transform: translateY(-50%);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(8rem, 22vw, 24rem);
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(253, 248, 236, 0.1);
  pointer-events: none;
  will-change: transform;
}
.equipment__track {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: clamp(28px, 3.2vw, 56px);
  padding-inline: var(--gutter) 12vw;
  will-change: transform;
}
.eq-intro {
  flex: 0 0 min(500px, 78vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 3vw;
}
.eq-intro__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 3.6vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.eq-intro__title em { color: var(--orange-2); }
.eq-intro__text { color: rgba(253, 248, 236, 0.72); max-width: 40ch; margin-bottom: 30px; }
.eq-intro__hint { display: inline-flex; align-items: center; gap: 10px; color: rgba(253, 248, 236, 0.55); font-size: 0.68rem; }
.eq-intro__hint svg { width: 18px; height: 18px; }

.eq-card {
  flex: 0 0 clamp(290px, 27vw, 410px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--night-line);
}
.eq-card__art { position: relative; aspect-ratio: 5 / 4; width: 100%; min-height: 0; }
.eq-card__art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eq-card__num { color: var(--orange-2); font-size: 0.7rem; margin-bottom: 10px; }
.eq-card__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 2.2vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}
.eq-card__body > p:not(.eq-card__num) { color: rgba(253, 248, 236, 0.72); font-size: 0.98rem; margin-bottom: 16px; max-width: 36ch; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.62rem; }
.chips li { padding: 5px 9px; border: 1px solid var(--night-line); border-radius: 999px; color: rgba(253, 248, 236, 0.82); }
.eq-end {
  flex: 0 0 min(380px, 70vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
  padding-left: 3vw;
}
.eq-end__text { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 2.2vw, 2.2rem); line-height: 1.08; letter-spacing: -0.035em; }

/* Isometric line art */
.iso { fill: none; stroke: rgba(253, 248, 236, 0.86); stroke-linejoin: round; stroke-linecap: round; }
.iso .f { fill: var(--night); }
.iso .f2 { fill: var(--night-2); }
.iso .acc { stroke: var(--orange-2); }
.iso .accf { fill: var(--orange); stroke: var(--orange); }
.iso .thin { stroke: rgba(253, 248, 236, 0.5); }
.iso .cable { stroke: var(--night-3); }

.equipment__cable {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(26px, 6vh, 64px);
  height: 30px;
  pointer-events: none;
}
.equipment__wire {
  position: absolute;
  left: 0;
  top: 50%;
  height: 7px;
  width: var(--wire, 10%);
  transform: translateY(-50%);
  background: var(--night-3);
  border-radius: 0 4px 4px 0;
}
.equipment__plug {
  position: absolute;
  top: 0;
  left: var(--wire, 10%);
  width: 68px;
  height: 30px;
  color: var(--orange);
  --paper: var(--night);
  transform: translateX(-4px);
}

/* ---------- Business / ITAD route ---------- */
.business { position: relative; z-index: 4; background: var(--paper); }
.business__pin {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + 36px);
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
}
.business__head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  column-gap: 5vw;
  align-items: end;
}
.business__head .eyebrow { grid-column: 1 / -1; margin-bottom: 16px; }
.business__head .section-title { font-size: clamp(2.2rem, 4.1vw, 4.3rem); }
.business__lede { color: var(--ink-soft); max-width: 46ch; padding-bottom: 6px; font-size: 0.98rem; }
.route { position: relative; flex: 1; min-height: 460px; margin-top: 2vh; }
.route__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route__ghost { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 1 9; stroke-linecap: round; }
.route__cable { fill: none; stroke: var(--ink); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.route__plug { color: var(--orange); }
.route__node { fill: var(--paper); stroke: var(--line-strong); stroke-width: 1.5; transition: fill 0.4s, stroke 0.4s; }
.route__node.is-on { fill: var(--orange); stroke: var(--orange); }
.route__steps { position: absolute; inset: 0; pointer-events: none; }
.route__step {
  position: absolute;
  width: min(240px, 19vw);
  opacity: 0.28;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  pointer-events: auto;
}
.route__step.is-on { opacity: 1; }
.route__step .mono { display: block; color: var(--orange); font-size: 0.66rem; margin-bottom: 8px; }
.route__step h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 1.6vw, 1.7rem); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 8px; }
.route__step p { color: var(--ink-soft); font-size: 0.93rem; line-height: 1.5; }

/* ---------- Clients ---------- */
.clients { position: relative; z-index: 4; background: var(--paper); padding: clamp(90px, 12vw, 170px) 0 clamp(70px, 9vw, 130px); }
.clients__head { display: flex; flex-direction: column; margin-bottom: clamp(36px, 5vw, 64px); max-width: 900px; }
.clients__list { border-top: 1px solid var(--line); }
.client {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: clamp(14px, 1.8vw, 24px) 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.client__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  transition: transform 0.7s var(--ease-out), color 0.4s;
}
.client__note { color: var(--ink-soft); max-width: 40ch; transition: opacity 0.5s, transform 0.7s var(--ease-out); }
.client__plug {
  position: absolute;
  left: 0;
  top: 50%;
  width: 66px;
  height: 30px;
  margin-top: -15px;
  color: var(--orange);
  opacity: 0;
  transform: translateX(-80px);
  transition: transform 0.7s var(--ease-out), opacity 0.4s;
}
@media (hover: hover) and (min-width: 900px) {
  .client__note { opacity: 0.35; }
  .client:hover .client__name { transform: translateX(92px); }
  .client:hover .client__note { opacity: 1; transform: translateX(-8px); }
  .client:hover .client__plug { opacity: 1; transform: translateX(0); }
}

/* ---------- Principles ---------- */
.principles { position: relative; z-index: 4; background: var(--paper); padding: clamp(40px, 6vw, 90px) 0 clamp(100px, 12vw, 170px); }
.principles__head { max-width: 900px; margin-bottom: clamp(40px, 6vw, 80px); display: flex; flex-direction: column; }
.principles__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 40px); }
.principle { position: relative; padding-top: 22px; }
.principle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(var(--draw, 1));
}
.principle__num { display: block; color: var(--orange); margin-bottom: 44px; font-size: 0.7rem; }
.principle h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.35rem, 1.7vw, 1.8rem); line-height: 1.08; margin-bottom: 14px; letter-spacing: -0.03em; }
.principle p { color: var(--ink-soft); font-size: 0.97rem; max-width: 34ch; }

/* ---------- Impact (dark) ---------- */
.impact {
  position: relative;
  z-index: 4;
  background: var(--night);
  color: var(--paper);
  padding: clamp(100px, 12vw, 170px) 0;
  overflow: hidden;
}
.impact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5vw; align-items: center; }
.impact__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.2vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
}
.impact__title em { color: var(--orange-2); }
.impact__text { color: rgba(253, 248, 236, 0.74); max-width: 46ch; margin-bottom: 40px; }
.impact__points { display: grid; border-top: 1px solid var(--night-line); }
.impact__points li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--night-line);
  color: rgba(253, 248, 236, 0.82);
}
.impact__points .mono { color: var(--orange-2); padding-top: 3px; }
.impact__loop { position: relative; }
.loop { width: 100%; height: auto; max-width: 620px; margin-inline: auto; overflow: visible; }
.loop__arc { fill: none; stroke: var(--night-3); stroke-width: 16; stroke-linecap: round; }
.loop__plug { color: var(--orange); --paper: var(--night); }
.loop__labels text { fill: rgba(253, 248, 236, 0.6); font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; }
.loop__mark { color: var(--paper); }

/* ---------- FAQ ---------- */
.faq { position: relative; z-index: 4; background: var(--paper); padding: clamp(100px, 12vw, 170px) 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 6vw; align-items: start; }
.faq__head { position: sticky; top: calc(var(--nav-h) + 30px); display: flex; flex-direction: column; }
.faq__more { margin-top: 26px; color: var(--ink-soft); }
.faq__more a { color: var(--ink); border-bottom: 1px solid var(--orange); }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa h3 { font-weight: 500; }
.qa button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 24px 0;
  text-align: left;
  font-size: clamp(1.08rem, 1.4vw, 1.3rem);
  font-weight: 500;
  line-height: 1.3;
}
.qa button i { position: relative; flex: none; width: 16px; height: 16px; }
.qa button i::before, .qa button i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 7.25px;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.45s var(--ease-out);
}
.qa button i::after { transform: rotate(90deg); }
.qa button[aria-expanded="true"] i::after { transform: rotate(0deg); }
.qa button[aria-expanded="true"] i::before { background: var(--orange); }
.qa__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease-out); }
.qa__panel > div { overflow: hidden; }
.qa__panel p { padding: 0 48px 26px 0; color: var(--ink-soft); max-width: 60ch; }
.qa.is-open .qa__panel { grid-template-rows: 1fr; }

/* ---------- Contact ---------- */
.contact { position: relative; z-index: 4; background: var(--paper-2); padding: clamp(100px, 12vw, 170px) 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; align-items: start; }
.contact__intro { display: flex; flex-direction: column; }
.contact__text { color: var(--ink-soft); max-width: 42ch; margin: 26px 0 40px; }
.contact__details { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 460px; }
.contact__details div { display: grid; grid-template-columns: 90px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contact__details dt { color: var(--ink-mute); font-size: 0.68rem; }
.contact__details a { border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.contact__details a:hover { border-color: var(--orange); }

.enquiry { display: grid; gap: 22px; }
.enquiry__intent { border: 0; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.enquiry__intent legend { color: var(--ink-mute); font-size: 0.68rem; margin-bottom: 12px; padding: 0; }
.enquiry__intent label { position: relative; cursor: pointer; }
.enquiry__intent input { position: absolute; opacity: 0; pointer-events: none; }
.enquiry__intent span {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 0.9rem;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.enquiry__intent input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.enquiry__intent input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.enquiry__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 6px; }
.field__label { color: var(--ink-mute); font-size: 0.66rem; }
.field__label em { text-transform: none; font-style: normal; opacity: 0.8; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.02rem;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232d445a' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--orange); }
.field input:user-invalid { border-bottom-color: #b5452b; }
.field textarea::placeholder { color: var(--ink-mute); }
.enquiry__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 8px; }
.enquiry__note { color: var(--ink-mute); font-size: 0.64rem; }
.enquiry__note.is-error { color: #b5452b; }
.enquiry__fallback { flex-basis: 100%; margin-top: -8px; font-size: 0.95rem; }

/* Required marker; anything hidden inside the form stays hidden */
.req { color: var(--orange); font-weight: 500; }
.enquiry [hidden] { display: none !important; }

/* Field groups that switch with the enquiry type */
.enquiry__group { display: grid; gap: 22px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field select:has(option[value=""]:checked) { color: var(--ink-mute); }
.field select option { color: var(--ink); }
.field input::placeholder { color: var(--ink-mute); opacity: 0.85; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-bottom-color: #b5452b; }
.field.is-invalid .field__label { color: #b5452b; }

/* Multi-choice chips (asset category, additional information) */
.checks { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.checks label { position: relative; cursor: pointer; }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.checks span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 0.88rem;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.checks span::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.checks input:checked + span { box-shadow: inset 0 0 0 1.5px var(--ink); background: rgba(45, 68, 90, 0.06); }
.checks input:checked + span::before {
  box-shadow: none;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-5' fill='none' stroke='%23fdf8ec' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.field.is-invalid .checks span { box-shadow: inset 0 0 0 1px #b5452b; }

/* Photos: email hint now, upload once a form service is set */
.upload__icon { flex: none; width: 26px; height: 26px; color: var(--orange); }
.upload-hint p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}
.upload-hint .upload__icon { width: 20px; height: 20px; margin-top: 2px; }
.upload-hint a { color: var(--ink); border-bottom: 1px solid var(--orange); }
.upload__drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
}
.upload__drop:hover, .upload__drop.is-drag { border-color: var(--orange); background: rgba(210, 120, 12, 0.05); }
.upload__drop:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
.upload__picker { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload__cta { display: block; font-size: 0.95rem; font-weight: 600; }
.upload__hint { display: block; color: var(--ink-mute); font-size: 0.85rem; line-height: 1.4; }
.upload__list { display: flex; flex-wrap: wrap; gap: 10px; }
.upload__list:empty { display: none; }
.upload__list li { position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--paper-3); box-shadow: inset 0 0 0 1px var(--line); }
.upload__list img { width: 100%; height: 100%; object-fit: cover; }
/* a document: its type and name on a wider tile */
.upload__list li.is-doc { width: 172px; display: grid; align-content: center; gap: 3px; padding: 10px 30px 10px 12px; }
.upload__doc-ext { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; color: var(--orange); }
.upload__doc-name { font-size: 0.8rem; line-height: 1.25; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.upload__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(27, 43, 59, 0.82);
  color: var(--paper);
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}
.upload__remove:hover { background: var(--orange); }

/* Sending state + confirmation panel */
.enquiry__submit[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.enquiry.is-sent > :not(.enquiry__done) { display: none !important; }
.enquiry__done { display: grid; gap: 14px; justify-items: start; padding: 12px 0 8px; }
.enquiry__done > :not([hidden]) { display: grid; gap: 14px; justify-items: start; }
/* honeypot for bots: off-screen, never focused */
.enquiry__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.enquiry__done-title { font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1.05; letter-spacing: -0.035em; max-width: 18ch; }
.enquiry__done p:not(.eyebrow) { color: var(--ink-soft); max-width: 52ch; }
.enquiry__done a, .link-btn { color: var(--ink); border-bottom: 1px solid var(--orange); transition: color 0.3s; }
.enquiry__done a:hover, .link-btn:hover { color: var(--orange); }
.link-btn { display: inline; padding: 0; font: inherit; cursor: pointer; }
.enquiry__done-help { font-size: 0.95rem; }
.enquiry__copied { color: var(--orange); font-weight: 600; }
.enquiry__copy-text {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: 0.85rem/1.5 var(--mono);
  resize: vertical;
}

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 4; background: var(--night); color: var(--paper); overflow: hidden; }
.footer__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 4vw;
  align-items: center;
  padding-top: clamp(64px, 7vw, 104px);
  padding-bottom: clamp(36px, 4vw, 60px);
}
.footer__sign {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.2rem, 3.8vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}
.footer__sign em { color: var(--orange-2); }
.footer__note { color: rgba(253, 248, 236, 0.62); max-width: 38ch; font-size: 0.98rem; }
.footer__mark { position: relative; height: clamp(210px, 21vw, 320px); }
.footer__particles { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; } /* sideways drags sweep the particles; vertical ones still scroll */
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 5vw;
  padding-top: 44px;
  padding-bottom: 48px;
  position: relative;
}
.footer__grid::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--night-line); }
.footer__word { width: 150px; height: auto; margin-bottom: 20px; color: var(--paper); }
.footer__brand p { color: rgba(253, 248, 236, 0.6); max-width: 40ch; font-size: 0.95rem; }
.footer__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__col .mono { color: rgba(253, 248, 236, 0.45); font-size: 0.66rem; margin-bottom: 6px; }
.footer__col a { color: rgba(253, 248, 236, 0.86); transition: color 0.3s; }
.footer__col a:hover { color: var(--orange-2); }
.footer__base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 26px;
  color: rgba(253, 248, 236, 0.5);
  font-size: 0.64rem;
  position: relative;
}
.footer__base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--night-line); }
.footer__top { display: inline-flex; align-items: center; gap: 8px; }
.footer__top svg { width: 14px; height: 14px; transform: rotate(-90deg); }

/* ---------- Chat on WhatsApp (fixed, bottom right) ---------- */
/* In the site's colours: an ink button with a cream WhatsApp logo, turning cream over the dark sections
   (ui.js). With a mouse it opens out to "Chat on WhatsApp" on hover, and the logo turns orange. */
.wa {
  position: fixed;
  right: var(--wa-x);
  bottom: var(--wa-y);
  z-index: 40; /* over the page, under the nav and the open menu */
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 14px 30px -16px rgba(27, 43, 59, 0.6), 0 2px 8px rgba(27, 43, 59, 0.14);
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out), background-color 0.35s, color 0.35s;
}
.wa.is-on-dark { background: var(--paper); color: var(--ink); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.7); }
.wa__icon { width: 26px; height: 26px; flex: none; transition: color 0.3s; }
/* folded away (still read out as the button's name) until hover or keyboard focus */
.wa__label { max-width: 0; overflow: hidden; opacity: 0; transition: max-width 0.5s var(--ease-out), margin 0.5s var(--ease-out), opacity 0.3s; }
.wa:focus-visible .wa__label { max-width: 12em; margin: 0 7px 0 10px; opacity: 1; }
@media (hover: hover) {
  .wa:hover .wa__label { max-width: 12em; margin: 0 7px 0 10px; opacity: 1; }
  .wa:hover .wa__icon { color: var(--orange); }
}
/* comes in once the preloader has gone (main.js) */
.js .wa:not(.is-in) { opacity: 0; transform: translateY(16px); pointer-events: none; }
/* room for it at the right of the hero's footer line and the footer's last line */
.hero__foot, .footer__base { padding-right: max(var(--gutter), calc(var(--wa-x) + var(--wa-w) + 24px)); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .principles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
}

@media (max-width: 899px) {
  :root { --nav-h: 64px; --unit: 80vh; }
  @supports (height: 1svh) { :root { --unit: 80svh; } }
  body { font-size: 1rem; }
  .nav__word { height: 32px; }
  /* The laptop is framed into whatever space is left above this copy, so keep it compact */
  .hero__grid { align-items: end; padding-top: 0; padding-bottom: 18px; }
  .hero .eyebrow { font-size: 0.6rem; letter-spacing: 0.07em; margin-bottom: 14px; }
  .hero__title { font-size: clamp(2.6rem, 12.6vw, 4.4rem); margin-bottom: 16px; }
  .hero__lede { font-size: 0.95rem; margin-bottom: 22px; }
  .hero__actions { align-items: center; gap: 14px 22px; }
  .hero__actions .btn { height: 46px; padding: 0 18px 0 20px; font-size: 0.72rem; }
  .hero__actions .btn--ghost,
  .hero__actions .btn--ghost:hover {
    height: auto;
    padding: 4px 0;
    border-radius: 0;
    box-shadow: inset 0 -1px 0 var(--line-strong);
    color: var(--ink);
  }
  .hero__actions .btn--ghost::before { display: none; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 14px; padding-bottom: 16px; }
  .hero__cats { display: none; }

  .process__shade {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56%;
    background: linear-gradient(to top, var(--paper) 62%, rgba(253, 248, 236, 0));
  }
  .stage {
    top: auto;
    bottom: 70px;
    width: auto;
    right: var(--gutter);
    translate: none;
  }
  .stage__title { font-size: clamp(1.45rem, 6.2vw, 2rem); margin-bottom: 12px; }
  .stage__text { font-size: 0.92rem; margin-bottom: 14px; }
  .stage__list { display: none; }
  .grades__row { padding: 6px 0; grid-template-columns: 40px 1fr; }
  .grades dt { font-size: 1.35rem; }
  .grades dd { font-size: 0.86rem; }
  .rail { bottom: 14px; }
  :root { --wa-w: 50px; }
  .wa { width: 50px; height: 50px; padding: 0; justify-content: center; }
  .wa__icon { width: 27px; height: 27px; }
  .rail button { font-size: 0; gap: 0; justify-content: center; padding: 10px 0; }
  .rail button span { font-size: 0.6rem; }

  .callout__box { min-width: 0; font-size: 0.58rem; padding: 6px 8px; }

  .equipment__pin { height: auto; display: block; overflow: visible; padding: 40px 0 90px; }
  .equipment__word, .equipment__cable { display: none; }
  /* no sideways track on phones, so no giant compositor layer either */
  .equipment__track { flex-direction: column; padding-inline: var(--gutter); gap: 56px; transform: none !important; will-change: auto; }
  .eq-intro, .eq-card, .eq-end { flex: none; width: 100%; padding: 0; }
  .eq-card { padding-top: 18px; }
  .eq-card__art { max-width: 420px; }

  .business__head { grid-template-columns: 1fr; row-gap: 20px; }
  /* phones: the steps stack and the cable (route.js) runs down their left side. The drawn cable
     and the plugs are separate layers moved with the scroll; the SVG keeps the dotted path */
  .route { flex: none; min-height: 0; margin-top: 40px; padding-top: 28px; }
  .route__svg { right: auto; width: calc(var(--gutter) + 84px); }
  .route--tall .route__svg .route__cable, .route--tall .route__svg .route__plug { display: none; }
  .route__draw { position: absolute; left: 0; top: 0; overflow: hidden; pointer-events: none; transform: translateY(-100%); }
  .route__draw-in { transform: translateY(100%); }
  .route__drawn { display: block; overflow: visible; }
  .route__pl { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; color: var(--orange); pointer-events: none; transform-origin: 0 0; opacity: 0; }
  .route__steps { position: relative; inset: auto; display: grid; row-gap: 26px; padding-left: 84px; }
  .route__step { position: relative; width: auto; will-change: opacity; }
  .route__step:not(.route__step--end) + .route__step--end { margin-top: 34px; } /* room for the fork */
  .route__step:last-child { min-height: 132px; } /* the plugs end beside it (route.js) */
  .route__cable { stroke-width: 12; }

  .client { grid-template-columns: 1fr; gap: 6px; }
  .principles__grid { grid-template-columns: 1fr; }
  .principle__num { margin-bottom: 18px; }

  .impact__grid { grid-template-columns: 1fr; }
  .impact__loop { order: -1; max-width: 420px; margin: 0 auto 20px; }
  .impact__points li { grid-template-columns: 90px 1fr; }

  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .qa__panel p { padding-right: 0; }

  .contact__grid { grid-template-columns: 1fr; row-gap: 56px; }
  .enquiry__row { grid-template-columns: 1fr; }
  .upload__drop { padding: 14px; }
  .checks span { height: 34px; padding: 0 12px 0 10px; font-size: 0.84rem; }

  .footer__intro { grid-template-columns: 1fr; gap: 12px; padding-top: 48px; }
  .footer__mark { order: -1; height: clamp(170px, 50vw, 240px); }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__base { flex-direction: column; }

  /* cheaper compositing on phones: no full-screen grain layer, no backdrop blur */
  body::after { display: none; }
  .nav.is-solid { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(253, 248, 236, 0.97); }
  .nav.is-solid[data-theme="dark"] { background: rgba(27, 43, 59, 0.97); }
}

/* ---------- Inner pages: process, equipment, for business, contact ---------- */
/* The current page in the nav */
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.menu a[aria-current="page"] { color: var(--orange); }

/* "More about this" links from the home page's sections, and on the inner pages */
.more-link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--orange);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.more-link svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease-out); }
.more-link:hover svg { transform: translateX(4px); }
.more-link--light { color: var(--paper); border-color: var(--orange-2); }
.principles__head .more-link { margin-top: 30px; }
/* the opening of a page that starts with an existing section comes in with CSS alone, like .page-hero */
.rise { animation: page-rise 1.1s var(--ease-out) both; animation-delay: var(--d, 0s); }

/* Opening section: breadcrumb, heading and intro, a giant outlined word behind, an index along the foot */
.page-hero {
  position: relative;
  z-index: 4;
  min-height: 88vh;
  min-height: 88svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: var(--nav-h);
  background: var(--paper);
  overflow: hidden;
}
.page-hero__main { position: relative; align-self: center; padding-block: clamp(36px, 7vh, 88px); }
.page-hero__word {
  position: absolute;
  right: -0.05em;
  bottom: 74px;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: clamp(7rem, 19vw, 21rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(45, 68, 90, 0.12);
  pointer-events: none;
  user-select: none;
}
.crumbs { margin-bottom: 28px; color: var(--ink-soft); font-size: 0.66rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { transition: color 0.3s; }
.crumbs a:hover { color: var(--orange); }
.crumbs [aria-current] { color: var(--ink); }
.page-title {
  font-family: var(--display);
  font-weight: 650;
  font-stretch: 112%;
  font-size: clamp(2.8rem, 6.2vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  max-width: 14ch;
  margin-bottom: clamp(22px, 3.2vh, 36px);
  text-wrap: balance;
}
.page-title em { font-style: normal; font-weight: 300; letter-spacing: -0.03em; }
.page-hero__lede { max-width: 50ch; color: var(--ink-soft); font-size: clamp(1rem, 1.2vw, 1.16rem); margin-bottom: 32px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero__foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 18px;
  padding-bottom: 22px;
  padding-right: max(var(--gutter), calc(var(--wa-x) + var(--wa-w) + 24px));
}
.page-hero__foot::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: var(--line); }
.page-index { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 22px; font-size: 0.66rem; }
.page-index a { display: inline-flex; gap: 6px; padding-block: 5px; color: var(--ink-soft); transition: color 0.3s; }
.page-index a span { color: var(--orange); }
.page-index a:hover { color: var(--ink); }
/* the opening comes in with CSS alone, so it's never hidden while scripts load */
.page-hero__main > *, .page-hero__foot, .page-hero__word { animation: page-rise 1.1s var(--ease-out) both; }
.page-hero__main > :nth-child(2) { animation-delay: 0.06s; }
.page-hero__main > :nth-child(3) { animation-delay: 0.12s; }
.page-hero__main > :nth-child(4) { animation-delay: 0.22s; }
.page-hero__main > :nth-child(5) { animation-delay: 0.3s; }
.page-hero__foot { animation-delay: 0.45s; }
.page-hero__word { animation-name: page-word; animation-duration: 1.6s; }
@keyframes page-rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes page-word { from { opacity: 0; transform: translateX(6%); } }

/* Two columns: heading on the left, the detail on the right */
.duo { position: relative; z-index: 4; background: var(--paper); padding: clamp(90px, 11vw, 160px) 0; }
.duo--tint { background: var(--paper-2); }
.duo--dark { background: var(--night); color: var(--paper); }
.duo__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; align-items: start; }
.duo__head { display: flex; flex-direction: column; }
.duo__body { display: grid; gap: 24px; justify-items: start; padding-top: 6px; }
.duo__body > p { color: var(--ink-soft); max-width: 50ch; }
.duo--dark .eyebrow { color: rgba(253, 248, 236, 0.66); }
.duo--dark .section-title em { color: var(--orange-2); }
.duo--dark .duo__body > p { color: rgba(253, 248, 236, 0.74); }
.duo .grades { width: 100%; max-width: 560px; }
.duo .grades__row { color: var(--ink); padding: 14px 0; }
.duo .grades dt { color: var(--orange); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 0.92rem; line-height: 1.3; }
.duo--dark .tags li { box-shadow: inset 0 0 0 1px var(--night-line); color: rgba(253, 248, 236, 0.86); }

/* Three short facts in a row */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 44px); margin-top: clamp(48px, 6vw, 80px); }
.fact { padding-top: 22px; border-top: 1px solid var(--ink); }
.fact .mono { display: block; color: var(--orange); margin-bottom: 30px; font-size: 0.7rem; }
.fact h3 { font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: clamp(1.35rem, 1.7vw, 1.8rem); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 12px; }
.fact p { color: var(--ink-soft); font-size: 0.97rem; max-width: 36ch; }

/* two light sections in a row share one gap, not two */
.principles + .faq, .duo + .clients { padding-top: clamp(20px, 3vw, 50px); }

/* Closing call to action */
.cta-band { position: relative; z-index: 4; background: var(--paper-2); padding: clamp(80px, 10vw, 140px) 0; }
.cta-band__grid { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 6vw; }
.cta-band__head { display: flex; flex-direction: column; }
.cta-band .section-title { max-width: 15ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Process page: the seven stages, with a cable down their left (stages.js) */
.stages { position: relative; z-index: 4; background: var(--paper); padding: clamp(40px, 5vw, 80px) 0 clamp(80px, 10vw, 150px); }
.stages__list { --spine: clamp(26px, 4vw, 64px); --indent: clamp(92px, 11vw, 190px); position: relative; padding: 110px 0 0 var(--indent); }
.stages__spine { position: absolute; left: var(--spine); top: 0; bottom: 0; width: 0; pointer-events: none; }
.stages__spine::before {
  content: "";
  position: absolute;
  left: -0.75px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 1.5px, transparent 1.5px 10px);
}
.stages__drawn {
  position: absolute;
  left: -3.5px;
  top: 0;
  width: 7px;
  height: 100%;
  background: var(--ink);
  transform-origin: 50% 0;
  transform: scaleY(var(--p, 0));
  transition: transform 1.1s var(--ease-out);
}
.stages__plug { position: absolute; z-index: 2; left: 0; top: 0; width: 0; height: 0; transform: translateY(var(--reach, 0px)); transition: transform 1.1s var(--ease-out); }
.stages__plug svg { position: absolute; left: 0; top: -15px; width: 68px; height: 30px; color: var(--orange); transform-origin: 0 50%; transform: rotate(90deg); }
.stages__list:not(.is-live) .stages__drawn, .stages__list:not(.is-live) .stages__plug { display: none; }
.pstage {
  --pad: clamp(44px, 6vw, 90px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 5vw;
  padding: var(--pad) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 20px;
}
/* on the cable, level with the stage number (outside the parts that slide in, so it never moves) */
.pstage__node {
  position: absolute;
  left: calc(var(--spine) - var(--indent) - 9px);
  top: var(--pad);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: background-color 0.4s 0.45s, box-shadow 0.4s 0.45s;
}
.pstage.is-on .pstage__node { background: var(--orange); box-shadow: inset 0 0 0 1.5px var(--orange); }
.pstage__num { display: flex; align-items: baseline; gap: 8px; color: var(--ink-soft); font-size: 0.7rem; margin-bottom: 18px; line-height: 18px; }
.pstage__num b { color: var(--orange); font-weight: 500; font-size: 0.8rem; }
.pstage__name { font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: clamp(2rem, 3.4vw, 3.5rem); line-height: 1; letter-spacing: -0.04em; text-wrap: balance; }
.pstage__body { display: grid; gap: 18px; justify-items: start; max-width: 560px; }
.pstage__lead { font-family: var(--display); font-stretch: 112%; font-weight: 500; font-size: clamp(1.25rem, 1.7vw, 1.6rem); line-height: 1.2; letter-spacing: -0.02em; }
.pstage__body > p:not(.pstage__lead) { color: var(--ink-soft); }
.pstage .stage__list { font-size: 0.62rem; }
.pstage .grades { width: 100%; }
.pstage .grades__row { color: var(--ink); }
.pstage .grades dt { color: var(--orange); }

/* Equipment page: the six kinds of hardware, each with its line drawing */
.catalog { position: relative; z-index: 4; background: var(--night); color: var(--paper); padding: clamp(90px, 11vw, 160px) 0 clamp(50px, 7vw, 100px); }
.catalog__head { display: flex; flex-direction: column; max-width: 920px; margin-bottom: clamp(30px, 4vw, 60px); }
.catalog__head .section-title em { color: var(--orange-2); }
.catalog__intro { color: rgba(253, 248, 236, 0.72); max-width: 48ch; margin-top: 24px; }
.cat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6vw;
  align-items: center;
  padding: clamp(44px, 6vw, 90px) 0;
  border-top: 1px solid var(--night-line);
  scroll-margin-top: 20px;
}
.cat:nth-child(even) .cat__art { order: 2; }
.cat__art { position: relative; width: 100%; max-width: 480px; aspect-ratio: 5 / 4; justify-self: center; }
.cat__art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cat__body { display: grid; gap: 18px; justify-items: start; }
.cat__num { color: var(--orange-2); font-size: 0.7rem; }
.cat__title { font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: clamp(2rem, 3.6vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; }
.cat__body > p:not(.cat__num) { color: rgba(253, 248, 236, 0.74); max-width: 44ch; }
.cat .more-link { margin-top: 8px; }

/* For business and contact pages: their first section opens the page */
.business--page .business__pin { padding-top: calc(var(--nav-h) + 24px); }
.business--page .crumbs { grid-column: 1 / -1; margin-bottom: 18px; }
.contact--page { padding-top: calc(var(--nav-h) + clamp(36px, 6vw, 90px)); }
.contact--page .section-title { font-size: clamp(2.4rem, 4.8vw, 5rem); }
.business__aside { display: grid; gap: 18px; justify-items: start; padding-bottom: 6px; }
.business__aside .business__lede { padding-bottom: 0; }

@media (max-width: 899px) {
  .page-hero { min-height: 0; padding-top: var(--nav-h); }
  .page-hero__main { padding-block: 36px 44px; }
  .page-hero__word { font-size: 34vw; bottom: auto; top: calc(var(--nav-h) + 6px); right: -0.08em; }
  .page-title { font-size: clamp(2.4rem, 10.6vw, 4rem); }
  .page-hero__foot { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 14px; padding-bottom: 18px; }
  .page-index { justify-content: flex-start; gap: 6px 16px; }

  .duo__grid { grid-template-columns: 1fr; gap: 28px; }
  .facts { grid-template-columns: 1fr; gap: 34px; }
  .fact .mono { margin-bottom: 16px; }
  .cta-band__grid { flex-direction: column; align-items: flex-start; }

  .stages__list { --spine: 14px; --indent: 50px; padding-top: 96px; }
  .pstage { grid-template-columns: 1fr; gap: 18px; }
  .pstage .stage__list { display: flex; } /* hidden in the home page's 3D story on phones, not here */
  .pstage__name { font-size: clamp(1.9rem, 8.6vw, 2.6rem); }

  .cat { grid-template-columns: 1fr; gap: 26px; }
  .cat:nth-child(even) .cat__art { order: 0; }
  .cat__art { max-width: 380px; justify-self: start; }

  .business--page .business__pin { padding-top: calc(var(--nav-h) + 16px); }
}

/* Moving between pages: a quick cross-fade, where the browser supports it */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.3s; }

/* ---------- Fallbacks: no JS / no WebGL / reduced motion ---------- */
.no-js .process, .no-webgl .process { height: auto; padding: 60px 0 100px; }
.no-js .process__ui, .no-webgl .process__ui { position: static; visibility: visible; }
.no-js .process__panels, .no-webgl .process__panels { position: static; display: grid; gap: 64px; }
.no-js .stage, .no-webgl .stage { position: static; opacity: 1; visibility: visible; transform: none; translate: none; width: auto; max-width: 620px; }
.no-js .rail, .no-webgl .rail, .no-webgl .bench, .no-webgl .bench-grid, .no-webgl .callouts, .no-js .bench { display: none; }
.no-webgl .process__shade, .no-js .process__shade { display: none; }
.no-js .route { min-height: 0; }
.no-js .route__svg { display: none; }
.no-js .route__steps { position: static; display: grid; gap: 32px; padding-left: 0; }
.no-js .route__step { position: static; width: auto; max-width: 520px; opacity: 1; }
.no-js .cat__art { display: none; } /* the equipment page's drawings are drawn by script */
.no-js .cat { grid-template-columns: 1fr; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
