/* The subindustry page. A normal scrolling page on the site's light ground,
   unlike the deck: white cards on soft grey, navy contact block and footer. */
.sub-page {
  /* From the prototype's chrome.css, which isn't ported: its brand tokens and
     the size of the nav row this page is laid out under. They match the site's
     Tailwind deepSea / springGreen / softGrey. */
  --brand-deep-sea: #112a3f;
  --brand-green: #64db5a;
  --brand-soft-grey: #b4c1d1;
  --nav-h: 76px;

  --ink: var(--brand-deep-sea);
  --ink-soft: #3b4f63;
  --crumb: #9fb0c3;
  --ground: #f6f6f6;
  --card: #fff;
  --well: #f5f5f5;
  --line: #d4dbe3;
  --card-radius: clamp(24px, 2.6vw, 50px);
  /* Content width inside a card: the design's 1440 of 1900, with the cards
     themselves running nearly edge to edge. */
  --gutter: clamp(16px, 3.2vw, 60px);
  --inset: clamp(20px, 8.9vw, 170px);
  /* Where the copy starts inside a card once it's wide enough: centred in a
     1440px column, the contact block's width, so the two line up. Resolved
     against the space inside the card (each is a size container, see .sub-card). */
  --content-edge: calc((100cqw - 1440px) / 2);

  /* The prototype put these on <body>. The brand face comes from the site's
     own body class (next/font), so this just inherits it. */
  background: var(--ground);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 480px) {
  .sub-page {
    --nav-h: 64px;
  }
}

.sub-page a {
  color: inherit;
}

/* The site's layout already starts the page under its nav (the prototype's
   nav sat over the page, so it was padded by the nav's height). From there,
   the breadcrumb starts where the site's BreadCrumbWrapper puts its own. */
.sub {
  padding: 20px var(--gutter) 0;
}

/* Breadcrumb ----------------------------------------------------------------- */

.sub-crumbs {
  --crumb: #506579;
  /* Let the shared MaxWidthWrapper align the row with the site's navigation. */
  margin: 0 calc(-1 * var(--gutter)) 26px;
  font-size: 14px;
  color: var(--crumb);
}

/* The shared wrapper supplies sizing and Home; retain this card's row spacing. */
.sub-crumbs .gallery-breadcrumbs > div > div {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font: inherit;
  color: inherit;
}

.sub-crumbs .gallery-breadcrumbs > div > div > div {
  min-width: 0;
}

/* Preserve Home, let a long industry name shrink, and give the current
   page the remaining space. Crumb's existing truncate styles add ellipses. */
.sub-crumbs .gallery-breadcrumbs > div > div > div:first-child {
  flex-shrink: 0;
}

.sub-crumbs .gallery-breadcrumbs > div > div > div:nth-child(2) {
  max-width: 35%;
}

.sub-crumbs .gallery-breadcrumbs [aria-current="page"] {
  flex: 1 1 0;
}

.sub-crumbs .gallery-breadcrumbs p {
  flex-shrink: 0;
  margin: 0 6px;
  color: inherit;
}

.sub-crumbs a {
  color: var(--crumb);
  text-decoration: none;
}

.sub-crumbs a:hover {
  color: var(--ink);
}

.sub-crumbs [aria-current] {
  color: var(--ink);
}

/* Keep the breadcrumb visible on phones, with the same top inset as the
   cards' side gutter. Long labels stay on one line rather than wrapping. */
@media (max-width: 480px) {
  .sub {
    padding-top: var(--gutter);
  }
}

/* Cards ---------------------------------------------------------------------- */

.sub-card {
  position: relative;
  container-type: inline-size;
  max-width: 1780px;
  margin: 0 auto 26px;
  background: var(--card);
  border-radius: var(--card-radius);
  overflow: hidden;
}

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

.sub-hero {
  min-height: clamp(560px, calc(100vh - var(--nav-h) - 90px), 820px);
  display: flex;
  align-items: center;
  /* A faint wash down from the top edge, as drawn. */
  background: linear-gradient(#fafafa, #fff 22%);
}

.sub-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 46%;
  padding: 80px 0 80px max(calc(var(--inset) - var(--gutter)), var(--content-edge));
  /* The canvas is underneath the whole card; only the words take the pointer,
     so a drag that starts beside them still turns the model. */
  pointer-events: none;
}

.sub-hero-copy > * {
  pointer-events: auto;
}

.sub-eyebrow {
  margin: 0 0 12px;
  font-size: clamp(1.0625rem, 1.3vw, 1.5rem);
  font-weight: 400;
}

/* --title-scale (set from the headline's length, see headlineScale.ts) steps a
   long headline down so it covers about the area the drawn one does. Never
   below 1.75rem, so a long one still reads as a headline on a phone. */
.sub-title {
  margin: 0;
  font-size: max(1.75rem, calc(clamp(2.25rem, 3.25vw, 4rem) * var(--title-scale, 1)));
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.005em;
}

/* With one model there is room beside the words to spare, so a long headline
   (the Spanish ones run to twice the English) keeps to a few full lines rather
   than a tall narrow column. Two models need the 46% they have. Stacked
   (under 900px) the words take the full width anyway. */
