/* Vytenix website
   Palette: black, white, cyan navy #092742, ghost white #F8F8FF, blue #4C97CE (accent only).
   Type: Segoe UI, light for headings. Open Sans stands in where Segoe UI is missing.
   Scroll scenes read --p (0 to 1), which site.js sets on every [data-scene] element. */

/* ------------------------------------------------------------------ tokens */
:root {
  --navy: #092742;
  --blue: #4C97CE;
  --ghost: #F8F8FF;

  color-scheme: light;
  --bg: #FFFFFF;
  --bg-alt: #F8F8FF;
  --fg: #092742;
  --fg-soft: #5B6472;
  --line: rgba(9, 39, 66, .2);
  --line-2: rgba(9, 39, 66, .55);
  --solid-bg: #092742;
  --solid-fg: #FFFFFF;
  --header-bg: rgba(255, 255, 255, .8);
  --error: #A3261A;

  --font: "Segoe UI", "Open Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000;
    --bg-alt: #05070A;
    --fg: #F8F8FF;
    --fg-soft: #8B90A0;
    --line: rgba(248, 248, 255, .14);
    --line-2: rgba(248, 248, 255, .4);
    --solid-bg: #F8F8FF;
    --solid-fg: #092742;
    --header-bg: rgba(0, 0, 0, .7);
    --error: #FF9A8C;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-alt: #05070A;
  --fg: #F8F8FF;
  --fg-soft: #8B90A0;
  --line: rgba(248, 248, 255, .14);
  --line-2: rgba(248, 248, 255, .4);
  --solid-bg: #F8F8FF;
  --solid-fg: #092742;
  --header-bg: rgba(0, 0, 0, .7);
  --error: #FF9A8C;
}

/* A cyan navy section looks the same in both modes. */
.band-navy,
:root[data-theme="dark"] .band-navy {
  --bg: #092742;
  --fg: #FFFFFF;
  --fg-soft: #A9BBCC;
  --line: rgba(255, 255, 255, .18);
  --line-2: rgba(255, 255, 255, .45);
  --solid-bg: #F8F8FF;
  --solid-fg: #092742;
  background: var(--bg);
  color: var(--fg);
}

