
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-normal.woff2") format("woff2");
  font-weight: 300 600;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

/* ==========================================================================
   TIER 1 — PRIMITIVES. Dantora brand ramp, Figma "Concept 4" (1518:1970);
   the file carries no Figma variables, so these are lifted from layer fills.
   ========================================================================== */
:root {
  --raw-white: #ffffff;
  --raw-black: #0E2A23;          /* Bottle: text */
  --raw-brand-500: #0E2A23;      /* Bottle */
  --raw-brand-900: #061A15;
  --raw-lime-200: #9ED8BA;       /* Culture */
  --raw-lime-400: #86C9A6;
  --raw-mint-50: #EEF1EA;        /* Agar */
  --raw-mint-100: #E3EAE1;
  --raw-culture: #9ED8BA;
  --raw-sage: #73969B;           /* the logo's sage */

  /* ---- TIER 2 — SEMANTIC ROLES ---- */
  /* The page background is WHITE; the mint is a PANEL colour painted by each
     full-bleed section, which is why the Why Dantora band reads white. */
  --background: var(--raw-white);
  --foreground: var(--raw-black);
  --surface-section: var(--raw-mint-50);
  /* Deeper mint — what separates About/Team from the block they slide over. */
  --surface-section-deep: var(--raw-mint-100);

  --accent: var(--raw-brand-500);
  --action-primary: var(--raw-brand-500);
  --action-primary-border: var(--raw-brand-900);
  --action-primary-foreground: var(--raw-white);
  --action-secondary: var(--raw-lime-200);
  --action-secondary-border: var(--raw-lime-400);
  --action-secondary-foreground: var(--raw-black);

  --surface-glass: rgba(255,255,255,0.8);
  --surface-glass-subtle: rgba(255,255,255,0.5);
  --surface-glass-strong: rgba(255,255,255,0.9);
  --border-subtle: rgba(14,42,35,0.12);
  /* Secondary text: the greyed About clauses, roles, placeholders, the consent
     line. 0.6 is the lightest black small type on white can use (5.7:1). */
  --foreground-muted: rgba(14,42,35,0.68);
  --foreground-subtle: rgba(14,42,35,0.68);

  /* Named --corner-*, not --radius-*: Tailwind owns that namespace. */
  --corner-mark: 4px;
  --corner-panel: 8px;
  --corner-card: 24px;
  --corner-section: 48px;
  --corner-chip: 37px;
  --corner-action: 46px;
  --glass-blur: 10px;

  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-entrance: cubic-bezier(0.2, 0, 0, 1);
  --leading-display: 1.1;
  --leading-body: 1.2;

  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
}

/* No `prefers-color-scheme: dark` override. This is a single light theme built
   on a mint page and a MULTIPLY-blended WebGL backdrop that only reads on a
   light surface — a dark flip would erase the scene. */

/* ==========================================================================
   THE ADAPTIVE GRID — desktop only, and deliberately so. From lg up the
   composition is absolutely positioned at the 1440 artboard's coordinates, so
   every offset must track the viewport. Below it the page is a flow layout and
   the root stays a plain 16px.
   ========================================================================== */
html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: var(--font-sans);
  /* Reserve the scrollbar track permanently. Without it the viewport width
     changes the moment the page becomes scrollable, which resizes the WebGL
     canvases and visibly re-frames the helix mid-scroll. */
  scrollbar-gutter: stable;
}
@media (min-width: 1024px) { html { font-size: 1.111111vw; } }  /* 16 * 100 / 1440 */

/* Tailwind preflight, the parts this page relies on. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: inherit;
}
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
img, svg, canvas { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; background: transparent; border-radius: 0; }
button { cursor: pointer; }
a { color: inherit; text-decoration: inherit; }
ul, ol { list-style: none; }
hr { height: 0; color: inherit; border-top-width: 1px; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { opacity: 1; }

/* Figma's text boxes are cap-height trimmed — almost every text node in the
   mockup carries this. Without it every block inherits half-leading it was
   never designed with: the hero h1 measured 132px against Figma's 109, pill
   buttons 57 against 48, the chip row 108 against 94 — an error that compounds
   down the page. Browsers without support fall back to the untrimmed box. */
h1, h2, h3, h4, h5, h6, p, li, dd, dt, label, figcaption, button, a {
  text-box: trim-both cap alphabetic;
}
/* For a label inside a flex container, where the bare text node is an anonymous
   flex item the rule above cannot reach. */
.text-trim { text-box: trim-both cap alphabetic; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  pointer-events: none; user-select: none;
}

/* A failed asset must never be silent. (D-021) */
#asset-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  display: none; padding: 0.75rem 1rem;
  background: #b3261e; color: #fff; text-align: center;
  font: 500 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}
#asset-banner.on { display: block; }

/* The word-split engine's container is a FLEX row, so `text-align` alone
   positions nothing — pair it with justify-content. The run of words sits in a
   `display: contents` wrapper, so each word stays a flex item of the host. */
.words { position: relative; display: flex; flex-wrap: wrap; }
.words.center { justify-content: center; text-align: center; }
.words .run { display: contents; }
.words .w { display: inline-block; user-select: auto; }

/* ==========================================================================
   PRELOADER — brand-green, clipped away bottom-to-top.
   ========================================================================== */
#preloader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4rem; background: var(--accent);
  will-change: clip-path;
}
#preloader.gone { display: none; }
#pre-dial { position: relative; display: grid; width: min(60vw, 22rem); height: min(60vw, 22rem); place-items: center; }
#pre-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
#pre-mark { position: relative; width: 38%; height: 38%; }
#pre-mark img { position: absolute; inset: 0; width: 100%; height: 100%; }
#pre-mark .lit { position: absolute; inset: 0; }
#pre-mark .lit img { position: static; }
#pre-count { font-size: 2.5rem; line-height: var(--leading-display); font-weight: 300; color: #fff; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   HEADER — fixed, frosted. `pointer-events: none` on the bar so the gutters
   either side of the panels don't swallow clicks meant for the page beneath;
   each panel switches them back on.
   ========================================================================== */
#header {
  pointer-events: none;
  position: fixed; left: 0; right: 0; top: 1rem; z-index: 60;
  padding-inline: 1.25rem;
}
#header .hdr-row { display: flex; align-items: center; justify-content: space-between; }
#header .hdr-left { display: flex; align-items: center; gap: 0.5rem; }
.glass {
  pointer-events: auto; border-radius: var(--corner-panel);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
}
#header .logo {
  display: flex; height: 3.375rem; width: 9.3125rem; align-items: center;
  gap: 0.75rem; padding-right: 1rem; padding-left: 0.375rem;
}
.mark-tile {
  display: grid; width: 2.625rem; height: 2.625rem; flex: none; place-items: center;
  border-radius: var(--corner-mark); background: var(--accent); color: var(--action-secondary);
}
.mark-tile .brand-mark-light { width: 1.5rem; height: 1.5rem; }
#header .logo .name { font-size: 1.25rem; line-height: var(--leading-display); font-weight: 300; }
#header nav.bar { display: none; height: 3.375rem; width: 26.375rem; align-items: center; padding-inline: 2.25rem; }
#header nav.bar ul { display: flex; align-items: center; gap: 2.625rem; }
#header nav.bar a {
  font-size: 1rem; line-height: var(--leading-body); font-weight: 300;
  transition: color var(--duration-fast) var(--ease-entrance);
}
#header nav.bar a:hover { color: var(--accent); }
#header-cta-slot { display: none; }
#header-cta { pointer-events: auto; }

