/* Kalel v2. Sección constructiva, taken to an exploded axonometric:
   drafting film, technical ink, one installation blue. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --ground: #1a1e21;
  --ground-deep: #15181b;
  --panel: #22272b;
  --panel-2: #2a3034;
  --ink: #e3e0d8;
  --ink-2: #b4b8b5;
  --muted: #9aa3a8;
  --line: rgba(227, 224, 216, 0.14);
  --line-strong: rgba(227, 224, 216, 0.32);
  --accent: #4fa3ff;
  --accent-hover: #6db4ff;
  --accent-ink: #0b1622;
  --accent-soft: rgba(79, 163, 255, 0.14);
  --danger: #ff8a7a;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h: 64px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --section-y: clamp(88px, 11vw, 168px);

  --fs-h2: clamp(1.85rem, 1.2rem + 2vw, 2.85rem);
  --fs-h3: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-note: 0.75rem;

  /* cookie banner (assets/js/consent.js) */
  --cc-bg: var(--panel);
  --cc-ink: var(--ink);
  --cc-line: var(--line-strong);
  --cc-btn-line: var(--line-strong);
  --cc-btn-hover: rgba(227, 224, 216, 0.08);
  --cc-focus: var(--accent);

  /* z-index scale: content 1, stage 2, actionbar 45, menu 49, header 50, grain 60, cookie banner 70, skip 100 */
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  scrollbar-color: #3b4247 var(--ground);
  background: var(--ground);
}
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  font-stretch: 100%;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
}

/* Drafting-film grain: fixed, non-interactive, never on a scrolling layer. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection { background: var(--accent); color: var(--accent-ink); }
input, textarea { caret-color: var(--accent); }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 500; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Annotation voice: expanded caps, the lettering of the drawing. */
.note { font-size: var(--fs-note); font-stretch: 125%; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------------------ Buttons */

.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px;
  border: 1px solid transparent; border-radius: 0;
  font: inherit; font-size: 1rem; font-weight: 560; font-stretch: 108%; letter-spacing: 0.01em;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
  transition: transform 140ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--small { --h: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn .icon { transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--accent-hover); }
  .btn--ghost:hover { border-color: var(--ink); }
  #calc-use:hover .icon { transform: translateY(2px); }
}
.icon { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ------------------------------------------------------------ Header */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--ground);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-stretch: 125%; font-weight: 600; font-size: 1rem; letter-spacing: 0.2em; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 8px 12px; font-size: 0.9375rem; text-decoration: none; color: var(--ink-2); transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--ink); } }
.lang { display: inline-flex; border: 1px solid var(--line); }
.lang button {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  font: inherit; font-size: var(--fs-note); font-stretch: 125%; font-weight: 600; letter-spacing: 0.08em;
  padding: 8px 10px; min-width: 40px; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.menu-toggle { display: none; }
@media (max-width: 1023px) {
  .nav-links, .site-header .btn--primary { display: none; }
  .lang { margin-left: auto; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; touch-action: manipulation; }
  .menu-toggle:active { transform: scale(0.96); }
}
.mobile-menu {
  position: fixed; inset: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 49;
  background: var(--ground);
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain;
  opacity: 0; transform: translateY(-8px); visibility: hidden;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms;
}
.mobile-menu.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
.mobile-menu a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.5rem; font-stretch: 108%; text-decoration: none; }
.mobile-menu .btn { margin-top: 24px; }

/* ------------------------------------------------------------ Story: the drawing comes apart */

.story {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "steps stage";
  column-gap: clamp(24px, 3vw, 48px);
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-top: var(--nav-h);
}
.story__steps { grid-area: steps; min-width: 0; padding-inline: 0; }
.story__stage { grid-area: stage; min-width: 0; }

.step {
  min-height: calc(100svh - var(--nav-h));
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 56px; max-width: 32rem;
}
.step--hero { max-width: none; padding-block: 40px 96px; }