/* -------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  transition: background-color .45s var(--ease), color .45s var(--ease);
}
main { display: block; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
svg { fill: currentColor; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-weight: 300; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.3vw, 58px); line-height: 1.08; letter-spacing: -.01em; }
h3 { font-size: 22px; font-weight: 400; line-height: 1.3; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: text-decoration-color .2s; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--navy); color: var(--ghost); }

.label { font-size: 11px; letter-spacing: .38em; text-transform: uppercase; color: var(--fg-soft); line-height: 1.6; }
.label a { text-decoration: none; }
.lead { font-size: clamp(18px, 1.5vw, 21px); font-weight: 300; line-height: 1.6; max-width: 46ch; }
.muted { color: var(--fg-soft); font-size: 15px; max-width: 60ch; }
.plain-list li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--fg-soft); }
.plain-list li:last-child { border-bottom: 1px solid var(--line); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--solid-bg); color: var(--solid-fg); text-decoration: none; }
.skip:focus { top: 16px; }

/* Buttons: squircle corners, with a plain rounded corner where the shape is not supported. */
.button {
  display: inline-block;
  font: 400 11px/1.4 var(--font);
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 30px 16px;
  border: 1px solid var(--line-2);
  color: var(--fg);
  background: transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
@supports (corner-shape: squircle) {
  .button { border-radius: 22px; corner-shape: squircle; }
}
.button:hover { border-color: var(--fg); }
.button:active { transform: scale(.98); }
.button.is-solid { background: var(--solid-bg); border-color: var(--solid-bg); color: var(--solid-fg); }
.button.is-solid:hover { background: transparent; color: var(--fg); border-color: var(--fg); }
.button[disabled] { opacity: .5; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.actions--center { justify-content: center; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .35s var(--ease);
}
.site-header.is-stuck::before { opacity: 1; }
.brand { display: block; position: relative; z-index: 2; transition: opacity .4s var(--ease); }
.brand__logo { height: 34px; width: auto; }

.site-nav ul { display: flex; gap: clamp(20px, 3vw, 44px); }
.site-nav a { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; text-decoration: none; padding: 8px 0; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: .32em; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.site-header__tools { display: flex; align-items: center; gap: 6px; position: relative; z-index: 2; }
.icon-button, .menu-button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; padding: 10px; }
.icon-button svg { width: 22px; height: 22px; transition: transform .6s var(--ease); }
.icon-button circle { fill: none; stroke: currentColor; stroke-width: 1.2; }
:root[data-theme="dark"] .icon-button svg { transform: rotate(180deg); }
.menu-button { display: none; align-items: center; gap: 12px; }
/* Both words share one box, so the button is the same width open or closed. */
.menu-button__label { display: grid; justify-items: end; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; }
.menu-button__label span { grid-area: 1 / 1; transition: opacity .25s var(--ease); }
.menu-button[aria-expanded="false"] .menu-button__label span:last-child,
.menu-button[aria-expanded="true"] .menu-button__label span:first-child { opacity: 0; visibility: hidden; }
/* While the menu is open the page is locked, but the scrollbar's space is kept so nothing in the header moves. */
html.menu-locked { overflow: hidden; scrollbar-gutter: stable; }
.menu-button__bars { display: grid; gap: 6px; width: 22px; }
.menu-button__bars i { height: 1px; background: currentColor; transition: transform .35s var(--ease); }
.menu-button[aria-expanded="true"] .menu-button__bars i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-button__bars i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 819px) {
  .js .menu-button { display: flex; }
  .js .site-nav {
    position: fixed; inset: 0; z-index: 1;
    display: grid; place-items: center;
    background: var(--bg);
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .js .site-nav.is-open { opacity: 1; visibility: visible; }
  .js .site-nav ul { flex-direction: column; align-items: center; gap: 26px; }
  .js .site-nav a { font-size: 34px; font-weight: 300; letter-spacing: 0; text-transform: none; }
  .js .site-nav li { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .js .site-nav.is-open li { opacity: 1; transform: none; }
  .js .site-nav.is-open li:nth-child(2) { transition-delay: .06s; }
  .js .site-nav.is-open li:nth-child(3) { transition-delay: .12s; }
  .js .site-nav.is-open li:nth-child(4) { transition-delay: .18s; }
  html:not(.js) .site-header { flex-wrap: wrap; position: static; }
  html:not(.js) .site-nav ul { gap: 18px; flex-wrap: wrap; }
}

/* -------------------------------------------------------------------- hero */
.hero { position: relative; }
.js .hero { height: 340vh; }
.hero__stage { position: sticky; top: 0; height: 100svh; min-height: 540px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; padding-top: 88px; }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(#0000, #000 24%, #000 90%, #0000); mask-image: linear-gradient(#0000, #000 24%, #000 90%, #0000); }
.hero__copy, .route { position: relative; z-index: 1; }
.hero__copy { align-self: center; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.hero__title { font-size: clamp(40px, 8vw, 122px); line-height: 1; letter-spacing: -.026em; text-wrap: initial; }
.hero__title .row { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.hero__title .row > span { display: block; animation: line-up 1.2s var(--ease) .1s both; }
.hero__title .row:nth-child(2) > span { animation-delay: .22s; }
.hero__tagline { margin-top: clamp(20px, 3.4vh, 36px); font-size: clamp(17px, 1.5vw, 21px); font-weight: 300; line-height: 1.55; max-width: 40ch; color: var(--fg-soft); animation: settle 1.2s var(--ease) .6s both; }
@keyframes settle { from { opacity: 0; transform: translateY(18px); } }

.route { min-width: 0; padding-bottom: clamp(36px, 7vh, 80px); }
.route__track { position: relative; width: 100%; min-width: 940px; will-change: transform; }
.route svg { width: 100%; height: auto; overflow: visible; }
.route__ghost { fill: none; stroke: var(--line-2); stroke-width: 1.4; stroke-dasharray: 1; animation: route-draw 2.6s var(--ease) .5s both; }
@keyframes route-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.route__path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.route__pad { fill: none; stroke: currentColor; stroke-width: 2; }
.route__node { fill: var(--bg); stroke: var(--line-2); stroke-width: 1.6; transition: stroke .5s var(--ease), fill .5s var(--ease); }
.route__node.is-on { stroke: currentColor; fill: currentColor; }
.route__window { opacity: 0; transition: opacity .7s var(--ease); }
.route__window.is-on { opacity: 1; }
.route__head { fill: var(--blue); }
.route__pulse { fill: none; stroke: var(--blue); stroke-width: 3.4; stroke-linecap: round; opacity: 0; }
.route__extra path { fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .7; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease); }
.route__extra path:nth-child(2) { transition-delay: .25s; }
.route__extra path:nth-child(3) { transition-delay: .5s; }
.route__extra circle { fill: var(--bg); stroke: currentColor; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .7s var(--ease) .6s; }
.route__extra circle:nth-of-type(2) { transition-delay: .72s; }
.route__extra circle:nth-of-type(3) { transition-delay: .84s; }
.route__extra.is-on path { stroke-dashoffset: 0; }
.route__extra.is-on circle { transform: scale(1); }
.route__ring { fill: none; stroke: currentColor; stroke-width: 1.4; opacity: .8; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease); }
.route__ring--outer { opacity: .38; transition-delay: .3s; }
.route__halo.is-on .route__ring { stroke-dashoffset: 0; }
.route__orbit { animation: orbit 30s linear infinite; }
.route__halo--back .route__orbit { animation-direction: reverse; }
.route__orbit circle { fill: var(--bg); stroke: currentColor; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .6s var(--ease) .8s; }
.route__orbit circle:nth-child(2) { transition-delay: .92s; }
.route__orbit circle:nth-child(3) { transition-delay: 1.04s; }
.route__halo.is-on .route__orbit circle { transform: scale(1); }
@keyframes orbit { to { transform: rotate(360deg); } }
html:not(.js) .route__ring { stroke-dashoffset: 0; }
html:not(.js) .route__orbit circle { transform: none; }
.route__bit { font: 300 15px var(--font); text-anchor: middle; fill: currentColor; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.route__bit.is-on { opacity: .8; transform: none; }
.route__chrome { fill: none; stroke: currentColor; stroke-width: 1.6; }
.route__dot { fill: var(--blue); }
.route__bar { fill: currentColor; opacity: .55; transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform .9s var(--ease); }
.route__bar:nth-of-type(2) { transition-delay: .1s; } .route__bar:nth-of-type(3) { transition-delay: .2s; }
.route__bar:nth-of-type(4) { transition-delay: .3s; } .route__bar:nth-of-type(5) { transition-delay: .4s; }
.route__window.is-on .route__bar { transform: scaleY(1); }
.route__btn { fill: currentColor; transform-box: fill-box; transform-origin: center; }
.route__cursor { fill: var(--bg); stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; transform: translate(44px, 46px); opacity: 0; transition: transform 1.1s var(--ease) .7s, opacity .4s var(--ease) .7s; }
.route__window.is-on .route__cursor { transform: none; opacity: 1; }
.route__window.is-on .route__btn { animation: press .5s var(--ease) 1.8s; }
@keyframes press { 50% { transform: scale(.9); } }
html:not(.js) .route__extra path { stroke-dashoffset: 0; }
html:not(.js) .route__extra circle, html:not(.js) .route__bar { transform: none; }
html:not(.js) .route__bit { opacity: .8; transform: none; }
.js .route__head { animation: head 2.2s ease-in-out infinite; }
html:not(.js) .route__head { display: none; }
@keyframes head { 50% { opacity: .45; } }
.route__labels { position: relative; height: 26px; margin-top: 6px; }
.route__labels li { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.route__labels li:nth-child(1) { left: 12.5%; } .route__labels li:nth-child(2) { left: 37.5%; }
.route__labels li:nth-child(3) { left: 62.5%; } .route__labels li:nth-child(4) { left: 87.5%; }
.route__labels a { font-size: 11px; letter-spacing: .34em; text-transform: uppercase; text-decoration: none; padding: 6px 0; color: var(--fg-soft); transition: color .5s var(--ease), opacity .5s var(--ease); }
.js .route__labels a:not(.is-on) { opacity: .5; }
.route__labels a.is-on { color: var(--fg); }
@media (max-width: 939px) {
  .route__path { stroke-width: 3; }
  .route__ghost { stroke-width: 2; }
  .route__head { r: 9px; }
}

/* ------------------------------------------------------------ the 3D logo */
.logo-scene { position: relative; }
.js .logo-scene { height: 540vh; }
.logo-scene__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; --mark: min(46vw, 36vh, 300px); }
.logo-scene__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo-scene__fallback { position: absolute; left: 50%; top: 47%; width: var(--mark); height: var(--mark); transform: translate(-50%, -50%); display: none; }
.logo-scene.no-webgl .logo-scene__fallback, html:not(.js) .logo-scene__fallback { display: block; }
.logo-scene.no-webgl .logo-scene__canvas { display: none; }
.logo-scene__wordmark {
  position: absolute; left: 50%; top: calc(47% + var(--mark) * .5 + clamp(22px, 4vh, 40px));
  width: calc(var(--mark) * 1.18); transform: translateX(-50%);
  opacity: min(clamp(0, (var(--p) - .52) / .07, 1), clamp(0, (.75 - var(--p)) / .05, 1));
}
.logo-scene__wordmark svg { width: 100%; overflow: visible; }
.logo-scene__phrases p {
  position: absolute; left: 0; right: 0; bottom: clamp(56px, 12vh, 120px);
  margin: 0 auto; padding: 0 var(--gutter); max-width: none; text-align: center;
  font-size: clamp(20px, 2.5vw, 34px); font-weight: 300; line-height: 1.25;
  --o: min(clamp(0, (var(--p) - var(--a)) / .05, 1), clamp(0, (var(--b) - var(--p)) / .05, 1));
  opacity: var(--o); transform: translateY(calc((1 - var(--o)) * 14px));
}
.logo-scene__phrases p:nth-child(1) { --a: -.2; --b: .28; }
.logo-scene__phrases p:nth-child(2) { --a: .38; --b: .66; }
.logo-scene__phrases p:nth-child(3) { --a: .68; --b: .87; }
.logo-scene__next {
  position: absolute; left: 0; right: 0; top: 50%; text-align: center; padding: 0 var(--gutter);
  font-size: clamp(38px, 6.4vw, 96px); letter-spacing: -.02em;
  --o: clamp(0, (var(--p) - .855) / .08, 1);
  opacity: var(--o); transform: translateY(calc(-50% + (1 - var(--o)) * 30px));
}

/* --------------------------------------------------------------- statement */
.js .statement { height: 320vh; }
.statement__pin { position: sticky; top: 0; min-height: 100svh; display: grid; align-items: center; padding: 120px var(--gutter); }
.statement__pin { overflow: hidden; }
.statement__waves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, #0000, #000 14%, #000 86%, #0000); mask-image: linear-gradient(90deg, #0000, #000 14%, #000 86%, #0000); }
.statement__text { position: relative; z-index: 1; width: 100%; font-size: clamp(28px, 4.7vw, 70px); font-weight: 300; line-height: 1.14; letter-spacing: -.012em; max-width: 1180px; margin: 0 auto; }
.statement__text .w { opacity: .2; }

/* ---------------------------------------------------------------- chapters */
[data-scene] { --p: 1; }
.chapter__pin, .products-band__pin {
  display: grid; gap: 48px;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(72px, 12vh, 120px) var(--gutter);
}
.chapter__text h2, .products-band__text h2 { margin: 18px 0 24px; max-width: 16ch; }
.chapter__text .plain-list { margin-top: 36px; max-width: 420px; }
.chapter + .chapter .chapter__pin { border-top: 1px solid var(--line); }

.viz { width: min(100%, 520px); aspect-ratio: 1; margin: 0 auto; }

@media (min-width: 900px) {
  .js .chapter { height: 270vh; }
  .js .products-band { height: 250vh; }
  .chapter__pin, .products-band__pin {
    position: sticky; top: 0; height: 100vh;
    grid-template-columns: 1fr 1fr; align-items: center;
    gap: clamp(48px, 7vw, 130px);
    padding-block: 0;
  }
  .chapter:nth-child(even) .chapter__visual { order: 2; }
  .viz { width: min(100%, 560px, 68vh); }
}

/* AI: points settle into a network (drawn on canvas by home.js) */
.viz-ai canvas { width: 100%; height: 100%; }

/* Embedded: logic-analyser capture */
.viz-scope { aspect-ratio: auto; display: grid; gap: clamp(24px, 4vh, 44px); --pd: clamp(0, (var(--p) - .08) / .78, 1); }
.scope { position: relative; aspect-ratio: 640 / 264; }
.scope svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scope text { font: 400 11px var(--font); letter-spacing: .3em; fill: var(--fg-soft); }
.scope__base path { fill: none; stroke: var(--line-2); stroke-width: 1; opacity: .6; }
.scope__reveal { position: absolute; inset: 0; clip-path: inset(0 calc(90% - var(--pd) * 80%) 0 0); }
.scope__reveal path { fill: none; stroke: currentColor; stroke-width: 1.6; }
.scope__reveal text { letter-spacing: 0; text-anchor: middle; font-size: 12px; }
.scope__cursor { position: absolute; top: 4%; bottom: 3%; left: calc(10% + var(--pd) * 80%); width: 1px; background: var(--blue); }
.decode { display: flex; flex-wrap: wrap; gap: 14px 44px; padding-left: 10%; }
.decode__byte { display: flex; align-items: baseline; gap: 16px; font-variant-numeric: tabular-nums; }
.decode__bits { font-size: 15px; letter-spacing: .14em; color: var(--fg-soft); min-width: 10.5ch; white-space: pre; }
.decode__hex { font-size: 15px; color: var(--fg-soft); }
.decode__char { font-size: 44px; font-weight: 300; line-height: 1; }
.decode__hex, .decode__char { transition: opacity .4s var(--ease); }
.decode__byte:not(.is-done) .decode__hex, .decode__byte:not(.is-done) .decode__char { opacity: .12; }

/* Electronics: traces route to one chip */
.viz-pcb svg { width: 100%; height: 100%; overflow: visible; }
.trace { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: calc(1px - 1px * var(--pd, 1)); }
.trace--s0 { --pd: clamp(0, (var(--p) - .04) / .3, 1); }
.trace--s1 { --pd: clamp(0, (var(--p) - .2) / .3, 1); }
.trace--s2 { --pd: clamp(0, (var(--p) - .36) / .3, 1); }
.trace--s3 { --pd: clamp(0, (var(--p) - .52) / .3, 1); }
.pad { fill: none; stroke: currentColor; stroke-width: 1.5; }
.pad--power { fill: var(--blue); stroke: var(--blue); fill-opacity: clamp(0, (var(--p) - .88) / .08, 1); }
.stub { fill: currentColor; }
.chip { fill: var(--bg); stroke: currentColor; stroke-width: 1.5; }
.chip__mark { opacity: clamp(0, (var(--p) - .8) / .14, 1); }

/* Software: three layers fold into one screen */
.viz-stack { perspective: 1500px; display: grid; place-items: center; }
.stack {
  --e: clamp(0, (var(--p) - .04) / .8, 1);
  position: relative; width: min(66%, 340px); aspect-ratio: 4 / 3;
  transform-style: preserve-3d;
  transform: rotateX(calc(58deg * (1 - var(--e)))) rotateZ(calc(-40deg * (1 - var(--e))));
}
.plane {
  position: absolute; inset: 0; padding: 7%;
  border: 1px solid color-mix(in srgb, var(--fg) 70%, transparent); border-radius: 20px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  transform: translateZ(calc(var(--k) * 92px * (1 - var(--e))));
}
.plane--data { --k: -1; display: flex; flex-direction: column; justify-content: space-evenly; }
.plane--logic { --k: 0; }
.plane--ui { --k: 1; display: flex; flex-direction: column; gap: 9%; background: var(--bg); }
.plane--data, .plane--logic { opacity: clamp(0, (1 - var(--e)) * 4, 1); }
.plane__label { position: absolute; left: 4px; bottom: 100%; margin-bottom: 10px; font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--fg-soft); opacity: clamp(0, 2 - var(--e) * 4, 1); }
.plane--data i { height: 1px; background: color-mix(in srgb, var(--fg) 60%, transparent); }
.plane--logic svg { width: 100%; height: 100%; }
.plane--logic path, .plane--logic rect { fill: none; stroke: currentColor; stroke-width: 1.5; }
.ui-bar { display: flex; align-items: center; gap: 10px; }
.ui-bar b { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.ui-bar i { flex: 0 0 34%; height: 1px; background: currentColor; }
.ui-row { display: flex; justify-content: space-between; }
.ui-row i { height: 1px; background: var(--line-2); flex: 0 0 52%; }
.ui-row i:last-child { flex-basis: 16%; }
.ui-action { margin-top: auto; align-self: flex-end; width: 34%; height: 16%; border-radius: 9px; background: var(--fg); }

/* ---------------------------------------------------- products: the receipt */
.products-band__text .label, .product__text .label { color: var(--fg-soft); }
.pos { perspective: 1300px; display: grid; justify-items: center; padding: 20px 0; --pd: clamp(0, (var(--p) - .06) / .8, 1); }
.pos__printer { width: min(74%, 300px); transform: rotateX(calc(14deg * (1 - var(--pd)))) rotateY(calc(-24deg * (1 - var(--pd)))); }
.pos__slot { position: relative; z-index: 1; height: 12px; margin: 0 -16px; border-radius: 7px; background: #03101C; box-shadow: 0 1px 0 rgba(255, 255, 255, .14); }
.pos__feed { overflow: hidden; margin-top: -6px; }
.receipt {
  background: #FFFFFF; color: #092742; padding: 34px 24px 46px;
  transform: translateY(calc(-100% * (1 - var(--pd))));
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
}
.receipt__head { display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .38em; text-transform: uppercase; padding-bottom: 6px; }
.receipt__mark { width: 40px; height: 40px; }
.receipt__rule { margin: 18px 0; border-top: 1px dashed rgba(9, 39, 66, .45); }
.receipt__row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.receipt__row i { height: 5px; border-radius: 3px; background: rgba(9, 39, 66, .22); }
.receipt__row--total i { background: #092742; height: 7px; }
.w12 { width: 12%; } .w14 { width: 14%; } .w18 { width: 18%; } .w24 { width: 24%; } .w36 { width: 36%; } .w44 { width: 44%; } .w52 { width: 52%; } .w60 { width: 60%; }
.receipt__bars { margin-top: 26px; height: 46px; background: repeating-linear-gradient(90deg, #092742 0 2px, transparent 2px 5px, #092742 5px 6px, transparent 6px 10px, #092742 10px 13px, transparent 13px 15px); }

/* ----------------------------------------------------------------- process */
.process { border-top: 1px solid var(--line); }
.process__pin { padding: clamp(72px, 12vh, 120px) 0; }
.process__head { padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto; }
.process__line { height: 1px; background: var(--line); margin-top: 36px; }
.process__line i { display: block; height: 1px; background: currentColor; transform-origin: left; transform: scaleX(var(--p)); }
.process__track { display: grid; gap: 44px; padding: 44px var(--gutter) 0; }
.step { max-width: 46ch; }
.step__n { display: block; font-size: clamp(64px, 9vw, 128px); font-weight: 300; line-height: 1; color: var(--fg-soft); font-variant-numeric: lining-nums; }
.step h3 { margin: 18px 0 10px; font-size: 26px; font-weight: 300; }
.step p { color: var(--fg-soft); font-size: 16px; }

@media (min-width: 900px) {
  .js .process { height: 430vh; }
  .process__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 0; }
  .process__head { width: 100%; }
  .js .process__track { display: flex; gap: 0; width: max-content; padding: 7vh max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 0; transform: translateX(calc(var(--p) * (100vw - 100%))); }
  .js .step { width: min(40vw, 520px); padding-right: 6vw; }
  html:not(.js) .process__pin { position: static; height: auto; padding: 120px 0; }
  html:not(.js) .process__track { grid-template-columns: repeat(5, 1fr); }
}

/* ----------------------------------------------------------------- closing */
.closing { text-align: center; overflow: clip; border-top: 1px solid var(--line); }
.closing__pin { padding: clamp(110px, 20vh, 220px) var(--gutter); }
.js .closing--pinned { height: 260vh; }
.js .closing--pinned .closing__pin { position: sticky; top: 0; min-height: 100svh; display: grid; align-content: center; padding-block: 96px; }
.closing__word { width: 100%; max-width: 940px; margin: 0 auto clamp(56px, 9vh, 96px); }
.closing__svg { width: 100%; overflow: visible; }
.closing__svg path { --e: clamp(0, var(--p) / .68, 1); transform: translateX(calc(var(--n) * 34px * (1 - var(--e)))); opacity: calc(.14 + .86 * var(--e)); }
.closing--pinned .closing__title, .closing--pinned .actions { --t: clamp(0, (var(--p) - .6) / .24, 1); opacity: var(--t); transform: translateY(calc((1 - var(--t)) * 26px)); }
.closing__svg path:nth-child(1) { --n: -3; } .closing__svg path:nth-child(2) { --n: -2; } .closing__svg path:nth-child(3) { --n: -1; }
.closing__svg path:nth-child(4) { --n: 0; } .closing__svg path:nth-child(5) { --n: 1; } .closing__svg path:nth-child(6) { --n: 2; } .closing__svg path:nth-child(7) { --n: 3; }
.closing__title { font-size: clamp(30px, 4.6vw, 62px); }
.closing--plain { border-top: 0; }
.closing--plain .closing__pin { padding-block: clamp(120px, 22vh, 240px); }
.closing__lead { margin: clamp(18px, 3vh, 28px) auto 0; color: var(--fg-soft); }
.closing--plain .actions { margin-top: clamp(36px, 6vh, 56px); }

/* ----------------------------------------------------------------- subpages */
.page-head { max-width: var(--max); margin: 0 auto; padding: clamp(150px, 24vh, 230px) var(--gutter) clamp(56px, 9vh, 100px); }
.page-head__title { font-size: clamp(38px, 6.6vw, 96px); line-height: 1.04; letter-spacing: -.018em; text-wrap: initial; }
.page-head__title .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.page-head__title .line > span { display: block; animation: line-up 1.1s var(--ease) both; }
.page-head__title .line:nth-child(2) > span { animation-delay: .1s; }
@keyframes line-up { from { transform: translateY(110%); } }
.page-head__lead { margin-top: 36px; animation: settle 1.1s var(--ease) .35s both; }
.page-head .muted { margin-top: 20px; }
.page-head .label { margin-bottom: 22px; }

.product { display: grid; gap: 48px; align-items: center; padding: clamp(72px, 12vh, 140px) var(--gutter); }
.product__text h2 { margin: 18px 0 20px; }
.product__text .muted { margin-top: 14px; }
.note { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 14vh, 160px) var(--gutter); }
.note .lead { margin-top: 20px; color: var(--fg-soft); }
@media (min-width: 900px) {
  .product { grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 130px); padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
}

/* About */
.about-what, .axis { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 10vh, 120px) var(--gutter); }
.about-what h2, .axis__title { font-size: clamp(26px, 3vw, 40px); margin-bottom: 44px; }
.about-what__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 clamp(28px, 4vw, 64px); }
.about-what__list li { border-top: 1px solid var(--line-2); padding: 22px 0 36px; }
.about-what__list h3 { margin-bottom: 12px; }
.about-what__list h3 a { text-decoration: none; }
.about-what__list p { color: var(--fg-soft); font-size: 15px; }

.axis__body { position: relative; padding-left: 52px; }
.axis__line { position: absolute; left: 8px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.axis__line i { position: absolute; inset: 0; background: currentColor; transform-origin: top; transform: scaleY(var(--p)); }
.axis__item { position: relative; padding: clamp(28px, 6vh, 64px) 0; max-width: 56ch; }
.axis__item::before { content: ""; position: absolute; left: -50px; top: calc(clamp(28px, 6vh, 64px) + 10px); width: 13px; height: 13px; border-radius: 50%; border: 1px solid currentColor; background: var(--bg); transition: background-color .6s var(--ease), transform .6s var(--ease); }
.axis__item h3 { font-size: clamp(24px, 2.6vw, 36px); font-weight: 300; margin-bottom: 14px; }
.axis__item p { color: var(--fg-soft); }
.axis__item > * { transition: opacity .7s var(--ease); }
.js .axis__item:not(.is-passed) > * { opacity: .3; }
.axis__item.is-passed::before { background: currentColor; transform: scale(1.15); }

.about-products { display: grid; gap: 32px; align-items: end; padding: clamp(72px, 12vh, 140px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.about-products h2 { margin-bottom: 20px; }
.about-products .actions { margin-top: 0; }
@media (min-width: 900px) { .about-products { grid-template-columns: 1fr auto; } }

/* Contact */
.contact { max-width: var(--max); margin: 0 auto; display: grid; gap: 64px; padding: 0 var(--gutter) clamp(96px, 16vh, 180px); }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(64px, 8vw, 140px); } }
.field-row { display: grid; gap: 0 32px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 30px; }
.field label { display: block; font-size: 13px; color: var(--fg-soft); margin-bottom: 6px; }
.field__optional { opacity: .7; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  display: block; width: 100%;
  font: 300 19px/1.5 var(--font); color: var(--fg);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  padding: 8px 0 12px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 28px; cursor: pointer;
  background: linear-gradient(45deg, transparent 50%, currentColor 50%, currentColor calc(50% + 1px), transparent calc(50% + 1px)) right 10px center / 7px 7px no-repeat,
              linear-gradient(-45deg, transparent 50%, currentColor 50%, currentColor calc(50% + 1px), transparent calc(50% + 1px)) right 3px center / 7px 7px no-repeat; }
.field select option { color: #092742; background: #FFFFFF; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--fg); box-shadow: 0 1px 0 var(--fg); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: 14px; margin-top: 8px; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; }
.field--check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--navy); }
:root[data-theme="dark"] .field--check input { accent-color: var(--ghost); }
.field--check label { font-size: 15px; color: var(--fg); margin: 0; }
.field--check .field__error { grid-column: 2; }
.form-status { padding: 18px 22px; margin-bottom: 36px; border: 1px solid var(--line-2); border-radius: 14px; font-size: 16px; }
.form-status.is-error { border-color: var(--error); color: var(--error); }
.contact__steps { counter-reset: step; margin-bottom: 32px; }
.contact__steps li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; padding: 16px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--fg-soft); }
.contact__steps li::before { content: counter(step); color: var(--fg); }

/* Legal pages */
.read-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; }
.read-progress i { display: block; height: 100%; background: var(--fg); transform-origin: left; transform: scaleX(0); }
.legal { max-width: var(--max); margin: 0 auto; display: grid; gap: 48px; padding: 0 var(--gutter) clamp(96px, 16vh, 180px); }
.legal__toc ol { margin-top: 18px; }
.legal__toc li a { display: block; padding: 7px 0 7px 16px; border-left: 1px solid var(--line); font-size: 14px; color: var(--fg-soft); text-decoration: none; transition: color .25s, border-color .25s; }
.legal__toc li a:hover, .legal__toc li a.is-current { color: var(--fg); border-color: var(--fg); }
.legal__others { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal__others li a { border-left: 0; padding-left: 0; }
.legal__body { max-width: 68ch; }
.legal__body section { padding: 0 0 44px; }
.legal__body section + section { padding-top: 44px; border-top: 1px solid var(--line); }
.legal__body h2 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: 0; margin-bottom: 18px; }
.legal__body p + p, .legal__body ul + p, .legal__body p + ul { margin-top: 16px; }
.legal__body ul { padding-left: 0; }
.legal__body ul li { position: relative; padding-left: 22px; margin-top: 8px; }
.legal__body ul li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 8px; height: 1px; background: currentColor; }
@media (min-width: 960px) {
  .legal { grid-template-columns: 260px minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); }
  .legal__toc { position: sticky; top: 110px; align-self: start; max-height: calc(100vh - 140px); overflow: auto; }
}