/* ---- the burger + the full-screen menu (below lg) ---- */
#menu-wrap { pointer-events: auto; }
#burger { position: relative; z-index: 10; display: flex; width: 3.375rem; height: 3.375rem; align-items: center; justify-content: center; }
#burger .bars { display: flex; flex-direction: column; gap: 0.3125rem; }
#burger .bars i {
  display: block; height: 1px; width: 1.25rem; background: var(--foreground);
}
#burger .bars i:nth-child(1), #burger .bars i:nth-child(3) { transition: transform var(--duration-normal) var(--ease-entrance); }
#burger .bars i:nth-child(2) { transition: opacity var(--duration-fast) var(--ease-entrance); }
#burger[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(0.34375rem) rotate(45deg); }
#burger[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
#burger[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-0.34375rem) rotate(-45deg); }

/* Mounted only while open or closing. It floods out of the burger as a
   circle; the rows rise out of their masks and never fade, so contrast holds
   on every frame. */
#menu-panel {
  position: fixed; inset: 0; display: flex; height: 100dvh; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--accent); color: #fff;
  padding: 7rem 1.25rem 2.5rem;
  will-change: clip-path;
}
#menu-panel[hidden] { display: none; }
#menu-panel nav { display: flex; flex: 1; flex-direction: column; }
#menu-panel nav ul { display: flex; flex-direction: column; gap: 0.25rem; }
#menu-panel nav li { overflow: hidden; }
#menu-panel nav a {
  display: flex; align-items: baseline; gap: 1rem; padding-block: 0.25rem;
  font-size: clamp(2.5rem, 12vw, 4rem); line-height: var(--leading-display);
  font-weight: 300; letter-spacing: -0.03em;
}
#menu-panel nav a .num {
  font-size: 0.875rem; line-height: var(--leading-body); font-weight: 500;
  letter-spacing: normal; opacity: 0.85;
}
#menu-panel .menu-foot { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
#menu-panel .mask { overflow: hidden; }
#menu-panel .menu-cta {
  display: flex; height: 3.375rem; width: 100%; align-items: center; justify-content: space-between;
  border-radius: var(--corner-action); border: 1px solid var(--action-secondary-border);
  background: var(--action-secondary); padding-right: 0.125rem; padding-left: 2rem;
  font-size: 1.25rem; line-height: var(--leading-body); font-weight: 300;
  color: var(--action-secondary-foreground);
}
#menu-panel .menu-cta .disc {
  display: grid; width: 3rem; height: 3rem; flex: none; place-items: center;
  border-radius: 9999px; background: var(--accent); color: #fff;
}
#menu-panel .menu-cta .disc svg { width: 1rem; height: 1rem; }
#menu-panel .menu-socials { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
#menu-panel .menu-socials a {
  display: inline-flex; min-height: 1.5rem; align-items: center;
  font-size: 1rem; line-height: var(--leading-body); font-weight: 300; opacity: 0.85;
  transition: opacity var(--duration-fast) var(--ease-entrance);
}
#menu-panel .menu-socials a:hover { opacity: 1; }

/* ==========================================================================
   THE BUTTON — the design's only action shape. Heights come straight from the
   mockup's frames (48 plain, 54 with the arrow disc).
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--corner-action); border: 1px solid transparent;
  font-size: 1.25rem; line-height: var(--leading-body); font-weight: 300;
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-entrance),
              background-color var(--duration-fast) var(--ease-entrance),
              border-color var(--duration-fast) var(--ease-entrance);
  height: 3rem; padding-inline: 2rem;
}
.btn.primary {
  background: var(--action-primary); border-color: var(--action-primary-border);
  color: var(--action-primary-foreground);
}
.btn.primary:hover { background: var(--action-primary-border); }
.btn.secondary {
  background: var(--action-secondary); border-color: var(--action-secondary-border);
  color: var(--action-secondary-foreground);
}
.btn.secondary:hover { background: var(--action-secondary-border); }
.btn.arrow { height: 3.375rem; gap: 0.625rem; padding-right: 0.125rem; padding-left: 2rem; }
.btn .disc {
  display: grid; width: 3rem; height: 3rem; flex: none; place-items: center;
  border-radius: 9999px; background: var(--action-secondary); color: var(--action-secondary-foreground);
}
.btn .disc svg { width: 1rem; height: 1rem; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
main { display: block; }
.eyebrow {
  font-size: 0.875rem; line-height: var(--leading-body); font-weight: 500;
  color: var(--accent); text-transform: uppercase;
}
.display { font-size: 2.25rem; line-height: var(--leading-display); font-weight: 300; }
.lead { font-size: 1rem; line-height: var(--leading-body); font-weight: 300; }

/* ---- HERO ---- */
#hero {
  position: relative; display: flex; min-height: 100lvh; flex-direction: column;
  gap: 2rem; overflow: hidden;
  border-radius: 0 0 var(--corner-section) var(--corner-section);
  background: var(--surface-section);
  padding: 7rem 1.25rem 3rem;
}
#hero h1 { font-size: 2.5rem; line-height: var(--leading-display); font-weight: 300; }
/* Every hero block but the scene waits for the curtain: invisible (and under
   the opaque panel anyway) until it lifts. */
#hero .await { opacity: 0; }
/* `z-index: 10` is load-bearing: the markup is in mobile order, so the scene's
   canvas comes AFTER the copy in the DOM and would otherwise paint over it once
   both are absolutely positioned at lg. */
#hero-copy { position: relative; z-index: 10; }
#hero-copy .stack { display: flex; flex-direction: column; gap: 1.5rem; }
#hero-copy .head { display: flex; flex-direction: column; gap: 1rem; }
#hero-actions-slot { position: relative; z-index: 10; }
#hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
#hero-actions .btn { width: 11.25rem; }
#hero-scene {
  pointer-events: none; margin-inline: -1.25rem; height: 40lvh;
}
#hero-scene canvas, #contact-scene canvas { display: block; width: 100%; height: 100%; }
#hero-rule { border-top: 1px solid var(--border-subtle); }
#hero-trust {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 1rem; line-height: var(--leading-body); color: var(--accent);
}
#hero-trust .tick { height: 1px; width: 3.125rem; background: var(--accent); }
#hero-chips { display: flex; flex-wrap: wrap; gap: 0.25rem; }
#hero-chips li {
  border-radius: var(--corner-chip); border: 1px solid var(--border-subtle);
  background: var(--surface-glass-subtle);
  padding: 0.75rem 1.25rem; font-size: 0.875rem; line-height: var(--leading-body); font-weight: 300;
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
}