@media (min-width: 901px) {
  .sub-hero:has(.has-one-model) .sub-hero-copy {
    max-width: 52%;
  }
}

/* The site sets h1 to text-wrap: balance, which evens a wrapped line out to
   the width of the shortest and leaves the right of the column empty. Pretty
   fills each line and only steps in to save a lone last word. */
.sub-title span {
  display: block;
  text-wrap: pretty;
}

/* The shared React model viewer reads this framing for the full-page hero. */
.stage {
  --stage-focus-x: 0.635;
  --stage-focus-y: 0.5;
  --stage-scale: 1;
  /* A page's own lift (ModelViewer's --stage-lift-page); the standalone
     viewer keeps its own framing (see below). */
  --stage-lift: var(--stage-lift-page, 0);

  position: absolute;
  inset: 0;
  z-index: 1;
}

/* 0.635 places the front model so that it and the one behind it, off to its
   right, sit together in the space beside the words. On its own the front
   model sits in the middle of that space: the words end at 52% (see
   .sub-hero-copy), so halfway between there and the edge. */
.stage.has-one-model {
  --stage-focus-x: 0.76;
}

.model-viewer {
  background: transparent;
}

.stage-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
  opacity: 0;
  transition: opacity 600ms ease;
}

.stage.is-loaded .stage-canvas {
  opacity: 1;
}

/* The front model keeps the ordinary cursor until it's being turned, then the
   browser's own four-way arrows. One behind can be clicked to the front: the
   pointing hand. (Set by ModelInstance.) */
.stage.is-dragging .stage-canvas {
  cursor: move;
}

.stage.is-over-back:not(.is-dragging) .stage-canvas {
  cursor: pointer;
}

/* Up from the first paint, but unseen for its first 2s, as the deck's is
   (see .deck-spinner in deck.css): a model that's quick to load — cached,
   or a fast connection — never flashes it. Each one mounted starts its own
   wait, so switching to a model that's still loading waits again too. */
.stage-spinner {
  position: absolute;
  left: calc(var(--stage-focus-x) * 100%);
  top: calc((var(--stage-focus-y) - var(--stage-lift, 0)) * 100%);
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 2px solid rgba(17, 42, 63, 0.12);
  border-top-color: rgba(17, 42, 63, 0.6);
  border-radius: 50%;
  opacity: 0;
  animation:
    stage-spin 0.9s linear infinite,
    stage-spinner-in 200ms 2000ms ease forwards;
  transition: opacity 300ms ease;
}

/* The entrance is an animation, which would outrank this, so it goes too. */
.stage.is-loaded .stage-spinner {
  opacity: 0;
  pointer-events: none;
  animation: none;
}

@keyframes stage-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes stage-spinner-in {
  to {
    opacity: 1;
  }
}

.stage-pager {
  position: absolute;
  left: calc(var(--stage-focus-x) * 100%);
  bottom: 56px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.stage-pager[hidden] {
  display: none;
}

.model-viewer-controls {
  position: absolute;
  bottom: 24px;
  left: calc(var(--stage-focus-x) * 100%);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 3;
  white-space: nowrap;
}

/* React mounts this only while the active model is pending, so it's left as
   it comes, with its wait, even once another model's loaded. */
.model-viewer.is-loaded .stage-spinner {
  opacity: 0;
  animation:
    stage-spin 0.9s linear infinite,
    stage-spinner-in 200ms 2000ms ease forwards;
}

.model-viewer-controls .stage-pager {
  position: static;
  transform: none;
}

.model-viewer-controls .stage-pager[hidden] {
  display: none;
}

.model-viewer:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -4px;
}

.model-viewer-keyboard-help {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.model-viewer:focus-visible .model-viewer-keyboard-help {
  width: auto;
  height: auto;
  clip-path: none;
  left: 16px;
  right: 16px;
  top: 16px;
  z-index: 4;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}

.model-viewer-status {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  z-index: 4;
}

.model-viewer.model-viewer-standalone {
  --stage-focus-x: 0.5;
  --stage-focus-y: 0.5;
  --stage-scale: 1;
  --stage-lift: 0;
  position: absolute;
  inset: 0;
  height: 100%;
}

.stage-page {
  appearance: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  cursor: pointer;
  transition: width 450ms cubic-bezier(0.65, 0, 0.35, 1);
}

.stage-page::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 7px;
  background: #e7eaee;
  transition:
    width 450ms cubic-bezier(0.65, 0, 0.35, 1),
    background 300ms ease;
}

.stage-page:hover::before {
  background: #d3d9e0;
}

.stage-page[aria-pressed="true"] {
  width: 60px;
  cursor: default;
}

.stage-page[aria-pressed="true"]::before {
  width: 60px;
  background: #e7eaee;
}

.stage-page:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Hotspots: a dot on its layer, and a label beside it for the product that's
   open below or under the pointer. Placed every frame by model-stage.ts. */
.stage-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.stage-hotspot {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  transition: opacity 300ms ease;
  will-change: transform;
}

.stage-hotspot.is-shown {
  opacity: 1;
}

/* Only the dot takes the pointer, and the label while it's showing — the
   button itself is as wide as its hidden label, which shouldn't catch
   anything. */