/* ------------------------------------------- every section fills the window
   A section is at least one full window tall. On a phone, where the same
   content needs more room, it simply runs longer. */
.screen { min-height: 100svh; }
.page-head.screen { display: flex; flex-direction: column; justify-content: center; padding-block: clamp(120px, 18vh, 170px) clamp(56px, 9vh, 100px); }
.product.screen, .about-products.screen { align-content: center; }
.note.screen, .about-what.screen, .axis.screen { display: flex; flex-direction: column; justify-content: center; }
.note .actions { margin-top: 40px; }
.closing--plain .closing__pin { min-height: 100svh; display: grid; align-content: center; }
.chapter__pin, .products-band__pin { min-height: 100svh; align-content: center; }
.process__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.license-options:empty { display: none; }

.contact.screen { align-items: center; padding-block: clamp(120px, 16vh, 160px) clamp(64px, 10vh, 110px); }
@media (min-width: 960px) { .contact.screen { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.contact__intro .page-head__title { font-size: clamp(36px, 4.6vw, 68px); }
.contact__intro .lead { margin-top: 24px; }
.contact__intro h2 { font-size: 20px; font-weight: 400; letter-spacing: 0; margin: clamp(36px, 6vh, 56px) 0 12px; }
.contact__intro .contact__steps { margin-bottom: 24px; }
.contact__intro .muted + .muted { margin-top: 10px; }
.contact__form form .button { margin-top: 6px; }

/* ------------------------------------------------------------------ footer */
.site-footer {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto minmax(200px, 1fr) auto;
  border-top: 1px solid var(--line);
  padding: clamp(104px, 15vh, 150px) var(--gutter) 28px;
}
.site-footer__top { width: 100%; max-width: var(--max); margin: 0 auto; display: grid; gap: 40px; }
.site-footer__mark { width: 54px; height: 54px; }
.site-footer__line { color: var(--fg-soft); max-width: 34ch; font-size: 15px; }
.site-footer__nav { display: flex; gap: clamp(40px, 6vw, 96px); }
.site-footer__nav li { padding: 5px 0; }
.site-footer__nav a { font-size: 15px; text-decoration: none; }
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__stage { position: relative; margin: 0 calc(var(--gutter) * -1); min-height: clamp(180px, 32vh, 380px); }
.site-footer__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.site-footer__word { position: absolute; inset: 0; display: none; place-items: center; padding: 0 6%; }
.site-footer__word svg { width: 100%; }
html:not(.js) .site-footer__word { display: grid; }
.site-footer__base { width: 100%; max-width: var(--max); margin: 0 auto; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--fg-soft); }
.site-footer__base a { text-decoration: none; }
.site-footer__base a:hover { color: var(--fg); }
@media (min-width: 820px) { .site-footer__top { grid-template-columns: auto 1fr auto; align-items: start; gap: clamp(32px, 5vw, 80px); } }

/* ------------------------------------------------------------ shared pieces */
.sample-tag { display: inline-block; max-width: none; margin-top: 14px; padding: 6px 12px; border: 1px dashed var(--line-2); border-radius: 10px; font-size: 13px; color: var(--fg-soft); }
.textlink { font-size: 14px; }
.jump { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; }
.jump a { font-size: 15px; text-underline-offset: 5px; }
.page-head .actions { margin-top: 36px; }

/* Product line drawings. Each stroke draws as --p goes from 0 to 1. */
.art { display: block; width: 100%; height: auto; overflow: visible; }
.art > * { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; --pd: clamp(0, (var(--p, 1) - var(--d, 0)) / .5, 1); stroke-dashoffset: calc(1px - 1px * var(--pd, 1)); }
.art > :nth-child(2) { --d: .1; } .art > :nth-child(3) { --d: .2; } .art > :nth-child(4) { --d: .3; } .art > :nth-child(n+5) { --d: .4; }
.art > .art__scan { stroke: var(--blue); stroke-dasharray: none; stroke-dashoffset: 0; transform: translateY(calc((var(--p, 1) - .5) * 150px)); }
.art--static > * { stroke-dashoffset: 0; }
.art--static > .art__scan { transform: none; }
.art--load > * { stroke-dashoffset: 0; animation: art-draw 1.5s var(--ease) both; }
.art--load > :nth-child(2) { animation-delay: .25s; } .art--load > :nth-child(3) { animation-delay: .5s; }
.art--load > :nth-child(4) { animation-delay: .75s; } .art--load > :nth-child(n+5) { animation-delay: 1s; }
.art--load > .art__scan { animation: art-scan 3.4s ease-in-out 1.4s infinite alternate; transform: translateY(-70px); }
@keyframes art-draw { from { stroke-dashoffset: 1px; } }
@keyframes art-scan { to { transform: translateY(70px); } }

/* ------------------------------------------------- our products: the ring */
.deck { position: relative; border-top: 1px solid var(--line); }
.js .deck { height: 460vh; }
.deck__pin { position: sticky; top: 0; min-height: 100svh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(14px, 3vh, 30px); padding: clamp(96px, 13vh, 130px) var(--gutter) clamp(22px, 4vh, 44px); overflow: hidden; }
.deck__head, .deck__foot { width: 100%; max-width: var(--max); margin: 0 auto; }
.deck__head { display: grid; gap: 12px; }
.deck__head h2 { font-size: clamp(30px, 4vw, 54px); }
.deck__stage { perspective: 1500px; display: grid; place-items: center; min-height: 0; }
.deck__ring { position: relative; width: min(70vw, 350px, 40vh); aspect-ratio: 3 / 4; transform-style: preserve-3d; }
.deck__card { position: absolute; inset: 0; will-change: transform, opacity; }
.deck__card a { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; height: 100%; padding: clamp(16px, 2.2vw, 26px); border: 1px solid var(--line-2); border-radius: 24px; background: var(--bg); text-decoration: none; transition: border-color .4s var(--ease); }
.deck__card.is-front a { border-color: var(--fg); }
.js .deck__card:not(.is-front) a { pointer-events: none; }
.deck__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.deck__stagetag { font-size: 12px; color: var(--fg-soft); }
.deck__card .art { align-self: center; justify-self: center; width: 60%; max-height: 100%; }
.deck__text { display: grid; gap: 6px; }
.deck__text strong { font-size: clamp(20px, 2vw, 26px); font-weight: 300; line-height: 1.15; }
.deck__text span { font-size: 14px; line-height: 1.45; color: var(--fg-soft); }
.deck__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.deck__count { font-size: 15px; color: var(--fg-soft); font-variant-numeric: tabular-nums; }
html:not(.js) .deck__ring, .deck--flat .deck__ring { width: 100%; max-width: var(--max); aspect-ratio: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
html:not(.js) .deck__card, .deck--flat .deck__card { position: static; }

/* ------------------------------------------- clients: a wheel of names */
.clients { position: relative; border-top: 1px solid var(--line); }
.js .clients { height: 380vh; }
.clients__pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; padding: clamp(96px, 13vh, 130px) var(--gutter) clamp(24px, 5vh, 52px); overflow: hidden; isolation: isolate; }
.clients__head, .clients__foot { width: 100%; max-width: var(--max); margin: 0 auto; }
.clients__head h2 { margin-bottom: 12px; }
.clients__wheel { perspective: 1200px; min-height: 0; }
.clients__drum { position: relative; height: 100%; transform-style: preserve-3d; }
.clients__drum li { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; white-space: nowrap; font-size: clamp(46px, 10.5vw, 158px); font-weight: 300; line-height: 1; letter-spacing: -.028em; will-change: transform, opacity; }
.clients__foot { display: flex; align-items: center; gap: 20px; }
.clients__count { font-size: 15px; color: var(--fg-soft); font-variant-numeric: tabular-nums; }
.clients__track { flex: 1; max-width: 260px; height: 1px; background: var(--line); }
.clients__track i { display: block; height: 1px; background: currentColor; transform-origin: left; transform: scaleX(clamp(0, var(--p) / .9, 1)); }
/* Without motion, or without JavaScript, the names are simply listed. */
html:not(.js) .clients__drum, .clients--flat .clients__drum { display: grid; gap: .12em; align-content: center; height: auto; }
html:not(.js) .clients__drum li, .clients--flat .clients__drum li { position: static; font-size: clamp(34px, 6vw, 80px); }
html:not(.js) .clients__foot, .clients--flat .clients__foot { display: none; }

/* ------------------------------------------- reviews: the constellation */
.reviews { position: relative; border-top: 1px solid var(--line); --n: 3; }
.reviews--1 { --n: 1; } .reviews--2 { --n: 2; } .reviews--3 { --n: 3; } .reviews--4 { --n: 4; } .reviews--5 { --n: 5; } .reviews--6 { --n: 6; }
.js .reviews { height: calc(var(--n) * 110vh + 90vh); }
/* The stage is exactly one window tall and its two parts share that height, so nothing is cut off. */
.reviews__pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-rows: minmax(0, 36%) minmax(0, 1fr); gap: 10px; padding: clamp(84px, 11vh, 118px) var(--gutter) clamp(20px, 4vh, 44px); overflow: hidden; }
.reviews__sky { display: block; width: 100%; height: 100%; min-height: 0; }
.reviews__panel { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; min-height: 0; }
.reviews__head h2 { font-size: clamp(20px, 2.2vw, 30px); letter-spacing: 0; }
.reviews__list { display: grid; align-items: center; min-height: 0; }
.review { grid-area: 1 / 1; --local: calc(var(--p) * var(--n) * .999 - var(--i)); opacity: min(clamp(0, var(--local) * 5 + var(--first, 0), 1), clamp(0, (1 - var(--local)) * 5 + var(--last, 0), 1)); transform: translateY(calc((.5 - var(--local)) * 48px)); }
.review:nth-child(1) { --i: 0; --first: 1; } .review:nth-child(2) { --i: 1; } .review:nth-child(3) { --i: 2; }
.review:nth-child(4) { --i: 3; } .review:nth-child(5) { --i: 4; } .review:nth-child(6) { --i: 5; }
.review:last-child { --last: 1; }
.review blockquote { margin: 0; font-size: clamp(21px, 2.7vw, 42px); font-weight: 300; line-height: 1.22; letter-spacing: -.01em; text-wrap: balance; }
.review__by { margin-top: clamp(14px, 3vh, 30px); display: grid; gap: 2px; max-width: none; }
.review__by strong { font-weight: 400; }
.review__by span { font-size: 15px; color: var(--fg-soft); }
.review--invite { opacity: 1; transform: none; max-width: 30ch; font-size: clamp(21px, 2.5vw, 38px); font-weight: 300; line-height: 1.25; }
.reviews__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.reviews__dots { display: flex; gap: 8px; }
.reviews__dots li { width: 30px; height: 1px; background: currentColor; --local: calc(var(--p) * var(--n) * .999 - var(--i)); opacity: calc(.22 + .78 * min(clamp(0, var(--local) * 60 + var(--first, 0), 1), clamp(0, (1 - var(--local)) * 60 + var(--last, 0), 1))); }
.reviews__dots li:nth-child(1) { --i: 0; --first: 1; } .reviews__dots li:nth-child(2) { --i: 1; } .reviews__dots li:nth-child(3) { --i: 2; }
.reviews__dots li:nth-child(4) { --i: 3; } .reviews__dots li:nth-child(5) { --i: 4; } .reviews__dots li:nth-child(6) { --i: 5; }
.reviews__dots li:last-child { --last: 1; }
html:not(.js) .reviews__list { gap: 56px; }
html:not(.js) .review { grid-area: auto; opacity: 1; transform: none; }
@media (min-width: 900px) {
  .reviews__pin { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 72px); padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
  .reviews__sky { order: 2; }
}

