/* Ambergauge site. One light theme by decision (Tenis, 2026-10-01: "everything light").
   Tokens: ivory and charcoal from the v7 handoff; amber lives only in the mark.
   Visual-first redesign 2026-10-10: every page opens on a real picture or a live model, every section leads with a
   visual, the words are what a skimmer reads in five seconds. */

@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/Jost-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #F5F2EB;      /* warm ivory, the brand ground */
  --paper-2: #ECE7DC;    /* one tonal step */
  --ink: #201D1B;        /* charcoal, 15.0:1 on paper */
  --muted: #5C554E;      /* 6.6:1 on paper */
  --hair: rgb(32 29 27 / 0.16);
  --stone: #3A322B;
  --amber: #C2711F;      /* the mark's amber; never used for text */
  --night: #161412;      /* the ground under the films, and the scrim */

  --sans: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --gutter: 16px;
  --max: 1240px;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1240px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.55 var(--sans);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
::selection { background: rgb(194 113 31 / 0.25); }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--paper); }

.skip {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--ink); color: var(--paper); padding: var(--s2) var(--s4); z-index: 10;
}
.skip:focus { top: var(--s2); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------------------------------------------------------- type: display, h2, h3, lead, body, small/mono */
h1, h2, h3 { font-weight: 450; margin: 0; text-wrap: balance; }
h1 { font-size: 44px; line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: 32px; line-height: 1.08; letter-spacing: -0.015em; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -0.005em; }
@media (min-width: 768px) {
  h1 { font-size: clamp(56px, 6.4vw, 96px); line-height: 0.98; letter-spacing: -0.025em; }
  h2 { font-size: clamp(36px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -0.02em; }
}
p { margin: 0 0 var(--s4); max-width: 60ch; }
.lead { font-size: 20px; line-height: 1.45; max-width: 40ch; }
@media (min-width: 768px) { .lead { font-size: 22px; } }
.muted { color: var(--muted); }
.small { font-size: 16px; }
.mono, .tag { font-family: var(--mono); font-size: 14px; letter-spacing: 0; }
.tag { color: var(--muted); display: block; margin-bottom: var(--s3); }
.num { font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }

/* ---------------------------------------------------------------- header: the mark once, small */
.site-header { position: relative; z-index: 3; background: var(--paper); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s2) var(--s6); min-height: 72px; flex-wrap: wrap; }
.brand { display: block; text-decoration: none; padding: var(--s3) 0; }
.lockup { width: 168px; height: auto; }
@media (min-width: 768px) { .lockup { width: 196px; } .header-row { min-height: 84px; } }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s5); }
.site-nav a {
  display: inline-block; padding: var(--s3) 0; font-size: 17px; text-decoration: none;
  border-bottom: 1px solid transparent; line-height: 1.3;
}
.site-nav a:hover { border-bottom-color: var(--ink); }
.site-nav a[aria-current="page"] { font-weight: 500; border-bottom: 2px solid var(--ink); }
@media (max-width: 599px) {
  .header-row { min-height: 0; padding-top: var(--s2); gap: 0; }
  .site-nav { width: 100%; }
  .site-nav ul { gap: 0 var(--s4); justify-content: space-between; }
  .site-nav a { font-size: 16px; padding: 10px 0 12px; }
}

/* ---------------------------------------------------------------- buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); margin-top: var(--s6); }
.button {
  background: var(--ink); color: var(--paper); text-decoration: none;
  font: 500 17px/1.2 var(--sans); padding: 0 24px; border: 1px solid var(--ink);
  min-height: 52px; display: inline-flex; align-items: center;
}
.button:hover { background: #3a3532; }
.button:active { transform: translateY(1px); }
.textlink { font-size: 17px; padding: var(--s3) 0; display: inline-block; }
.on-dark, .on-dark a { color: var(--paper); }
.on-dark .button { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.on-dark .button:hover { background: #fff; }

figure { margin: 0; }
figcaption, .cap { margin-top: var(--s3); font-size: 15px; line-height: 1.45; color: var(--muted); max-width: 56ch; }
.ph { background: var(--paper-2); overflow: hidden; }

/* ---------------------------------------------------------------- hero: full-bleed picture, the headline on it */
.hero { position: relative; color: var(--paper); background: var(--night); min-height: 86svh; display: grid; align-items: end; overflow: hidden; }
@media (min-width: 768px) { .hero { min-height: min(88svh, 900px); } }
.hero-media { position: absolute; inset: 0; }
.hero-media picture, .hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media video { position: absolute; inset: 0; }
.hero-media::after {   /* scrim: the bottom-left, where the words sit; the work stays clear above */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(22 20 18 / 0.86) 0%, rgb(22 20 18 / 0.55) 34%, rgb(22 20 18 / 0) 64%),
              linear-gradient(to right, rgb(22 20 18 / 0.35) 0%, rgb(22 20 18 / 0) 55%);
}
.hero-copy { position: relative; z-index: 1; padding-top: var(--s10); padding-bottom: var(--s8); }
@media (min-width: 768px) { .hero-copy { padding-bottom: var(--s9); } }
.hero h1 { max-width: 11em; }
.hero .lead { margin-top: var(--s5); max-width: 34ch; color: rgb(245 242 235 / 0.92); }
.hero .actions { margin-top: var(--s6); }
.hero-foot { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; }
.hero-foot .wrap { display: flex; justify-content: flex-end; align-items: center; gap: var(--s4); padding-bottom: var(--s4); }
.hero-note { font-size: 14px; color: rgb(245 242 235 / 0.82); margin: 0; }
.film-toggle {
  font: 500 14px/1 var(--sans); color: var(--paper); background: rgb(22 20 18 / 0.5); border: 1px solid rgb(245 242 235 / 0.5);
  min-height: 44px; min-width: 64px; padding: 0 var(--s4); cursor: pointer;
}
.film-toggle:hover { background: rgb(22 20 18 / 0.75); }
.film-toggle[hidden] { display: none; }
@media (max-width: 767px) { .hero-note { display: none; } }

/* a hero on the page ground: a live model or a drawing instead of a photograph */
.hero-paper { padding-top: var(--s6); padding-bottom: var(--s5); }
@media (min-width: 768px) { .hero-paper { padding-top: var(--s8); padding-bottom: var(--s6); } }
.hero-paper h1 { max-width: 14em; }
.hero-paper .lead { margin-top: var(--s5); }

/* ---------------------------------------------------------------- sections */
.section { padding: var(--s8) 0; }
@media (min-width: 768px) { .section { padding: var(--s10) 0; } }
.section + .section:not(.section--quiet) { border-top: 1px solid var(--hair); }
.section--quiet { background: var(--paper-2); }
.head { margin-bottom: var(--s7); max-width: 46rem; }
.head .lead { margin-top: var(--s4); }
.more { margin: var(--s6) 0 0; }
.more a { font-size: 17px; }