.stage-hotspot.is-shown .stage-hotspot-dot,
.stage-hotspot.is-shown.is-labelled .stage-hotspot-label {
  pointer-events: auto;
}

.stage-hotspot-dot {
  position: relative;
  flex: none;
  width: 10px;
  height: 10px;
  margin: -5px;
  border-radius: 50%;
  /* Brand green, with a soft ring of it round the dot, as the hotspots on
     the mining landing's photo are. */
  background: var(--brand-green);
  border: 0;
  padding: 0;
  cursor: pointer;
  box-shadow:
    0 0 0 4px rgba(100, 219, 90, 0.3),
    0 1px 4px rgba(0, 0, 0, 0.4);
  transition: transform 200ms ease;
}

/* A finger-sized target round a dot that's drawn small. */
.stage-hotspot-dot::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
}

.stage-hotspot:hover .stage-hotspot-dot,
.stage-hotspot-dot:focus-visible {
  transform: scale(1.35);
}

.stage-hotspot-dot:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}

/* The layer's job as the heading, the product under it, then a sentence on
   what the job is. Wraps at 18rem, narrow enough to open beside a model that
   sits near the hero's right edge rather than over it. */
.stage-hotspot-label {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: max-content;
  max-width: min(18rem, 40vw);
  padding: 14px 20px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 18px rgba(17, 42, 63, 0.12);
  text-align: left;
  opacity: 0;
  /* --nudge-y keeps a label beside its dot on the stage (hotspot-layout.ts). */
  transform: translate(-6px, var(--nudge-y, 0));
  transition:
    opacity 250ms ease,
    transform 250ms ease;
  pointer-events: none;
}

.stage-hotspot.is-labelled .stage-hotspot-label {
  opacity: 1;
  transform: none;
}

/* Type from the design system (Figma "Pop-up card"): the heading in H4 at
   bold, the product in Normal (Body) with its brand in bold, and the
   description in Small. Light (300) is the styles' own weight. The rich-text
   card below uses the same three. */
.stage-hotspot-function {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.stage-hotspot-product {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-soft);
}

.stage-hotspot-product strong {
  font-weight: 700;
}

.stage-hotspot-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-soft);
}

.stage-hotspot.is-labelled {
  z-index: 1;
  pointer-events: auto;
}

/* A card that opens its product says so; one with nothing to open doesn't. */
.stage-hotspot-label {
  cursor: default;
}
.stage-hotspot-label.is-linked {
  cursor: pointer;
}

.stage-hotspot-label:has(.hotspot-rich-text) {
  max-width: min(18rem, calc(100vw - 48px));
  max-height: min(60vh, 28rem);
  overflow: auto;
  font-size: 0.8125rem;
  line-height: 1.45;
  position: relative;
}

.stage-hotspot-anchor.is-open {
  z-index: 16777272 !important; /* one above the top of drei's default zIndexRange */
}

/* The stage is layered under the hero's words, and an open popup lives inside
   the stage, so on its own it can only rise as far as the stage does. While
   one is open the whole stage comes up over the words. A click on them then
   lands on the stage, which takes focus and closes the popup, dropping the
   stage back. */
.sub-hero > .stage:has(.stage-hotspot-anchor.is-open) {
  z-index: 3;
}

.sub-page .hotspot-rich-text p,
.sub-page .hotspot-rich-text h3,
.sub-page .hotspot-rich-text h4,
.sub-page .hotspot-rich-text h5,
.sub-page .hotspot-rich-text h6,
.sub-page .hotspot-rich-text ul,
.sub-page .hotspot-rich-text ol,
.sub-page .hotspot-rich-text blockquote {
  margin: 0 0 0.65em;
}

.sub-page .hotspot-rich-text > :last-child {
  margin-bottom: 0;
}

/* The popup's rich text, in the same type as the plain card above: a
   heading-3 is the heading, a heading-4 the product, paragraphs the
   description. Blocks sit 14px apart, as the card's own gap does. */
.sub-page .stage-hotspot-label .hotspot-rich-text :is(p, h3, h4, h5, h6, ul, ol, blockquote) {
  margin: 0 0 14px;
}
.sub-page .stage-hotspot-label .hotspot-rich-text > :last-child {
  margin-bottom: 0;
}
.sub-page .stage-hotspot-label .hotspot-rich-text h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}
.sub-page .stage-hotspot-label .hotspot-rich-text h4 {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
}
.sub-page .stage-hotspot-label .hotspot-rich-text :is(p, li, blockquote) {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
}
.sub-page .stage-hotspot-label .hotspot-rich-text strong {
  font-weight: 700;
}

.sub-page .hotspot-rich-text ul {
  list-style: disc;
  padding-left: 1.4em;
}

.sub-page .hotspot-rich-text ol {
  list-style: decimal;
  padding-left: 1.4em;
}