/* On a very short window there is no room to hold the stage still, so the section simply flows. */
@media (max-height: 540px) {
  .js .reviews { height: auto; }
  .reviews__pin { position: relative; height: auto; grid-template-rows: auto auto; grid-template-columns: minmax(0, 1fr); }
  .reviews__sky { height: 280px; order: 0; }
  .reviews__list { gap: 40px; }
  .review { grid-area: auto; opacity: 1; transform: none; }
  .reviews__dots { display: none; }
}

/* The reviews page */
.review-wall { display: flex; flex-direction: column; justify-content: center; max-width: var(--max); margin: 0 auto; padding: clamp(96px, 14vh, 140px) var(--gutter); }
.review-wall__list li { position: relative; padding: clamp(28px, 5vh, 48px) 0; border-bottom: 1px solid var(--line); }
.review-wall__list li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.review-wall__list li.is-passed::after, html:not(.js) .review-wall__list li::after { transform: scaleX(1); }
.review-wall__list blockquote { margin: 0 0 18px; max-width: 30ch; font-size: clamp(22px, 2.8vw, 40px); font-weight: 300; line-height: 1.22; }
.review-wall__list p { display: grid; gap: 2px; }
.review-wall__list strong { font-weight: 400; }
.review-wall__list span { font-size: 15px; color: var(--fg-soft); }
.review-wall__list li > * { transition: opacity .8s var(--ease); }
.js .review-wall__list li:not(.is-passed) > * { opacity: .32; }
.contact__intro h3 { font-size: 20px; font-weight: 400; margin: clamp(36px, 6vh, 56px) 0 12px; }
.contact__intro h2.page-head__title { font-size: clamp(34px, 4.4vw, 64px); }
.field input::placeholder { color: var(--fg-soft); opacity: .6; }