/* ---- WHY DANTORA — one viewport of plain white between two mint panels.
   `overflow: hidden` clips the trail; without it a card spawned near an edge
   spills over the hero above and Services below. ---- */
#why { position: relative; height: 100lvh; overflow: hidden; background: var(--background); }
#trail { position: relative; height: 100%; }
#trail .cards { pointer-events: none; position: absolute; inset: 0; }
#trail .card { position: absolute; top: 0; left: 0; will-change: transform; }
#trail .card img {
  width: 13.5rem; height: 17rem; max-width: none;
  border-radius: var(--corner-card); object-fit: cover;
}
#why-copy {
  position: absolute; top: 50%; left: 50%;
  display: flex; width: min(100% - 2.5rem, 44.75rem);
  translate: -50% -50%;
  flex-direction: column; align-items: center; gap: 2rem; text-align: center;
}
#why-copy .head { display: flex; width: 100%; flex-direction: column; align-items: center; gap: 1rem; }
#why-copy .head > *, #why-copy > .lead { width: 100%; }
#why-copy .why-actions { display: flex; align-items: center; gap: 1rem; }
#why-copy .why-actions .btn { width: 11.25rem; }

/* ---- SERVICES — a four-viewport runway with a sticky panel ---- */
#services { position: relative; background: var(--background); }
#services-runway { position: relative; height: 400lvh; }
#services-panel {
  position: sticky; top: 0; height: 100lvh; overflow: hidden;
  border-radius: var(--corner-section) var(--corner-section) 0 0;
  background: var(--surface-section);
}
#services-head { display: flex; flex-direction: column; gap: 1rem; padding: 6rem 1.25rem 0; }
#services-rail {
  position: absolute; top: 46%; right: 0; bottom: 1.25rem; left: 1.25rem;
  display: flex; gap: 0.625rem; will-change: transform;
}
.svc-card {
  position: relative; display: flex; height: 100%; width: 78vw; max-width: 22rem;
  flex: none; flex-direction: column; justify-content: space-between;
  overflow: hidden; border-radius: var(--corner-card); padding: 1.5rem;
}
.svc-card.lime { border: 1px solid var(--action-secondary-border); background: var(--action-secondary); }
.svc-card.photo { color: #fff; }
.svc-card.brand { background: var(--accent); color: #fff; }
.svc-card > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.svc-card .top { position: relative; z-index: 10; display: flex; flex-direction: column; gap: 1rem; }
.svc-card .idx { font-size: 1rem; line-height: var(--leading-body); }
.svc-card h3 { font-size: 1.5rem; line-height: var(--leading-display); font-weight: 300; }
.svc-card ul { position: relative; z-index: 10; display: flex; flex-direction: column; gap: 1rem; }
.svc-card ul li { display: flex; flex-direction: column; gap: 1rem; }
.svc-card ul .rule { height: 1px; width: 100%; background: var(--border-subtle); }
.svc-card ul .item {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 1rem; line-height: var(--leading-body);
}
.svc-card ul .item svg { width: 1.1875rem; height: 1.1875rem; }
/* `align-items: flex-end`, not center: Figma places the label on the row's
   baseline next to the ring, and centring drops the word below the line the
   lime card's last list row sits on. */
.svc-card .discover { position: relative; z-index: 10; display: flex; align-items: flex-end; justify-content: space-between; }
.svc-card .discover p { font-size: 1rem; line-height: var(--leading-body); }
/* A 72px RING — 1px white stroke, no fill — not the filled lime disc. */
.svc-card .ring {
  display: grid; width: 3.5rem; height: 3.5rem; place-items: center;
  border-radius: 9999px; border: 1px solid #fff; color: #fff;
}
.svc-card .ring svg { width: 1.1875rem; height: 1.1875rem; }

/* ---- ABOUT — rides up over Services ---- */
#about {
  position: relative; z-index: 10; margin-top: -100lvh;
  border-radius: var(--corner-section) var(--corner-section) 0 0;
  background: var(--surface-section-deep);
  padding: 4rem 1.25rem;
}
#about-banner { position: relative; height: 16rem; overflow: hidden; border-radius: var(--corner-card); }
#about-banner .layer { position: absolute; left: 0; right: 0; will-change: transform; }
#about-banner img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
#about-row { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 2.5rem; }
#about-left { display: flex; flex-direction: column; gap: 2rem; }
#about-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0.625rem; row-gap: 2.5rem; }
#about-stats > div {
  display: flex; flex-direction: column; gap: 1rem;
  border-left: 1px solid var(--accent); padding-left: 1rem;
}
#about-stats dd { font-size: 2.5rem; line-height: var(--leading-display); font-weight: 300; }
#about-stats dt { font-size: 0.875rem; line-height: var(--leading-body); font-weight: 300; }
#about-right { display: flex; flex-direction: column; gap: 2.5rem; }
#about-para { font-size: 1.375rem; line-height: var(--leading-body); font-weight: 300; }
#about-para .muted { color: var(--foreground-muted); }
#about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

/* ---- TEAM — sticky, so Contact rides up over it ---- */
#team {
  position: sticky; top: 0; z-index: 10;
  display: flex; height: 100lvh; flex-direction: column; justify-content: center;
  background: var(--surface-section-deep); padding-top: 18%;
}
#team-box { display: flex; height: 74%; flex-direction: column; }
/* `touch-action: manipulation` (pan-x + pan-y): touch is left entirely to
   native scrolling, so a finger must be allowed to pan BOTH axes — horizontal
   moves the rail, vertical scrolls the page. No scroll-snap: it re-snaps
   whenever the section's height changes as it sticks, and fights the glide. */