.sub-page .hotspot-rich-text a {
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.sub-page .hotspot-rich-text a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.stage-hotspot[data-side="left"] {
  flex-direction: row-reverse;
}

.stage-hotspot[data-side="left"] .stage-hotspot-label {
  transform: translate(6px, var(--nudge-y, 0));
}

.stage-hotspot[data-side="above"] {
  flex-direction: column-reverse;
  gap: 12px;
}

.stage-hotspot[data-side="above"] .stage-hotspot-label {
  transform: translate(var(--nudge, 0), 6px);
}

.stage-hotspot[data-side="below"] {
  flex-direction: column;
  gap: 12px;
}

.stage-hotspot[data-side="below"] .stage-hotspot-label {
  transform: translate(var(--nudge, 0), -6px);
}

.stage-hotspot.is-labelled[data-side] .stage-hotspot-label {
  transform: translate(var(--nudge, 0), var(--nudge-y, 0));
}

.stage-hotspot.is-labelled[data-side="right"] .stage-hotspot-label,
.stage-hotspot.is-labelled[data-side="left"] .stage-hotspot-label {
  transform: translateY(var(--nudge-y, 0));
}

/* No rule of their own for a ® in a product's row or a hotspot's label: the
   site's base <sup> (75% size, raised half its height) is the one the open
   product's heading uses, so all three match. A size and vertical-align here
   stacked on top of that base raise and set it small and high. */

/* Intro ---------------------------------------------------------------------- */

/* The page's story: one column of copy across 70% of the card, then its link.
   (Its rules are scoped under .sub-page so they outrank the shared rich-text
   margins above.)
   Set in from the card's edge the same as the hero's copy, so the two line up.
   Subheads are the editor's own (H3, H4 in the rich text). */
.sub-intro {
  padding: clamp(60px, 8vw, 150px) calc(var(--inset) - var(--gutter)) clamp(60px, 7.4vw, 140px);
  /* On a wide card, the rest of the way in to the 1440 column, as the copy's
     margin (a card's own padding can't be measured in its cqw). Resolved
     inside the card, where cqw is the space inside this padding, so it's
     only the remainder. */
  --intro-shift: max(0px, var(--content-edge));
}

.sub-intro-body {
  /* 70% of the whole card, its side padding included (100% is only the
     space inside that padding). */
  max-width: calc(0.7 * (100% + 2 * (var(--inset) - var(--gutter))));
  margin: 0 0 0 var(--intro-shift);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-soft);
}

.sub-page .sub-intro-body p {
  margin: 0 0 0.9em;
}

.sub-page .sub-intro-body h3,
.sub-page .sub-intro-body h4,
.sub-page .sub-intro-body h5,
.sub-page .sub-intro-body h6 {
  margin: 1.6em 0 0.6em;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

.sub-page .sub-intro-body h3 {
  font-size: clamp(1.25rem, 1.4vw, 1.625rem);
}

.sub-page .sub-intro-body h4 {
  font-size: 1.125rem;
}

.sub-page .sub-intro-body h5,
.sub-page .sub-intro-body h6 {
  font-size: 1rem;
  font-weight: 500;
}

.sub-page .sub-intro-body .hotspot-rich-text > :first-child {
  margin-top: 0;
}

/* Underlined the whole way, arrow included, as the design draws it. */
.sub-intro-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  margin-left: var(--intro-shift);
  padding-bottom: 8px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

/* A pale rule under it, which the ink runs along from the left on hover —
   the deck's Explore link does the same in white (see .explore in
   styles.css), with the same easing. */
.sub-intro-link::after,
.sub-intro-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
}

.sub-intro-link::after {
  background: #b4c1d1;
}