/* ----------------------------------------- advisory: one line, three ways */
.advise { border-top: 1px solid var(--line); }
.advise__pin { display: grid; align-content: center; gap: clamp(26px, 5vh, 56px); min-height: 100svh; max-width: var(--max); margin: 0 auto; padding: clamp(96px, 14vh, 140px) var(--gutter) clamp(56px, 8vh, 96px); }
.advise__head h2 { max-width: 20ch; margin-bottom: 18px; }
.advise__head .lead { max-width: 58ch; }
.advise__map { display: grid; gap: 16px; }
.advise__start, .advise__ways li { display: grid; gap: 6px; padding: 18px 22px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--bg); }
.advise__start { border-color: var(--fg); }
.advise__map strong { font-size: 18px; font-weight: 400; line-height: 1.3; }
.advise__map span { font-size: 14.5px; line-height: 1.5; color: var(--fg-soft); }
.advise__ways { display: grid; gap: 16px; }
.advise__lines { display: none; }
@media (min-width: 900px) {
  .js .advise { height: 300vh; }
  .advise__pin { position: sticky; top: 0; height: 100vh; }
  .advise__map { grid-template-columns: minmax(0, .8fr) minmax(110px, .55fr) minmax(0, 1.25fr); gap: 0; align-items: stretch; }
  .advise__start { align-self: center; }
  .advise__lines { display: block; width: 100%; height: 100%; min-height: 300px; }
  .advise__lines path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: calc(1px - 1px * var(--pd, 1)); }
  .advise__lines path:nth-child(1) { --pd: clamp(0, (var(--p) - .12) / .22, 1); }
  .advise__lines path:nth-child(2) { --pd: clamp(0, (var(--p) - .36) / .22, 1); }
  .advise__lines path:nth-child(3) { --pd: clamp(0, (var(--p) - .6) / .22, 1); }
  .advise__ways { grid-template-rows: repeat(3, minmax(0, 1fr)); }
  .advise__ways li { align-content: center; }
  .js .advise__ways li:nth-child(1) { opacity: calc(.22 + .78 * clamp(0, (var(--p) - .3) / .08, 1)); }
  .js .advise__ways li:nth-child(2) { opacity: calc(.22 + .78 * clamp(0, (var(--p) - .54) / .08, 1)); }
  .js .advise__ways li:nth-child(3) { opacity: calc(.22 + .78 * clamp(0, (var(--p) - .78) / .08, 1)); }
}

