/* Datum Defence Group: homepage (scene 1, hero)
   Layout: a pinned studio plate. Headline top left, the 3D product in the middle,
   a spec column of leader-line callouts beside it, standfirst and action bottom left,
   and a fixed frame (logo, language, menu, scene counter) around everything.
   Colour rule: Ukrainian source text in graphite, English output in ink,
   signal orange only where Datum translates or marks something up.
   Ground (17 Oct, Elliot: "I don't want it white"): a light olive-grey field, with the contour lines
   in the brown that military maps use for relief. Ink text on it is 8.4:1, graphite 5.4:1. */

@font-face { font-family: "Fixel Display"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/FixelDisplay-Light.subset.woff2") format("woff2"); }
@font-face { font-family: "Fixel Display"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/FixelDisplay-Regular.subset.woff2") format("woff2"); }
@font-face { font-family: "Fixel Text"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/FixelText-Regular.subset.woff2") format("woff2"); }
@font-face { font-family: "Fixel Text"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/FixelText-Medium.subset.woff2") format("woff2"); }

:root {
  /* colour */
  --studio: #b1b49c;      /* the ground: a light olive-grey field */
  --studio-hi: #c0c2ab;   /* light pool behind the product */
  --studio-band: rgba(177, 180, 156, 0.86); /* the scene counter's backing */
  --studio-photo: #a3a68f; /* behind a photo until it loads */
  --ink: #15181b;         /* brand ink: text, product, lines */
  --graphite: #383b31;    /* Ukrainian source text, secondary text (5.4:1 on the ground) */
  --signal: #d4541f;      /* brand orange: translation caret and datum markers only */
  --signal-text: #b8461a; /* the same orange a shade deeper, for words in orange (5.1:1 on paper) */
  --bone: #efede6;        /* text on ink */
  --rule: rgba(21, 24, 27, 0.55);

  /* type */
  --font-display: "Fixel Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: "Fixel Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --step--1: 0.8125rem;
  --step-0: 0.9375rem;
  --step-1: clamp(1rem, 0.94rem + 0.28vw, 1.1875rem);
  --step-display: clamp(2.45rem, 1.1rem + 4.7vw, 6.1rem);
  --step-menu: clamp(2rem, 1.2rem + 3vw, 3.75rem);

  /* space */
  --gutter: clamp(16px, 2.6vw, 44px);
  --gutter-l: max(var(--gutter), env(safe-area-inset-left, 0px));
  --gutter-r: max(var(--gutter), env(safe-area-inset-right, 0px));
  --frame-top: max(clamp(14px, 2.2vw, 30px), calc(env(safe-area-inset-top, 0px) + 8px));
  --frame-bottom: max(clamp(14px, 2.4vh, 30px), calc(env(safe-area-inset-bottom, 0px) + 8px));
  --stage-h: 100vh;
  --card-pad: clamp(14px, 1.3vw, 22px); /* service cards; the panel's plate matches it */

  color-scheme: light;
}
@supports (height: 100svh) { :root { --stage-h: 100svh; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--studio);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: fixed; left: var(--gutter-l); top: 8px; z-index: 60;
  padding: 10px 14px; background: var(--ink); color: var(--bone); text-decoration: none;
  transform: translateY(calc(-100% - 24px));
}
.skip-link:focus { transform: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- frame */

.frame {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: var(--frame-top) var(--gutter-r) 0 var(--gutter-l);
  pointer-events: none;
}
.frame > * { pointer-events: auto; }
/* Where page content scrolls under the frame, it fades into the map instead of running into the
   logo and menu: the veil is a strip of the studio itself (ground and contour lines, lined up with
   the studio exactly, so it can't be seen against it) laid over the top of the page, solid behind
   the frame and fading out just below it. No block, no edge. Script adds it and sets
   .is-frame-solid; pinned scenes keep their content clear of the frame and don't need it.
   (Until 17 Oct, 20:00 this was a frosted band; Elliot: "a solid block that travels".) */
.veil { position: fixed; left: 0; top: 0; z-index: 30; width: 100%; height: calc(var(--frame-top) + 104px); overflow: hidden; pointer-events: none;
  background: var(--studio); /* the studio's light pool doesn't reach this high */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent);
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s linear 0.3s; }
.veil img { display: block; width: 100%; height: 100vh; height: 100lvh; object-fit: cover; opacity: 0.9; } /* sized as the studio's, so the lines meet */
.is-frame-solid .veil { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.is-menu-open .veil { opacity: 0; visibility: hidden; transition: none; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: auto; height: 40px; }
.brand__words { display: grid; gap: 3px; }
.brand__name { font-family: var(--font-display); font-weight: 400; font-size: 17px; letter-spacing: 0.42em; line-height: 1; margin-right: -0.42em; }
.brand__sub { font-size: 9.5px; font-weight: 500; letter-spacing: 0.26em; line-height: 1; text-transform: uppercase; color: var(--graphite); }

.frame__right { display: flex; align-items: center; gap: 10px; }

.lang { display: inline-flex; align-items: center; padding: 3px; border-radius: 999px; background: rgba(21, 24, 27, 0.07); }
.lang a {
  display: inline-grid; place-items: center; min-width: 38px; height: 30px; padding: 0 10px;
  border-radius: 999px; font-size: var(--step--1); font-weight: 500; letter-spacing: 0.04em;
  text-decoration: none; color: var(--graphite);
}
.lang a[aria-current="page"] { background: var(--ink); color: var(--bone); }
.lang a:not([aria-current]):hover { color: var(--ink); }

.menu-btn {
  display: inline-flex; align-items: center; gap: 12px; height: 36px; padding: 0 4px 0 14px;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink);
  font: 500 var(--step--1)/1 var(--font-text); letter-spacing: 0.02em; cursor: pointer;
}
.menu-btn__icon { position: relative; width: 22px; height: 10px; }
.menu-btn__icon::before, .menu-btn__icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform 0.35s cubic-bezier(.6, 0, .2, 1), top 0.35s cubic-bezier(.6, 0, .2, 1);
}
.menu-btn__icon::before { top: 0; }
.menu-btn__icon::after { top: 8.5px; }
.is-menu-open .menu-btn__icon::before { top: 4.25px; transform: rotate(45deg); }
.is-menu-open .menu-btn__icon::after { top: 4.25px; transform: rotate(-45deg); }

.is-menu-open .frame { color: var(--bone); }
.is-menu-open .brand, .is-menu-open .menu-btn { color: var(--bone); }
.is-menu-open .brand__sub { color: rgba(239, 237, 230, 0.6); }
.is-menu-open .lang { background: rgba(239, 237, 230, 0.12); }
.is-menu-open .lang a { color: rgba(239, 237, 230, 0.7); }
.is-menu-open .lang a[aria-current="page"] { background: var(--bone); color: var(--ink); }

/* scene counter: which of the homepage's scenes you are in, and how far through it */
.counter {
  position: fixed; z-index: 30; right: var(--gutter-r); bottom: var(--frame-bottom);
  display: flex; align-items: center; gap: 10px;
  font-size: var(--step--1); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink);
}
.counter__total { color: var(--graphite); }
/* over scrolling content, a frosted backing like the frame's (same switch) */
.counter::before { content: ""; position: absolute; left: -12px; right: -12px; top: -8px; bottom: -8px; z-index: -1; border-radius: 999px; pointer-events: none;
  background: var(--studio-band); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s linear 0.3s; }
.is-frame-solid .counter::before { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.counter__bar { position: relative; width: clamp(44px, 5vw, 72px); height: 1.5px; background: rgba(21, 24, 27, 0.18); overflow: hidden; }
.counter__bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left center; transform: scaleX(var(--p, 0)); }

/* ----------------------------------------------------------------- menu */

.menu {
  position: fixed; inset: 0; z-index: 35;
  background: var(--ink); color: var(--bone);
  overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--frame-top) + 84px) var(--gutter-r) calc(var(--frame-bottom) + 24px) var(--gutter-l);
}
.menu__grid { display: grid; gap: 40px 32px; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); align-items: start; max-width: 1400px; }
.menu__primary { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu__primary a {
  display: inline-block; font-family: var(--font-display); font-weight: 300; font-size: var(--step-menu);
  line-height: 1.12; letter-spacing: -0.02em; text-decoration: none; color: var(--bone);
}
.menu__primary a:hover, .menu__primary a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.14em; }
.menu__group h2 { margin: 0 0 12px; font: 500 var(--step--1)/1.3 var(--font-text); color: rgba(239, 237, 230, 0.55); }
.menu__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.menu__group a { text-decoration: none; color: var(--bone); font-size: var(--step-0); }
.menu__group a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.menu__group p { margin: 0; color: rgba(239, 237, 230, 0.75); font-size: var(--step-0); }
.menu__group + .menu__group { margin-top: 32px; }
.menu :focus-visible { outline-color: var(--bone); }
.menu .btn { background: var(--bone); color: var(--ink); margin-top: 28px; }
.menu .btn:hover { background: #fff; }

/* -------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  background: var(--ink); color: var(--bone);
  font: 500 var(--step-0)/1 var(--font-text); letter-spacing: 0.01em; text-decoration: none;
  transition: background-color 0.2s ease;
}
.btn:hover { background: #2a2f34; }

/* ----------------------------------------------------------------- hero */

.hero { position: relative; }
.hero__stage { position: relative; height: var(--stage-h); min-height: 560px; overflow: hidden; isolation: isolate; }

/* One studio backdrop for the whole page: it stays still while the scenes move over it.
   Sized to the largest viewport, so phone toolbars showing and hiding never rescale it. */
.studio { position: fixed; left: 0; top: 0; z-index: -1; width: 100%; height: 100vh; height: 100lvh; pointer-events: none;
  background: radial-gradient(60% 55% at 56% 60%, var(--studio-hi) 0%, rgba(192, 194, 171, 0) 70%), var(--studio); }
.studio img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }

.hero__copy {
  position: absolute; z-index: 1;
  left: var(--gutter-l); right: var(--gutter-r);
  top: calc(var(--frame-top) + clamp(64px, 11vh, 120px));
}
.hero__source { margin: 0 0 clamp(10px, 1.6vh, 18px); font-size: var(--step-0); line-height: 1.35; color: var(--graphite); }
.hero__title {
  margin: 0; max-width: 13.2em;
  font-family: var(--font-display); font-weight: 300; font-size: var(--step-display);
  line-height: 1.0; letter-spacing: -0.03em; color: var(--ink);
}
.br-w, .br-n { display: none; }

.hero__canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.hero__poster { position: absolute; z-index: 2; left: 58%; top: 66%; width: min(50vw, 760px); height: auto; transform: translate(-50%, -50%); pointer-events: none; }
@media (max-width: 639px), (max-width: 1099px) and (orientation: portrait) {
  .hero__poster { left: 50%; top: 53%; width: 94vw; }
}

/* leader-line callouts */
.callouts { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.callouts svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.callouts .leader { fill: none; stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.callouts .datum { fill: var(--signal); }
.callout {
  position: absolute; margin: 0; width: min(17.5em, 40vw); text-wrap: balance;
  font-size: var(--step-0); line-height: 1.35; color: var(--ink);
  opacity: 0;
}
.callout[data-side="right"] { text-align: right; }
.callout__text { display: block; }

/* letter-by-letter translation */
.rz-src { color: var(--graphite); }
.rz-fresh { color: var(--signal-text); }
.rz-caret { display: inline-block; width: 2px; height: 0.95em; margin: 0 0.07em; vertical-align: -0.1em; background: var(--signal); }
.rz-line { display: block; white-space: nowrap; }

.hero__note-wrap { position: absolute; z-index: 4; right: var(--gutter-r); bottom: calc(var(--frame-bottom) + 36px); }
.hero__note { margin: 0; font-size: var(--step--1); color: var(--graphite); }

.hero__foot {
  position: absolute; z-index: 4;
  left: var(--gutter-l); bottom: calc(var(--frame-bottom) + 6px);
  width: min(30rem, calc(100% - var(--gutter-l) - var(--gutter-r)));
  display: grid; gap: 22px; justify-items: start;
}
.hero__lede { margin: 0; max-width: 31em; font-size: var(--step-1); line-height: 1.45; color: var(--ink); text-wrap: pretty; }

.scroll-cue-wrap { position: absolute; z-index: 4; left: 50%; bottom: calc(var(--frame-bottom) + 4px); transform: translateX(-50%); }
.scroll-cue {
  display: inline-flex; align-items: center; gap: 12px; padding: 4px 4px 4px 14px;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink);
  font: 500 var(--step--1)/1 var(--font-text); cursor: pointer;
}
.scroll-cue__ring { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule); }
.scroll-cue__ring svg { width: 12px; height: 14px; }

/* ------------------------------------------------- scene 2: sector wheel */

.text-link { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.text-link:hover { text-decoration-thickness: 2px; }

/* Plain list (no script, no GPU, or reduced motion) */
.sectors { position: relative; }
.sectors__stage { position: relative; padding: clamp(72px, 10vh, 120px) var(--gutter-r) clamp(72px, 10vh, 120px) var(--gutter-l); }
.sectors__canvas, .sectors__ua, .checks { display: none; }
.sectors__intro { max-width: 34rem; margin-bottom: 40px; }
.sectors__title { margin: 0 0 12px; font: 300 clamp(1.9rem, 1.2rem + 2.4vw, 3.2rem)/1.05 var(--font-display); letter-spacing: -0.02em; }
.sectors__lede { margin: 0 0 14px; font-size: var(--step-1); line-height: 1.45; text-wrap: pretty; }
.wheel { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px 40px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.wheel__item { min-width: 0; }
.wheel__name { display: inline-block; font: 300 clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem)/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.wheel__name:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.14em; }
.wheel__ua { display: block; margin-top: 4px; font-size: var(--step-0); color: var(--graphite); }
.wheel__label { margin: 14px 0 6px; font-size: var(--step--1); color: var(--graphite); }
.wheel__checks { margin: 0; padding: 0; list-style: none; font-size: var(--step-0); line-height: 1.45; }
.wheel__checks li { position: relative; padding-left: 18px; }
.wheel__checks li + li { margin-top: 4px; }
.wheel__checks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--ink); }