.sub-intro-link::before {
  z-index: 1;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.sub-intro-link:hover::before,
.sub-intro-link:focus-visible::before {
  transform: scaleX(1);
}

.sub-intro-link svg,
.product-pill svg,
.product-explore svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.sub-intro-link svg {
  transition: transform 0.2s ease;
}

.sub-intro-link:hover svg {
  transform: translateX(3px);
}

/* Products ------------------------------------------------------------------- */

/* A product opened from a hotspot or a #product- link scrolls clear of the nav. */
.sub-page .product-panel {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.sub-products {
  /* Hotspots jump here; clear of the fixed nav when they do. */
  scroll-margin-top: calc(var(--nav-h) + 24px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  /* As tall as the list with its tallest product open (measured in
     subindustry.ts), and no taller whatever the list does on the way, so the
     card is one size whichever is open: opening one grows the list from its
     middle, inside the card, and the art beside it never moves. Left to
     grow until it's been measured. */
  min-height: clamp(640px, 57vw, 1090px);
  height: var(--products-tallest, auto);
  /* Dark, as the deck's Intro and Impact are: their near-black with the same
     pools of colour (see glow.ts), held still here. The header's deep sea
     lifted into a blue across the top right, the navy itself pooled low on
     the left, and the accent green only as a faint tint. The renders are cut
     out (transparent WebP), so the cube sits straight on it. A soft green
     spotlight where the renders sit, middle right, so a dark one or a thin
     mesh still reads against the near-black. */
  background: radial-gradient(44% 60% at 70% 50%, rgb(255 255 255 / 0.05), transparent 70%),
    radial-gradient(62% 85% at 70% 50%, rgb(61 220 132 / 0.16), transparent 70%),
    radial-gradient(48% 44% at 80% 4%, rgb(36 92 140 / 0.42), transparent 70%),
    radial-gradient(30% 30% at 46% 40%, rgb(36 92 140 / 0.16), transparent 70%),
    radial-gradient(52% 70% at 6% 100%, rgb(20 50 76), transparent 72%),
    radial-gradient(26% 30% at 22% 18%, rgb(61 220 132 / 0.07), transparent 70%),
    radial-gradient(40% 18% at 58% 96%, rgb(61 220 132 / 0.05), transparent 70%), #08080a;
}

/* Above the art, which runs on under it (see .sub-products-art). */
.sub-products-list {
  position: relative;
  z-index: 1;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(540px, 100%);
  margin-left: max(clamp(16px, 5.3vw, 100px), var(--content-edge));
  padding: 60px 0;
}

/* Out of the grid and behind the list (which sits above it, see
   .sub-products-list), so the list keeps its own column and the art runs on
   under the end of it. Pinned to the right so a narrower one (--art-width)
   stays on that side. Its own clip, for the zoom. Width, zoom and where the
   zoom centres are tuned on ?dev (art-panel.ts). */
.sub-products-art {
  /* Picked on ?dev: most of the card, a little in on the cube, centred up
     and left so its top and the liner layers sit in view. */
  --art-width: 69%;
  --art-zoom: 1.4;
  --art-focus-x: 9%;
  --art-focus-y: 25%;

  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--art-width);
  overflow: hidden;
  /* So an image's placement can be measured against the render's own size
     (see below): it covers the art, so that's the longer of its sides. */
  container-type: size;
}

/* Stacked, all framed alike, so swapping one for another only crossfades
   what's on the cube. The zoom is on top of filling the art (1 fills it,
   the render's top and bottom running off a card wider than it's tall).
   Under the zoom, any placement of its own (imagePlacement in
   subindustries.ts, set inline): moved by a percentage of the render, then
   sized about the zoom's centre. */
.sub-products-art img {
  --art-side: max(100cqw, 100cqh);
  --art-place: translate(calc(var(--art-x, 0) * var(--art-side) / 100), calc(var(--art-y, 0) * var(--art-side) / 100))
    scale(var(--art-scale, 1));

  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(var(--art-zoom)) var(--art-place);
  transform-origin: var(--art-focus-x) var(--art-focus-y);
  opacity: 0;
  transition: opacity 500ms ease;
}

/* A close-up already (GEOTUBE's): it fills the art as it is, without the
   zoom (see imageCloseUp in subindustries.ts). Held to the bottom: it runs
   off the bottom of its frame with empty sky above, so an art wider than
   it's tall crops the top rather than splitting the crop. */
.sub-products-art img[data-close-up] {
  object-position: center bottom;
  transform: var(--art-place);
}

/* Framed the same on every page (a render shared across them, PROPEX's and
   MIRAGRID's; see ArtPlacement.fixed): covering the art, it would be sized
   and cropped by the card's height, which changes with how many products a
   page has. Sized and placed by the art's width instead (--frame-width,
   --frame-x and --frame-y, in percent of it, set inline), from the art's
   middle, so it only follows the card's width. Stacked, every page's art is
   the same shape already, so it covers as the others do. */
@media (min-width: 901px) {
  .sub-products-art img[data-fixed-frame] {
    inset: auto;
    top: 50%;
    left: calc(var(--frame-x) * 1cqw);
    width: calc(var(--frame-width) * 1cqw);
    max-width: none;
    height: auto;
    aspect-ratio: 1;
    transform: translateY(calc(-50% + var(--frame-y) * 1cqw));
  }
}

.sub-products-art img.is-current {
  opacity: 1;
}

/* Opening runs in three beats: the closed row fades out while the card
   grows, then the heading and copy rise in one after another once there's
   room for them. Closing runs it backwards — copy out, card shrinks, row
   back. Every timing lives here so the beats can be retuned together. */
.product {
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --grow: 420ms;
  /* When the copy starts in: most of the way through the grow. */
  --reveal-at: 280ms;
  --reveal: 420ms;
  --stagger: 55ms;
  /* Between a product's own view and one from its range. */
  --slide: 560ms;

  border-radius: 30px;
  background: var(--well);
  transition:
    background 250ms ease,
    box-shadow 250ms ease,
    translate 250ms ease;
}

/* A closed row under the pointer (or the keyboard) lifts off the rest: up a
   touch, onto white, with a soft shadow under it. */
.product:not(.is-open):hover,
.product:not(.is-open):has(.product-head:focus-visible) {
  background: #fff;
  box-shadow: 0 6px 18px rgb(16 37 58 / 0.12);
  translate: 0 -1px;
}

.product-head {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 14px 20px;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 30px;
}

.product-head:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* The row's contents fade, not the button: open, it stays where it was as
   the strip across the top of the card, and still closes it. Coming back,
   it waits for the card to have all but finished shrinking. */
.product-toggle,
.product-name {
  transition: opacity 240ms ease 380ms;
}

.product.is-open .product-toggle,
.product.is-open .product-name {
  opacity: 0;
  transition-delay: 0ms;
  transition-duration: 160ms;
}

.product-toggle {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid #b8c2cd;
  border-radius: 50%;
}

.product-toggle::before,
.product-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1px;
  background: #8a99a8;
  transform: translate(-50%, -50%);
  transition: background 200ms ease;
}

/* With the lift, the plus darkens to the ink and turns a quarter, as if
   about to open. Its own transitions, alongside the fade it already has. */
.product:not(.is-open) .product-toggle {
  transition:
    opacity 240ms ease 380ms,
    rotate 320ms cubic-bezier(0.22, 0.8, 0.25, 1),
    border-color 200ms ease;
}

.product:not(.is-open):hover .product-toggle,
.product-head:focus-visible .product-toggle {
  rotate: 90deg;
  border-color: var(--ink);
}

.product:not(.is-open):hover .product-toggle::before,
.product:not(.is-open):hover .product-toggle::after,
.product-head:focus-visible .product-toggle::before,
.product-head:focus-visible .product-toggle::after {
  background: var(--ink);
}

.product-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.product-name {
  font-size: clamp(1.125rem, 1.25vw, 1.5rem);
  line-height: 1.2;
}

.product-name strong,
.product-title strong {
  font-weight: 700;
}

/* The card's growth. The grid row runs 0fr to 1fr, so it opens to exactly the
   height of what's inside; closing waits a beat for the copy to clear. */
.product-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--grow) var(--ease) 120ms;
}