/* ------------------------------------------ benefits: lines that underline */
.benefits { display: flex; flex-direction: column; justify-content: center; max-width: var(--max); margin: 0 auto; padding: clamp(96px, 14vh, 140px) var(--gutter); }
.benefits h2 { margin-bottom: clamp(28px, 6vh, 60px); }
.benefits__list li { position: relative; display: grid; gap: 6px 40px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.benefits__list li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.benefits__list li.is-passed::after, html:not(.js) .benefits__list li::after { transform: scaleX(1); }
.benefits__list strong { font-size: clamp(22px, 2.4vw, 32px); font-weight: 300; line-height: 1.2; }
.benefits__list span { color: var(--fg-soft); }
.benefits__list li > * { transition: opacity .8s var(--ease); }
.js .benefits__list li:not(.is-passed) > * { opacity: .32; }
@media (min-width: 760px) { .benefits__list li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: baseline; } }

/* ---------------------------------------------- cards that stack on scroll */
.stack-section { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 14vh, 140px) var(--gutter) clamp(96px, 16vh, 180px); }
.stack-section__head { display: grid; gap: 16px; margin-bottom: clamp(28px, 6vh, 60px); }
.stackcards { display: grid; gap: 24px; }
.stackcard { position: sticky; top: calc(96px + var(--i, 0) * 20px); display: grid; gap: 24px; min-height: min(60vh, 540px); padding: clamp(24px, 4vw, 56px); border: 1px solid var(--line-2); border-radius: 26px; background: var(--bg); }
.stackcard:nth-child(2) { --i: 1; } .stackcard:nth-child(3) { --i: 2; } .stackcard:nth-child(4) { --i: 3; } .stackcard:nth-child(5) { --i: 4; }
.stackcard h3 { font-size: clamp(26px, 3.2vw, 46px); font-weight: 300; line-height: 1.1; margin-top: 14px; }
.stackcard__body { display: grid; align-content: start; gap: 20px; color: var(--fg-soft); }
.stackcard--small { min-height: min(38vh, 320px); align-items: center; }
.stackcard--small h3 { margin: 0; }
@media (min-width: 860px) { .stackcard { grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); } }
@supports (corner-shape: squircle) {
  .deck__card a, .stackcard, .more__list a { border-radius: 36px; corner-shape: squircle; }
}