#team-rail {
  display: flex; min-height: 0; flex: 1; cursor: grab; gap: 0.6875rem;
  overflow-x: auto; overscroll-behavior-x: contain; padding-left: 1.25rem;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
  scroll-behavior: auto; scrollbar-width: none; -ms-overflow-style: none;
}
#team-rail:active { cursor: grabbing; }
#team-rail::-webkit-scrollbar { display: none; }
#team-rail img { pointer-events: none; }
.team-intro {
  display: flex; height: 100%; width: 80vw; max-width: 22rem; flex: none;
  flex-direction: column; justify-content: space-between;
  border-radius: var(--corner-card); background: var(--accent); padding: 1.5rem; color: #fff;
}
.team-intro .head { display: flex; flex-direction: column; gap: 2rem; }
.team-intro .eyebrow { color: inherit; opacity: 0.85; }
.team-intro h2 { font-size: 1.5rem; line-height: var(--leading-display); font-weight: 300; }
.team-intro ul { display: flex; gap: 0.75rem; }
.team-intro ul a { display: block; width: 3rem; height: 3rem; transition: opacity var(--duration-fast) var(--ease-entrance); }
.team-intro ul a:hover { opacity: 0.8; }
.team-intro ul img { width: 100%; height: 100%; }
.team-card {
  position: relative; height: 100%; width: 70vw; max-width: 20.75rem; flex: none;
  overflow: hidden; border-radius: var(--corner-card);
}
.team-card img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* `gap` is load-bearing: cap-height trimming removes the leading that would
   otherwise separate the two lines, so without it name and role collide. */
.team-card figcaption {
  position: absolute; left: 2rem; right: 2rem; bottom: 2rem;
  display: flex; height: 4rem; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem; border-radius: var(--corner-panel); background: var(--surface-glass);
  padding-inline: 1.25rem; text-align: center;
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
}
.team-card figcaption .n { font-size: 1rem; line-height: var(--leading-body); font-weight: 500; }
.team-card figcaption .r { font-size: 0.875rem; line-height: var(--leading-body); font-weight: 300; color: var(--foreground-subtle); }
.team-more {
  display: flex; height: 100%; width: 70vw; max-width: 20.75rem; flex: none;
  flex-direction: column; justify-content: space-between;
  border-radius: var(--corner-card); border: 1px solid var(--action-secondary-border);
  background: var(--action-secondary); padding: 1.5rem; color: var(--action-secondary-foreground);
}
.team-more p { font-size: 1.5rem; line-height: var(--leading-display); font-weight: 300; }
.team-more .foot { display: flex; align-items: flex-end; justify-content: space-between; }
.team-more .foot .label { font-size: 1rem; line-height: var(--leading-body); font-weight: 300; }
.team-more .ring {
  display: grid; width: 4.5rem; height: 4.5rem; place-items: center;
  border-radius: 9999px; border: 1px solid currentColor;
}
.team-more .ring svg { width: 1.1875rem; height: 1.1875rem; }
#team-bar { position: relative; margin: 1.5rem 1.25rem 0; height: 0.125rem; flex: none; background: var(--border-subtle); }
#team-bar .fill { height: 100%; transform-origin: left; background: var(--accent); }

/* ---- CONTACT — rides up over Team ---- */
#contact {
  position: relative; z-index: 20;
  display: flex; min-height: 100lvh; flex-direction: column; gap: 2.5rem;
  overflow: hidden; border-radius: var(--corner-section) var(--corner-section) 0 0;
  background: var(--surface-section); padding: 7rem 1.25rem 5rem;
}
/* A second WebGL context on a phone is a real cost and the form is what matters
   on that screen. */
#contact-scene { display: none; }
#contact-copy { display: flex; flex-direction: column; gap: 1.5rem; }
#contact-copy .head { display: flex; flex-direction: column; gap: 1rem; }
#form-panel {
  display: flex; flex-direction: column; gap: 2rem;
  border-radius: var(--corner-card); background: var(--surface-glass-strong);
  padding: 1.5rem;
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
}
#form-panel .head { display: flex; flex-direction: column; gap: 1.5rem; }
#form-panel h3 { font-size: 1.75rem; line-height: var(--leading-display); font-weight: 300; }
#form-panel form { display: flex; flex: 1; flex-direction: column; gap: 1.5rem; }
#form-panel .field { display: flex; flex-direction: column; gap: 1rem; }
#form-panel label {
  font-size: 0.875rem; line-height: var(--leading-body); font-weight: 500;
  color: var(--accent); text-transform: uppercase;
}
#form-panel input, #form-panel textarea {
  width: 100%; border-radius: var(--corner-panel); border: 1px solid var(--border-subtle);
  background: transparent; padding: 1.5rem 2rem;
  font-size: 1rem; line-height: var(--leading-body); font-weight: 300;
}
#form-panel textarea { resize: none; }
#form-panel input::placeholder, #form-panel textarea::placeholder { color: var(--foreground-subtle); }
#form-panel input:focus-visible, #form-panel textarea:focus-visible { border-color: var(--accent); outline: 2px solid transparent; outline-offset: 2px; }
#form-panel .consent { font-size: 1rem; line-height: var(--leading-body); font-weight: 300; color: var(--foreground-subtle); }
#form-panel .consent a { color: var(--foreground); text-decoration: underline; }
/* Height from the mockup's 54px frame, not from padding — padding around a 48px
   disc lands at 80 and blows the panel out of its box. `margin-top: auto` pins
   it to the bottom, as in Figma. */
#form-submit {
  margin-top: auto; display: flex; height: 3.375rem; flex: none;
  align-items: center; justify-content: space-between;
  border-radius: var(--corner-action); border: 1px solid var(--action-primary-border);
  background: var(--action-primary); padding-right: 0.125rem; padding-left: 2rem;
  font-size: 1.25rem; line-height: var(--leading-body); font-weight: 300;
  color: var(--action-primary-foreground);
  transition: color var(--duration-fast) var(--ease-entrance),
              background-color var(--duration-fast) var(--ease-entrance),
              border-color var(--duration-fast) var(--ease-entrance);
}
#form-submit:hover { background: var(--action-primary-border); }
#form-submit .disc {
  display: grid; width: 3rem; height: 3rem; flex: none; place-items: center;
  border-radius: 9999px; background: var(--action-secondary); color: var(--action-secondary-foreground);
}
#form-submit .disc svg { width: 1rem; height: 1rem; }

/* ==========================================================================
   md — 768
   ========================================================================== */
@media (min-width: 768px) {
  #header { padding-inline: 2.5rem; }
  #menu-panel { padding-inline: 2.5rem; }
  #hero { padding-inline: 2.5rem; }
  #hero h1 { font-size: 3rem; }
  #hero-scene { margin-inline: -2.5rem; }
  #why-copy .display, #services-head .display, #contact-copy .display { font-size: 3rem; }
  #services-head { padding-inline: 2.5rem; }
  #services-rail { left: 2.5rem; }
  #about { padding-inline: 2.5rem; }
  #about-banner { height: 24rem; }
  #about-para { font-size: 1.75rem; }
  #team-rail { padding-left: 2.5rem; }
  #team-bar { margin-inline: 2.5rem; }
  #team { padding-top: 12%; }
  #contact { padding-inline: 2.5rem; }
  #form-panel { padding: 2rem; }
}

/* ==========================================================================
   lg — 1024. The 1440 artboard: horizontal offsets in rem, vertical ones as a
   percentage of the artboard's 800px height, so the composition keeps Figma's
   proportions at any desktop width.
   ========================================================================== */