.product.is-open .product-panel {
  grid-template-rows: 1fr;
  transition-delay: 0ms;
}

/* One swapped for another: the one going shuts alongside the one coming
   open, not after it, so the list's height runs straight from one's to the
   other's. Waiting for its copy, the two were briefly open together and
   taller than the card is held at (see .sub-products). */
.sub-products-list.is-switching .product-panel {
  transition-delay: 0ms;
}

/* Clipped one level up from the padding, since a box can't be squeezed
   smaller than its own padding. The bottom edge clips for the grow, and the
   sides for the views sliding across (see .product-view). Not the top: the
   heading is tucked up above this box's top (see .product-title), and the ®
   on it reaches higher still, so a clip there shaved the top off it. */
.product-panel-clip {
  min-height: 0;
  clip-path: inset(-2rem 0 0 0);
}

/* Out of the tab order and the reading order while closed, not only out of
   sight — after the card has shut, so it doesn't blink out mid-close. */
.product-panel-content {
  --pad-x: 48px;
  padding: 0 var(--pad-x) 46px;
  visibility: hidden;
  transition: visibility 0s linear calc(120ms + var(--grow) + 20ms);
}

.product.is-open .product-panel-content {
  visibility: visible;
  transition-delay: 0s;
}

/* A product's own view and its range's, laid side by side across the card:
   the current one in place, those before it off to the left, those after off
   to the right — each a full width plus the padding away, so it clears the
   card's edge. All in the one grid cell, each at its own height, and the card
   as tall as the one showing (--view-h, set in products.ts), easing from one
   to the next as they slide, so a short view doesn't sit over a gap left for
   a longer one. Without the script it's as tall as its tallest. */
.product-views {
  display: grid;
  height: var(--view-h, auto);
  transition: height var(--slide) var(--ease);
}

.product-views.is-instant {
  transition: none;
}

.product-view {
  transform: translateX(calc(100% + var(--pad-x)));
  opacity: 0;
  visibility: hidden;
  transition:
    transform var(--slide) var(--ease),
    opacity var(--slide) ease,
    visibility 0s linear var(--slide);
}

.product-view {
  grid-area: 1 / 1;
  align-self: start;
}

.product-view.is-before {
  transform: translateX(calc(-100% - var(--pad-x)));
}

.product-view.is-current {
  transform: none;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

/* Reset while out of sight, as a product opens: straight there. */
.product-views.is-instant .product-view {
  transition: none;
}

.product-title:focus {
  outline: none;
}

/* The intro's underlined link, on a line of its own under the copy and well
   clear of Back below it. */
.product-more {
  display: flex;
  width: fit-content;
  margin: 0 0 32px;
}

/* Back sits where the pills were, pointing the other way. */
.product-back {
  margin-top: 4px;
}

.product-back svg {
  margin: 0 6px 0 0;
  transform: scaleX(-1);
}

/* Rising in: each piece waits for the card, then its turn. Leaving, they all
   go together and quickly, so the card isn't kept waiting. */
.product-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.product.is-open .product-reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--reveal) ease,
    transform var(--reveal) cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--reveal-at) + var(--i, 0) * var(--stagger));
}

/* Tucked up into the strip the closed row leaves, so the heading sits where
   the design has it rather than a row's height further down. */