/* ------------------------------------------------------- a product's page */
.product-hero { display: grid; align-items: center; gap: 40px; max-width: var(--max); margin: 0 auto; padding: clamp(120px, 18vh, 170px) var(--gutter) clamp(56px, 9vh, 100px); }
.product-hero .label { margin-bottom: 22px; }
.product-hero__art { width: 100%; max-width: 420px; justify-self: center; }
.product__art { width: min(76%, 380px); margin: 0 auto; }
.product--line { border-top: 1px solid var(--line); }
.more { display: flex; flex-direction: column; justify-content: center; max-width: var(--max); margin: 0 auto; padding: clamp(96px, 14vh, 140px) var(--gutter); }
.more h2 { margin-bottom: clamp(28px, 5vh, 48px); }
.more__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.more__list a { display: grid; gap: 8px; height: 100%; padding: 22px; border: 1px solid var(--line-2); border-radius: 22px; text-decoration: none; transition: border-color .35s var(--ease), transform .35s var(--ease); }
.more__list a:hover { border-color: var(--fg); transform: translateY(-4px); }
.more__list .art { width: 54%; margin: 6px auto 14px; }
.more__list strong { font-size: 22px; font-weight: 300; }
.more__list a > span:last-child { font-size: 14px; line-height: 1.45; color: var(--fg-soft); }
@media (min-width: 900px) {
  .product-hero { grid-template-columns: 1.1fr .9fr; }
  .product--line:nth-of-type(odd) .product__visual { order: 2; }
}

