/* LLM Architect / Architectural atlas, set on the ShipOS design system.
   Ground tones: ink, paper, bone. No second hue — the red of the mark is the
   only colour in the interface, and the photography carries the rest.
   Type: one family, one weight (500), tracking tightened as size grows.
   Layer order: canvas 0, veil 2, hero copy 4, particles 5, controls 7,
   navigation 20, native dialog in the browser's top layer. */
:root {
  color-scheme: light;

  /* Grounds, taken from the reference. */
  --ink: #202124;
  --paper: #f6f6f6;
  --bone: #e8e8e2;
  --surface: #fff;
  --background: var(--paper);
  --muted: #6d7074;
  --line: rgb(32 33 36 / .16);
  --line-dark: rgb(32 33 36 / .34);
  --accent: #ef2b24;

  /* The blueprint hue retires into the ink: one family, one colour, one weight.
     The token stays so the raster and the mark keep a single source. */
  --blueprint: var(--ink);
  --paper-blue: var(--bone);
  --hero-paper: var(--paper);
  --hero-ink: var(--ink);

  /* One text family. The mono token resolves to it so every former mono role
     — navigation, numerals, captions — is set in the same grotesque. */
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: var(--font-body);
  --font-mark: "Manrope", var(--font-body);

  /* Tracking: -.04em on display and labels, -.03em on running text. */
  --track: -.04em;
  --track-body: -.03em;

  --brand-mark-size: clamp(82px, 7.3vw, 118px);
  --brand-dot-size: calc(var(--brand-mark-size) * 5.8 / 104);
  --section-dot-size: 8px;

  /* Full bleed: sections run edge to edge on a 60px margin, as in the
     reference, instead of a centred column. */
  --gutter: clamp(20px, 4.7vw, 60px);
  --edge: var(--gutter);
  --section-y: clamp(52px, 5vw, 84px);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

/* Inverted grounds re-point the same tokens, so every component inside a dark
   section follows without a second set of rules. */
.is-inverted, .section--dark, .closing, .site-footer, .deck__card {
  --ink: #f6f6f6;
  --paper: #202124;
  --bone: #202124;
  --surface: rgb(246 246 246 / .05);
  --muted: rgb(246 246 246 / .62);
  --line: rgb(246 246 246 / .2);
  --line-dark: rgb(246 246 246 / .38);
  --blueprint: #f6f6f6;
  --paper-blue: rgb(246 246 246 / .06);
  background: #202124;
  color: #f6f6f6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 102px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: var(--track-body);
  -webkit-font-smoothing: antialiased;
}
/* Every label in the reference is the same grotesque, uppercase and tight. */
.u-label, .site-nav a, .ca-mode-nav button, .site-header__index, .site-footer,
.panel__caption, .service-trigger, .deck__card-index,
.dataset__head, .dataset__point, .pipeline__number, .numbers__tasks dt,
.patterns__block h3, .patterns__legend dt, .patterns__samples figcaption,
.closing__product, .image-dialog__close, .image-dialog__zoom, .lang-switch {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
}
body:has(.image-dialog[open]), body:has(.request-dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
img { max-width: 100%; }
figure { margin: 0; }
::selection { color: var(--paper); background: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.skip-link {
  position: fixed;
  z-index: 40;
  inset: 12px auto auto 12px;
  padding: 12px 20px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* The fixed navigation follows the logo's existing visibility lifecycle, but
   floats inside the viewport like a separate sheet of architectural glass. */
.site-header {
  --header-float-x: clamp(10px, 1.1vw, 16px);
  --header-float-y: clamp(10px, 1.1vw, 14px);
  position: fixed;
  z-index: 20;
  inset: var(--header-float-y) var(--header-float-x) auto;
  height: 76px;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding: 10px max(14px, calc(var(--edge) - var(--header-float-x)));
  border: 1px solid transparent;
  border-radius: 14px;
  transition: opacity 200ms ease, background-color 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}
.site-header--intro:not(.site-header--intro-complete) { opacity: 0; pointer-events: none; }
/* Off the hero the bar is a pane of glass rather than a plate. The page keeps
   moving underneath it — blurred back into the paper ground and held to the
   ink's own saturation — and a single hairline marks where the plane ends. */
.site-header--brand-visible:not(.site-header--over-hero) {
  background: rgb(246 246 246 / .17);
  border-color: rgb(32 33 36 / .08);
  backdrop-filter: blur(26px) saturate(92%) brightness(1.16);
  -webkit-backdrop-filter: blur(26px) saturate(92%) brightness(1.16);
}
/* Without the filter the same translucency would leave the navigation reading
   through the photography, so the bar closes back to paper. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header--brand-visible:not(.site-header--over-hero) {
    background: rgb(246 246 246 / .96);
    border-color: var(--line);
  }
  .site-header--over-hero { background: rgb(17 20 23 / .9); }
}
/* Over the night first screen the bar stays clear and carries light type. It
   also stops catching pointer events: the hero's own control sits in the top
   left corner, underneath this bar's box. */
.site-header--over-hero { pointer-events: none; }
.site-header--over-hero .brand,
.site-header--over-hero .site-nav,
.site-header--over-hero .site-header__index,
.site-header--over-hero .lang-switch { pointer-events: auto; }
.site-header--over-hero {
  --ink: #f6f6f6;
  --muted: rgb(246 246 246 / .66);
  --line: rgb(246 246 246 / .24);
  --line-dark: rgb(246 246 246 / .42);
  background: rgb(17 20 23 / .14);
  border-color: rgb(246 246 246 / .1);
  backdrop-filter: blur(26px) saturate(96%) brightness(.78);
  -webkit-backdrop-filter: blur(26px) saturate(96%) brightness(.78);
  color: #f6f6f6;
}
.brand {
  display: block;
  width: 118px;
  flex: 0 0 auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity 180ms ease, transform 180ms var(--ease-out), visibility 180ms;
}
.site-header--brand-visible .brand { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.brand__logo { display: block; width: 100%; height: auto; }
.brand__logo-sub { font-family: var(--font-mark); font-size: 44px; font-weight: 600; letter-spacing: var(--track); fill: currentColor; }
.brand__logo-dot { fill: var(--accent); }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); margin-left: auto; }
.site-nav a {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1;
  color: var(--ink);
  transition: opacity 160ms ease;
}
.site-nav a::before {
  content: "";
  width: 6px;
  height: 6px;
  position: absolute;
  bottom: 2px;
  left: calc(50% - 3px);
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 160ms ease;
}
.site-nav a[aria-current]::before { opacity: 1; }
.site-header__index { min-width: 62px; padding-left: 22px; border-left: 1px solid var(--line); color: var(--muted); font-size: clamp(12px, .95vw, 14px); line-height: 1; white-space: nowrap; }

/* Language switch: the same uppercase label as the navigation. */
.lang-switch { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; font-size: clamp(13px, 1.05vw, 16px); line-height: 1; }
.lang-switch__divider { color: var(--line-dark); }
.lang-switch button {
  min-height: 44px;
  padding: 0 2px;
  display: flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  opacity: .42;
  transition: opacity 160ms ease;
}
.lang-switch button[aria-pressed="true"] { opacity: 1; }

/* Original hero scene and particle logo. Composition lives in hero.css. */
.hero { position: relative; isolation: isolate; width: 100%; overflow: hidden; color: var(--hero-ink); border-bottom: 1px solid var(--line); }
.hero__world, .hero__veil { position: absolute; height: 100%; }
.hero__webgl, .hero__analytics, .hero__world-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__webgl, .hero__analytics { display: block; opacity: 0; }
.hero__analytics { pointer-events: none; }
.hero--webgl-ready .hero__webgl, .hero--webgl-ready .hero__analytics { opacity: 1; }
.hero__world-fallback { display: grid; place-items: center; }
.hero__world-fallback svg { width: min(100%, 760px); height: auto; }
.hero--webgl-ready .hero__world-fallback { display: none; }
.hero--webgl-unavailable .hero__world-fallback { display: grid; }
.hero--webgl-unavailable .hero__webgl, .hero--webgl-unavailable .hero__analytics { opacity: 0; }
.hero__veil { z-index: 2; inset: 0; width: 100%; pointer-events: none; }
.hero__content { z-index: 4; pointer-events: none; }
.hero__motion {
  position: absolute;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  visibility: hidden;
  transition: color 160ms ease, background-color 160ms ease, transform 120ms var(--ease-out);
}
.hero--webgl-ready .hero__motion { visibility: visible; }
.hero__motion[hidden] { display: none; }
.hero__motion svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hero__play-icon, .hero__motion.is-paused .hero__pause-icon { display: none; }
.hero__motion.is-paused .hero__play-icon { display: block; }
.brand-phrase::before { content: ""; display: inline-block; width: var(--section-dot-size); height: var(--section-dot-size); margin-inline-end: .66em; border-radius: 50%; background: var(--accent); vertical-align: .15em; }

/* Shared editorial grid and brand primitives. */
.section, .capabilities {
  position: relative;
  padding: var(--section-y) var(--edge);
  border-bottom: 1px solid var(--line);
}

/* The reference alternates four grounds down the page: paper, bone, white, ink. */
.capabilities { background: var(--bone); }
.technology { background: var(--paper); }
.scanning { background: var(--surface); }
.finance { background: var(--bone); }
.numbers { background: var(--paper); }
.dataset { background: var(--surface); }
.investor { background: var(--bone); }
.section-heading { max-width: 1120px; }
h2 { margin: 0; font-size: clamp(29px, 3.55vw, 52px); line-height: 1.075; font-weight: 500; letter-spacing: var(--track); text-wrap: pretty; }
.section-heading h2 { max-width: 35ch; }
.text-emphasis { color: var(--accent); }
.section-lead { max-width: 46ch; margin: 30px 0 0; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.25; color: var(--ink); }
.statement { color: var(--ink); }
.pixel-cross { position: relative; display: inline-block; width: 12px; height: 12px; flex: 0 0 auto; color: var(--blueprint); }
.pixel-cross::before, .pixel-cross::after { position: absolute; content: ""; background: currentColor; }
.pixel-cross::before { width: 100%; height: 2px; top: 5px; left: 0; }
.pixel-cross::after { height: 100%; width: 2px; left: 5px; top: 0; }
.pixel-field { display: grid; grid-template-columns: repeat(11, 1fr); gap: 7px; width: 174px; pointer-events: none; }
.pixel-field > span { position: relative; aspect-ratio: 1; }
.pixel-field .is-dot { border-radius: 50%; background: var(--accent); }
.pixel-field .is-square { background: var(--blueprint); }
.pixel-field .is-cross::before, .pixel-field .is-cross::after { position: absolute; content: ""; background: var(--blueprint); }
.pixel-field .is-cross::before { inset: 40% 0; }
.pixel-field .is-cross::after { inset: 0 40%; }

/* 02 / A deck of directions, after the card deck on the reference's home page:
   pill tabs above, one card at a time over the raster, paged by tab, arrow or
   swipe. script.js still owns which one is current and crossfades the raster;
   deck.js only slides the cards. */
.capabilities { --raster-ink: #202124; --raster-paper: #e8e8e2; }
.deck { margin-top: 0; }

/* Tabs. The article is only a hook for the bundle, so it is taken out of the
   layout and the buttons become the row. */
.deck__rail { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 clamp(18px, 2vw, 28px); }
.service-item { display: contents; }
.service-trigger {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.service-item.is-active .service-trigger { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Stage. The raster is the ground of the card, not a panel beside it. */
.deck__stage {
  position: relative;
  isolation: isolate;
  height: clamp(440px, 48vw, 620px);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  /* The cut-out photograph of direction 03 sizes itself from the stage. */
  container-type: size;
}
.deck__raster { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; display: block; background: var(--raster-paper); }
/* Two directions are backed by the photograph rather than the raster, and are
   left undarkened; deck.js writes the index these key off. A direction gets a
   photograph by adding an image with its own data-deck-photo and a pair here. */
.deck__photo { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; opacity: 0; transition: opacity 420ms ease; }
.deck[data-deck-index="0"] .deck__photo[data-deck-photo="0"],
.deck[data-deck-index="1"] .deck__photo[data-deck-photo="1"] { opacity: 1; }
.deck__photo[data-deck-photo="1"] { object-position: center 45%; }
/* Direction 03 is the photograph with its landmarks cut out to the ground.
   commercial-location.html opens on the same frame and inverts it. */
.deck__cutout { position: absolute; z-index: 0; inset: 0; opacity: 0; transition: opacity 420ms ease; }
.deck[data-deck-index="2"] .deck__cutout { opacity: 1; }
.deck__track { position: relative; z-index: 1; height: 100%; display: grid; }

/* City cut-outs: one photograph read twice — as the ground of card 03 with its
   landmarks cut away, and as the opening block of commercial-location.html,
   where only the landmarks stay. Rectangles are in source pixels of the
   1582×890 photo, so the same numbers place a hole here and a piece there.

   The frame covers its stage the way object-fit: cover would, but it is
   centred on the composition — the three rows of the phrase and the caption
   under them, around (846, 556) in photo pixels — rather than on the photo,
   so the cut-outs stay in view from a wide desktop to a phone. Sizes come
   from the stage's container units: a stage that grows or moves during the
   page transition recrops itself on every frame without script. */
.cutout-frame {
  --frame-w: max(100cqw, 177.7528cqh);
  --frame-h: max(56.2579cqw, 100cqh);
  --frame-left: clamp(100cqw - var(--frame-w), 50cqw - var(--frame-w) * var(--cutout-cx, .534766), 0px);
  --frame-top: clamp(100cqh - var(--frame-h), 50cqh - var(--frame-w) * .351454, 0px);
  position: absolute;
  left: var(--frame-left);
  top: var(--frame-top);
  width: var(--frame-w);
  height: var(--frame-h);
  margin: 0;
}
.cutout-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cutout {
  position: absolute;
  left: calc(var(--x) / 1582 * 100%);
  top: calc(var(--y) / 890 * 100%);
  width: calc(var(--w) / 1582 * 100%);
  height: calc(var(--h) / 890 * 100%);
  background: #f6f6f6;
}
/* A phone stage is a tall slice of the photo. Centred on x = 900 instead,
   it holds the towers, the opera and the museum whole rather than halves. */
@media (max-width: 540px) { .cutout-frame { --cutout-cx: .5689; } }

/* Leaving through card 03: everything but the photograph fades to the deck's
   bone ground, so the next page can open on exactly this picture. */
.is-cutout-leaving body { background: var(--bone); transition: background-color 260ms ease; }
.is-cutout-leaving body > :not(main),
.is-cutout-leaving main > :not(.capabilities),
.is-cutout-leaving .deck__rail,
.is-cutout-leaving .deck__track,
.is-cutout-leaving .deck__nav { opacity: 0 !important; pointer-events: none; transition: opacity 260ms ease !important; }
/* A hole the card's plate almost covers would show as a hairline along its
   edge; city-cutout.js tucks it away until the plate leaves. */
.deck__cutout .cutout { transition: opacity 260ms ease; }
.deck__cutout .cutout.is-tucked { opacity: 0; }
.is-cutout-leaving .deck__cutout .cutout.is-tucked { opacity: 1; }

.deck__card {
  grid-area: 1 / 1;
  align-self: start;
  justify-self: start;
  width: min(470px, 74%);
  margin: clamp(18px, 2.4vw, 40px);
  padding: clamp(22px, 2.1vw, 34px);
  background: rgb(32 33 36 / .92);
  transform: translateX(calc((var(--i) - var(--deck-index, 0)) * 130%));
  opacity: 0;
  pointer-events: none;
  transition: transform 620ms var(--ease-out), opacity 320ms ease;
}
.deck__card:nth-child(1) { --i: 0; }
.deck__card:nth-child(2) { --i: 1; }
.deck__card:nth-child(3) { --i: 2; }
.deck__card:nth-child(4) { --i: 3; }
.deck__card:nth-child(5) { --i: 4; }
.deck__card.is-current { opacity: 1; pointer-events: auto; }
.deck__card-index { margin: 0 0 14px; color: var(--accent); font-size: clamp(12px, .98vw, 14px); line-height: 1; }
.deck__card-title { margin: 0 0 16px; font-size: clamp(21px, 1.95vw, 30px); font-weight: 500; letter-spacing: var(--track); line-height: 1.08; }
.deck__card-body { margin: 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.4; color: var(--muted); }

/* Arrows are appended by deck.js, so they never show without the script. */
.deck__nav { position: absolute; z-index: 2; right: 0; bottom: 0; display: flex; }
.deck__arrow {
  width: clamp(48px, 4vw, 58px);
  height: clamp(48px, 4vw, 58px);
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-dark);
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  background: rgb(232 232 226 / .92);
  color: var(--ink);
  font-size: 19px;
  line-height: 1;
  transition: background-color 160ms ease, color 160ms ease;
}
.deck[data-deck-motion="reduced"] .deck__card { transition: none; }

.more-button, .button { min-height: 56px; display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; padding: 14px 24px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--paper); font: 500 clamp(14px, 1.05vw, 16px)/1 var(--font-body); letter-spacing: var(--track); text-transform: uppercase; transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 140ms var(--ease-out); }
.more-button { margin-top: 26px; min-width: 210px; }
.more-button::after { content: "↗"; font-size: 22px; line-height: 1; }
.service-mode-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 26px;
}
.service-mode-link {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 15px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: 500 clamp(11px, .84vw, 13px)/1.14 var(--font-body);
  letter-spacing: var(--track);
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease-out);
}
.service-mode-link::after { content: "↗"; flex: 0 0 auto; font-size: 18px; line-height: 1; }
.button--primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.button--large { min-height: 68px; padding: 18px 26px; min-width: 330px; font-size: clamp(16px, 1.3vw, 18px); }
.button span { font-size: 24px; line-height: 1; }

/* Images remain source documents, with a native dialog for close reading. */
.panel { min-width: 0; border: 1px solid var(--line); background: var(--surface); }
.panel__caption { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: clamp(11px, .92vw, 13px); line-height: 1; }
.panel__caption span:first-child { color: var(--ink); }
.panel img { display: block; width: 100%; height: auto; }
.panel--bleed img { aspect-ratio: 1.95; object-fit: cover; }
.figure-open { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.figure-open::after { content: ""; position: absolute; bottom: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; color: var(--ink); background: linear-gradient(var(--ink), var(--ink)) center / 11px 1px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1px 11px no-repeat, var(--paper); border: 1px solid var(--line-dark); opacity: 0; transform: translateY(3px); transition: opacity 160ms ease, transform 160ms var(--ease-out); }
.figure-open:focus-visible { outline-offset: -3px; }
.figure-open:focus-visible::after { opacity: 1; transform: none; }
.panel .figure-open { height: auto; }

/* 03 / A single centred statement, after the callout on the reference's home
   page: 68px at 1280, line-height 1.2, tracking -.04em, one phrase held back
   in grey. It is a pause between chapters, so the measure is wide and the
   vertical space generous. */
.statement-band { background: var(--surface); padding-top: clamp(76px, 9vw, 132px); padding-bottom: clamp(76px, 9vw, 132px); }
.statement-band__text {
  max-width: min(1150px, 92%);
  margin: 0 auto;
  font-size: clamp(26px, 4.35vw, 56px);
  font-weight: 500;
  letter-spacing: var(--track);
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
  color: var(--ink);
}
.text-quiet { color: var(--muted); }

/* Our software. A list after the product block on the reference's home page:
   a quiet label, then one row per product — the name set large, an index at the
   far edge, a single line of description, and a hairline between rows. The rows
   open in place instead of leading anywhere. */
.software { background: var(--paper); }
.software__label { position: relative; display: inline-block; margin: 0 0 clamp(40px, 5vw, 72px); padding-bottom: 14px; font-size: clamp(20px, 1.9vw, 30px); line-height: 1; letter-spacing: var(--track); color: var(--ink); }
.software__label::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--accent); }
.software__list { margin: 0; padding: 0; list-style: none; }
.software__item { border-top: 1px solid var(--line); }
.software__item:last-child { border-bottom: 1px solid var(--line); }
.software__heading { margin: 0; font-weight: 500; }

.software__trigger {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: clamp(10px, 1.2vw, 18px);
  padding: clamp(22px, 2.4vw, 34px) 0 clamp(24px, 2.6vw, 38px);
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--ink);
  transition: opacity 160ms ease;
}
.software__name { font-size: clamp(38px, 6.25vw, 80px); font-weight: 500; letter-spacing: var(--track); line-height: 1; }
.software__index { justify-self: end; font-size: clamp(13px, 1.05vw, 16px); line-height: 1; color: var(--muted); }
.software__summary { grid-column: 1; font-size: clamp(15px, 1.25vw, 20px); font-weight: 500; line-height: 1.25; letter-spacing: var(--track-body); color: var(--ink); text-wrap: pretty; }