.hero-title { font-size: clamp(2.6rem, 1rem + 3.75vw, 4.15rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 540; font-stretch: 86%; }
.hero-title .ln { display: block; position: relative; width: fit-content; }
.hero-sub { margin-top: 24px; max-width: 30rem; font-size: 1.125rem; color: var(--ink-2); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

@media (prefers-reduced-motion: no-preference) {
  /* A curtain of film retires off the painted line, so the headline counts as painted from the first frame. */
  .hero-title .ln::after {
    content: ""; position: absolute; inset: -0.08em -0.1em -0.12em;
    background: var(--ground); transform-origin: 100% 50%;
    animation: wipe 900ms var(--ease-in-out) both 120ms;
  }
  .hero-title .ln:nth-child(2)::after { animation-delay: 240ms; }
  .hero-sub { animation: fade-up 900ms var(--ease-settle) both 240ms; }
  .hero-actions { animation: fade-up 900ms var(--ease-settle) both 340ms; }
}
@keyframes wipe { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.step h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.022em; font-stretch: 104%; }
.step p { margin-top: 20px; color: var(--ink-2); max-width: 32rem; }
.spec { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.spec li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.spec li::before { content: ""; width: 9px; height: 9px; margin-top: 0.55em; border: 1.5px solid var(--accent); transform: rotate(45deg); }
.step .btn { margin-top: 36px; align-self: flex-start; }

.story__stage { position: relative; }
.stage {
  position: sticky; top: var(--nav-h);
  height: calc(100svh - var(--nav-h));
  display: flex; flex-direction: column;
  padding: 12px 0 20px;
}
.stage__caption { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.stage__now { color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 899px) {
  .story { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "steps"; }
  .story__stage { position: sticky; top: var(--nav-h); z-index: 2; height: 44svh; margin-inline: calc(var(--gutter) * -1); align-self: start; }
  .stage {
    position: relative; top: 0; height: 100%;
    padding: 6px var(--gutter) 8px;
    background: var(--ground); border-bottom: 1px solid var(--line);
  }
  .stage__caption { padding-top: 6px; border-top: 0; }
  .stage__caption .note:first-child, .stage__caption .note:last-child { display: none; }
  .step { min-height: 64svh; padding-block: 40px; justify-content: flex-start; }
  .step--hero { min-height: 0; padding-block: 28px 56px; }
  .hero-sub { margin-top: 16px; font-size: 1.0625rem; }
  .hero-actions { margin-top: 24px; }
}

/* ------------------------------------------------------------ The axonometric (SVG) */

.axo { flex: 1 1 auto; width: 100%; min-height: 0; overflow: visible; font-family: "Archivo", sans-serif; }
.axo text { fill: var(--ink); font-stretch: 125%; font-weight: 500; letter-spacing: 0.06em; }
.axo .t-note { font-size: 10px; fill: var(--muted); }
.axo .t-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; }
.axo .t-sub { font-size: 11px; fill: var(--muted); font-stretch: 100%; letter-spacing: 0.01em; font-weight: 400; }
.axo .t-sign { font-size: 9px; font-weight: 650; letter-spacing: 0.34em; }
.axo .t-face { font-size: 7px; fill: var(--ink-2); font-stretch: 100%; letter-spacing: 0.02em; font-weight: 500; }
.axo .t-street { font-size: 9px; fill: var(--muted); letter-spacing: 0.32em; }

.axo polygon, .axo line, .axo polyline, .axo path { stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; }
.axo .f-top { fill: #262b30; }
.axo .f-front { fill: #20252a; }
.axo .f-side { fill: #1b1f23; }
.axo .f-floor { fill: #1d2125; stroke-opacity: 0.9; }
.axo .f-wall { fill: #23282d; stroke-opacity: 0.8; }
.axo .f-wall2 { fill: #1f2428; stroke-opacity: 0.8; }
.axo .f-walltop { fill: #2d3338; }
.axo .cut { fill: url(#hatch); }
.axo .hatch-bg { fill: var(--ground); }
.axo .hatch-line { stroke: var(--ink); stroke-width: 1; opacity: 0.5; }
.axo .glass-in { fill: rgba(79, 163, 255, 0.05); stroke-opacity: 0.55; }
.axo .screen { fill: rgba(79, 163, 255, 0.16); }
.axo .bar-f { fill: var(--accent); fill-opacity: 0.75; stroke: none; }
.axo .spark { fill: none; stroke: var(--accent); stroke-width: 1.4; }
.axo .thin { fill: none; stroke-width: 0.7; stroke-opacity: 0.55; }
.axo .stroke { fill: none; stroke-width: 1.1; }
.axo .grid { stroke-width: 0.7; stroke-opacity: 0.09; }
.axo .pipe { fill: none; stroke: var(--accent); stroke-width: 2; stroke-opacity: 0.5; stroke-linecap: square; }
.axo .pipe-flow { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 3 9; stroke-linecap: round; }
.axo .joint { fill: var(--ground); stroke: var(--accent); stroke-width: 1.4; }
.axo .led { fill: var(--accent); stroke: none; }
.axo .fa-face { fill: #22272b; }
.axo .fa-side { fill: #1c2024; }
.axo .fa-band { fill: #2a3035; stroke-opacity: 0.8; }
.axo .fa-door { fill: var(--ground-deep); }
.axo .fa-sign { fill: var(--ground-deep); }
.axo .glass { fill: rgba(79, 163, 255, 0.08); }
.axo .glass--shop { fill: rgba(79, 163, 255, 0.12); }
.axo .leader { stroke-width: 0.8; stroke-opacity: 0.6; }
.axo .dot { fill: var(--ink); }
.axo .lvl text { fill: var(--muted); }
.axo .riser { stroke-opacity: 0.85; }
.axo .trail { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.axo .lead { fill: var(--accent); }
.axo .lead-ring { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: 0; }
.axo .lbl, .axo .axo-route { opacity: 0; }
.no-js .axo .lbl, html:not(.js) .axo .lbl { opacity: 1; }

/* The plotter: the visible shell inks itself in (facade, roof, ground). The floors
   behind the facade are hidden at load, so they are not animated. Continuous
   motion (pipes, lights) only runs once the building has come apart. */
@media (prefers-reduced-motion: no-preference) {
  :is(.axo-facade, .axo-layer[data-layer="roof"], .axo-ground).plot :is(polygon, line, polyline, path),
  :is(.axo-facade, .axo-layer[data-layer="roof"]) .plot :is(polygon, line, polyline, path) {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: plot 1.4s var(--ease-out) forwards;
    animation-delay: calc(var(--n, 0) * 90ms + 120ms);
  }
  .axo-ground.plot :is(line) { animation-delay: 80ms; }
  .axo-layer:is([data-layer="sot"], [data-layer="pb"], [data-layer="p1"], [data-layer="p2"]) > .plot { animation: fade 900ms ease both 250ms; }
  .axo-facade .plot text, .axo .lvl { animation: fade 700ms ease both; animation-delay: 900ms; }
  .axo.is-live:not(.is-paused) .pipe-flow { animation: flow 1.6s linear infinite; }
  .axo.is-live:not(.is-paused) .led { animation: blink 2.8s ease-in-out infinite calc(var(--i, 0) * 400ms); }
}
@keyframes plot {
  0% { stroke-dashoffset: 1; fill-opacity: 0; }
  60% { fill-opacity: 0; }
  100% { stroke-dashoffset: 0; fill-opacity: 1; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes flow { to { stroke-dashoffset: -24; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

@media (max-width: 899px) {
  .axo .lbl, .axo .lvl { display: none; }
}

/* ------------------------------------------------------------ Sections */

.section { padding-block: var(--section-y); }
.section--rule { border-top: 1px solid var(--line); }
.section-head { max-width: 46rem; }
.section-head h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.022em; font-stretch: 104%; }
.section-head p { margin-top: 18px; color: var(--ink-2); max-width: 38rem; }

/* ------------------------------------------------------------ Calculator */

.calc { border-top: 1px solid var(--line); }
.calc__grid {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.calc__tasks { display: grid; border-top: 1px solid var(--line-strong); }
.task { margin: 0; padding: 22px 0 26px; border: 0; border-bottom: 1px solid var(--line); min-width: 0; transition: opacity 260ms ease; }
.task__head { padding: 0; margin: 0 0 18px; width: 100%; }
.task__toggle { display: inline-grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: center; cursor: pointer; font-size: 1.125rem; font-weight: 560; font-stretch: 104%; }
.task__toggle input {
  appearance: none; width: 22px; height: 22px; margin: 0;
  border: 1px solid var(--line-strong); background: var(--ground-deep);
  display: grid; place-content: center; cursor: pointer;
}
.task__toggle input::after { content: ""; width: 10px; height: 10px; background: var(--accent); transform: scale(0); transition: transform 160ms var(--ease-out); }
.task__toggle input:checked { border-color: var(--accent); }
.task__toggle input:checked::after { transform: scale(1); }
.task:has(input[name="on"]:not(:checked)) .task__ranges { opacity: 0.72; }
.task:has(input[name="on"]:not(:checked)) .range input[type="range"] { filter: grayscale(1); }
.task__ranges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; padding-left: 38px; transition: opacity 260ms ease; }

.range { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 12px; }
.range__label { font-size: var(--fs-small); color: var(--ink-2); }
.range__val { font-size: 1.125rem; font-weight: 560; font-stretch: 86%; min-width: 3ch; text-align: right; }
.range input[type="range"] {
  --p: 50%;
  grid-column: 1 / -1;
  appearance: none; -webkit-appearance: none;
  width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y;
}
.range input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(var(--accent), var(--accent)) 0 / var(--p) 100% no-repeat, var(--line-strong); }
.range input[type="range"]::-moz-range-track { height: 2px; background: var(--line-strong); }
.range input[type="range"]::-moz-range-progress { height: 2px; background: var(--accent); }
.range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px;
  background: var(--ground); border: 2px solid var(--accent); border-radius: 0; transform: rotate(45deg);
  transition: transform 140ms var(--ease-out);
}
.range input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; background: var(--ground); border: 2px solid var(--accent); border-radius: 0; transform: rotate(45deg); }
.range input[type="range"]:active::-webkit-slider-thumb { transform: rotate(45deg) scale(1.15); }
.range input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.calc__result { position: sticky; top: calc(var(--nav-h) + 24px); border: 1px solid var(--line-strong); background: var(--ground-deep); }
.cells { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cell { padding: 16px 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.cell + .cell + .cell { border-left: 1px solid var(--line); }
.cell--big { grid-column: 1 / -1; padding-block: 18px 10px; }
.cell dd { margin: 4px 0 0; }
.num { display: block; font-size: 2.25rem; line-height: 1; font-weight: 300; font-stretch: 62%; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.cell--big .num { font-size: clamp(4.5rem, 3rem + 4vw, 7rem); letter-spacing: -0.03em; }
.num--s { font-size: 2rem; }

.bricks-wrap { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.bricks { display: grid; grid-template-columns: repeat(auto-fill, minmax(9px, 1fr)); gap: 3px; min-height: 12px; }
.bricks i { aspect-ratio: 1; border: 1px solid var(--line); }
.bricks i.on { background: var(--ink); border-color: var(--ink); }
.bricks i.on.is-new { animation: brick 380ms var(--ease-settle) both; }
@keyframes brick { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.bricks__key { margin-top: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.brick-key { width: 9px; height: 9px; background: var(--ink); }
.bricks__more { color: var(--ink); }
.bricks__more:empty { display: none; }

.build { padding: 16px 18px 4px; }
.build__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.build__list li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: var(--fs-small); color: var(--ink); }
.build__list li::before { content: ""; width: 9px; height: 9px; margin-top: 0.55em; border: 1.5px solid var(--accent); transform: rotate(45deg); }
.build__list li.is-new { animation: fade-up 420ms var(--ease-out) both; }
.build__list .empty { color: var(--muted); }
.build__list .empty::before { border-color: var(--muted); }
.calc__fine { padding: 12px 18px 16px; font-size: 0.8125rem; color: var(--muted); line-height: 1.5; }
.calc__result .btn { min-height: 56px; }

.calc__mini { display: none; }
@media (max-width: 899px) {
  .calc__grid { grid-template-columns: minmax(0, 1fr); }
  .calc__mini {
    position: sticky; top: var(--nav-h); z-index: 3;
    display: flex; align-items: baseline; gap: 12px;
    margin: 0 calc(var(--gutter) * -1) -1px; padding: 10px var(--gutter);
    background: var(--ground); border-bottom: 1px solid var(--line);
  }
  .calc__mini .num { font-size: 2rem; }
  .calc__result { position: static; }
  .task__ranges { grid-template-columns: minmax(0, 1fr); padding-left: 0; }
}

.calc-note { margin-bottom: 28px; padding: 14px 18px; border: 1px solid var(--accent); background: var(--accent-soft); font-size: var(--fs-small); }

/* ------------------------------------------------------------ Work: one long sheet */

.works { border-top: 1px solid var(--line); padding-block: var(--section-y); overflow: hidden; }
.works__head h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.022em; font-stretch: 104%; }
.works__head p { margin-top: 18px; color: var(--ink-2); max-width: 38rem; }
.works__viewport {
  margin-top: clamp(32px, 5vw, 56px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.works__viewport::-webkit-scrollbar { display: none; }
.works__track { display: flex; gap: clamp(16px, 2vw, 28px); margin: 0; padding: 0; list-style: none; width: max-content; }
.plate { flex: none; width: min(82vw, 600px); scroll-snap-align: start; }
.plate a { display: flex; flex-direction: column; height: 100%; text-decoration: none; position: relative; }
.plate a::before, .plate a::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border: 0 solid var(--muted); z-index: 1;
}
.plate a::before { top: -6px; left: -6px; border-top-width: 1px; border-left-width: 1px; }
.plate a::after { bottom: -6px; right: -6px; border-bottom-width: 1px; border-right-width: 1px; }
.plate__img { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--line-strong); background: var(--bg, var(--panel)); }
.plate__img img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
  transition: transform 800ms var(--ease-out);
}
.plate__block { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 16px; padding: 14px 16px; border: 1px solid var(--line-strong); border-top: 0; }
.plate__name { font-size: 1.0625rem; font-weight: 560; font-stretch: 104%; }
.plate__meta { grid-column: 1; margin-top: 2px; font-size: var(--fs-small); color: var(--ink-2); }
.plate__open { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); white-space: nowrap; }
.plate__open .icon { transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .plate a:hover .plate__img img { transform: scale(1.025); }
  .plate a:hover .plate__open .icon { transform: translate(2px, -2px); }
  .plate a:hover .plate__img, .plate a:hover .plate__block { border-color: var(--muted); }
}
.works__rail { margin-top: 28px; }
.works__rail { position: relative; height: 1px; }
.works__rail::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: var(--line); }
.works__progress { position: absolute; left: var(--gutter); right: var(--gutter); top: -0.5px; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* Desktop with motion: the sheet pans sideways while the page scrolls down. */
.works.is-pinned { padding-block: 0; }
.works.is-pinned .works__pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); }
.works.is-pinned .works__viewport { overflow: visible; scroll-snap-type: none; }
.works.is-pinned .plate { width: clamp(440px, 36vw, 600px); }

/* ------------------------------------------------------------ Sectors (from v1) */

.sectors { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); border: 1px solid var(--line-strong); }
.sector-index { display: flex; flex-direction: column; border-right: 1px solid var(--line-strong); margin: 0; padding: 0; }
.sector-tab {
  appearance: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 56px; padding: 14px 20px; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; color: var(--ink-2); font: inherit; font-size: 1rem; text-align: left;
  cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  transition: background-color 200ms ease, color 200ms ease;
}
.sector-tab:last-child { border-bottom: 0; }
.sector-tab .icon { opacity: 0; transform: translateX(-4px); transition: opacity 200ms ease, transform 200ms var(--ease-out); }
.sector-tab[aria-selected="true"] { background: var(--ink); color: var(--ground); font-weight: 560; }
.sector-tab[aria-selected="true"] .icon { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .sector-tab[aria-selected="false"]:hover { background: var(--panel); color: var(--ink); } }
.sector-sheet { padding: clamp(24px, 3.4vw, 48px); min-width: 0; }
.sector-sheet h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); font-stretch: 104%; letter-spacing: -0.015em; line-height: 1.15; }
.sector-rows { margin: 28px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.sector-rows > div { display: grid; grid-template-columns: minmax(120px, 2fr) 7fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sector-rows dt { padding-top: 3px; }
.sector-rows dd { margin: 0; }
.route { --n: 5; position: relative; margin: 36px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.route::before { content: ""; position: absolute; left: calc(50% / var(--n)); right: calc(50% / var(--n)); top: 9px; height: 2px; background: var(--accent); opacity: 0.55; transform-origin: left center; }
.route li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-inline: 4px; font-size: 0.875rem; color: var(--ink-2); line-height: 1.35; }
.route li::before { content: ""; width: 20px; height: 20px; border: 2px solid var(--accent); background: var(--ground); border-radius: 50%; position: relative; }
.route li:first-child::before, .route li:last-child::before { background: var(--accent); }
.sector-sheet.is-entering h3, .sector-sheet.is-entering .sector-rows > div, .sector-sheet.is-entering .route li { animation: rise 420ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
.sector-sheet.is-entering .route::before { animation: draw 700ms var(--ease-out) both 120ms; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 899px) {
  .sectors { grid-template-columns: minmax(0, 1fr); }
  .sector-index { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line-strong); scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .sector-index::-webkit-scrollbar { display: none; }
  .sector-tab { flex: none; width: auto; border-bottom: 0; border-right: 1px solid var(--line); scroll-snap-align: start; white-space: nowrap; }
  .sector-tab .icon { display: none; }
  .sector-rows > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .route { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .route::before { left: 9px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; transform-origin: center top; }
  .route li { flex-direction: row; text-align: left; align-items: center; gap: 14px; }
  .route li::before { flex: none; }
  .sector-sheet.is-entering .route::before { animation-name: draw-y; }
}
@keyframes draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ------------------------------------------------------------ Method: the dimension line draws with the scroll */

.method { position: relative; margin-top: clamp(48px, 7vw, 88px); }
.method__rail { position: absolute; left: 0; right: 0; top: 15px; height: 1px; background: var(--line-strong); }
.method__fill { position: absolute; inset: -0.5px 0 auto 0; height: 2px; background: var(--ink); transform-origin: left center; transform: scaleX(1); }
.js .method__fill { transform: scaleX(0); }
.method__line { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.method__line li { position: relative; padding: 52px 28px 0 0; }
.method__node { position: absolute; top: 8px; left: 0; width: 15px; height: 15px; border: 1.5px solid var(--ink); background: var(--ground); transform: rotate(45deg); transition: background-color 300ms ease, border-color 300ms ease; }
.method__line li.is-on .method__node { background: var(--ink); }
.method__line h3 { font-size: var(--fs-h3); font-stretch: 104%; font-weight: 560; }
.method__line p { margin-top: 10px; color: var(--ink-2); font-size: var(--fs-small); max-width: 22rem; }
@media (max-width: 899px) {
  .method__rail { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .method__fill { inset: 0 auto 0 -0.5px; width: 2px; height: auto; transform-origin: center top; }
  .js .method__fill { transform: scaleY(0); }
  .method__line { grid-template-columns: minmax(0, 1fr); }
  .method__line li { padding: 0 0 40px 40px; }
  .method__node { top: 4px; left: 0; }
}

/* Statement: the words light up as you read down */
.statement { margin: clamp(88px, 10vw, 144px) 0 0; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.statement blockquote { margin: 0; font-size: clamp(1.75rem, 1.1rem + 2.2vw, 3rem); line-height: 1.14; letter-spacing: -0.02em; font-weight: 450; font-stretch: 100%; text-wrap: balance; }
.statement blockquote .w { opacity: 0.42; transition: opacity 120ms linear; }
.statement figcaption { color: var(--ink-2); border-left: 1px solid var(--line-strong); padding-left: 20px; }
@media (max-width: 899px) { .statement { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ Request form (from v1) */

.request { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.form { display: grid; gap: 36px; }
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form legend, .field > label { display: block; padding: 0; margin-bottom: 10px; font-weight: 560; font-size: 1rem; }
.hint { display: block; margin-top: -6px; margin-bottom: 12px; font-size: var(--fs-small); color: var(--muted); font-weight: 400; }
.field { display: grid; gap: 0; min-width: 0; align-content: start; }
.field > label.consent { display: grid; margin: 0; font-weight: 400; font-size: var(--fs-small); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px;
  border: 1px solid var(--line-strong); color: var(--ink-2); font-size: 0.9688rem;
  user-select: none; -webkit-user-select: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 140ms var(--ease-out);
}
.chip span::before { content: ""; width: 8px; height: 8px; border: 1.5px solid currentColor; transform: rotate(45deg); transition: background-color 180ms ease; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--ground); font-weight: 560; }
.chip input:checked + span::before { background: currentColor; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.chip:active span { transform: scale(0.97); }
.chips:has(input:checked) .chip input:not(:checked) + span { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .chip input:not(:checked):hover + span { border-color: var(--ink); color: var(--ink); } }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: 0; background: var(--ground-deep); color: var(--ink);
  font: inherit; font-size: 16px; transition: border-color 180ms ease, box-shadow 400ms ease;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.textarea.is-filled { box-shadow: 0 0 0 1px var(--accent); }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%23e3e0d8' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.select option { background: var(--panel); color: var(--ink); }
.input::placeholder, .textarea::placeholder { color: #8a9398; opacity: 1; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
@media (hover: hover) and (pointer: fine) { .input:hover, .select:hover, .textarea:hover { border-color: var(--muted); } }
.error { display: none; margin-top: 8px; font-size: var(--fs-small); color: var(--danger); }
.is-invalid .error { display: block; }
.is-invalid .input, .is-invalid .select, .is-invalid .textarea { border-color: var(--danger); }
.is-invalid .chip span { border-color: rgba(255, 138, 122, 0.6); }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: var(--fs-small); color: var(--ink-2); }
.consent input { appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1px solid var(--line-strong); background: var(--ground-deep); display: grid; place-content: center; cursor: pointer; }
.consent input::after { content: ""; width: 10px; height: 10px; background: var(--accent); transform: scale(0); transition: transform 160ms var(--ease-out); }
.consent input:checked::after { transform: scale(1); }
.consent input:checked { border-color: var(--accent); }
.consent .error { grid-column: 2; }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__status { font-size: var(--fs-small); color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { border: 1px solid var(--line-strong); padding: clamp(24px, 4vw, 48px); }
.sent h3 { font-size: 1.75rem; font-stretch: 104%; }
.sent p { margin-top: 12px; color: var(--ink-2); max-width: 32rem; }
.sent .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.sheet { position: sticky; top: calc(var(--nav-h) + 24px); border: 1px solid var(--line-strong); background: var(--ground-deep); }
.sheet__head { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 18px; border-bottom: 1px solid var(--line-strong); }
.sheet__draw { position: relative; min-height: 300px; padding: 28px 28px 0; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet__empty { position: absolute; inset: 28px 28px 64px; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: var(--fs-small); border: 1px dashed var(--line-strong); padding: 16px; transition: opacity 300ms ease; }
.sheet__draw.has-floors .sheet__empty { opacity: 0; pointer-events: none; }
.tower { display: flex; flex-direction: column-reverse; margin: 0 22px; }
.tower__floor { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; padding: 0 14px; border: 1.2px solid var(--ink); border-bottom: 0; background: var(--ground-deep); font-size: 0.875rem; }
.tower__floor::after { content: ""; position: absolute; left: -7px; right: -7px; bottom: -5px; height: 5px; background: repeating-linear-gradient(45deg, var(--ink) 0 1px, transparent 1px 4px); border-block: 1px solid var(--ink); }
.tower__floor--auto { background-image: linear-gradient(var(--accent), var(--accent)); background-size: calc(100% - 28px) 2px; background-position: 14px 70%; background-repeat: no-repeat; }
.tower__floor--tbd { border-style: dashed; color: var(--muted); }
.tower__floor.is-new { animation: settle 520ms var(--ease-settle) both; }
.tower__level { color: var(--muted); }
@keyframes settle { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
.ground-line { height: 14px; border-top: 1.4px solid var(--ink); background: repeating-linear-gradient(-45deg, rgba(227, 224, 216, 0.28) 0 1px, transparent 1px 6px); }
.cartouche { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); margin: 0; }
.cartouche > div { padding: 10px 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.cartouche > div:nth-child(odd) { border-right: 1px solid var(--line); }
.cartouche > div:nth-last-child(-n+2) { border-bottom: 0; }
.cartouche dt { margin-bottom: 2px; }
.cartouche dd { margin: 0; font-size: var(--fs-small); overflow-wrap: anywhere; }
.direct { margin-top: 20px; display: grid; gap: 0; border: 1px solid var(--line); }
.direct a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; text-decoration: none; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.direct a:last-child { border-bottom: 0; }
.direct a span:last-child { color: var(--ink-2); overflow-wrap: anywhere; text-align: right; }
@media (hover: hover) and (pointer: fine) { .direct a:hover { background: var(--panel); } }
.sheet__count { margin-right: 14px; color: var(--ink); }
.sheet__count:empty { display: none; }
@media (max-width: 899px) {
  .request { grid-template-columns: minmax(0, 1fr); }
  .sheet { position: static; }
  .sheet .cartouche, .sheet__scale { display: none; }
  .sheet__draw { min-height: 0; padding: 18px 18px 0; }
  .sheet__empty { position: static; margin-bottom: 14px; padding: 14px; }
  .sheet__draw.has-floors .sheet__empty { display: none; }
  .tower { margin: 0 14px; }
  .tower__floor { height: 44px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------ Footer: title block and the inked plate */

.site-footer { padding: 0 0 calc(32px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 80px); }
.titleblock { display: grid; grid-template-columns: 1.3fr 2fr 1fr 1.6fr 1.6fr; border: 1px solid var(--line-strong); margin: 0; }
.titleblock > div { padding: 16px 18px; border-right: 1px solid var(--line-strong); min-width: 0; }
.titleblock > div:last-child { border-right: 0; }
.titleblock dd { margin: 4px 0 0; font-size: var(--fs-small); overflow-wrap: anywhere; }
.titleblock dd a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .titleblock dd a:hover { text-decoration: underline; } }
.titleblock .brand { font-size: 0.9375rem; }
.footer-services { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.875rem; }
.footer-services .footer-links a { color: var(--ink-2); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 0.875rem; color: var(--muted); }
.footer-legal a { color: var(--ink-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.footer-links a, .footer-links button { color: var(--ink-2); }
.linklike { appearance: none; border: 0; background: none; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; cursor: pointer; }
@media (max-width: 1023px) {
  .titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .titleblock > div { border-bottom: 1px solid var(--line-strong); }
  .titleblock > div:nth-child(2n) { border-right: 0; }
  .titleblock > div:first-child { grid-column: 1 / -1; border-right: 0; }
  .titleblock > div:last-child { border-bottom: 0; }
}
@media (max-width: 559px) { .titleblock { grid-template-columns: minmax(0, 1fr); } .titleblock > div { border-right: 0; } }

.plate-word { margin: clamp(32px, 5vw, 64px) 0 0; padding-inline: clamp(8px, 2vw, 28px); cursor: crosshair; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.plate-word svg { width: 100%; height: auto; overflow: visible; }
.plate-text { font-family: "Archivo", sans-serif; font-size: 244px; font-weight: 760; font-stretch: 100%; letter-spacing: 0; }
.plate-text--outline { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.plate-text--solid { fill: var(--ink); }
.plate-ticks line { stroke: var(--muted); stroke-width: 1; opacity: 0.7; }
@media (prefers-reduced-motion: reduce) { .plate-text--solid { mask: none; opacity: 0.12; } }

/* ------------------------------------------------------------ Phone action bar */

.actionbar { display: none; }
@media (max-width: 899px) {
  .actionbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--ground); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform 320ms var(--ease-out);
  }
  .actionbar .btn { --h: 48px; padding: 0 12px; }
  .actionbar.is-visible { transform: none; }
  html.cc-open .actionbar.is-visible { transform: translateY(110%); } /* the cookie banner owns the bottom until answered */
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* ------------------------------------------------------------ Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .statement blockquote .w { opacity: 1; }
  .js .method__fill { transform: none; }
  .axo .lbl { opacity: 1; }
}

/* Schedule of services (2026-11-21): the eleven services as a drawing schedule.
   Zone bubble (E, F, I, C, M) like a grid reference; every row is one link. */
.schedule .section-head .note { margin-bottom: 14px; }
.schedule__table { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-strong); }
.schedule__zone { display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--line-strong); }
.schedule__zone > header { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-content: start; padding: 22px 0 8px; }
.schedule__code { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border: 1.2px solid var(--ink); border-radius: 50%; font-size: var(--fs-note); font-stretch: 125%; font-weight: 600; letter-spacing: 0.04em; }
.schedule__zone h3 { font-size: 1.125rem; font-weight: 560; font-stretch: 104%; line-height: 1.3; margin: 0; }
.schedule__zone > header p { margin: 2px 0 0; color: var(--muted); font-size: var(--fs-small); }
.schedule__zone ul { margin: 0; padding: 0; list-style: none; }
.schedule__zone li + li { border-top: 1px solid var(--line); }
.schedule__zone a {
  display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) 20px; grid-template-areas: "ref name arrow" "ref line arrow";
  column-gap: 14px; row-gap: 4px; align-items: center; min-height: 44px; padding: 16px 0; text-decoration: none;
  transition: background-color 180ms var(--ease-out);
}
.schedule__ref { grid-area: ref; align-self: start; padding-top: 0.3em; font-size: var(--fs-note); font-stretch: 125%; font-weight: 600; letter-spacing: 0.09em; color: var(--accent); }
.schedule__name { grid-area: name; font-size: 1.0625rem; font-weight: 560; font-stretch: 104%; line-height: 1.3; }
.schedule__line { grid-area: line; color: var(--ink-2); font-size: var(--fs-small); }
.schedule__zone a .icon { grid-area: arrow; width: 20px; height: 20px; color: var(--muted); transition: transform 220ms var(--ease-out), color 180ms var(--ease-out); }
.schedule__zone a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.schedule__zone a:active { background-color: var(--accent-soft); }
@media (hover: hover) and (pointer: fine) {
  .schedule__zone a:hover { background-color: rgba(227, 224, 216, 0.045); }
  .schedule__zone a:hover .icon { transform: translateX(4px); color: var(--accent); }
}
@media (min-width: 900px) {
  .schedule__zone { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
  .schedule__zone > header { padding: 24px 24px 24px 0; }
  .schedule__zone ul { border-left: 1px solid var(--line); }
  .schedule__zone a { grid-template-columns: 4.25rem minmax(0, 5fr) minmax(0, 7fr) 24px; grid-template-areas: "ref name line arrow"; column-gap: 20px; padding: 20px 16px 20px 24px; }
  .schedule__ref { align-self: center; padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .schedule__zone a, .schedule__zone a .icon { transition: none; }
  .schedule__zone a:hover .icon { transform: none; }
}