/* ------------------------------------------------- quiet background motion
   Only the newer sections have one, and each is a single soft element rather
   than a pattern, so it stays behind the content in light and dark mode. */
/* Advisory: a field of points drifting sideways as the routes are drawn */
.advise { position: relative; isolation: isolate; }
.advise::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, var(--line-2) 1px, transparent 1.6px) 0 0 / 44px 44px;
  background-position: calc(var(--p) * 130px) calc(var(--p) * -70px); opacity: .42;
}
/* Clients: one soft light that drifts across behind the name */
.clients__pin::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: calc(8% + var(--p) * 44%); top: 50%; width: min(70vw, 760px); aspect-ratio: 1.5;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--blue) 10%, transparent), transparent);
  transform: translateY(-50%);
}
/* Our products: a soft light on the floor under the front card, nothing behind the cards */
.deck__stage { position: relative; }
.deck__stage::after {
  content: ""; position: absolute; left: 50%; bottom: -3%; width: min(80%, 520px); height: 12%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--fg) 20%, transparent), transparent);
  transform: translateX(-50%) scaleX(calc(.75 + var(--p) * .5)); opacity: .8;
}

/* ---------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js .hero, .js .logo-scene { height: 100svh; }
  .js .deck, .js .reviews, .js .advise, .js .clients { height: auto; }
  .deck__pin, .reviews__pin, .advise__pin, .clients__pin { position: relative; height: auto; }
  .reviews__sky { height: 46vh; }
  .reviews__list { gap: 56px; }
  .review { grid-area: auto; opacity: 1; transform: none; }
  .stackcard { position: static; }
  .js .statement, .js .chapter, .js .products-band, .js .process, .js .closing--pinned { height: auto; }
  .statement__pin, .chapter__pin, .products-band__pin, .process__pin, .js .closing--pinned .closing__pin { position: relative; height: auto; min-height: 0; padding-block: clamp(72px, 12vh, 120px); }
  .js .process__track { display: grid; width: auto; transform: none; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 44px; padding-top: 44px; }
  .js .step { width: auto; padding-right: 0; }
}