/* The open/close mark: a plus that loses its upright when the row is open. */
.software__toggle { position: relative; justify-self: end; align-self: center; width: 20px; height: 20px; }
.software__toggle::before, .software__toggle::after { content: ""; position: absolute; background: var(--ink); transition: opacity 200ms ease, transform 320ms var(--ease-out); }
.software__toggle::before { inset: 9px 0; height: 2px; }
.software__toggle::after { inset: 0 9px; width: 2px; }
.software__item.is-open .software__toggle::after { opacity: 0; transform: scaleY(.2); }

/* Height animates through the grid row rather than a measured pixel height. */
.software__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 420ms var(--ease-out); }
.software__item.is-open .software__panel { grid-template-rows: 1fr; }
.software__panel-inner { overflow: hidden; visibility: hidden; transition: visibility 0s linear 420ms; }
.software__item.is-open .software__panel-inner { visibility: visible; transition-delay: 0s; }
.software__panel-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: clamp(20px, 3vw, 48px); row-gap: clamp(20px, 2.4vw, 32px); padding: 0 0 clamp(28px, 3vw, 44px); }
.software__panel p { max-width: 68ch; margin: 0; padding: 0; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.45; color: var(--muted); }
.software__request { justify-self: end; align-self: start; min-height: 56px; display: inline-flex; align-items: center; gap: 18px; padding: 14px 24px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 500 clamp(13px, 1vw, 15px)/1 var(--font-body); letter-spacing: var(--track); text-transform: uppercase; text-align: left; transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease-out); }
.software__request::after { content: "\2192"; font-size: 20px; line-height: 1; }