@media (min-width: 1024px) {
  #header nav.bar { display: flex; }
  #header-cta-slot { display: block; }
  #menu-wrap { display: none; }

  #hero { display: block; height: 100lvh; min-height: 0; padding: 0; }
  #hero h1 { font-size: 3.75rem; }
  #hero-copy { position: absolute; top: 28.55%; left: 2.5rem; width: 44.75rem; }
  #hero-copy .stack { gap: 3rem; }
  #hero-copy .head { gap: 2rem; }
  #hero-copy .lead { width: 30.875rem; }
  #hero-actions-slot { position: absolute; top: 89.375%; left: 2.5rem; }
  #hero-scene { position: absolute; top: 0; bottom: 0; left: 22.5625rem; width: 71.25rem; height: auto; margin: 0; }
  #hero-rule-slot { position: absolute; top: 78.625%; right: 2.5rem; left: 2.5625rem; }
  #hero-trust-slot { position: absolute; top: 83.625%; left: 2.5rem; }
  #hero-chips-slot { position: absolute; top: 83.625%; left: 55.5625rem; width: 31.9375rem; }
  #hero-chips { justify-content: flex-end; }
  #hero-chips li { padding: 1rem 2rem; font-size: 1rem; }

  #why-copy { gap: 3rem; }
  #why-copy .head { gap: 2rem; }
  #why-copy .head .display { width: 39.25rem; font-size: 3.75rem; }
  #why-copy > .lead { width: 27.625rem; }

  #services-head { display: block; padding: 0; }
  #services-head .eyebrow-slot { position: absolute; top: 14%; left: 66.75rem; width: 20.75rem; }
  /* 43.5rem, not Figma's 42.75 — split words are a hair wider than laid-out
     text, and at 42.75 the heading tipped onto a third line the card rail then
     covered. */
  #services-head .title-slot { position: absolute; top: 14%; left: 2.5rem; width: 43.5rem; }
  #services-head .desc-slot { position: absolute; top: 21%; left: 66.75rem; width: 20.75rem; }
  #services-head .display { font-size: 3.75rem; }
  #services-rail { top: 39%; bottom: 2.5rem; width: 85rem; }
  .svc-card { max-width: none; padding: 2rem; }
  .svc-card.lime { width: 35.0625rem; }
  .svc-card.photo, .svc-card.brand { width: 27.9375rem; }
  .svc-card .idx, .svc-card .discover p, .svc-card ul .item { font-size: 1.25rem; }
  .svc-card h3 { font-size: 2rem; }
  .svc-card .top { gap: 1.5rem; }
  .svc-card ul { width: 31.0625rem; gap: 1.5rem; }
  .svc-card ul li { gap: 1.5rem; }
  .svc-card .ring { width: 4.5rem; height: 4.5rem; }

  #about { height: 71.5rem; padding: 0; }
  #about-banner { position: absolute; top: 2.5rem; left: 2.5rem; height: 31.25rem; width: 85rem; }
  #about-row {
    position: absolute; top: 37.75rem; left: 2.375rem; width: 85.125rem;
    margin-top: 0; flex-direction: row; align-items: center; justify-content: space-between; gap: 0;
  }
  #about-left { width: 28.0625rem; gap: 5.5625rem; }
  #about-stats { height: 17.125rem; row-gap: 5.625rem; }
  #about-stats > div { gap: 2.375rem; padding-left: 1.5rem; }
  #about-stats dd { font-size: 3.75rem; }
  #about-stats dt { font-size: 1rem; }
  #about-right { width: 49.3125rem; gap: 8.375rem; }
  #about-para { font-size: 2.25rem; }

  #team { padding-top: 6%; }
  #team-box { height: 86%; }
  .team-intro { width: 27.9375rem; max-width: none; padding: 2rem; }
  .team-intro h2 { width: 21rem; font-size: 2rem; }
  .team-intro ul a { width: 4rem; height: 4rem; }
  .team-card { width: 20.75rem; }
  .team-more { width: 20.75rem; padding: 2rem; }
  .team-more p { font-size: 2rem; }
  #team-bar { margin-top: 2.5rem; }

  #contact { display: block; height: 100lvh; min-height: 0; padding: 0; }
  #contact-scene {
    pointer-events: none; display: block;
    position: absolute; top: 0; bottom: 0; left: 7.0625rem; width: 71.125rem;
  }
  #contact-copy { position: absolute; top: 35.25%; left: 2.5625rem; width: 42.75rem; gap: 3rem; }
  #contact-copy .head { gap: 2rem; }
  #contact-copy .display { font-size: 3.75rem; }
  #contact-copy .lead { width: 27.6875rem; }
  #form-panel {
    position: absolute; top: 1rem; right: 2.5rem; bottom: 2.5rem;
    width: 35.0625rem; gap: 3rem;
  }
  #form-panel h3 { font-size: 2.25rem; }
}
/* ==========================================================================
   BIOAMP SKIN v5 — Direction C colours with the Cascade type (Fraunces,
   Geist, Geist Mono), the original logo, 10% side gutters on desktop, a type
   scale that stops growing at 18px, equal step cards, and the
   sections the template does not have (What we do, Inside DETECT, FAQ,
   footer). The template's motion engine is untouched; the cursor trail is
   removed at the client's request.
   ========================================================================== */
:root { --gut: 1.25rem; }
@media (min-width: 768px) { :root { --gut: 2.5rem; } }
@media (min-width: 1024px) {
  :root { --gut: 10vw; }
  /* The template scales rem with the viewport (1.111vw), which made every
     word grow on large monitors. Capped: 18px at 1440 and above. */
  html { font-size: clamp(15px, 1.25vw, 18px); }
}

/* ---- families ---- */
#hero h1, .display, .svc-card h3, #about-para, #about-stats dd, .team-intro h2,
.team-more p, #form-panel h3, #pre-count, #menu-panel nav a, .qa summary {
  font-family: var(--font-display); letter-spacing: -0.02em; font-weight: 300;
}
.eyebrow, #form-panel label, .svc-card .idx, #hero-trust, .k, .ill-mono {
  font-family: var(--font-mono); letter-spacing: 0.12em;
}
.ill-sans { font-family: var(--font-sans); }
.ill-serif { font-family: var(--font-display); font-weight: 300; }