.grid { display: grid; gap: var(--s6); }
@media (min-width: 900px) {
  .grid--2 { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .grid--vis { grid-template-columns: 7fr 5fr; gap: var(--s8); align-items: center; }
  .grid--vis.flip { grid-template-columns: 5fr 7fr; }
  .grid--vis.flip > :first-child { order: 2; }
}

/* ---------------------------------------------------------------- stand pen, interactive 3D (home)
   The still is the fallback and stays underneath; the canvas fades in over it once the model has rendered.
   touch-action: pan-y keeps a vertical swipe scrolling the page; a horizontal swipe or a press-and-hold drags. */
.stand3d-box { position: relative; aspect-ratio: 20 / 17; background: var(--paper); }
@media (min-width: 900px) { .stand3d-box { aspect-ratio: 10 / 9; } .stand3d-stage { top: -8%; } }
.stand3d-box picture, .stand3d-box img { display: block; width: 100%; height: 100%; }
.stand3d-box img { object-fit: contain; object-position: 50% 50%; transition: opacity .5s ease; }
.stand3d-stage { position: absolute; top: -3%; bottom: -3%; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); z-index: 1; }
@media (min-width: 900px) { .stand3d-stage { left: -11%; right: -11%; } }
.stand3d-canvas, .x3d-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity .5s ease; cursor: grab; touch-action: pan-y;
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.stand3d.is-3d .stand3d-canvas, .x3d.is-3d .x3d-canvas { opacity: 1; }
.stand3d.is-3d .stand3d-box img, .x3d.is-3d .x3d-box > picture img { opacity: 0; }
.stand3d.is-grabbing .stand3d-canvas, .x3d.is-grabbing .x3d-canvas { cursor: grabbing; }
.stand3d-canvas:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.stand3d-hint, .x3d-hint { display: none; }
.stand3d.is-3d .stand3d-hint, .x3d.is-3d .x3d-hint { display: inline; }
.hint-touch { display: none; }
@media (pointer: coarse) { .hint-fine { display: none; } .hint-touch { display: inline; } }
.stand3d figcaption { margin-top: var(--s4); }

/* the home pen section: the model large, three facts beside it */
.facts3 { list-style: none; margin: var(--s6) 0 0; padding: 0; border-top: 1px solid var(--hair); max-width: 30rem; }
.facts3 li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--hair); }
.facts3 b { font-weight: 500; }
.facts3 span { font-family: var(--mono); font-size: 15px; color: var(--muted); text-align: right; }

/* ---------------------------------------------------------------- exploded view (case study hero) */
.x3d-box { position: relative; aspect-ratio: 3 / 4; max-height: 78svh; margin: 0 auto; background: var(--paper); }
@media (min-width: 600px) { .x3d-box { aspect-ratio: 16 / 9; } }
@media (min-width: 1100px) { .x3d-box { aspect-ratio: 21 / 9; } }
.x3d-box > picture, .x3d-box > picture img { display: block; width: 100%; height: 100%; }
.x3d-box > picture img { object-fit: contain; transition: opacity .5s ease; }
.x3d-stage { position: absolute; inset: 0; z-index: 1; }
.x3d-tags { position: absolute; inset: 0; pointer-events: none; transition: opacity .3s ease; }
.x3d-tag { position: absolute; left: 0; top: 0; width: 0; height: 0; font-size: 15px; line-height: 1.3; white-space: nowrap; }
.x3d-tag b, .x3d-tag span { display: block; width: max-content; transform: translateX(-50%); position: relative; }
.x3d-tag b { font-weight: 500; }
.x3d-tag span { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.x3d-tag.is-up b { top: -40px; }
.x3d-tag.is-up span { top: -40px; }
@media (max-width: 899px) { .x3d-tags { display: none; } }
.x3d-legend { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s5); font-size: 16px; border-top: 1px solid var(--hair); padding-top: var(--s4); }
.x3d-legend span { display: block; font-family: var(--mono); font-size: 13px; color: var(--muted); }
@media (min-width: 900px) { .x3d.is-3d .x3d-legend { display: none; } }
.x3d-controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s6); margin-top: var(--s4); }
.x3d-controls label { font-size: 16px; display: flex; align-items: center; gap: var(--s4); flex: 1 1 300px; max-width: 520px; }
.x3d-controls .x3d-hint { font-size: 15px; color: var(--muted); }
.x3d-controls { visibility: hidden; }
.x3d.is-3d .x3d-controls { visibility: visible; }

/* range inputs: a hairline track and a square thumb, 44 px tall to touch */
input[type="range"] { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 44px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--ink); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; background: var(--paper); border: 2px solid var(--ink); border-radius: 0; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; background: var(--paper); border: 2px solid var(--ink); border-radius: 0; }
input[type="range"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------------------------------------------------------------- four stages, each a picture */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6) var(--s4); }
@media (min-width: 1024px) { .stages { grid-template-columns: repeat(4, 1fr); gap: var(--s5); } }
.stages li { display: flex; flex-direction: column; }
.stage-vis { aspect-ratio: 4 / 5; background: var(--paper-2); overflow: hidden; position: relative; }
.stage-vis img { width: 100%; height: 100%; object-fit: cover; }
.stages h3 { margin-top: var(--s4); }
.stages p { margin: var(--s1) 0 0; font-size: 16px; line-height: 1.4; color: var(--muted); }
.stage-vis .drawing { position: absolute; left: 4%; top: 6%; width: 92%; height: 88%; }