/* Wheel (script, GPU, motion) */
.sectors.is-wheel .sectors__stage { height: var(--stage-h); min-height: 560px; padding: 0; overflow: hidden; isolation: isolate; }
.sectors.is-wheel .sectors__canvas { display: block; position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.sectors.is-wheel .wheel {
  --focus-y: 0.28; /* focused name, as a fraction of the stage height */
  --low-y: 1.1; /* where the names after it rest; past 1 means off the bottom */
  position: absolute; inset: 0; z-index: 1; display: block;
  font: 300 clamp(2.3rem, 1rem + 4.1vw, 5.6rem)/1 var(--font-display);
}
.sectors.is-wheel .wheel__item { position: absolute; left: 50%; top: var(--focus-px, 34%); white-space: nowrap; transform-origin: 50% 50%; will-change: transform, opacity; }
.sectors.is-wheel .wheel__name { font: inherit; letter-spacing: -0.03em; line-height: 1; }
.sectors.is-wheel .wheel__name:hover { text-decoration: none; }
.sectors.is-wheel .wheel__name { transition: color 0.35s ease; }
.sectors.is-wheel .wheel__item:not(.is-focus) .wheel__name { color: var(--graphite); }
.sectors.is-wheel .wheel__ua,
.sectors.is-wheel .wheel__label,
.sectors.is-wheel .wheel__checks {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sectors.is-wheel .sectors__ua { display: block; position: absolute; z-index: 3; left: 0; right: 0; margin: 0; text-align: center; font-size: var(--step-0); line-height: 1.35; color: var(--graphite); pointer-events: none; }
.sectors__ua span { display: inline-block; }
.sectors.is-wheel .sectors__intro {
  position: absolute; z-index: 4; margin: 0;
  left: var(--gutter-l); bottom: calc(var(--frame-bottom) + 6px); width: min(22rem, 30vw);
}
.sectors.is-wheel .sectors__title { font: 500 var(--step-0)/1.3 var(--font-text); letter-spacing: 0; margin-bottom: 8px; }
.sectors.is-wheel .sectors__lede { font-size: var(--step-0); margin-bottom: 10px; }
.sectors.is-wheel .checks {
  display: block; position: absolute; z-index: 4;
  right: var(--gutter-r); bottom: calc(var(--frame-bottom) + 40px); width: min(23rem, 32vw);
}
.checks__title { margin: 0 0 8px; font-size: var(--step--1); color: var(--graphite); }
.checks__list { margin: 0; padding: 0; list-style: none; font-size: var(--step-0); line-height: 1.4; }
.checks__list li { position: relative; padding-left: 18px; }
.checks__list li + li { margin-top: 6px; }
.checks__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 1px; background: var(--ink); }

/* Wide screens: the list's lower names show at the bottom, the text panels sit either side of the model */
@media (min-width: 1200px) and (min-height: 620px) {
  .sectors.is-wheel .wheel { --low-y: 0.84; }
  .sectors.is-wheel .sectors__intro { top: 56%; bottom: auto; transform: translateY(-50%); width: min(20rem, 23vw); }
  .sectors.is-wheel .checks { top: 56%; bottom: auto; transform: translateY(-50%); width: min(21rem, 24vw); }
}

@media (max-width: 639px), (max-width: 1099px) and (orientation: portrait) {
  .sectors.is-wheel .wheel { --focus-y: 0.3; font-size: clamp(2rem, 1.2rem + 3.6vw, 3.4rem); }
  .sectors.is-wheel .sectors__intro { top: calc(var(--frame-top) + 52px); bottom: auto; width: auto; right: var(--gutter-r); display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
  .sectors.is-wheel .sectors__title { margin: 0; }
  .sectors.is-wheel .sectors__lede { display: none; }
  .sectors.is-wheel .checks { left: var(--gutter-l); right: var(--gutter-r); width: auto; bottom: calc(var(--frame-bottom) + 40px); }
  .sectors.is-wheel .checks__list { font-size: var(--step--1); }
}

/* Short landscape screens (phones turned sideways): the wheel fits the screen height. */
@media (max-height: 560px) and (orientation: landscape) {
  .sectors.is-wheel .sectors__stage { min-height: 0; }
  .sectors.is-wheel .wheel { --focus-y: 0.3; font-size: min(clamp(2.3rem, 1rem + 4.1vw, 5.6rem), 12vh); }
  .sectors.is-wheel .sectors__lede { display: none; }
  .sectors.is-wheel .sectors__intro { width: min(16rem, 26vw); }
  .sectors.is-wheel .checks { width: min(18rem, 30vw); bottom: calc(var(--frame-bottom) + 30px); }
  .sectors.is-wheel .checks__list { font-size: var(--step--1); }
}

/* ------------------------------------------- scene 3: what a buyer notices first */

/* Static by default (no script, no GPU, reduced motion): the finished, marked-up datasheet. */
.sheet { position: relative; }
.sheet__stage { position: relative; padding: clamp(72px, 10vh, 120px) var(--gutter-r) clamp(72px, 10vh, 120px) var(--gutter-l);
  display: grid; gap: 32px 48px; align-items: start; }
.sheet__canvas { display: none; }
.sheet__intro { max-width: 30rem; }
.sheet__title { margin: 0 0 12px; font: 300 clamp(1.9rem, 1.2rem + 2.4vw, 3.2rem)/1.05 var(--font-display); letter-spacing: -0.02em; }
.sheet__lede { margin: 0 0 14px; font-size: var(--step-1); line-height: 1.45; text-wrap: pretty; }

.paper { --pad: clamp(16px, 2.2vw, 28px); position: relative; background: #fbfaf7; color: var(--ink);
  padding: var(--pad); border-radius: 2px; max-width: 680px;
  box-shadow: 0 1px 2px rgba(21, 24, 27, 0.06), 0 22px 44px -16px rgba(21, 24, 27, 0.22);
  font: 400 0.8125rem/1.5 var(--font-text); }
.paper__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid #e3e1da; }
.paper__name { margin: 0; font: 400 1.45rem/1.1 var(--font-display); letter-spacing: -0.01em; }
.paper__sub { margin: 0; color: var(--graphite); }
.paper__kind { margin: 0 0 0 auto; font-size: 0.75rem; color: var(--graphite); }
.paper__drawing { position: relative; margin: 0 0 16px; aspect-ratio: 12 / 5; border: 1px solid #e8e6df; }
.paper__drawing img { display: block; width: 100%; height: 100%; object-fit: contain; }
.paper__drawing figcaption { position: absolute; left: 10px; bottom: 7px; font-size: 0.6875rem; color: var(--graphite); }
.paper__body { display: flex; flex-direction: column; gap: 18px; }
.paper__block { position: relative; }
.paper__h { margin: 0 0 6px; font: 500 0.8125rem/1.3 var(--font-text); }
.specs { margin: 0; padding: 0; list-style: none; }
.specs li { padding: 6px 0; border-top: 1px solid #ecebe6; }
.fix del, .fix ins { display: block; text-decoration: none; }
.fix del { --s: 1; color: var(--graphite); transition: color 0.3s ease; }
/* the strike: drawn through every line of the sentence, growing with --s */
.fix del > span { background-image: linear-gradient(var(--signal), var(--signal)); background-repeat: no-repeat;
  background-position: 0 58%; background-size: calc(var(--s) * 100%) 1.5px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.fix ins { margin-top: 3px; color: var(--signal-text); font-weight: 500; }
.note { margin: 4px 0 0; color: var(--signal-text); font-size: 0.75rem; line-height: 1.35; }
.note b { display: block; font-weight: 500; }
.note b::before { content: ""; display: inline-block; width: 8px; height: 7px; margin-right: 6px; vertical-align: 0.05em;
  background: var(--signal); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.paper__specs::before { /* the moved block, marked in the left margin */
  content: ""; position: absolute; left: calc(var(--pad) * -0.55); top: 2px; bottom: 2px; width: 2px;
  background: var(--signal); transform-origin: 50% 0; transform: scaleY(var(--rule, 1)); }
.bars i { display: block; height: 7px; margin: 9px 0; border-radius: 1px; background: #e4e2db; }
.bars i:nth-child(2) { width: 94%; } .bars i:nth-child(4) { width: 88%; } .bars i:nth-child(5) { width: 58%; }
.paper__foot { margin: 16px 0 0; font-size: 0.6875rem; color: var(--graphite); }
/* typed corrections (motion mode wraps each letter) */
.ch { opacity: 0; }
.ch.on { opacity: 1; }
.ch.caret { position: relative; }
.ch.caret::after { content: ""; position: absolute; right: -2px; top: 0.12em; width: 2px; height: 1.05em; background: var(--signal); }

/* Wide screens: notes sit in the page's margin column, like an editor's */
@media (min-width: 1100px) and (orientation: landscape) {
  .sheet__stage { grid-template-columns: minmax(0, 26rem) minmax(0, 680px); justify-content: space-between; }
  .paper { --margin: 11rem; }
  .paper__drawing { aspect-ratio: 3 / 1; }
  .paper__row, .specs li { display: grid; grid-template-columns: minmax(0, 1fr) var(--margin); column-gap: 22px; align-items: start; }
  .specs li > :not(.note), .paper__row > :not(.note) { grid-column: 1; }
  .specs li > .note, .paper__row > .note { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .paper__about { margin-right: calc(var(--margin) + 22px); }
}

/* Motion mode: the stage pins; the model flattens into the drawing and the markup plays */
.sheet.is-motion .sheet__stage { display: block; height: var(--stage-h); min-height: 560px; padding: 0; overflow: hidden; isolation: isolate; }
.sheet.is-motion .sheet__canvas { display: block; position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; pointer-events: none; }
.sheet.is-motion .sheet__intro { position: absolute; z-index: 2; left: var(--gutter-l); top: calc(var(--frame-top) + 96px); width: min(26rem, 30vw); }
.sheet.is-motion .sheet__view { position: absolute; z-index: 1; right: calc(var(--gutter-r) - 24px); top: calc(var(--frame-top) + 56px); bottom: calc(var(--frame-bottom) + 36px);
  width: min(728px, 52vw); padding: 0 24px; display: flex; flex-direction: column; overflow: hidden; }
@supports (overflow: clip) { .sheet.is-motion .sheet__view { overflow: clip; } }
.sheet.is-motion .paper { margin: 0; flex: none; transform-origin: 50% 0; will-change: transform; }
.sheet.is-motion .paper__drawing img { opacity: 0; }

@media (max-width: 1099px), (orientation: portrait) {
  .sheet.is-motion .sheet__intro { top: calc(var(--frame-top) + 52px); right: var(--gutter-r); width: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
  .sheet.is-motion .sheet__title { margin: 0; font: 500 var(--step-0)/1.3 var(--font-text); letter-spacing: 0; }
  .sheet.is-motion .sheet__lede, .sheet.is-motion .sheet__more { display: none; }
  .sheet.is-motion .sheet__view { left: var(--gutter-l); right: var(--gutter-r); width: auto; max-width: 680px; margin: 0 auto; padding: 0; top: calc(var(--frame-top) + 86px); bottom: calc(var(--frame-bottom) + 30px); }
  .sheet.is-motion .paper { margin: 0; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .sheet.is-motion .sheet__stage { min-height: 0; }
}

/* ------------------------------------------------------ scene 4: services */

/* Four cards; the focused one sits on a raised ink plate. Without script each card is a plain
   link to its service page. Script moves one plate between the cards and opens a panel. */
.services { position: relative; z-index: 1; min-height: var(--stage-h);
  display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 5.5vh, 64px);
  padding: calc(var(--frame-top) + clamp(72px, 11vh, 120px)) var(--gutter-r) clamp(72px, 11vh, 120px) var(--gutter-l); }
.services__head { display: grid; gap: 14px 48px; align-items: end; }
.services__title { margin: 0; font: 300 clamp(2.3rem, 1.2rem + 3.3vw, 4.6rem)/1 var(--font-display); letter-spacing: -0.03em; }
.services__lede { margin: 0; max-width: 31em; font-size: var(--step-1); line-height: 1.45; text-wrap: pretty; }

.svc-row { position: relative; isolation: isolate; list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(10px, 1.1vw, 18px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.svc { min-width: 0; }
.svc__card { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 100%;
  padding: var(--card-pad); border-radius: 20px; color: var(--ink); text-decoration: none;
  background: rgba(239, 237, 230, 0.5); box-shadow: inset 0 0 0 1px rgba(21, 24, 27, 0.07);
  -webkit-tap-highlight-color: transparent; transition: color 0.3s ease; }
.svc__card > * { position: relative; z-index: 2; }
.svc__art { display: block; aspect-ratio: 240 / 168; margin: 0 0 clamp(16px, 2.6vh, 30px); }
.svc__art svg, .svc-panel__art svg { width: 100%; height: 100%; overflow: visible; }
.svc__name { display: block; margin-top: auto; padding-right: 46px; font: 400 clamp(1.2rem, 0.95rem + 0.72vw, 1.6rem)/1.12 var(--font-display); letter-spacing: -0.015em; text-wrap: balance; }
.svc__price { display: block; margin-top: 6px; font-size: var(--step--1); line-height: 1.3; color: var(--graphite); transition: color 0.3s ease; }
.svc__plus { position: absolute !important; right: var(--card-pad); bottom: var(--card-pad); width: 34px; height: 34px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--rule); transition: box-shadow 0.3s ease, background-color 0.25s ease; }
.svc__plus i::before, .svc__plus i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: currentColor; transition: background-color 0.25s ease; }
.svc__plus i::after { transform: rotate(90deg); }
.svc__card:focus-visible { outline-offset: 4px; border-radius: 20px; }

/* drawings: paper pages, grey text lines, Datum's orange markup */
.art .pg { fill: #fbfaf7; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.art .ln { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.art .sh { fill: #e4e2db; }
.art .tx { fill: none; stroke: #cfcdc6; stroke-width: 3; stroke-linecap: round; }
.art .mk { fill: none; stroke: var(--signal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.art .tri { fill: var(--signal); }

/* no script: hovering a card turns it ink */
.services:not(.is-live) .svc__card:hover { background: var(--ink); color: var(--bone); }
.services:not(.is-live) .svc__card:hover .svc__price { color: rgba(239, 237, 230, 0.62); }

/* the plate, moved between cards by script; above every card's background, below every card's content */
.svc-plate { position: absolute; left: 0; top: 0; z-index: 1; border-radius: 20px; background: var(--ink); pointer-events: none;
  box-shadow: 0 2px 4px rgba(21, 24, 27, 0.1), 0 28px 50px -20px rgba(21, 24, 27, 0.5); }
.svc.is-active .svc__card { color: var(--bone); transition-delay: 0.12s; }
.svc.is-active .svc__price { color: rgba(239, 237, 230, 0.62); transition-delay: 0.12s; }
.svc.is-active .svc__plus { box-shadow: inset 0 0 0 1px rgba(239, 237, 230, 0.45); }
/* pointing at the focused card (or tabbing to it) fills its plus: it opens */
@media (hover: hover) { .svc.is-active .svc__card:hover .svc__plus { background: var(--bone); box-shadow: none; } .svc.is-active .svc__card:hover .svc__plus i::before, .svc.is-active .svc__card:hover .svc__plus i::after { background: var(--ink); } }
.svc.is-active .svc__card:focus-visible .svc__plus { background: var(--bone); box-shadow: none; }
.svc.is-active .svc__card:focus-visible .svc__plus i::before, .svc.is-active .svc__card:focus-visible .svc__plus i::after { background: var(--ink); }
/* the orange markup draws itself on the focused card */
.services.is-live .art .mk path { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.25s ease; }
.services.is-live .svc.is-active .art .mk path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.75s cubic-bezier(.6, 0, .2, 1) 0.2s; }
.services.is-live .svc.is-active .art .mk path + path { transition-delay: 0.42s; }
.services.is-live .art .tri { opacity: 0; transform: scale(0.3); transform-box: fill-box; transform-origin: 50% 70%; transition: opacity 0.2s ease, transform 0.2s ease; }
.services.is-live .svc.is-active .art .tri { opacity: 1; transform: none; transition: opacity 0.3s ease 0.62s, transform 0.5s cubic-bezier(.2, .8, .2, 1) 0.62s; }
/* while its panel is open, the card's plate and drawing are lifted out of it */
.svc.is-lifted .svc__card { color: var(--ink); transition: none; }
.svc.is-lifted .svc__price { color: var(--graphite); transition: none; }
.svc.is-lifted .svc__art, .svc-row.is-lifted .svc-plate { visibility: hidden; }
.svc.no-trans .svc__card, .svc.no-trans .svc__price, .svc.no-trans .svc__plus { transition: none !important; }
.svc-dots { display: none; }

/* two by two: portrait tablets */
@media (min-width: 640px) and (max-width: 999px) and (orientation: portrait), (min-width: 640px) and (max-width: 699px) {
  .svc-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc__art { margin-bottom: 22px; }
}
@media (min-width: 1000px) and (orientation: landscape) {
  .services__head { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); }
}
/* phones: a carousel that snaps each card to the centre; the centred card has the plate */
@media (max-width: 639px) {
  .services { padding-left: 0; padding-right: 0; justify-content: flex-start; gap: 22px; }
  .services__head { padding: 0 var(--gutter-r) 0 var(--gutter-l); }
  .services__lede { font-size: var(--step-0); }
  :root { --card-pad: 16px; }
  .svc-row { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    padding: 6px 11vw 40px; scroll-padding: 0 11vw; scrollbar-width: none; }
  .svc-row::-webkit-scrollbar { display: none; }
  .svc { flex: 0 0 78vw; scroll-snap-align: center; }
  .svc__art { margin: 18px 0 34px; }
  .svc__name { font-size: 1.45rem; }
  .services.is-live .svc-dots { display: flex; justify-content: center; gap: 8px; margin: -18px 0 0; }
  .svc-dots i { width: 18px; height: 1.5px; background: rgba(21, 24, 27, 0.2); transition: background-color 0.3s ease; }
  .svc-dots i.on { background: var(--ink); }
}

/* The panel: a split view on wide screens (plate left, details right); plate on top on phones.
   It sits over the page (and the scene counter) and under the frame, so the logo and menu stay. */
.svc-panel { position: fixed; inset: 0; z-index: 34; }
.svc-panel[hidden] { display: none; }
.is-svc-open { overflow: hidden; }
.svc-panel__backdrop { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; touch-action: none;
  background: radial-gradient(60% 55% at 56% 60%, var(--studio-hi) 0%, rgba(192, 194, 171, 0) 70%), var(--studio); }
.svc-panel__backdrop img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.svc-panel__side { --side-pad: clamp(18px, 2.2vw, 36px); position: absolute; container-type: size; touch-action: none;
  left: var(--gutter-l); top: calc(var(--frame-top) + 64px); bottom: var(--frame-bottom); width: min(44vw, 700px); color: var(--bone); }
.svc-panel__plate { position: absolute; left: 0; top: 0; right: 0; bottom: 0; border-radius: 24px; background: var(--ink); overflow: hidden;
  box-shadow: 0 2px 4px rgba(21, 24, 27, 0.1), 0 34px 70px -28px rgba(21, 24, 27, 0.55); }
/* the card's own name, price and plus, card-sized: shown only in flight, so the hand-over to and from the card is seamless */
.svc-panel__ghost { position: absolute; left: var(--card-pad); right: var(--card-pad); bottom: var(--card-pad); }
.svc-panel__ghost, .svc-panel__plate .svc__plus { opacity: 0; }
.svc-panel__ghost .svc__price { color: rgba(239, 237, 230, 0.62); }
.svc-panel__plate .svc__plus { box-shadow: inset 0 0 0 1px rgba(239, 237, 230, 0.45); }
.svc-panel__art { position: absolute; aspect-ratio: 240 / 168; width: 64%; left: 18%; top: 22%; }
@supports (width: 1cqw) {
  .svc-panel__art { --w: min(84cqw, (100cqh - 240px) * 1.43); --cy: calc(50% - 30px);
    width: var(--w); left: calc(50% - var(--w) / 2); top: calc(var(--cy) - var(--w) * 0.35); }
}
.svc-panel__back { position: absolute; z-index: 2; left: calc(var(--side-pad) - 6px); top: calc(var(--side-pad) - 6px);
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 14px; border: 0; border-radius: 999px;
  background: rgba(239, 237, 230, 0.1); color: var(--bone); font: 500 var(--step--1)/1 var(--font-text); cursor: pointer; transition: background-color 0.2s ease; }
.svc-panel__back:hover { background: rgba(239, 237, 230, 0.18); }
.svc-panel__back:focus-visible { outline-color: var(--bone); }
.svc-panel__title { position: absolute; left: var(--side-pad); right: var(--side-pad); bottom: var(--side-pad); }
.svc-panel__name { margin: 0; max-width: 12em; font: 300 clamp(2rem, 1.1rem + 2.3vw, 3.5rem)/1.02 var(--font-display); letter-spacing: -0.025em; text-wrap: balance; }
.svc-panel__price { margin: 12px 0 0; font-size: var(--step-0); color: rgba(239, 237, 230, 0.62); }
.svc-panel__main { position: absolute; right: 0; bottom: 0; top: calc(var(--frame-top) + 64px); left: calc(var(--gutter-l) + min(44vw, 700px));
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 4px var(--gutter-r) calc(var(--frame-bottom) + 28px) clamp(32px, 5vw, 96px); }
.svc-panel__body { max-width: 42rem; }
.svc-panel__desc { margin: 0 0 22px; font-size: var(--step-1); line-height: 1.5; text-wrap: pretty; }
.svc-panel__fact { padding: 14px 0 15px; border-top: 1px solid rgba(21, 24, 27, 0.14); }
.svc-panel__fact h3 { margin: 0 0 10px; font: 500 var(--step--1)/1.3 var(--font-text); color: var(--graphite); }
.svc-panel__fact p { margin: 0; }
.svc-panel__fact ul { margin: 0; padding: 0; list-style: none; }
.svc-panel__fact li { position: relative; padding-left: 18px; break-inside: avoid; }
.svc-panel__fact li + li { margin-top: 7px; }
.svc-panel__fact li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--ink); }
.svc-panel__fact b { font-weight: 500; }
.svc-panel__also { margin-top: 12px !important; color: var(--graphite); }
.svc-panel__body { container-type: inline-size; }
.svc-panel__plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 12px !important; }
.svc-panel__plans li { margin: 0 !important; padding: 12px 14px; border-radius: 14px; background: rgba(239, 237, 230, 0.6); box-shadow: inset 0 0 0 1px rgba(21, 24, 27, 0.07);
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; column-gap: 10px; }
.svc-panel__plans li::before { display: none; }
.svc-panel__plans em { grid-column: 2; grid-row: 1; font-style: normal; font-size: 0.75rem; color: var(--graphite); }
.svc-panel__plans span { grid-column: 3; grid-row: 1; font: 400 1.05rem/1.15 var(--font-display); white-space: nowrap; }
.svc-panel__plans small { grid-column: 1 / -1; margin-top: 4px; font-size: 0.75rem; line-height: 1.35; color: var(--graphite); }
@container (min-width: 36rem) {
  .svc-panel__plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .svc-panel__plans li { display: block; padding: 14px 14px 16px; }
  .svc-panel__plans b, .svc-panel__plans em { display: block; }
  .svc-panel__plans em { margin-top: 2px; }
  .svc-panel__plans span { display: block; margin-top: 8px; font-size: 1.2rem; }
  .svc-panel__plans small { display: block; margin-top: 6px; }
}
.svc-panel__fine { margin-top: 12px !important; font-size: var(--step--1); color: var(--graphite); }
.svc-panel__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin: 18px 0 0; }
@media (min-width: 1280px) and (min-height: 700px) {
  .svc-panel__fact ul:not(.svc-panel__plans) { columns: 2; column-gap: 34px; }
  .svc-panel__fact ul:not(.svc-panel__plans) li { margin: 0 0 8px; }
}
/* phones and portrait tablets: the plate across the top, details scroll underneath */
@media (max-width: 999px) and (orientation: portrait), (max-width: 699px) {
  .svc-panel { --plate-h: clamp(250px, 42svh, 440px); }
  .svc-panel__side { left: var(--gutter-l); right: var(--gutter-r); width: auto; top: calc(var(--frame-top) + 56px); bottom: auto; height: var(--plate-h); }
  .svc-panel__art { --w: min(72cqw, (100cqh - 150px) * 1.43); --cy: calc(50% - 22px); }
  .svc-panel__name { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); }
  .svc-panel__price { margin-top: 6px; font-size: var(--step--1); }
  .svc-panel__main { left: 0; top: calc(var(--frame-top) + 56px + var(--plate-h)); padding: 22px var(--gutter-r) calc(var(--frame-bottom) + 30px) var(--gutter-l); }
  .svc-panel__desc { font-size: var(--step-0); margin-bottom: 20px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .svc-panel__side, .svc-panel__main { top: calc(var(--frame-top) + 52px); }
  .svc-panel__art { --w: min(70cqw, (100cqh - 130px) * 1.43); --cy: calc(50% - 30px); }
  .svc-panel__name { font-size: 1.7rem; }
}

/* ------------------------------------------ scene 5: how an engagement runs */

/* A line drawn by a pen that stays put, like a plotter: everything on the page prints as it
   passes the pen (orange, Datum's colour). Wide screens: the stage pins and the page slides
   sideways under the pen. Phones and portrait tablets: the page scrolls normally past a pen
   fixed at one height. Still version (no script, reduced motion): the finished drawing. */
.process { position: relative; z-index: 1; }
.process__stage { position: relative; padding: calc(var(--frame-top) + clamp(72px, 11vh, 120px)) var(--gutter-r) clamp(72px, 11vh, 120px) var(--gutter-l); }
.process__head { max-width: 34rem; margin-bottom: clamp(40px, 7vh, 72px); }
.process__title { margin: 0 0 12px; font: 300 clamp(1.9rem, 1.2rem + 2.4vw, 3.2rem)/1.05 var(--font-display); letter-spacing: -0.02em; }
.process__lede { margin: 0; font-size: var(--step-1); line-height: 1.45; text-wrap: pretty; }
.process__view { position: relative; }
.proc-line, .proc-pen { display: none; }
.proc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 44px; }
.proc-step { position: relative; padding-left: 30px; }
.proc-step::before { content: ""; position: absolute; left: 4px; top: 0.55em; bottom: -44px; width: 1px; background: var(--ink); } /* the line */
.proc-step:last-child::before { bottom: -44px; }
.proc-step::after { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 1px; background: var(--ink); } /* station tick */
.proc-step__head { position: relative; }
.proc-step__n { display: block; font-size: var(--step--1); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--graphite); }
.proc-step__name { margin: 6px 0 10px; font: 300 clamp(2rem, 1.3rem + 2vw, 3rem)/1 var(--font-display); letter-spacing: -0.025em; }
.proc-step__desc { margin: 0; max-width: 24em; font-size: var(--step-0); line-height: 1.45; text-wrap: pretty; }
.proc-subs { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: var(--step--1); line-height: 1.3; color: var(--graphite); }
.proc-subs li { position: relative; padding-left: 12px; }
.proc-subs li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 1px; background: var(--graphite); }
.proc-dim { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; max-width: 24rem; font-size: 0.75rem; line-height: 1.3; color: var(--graphite); }
.proc-dim span { flex: 0 1 auto; max-width: 84%; text-align: center; text-wrap: balance; }
.proc-dim::before, .proc-dim::after { content: ""; flex: 1 1 0; min-width: 14px; height: 9px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; }
.proc-dim::before { border-left: 1px solid currentColor; }
.proc-dim::after { border-right: 1px solid currentColor; }
.proc-end { position: relative; margin-top: 44px; padding-left: 30px; display: grid; gap: 18px; justify-items: start; }
.proc-end__title { margin: 0; font: 300 clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem)/1.05 var(--font-display); letter-spacing: -0.02em; }

/* still version on wide screens: the line runs across the top, the four steps hang from it */
@media (min-width: 1000px) and (orientation: landscape) {
  .process:not(.is-track) .proc-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .process:not(.is-track) .proc-step { padding: 26px 28px 0 0; border-top: 1px solid var(--ink); }
  .process:not(.is-track) .proc-step::before { display: none; }
  .process:not(.is-track) .proc-step::after { left: 0; top: -8px; width: 1px; height: 16px; }
  .process:not(.is-track) .proc-step__name { font-size: clamp(1.8rem, 1rem + 1.4vw, 2.5rem); }
  .process:not(.is-track) .proc-end { padding-left: 0; }
}

/* fresh ink (script): text fades in over a short band ahead of the pen (--soft), is orange at the
   pen, and cools to ink behind it (--fresh). No hard edge cuts through the letters. */
.process .proc-ink { --cool: var(--ink); color: transparent; -webkit-background-clip: text; background-clip: text; background-repeat: no-repeat;
  background-image: linear-gradient(var(--ink-dir, 90deg),
    var(--cool) calc(var(--pen-at, 99999px) - var(--fresh, 140px)),
    var(--signal-text) calc(var(--pen-at, 99999px) - 12px),
    rgba(184, 70, 26, 0) calc(var(--pen-at, 99999px) + var(--soft, 90px))); }
.process .proc-ink * { color: transparent; }
.process .proc-ink--grey { --cool: var(--graphite); }
.process.is-print .proc-ink { --ink-dir: 180deg; --fresh: 96px; --soft: 70px; }
/* the small marks appear as the pen reaches them, not ahead of the text */
.process.is-track .proc-step__head::before, .process.is-track .proc-end::before,
.process.is-track .proc-subs li::before, .process.is-print .proc-subs li::before { transition: opacity 0.25s ease; }
.process.is-track .proc-step:not(.is-on) .proc-step__head::before, .process.is-track .proc-end:not(.is-on)::before,
.process.is-track .proc-subs li:not(.is-on)::before, .process.is-print .proc-subs li:not(.is-on)::before { opacity: 0; }
.process.is-track .proc-dim span { opacity: var(--label-o, 1); }

/* ---- wide screens: pinned, the page slides under the pen (positions set by script, in px) */
.process.is-track .process__stage { height: var(--stage-h); min-height: 520px; padding: 0; overflow: hidden; }
.process.is-track .process__head { position: absolute; z-index: 2; left: var(--gutter-l); top: calc(var(--frame-top) + 96px); width: min(30rem, 40vw); margin: 0; }
.process.is-track .process__title { font-size: clamp(1.7rem, 1.1rem + 1.5vw, 2.7rem); }
.process.is-track .process__lede { font-size: var(--step-0); max-width: 26em; }
.process.is-track .process__view { position: absolute; inset: 0; z-index: 1; }
.process.is-track .process__track { position: absolute; left: 0; top: 0; height: 100%; will-change: transform; }
.process.is-track .proc-line { display: block; position: absolute; left: var(--x0); top: var(--line-y); width: var(--lw); height: 1px; background: var(--ink); }
.process.is-track .proc-datum { position: absolute; left: -6px; top: 7px; width: 12px; height: 10px; background: var(--signal); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.process.is-track .proc-steps { display: block; }
.process.is-track .proc-step { position: absolute; left: var(--x); top: 0; bottom: 0; width: var(--w); padding: 0; }
.process.is-track .proc-step::before { display: none; }
.process.is-track .proc-step::after { left: 0; top: calc(var(--line-y) - 8px); width: 1px; height: 17px; opacity: 0; }
.process.is-track .proc-step.is-on::after { opacity: 1; }
.process.is-track .proc-step__head { position: absolute; left: 0; bottom: calc(100% - var(--line-y) + 26px); padding-left: 18px; width: 100%; }
.process.is-track .proc-step__head::before { content: ""; position: absolute; left: 0; top: 0.4em; bottom: -26px; width: 1px; background: var(--rule); }
.process.is-track .proc-step__name { font-size: clamp(2.1rem, 0.9rem + 2.9vw, 4.6rem); margin: 8px 0 14px; white-space: nowrap; width: max-content; }
.process.is-track .proc-step__desc { font-size: var(--step-1); width: max-content; max-width: 21em; }
.process.is-track .proc-subs { position: absolute; left: 0; top: calc(var(--line-y) + 1px); margin: 0; display: block; }
.process.is-track .proc-subs li { position: absolute; left: var(--sx); top: 0; padding: 14px 0 0 10px; white-space: nowrap; }
.process.is-track .proc-subs li::before { left: 0; top: 0; width: 1px; height: 20px; background: var(--ink); }
.process.is-track .proc-dim { position: absolute; left: 0; top: calc(var(--line-y) + 62px); width: var(--dw); max-width: none; margin: 0; }
.process.is-track .proc-end { position: absolute; left: var(--xe); bottom: calc(100% - var(--line-y) + 26px); margin: 0; padding: 0 0 0 18px; }
.process.is-track .proc-end::before { content: ""; position: absolute; left: 0; top: 0.4em; bottom: -26px; width: 1px; background: var(--rule); }
.process.is-track .proc-pen { display: block; position: absolute; z-index: 3; left: var(--pen-x); top: var(--pen-top); height: calc(var(--line-y) - var(--pen-top) + 1px); width: 1px; background: var(--signal); pointer-events: none; }
.process.is-track .proc-pen i { position: absolute; left: -6px; bottom: -13px; width: 13px; height: 11px; background: var(--signal); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
@supports (overflow: clip) { .process.is-track .process__stage { overflow: clip; } }
@media (max-height: 560px) and (orientation: landscape) {
  .process.is-track .process__stage { min-height: 0; }
  .process.is-track .process__head { top: calc(var(--frame-top) + 52px); width: min(24rem, 40vw); }
  .process.is-track .process__title { font: 500 var(--step-0)/1.3 var(--font-text); letter-spacing: 0; margin: 0 0 4px; }
  .process.is-track .process__lede { font-size: var(--step--1); }
  .process.is-track .proc-step__name { font-size: 2rem; margin: 4px 0 8px; }
  .process.is-track .proc-step__desc { font-size: var(--step--1); }
}

/* ---- phones and portrait tablets: the page scrolls past a pen fixed at one height */
.process.is-print .process__view { position: relative; }
.process.is-print .proc-line { display: block; position: absolute; left: 4px; top: 0.55em; bottom: 0; width: 1px; background: var(--ink); }
.process.is-print .proc-datum { position: absolute; left: -6px; top: -14px; width: 13px; height: 11px; background: var(--signal); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.process.is-print .proc-step::before { display: none; }
.process.is-print .proc-step::after { opacity: 0; }
.process.is-print .proc-step.is-on::after { opacity: 1; }
.process.is-print .proc-pen { display: block; position: absolute; z-index: 3; left: 4px; top: 0; width: 26px; height: 1px; background: var(--signal); pointer-events: none; will-change: transform; }
.process.is-print .proc-pen i { position: absolute; left: -6px; top: -5px; width: 11px; height: 11px; background: var(--signal); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.process.is-print .proc-end { padding-bottom: 8px; }

/* ------------------------------------------------- scene 6: who you work with */

/* Wide screens: the headline on the left, the two of them on the right, staggered (Elliot to the
   west, Denis to the east). Phones: the headline, then the two side by side. Script: the headline
   translates itself from Ukrainian as it comes into view; each portrait opens from the bottom as
   it scrolls in, the photo settling inside; names, roles (also from Ukrainian) and lines follow. */
.team { position: relative; z-index: 1; min-height: var(--stage-h); display: grid; align-content: center; gap: clamp(36px, 6vh, 64px) 6vw;
  padding: calc(var(--frame-top) + clamp(72px, 11vh, 120px)) var(--gutter-r) clamp(72px, 11vh, 120px) var(--gutter-l); }
.team__title { margin: 0 0 20px; max-width: 11.5em; font: 300 clamp(2.3rem, 1.2rem + 3vw, 4.4rem)/1.02 var(--font-display); letter-spacing: -0.03em; text-wrap: balance; }
.team__lede { margin: 0 0 16px; max-width: 30em; font-size: var(--step-1); line-height: 1.45; text-wrap: pretty; }
.team__note { margin: 0; max-width: 32em; font-size: var(--step-0); line-height: 1.5; color: var(--graphite); }
.team__note .text-link { color: var(--ink); }
.team__people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2.6vw, 44px); align-items: start; }
.person { min-width: 0; }
.person__photo { margin: 0 0 18px; }
.person__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; background: var(--studio-photo); }
.person__zoom { position: absolute; inset: 0; }
/* one treatment for both photos (one was taken outdoors, one in an office) */
.person__frame img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(1.02); }
/* Elliot's is a half-length shot: closer, so the two faces read at the same size */
.person--elliot img { object-position: 61% 26%; transform: scale(1.5); transform-origin: 61% 26%; }
.person--denis img { object-position: 50% 32%; }
.person__name { margin: 0; font: 400 clamp(1.3rem, 1rem + 0.8vw, 1.9rem)/1.1 var(--font-display); letter-spacing: -0.015em; }
.person__role { margin: 6px 0 12px; min-height: 1.3em; font-size: var(--step--1); font-weight: 500; line-height: 1.3; color: var(--graphite); }
.person__bio { margin: 0 0 12px; max-width: 26em; font-size: var(--step-0); line-height: 1.45; text-wrap: pretty; }
.person__mail { font-size: var(--step--1); font-weight: 500; }
.person__role .rz-src { color: var(--graphite); opacity: 0.75; }

@media (min-width: 1000px) and (orientation: landscape) {
  .team { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; }
  .team__head { padding-bottom: 6vh; }
  /* the pair fits the screen height: photo + text + stagger */
  .team__people { width: 100%; max-width: min(680px, calc((100vh - 400px) * 1.62)); justify-self: end; }
  .person--denis { margin-top: clamp(40px, 7vh, 90px); }
}
@media (max-width: 639px) {
  .team { gap: 32px; }
  .team__lede { font-size: var(--step-0); }
  .team__note { font-size: var(--step--1); }
  .person__photo { margin-bottom: 12px; }
  .person__bio { font-size: var(--step--1); }
}

/* motion: before the script reveals them, the photos are closed */
.team.is-live .person__frame { clip-path: inset(100% 0 0 0); }

/* ------------------------------------------ scene 7: what we don't do (the dark scene) */

/* The one dark scene. The page dims into it through a soft gradient and lightens out of it the
   same way, so there is no hard edge. Script pins the stage and lights the sentence word by word;
   still versions show it lit. */
.dark { --night: #121518; position: relative; z-index: 1; color: var(--bone); }
.dark__fade { height: clamp(140px, 28vh, 300px); pointer-events: none; }
.dark__fade--in { background: linear-gradient(to bottom, rgba(18, 21, 24, 0) 0%, rgba(18, 21, 24, 0.5) 45%, rgba(18, 21, 24, 0.9) 78%, var(--night) 100%); }
.dark__fade--out { background: linear-gradient(to bottom, var(--night) 0%, rgba(18, 21, 24, 0.9) 22%, rgba(18, 21, 24, 0.5) 55%, rgba(18, 21, 24, 0) 100%); }
.dark__stage { position: relative; min-height: var(--stage-h); background: var(--night); overflow: hidden; isolation: isolate;
  display: grid; align-content: center; gap: clamp(26px, 4.5vh, 52px);
  padding: calc(var(--frame-top) + clamp(64px, 10vh, 110px)) var(--gutter-r) clamp(64px, 10vh, 104px) var(--gutter-l); }
@supports (overflow: clip) { .dark__stage { overflow: clip; } }
/* the studio's contours, light on dark (a copy added by script) */
.dark__contours { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; filter: brightness(0) invert(1); opacity: 0.12; pointer-events: none; }
.dark__label { margin: 0; font: 500 var(--step-0)/1.3 var(--font-text); letter-spacing: 0; color: rgba(239, 237, 230, 0.66); }
.dark__label::before { content: ""; display: inline-block; width: 10px; height: 9px; margin-right: 10px; vertical-align: 0.04em;
  background: var(--signal); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.dark__sentence { margin: 0; max-width: 20.5em; font: 300 clamp(2rem, 0.95rem + 3vw, 4.3rem)/1.1 var(--font-display); letter-spacing: -0.025em; color: var(--bone); text-wrap: pretty; }
.dark__foot { display: grid; gap: 14px; }
.dark__note { margin: 0; max-width: 34em; font-size: var(--step-1); line-height: 1.45; color: rgba(239, 237, 230, 0.78); }
.dark__links { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 30px; font-size: var(--step-0); }
.dark .text-link { color: var(--bone); }
.dark :focus-visible { outline-color: var(--bone); }
.dark.is-live .dark__stage { height: var(--stage-h); min-height: 560px; }
@media (max-height: 560px) and (orientation: landscape) {
  .dark.is-live .dark__stage { min-height: 0; }
  .dark__sentence { font-size: min(clamp(2rem, 0.95rem + 3vw, 4.3rem), 8.6vh); }
  .dark__note { font-size: var(--step-0); }
}
@media (max-width: 639px) {
  .dark__note { font-size: var(--step-0); }
}

/* While the dark is behind them, the logo, language switch, menu and counter turn light. */
.brand, .menu-btn, .lang a, .brand__sub, .counter, .counter__total { transition: color 0.3s ease, background-color 0.3s ease; }
.counter__bar, .counter__bar i { transition: background-color 0.3s ease; }
.is-dark-top .brand, .is-dark-top .menu-btn { color: var(--bone); }
.is-dark-top .brand__sub { color: rgba(239, 237, 230, 0.6); }
.is-dark-top .lang { background: rgba(239, 237, 230, 0.12); }
.is-dark-top .lang a { color: rgba(239, 237, 230, 0.72); }
.is-dark-top .lang a[aria-current="page"] { background: var(--bone); color: var(--ink); }
.is-dark-top .frame :focus-visible { outline-color: var(--bone); }
.is-dim-top .veil { opacity: 0; visibility: hidden; transition: none; }
.is-dark-bottom .counter { color: var(--bone); }
.is-dark-bottom .counter__total { color: rgba(239, 237, 230, 0.6); }
.is-dark-bottom .counter__bar { background: rgba(239, 237, 230, 0.22); }
.is-dark-bottom .counter__bar i { background: var(--bone); }
.is-dim-bottom .counter::before { opacity: 0; visibility: hidden; transition: none; }

/* --------------------------------------------------------------- scene 8: the close */

/* The page ends as it began: the hero's drone is drawn in lines and turns solid, and so does the
   datum mark here, whose orange triangle lands on a hairline across the page (the footer's top
   edge): "a reference letter in a frame, anchored to the surface it defines" (About page). */
.close { position: relative; z-index: 1; min-height: calc(var(--stage-h) * 0.9); display: grid; align-content: center;
  padding: calc(var(--frame-top) + clamp(64px, 10vh, 110px)) var(--gutter-r) clamp(56px, 9vh, 96px) var(--gutter-l); }
.close__copy { position: relative; z-index: 1; max-width: 40rem; }
.close__title { margin: 0 0 22px; max-width: 10.5em; font: 300 clamp(2.5rem, 1.2rem + 3.8vw, 5.4rem)/1 var(--font-display); letter-spacing: -0.03em; text-wrap: balance; }
.close__lede { margin: 0 0 30px; max-width: 32em; font-size: var(--step-1); line-height: 1.45; text-wrap: pretty; }
.close__actions { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.close__mark { --sw: 0.9; position: absolute; right: calc(var(--gutter-r) + 2vw); bottom: 0; height: clamp(120px, 20vh, 190px); aspect-ratio: 80 / 121; color: var(--ink); pointer-events: none; }
.close__mark svg { width: 100%; height: 100%; overflow: visible; }
.close__lines path { fill: none; stroke: var(--ink); stroke-width: var(--sw); stroke-linejoin: round; }
.close__line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform-origin: var(--line-o, 85%) 50%; }
/* still versions: the solid mark; the line drawing is for the motion */
.close:not(.is-live) .close__lines { display: none; }
@media (max-width: 999px), (orientation: portrait) {
  /* the mark stands at the bottom right, under the copy */
  .close { padding-bottom: calc(clamp(120px, 20vh, 190px) + 36px); }
}
@media (min-width: 1000px) and (orientation: landscape) {
  .close__mark { --sw: 0.42; right: calc(var(--gutter-r) + 5vw); height: clamp(220px, 46vh, 450px); }
}

/* ------------------------------------------------------------------------ footer */
.foot { position: relative; z-index: 1; padding: clamp(36px, 6vh, 60px) var(--gutter-r) calc(var(--frame-bottom) + 60px) var(--gutter-l);
  font-size: var(--step--1); line-height: 1.5; color: var(--ink); }
.foot__top { display: grid; gap: 36px 56px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 3fr); align-items: start; }
.foot__about p { margin: 16px 0 0; max-width: 24em; color: var(--graphite); }
.foot__nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; }
.foot__nav h2 { margin: 0 0 12px; font: 500 var(--step--1)/1.3 var(--font-text); color: var(--graphite); }
.foot__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot__nav a, .foot__base a { color: var(--ink); text-decoration: none; }
.foot__nav a:hover, .foot__base a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.foot__base { display: grid; gap: 6px; margin-top: clamp(36px, 6vh, 56px); padding-top: 18px; border-top: 1px solid rgba(21, 24, 27, 0.14); color: var(--graphite); }
.foot__base p { margin: 0; max-width: 60em; }
@media (max-width: 999px) {
  .foot__top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639px) {
  .foot__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
}

/* Stages clip without being scroll containers, so focusing a link inside one can never
   scroll its contents out of place (overflow: hidden boxes can still be scrolled by focus). */
@supports (overflow: clip) {
  .hero__stage, .sectors.is-wheel .sectors__stage { overflow: clip; }
}
.process.is-track .text-link:focus-visible, .process.is-track .btn:focus-visible { outline-offset: 4px; }
.sectors.is-wheel .wheel__name:focus-visible { outline-offset: 6px; }

/* the next scene is not built yet: a plain end panel for the preview */
.next {
  position: relative; z-index: 1; min-height: 70vh; display: grid; align-content: center;
  padding: 96px var(--gutter-r) 120px var(--gutter-l);
}
.next p { margin: 0; max-width: 34em; font-size: var(--step-1); color: var(--graphite); }
.next h2 { margin: 0 0 16px; font: 300 clamp(1.8rem, 1.2rem + 2.2vw, 3.2rem)/1.05 var(--font-display); letter-spacing: -0.02em; }

/* ---------------------------------------------------------- breakpoints */

@media (min-width: 641px) {
  .br-w { display: inline; }
}
@media (min-width: 900px) {
  .hero__copy { right: auto; }
}

@media (max-width: 899px) {
  .menu__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero__note-wrap { right: auto; left: var(--gutter-l); bottom: calc(var(--frame-bottom) + 70px); }
}

@media (max-width: 640px) {
  .br-n { display: inline; }
  .brand svg { height: 34px; }
  .brand__name { font-size: 15px; }
  .brand__sub { display: none; }
  .menu-btn__label { display: none; }
  .menu-btn { padding: 0 8px; width: 44px; height: 44px; justify-content: center; }
  .lang a { min-width: 34px; height: 28px; }
  .hero__copy { top: calc(var(--frame-top) + 70px); }
  .hero__title { max-width: none; }
  .hero__foot { gap: 16px; bottom: calc(var(--frame-bottom) + 2px); width: calc(100% - var(--gutter-l) - var(--gutter-r) - 110px); }
  .hero__lede { font-size: 0.96rem; }
  .btn { min-height: 46px; padding: 0 20px; font-size: 0.9rem; }
  .scroll-cue-wrap { display: none; }
  .callout { font-size: var(--step--1); width: min(15em, 62vw); }
  .counter { bottom: calc(var(--frame-bottom) + 14px); }
}

@media (max-width: 640px) and (max-height: 700px) {
  .hero__lede { display: none; }
}

/* ------------------------------------------- before the script takes over */

/* With JavaScript, the intro reveals these. If the script never runs, they appear after 3 s anyway. */
.js .hero__title, .js .hero__source, .js .hero__foot > *, .js .hero__note, .js .scroll-cue, .js .counter, .js .frame > * {
  visibility: hidden; animation: dd-reveal 0s 3s forwards;
}
.js.is-ready .hero__title, .js.is-ready .hero__source, .js.is-ready .hero__foot > *, .js.is-ready .hero__note,
.js.is-ready .scroll-cue, .js.is-ready .counter, .js.is-ready .frame > * { visibility: visible; animation: none; }
@keyframes dd-reveal { to { visibility: visible; } }

.no-webgl .hero__canvas, .no-webgl .callouts, .no-webgl .scroll-cue-wrap, .no-webgl .hero__note-wrap { display: none; }
.no-js .hero__canvas, .no-js .callouts, .no-js .scroll-cue-wrap, .no-js .hero__note-wrap { display: none; }

@media (prefers-reduced-motion: reduce) {
  .menu-btn__icon::before, .menu-btn__icon::after, .btn { transition: none; }
  .scroll-cue-wrap { display: none; }
}
/* Small screens with reduced motion: no scroll story, so no callouts to explain. */
@media (prefers-reduced-motion: reduce) and (max-width: 639px) {
  .callouts, .hero__note-wrap { display: none; }
}

/* Ukrainian page: a link to a page that exists only in English carries a small EN */
.en-tag { display: inline-block; margin-left: 0.3em; font: 500 0.58em/1 var(--font-text); letter-spacing: 0.04em; vertical-align: 0.42em; opacity: 0.8; text-decoration: none; }
.text-link .en-tag, .foot__nav .en-tag { vertical-align: 0.3em; }
.nowrap { white-space: nowrap; }
/* Ukrainian headline: its lines are longer, so on the narrowest phones it starts a little smaller */
html[lang="uk"] .hero__title { font-size: clamp(2.1rem, 1.1rem + 4.7vw, 6.1rem); }