/* 03 / A connected four-stage diagram. */
.pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 48px 0 0; padding: 0; list-style: none; }
.pipeline__step { position: relative; min-width: 0; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.pipeline__step::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.pipeline__step:not(:last-child)::after { content: "→"; position: absolute; right: -17px; top: -15px; color: var(--ink); font-size: 18px; line-height: 24px; }
.pipeline__label { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0 0 20px; font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; letter-spacing: var(--track); line-height: 1; text-transform: uppercase; }
.pipeline__number { color: var(--accent); font-size: inherit; line-height: 1; }
.pipeline__figure { padding: 12px; background: var(--surface); border: 1px solid var(--line); }
.pipeline__figure img { display: block; width: 100%; height: auto; aspect-ratio: 1.12; object-fit: contain; }

/* 04 / Social observation, with an offset photographic composition. */
.scanning { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 6vw, 88px); }
.scanning__text h2 { max-width: 21ch; }
.scanning__text > p, .numbers__text > p { max-width: 44ch; margin: 26px 0 0; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.35; color: var(--muted); }
.scanning__text > p.statement { margin-top: 34px; max-width: 34ch; color: var(--ink); font-size: clamp(20px, 1.95vw, 28px); line-height: 1.2; letter-spacing: var(--track); padding-left: 24px; position: relative; }
.scanning__text > p.statement::before { content: ""; position: absolute; left: 0; top: .44em; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.scanning__mosaic { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 205px 235px; align-items: stretch; gap: 16px; padding: 40px 0 24px; }
.scanning__mosaic::before { content: ""; position: absolute; top: 0; right: 0; width: 88px; height: 18px; background: radial-gradient(circle at 3px 3px, var(--accent) 2px, transparent 2.5px) 0 0 / 11px 11px; }
.scanning__mosaic::after { content: ""; position: absolute; left: -18px; bottom: 0; width: 64px; height: 50px; background: radial-gradient(circle at 3px 3px, var(--accent) 2px, transparent 2.5px) 0 0 / 11px 11px; pointer-events: none; }
.scanning__figure { min-width: 0; overflow: hidden; background: var(--paper-blue); }
.scanning__figure--tall { grid-row: span 2; }
.scanning__figure:nth-child(2) { margin-top: -40px; }
.scanning__figure img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* 05 / Evidence pairs, on the same axes. */
.finance .section-heading { max-width: 1090px; }
.finance .section-heading h2 { max-width: 38ch; font-size: clamp(28px, 3.2vw, 46px); }
.finance .section-lead { max-width: 46ch; color: var(--ink); }
.finance__grid { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

/* 06 / Photograph to a readable data record. */
.numbers { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.numbers__text h2 { max-width: 19ch; }
.numbers__tasks { margin: 30px 0 0; display: grid; gap: 18px; }
.numbers__tasks > div { display: grid; grid-template-columns: 65px minmax(0, 1fr); gap: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.numbers__tasks dt { color: var(--ink); font-size: clamp(12px, .98vw, 14px); line-height: 1.2; }
.numbers__tasks dd { margin: 0; color: var(--muted); font-size: clamp(15px, 1.15vw, 18px); line-height: 1.35; }
.numbers__flow { display: grid; grid-template-columns: minmax(0, .9fr) 28px minmax(0, 1.3fr); gap: 12px; align-items: center; }
.numbers__flow .panel__caption { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 66px; padding: 12px; }
.numbers__flow .panel:first-child img { height: 360px; object-fit: cover; }
.numbers__flow .panel:last-child { margin-top: 82px; }
.numbers__flow .panel:last-child img { aspect-ratio: auto; object-fit: contain; }
.numbers__arrow { color: var(--accent); }
.numbers__arrow svg { display: block; width: 100%; height: auto; }

/* 07 / Observation register. */
.dataset__grid { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.dataset__series { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); gap: 16px 14px; align-items: center; }
.dataset__series > .dataset__head:first-child { grid-column: 2; }
.dataset__head { margin: 0; color: var(--ink); font-size: clamp(11px, .92vw, 13px); line-height: 1.2; }
.dataset__point { margin: 0; color: var(--muted); font-size: clamp(11px, .92vw, 13px); line-height: 1.2; }
.dataset__point:last-child { grid-column: 1 / -1; padding: 16px 0 0 78px; border-top: 1px solid var(--line); color: var(--ink); }
.dataset__json { display: grid; gap: 16px; padding-left: 30px; border-left: 1px solid var(--line); }
.dataset__note { margin: 0; max-width: 32ch; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.35; color: var(--muted); }

/* 08 / An analytical worksheet, not an unrelated dark section. */
.patterns { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 5vw, 72px); align-items: start; }
.patterns__text h2 { max-width: 23ch; font-size: clamp(30px, 2.9vw, 44px); }
.patterns__intro { margin: 32px 0 14px; font-size: clamp(14px, 1.05vw, 16px); color: var(--muted); }
.patterns__list { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.35; }
.patterns__list li { position: relative; padding-left: 22px; margin-bottom: 12px; }
.patterns__list li::before { content: "+"; position: absolute; left: 0; top: 0; color: var(--accent); }
.patterns__samples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.patterns__samples figure { border-top: 1px solid var(--line-dark); padding: 15px 0 0; }
.patterns__samples figcaption { margin-bottom: 12px; font-size: clamp(11px, .92vw, 13px); line-height: 1; color: var(--muted); }
.spark { display: block; width: 100%; max-height: 76px; }
.spark--steady { color: var(--ink); }
.spark--volatile { color: var(--accent); }
.patterns__math { min-width: 0; padding: clamp(22px, 2.5vw, 36px); background: var(--paper-blue); border: 1px solid var(--line); }
.patterns__block + .patterns__block { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.patterns__block h3 { margin: 0 0 18px; font-size: clamp(12px, .98vw, 14px); line-height: 1.2; color: var(--ink); }
.patterns__block p { margin: 0 0 12px; font-size: clamp(14px, 1.08vw, 17px); line-height: 1.35; color: var(--muted); }
.patterns__block p:last-child { margin-bottom: 0; }
.patterns__block strong { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.patterns__block p.formula--lead { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.4; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.patterns__legend { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; margin: 20px 0 0; }
.patterns__legend dt { font-size: clamp(12px, .98vw, 14px); line-height: 1.2; color: var(--ink); }
.patterns__legend dd { margin: 8px 0 0; font-size: clamp(13px, 1.02vw, 16px); line-height: 1.35; color: var(--muted); }
.patterns__equations { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: clamp(13px, 1.02vw, 15px); line-height: 1.5; color: var(--muted); font-variant-numeric: tabular-nums; }
.patterns__equations li { overflow-wrap: anywhere; }

/* 09 / Outcomes and one full photographic spread. */
.investor { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 36px 80px; }
.investor__text h2 { max-width: 26ch; }
.investor__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; margin: 30px 0 0; padding: 0; list-style: none; }
.investor__list li { position: relative; padding-left: 24px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.3; color: var(--muted); }
.investor__list li::before { content: "+"; position: absolute; left: 0; top: -2px; color: var(--accent); font-size: 19px; line-height: 1.4; }
.investor__outcome { align-self: end; max-width: 26ch; margin: 0 0 2px; padding-top: 26px; border-top: 1px solid var(--line-dark); font-size: clamp(20px, 1.95vw, 28px); line-height: 1.2; letter-spacing: var(--track); }
.investor__arrow { width: 44px; display: block; margin: 0 0 20px; color: var(--accent); }
.investor__arrow svg { display: block; width: 100%; height: auto; }
.investor__mosaic { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr .9fr; grid-template-rows: 188px 188px; gap: 16px; }
.investor__figure { min-width: 0; overflow: hidden; background: var(--paper-blue); }
.investor__figure--wide { grid-column: span 2; grid-row: span 2; }
.investor__figure img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* 10 / Final proposition, with a larger version of the brand's raster. */
.closing { min-height: 650px; padding-top: clamp(64px, 7vw, 108px); padding-bottom: 60px; }
.closing h2 { max-width: 22ch; font-size: clamp(42px, 6.3vw, 96px); line-height: .9; letter-spacing: var(--track); text-transform: uppercase; }
.closing__text { max-width: 46ch; margin: 32px 0 0; color: var(--muted); font-size: clamp(18px, 1.55vw, 24px); line-height: 1.25; }
.closing .button { margin-top: 40px; }
.closing__lockup { display: flex; align-items: flex-end; gap: 24px; margin: 62px 0 0; }
.closing__studio { font-family: var(--font-mark); font-size: 44px; font-weight: 600; letter-spacing: var(--track); line-height: .9; }
.closing__product { font-size: 12px; line-height: 1.25; color: var(--muted); }
.closing > .pixel-field { position: absolute; right: var(--edge); bottom: 72px; width: 230px; gap: 10px; }
/* A grid, not a row: the three marks keep the spacing they had, and the note
   below them can hold a readable measure. As a flex item its max-width would
   have kept it on the first line instead of breaking to its own. */
.site-footer { min-height: 88px; display: grid; grid-template-columns: auto auto auto; justify-content: space-between; align-items: center; gap: 14px 24px; padding: 28px var(--edge); color: rgb(246 246 246 / .66); font-size: 12px; line-height: 1; }
/* One standing note for the whole site: the models and figures are shown to
   explain how a priority moves a project, not to describe a real parcel. */
.site-footer__note { grid-column: 1 / -1; margin: 0; max-width: 78ch; line-height: 1.45; }
.site-footer span:first-child { color: #f6f6f6; }

/* Dark sections: the ink ground the reference uses for its heaviest chapters. */
.section--dark, .closing { border-bottom-color: rgb(246 246 246 / .18); }
.section--dark .panel, .closing .panel { background: rgb(246 246 246 / .05); border-color: rgb(246 246 246 / .2); }
.section--dark .patterns__math { background: rgb(246 246 246 / .05); border-color: rgb(246 246 246 / .2); }
.section--dark .pipeline__figure, .closing .pipeline__figure { background: rgb(246 246 246 / .05); }
.section--dark ::selection, .closing ::selection { color: #202124; background: #f6f6f6; }
.section--dark :focus-visible, .closing :focus-visible { outline-color: #f6f6f6; }
.site-footer { border-top: 0; }

/* Native modal: Escape, focus trapping and return to the source image. */
.image-dialog { width: min(1260px, calc(100% - 64px)); max-height: calc(100dvh - 64px); margin: auto; padding: 0; border: 1px solid var(--line-dark); background: var(--background); color: var(--ink); }
.image-dialog::backdrop { background: rgb(32 33 36 / .82); }
.image-dialog__header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 24px; background: var(--background); border-bottom: 1px solid var(--line); }
.image-dialog__title { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.2; letter-spacing: var(--track); }
.image-dialog__close, .image-dialog__zoom { flex: 0 0 auto; min-height: 44px; border: 1px solid var(--line-dark); padding: 8px 16px; background: transparent; color: var(--ink); font-size: 13px; line-height: 1; }
.image-dialog__actions { display: flex; gap: 10px; }
.image-dialog__viewport { overflow: auto; max-height: calc(100dvh - 180px); overscroll-behavior: contain; }
.image-dialog__viewport:focus-visible { outline-offset: -3px; }
.image-dialog.is-zoomed .image-dialog__image { width: auto; height: auto; max-width: none; max-height: none; margin: 20px; }
.image-dialog__image { display: block; max-width: 100%; max-height: calc(100dvh - 200px); width: auto; height: auto; object-fit: contain; margin: 24px auto; }
.image-dialog__image[hidden] { display: none; }
.image-dialog__description { margin: 24px auto; padding: 0 28px; max-width: 62ch; font-size: 17px; line-height: 1.35; }
.image-dialog__description:empty { display: none; }
.image-dialog__error { margin: 32px; color: var(--muted); }
.image-dialog__error[hidden] { display: none; }

/* Requesting access: one dialog, two steps — what is needed, then who asks. */
.request-dialog { width: min(720px, calc(100% - 48px)); max-height: calc(100dvh - 64px); margin: auto; padding: 0; border: 1px solid var(--line-dark); background: var(--background); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.request-dialog::backdrop { background: rgb(32 33 36 / .82); }
.request-dialog__head { position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 20px; padding: 20px 24px; background: var(--background); border-bottom: 1px solid var(--line); }
.request-dialog__eyebrow { margin: 0 0 7px; font-size: 13px; line-height: 1; letter-spacing: var(--track); color: var(--muted); }
.request-dialog__eyebrow:empty { display: none; }
.request-dialog__title { margin: 0; font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; line-height: 1.15; letter-spacing: var(--track); }
.request-dialog__close { flex: 0 0 auto; min-height: 44px; border: 1px solid var(--line-dark); padding: 8px 16px; background: transparent; color: var(--ink); font-size: 13px; line-height: 1; }
.request-dialog__step { padding: clamp(22px, 2.6vw, 30px) 24px clamp(26px, 3vw, 34px); }
.request-dialog__step[hidden] { display: none; }
.request-dialog__lead { max-width: 54ch; margin: 0 0 20px; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.4; color: var(--muted); }
.request-dialog__choices { display: grid; gap: 14px; }
.request-choice { display: grid; gap: 8px; padding: 20px; border: 1px solid var(--line-dark); background: transparent; color: var(--ink); text-align: left; transition: background-color 180ms ease, border-color 180ms ease, transform 140ms var(--ease-out); }
.request-choice__title { font-size: clamp(16px, 1.3vw, 20px); font-weight: 500; line-height: 1.2; letter-spacing: var(--track); }
.request-choice__note { font-size: clamp(13px, 1.05vw, 15px); line-height: 1.4; color: var(--muted); }
.request-choice:active { transform: scale(.99); }

.request-form { display: grid; gap: 16px; }
.request-form__track { margin: 0; font-size: 13px; line-height: 1.3; letter-spacing: var(--track); color: var(--muted); }
.request-form__field { display: grid; gap: 7px; }
.request-form__field label { font-size: 13px; letter-spacing: var(--track); color: var(--muted); }
.request-form__field input, .request-form__field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-dark); border-radius: 0; background: var(--surface); color: var(--ink); font: 400 15px/1.35 var(--font-body); letter-spacing: var(--track-body); }
.request-form__field textarea { min-height: 116px; resize: vertical; }
/* Never shown, never filled by a person: the honeypot the backend checks. */
.request-form__honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.request-form__consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; font-size: 12px; line-height: 1.4; color: var(--muted); cursor: pointer; }
.request-form__consent a { text-decoration: underline; }
.request-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.request-form__actions button { min-height: 52px; padding: 14px 28px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 500 14px/1 var(--font-body); letter-spacing: var(--track); text-transform: uppercase; transition: background-color 180ms ease, color 180ms ease; }
.request-form__actions button:disabled { opacity: .55; }
.request-form__back { background: transparent !important; color: var(--ink) !important; border-color: var(--line-dark) !important; }
.request-form__status { flex: 1 1 14ch; font-size: 13px; line-height: 1.35; color: var(--muted); }
.request-form__status.is-success { color: var(--ink); }
.request-form__status.is-error { color: var(--accent); }

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover, .ca-mode-nav button:hover { opacity: .6; }
  .service-trigger:hover { border-color: var(--ink); }
  .software__trigger:hover { opacity: .62; }
  .deck__arrow:hover { background: var(--ink); color: var(--paper); }
  .lang-switch button:hover { opacity: 1; }
  .figure-open:hover::after { opacity: 1; transform: none; }
  .more-button:hover, .button:hover, .service-mode-link:hover { background: transparent; color: var(--ink); }
  .software__request:hover { background: transparent; color: var(--ink); }
  .request-choice:hover { border-color: var(--ink); background: var(--bone); }
  .request-dialog__close:hover { background: var(--bone); }
  .request-form__actions button:hover:not(:disabled) { background: transparent; color: var(--ink); }
  .request-form__back:hover { background: var(--bone) !important; }
  .hero__motion:hover { color: var(--accent); }
  .image-dialog__close:hover, .image-dialog__zoom:hover { background: var(--bone); }
}
.more-button:active, .button:active, .service-mode-link:active, .hero__motion:active { transform: scale(.97); }
.software__request:active { transform: scale(.97); }

/* Tablet retains paired evidence and the four-step logic. */
@media (max-width: 1100px) {
  :root { --gutter: 36px; --section-y: 72px; }
  .site-header__index { display: none; }
  .deck__card { width: min(430px, 80%); }
  .scanning, .numbers { gap: 36px; }
  .scanning__mosaic { grid-template-rows: 170px 190px; gap: 12px; }
  .numbers { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .numbers__flow { grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); gap: 8px; }
  .numbers__flow .panel:first-child img { height: 300px; }
  .dataset__grid { grid-template-columns: minmax(0, 1fr); }
  .dataset__json { max-width: 620px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, .65fr); padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .dataset__json > .dataset__head { grid-column: 1 / -1; }
  .patterns { gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .investor { gap: 36px; }
  .investor__mosaic { grid-template-rows: 160px 160px; }
  .closing > .pixel-field { width: 160px; gap: 7px; }
  .closing__text { max-width: 65%; }
}
@media (max-width: 800px) {
  .software__panel-body { grid-template-columns: minmax(0, 1fr); }
  .software__request { justify-self: stretch; justify-content: space-between; }
  :root { --gutter: 26px; --section-y: 60px; }
  .site-header { height: 64px; gap: 18px; }
  html { scroll-padding-top: 82px; }
  .brand { width: 94px; }
  .site-nav { gap: 24px; }
  .site-nav a { font-size: 11px; }
  .deck__rail {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin-inline: calc(var(--edge) * -1);
    padding-inline: var(--edge);
  }
  .deck__rail::-webkit-scrollbar { display: none; }
  .service-trigger { flex: 0 0 auto; scroll-snap-align: start; }
  .deck__stage { height: clamp(420px, 88vw, 620px); }
  .deck__card { width: min(420px, 86%); }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 22px; }
  .pipeline__step:nth-child(2)::after { display: none; }
  .scanning, .numbers, .patterns { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .scanning__text h2, .numbers__text h2, .patterns__text h2 { max-width: 26ch; }
  .scanning__mosaic { grid-template-rows: 205px 245px; max-width: 600px; }
  .numbers__flow { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1.25fr); gap: 16px; }
  .numbers__flow .panel:first-child img { height: 350px; }
  .numbers__flow .panel:last-child img { aspect-ratio: auto; }
  .finance__grid { gap: 16px; }
  .panel__caption { padding: 10px 12px; font-size: 10px; }
  .panel__caption span:last-child:not(:first-child) { font-size: 10px; }
  .patterns__samples { max-width: 460px; }
  .patterns__math { padding: 28px; }
  .investor { grid-template-columns: minmax(0, 1fr); }
  .investor__text h2 { max-width: 25ch; }
  .investor__outcome { max-width: 38ch; padding-top: 20px; font-size: 21px; display: flex; align-items: flex-start; gap: 20px; }
  .investor__arrow { flex: 0 0 36px; margin: 10px 0 0; }
  .investor__mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 290px 190px; }
  .investor__figure--wide { grid-row: span 1; }
  .closing { min-height: 0; }
  .closing h2 { font-size: clamp(42px, 6.2vw, 54px); }
  .closing__text { max-width: 100%; font-size: 16px; }
  .closing > .pixel-field { width: 132px; bottom: 48px; gap: 5px; }
  .site-footer { font-size: 11px; gap: 16px; }
}
@media (max-width: 540px) {
  .request-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 32px); }
  .request-dialog__head { padding: 14px 16px; gap: 12px; }
  .request-dialog__step { padding: 20px 16px 24px; }
  .request-form__actions button { flex: 1 1 auto; padding: 14px 18px; }
  :root { --gutter: 22px; --section-y: 48px; --brand-mark-size: clamp(56px, 17vw, 72px); }
  .site-header { gap: 12px; }
  .brand { width: 82px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 10px; }
  .site-nav a:last-child { display: none; }
  h2 { font-size: 31px; line-height: 1.17; }
  .section-heading h2 { max-width: 26ch; }
  .capabilities { padding-bottom: 44px; }
  .deck__rail { gap: 8px; }
  .service-trigger { min-height: 42px; padding: 10px 14px; }
  .deck__stage { height: 640px; }
  .deck__card { width: auto; justify-self: stretch; align-self: end; margin: 12px; padding: 20px; }
  .deck__card-body { font-size: 14px; }
  .deck__nav { top: 0; bottom: auto; }
  .deck__arrow { border-top: 0; border-bottom: 1px solid var(--line-dark); }
  .more-button { min-width: 180px; }
  .service-mode-links { grid-template-columns: minmax(0, 1fr); }
  .section-lead { margin-top: 24px; font-size: 16px; }
  .pipeline { margin-top: 32px; gap: 26px 14px; }
  .pipeline__step { padding-top: 16px; }
  .pipeline__label { gap: 8px; font-size: 16px; margin-bottom: 12px; }
  .pipeline__number { font-size: 10px; }
  .pipeline__figure { padding: 7px; }
  .pipeline__figure img { aspect-ratio: .95; }
  .scanning__text > p.statement { font-size: 18px; }
  .scanning__mosaic { grid-template-rows: 135px 180px; gap: 12px; padding-top: 24px; padding-bottom: 16px; }
  .scanning__figure:nth-child(2) { margin-top: -24px; }
  .scanning__mosaic::before { height: 12px; }
  .scanning__mosaic::after { width: 44px; height: 34px; left: -10px; }
  .finance .section-heading h2 { font-size: 29px; }
  .finance__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 28px; }
  .numbers__tasks > div { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .numbers__flow { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .numbers__flow .panel { width: 100%; }
  .numbers__flow .panel:first-child img { height: 260px; object-position: center 60%; }
  .numbers__flow .panel:last-child { margin-top: 0; }
  .numbers__flow .panel:last-child img { aspect-ratio: auto; }
  .numbers__flow .panel__caption { flex-direction: row; align-items: center; min-height: 42px; padding: 10px 12px; }
  .numbers__arrow { width: 32px; margin: 6px auto; transform: rotate(90deg); }
  .dataset__grid { margin-top: 28px; gap: 24px; }
  .dataset__series { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dataset__series > .dataset__head { display: none; }
  .dataset__point { margin-top: 14px; color: var(--blueprint); font-size: 12px; }
  .dataset__point:last-child { padding-left: 0; }
  .dataset__series .panel::before { content: attr(data-chart-label); display: block; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font: 10px/1.5 var(--font-mono); }
  .dataset__json { grid-template-columns: minmax(0, 1fr); }
  .dataset__note { max-width: 100%; }
  .patterns__math { padding: 22px 18px; }
  .patterns__block p.formula--lead { font-size: 16px; }
  .patterns__equations { font-size: 13px; line-height: 1.75; }
  .patterns__legend { gap: 16px; }
  .patterns__samples { gap: 18px; }
  .investor__list { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 24px; }
  .investor__mosaic { grid-template-rows: 210px 150px; gap: 12px; }
  .closing h2 { font-size: 39px; }
  .closing h2 br { display: none; }
  .closing .button { width: 100%; min-width: 0; }
  .closing > .pixel-field { width: 102px; gap: 4px; bottom: 44px; }
  .closing__lockup { margin-top: 54px; gap: 18px; }
  .closing__studio { font-size: 34px; }
  .closing__product { font-size: 9px; }
  .site-footer { display: grid; grid-template-columns: 1fr auto; }
  .site-footer span:nth-child(2) { grid-column: 1; grid-row: 2; }
  .site-footer span:nth-child(3) { grid-column: 2; grid-row: 1; }
  .site-footer__note { grid-column: 1 / -1; grid-row: 3; }
  .image-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 32px); }
  .image-dialog__header { padding: 12px; gap: 12px; }
  .image-dialog__title { font-size: 12px; }
  .image-dialog__close, .image-dialog__zoom { padding: 8px 12px; font-size: 11px; }
  .image-dialog__image { margin: 16px auto; max-height: calc(100dvh - 170px); }
  .image-dialog__description { padding: 0 18px; font-size: 15px; }
}
@media (hover: none) { .figure-open::after { opacity: 1; transform: none; width: 26px; height: 26px; bottom: 7px; right: 7px; } }
html:not(.has-js) .deck__card { position: static; opacity: 1; transform: none; pointer-events: auto; }
html:not(.has-js) .software__panel { grid-template-rows: 1fr; }
html:not(.has-js) .software__panel-inner { visibility: visible; }
html:not(.has-js) .software__toggle { display: none; }
html:not(.has-js) .software__request { display: none; }
html:not(.has-js) .more-button { display: none; }
html:not(.has-js) .site-header .brand { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
html:not(.has-js) .site-header { opacity: 1; pointer-events: auto; }
/* Only a bar that never reaches its scrolled state needs the solid ground.
   Where the page declares that state in the markup — the masterplan — the
   glass above holds. */
html:not(.has-js) .site-header:not(.site-header--brand-visible) { background: var(--background); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .brand { transform: none; }
}
@media (max-height: 690px) and (min-width: 701px) { :root { --brand-mark-size: 65px; } }

/* Product-site links reuse the software action and work without JavaScript. */
.software__site { text-decoration: none; }
html:not(.has-js) .software__site { display: inline-flex; }

/* The Zemlya interface spans the row below the description and site link. */
.software__preview { grid-column: 1 / -1; margin: 0; }
.software__preview img { display: block; width: 100%; height: auto; }