/* ---- scale: small screens first ---- */
.eyebrow { font-size: 0.6875rem; font-weight: 500; }
#hero h1 { font-size: 2.5rem; letter-spacing: -0.03em; }
.display { font-size: 1.75rem; letter-spacing: -0.03em; }
.lead { font-size: 0.9375rem; line-height: 1.5; }
.btn, #menu-panel .menu-cta, #form-submit { font-size: 1rem; font-weight: 400; }
#form-panel label { font-size: 0.6875rem; }
#hero-trust { font-size: 0.6875rem; text-transform: uppercase; }
#hero-chips li { font-size: 0.8125rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.svc-card h3 { font-size: 1.25rem; }
.svc-card .idx { font-size: 0.75rem !important; text-transform: uppercase; }
#about-para { font-size: 1.125rem; line-height: 1.35; }
#about-stats dd { font-size: 2rem; }
.team-intro h2, .team-more p { font-size: 1.25rem; }
#form-panel h3 { font-size: 1.375rem; }

/* ---- icons ---- */
.ic, .ico .bioamp-icon, .svc-card .big-ico .bioamp-icon {
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
#hero-chips .ic { width: 1rem; height: 1rem; color: var(--accent); flex: none; }
.ico { width: 2.75rem; height: 2.75rem; border-radius: 9999px; background: var(--action-secondary); color: var(--accent); display: grid; place-items: center; flex: none; }
.ico .bioamp-icon { width: 1.375rem; height: 1.375rem; }

/* ---- logo ---- */
#header nav.bar { width: auto; }
#header nav.bar a { white-space: nowrap; font-size: 0.9375rem; }
#header .logo { width: auto; gap: 0.625rem; padding-left: 0.5rem; padding-right: 1.25rem; }
#header .logo .bi { width: 2.5rem; height: 2.5rem; }
#header .logo .bw { width: 10.5rem; height: 1.015rem; }
.mark-tile { --ic-a: #EEF1EA; --ic-b: var(--raw-culture); }
.mark-tile .brand-mark-light { width: 1.75rem; height: 1.75rem; }
#form-panel .mark-tile { width: 3rem; height: 3rem; }

/* ---- WHAT WE DO ---- */
#what { position: relative; display: flex; flex-direction: column; gap: 3rem; padding: 5.5rem var(--gut) 3.5rem; }
#what-top { display: flex; flex-direction: column; gap: 2.5rem; }
#what-copy { display: flex; flex-direction: column; gap: 1.25rem; }
#what-copy .lead { max-width: 32rem; }
#what-art { margin: 0; position: relative; border-radius: var(--corner-card); background: var(--surface-section); padding: 1.25rem 1.25rem 2.5rem; }
#what-art img { display: block; width: 100%; height: auto; }
#what-art figcaption { position: absolute; left: 1.25rem; bottom: 1rem; font: 500 0.625rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--foreground-muted); }
#what-facts { list-style: none; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--border-subtle); }
.fact { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 0; border-bottom: 1px solid var(--border-subtle); }
.fact h3, #why-steps h3 { font: 500 0.9375rem/1.25 var(--font-sans); margin-bottom: 0.375rem; text-box: none; }
.fact p, #why-steps p { font-size: 0.875rem; line-height: 1.45; font-weight: 300; color: var(--foreground-muted); text-box: none; }

/* ---- THE PROBLEM (no cursor trail) ---- */
#why { height: auto; }
#trail { height: auto; padding: 5.5rem var(--gut); }
#why-copy { position: relative; top: auto; left: auto; translate: none; width: 100%; max-width: 52rem; margin: 0 auto; gap: 1.75rem; }
#why-copy .head { gap: 1.25rem; }
#why-steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 0.75rem; width: 100%; margin-top: 0.75rem; text-align: left; }
#why-steps li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border-radius: var(--corner-card); background: var(--surface-section); }
#why-steps li:last-child .ico { background: #fff; }

/* ---- HOW IT WORKS: every card the same size ---- */
.svc-card, .svc-card.lime, .svc-card.photo, .svc-card.brand { width: min(78vw, 20.5rem); max-width: none; }
.svc-card.fig { background: #fff; border: 1px solid var(--border-subtle); color: var(--foreground); }
.svc-card.fig.agar { background: var(--surface-section-deep); border-color: transparent; }
.svc-card ul { width: auto !important; }
.svc-card.lime ul .item { font-size: 0.9375rem; }
.svc-card.lime ul .item b { font: 500 0.625rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; margin-right: 0.5rem; }
.svc-card .big-ico { position: relative; z-index: 10; width: 5rem; height: 5rem; border-radius: 9999px; display: grid; place-items: center; background: var(--action-secondary); color: var(--accent); }
.svc-card.brand .big-ico { background: rgba(158,216,186,0.14); color: var(--action-secondary); }
.svc-card.agar .big-ico { background: #fff; }
.svc-card .big-ico .bioamp-icon { width: 2.375rem; height: 2.375rem; stroke-width: 1.25; }
.svc-card .desc { position: relative; z-index: 10; font-size: 0.875rem; line-height: 1.5; font-weight: 300; color: var(--foreground-muted); text-box: none; }
.svc-card.brand .desc { color: rgba(255,255,255,0.78); }

/* ---- TECHNOLOGY (about) ---- */
#about-banner img { object-position: 60% 40%; }

/* ---- INSIDE DETECT ---- */
#cascade { position: relative; z-index: 5; background: var(--background); padding: 1rem calc(var(--gut) * 0.5); }
#cascade-panel {
  position: relative; display: flex; flex-direction: column; gap: 2rem;
  background: var(--accent); color: #fff; border-radius: var(--corner-section);
  padding: 4rem calc(var(--gut) * 0.5 + 1.25rem) 2.5rem; overflow: hidden;
}
#cascade-head { display: flex; flex-direction: column; gap: 1.25rem; }
#cascade-head > div { display: flex; flex-direction: column; gap: 1.25rem; }
#cascade .eyebrow { color: var(--action-secondary); }
#cascade .display { color: #fff; }
#cascade .lead { color: rgba(255,255,255,0.72); }
#cascade-fig { min-height: 0; display: grid; place-items: center; }
#cx-svg, .cascade-image { display: block; width: 100%; height: auto; overflow: visible; }
#cx-svg .e { fill: none; stroke: var(--action-secondary); stroke-width: 1.3; opacity: 0.6; }
#cx-svg .n { fill: #EEF1EA; transform-box: fill-box; transform-origin: center; }
#cx-svg .trig, #cx-svg .leaf { fill: var(--action-secondary); }
#cx-svg .cx-pulses circle { fill: #fff; }
#cascade-steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
#cascade-steps li { display: flex; flex-direction: column; gap: 0.625rem; opacity: 0.4; transition: opacity var(--duration-normal) var(--ease-entrance); }
#cascade-steps li.on { opacity: 1; }
#cascade-steps .bar { display: block; height: 2px; background: rgba(255,255,255,0.14); border-radius: 2px; overflow: hidden; }
#cascade-steps .bar i { display: block; height: 100%; width: 0; background: var(--action-secondary); }
#cascade-steps .k { font-size: 0.6875rem; font-weight: 500; text-transform: uppercase; color: var(--action-secondary); }
#cascade-steps p:not(.k) { font-size: 0.875rem; line-height: 1.5; font-weight: 300; color: rgba(255,255,255,0.78); text-box: none; }

/* ---- team portraits: initials until the WordPress photo loads ---- */
.team-card { background: var(--surface-section); }
.team-card::before {
  content: attr(data-i); position: absolute; inset: 0 0 6rem;
  display: grid; place-items: center;
  font: 300 4.5rem/1 var(--font-display); letter-spacing: -0.03em; color: var(--raw-sage);
}
#team-rail { padding-left: var(--gut); }
#team-bar { margin-left: var(--gut); margin-right: var(--gut); }
.form-status { font-size: 0.875rem; line-height: 1.4; color: var(--accent); min-height: 1.2em; }
#menu-panel .menu-socials a { text-transform: none; }

/* ---- FAQ ---- */
#faq { position: relative; z-index: 20; background: var(--background); display: flex; flex-direction: column; gap: 2.5rem; padding: 5.5rem var(--gut) 4.5rem; }
#faq-head { display: flex; flex-direction: column; gap: 1.25rem; }
#faq-body { display: flex; flex-direction: column; gap: 2.5rem; }
.qa { border-top: 1px solid var(--border-subtle); }
.qa:last-child { border-bottom: 1px solid var(--border-subtle); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.25rem 0; font-size: 1.0625rem; line-height: 1.25; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; display: grid; width: 2.25rem; height: 2.25rem; flex: none; place-items: center;
  border-radius: 9999px; border: 1px solid var(--border-subtle); font: 300 1.125rem/1 var(--font-sans); color: var(--accent);
  transition: transform var(--duration-normal) var(--ease-entrance), background-color var(--duration-fast) var(--ease-entrance);
}
.qa[open] summary::after { transform: rotate(45deg); background: var(--action-secondary); border-color: var(--action-secondary-border); }
.qa .ans { padding: 0 3.25rem 1.5rem 0; }
.qa .ans p { font-size: 0.9375rem; line-height: 1.6; font-weight: 300; color: var(--foreground-muted); text-box: none; }
#faq-refs { display: flex; flex-direction: column; gap: 1rem; }
#faq-refs ol { list-style: decimal; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
#faq-refs li { font-size: 0.8125rem; line-height: 1.45; font-weight: 300; color: var(--foreground-muted); text-box: none; }
#faq-refs a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- FOOTER ---- */
#footer {
  position: relative; z-index: 20; background: var(--accent); color: #fff;
  border-radius: var(--corner-section) var(--corner-section) 0 0;
  padding: 4rem var(--gut) 2rem; display: flex; flex-direction: column; gap: 2.5rem;
  --ic-a: #EEF1EA; --wm-a: #EEF1EA; --ic-b: #9DB8BC; --wm-b: #9DB8BC;
}
#footer .eyebrow { color: var(--action-secondary); margin-bottom: 1.25rem; }
.f-top { display: flex; flex-direction: column; gap: 1.25rem; }
.f-logo { display: flex; align-items: center; gap: 0.75rem; }
.f-logo .bi { width: 2.75rem; height: 2.75rem; }
.f-logo .bw { width: 12rem; height: 1.16rem; }
.f-tag { max-width: 26rem; font-size: 0.875rem; line-height: 1.5; font-weight: 300; opacity: 0.8; text-box: none; }
.f-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.f-cols ul { display: flex; flex-direction: column; gap: 0.875rem; }
.f-cols li { font-size: 0.875rem; line-height: 1.3; font-weight: 300; }
.f-cols a:hover { color: var(--action-secondary); }
.f-fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,0.16); padding-top: 1.25rem; font-size: 0.75rem; font-weight: 300; opacity: 0.75; }