.product-title {
  margin: -10px 0 14px;
  font-size: clamp(1.5rem, 1.85vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
}

.product-body {
  margin: 0 0 18px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

/* In a range view each button is a paragraph of its own (authored links, and
   the default contact one), spaced by the paragraph margin. Two in a row sit
   as close as the pills in a product card's list: .product-links' gap, the
   design system's 14px spacing step. The editor leaves empty paragraphs
   between them, whose margin would otherwise collapse in and set the gap,
   so those go. */
.product-view p.product-body:empty {
  display: none;
}
.product-view
  p.product-body:has(> .product-pill:only-child):is(
    :has(+ p.product-body > .product-pill:only-child),
    :has(+ p.product-body:empty + p.product-body > .product-pill:only-child)
  ) {
  margin-bottom: 0.875rem;
}

.product-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

/* Buttons, now they open a view in the card rather than leave the page. */
/* A pill's label is one span (.product-pill-label) beside its arrow, so the
   gap spaces only those two. Left as loose words, a bold brand and its ®
   each became a flex item: 6px apart, and the ® lifted off the line. */
.product-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border: 0;
  border-radius: 22px;
  background: var(--ink);
  color: #fff !important;
  font: inherit;
  font-size: 0.9375rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  /* Its own stacking context, so the fill below sits over the ink but under
     the label; the clip keeps the fill to the pill. */
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* The hover fill: a pool of lighter blue that spreads from where the pointer
   came in (--pill-x/--pill-y, set in subindustry.ts) and drifts after it,
   brightest under the pointer and settling into the hover colour towards
   the edges. Wide enough to cover the pill from any point it starts at.
   Leaving, it drains back to where the pointer went out. */
.product-pill::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: var(--pill-x, 0px);
  top: var(--pill-y, 50%);
  width: 260%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, #2f6593, #1d4061 55%);
  translate: -50% -50%;
  scale: 0;
  /* Draining is quicker than filling, so it doesn't hang about once the
     pointer's gone. */
  transition:
    scale 380ms cubic-bezier(0.4, 0, 0.2, 1),
    left 300ms ease-out,
    top 300ms ease-out;
}

.product-pill:hover::before {
  scale: 1;
  transition:
    scale 560ms cubic-bezier(0.22, 0.8, 0.25, 1),
    left 300ms ease-out,
    top 300ms ease-out;
}

.product-pill.is-entering::before {
  transition: scale 560ms cubic-bezier(0.22, 0.8, 0.25, 1);
}

.product-pill svg,
.product-explore svg {
  margin-left: 6px;
}

/* The arrow leans the way it points, as the underlined links' does. */
.product-pill svg {
  transition: transform 0.2s ease;
}

.product-pill:hover svg {
  transform: translateX(3px);
}

/* Back's is the same arrow turned round (see .product-back svg), so the
   same nudge, in its own turned-round terms, takes it the other way. */
.product-back:hover svg {
  transform: scaleX(-1) translateX(3px);
}

.product-explore {
  display: inline-flex;
  align-items: center;
  font-size: 0.9375rem;
  text-decoration: none;
}

.product-explore:hover {
  text-decoration: underline;
}

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

.sub-contact {
  /* The intro's link jumps here; clear of the fixed nav when it does. */
  scroll-margin-top: var(--nav-h);
  margin-top: 74px;
  padding: clamp(60px, 5.5vw, 104px) var(--gutter) clamp(60px, 4.5vw, 86px);
  background: var(--brand-deep-sea);
  color: #fff;
}

.sub-contact-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.sub-contact-title {
  max-width: 1420px;
  margin: 0 0 clamp(40px, 3.4vw, 64px);
  font-size: clamp(2rem, 3.3vw, 3.9rem);
  font-weight: 400;
  line-height: 1.17;
}

.sub-contact-form {
  margin: 0 4px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

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

.site-footer {
  padding: 0 var(--gutter) 40px;
  background: var(--brand-deep-sea);
  color: #fff;
  font-size: 0.8125rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brand-green);
}

.site-footer-inner,
.site-footer-legal {
  max-width: 1440px;
  margin: 0 auto;
}

.site-footer-inner {
  display: flex;
  gap: 40px;
  padding-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.site-footer-brand {
  flex: none;
  width: 235px;
}

.site-footer-logo {
  display: inline-flex;
}

.site-footer-follow {
  margin: 66px 0 14px;
  font-size: 1rem;
}

.site-footer-social {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer address {
  margin-top: 62px;
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.site-footer address strong {
  display: block;
  margin-bottom: 14px;
  font-size: 1rem;
}

.site-footer-cta {
  display: inline-block;
  margin-top: 34px;
  padding: 14px 24px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
}

.site-footer-cols {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 24px;
}

.site-footer-col h3 {
  margin: 0 0 18px;
  font-size: 0.9375rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.25;
}

.site-footer sup {
  font-size: 0.6em;
  line-height: 0;
}

.site-footer-marks {
  margin: 66px 0 0;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-top: 16px;
  font-size: 0.75rem;
}

.site-footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
}

/* Dev panel ------------------------------------------------------------------ */

.stage-panel {
  position: fixed;
  top: calc(var(--nav-h) + 12px);
  right: 12px;
  z-index: 20;
  width: 280px;
}

/* Low on the left, clear of the stage's panel top right and the related bar
   bottom right. */
.art-panel {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 20;
  width: 240px;
}

/* Narrower layouts ----------------------------------------------------------- */

@media (max-width: 1200px) {
  .site-footer-inner {
    flex-direction: column;
  }

  .site-footer-cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 40px;
  }
}

@media (max-width: 900px) {
  /* The hero stacks: the words, then the models in a block of their own. */
  .sub-hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .sub-hero-copy {
    order: -1;
    max-width: none;
    padding: 48px calc(var(--inset) - var(--gutter)) 0;
    /* Keep the title/model boundary stable when the route skeleton is replaced. */
    min-height: clamp(220px, calc(500px - 45vw), 360px);
  }

  .stage {
    --stage-focus-x: 0.44;
    --stage-focus-y: 0.52;
    position: relative;
    inset: auto;
    height: clamp(340px, 80vw, 560px);
  }

  /* Stacked, the models have the block to themselves: one sits in the middle. */
  .stage.has-one-model {
    --stage-focus-x: 0.5;
  }

  .stage-pager {
    bottom: 24px;
    left: 50%;
  }

  /* Stacked, the list goes back to growing the card: held at its tallest it
     would leave a screenful of nothing under the shut list on a phone. */
  .sub-products {
    grid-template-columns: 1fr;
    height: auto;
  }

  .sub-products-list {
    width: auto;
    margin: 0;
    padding: 24px 16px;
  }

  .sub-products-art {
    position: relative;
    width: auto;
    height: 110vw;
    max-height: 640px;
  }
}

@media (max-width: 600px) {
  /* On a phone the copy takes the full width inside the card. */
  .sub-intro-body {
    max-width: none;
  }

  .site-footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-panel-content {
    --pad-x: 24px;
    padding: 0 var(--pad-x) 28px;
  }

  .stage-hotspot-label {
    padding: 9px 14px;
  }

  .site-footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage-canvas,
  .stage-page,
  .stage-page::before,
  .stage-hotspot,
  .stage-hotspot-label,
  .product-panel,
  .product-panel-content,
  .product-view,
  .product-reveal,
  .product-pill::before,
  .product-pill svg,
  .sub-intro-link::before,
  .sub-intro-link svg,
  .product,
  .product-name,
  .product-toggle {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .product-reveal {
    transform: none !important;
  }

  /* Slower spin; the entrance keeps its own timing. */
  .stage-spinner,
  .model-viewer.is-loaded .stage-spinner {
    animation-duration: 3s, 200ms;
  }
}

/* The server page is readable before its accordion behaviour attaches. */
.sub-page:not(.is-enhanced) .sub-products {
  display: block;
  height: auto;
  min-height: 0;
}
.sub-page:not(.is-enhanced) .sub-products-list {
  width: auto;
  margin: 0;
  padding: clamp(24px, 4vw, 60px) 16px;
}
.sub-page:not(.is-enhanced) .product {
  padding-top: 32px;
}
/* Flat, the rows aren't buttons yet, so they don't lift under the pointer. */
.sub-page:not(.is-enhanced) .product:hover {
  background: var(--well);
  box-shadow: none;
  translate: none;
}
.sub-page:not(.is-enhanced) .product-head,
.sub-page:not(.is-enhanced) .product-back {
  display: none;
}
.sub-page:not(.is-enhanced) .product-panel {
  display: block;
}
.sub-page:not(.is-enhanced) .product-panel-clip {
  clip-path: none;
}
.sub-page:not(.is-enhanced) .product-panel-content,
.sub-page:not(.is-enhanced) .product-view,
.sub-page:not(.is-enhanced) .product-reveal {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: none;
}
.sub-page:not(.is-enhanced) .product-views {
  display: block;
}
.sub-page:not(.is-enhanced) .product-view {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.sub-page:not(.is-enhanced) .product-view + .product-view {
  margin-top: 32px;
}
.sub-page:not(.is-enhanced) .sub-products-art {
  position: relative;
  width: 100%;
  height: min(90vw, 640px);
}

/* Route-loading placeholders share the real cards, gutters and stage sizes. */
/* The skeleton holds back a moment before it shows, so a page that's cached
   (or prefetched from the overview) arrives without a flash of placeholders,
   and only a real wait gets them. On the inner .sub: the outer element's
   own animation is switched off (!animate-none). */
.sub-loading > .sub {
  animation: sub-loading-in 240ms ease 200ms both;
}
@keyframes sub-loading-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sub-loading > .sub {
    animation-duration: 1ms;
  }
}

.sub-loading-block {
  display: block;
  flex: none;
  height: 0.8em;
  border-radius: 6px;
  background: #e5ebef;
}
.sub-loading-crumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 21px;
}
.sub-loading-crumbs > :nth-child(1) {
  width: 36px;
}
.sub-loading-crumbs > :nth-child(2) {
  width: 54px;
}
.sub-loading-crumbs > :nth-child(3) {
  width: min(140px, 35%);
}
.sub-loading-copy {
  width: 46%;
}
.sub-loading-eyebrow {
  width: 40%;
  height: 20px;
  margin-bottom: 20px;
}
.sub-loading-title {
  display: grid;
  gap: 12px;
  font-size: clamp(2.25rem, 3.25vw, 4rem);
}
.sub-loading-title > :nth-child(2) {
  width: 92%;
}
.sub-loading-title > :nth-child(3) {
  width: 70%;
}
.sub-loading-model {
  position: absolute;
  left: 63.5%;
  top: 50%;
  width: min(42%, 480px);
  transform: translate(-50%, -50%);
}
.sub-loading-body {
  display: grid;
  gap: 16px;
}
.sub-loading-heading {
  width: 60%;
  height: 28px;
  margin-bottom: 12px;
}
.sub-loading-body > :last-child {
  width: 75%;
}
@media (max-width: 900px) {
  .sub-loading-copy {
    width: 100%;
  }
  .sub-loading-model {
    left: 50%;
    width: min(72%, 440px);
  }
}
@media (max-width: 480px) {
  .sub-loading-crumbs {
    height: 18px;
  }
}