/* the measured reading, drawn: a window opening and two numbers */
.reading { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--s4); }
.reading svg { width: 100%; height: 100%; }
.reading .r-frame { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.reading .r-bar { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.reading .r-dim { stroke: var(--ink); stroke-width: 1.5; fill: none; }
.reading .r-arr { fill: var(--ink); }
.reading text { font-family: var(--sans); fill: var(--ink); }
.reading .r-big { font-size: 44px; font-weight: 450; letter-spacing: -0.02em; }
.reading .r-sub { font-family: var(--mono); font-size: 14px; fill: var(--muted); }

/* ---------------------------------------------------------------- the drawing that draws itself */
.drawing path { fill: none; stroke: var(--ink); stroke-linecap: square; }
.drawing .d-arr { fill: var(--ink); stroke: none; }
.drawing text { fill: var(--ink); font-family: "DejaVu Sans", "Verdana", "Arial", sans-serif; }
.drawing .d-hat { stroke-width: 0.55; }
/* armed by site.js only when it will animate (the drawing is whole without JavaScript or with reduced motion) */
/* class selectors, not path[pathLength]: Chrome did not restyle the SVG paths when is-drawn was added, so the lines never drew (found 2026-10-16) */
.drawing.is-armed :is(.d-out, .d-hat, .d-dim) { stroke-dasharray: 1; stroke-dashoffset: 1; }
.drawing.is-armed .d-arr, .drawing.is-armed text, .drawing.is-armed .d-cl { opacity: 0; }
.drawing.is-drawn :is(.d-out, .d-hat, .d-dim) { stroke-dashoffset: 0; transition: stroke-dashoffset var(--t, .9s) cubic-bezier(.45, 0, .2, 1) var(--d, 0s); }
.drawing.is-drawn .d-arr, .drawing.is-drawn text, .drawing.is-drawn .d-cl { opacity: 1; transition: opacity .5s ease var(--d, 0s); }
.dwg { background: #FBFAF6; border: 1px solid var(--hair); padding: var(--s5); }
.dwg .drawing { width: 100%; height: auto; }
.dwg-block { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; margin-top: var(--s4); border-top: 1px solid var(--ink); }
.dwg-block div { padding: var(--s2) var(--s5) 0 0; }
.dwg-block span { display: block; font-size: 13px; color: var(--muted); }
.dwg-block b { font-family: var(--mono); font-weight: 400; font-size: 14px; }
@media (max-width: 599px) { .dwg { padding: var(--s3); } .dwg-block { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- fit demo (H7/r6) */
.fit { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 900px) { .fit { grid-template-columns: 6fr 5fr; gap: var(--s8); } }
.fit-vis { background: #FBFAF6; border: 1px solid var(--hair); }
.fit-vis svg { width: 100%; height: auto; }
.fit-vis .f-disc { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.5; }
.fit-vis .f-pin { fill: url(#fit-hatch); stroke: var(--ink); stroke-width: 1.5; }
.fit-vis .f-over { fill: var(--ink); }
.fit-vis .f-axis { stroke: var(--ink); stroke-width: 0.8; stroke-dasharray: 10 3 2 3; }
.fit-vis .f-dim { stroke: var(--ink); stroke-width: 1; }
.fit-vis text { font-family: var(--mono); font-size: 13px; fill: var(--muted); }
.fit-read { font-size: clamp(48px, 5vw, 76px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin: var(--s3) 0 var(--s2); }
.fit-read small { font-size: 0.4em; letter-spacing: 0; }
.fit-ctl { margin-top: var(--s5); display: grid; gap: var(--s1); max-width: 30rem; }
.fit-ctl label { display: block; font-size: 16px; }
.fit-ctl label > span { display: flex; justify-content: space-between; gap: var(--s4); }
.fit-ctl input { width: 100%; }
.fit-ctl output { font-family: var(--mono); font-size: 15px; }
.fit-note { font-size: 15px; color: var(--muted); margin-top: var(--s4); }
.js-only { display: none; }
.js .js-only { display: block; }

/* ---------------------------------------------------------------- full-bleed photograph with a line on it */
.bleed { position: relative; color: var(--paper); background: var(--night); }
.bleed > picture img { width: 100%; height: 76svh; min-height: 480px; max-height: 860px; object-fit: cover; }
.bleed::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgb(22 20 18 / 0.82) 0%, rgb(22 20 18 / 0.4) 30%, rgb(22 20 18 / 0) 55%); }
.bleed-copy { position: absolute; inset: auto 0 0 0; padding-bottom: var(--s7); z-index: 1; }
.bleed h2 { max-width: 13em; }
.bleed .cap { color: rgb(245 242 235 / 0.86); margin: var(--s3) 0 0; }

/* ---------------------------------------------------------------- price */
.price-sec { display: grid; gap: var(--s5); align-items: end; }
@media (min-width: 900px) { .price-sec { grid-template-columns: 7fr 5fr; gap: var(--s8); } }
.price-big { font-size: clamp(96px, 16vw, 220px); line-height: 0.84; letter-spacing: -0.05em; font-weight: 400; margin: 0; font-variant-numeric: tabular-nums; }
.price-sec h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.005em; margin-bottom: var(--s3); }

/* ---------------------------------------------------------------- person */
.person { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 900px) { .person { grid-template-columns: 5fr 7fr; gap: var(--s8); } }
.person figure { max-width: 480px; }
.person img { width: 100%; height: auto; }

/* ---------------------------------------------------------------- services: a stage per screen */
.svc { padding: var(--s8) 0; border-top: 1px solid var(--hair); scroll-margin-top: var(--s4); }
.svc:first-of-type { border-top: 0; }
@media (min-width: 768px) { .svc { padding: var(--s9) 0; } }
.svc-vis img { width: 100%; height: auto; }
.svc .price { font-size: clamp(44px, 4.6vw, 68px); line-height: 1; letter-spacing: -0.035em; margin: var(--s4) 0 var(--s2); font-variant-numeric: tabular-nums; }
.svc .price-words { font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; margin: var(--s4) 0 var(--s2); }
.svc .price-note { font-size: 16px; color: var(--muted); }
.ticks { list-style: none; margin: var(--s5) 0 0; padding: 0; border-top: 1px solid var(--hair); }
.ticks li { padding: var(--s3) 0; border-bottom: 1px solid var(--hair); font-size: 17px; line-height: 1.4; }
.method { width: 100%; border-collapse: collapse; margin-top: var(--s5); font-size: 16px; }
.method th, .method td { text-align: left; vertical-align: top; padding: var(--s3) var(--s4) var(--s3) 0; border-bottom: 1px solid var(--hair); }
.method th { font-weight: 500; }
.method td.r { text-align: right; padding-right: 0; font-family: var(--mono); font-size: 15px; }
.method caption { text-align: left; font-size: 14px; font-family: var(--mono); color: var(--muted); padding-bottom: var(--s2); }
.stage-nav { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgb(245 242 235 / 0.4); }
@media (min-width: 768px) { .stage-nav { grid-template-columns: repeat(4, 1fr); } }
.stage-nav a { display: flex; flex-direction: column; gap: 2px; padding: var(--s3) var(--s4) var(--s3) 0; text-decoration: none; min-height: 44px; }
.stage-nav a:hover b { text-decoration: underline; }
.stage-nav b { font-weight: 500; font-size: 17px; }
.stage-nav span { font-family: var(--mono); font-size: 14px; opacity: .85; }

/* ---------------------------------------------------------------- how it works: the line of steps */
.line { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--ink); }
@media (min-width: 900px) { .line { grid-template-columns: repeat(5, 1fr); } }
.line li { padding: var(--s4) 0 var(--s5); border-bottom: 1px solid var(--hair); }
@media (min-width: 900px) {
  .line li { border-bottom: 0; border-right: 1px solid var(--hair); padding: var(--s5) var(--s5) 0 0; }
  .line li + li { padding-left: var(--s5); }
  .line li:last-child { border-right: 0; }
}
.line .ph { aspect-ratio: 4 / 3; margin-bottom: var(--s4); position: relative; }
.line .ph img { width: 100%; height: 100%; object-fit: cover; }
.line h3 { font-size: 20px; }
.line p { margin: var(--s2) 0 0; font-size: 16px; line-height: 1.4; }
.line .tag { margin-bottom: var(--s2); }

/* working hours, drawn on one UTC day (SVG bars: the page CSP allows no style attributes) */
.hours-row { display: grid; grid-template-columns: 9em 1fr; align-items: center; gap: var(--s4); padding: var(--s2) 0; }
.hours-row b { font-weight: 500; font-size: 16px; }
.hours-row b span { display: block; font-weight: 400; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.hours-track { width: 100%; height: 30px; background: repeating-linear-gradient(to right, var(--hair) 0 1px, transparent 1px 25%); border-right: 1px solid var(--hair); }
.hours-track rect { fill: var(--muted); }
.hours-row--is .hours-track rect { fill: var(--ink); }
.hours-axis { display: grid; grid-template-columns: 9em 1fr; gap: var(--s4); }
.hours-axis div { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; color: var(--muted); }
@media (max-width: 599px) { .hours-row, .hours-axis { grid-template-columns: 6.5em 1fr; gap: var(--s3); } .hours-row b { font-size: 15px; } }
.chips { list-style: none; margin: var(--s4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips li { font-family: var(--mono); font-size: 14px; color: var(--ink); }
.chips { gap: var(--s1) var(--s5); }

/* ---------------------------------------------------------------- work */
.case-tile { display: grid; gap: var(--s5); text-decoration: none; align-items: center; }
@media (min-width: 900px) { .case-tile { grid-template-columns: 7fr 5fr; gap: var(--s8); } }
.case-tile .ph { aspect-ratio: 4 / 3; background: var(--paper); }
.case-tile img { width: 100%; height: 100%; object-fit: contain; }
.case-tile h2 { text-decoration: none; }
.case-tile:hover h2, .case-tile:focus-visible h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.case-tile .go { display: inline-block; margin-top: var(--s4); font-size: 17px; text-decoration: underline; }
.status { display: block; font-family: var(--mono); font-size: 14px; color: var(--muted); margin-bottom: var(--s3); }

/* error by where the scale comes from (log axis, 0.1 to 100 mm; SVG bars, the CSP allows no style attributes) */
.sc-row { display: grid; grid-template-columns: 1fr; gap: var(--s2); padding: var(--s3) 0; border-bottom: 1px solid var(--hair); }
@media (min-width: 768px) { .sc-row { grid-template-columns: 17em 1fr; gap: var(--s5); align-items: center; } }
.sc-row b { font-weight: 500; font-size: 17px; }
.sc-row b span { display: block; font-weight: 400; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.sc-track { width: 100%; height: 24px; background: repeating-linear-gradient(to right, var(--hair) 0 1px, transparent 1px calc(100% / 3)); border-right: 1px solid var(--hair); }
.sc-track rect { fill: var(--muted); }
.sc-row--ok .sc-track rect { fill: var(--ink); }
.sc-axis { display: grid; grid-template-columns: 1fr; padding-top: var(--s2); }
@media (min-width: 768px) { .sc-axis { grid-template-columns: 17em 1fr; gap: var(--s5); } }
.sc-ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.sc-note { font-size: 15px; color: var(--muted); margin-top: var(--s5); }

/* three parts */
.trio { display: grid; gap: var(--s5); grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio .ph { aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--paper); }
.trio img { width: 100%; height: 100%; object-fit: cover; }
.trio h3 { margin-top: var(--s4); font-size: 20px; }
.trio p { font-size: 16px; color: var(--muted); margin: var(--s1) 0 0; }
.trio .ph-empty { border: 0; background: var(--paper-2); font-family: var(--mono); font-size: 14px; color: var(--muted); text-align: center; padding: var(--s4); }
@media (max-width: 899px) { .trio > :last-child { grid-column: 1 / -1; } .trio > :last-child .ph { aspect-ratio: 2 / 1; } }

/* revisions: a line of letters, one open at a time */
.revs { list-style: none; margin: 0; padding: 0; }
.revs li { border-top: 1px solid var(--hair); padding: var(--s3) 0; display: grid; grid-template-columns: 3em 1fr; gap: var(--s4); }
.rev-key { font: 450 28px/1 var(--sans); background: none; border: 0; padding: 0; color: var(--ink); text-align: left; }
.rev-body p { margin: 0; }
.rev-body .why { color: var(--muted); font-size: 16px; margin-top: var(--s1); }
.rev-group { font-family: var(--mono); font-size: 14px; color: var(--muted); margin: var(--s5) 0 var(--s2); }
.js .revs { display: flex; flex-wrap: wrap; border-bottom: 2px solid var(--ink); }
.js .revs li { display: contents; }
.js .rev-key { cursor: pointer; min-width: 52px; min-height: 56px; padding: 0 var(--s3); font-size: 28px; color: var(--muted); border-bottom: 4px solid transparent; margin-bottom: -2px; text-align: center; }
.js .rev-key:hover { color: var(--ink); }
.js .rev-key[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.js .rev-body { display: none; }
.rev-panel { min-height: 7em; padding-top: var(--s5); max-width: 46rem; }
.rev-panel .lead { margin-bottom: var(--s2); max-width: 46ch; }
.rev-panel .why { color: var(--muted); }

/* measured figures */
.figs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s6) var(--s5); }
@media (min-width: 768px) { .figs { grid-template-columns: repeat(3, 1fr); } }
.figs li { border-top: 2px solid var(--ink); padding-top: var(--s4); }
.fig-big { font-size: clamp(48px, 5vw, 76px); line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.fig-big small { font-size: 0.4em; letter-spacing: 0; }
.figs p { margin: var(--s3) 0 0; font-size: 16px; line-height: 1.4; }
.figs .tag { margin: var(--s2) 0 0; }
.figs--sim { margin-top: var(--s7); }
.figs--sim li { border-top: 1px solid var(--muted); }
.figs--sim .fig-big { font-size: clamp(36px, 3.4vw, 52px); color: var(--muted); }
.sub-h { font-size: 20px; margin: var(--s7) 0 var(--s4); }
details.more-data { margin-top: var(--s7); border-top: 1px solid var(--hair); }
details.more-data summary { cursor: pointer; padding: var(--s4) 0; font-size: 17px; min-height: 44px; }
table.data { width: 100%; border-collapse: collapse; font-size: 16px; margin: 0 0 var(--s5); }
table.data caption { text-align: left; font-weight: 500; padding-bottom: var(--s3); }
table.data th, table.data td { text-align: left; vertical-align: top; padding: var(--s3) var(--s4) var(--s3) 0; border-bottom: 1px solid var(--hair); }
table.data thead th { font-weight: 500; color: var(--muted); font-size: 15px; border-bottom-color: var(--ink); }
table.data td.r, table.data th.r { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 599px) {
  table.data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.data tr { display: grid; grid-template-columns: 1fr auto; gap: var(--s1) var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--hair); }
  table.data td { display: block; padding: 0; border: 0; }
  table.data td:first-child { grid-column: 1 / -1; }
  table.data td.r { text-align: left; white-space: normal; }
  table.data td.r + td.r { text-align: right; color: var(--muted); }
}

.breadcrumb { font-size: 16px; color: var(--muted); margin-bottom: var(--s4); }
.breadcrumb a { color: var(--muted); }

/* ---------------------------------------------------------------- contact */
.contact-hero { display: grid; gap: var(--s6); align-items: end; padding-top: var(--s5); padding-bottom: var(--s8); }
@media (min-width: 900px) { .contact-hero { grid-template-columns: 5fr 7fr; gap: var(--s8); padding-top: var(--s7); padding-bottom: var(--s9); } }
.contact-hero figure img { width: 100%; height: auto; }
.contact-big { list-style: none; margin: var(--s6) 0 0; padding: 0; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.15; letter-spacing: -0.015em; }
.contact-big a { display: inline-block; padding: var(--s1) 0; }
.contact-big .k { display: block; font-family: var(--mono); font-size: 14px; color: var(--muted); letter-spacing: 0; margin-top: var(--s5); }
.send { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); }
@media (min-width: 768px) { .send { grid-template-columns: repeat(3, 1fr); } }
.send li { border-top: 2px solid var(--ink); padding-top: var(--s4); }
.send b { display: block; font-weight: 500; font-size: 20px; margin-bottom: var(--s2); }
.send span { font-size: 16px; color: var(--muted); }

/* ---------------------------------------------------------------- 404 */
.lost { display: grid; gap: var(--s6); align-items: center; padding-top: var(--s6); padding-bottom: var(--s9); }
@media (min-width: 900px) { .lost { grid-template-columns: 5fr 7fr; gap: var(--s8); } }
.lost img { width: 100%; height: auto; max-width: 460px; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--night); color: var(--paper); padding: var(--s8) 0 var(--s7); font-size: 16px; }
.site-footer a { color: var(--paper); }
.footer-grid { display: grid; gap: var(--s5) var(--s6); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr auto; align-items: end; } }
.footer-cta { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 var(--s2); }
.footer-line { margin: 0; color: rgb(245 242 235 / 0.8); }
.footer-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s5); }
.footer-contact a, .footer-contact li { display: inline-block; padding: 12px 0; }
.footer-note { margin: var(--s5) 0 0; padding-top: var(--s5); border-top: 1px solid rgb(245 242 235 / 0.2); color: rgb(245 242 235 / 0.72); grid-column: 1 / -1; font-size: 15px; max-width: none; }

/* ---------------------------------------------------------------- motion */
.ag-m, .ag-frag { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-nav, .skip, .film-toggle, .x3d-controls { display: none; }
  body { background: #fff; }
  .hero, .bleed, .site-footer { background: #fff; color: var(--ink); }
}
.ph-43 { aspect-ratio: 4 / 3; position: relative; }
.mt-5 { margin-top: var(--s5); }
.line .ph .drawing { position: absolute; left: 4%; top: 4%; width: 92%; height: 92%; }
.section--flush { padding-top: 0 !important; }
h2 + .lead, h1 + .lead, h2 + p { margin-top: var(--s4); }

/* ---------------------------------------------------------------- home: the scroll-driven 3D stage (pass 2)
   One sticky stage the height of the screen; the four text steps scroll over it. The still is the first paint and
   the fallback; the canvas fades in over it. Wide screens: words left, the model right. Phones: the model in the
   upper part, the words on a paper panel at the bottom. Steps let pointer events through to the model, except the
   words themselves. */
.journey { position: relative; }
.j-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.j-still { position: absolute; top: 4%; bottom: 4%; right: 0; width: 56%; }
.j-still img { width: 100%; height: 100%; object-fit: contain; transition: opacity .6s ease; }
.j-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s ease;
  cursor: grab; touch-action: pan-y; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
}
.journey.is-3d .j-canvas { opacity: 1; }
.journey.is-3d .j-still img, .gl3d .j-still img { opacity: 0; }
.journey.is-grabbing .j-canvas { cursor: grabbing; }
.j-steps { position: relative; margin-top: -100vh; margin-top: -100svh; pointer-events: none; }
.j-step { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.j-step + .j-step { min-height: 110vh; min-height: 110svh; }
.j-step .wrap { width: 100%; }
.j-copy { max-width: 30rem; pointer-events: auto; }
.j-copy h2 { max-width: 12em; }
.j-copy .lead { margin-top: var(--s4); }
.j-step--hero h1 { max-width: 9em; line-height: 1.04; }
.j-hint { display: none; margin: var(--s6) 0 0; font: 400 14px/1.4 var(--mono); color: var(--muted); }
.journey.is-3d .j-hint, .gl3d .j-hint { display: block; }
/* iOS only (depth.js tiltButton): the one tap that lets the phone's tilt move the view */
.depth-tilt {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--s2); padding: 0; border: 0; background: none;
  font: 400 14px/1.4 var(--mono); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.depth-tilt:disabled { color: var(--muted); }
@media (max-width: 899px) {
  .j-still { top: 2%; bottom: 40%; left: 0; width: auto; }
  .j-step { align-items: flex-end; padding-bottom: var(--s6); }
  .j-copy { background: rgb(245 242 235 / 0.94); padding: var(--s5) var(--s5) var(--s5) 0; box-shadow: -40px 0 0 rgb(245 242 235 / 0.94); }
  .j-step--hero h1 { font-size: clamp(36px, 10vw, 48px); }
  .j-step--hero .lead { font-size: 17px; }
  .j-step--hero .actions { margin-top: var(--s5); }
  .j-hint { margin-top: var(--s4); }
}

/* labels of the exploded parts: a hairline tick, the part, the material in mono */
.j-tags { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.j-tag { position: absolute; left: 0; top: 0; padding-left: 22px; white-space: nowrap; line-height: 1.25; }
.j-tag::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; border-top: 1px solid var(--ink); }
.j-tag.is-left { padding: 0 22px 0 0; text-align: right; }
.j-tag.is-left::before { left: auto; right: 0; }
.j-tag b { display: block; font-weight: 500; font-size: 15px; }
.j-tag span { display: block; font: 400 12.5px/1.3 var(--mono); color: var(--muted); }
@media (max-width: 599px) { .j-tag b { font-size: 13px; } .j-tag span { font-size: 12px; } .j-tag { padding-left: 16px; } .j-tag.is-left { padding-right: 16px; } .j-tag::before { width: 10px; } }

/* the annotation layer: hairlines like the drawing sheet, a paper halo under each so it reads over the hatching */
.j-ann { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.j-ann g { visibility: hidden; }
.j-ann path { fill: none; vector-effect: non-scaling-stroke; }
.j-ann .a-halo { stroke: var(--paper); stroke-width: 5; stroke-linejoin: round; opacity: 0.85; }
.j-ann .a-line { stroke: var(--ink); stroke-width: 1; }
.j-ann .a-chain { stroke-dasharray: 14 3 2 3; }
.j-ann .a-dot { fill: var(--ink); stroke: var(--paper); stroke-width: 1.5; }

/* the lean, riding the arc */
.j-gauge { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; white-space: nowrap; }
.j-gauge-n { display: block; font: 300 clamp(40px, 4.6vw, 64px)/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.j-gauge-l { display: block; font: 400 13px/1.4 var(--mono); color: var(--muted); }
.j-gauge.is-left { text-align: right; }
.j-fit { visibility: hidden; }

/* where you are: the four scenes on the stage's edge, each a link to its step (wide screens) */
.j-rail { display: none; }
@media (min-width: 900px) {
  .j-rail { display: flex; gap: var(--s5); position: absolute; left: max(var(--gutter), calc((100% - var(--max)) / 2)); bottom: var(--s6); margin: 0; padding: 0; list-style: none; z-index: 2; }
  .j-rail a { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 44px; justify-content: center; text-decoration: none; font: 400 13px/1 var(--mono); color: var(--muted); }
  .j-rail a::after { content: ""; width: 16px; border-top: 1px solid currentColor; transition: width .3s ease; }
  .j-rail a:hover { color: var(--ink); }
  .journey[data-scene="0"] .j-rail li:nth-child(1) a, .journey[data-scene="1"] .j-rail li:nth-child(2) a,
  .journey[data-scene="2"] .j-rail li:nth-child(3) a, .journey[data-scene="3"] .j-rail li:nth-child(4) a { color: var(--ink); }
  .journey[data-scene="0"] .j-rail li:nth-child(1) a::after, .journey[data-scene="1"] .j-rail li:nth-child(2) a::after,
  .journey[data-scene="2"] .j-rail li:nth-child(3) a::after, .journey[data-scene="3"] .j-rail li:nth-child(4) a::after { width: 40px; }
  .j-step + .j-step .j-copy { max-width: 26rem; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* the workshop film, lower on the page */
.bleed--film { height: 80vh; height: 80svh; min-height: 480px; max-height: 900px; overflow: hidden; }
.bleed--film .bleed-copy { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4) var(--s6); }
.bleed--film .bleed-copy > :not(.film-toggle) { flex: 1 1 20rem; }
.bleed--film h2 { flex-basis: 100%; }

/* sound toggle in the header: four bars that move only while sound is on */
.snd { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--muted); font: 400 14px/1 var(--mono); cursor: pointer; }
.snd[hidden] { display: none; }
.snd:hover, .snd.is-on { color: var(--ink); }
.snd-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.snd-bars i { display: block; width: 2px; height: 4px; background: currentColor; transform-origin: bottom; }
.snd.is-on .snd-bars i { animation: snd 1.1s ease-in-out infinite alternate; }
.snd.is-on .snd-bars i:nth-child(2) { animation-delay: -.35s; } .snd.is-on .snd-bars i:nth-child(3) { animation-delay: -.7s; } .snd.is-on .snd-bars i:nth-child(4) { animation-delay: -.2s; }
@keyframes snd { from { height: 3px; } to { height: 14px; } }
@media (prefers-reduced-motion: reduce) { .snd.is-on .snd-bars i { animation: none; height: 9px; } }
/* phones: no sound toggle (2026-10-16, calm header: the mark and the four links only; the scroll sounds stay off) */
@media (max-width: 599px) { .snd, .snd[hidden] { display: none; } }
.j-fit { pointer-events: none; padding: 0; text-align: right; }
.j-fit::before { display: none; }
.j-fit b { font-size: 17px; }

/* ---------------------------------------------------------------- phones, calm pass (2026-10-16)
   Tenis: "on the phone it looks too crowded and messy". The model gets its own band at the top of the screen and
   the words scroll below it, never over it (journey.src.js frames the model to the band); one idea per screen;
   the second telling of the press fit (the slider section) and the stage pictures stay on wide screens. */
@media (max-width: 899px) {
  .j-stage { height: 54vh; height: 54svh; z-index: 2; background: var(--paper); box-shadow: 0 1px 0 var(--hair); }
  .journey:not(.is-3d) .j-stage { box-shadow: none; }
  .j-still { top: 3%; bottom: 3%; left: 0; right: 0; width: auto; }
  .j-steps { margin-top: 0; z-index: 1; }
  .j-step, .j-step + .j-step { display: block; min-height: 0; padding: var(--s5) 0 var(--s6); }
  .j-step + .j-step { min-height: 60vh; min-height: 60svh; }
  .j-step:last-child { min-height: 46vh; min-height: 46svh; }
  .j-copy { background: none; padding: 0; box-shadow: none; }
  .j-copy .tag { display: none; }
  .j-copy .lead { margin-top: var(--s3); }
  .j-step--hero .actions { margin-top: var(--s5); }
  .j-hint, .journey.is-3d .j-hint, .gl3d .j-hint { display: none; }
  .depth-tilt { margin-top: var(--s3); }
  .home-fit { display: none; }
  .stages { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--hair); }
  .stages li { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--hair); }
  .stages .stage-vis { display: none; }
  .stages h3 { margin: 0; font-size: 18px; }
  .stages p { margin: 0; }
  .person figure { max-width: none; }
  .person img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
  .contact-hero figure img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 22%; }
  /* services: the tick list already ends on a hairline; a second rule just under it read as an empty row */
  .svc { border-top: 0; }
}
/* the contact page is the call to action; the footer does not repeat it */
.contact .footer-cta, .contact .footer-line { display: none; }
/* the revision keys stay on one line on a phone */
@media (max-width: 599px) {
  .js .revs { flex-wrap: nowrap; }
  .js .rev-key { flex: 1 1 0; min-width: 0; padding: 0; font-size: 24px; }
}
/* How it works on a phone: each step a row, a small picture beside the words, not a screen-high picture per step */
@media (max-width: 899px) {
  .line li { display: grid; grid-template-columns: 6.5rem 1fr; column-gap: var(--s4); align-items: start; }
  .line .ph { grid-row: 1 / span 4; margin: 0; aspect-ratio: 1 / 1; background: var(--paper-2); overflow: hidden; }
  .line .ph .reading svg { width: 100%; height: 100%; }
  .line .tag, .line h3, .line p { grid-column: 2; }
  .line .tag { margin: 0; }
  .line h3 { font-size: 18px; }
}

/* ---------------------------------------------------------------- home scene 1: sketch it, spin it, change it
   Without WebGL: the copy, the range and the drawing, all working (site.js). With it: the solid beside the drawing,
   and unless motion is reduced a sticky stage the scroll plays (.sk-run below it is the scroll it takes). */
.sk { position: relative; padding: var(--s9) 0 var(--s6); }
.sk-grid { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 900px) { .sk-grid { grid-template-columns: 5fr 7fr; gap: var(--s8); } }
.sk-steps { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; gap: var(--s2); counter-reset: sk; }
.sk-steps li { counter-increment: sk; display: flex; align-items: baseline; gap: var(--s3); font-size: 18px; transition: color .3s; }
.sk-steps li::before { content: counter(sk); font: 400 14px/1 var(--mono); color: var(--muted); width: 1.2em; }
.sk.is-3d .sk-steps li { color: var(--muted); }
.sk.is-3d[data-step="1"] li[data-s="1"], .sk.is-3d[data-step="2"] li[data-s="2"], .sk.is-3d[data-step="3"] li[data-s="3"] { color: var(--ink); }
.sk-ctl { display: block; margin-top: var(--s6); max-width: 30rem; font-size: 16px; }
.sk-ctl > span { display: flex; justify-content: space-between; gap: var(--s4); }
.sk-ctl output { font-family: var(--mono); font-size: 15px; }
.sk-ctl input { width: 100%; }
.sk-ctl .sk-ends { font: 400 13px/1 var(--mono); color: var(--muted); margin-top: var(--s1); }
.sk-read { margin: var(--s3) 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--s4) var(--s6); max-width: 30rem; }
.sk-read div { border-top: 1px solid var(--hair); padding-top: var(--s2); }
.sk-read dt { font-size: 14px; color: var(--muted); }
.sk-read dd { margin: 2px 0 0; font-family: var(--mono); font-size: 17px; font-variant-numeric: tabular-nums; }
.sk-read .sk-big { grid-column: 1 / -1; }
.sk-read .sk-big dd { font-family: var(--sans); font-size: clamp(44px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.03em; margin-top: var(--s1); }
.sk-vis { display: grid; gap: var(--s4); min-width: 0; }
.sk-3d { display: none; position: relative; min-height: 0; }
.sk.is-3d .sk-3d { display: block; aspect-ratio: 4 / 3; }
.sc-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.sk .sc-canvas { touch-action: pan-y; cursor: grab; }
.sk.is-grabbing .sc-canvas { cursor: grabbing; }
.sk-dwg-box { background: #FBFAF6; border: 1px solid var(--hair); }
.sk.is-3d .sk-dwg-box { width: 100%; }   /* the drawing spans the solid's column: one figure, two views */
.sk-dwg { display: block; width: 100%; height: auto; }
.sk-dwg pattern path { stroke: var(--ink); stroke-width: 0.8; }
.sk-dwg .s-tab { stroke: var(--ink); stroke-width: 1.2; }
.sk-dwg .s-sec { stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.sk-dwg .s-disc { fill: url(#sk-h1); }
.sk-dwg .s-ins { fill: url(#sk-h2); }
.sk-dwg .s-pad { fill: var(--ink); }
.sk-dwg .s-ax { stroke: var(--ink); stroke-width: 0.8; stroke-dasharray: 12 3 2 3; }
.sk-dwg .s-slip { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 3; }
.sk-dwg .s-tip { stroke: var(--amber); stroke-width: 2.5; }
.sk-dwg .s-piv { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.sk-dwg .s-dim { stroke: var(--ink); stroke-width: 1; }
.sk-dwg .s-arr { fill: var(--ink); }
.sk-dwg text { font-family: var(--mono); font-size: 19px; fill: var(--ink); }
.sk-note { font-size: 15px; color: var(--muted); max-width: 52ch; margin: var(--s6) 0 0; }
@media (prefers-reduced-motion: no-preference) and (min-height: 600px) {
  .sk.is-tall { padding: 0 0 var(--s6); }
  .sk.is-tall .sk-stage { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }   /* grows rather than spill on a short screen */
  .sk.is-tall .sk-run { height: 170vh; height: 170svh; }
  .sk.is-tall .sk-stage > .wrap { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) and (min-height: 600px) and (min-width: 900px) {
  .sk.is-tall.is-3d .sk-vis { height: min(82vh, 860px); height: min(82svh, 860px); grid-template-rows: minmax(0, 1fr) auto; }
  .sk.is-tall.is-3d .sk-3d { aspect-ratio: auto; }
}
/* phones: one column, the solid and the drawing between the words and the control; in the sticky stage the tag goes
   and the steps run on one line, so the whole scene fits one screen */
@media (max-width: 899px) {
  .sk-copy { display: contents; }
  .sk-grid { gap: var(--s4); }
  .sk-vis { order: 1; }
  .sk-ctl { order: 2; margin-top: 0; }
  .sk-read { order: 3; margin-top: 0; }
  .sk.is-3d .sk-3d { aspect-ratio: 16 / 9; }
  .sk.is-3d .sk-dwg-box { width: 100%; }
}
@media (max-width: 899px) and (prefers-reduced-motion: no-preference) and (min-height: 600px) {
  .sk.is-tall .tag { display: none; }
  .sk.is-tall h2 { font-size: 28px; }
  .sk.is-tall .sk-steps { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); margin-top: calc(-1 * var(--s2)); }
  .sk.is-tall .sk-steps li { font-size: 15px; gap: var(--s2); }
  /* the 3D plays the steps, so only the step on screen is named */
  .sk.is-tall.is-3d .sk-steps li { display: none; }
  .sk.is-tall.is-3d .sk-steps li::before { content: attr(data-s); }   /* hidden items do not count */
  .sk.is-tall.is-3d[data-step="1"] li[data-s="1"], .sk.is-tall.is-3d[data-step="2"] li[data-s="2"], .sk.is-tall.is-3d[data-step="3"] li[data-s="3"] { display: flex; }
  .sk.is-tall.is-3d .sk-3d { aspect-ratio: auto; height: 25vh; height: 25svh; }
  .sk.is-tall .sk-read { gap: var(--s2) var(--s4); }
  .sk.is-tall .sk-read .sk-big { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); }
  .sk.is-tall .sk-read .sk-big dd { font-size: 36px; }
  .sk.is-tall .sk-read { grid-template-columns: 1.4fr 1fr 1fr; }
  .sk.is-tall .sk-read dt { font-size: 13px; }
  .sk.is-tall .sk-read dd { font-size: 15px; }
  .sk.is-tall .sk-read div:not(.sk-big) { display: flex; flex-direction: column; }   /* a label on two lines keeps the values on one */
  .sk.is-tall .sk-read div:not(.sk-big) dd { margin-top: auto; padding-top: 2px; }
}

/* ---------------------------------------------------------------- home scene 4: what must this drawing control? */
.ct-grid { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .ct-grid { grid-template-columns: 5fr 7fr; gap: var(--s8); align-items: center; } }
.ct-fns { display: grid; gap: var(--s2); margin-top: var(--s5); max-width: 26rem; }
.ct-fns button { display: flex; align-items: center; gap: var(--s3); min-height: 48px; padding: var(--s3) var(--s4); text-align: left; background: transparent; border: 1px solid var(--hair); border-radius: 0; color: var(--ink); font: 400 17px/1.3 var(--sans); cursor: pointer; }
.ct-fns button::before { content: ""; flex: none; width: 10px; height: 10px; border: 1.5px solid var(--ink); }
.ct-fns button:hover { border-color: var(--ink); }
.ct-fns button[aria-pressed="true"] { border-color: var(--ink); background: var(--paper-2); }
.ct-fns button[aria-pressed="true"]::before { background: var(--ink); }   /* amber is kept for the lit features */
.ct-fns button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ct-why { margin-top: var(--s5); max-width: 30rem; min-height: 9em; }
.ct-why p { font-size: 17px; }
.ct-calls { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); font-family: var(--mono); font-size: 14px; }
.ct-calls li { position: relative; padding-left: var(--s5); }
.ct-calls li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 12px; height: 2px; background: var(--amber); }
.ct-vis { display: grid; gap: var(--s4); min-width: 0; }
.ct-3d { display: none; position: relative; }
.ct.is-3d .ct-3d { display: block; aspect-ratio: 16 / 10; border: 1px solid var(--hair); overflow: hidden; }   /* framed like the drawing below it */
.ct-dwg-box { background: #FBFAF6; border: 1px solid var(--hair); }
.ct.is-3d .ct-dwg-box { width: min(100%, 34rem); justify-self: end; }
.ct-dwg { display: block; width: 100%; height: auto; }
.ct-dwg pattern path { stroke: var(--ink); stroke-width: 0.8; }
.ct-dwg .c-sec { fill: url(#ct-h); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.ct-dwg .c-ax { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 16 4 3 4; }
.ct-dwg .c-f { fill: none; stroke: transparent; stroke-width: 6; stroke-linecap: round; transition: stroke .25s; }
.ct-dwg .c-dot { fill: transparent; stroke: none; transition: fill .25s; }
.ct-dwg .c-co { opacity: 0.55; transition: opacity .25s; }
.ct-dwg .c-ld { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.ct-dwg .c-end, .ct-dwg .c-ar { fill: var(--ink); }
.ct-dwg text { font-family: var(--mono); font-size: 18px; fill: var(--ink); }
.ct[data-fn="loose"] .c-f[data-for="loose"], .ct[data-fn="spot"] .c-f[data-for="spot"], .ct[data-fn="flush"] .c-f[data-for="flush"] { stroke: var(--amber); }
.ct[data-fn="spot"] .c-dot { fill: var(--amber); }
.ct[data-fn="loose"] .c-co[data-for="loose"], .ct[data-fn="spot"] .c-co[data-for="spot"], .ct[data-fn="flush"] .c-co[data-for="flush"] { opacity: 1; }
@media (max-width: 899px) { .ct.is-3d .ct-3d { aspect-ratio: 4 / 3; } .ct.is-3d .ct-dwg-box { width: 100%; } }
/* phones: the callouts are listed under the buttons, the drawing keeps only the lit features */
@media (max-width: 599px) { .ct-dwg .c-co { display: none; } .ct-why { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .sk-steps li, .ct-dwg .c-f, .ct-dwg .c-dot, .ct-dwg .c-co { transition: none; } }

/* ---------------------------------------------------------------- Libertu case study */
.lbt-herogrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); margin-top: var(--s5); }
.lbt-herofig { order: -1; }
.lbt-herotext p { max-width: 36rem; }
@media (min-width: 900px) {
  .lbt-herogrid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: start; }
  .lbt-stick { position: sticky; top: var(--s5); align-self: start; }
  .lbt-herofig { order: 0; }
  .lbt-herotext .lead { margin-top: 0; }
}
.lbt-compare { margin: var(--s5) 0 var(--s3); }
table.data.lbt-compare thead { position: static; width: auto; height: auto; overflow: visible; clip-path: none; display: table-header-group; }
table.data.lbt-compare tr { display: table-row; padding: 0; }
table.data.lbt-compare th, table.data.lbt-compare td { display: table-cell; padding: var(--s3) var(--s3) var(--s3) 0; border-bottom: 1px solid var(--hair); }
.lbt-compare th, .lbt-compare td { text-align: left; font-weight: 400; }
.lbt-compare thead th { font-weight: 500; }
.lbt-compare tbody th { color: var(--muted); }
.lbt-compare .is-key td { font-size: 28px; font-weight: 500; font-variant-numeric: tabular-nums; }
.lbt-compare .is-key th { color: var(--ink); }
.lbt-fig { margin: 0; }
.lbt-fig figcaption { margin-top: var(--s4); font-size: 16px; color: var(--muted); }
.lbt-scene > figcaption { font-size: 16px; color: var(--muted); }
.lbt-list { margin: var(--s4) 0; padding-left: 1.2em; }
.lbt-list li { margin: var(--s2) 0; }
.lbt-list b { font-weight: 500; }
table.data.lbt-figs { margin-top: var(--s6); }
table.data.lbt-figs .lbt-by th { font-family: var(--mono); font-size: 15px; font-weight: 400; color: var(--muted); padding-top: var(--s5); }
table.data.lbt-figs tbody:first-of-type .lbt-by:first-child th { padding-top: var(--s3); }
@media (max-width: 599px) { table.data.lbt-figs .lbt-by { padding-bottom: 0; } table.data.lbt-figs .lbt-by th { grid-column: 1 / -1; display: block; padding: var(--s3) 0 0; border: 0; } }
.lbt-handle { margin-top: var(--s6); }
.lbt-p { max-width: 46rem; }
.lbt-now { font-family: var(--mono); font-size: 16px; font-variant-numeric: tabular-nums; min-width: 12ch; }
.lbt-stagegrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
.lbt-scene .x3d-box { width: 100%; background: var(--paper-2); }
.lbt-scene .x3d-controls { margin-top: 0; }
@media (min-width: 900px) {
  .lbt-stagegrid { grid-template-columns: min(78svh, 60%) minmax(0, 1fr); gap: var(--s4) var(--s6); }
  .lbt-steps { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .lbt-scene .x3d-box { aspect-ratio: 1 / 1; margin: 0; }
}
.lbt-steps { list-style: none; counter-reset: lbt; margin: 0; padding: 0; }
.lbt-steps li { counter-increment: lbt; position: relative; padding: var(--s2) 0 var(--s4) 2.2em; border-top: 1px solid var(--hair); }
.lbt-steps li::before { content: counter(lbt); position: absolute; left: 0; top: 19px; font-family: var(--mono); font-size: 15px; color: var(--muted); }
.lbt-steps h3 { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.35; }
.lbt-steps h3 button { all: unset; display: flex; align-items: center; min-height: 44px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--hair); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.lbt-steps h3 button:hover, .lbt-steps h3 button:active { text-decoration-color: var(--ink); }
.lbt-steps h3 button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.lbt-steps p { margin: 0; font-size: 16px; color: var(--muted); }
.lbt-steps li[aria-current="step"]::before { color: var(--ink); }
.lbt-steps li[aria-current="step"] { border-top-color: var(--ink); }
.lbt-steps li[aria-current="step"] p { color: var(--ink); }