/* ---- the about block and team at the tablet gutter ---- */
#about { padding-inline: var(--gut); }

@media (min-width: 768px) {
  #hero h1 { font-size: 3.25rem; }
  .display { font-size: 2rem; }
  #what-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
  #cascade-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  #cascade-head { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 3rem; }
  #cascade-head .lead { width: 20rem; flex: none; }
  #cascade-head > div { width: 30rem; flex: none; }
}

/* ---- desktop: everything inside 10% gutters ---- */
@media (min-width: 1024px) {
  #header { padding-inline: var(--gut); }

  /* The hero line is the page's headline: the one size allowed to stay big. */
  #hero h1 { font-size: 4.25rem; line-height: 1.02; }
  #hero-copy { left: var(--gut); top: 24%; width: min(48rem, 56vw); }
  #hero-copy .stack { gap: 2.25rem; }
  #hero-copy .head { gap: 1.5rem; }
  #hero-copy .lead { width: 28rem; font-size: 1.0625rem; }
  #hero-actions-slot { left: var(--gut); }
  #hero-rule-slot { left: var(--gut); right: var(--gut); }
  #hero-trust-slot { left: var(--gut); }
  #hero-chips-slot { left: auto; right: var(--gut); width: 36rem; }
  #hero-chips li { font-size: 0.8125rem; padding: 0.8125rem 1.25rem; }
  #hero-scene { left: 34vw; width: 74vw; }

  .display, #why-copy .head .display, #services-head .display, #contact-copy .display, #faq-head .display { font-size: 2.25rem; }
  .lead { font-size: 0.9375rem; }

  #what { padding: 8rem var(--gut) 5.5rem; gap: 4.5rem; }
  #what-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4.5rem; align-items: center; }
  #what-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 2rem; border-top: 0; }
  .fact { flex-direction: column; border-bottom: 0; border-top: 1px solid var(--border-subtle); padding: 1.5rem 0 0; }

  #trail { padding: 7rem var(--gut); }
  #why-copy .head .display { width: 30rem; }
  #why-copy > .lead { width: 34rem; }
  #why-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
  #why-steps li { flex-direction: column; }

  #services-head .title-slot { left: var(--gut); top: 13%; width: 34rem; }
  #services-head .eyebrow-slot { left: auto; right: var(--gut); top: 13%; width: 21rem; }
  #services-head .desc-slot { left: auto; right: var(--gut); top: 18.5%; width: 21rem; }
  #services-rail { left: var(--gut); width: calc(100vw - 2 * var(--gut)); top: 38%; bottom: 2.5rem; }
  /* One size for every card, close to square, as the smaller cards were in v4. */
  .svc-card, .svc-card.lime, .svc-card.photo, .svc-card.brand { width: 26rem; padding: 2rem; }
  .svc-card .idx, .svc-card .discover p { font-size: 0.75rem; }
  .svc-card h3 { font-size: 1.375rem; }
  .svc-card .top { gap: 1rem; }
  .svc-card ul { gap: 1rem; }
  .svc-card .ring { width: 3.5rem; height: 3.5rem; }
  .svc-card .big-ico { width: 5.5rem; height: 5.5rem; }
  /* Same icon height on every card, whatever the length of its text. */
  .svc-card.step .big-ico { position: absolute; top: 50%; left: 2rem; translate: 0 -50%; }
  .svc-card .big-ico .bioamp-icon { width: 2.625rem; height: 2.625rem; }

  #about { height: auto; padding: 2.5rem var(--gut) 7rem; }
  #about-banner { position: relative; top: auto; left: auto; width: 100%; height: 26rem; }
  #about-row { position: relative; top: auto; left: auto; width: 100%; margin-top: 5rem; align-items: center; }
  #about-left { width: 24rem; gap: 3rem; }
  #about-stats { height: auto; row-gap: 2.75rem; }
  #about-stats > div { gap: 1rem; padding-left: 1.25rem; }
  #about-stats dd { font-size: 2.5rem; }
  #about-stats dt { font-size: 0.8125rem; }
  #about-right { width: min(33rem, 46%); gap: 3rem; }
  #about-para { font-size: 1.375rem; }

  #cascade { padding: 0; }
  #cascade-runway { position: relative; height: 260lvh; }
  #cascade-panel { position: sticky; top: 0; height: 100lvh; border-radius: var(--corner-section); padding: 7rem var(--gut) 3rem; justify-content: space-between; gap: 1.5rem; }
  #cascade-fig { flex: 1; }
  #cx-svg, .cascade-image { width: 100%; height: auto; max-height: 52vh; }

  #team { padding-top: 6%; }
  .team-intro { width: 24rem; padding: 1.75rem; }
  .team-intro h2 { width: auto; font-size: 1.375rem; }
  .team-intro ul a { width: 3.25rem; height: 3.25rem; }
  .team-card { width: 18rem; }
  .team-more { width: 18rem; padding: 1.75rem; }
  .team-more p { font-size: 1.375rem; }

  #contact-scene { left: 15vw; width: 60vw; }
  #contact-copy { left: var(--gut); top: 36%; width: min(32rem, 34vw); gap: 2rem; }
  #contact-copy .head { gap: 1.5rem; }
  #contact-copy .lead { width: 24rem; }
  #form-panel { right: var(--gut); width: 28rem; gap: 2rem; }
  #form-panel h3 { font-size: 1.5rem; }

  #faq { flex-direction: row; align-items: flex-start; gap: 5rem; padding: 7.5rem var(--gut) 6.5rem; }
  #faq-head { position: sticky; top: 8rem; width: 20rem; flex: none; gap: 1.5rem; }
  #faq-body { flex: 1; }
  .qa summary { font-size: 1.125rem; padding: 1.5rem 0; }

  #footer { display: grid; grid-template-columns: 1fr 1fr; padding: 4.5rem var(--gut) 2.5rem; row-gap: 4rem; }
  .f-fine { grid-column: 1 / -1; }
}

/* Theme asset integration and a readable layout when motion is unavailable. */
body.bioamp-home { padding: 0; }
.bioamp-home.admin-bar #header { top: calc(1rem + var(--wp-admin--admin-bar--height, 32px)); }
#about-banner .layer { top: 0; height: 100%; }
#pre-ring > svg { width: 100%; height: 100%; }
#bioamp-main > section { scroll-margin-top: 6rem; }

.bioamp-skip-link {
  position: fixed;
  z-index: 110;
  top: .5rem;
  left: .75rem;
  padding: .6rem .9rem;
  color: #fff;
  background: var(--accent);
  border-radius: .4rem;
  transform: translateY(-160%);
}
.bioamp-skip-link:focus { transform: none; }

.bioamp-icon, [data-arrow]::before, [data-arrow-svg]::before {
  display: block;
  background: currentColor;
  -webkit-mask: var(--bioamp-symbol) center / contain no-repeat;
  mask: var(--bioamp-symbol) center / contain no-repeat;
}
[data-arrow]::before, [data-arrow-svg]::before {
  --bioamp-symbol: url("../icons/arrow.svg");
  width: 1rem;
  height: 1rem;
  content: "";
}
[data-arrow-svg] { flex-shrink: 0; }
[data-arrow-svg]::before { width: 1.1875rem; height: 1.1875rem; }

html:not(.bioamp-motion) #preloader { display: none; }
html:not(.bioamp-motion) #hero .await { opacity: 1; }
html:not(.bioamp-motion) #services-runway { height: auto; }
html:not(.bioamp-motion) #services-panel { position: relative; height: auto; padding-bottom: 1.5rem; }
html:not(.bioamp-motion) #services-head {
  display: flex;
  padding: 3rem var(--gut) 1.25rem;
}
html:not(.bioamp-motion) #services-head > div { position: static; width: auto; }
html:not(.bioamp-motion) #services-rail {
  position: static;
  width: auto;
  padding-inline: var(--gut);
  overflow-x: auto;
}
html:not(.bioamp-motion) .svc-card { height: auto; min-height: 22rem; }
html:not(.bioamp-motion) #about { margin-top: 0; }
#cascade:not(.is-animated) #cascade-runway { height: auto; }
#cascade:not(.is-animated) #cascade-panel { position: relative; height: auto; }
#cascade:not(.is-animated) #cascade-steps li { opacity: 1; }
#cascade:not(.is-animated) #cascade-steps .bar i { width: 100%; }
#hero-scene.is-unavailable,
html:not(.bioamp-motion) #hero-scene { background: url("../icons/brand-mark.svg") no-repeat 64% 52% / min(20vw, 13rem) auto; }
#hero-scene.is-unavailable canvas { display: none; }

@media (max-width: 1023px) {
  html:not(.bioamp-motion) #menu-wrap { display: none; }
  html:not(.bioamp-motion) #header .hdr-left { flex-wrap: wrap; }
  html:not(.bioamp-motion) #header nav.bar { display: flex; height: auto; padding: .65rem .8rem; }
  html:not(.bioamp-motion) #header nav.bar ul { flex-wrap: wrap; gap: .5rem .8rem; }
  html:not(.bioamp-motion) #hero { padding-top: 10rem; }
}
.icon-bacteria { --bioamp-symbol: url("../icons/bacteria.svg"); }
.icon-calendar { --bioamp-symbol: url("../icons/calendar.svg"); }
.icon-capsule { --bioamp-symbol: url("../icons/capsule.svg"); }
.icon-colour { --bioamp-symbol: url("../icons/colour.svg"); }
.icon-flask { --bioamp-symbol: url("../icons/flask.svg"); }
.icon-question { --bioamp-symbol: url("../icons/question.svg"); }
.icon-sample { --bioamp-symbol: url("../icons/sample.svg"); }
.icon-shield { --bioamp-symbol: url("../icons/shield.svg"); }
.icon-timer { --bioamp-symbol: url("../icons/timer.svg"); }
.icon-tube { --bioamp-symbol: url("../icons/tube.svg"); }
