/* ==========================================================================
   TENI — landing v3.3
   One stylesheet for the whole page. Replaces the v1–v2 layers
   (styles.css, editorial.css, scan.css, quiz-v2.css stay in the repo for index-v2.0.html).

   Reference lock (see qa/redesign-v3-report.md):
   - Primary: Stykka — full-bleed real footage under left-anchored type; monospace kept
     for "document voice" only (contract clauses, indices, measurements); flat surfaces.
   - Borrowed: Norgram — alternating dark/light bands, small radii, tight tracking on large type.
     Exo Ape — monumental numerals. Sequel — luminous off-white CTA on dark.
   - Brand: TENI tokens (graphite/shadow, ivory/paper, Sunlight #c8a06b, Onest, 2px, light 25°).
   Brand devices: process timelines with an accented last stage (payment, warranty),
   blinds opening over footage (hero, booking), the lamella wordmark closing at the page end.
   Role rules: Sunlight marks guarantees only (offer, mechanism state, ticks, focus on dark).
   On light surfaces Sunlight is a light patch behind text, never text colour.
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/onest-latin-wght-normal.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/onest-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/onest-arrows-wght-normal.woff2") format("woff2");
  unicode-range: U+2190-2199, U+2713;
}
@font-face {
  font-family: "Onest Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 106%;
  ascent-override: 91.5%;
  descent-override: 28.8%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  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;
}

/* ---------- Tokens ---------- */
:root {
  /* brand primitives (assets/brand/teni.tokens.css) */
  --ivory: #fbf9f4;
  --paper: #f3efe7;
  --linen: #ddd2c3;
  --sand: #c5b39f;
  --taupe: #9b8876;
  --graphite: #292826;
  --shadow: #191918;
  --sun: #c8a06b;

  /* semantic */
  --ink: var(--graphite);
  --ink-2: #6d6258;
  --ink-3: #76675a;
  --sun-ink: #7f6136;
  --sun-patch: rgba(200, 160, 107, 0.42);
  --line: rgba(41, 40, 38, 0.13);
  --line-2: rgba(41, 40, 38, 0.3);
  --on-dark: var(--ivory);
  --on-dark-2: rgba(251, 249, 244, 0.68);
  --on-dark-3: rgba(251, 249, 244, 0.54);
  --line-dark: rgba(251, 249, 244, 0.13);
  --line-dark-2: rgba(251, 249, 244, 0.32);
  --sheet: #fffefb;
  --danger: #a8372b;
  --success: #446b52;
  --focus: var(--graphite);

  --font: "Onest", "Onest Fallback", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-offer: clamp(52px, 7.1vw, 122px);
  --fs-num: clamp(128px, 17.5vw, 290px);
  --fs-h1: clamp(30px, 3.55vw, 58px);
  --fs-h2: clamp(31px, 4vw, 64px);
  --fs-h3: clamp(21px, 1.7vw, 27px);
  --fs-lead: clamp(16px, 1.18vw, 18px);
  --fs-body: clamp(15px, 1.05vw, 17px);

  --pad: clamp(20px, 4.4vw, 72px);
  --wrap: 1440px;
  --gap: clamp(16px, 1.8vw, 28px);
  --section-y: clamp(84px, 9.2vw, 152px);
  --header-h: 76px;
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 180ms;
  --t-base: 320ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* smooth anchor scrolling is done in teni.js: CSS smooth-behavior interfered with
     programmatic scrolls in Safari */
  scroll-padding-top: calc(var(--header-h) + 8px);
  /* content changes only where the reader clicks (filters, "show more", accordion, quiz):
     scroll anchoring would move the page away from it */
  overflow-anchor: none;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.menu-open,
body.dialog-open { overflow: hidden; }

img,
video,
svg { display: block; max-width: 100%; }
img,
video { height: auto; }
button,
input,
select,
textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote, fieldset { margin: 0; }
ol, ul { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--sun-patch); color: var(--ink); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius);
}
/* in-page links move focus to the whole section (teni.js): no ring around a chapter */
main:focus-visible,
section[id]:focus-visible { outline: none; }
.chapter--dark,
.hero,
.audit,
.site-footer,
.main-nav.is-open { --focus: var(--sun); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--ivory);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--t-base) var(--ease);
}
.skip-link:focus-visible { transform: none; }

.i {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Chapters (dark / light rhythm) ---------- */
.chapter {
  position: relative;
  padding-block: var(--section-y);
  overflow: clip;
}
.chapter--light { background: var(--ivory); color: var(--ink); }
.chapter--paper { background: var(--paper); color: var(--ink); }
.chapter--dark { background: var(--shadow); color: var(--on-dark); }

/* Sunlight through blinds: brand light angle 25°, painted only on dark chapters. */
.chapter--dark::before,
.audit::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      calc(90deg + var(--light-angle, 25deg)),
      transparent 0 52px,
      rgba(200, 160, 107, 0.11) 52px 66px
    );
  filter: blur(14px);
  -webkit-mask-image: radial-gradient(60% 55% at 78% 22%, #000 0%, rgba(0, 0, 0, 0.35) 48%, transparent 78%);
  mask-image: radial-gradient(60% 55% at 78% 22%, #000 0%, rgba(0, 0, 0, 0.35) 48%, transparent 78%);
}
.chapter--dark > .wrap,
.audit > .wrap { position: relative; z-index: 1; }

/* ---------- Type ----------
   Heading group per the designer's reference: an Onest caps label, an Onest Regular heading
   set tight (-0.05em, 1.07) in short lines of 2–4 words, a 17 px lead at 1.6 in a 26em measure.
   Monospace is kept for data only: numbers, measurements, captions, form fields. */
.kicker,
.eyebrow,
.label-caps {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(18px, 1.8vw, 26px);
  color: var(--ink);
}
.kicker__no {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--sun-ink);
}
.kicker__no::after {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.chapter--dark .kicker,
.audit .kicker { color: var(--ivory); }
.chapter--dark .kicker__no,
.audit .kicker__no { color: var(--sun); }

.h2 {
  max-width: 11.5em;
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: -0.05em;
  text-wrap: pretty;
}

.lead {
  max-width: 26em;
  color: var(--ink-2);
  font-size: var(--fs-lead);
  line-height: 1.6;
  text-wrap: pretty;
}
.chapter--dark .lead { color: var(--on-dark-2); }
.h2 + .lead { margin-top: clamp(18px, 1.8vw, 26px); }
.h2--long { max-width: 13em; font-size: clamp(29px, 3.35vw, 54px); }

.eyebrow { color: var(--ink-2); }

.section-head { margin-bottom: clamp(48px, 6vw, 96px); }
.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: var(--gap) clamp(32px, 5vw, 96px);
}
.section-head--split .lead { justify-self: end; }

/* ---------- Controls ---------- */
.button {
  --btn-h: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: var(--btn-h);
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--graphite);
  color: var(--ivory);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease),
    color var(--t-base) var(--ease);
}
.button .i {
  width: 18px;
  height: 18px;
  transition: transform 420ms var(--ease);
}
.button:hover { background: var(--shadow); }
.button:hover .i { transform: translateX(3px); }
.button:hover .i:has(use[href="#i-arrow-ne"]) { transform: translate(2px, -2px); }
.button:hover .i:has(use[href="#i-arrow-down"]) { transform: translateY(3px); }
.button[disabled],
.button[aria-disabled="true"] { opacity: 0.36; cursor: not-allowed; }

.button--dark { background: var(--graphite); color: var(--ivory); }
.button--light { background: var(--ivory); color: var(--graphite); }
.button--light:hover { background: #fff; }
.button--ghost {
  border-color: var(--line-2);
  background: transparent;
  color: var(--ink);
}
.button--ghost:hover { border-color: var(--ink); background: transparent; }
.button--ghost-light {
  border-color: rgba(251, 249, 244, 0.42);
  background: rgba(25, 25, 24, 0.22);
  color: var(--ivory);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.button--ghost-light:hover { border-color: var(--ivory); background: rgba(25, 25, 24, 0.42); }
.button--compact { --btn-h: 44px; gap: 10px; padding: 0 18px; font-size: 14px; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: var(--line-2);
  cursor: pointer;
  transition: text-decoration-color var(--t-base) var(--ease);
}
.link .i { width: 16px; height: 16px; transition: transform 420ms var(--ease); }
.link:hover { text-decoration-color: currentColor; }
.link:hover .i { transform: translate(2px, -2px); }
.link--light { color: var(--ivory); text-decoration-color: var(--line-dark-2); }

.text-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
  height: var(--header-h);
  padding-inline: max(var(--pad), calc((100% - var(--wrap)) / 2));
  color: var(--on-dark);
  transition:
    background-color var(--t-base) var(--ease),
    color var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -24px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(17, 17, 16, 0.55), rgba(17, 17, 16, 0));
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease);
}
.site-header.is-solid {
  background: rgba(251, 249, 244, 0.9);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: saturate(1.3) blur(16px);
  backdrop-filter: saturate(1.3) blur(16px);
}
.site-header.is-solid::before { opacity: 0; }
.site-header.is-solid.is-on-dark {
  background: rgba(25, 25, 24, 0.86);
  color: var(--on-dark);
  box-shadow: 0 1px 0 var(--line-dark);
}

.brand { display: block; flex: none; width: 128px; margin-left: -4px; }
.brand__mark { width: 100%; height: auto; }
.brand__mark--dark { display: none; }
.site-header.is-solid:not(.is-on-dark) .brand__mark--light { display: none; }
.site-header.is-solid:not(.is-on-dark) .brand__mark--dark { display: block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 32px);
  margin-inline: auto;
  font-size: 14px;
}
.main-nav > a {
  position: relative;
  padding: 10px 0;
  color: inherit;
  text-decoration: none;
  opacity: 0.84;
  transition: opacity var(--t-fast) var(--ease);
}
.main-nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease);
}
.main-nav > a:hover { opacity: 1; }
.main-nav > a:hover::after { transform: scaleX(1); }
.main-nav__contacts { display: none; }

.header-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(14px, 1.6vw, 24px);
  font-size: 14px;
}
.header-location {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.66;
}
.header-phone {
  font-weight: 500;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.site-header .button--compact { background: var(--ivory); color: var(--graphite); }
.site-header .button--compact:hover { background: #fff; }
.site-header.is-solid:not(.is-on-dark) .button--compact { background: var(--graphite); color: var(--ivory); }
.site-header.is-solid:not(.is-on-dark) .button--compact:hover { background: var(--shadow); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
}
.menu-toggle i {
  position: relative;
  width: 22px;
  height: 10px;
}
.menu-toggle i::before,
.menu-toggle i::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--t-base) var(--ease), top var(--t-base) var(--ease);
}
.menu-toggle i::before { top: 0; }
.menu-toggle i::after { top: 8px; }
.menu-toggle[aria-expanded="true"] i::before { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] i::after { top: 4px; transform: rotate(-45deg); }

@media (max-width: 1279px) {
  .header-location { display: none; }
}

@media (max-width: 1023px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: inline-flex; }
  .header-phone { display: none; }
  .header-actions { margin-left: auto; }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: calc(var(--header-h) + 24px) var(--pad) max(28px, env(safe-area-inset-bottom));
    background: var(--shadow);
    color: var(--ivory);
    overflow-y: auto;
    visibility: hidden;
    transform: translateY(-102%);
    transition: transform 520ms var(--ease), visibility 0s linear 520ms;
  }
  .main-nav.is-open {
    visibility: visible;
    transform: none;
    transition: transform 520ms var(--ease);
  }
  .main-nav > a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-dark);
    font-size: clamp(28px, 7.4vw, 44px);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.15;
    opacity: 1;
  }
  .main-nav > a::after { display: none; }
  .main-nav__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-top: auto;
    padding-top: 36px;
  }
  .main-nav__phone {
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
  }
  body.menu-open .site-header {
    background: transparent;
    color: var(--ivory);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  body.menu-open .site-header::before { opacity: 0; }
  body.menu-open .brand__mark--light { display: block; }
  body.menu-open .brand__mark--dark { display: none; }
  body.menu-open .header-actions .button { display: none; }
}

@media (max-width: 599px) {
  .header-actions .button--compact { display: none; }
  .brand { width: 112px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--shadow);
  color: var(--on-dark);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
  background: var(--shadow);
}
.hero__poster,
.hero__poster img,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__poster img,
.hero__video { object-fit: cover; object-position: 50% 50%; }
.hero__video {
  opacity: 0;
  transition: opacity 900ms var(--ease);
}
.hero__video.is-playing { opacity: 1; }
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 17, 16, 0.88) 0%, rgba(17, 17, 16, 0.7) 32%, rgba(17, 17, 16, 0.28) 64%, rgba(17, 17, 16, 0.1) 100%),
    linear-gradient(0deg, rgba(17, 17, 16, 0.92) 0%, rgba(17, 17, 16, 0.34) 30%, rgba(17, 17, 16, 0) 52%),
    linear-gradient(180deg, rgba(17, 17, 16, 0.5) 0%, rgba(17, 17, 16, 0) 24%);
}
.hero__slats {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-rows: repeat(12, 1fr);
  pointer-events: none;
}
.hero__slats i {
  display: block;
  background: var(--shadow);
  transform: scaleY(0);
  transform-origin: 50% 50%;
}

.hero__inner {
  position: relative;
  display: flex;
  flex: 1;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + clamp(48px, 9vh, 120px));
  padding-bottom: clamp(48px, 9vh, 104px);
}
.hero__copy { max-width: 1080px; }
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(251, 249, 244, 0.86);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--sun);
}
/* Three readable levels instead of one shout: what (H1) → why trust (offer) → how (support).
   The offer is twice the H1, not four times, so the product line is read first. */
.hero__title {
  max-width: 15em;
  margin-top: clamp(18px, 2.6vh, 28px);
  color: var(--ivory);
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.036em;
  text-wrap: balance;
}
.hero__offer {
  margin: clamp(14px, 2.2vh, 24px) 0 0 -0.045em;
  color: var(--sun);
  font-size: var(--fs-offer);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.hero__support {
  max-width: 30em;
  margin-top: clamp(18px, 2.8vh, 28px);
  color: var(--ivory);
  font-size: clamp(17px, 1.42vw, 22px);
  line-height: 1.42;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 3.8vh, 40px);
}

/* hero intro: blinds open over real footage; type rises once. CSS only, so first paint
   never waits for JavaScript. */
.has-motion .hero__slats i {
  animation: slat-open 1100ms var(--ease) both;
  animation-delay: calc(var(--k) * 52ms + 120ms);
}
.has-motion [data-hero-reveal] {
  animation: hero-rise 900ms var(--ease) both;
  animation-delay: calc(var(--r, 0) * 90ms + 520ms);
}
.hero__copy > :nth-child(1) { --r: 0; }
.hero__copy > :nth-child(2) { --r: 1; }
.hero__copy > :nth-child(3) { --r: 2; }
.hero__copy > :nth-child(4) { --r: 3; }
.hero__copy > :nth-child(5) { --r: 4; }

@keyframes slat-open {
  from { transform: scaleY(1.04); }
  to { transform: scaleY(0); }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 767px) {
  .hero__inner {
    padding-top: calc(var(--header-h) + 72px);
    padding-bottom: 36px;
  }
  .hero__shade {
    background:
      linear-gradient(0deg, rgba(17, 17, 16, 0.94) 0%, rgba(17, 17, 16, 0.7) 46%, rgba(17, 17, 16, 0.18) 74%, rgba(17, 17, 16, 0.36) 100%);
  }
  .hero__eyebrow { font-size: 11px; }
  .hero__title { max-width: 13em; }
  .hero__offer { font-size: clamp(46px, 13.4vw, 70px); }
  .hero__support { font-size: 16.5px; max-width: 24em; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .button { --btn-h: 54px; justify-content: space-between; padding: 0 20px; }
}

/* ---------- Monumental numerals with lamella fill (echoes the striped E of the wordmark) ---------- */
.bignum {
  display: grid;
  justify-items: start;
}
.bignum__value {
  display: block;
  margin-left: -0.06em;
  color: var(--ink);
  font-size: var(--fs-num);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.078em;
  font-variant-numeric: lining-nums;
}
.bignum__label {
  margin-top: clamp(16px, 2vw, 28px);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.bignum__note {
  max-width: 21em;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}
.bignum--dark .bignum__value { color: var(--ivory); }
.bignum--dark .bignum__note { color: var(--on-dark-2); }

@supports ((-webkit-background-clip: text) or (background-clip: text)) and ((-webkit-mask-image: none) or (mask-image: none)) {
  .lamella-type {
    --lt-a: var(--graphite);
    --lt-b: rgba(155, 136, 118, 0.5);
    --slat: 0.062em;
    --slit: 0.015em;
    background-image: linear-gradient(90deg, var(--lt-a) 0%, var(--lt-a) 52%, var(--lt-b) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-mask-image: repeating-linear-gradient(180deg, #000 0, #000 calc(var(--slat) - var(--slit)), transparent calc(var(--slat) - var(--slit)), transparent var(--slat));
    mask-image: repeating-linear-gradient(180deg, #000 0, #000 calc(var(--slat) - var(--slit)), transparent calc(var(--slat) - var(--slit)), transparent var(--slat));
  }
  .bignum--dark .lamella-type {
    --lt-a: var(--ivory);
    --lt-b: rgba(197, 179, 159, 0.42);
  }
}

/* ---------- Process timeline (01 · payment, 04 · warranty) ----------
   One axis, all stages on it, the last stage carries the accent. The conclusion
   ("you pay at the end", "it comes back working") is read from the shape itself. */
.deal {
  --axis: 72px;
  --node: 11px;
  --rail: var(--line-2);
  --run: var(--ink);
  --node-on: var(--ink);
  --node-off: var(--ivory);
  --name: var(--ink);
  --no: var(--ink-3);
  position: relative;
}
.deal__stops {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
/* rail and the run over it: from the first node to the last */
.deal__stops::before,
.deal__stops::after {
  content: "";
  position: absolute;
  left: calc(var(--node) / 2);
  right: calc(100% / 6 - var(--node) / 2);
  top: calc(var(--axis) - 0.5px);
  height: 1px;
  background: var(--rail);
}
.deal__stops::after {
  top: calc(var(--axis) - 1px);
  height: 2px;
  background: var(--run);
  transform: scaleX(var(--progress, 1));
  transform-origin: 0 50%;
}
.deal__stop {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: calc(var(--axis) + 8px);
  padding: 0 14px 26px 0;
}
.deal__stop::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  top: calc(var(--axis) - var(--node) / 2);
  width: var(--node);
  height: var(--node);
  border: 1.5px solid var(--node-on);
  border-radius: 50%;
  background: var(--node-on);
  transition: background-color 280ms var(--ease), transform 420ms var(--ease);
}
.deal__no {
  display: block;
  color: var(--no);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.2;
}
.deal__name {
  display: block;
  margin-top: 10px;
  color: var(--name);
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
/* the accented last stage: bigger word on a light patch, a Sunlight diamond on the axis */
.deal__stop--final::before {
  width: 15px;
  height: 15px;
  top: calc(var(--axis) - 7.5px);
  left: -2px;
  border-color: var(--sun-ink);
  border-radius: 1px;
  background: var(--sun);
  transform: rotate(45deg);
}
.deal__stop--final .deal__no { color: var(--sun-ink); }
.deal__stop--final .deal__name {
  align-self: flex-start;
  margin-left: -8px;
  padding: 1px 8px 3px;
  font-size: clamp(22px, 2.1vw, 32px);
  font-weight: 600;
  letter-spacing: -0.032em;
  background: linear-gradient(var(--sun-patch), var(--sun-patch)) no-repeat 0 0 / var(--patch, 100%) 100%;
}
/* pre-animation state, set by teni.js only when motion is allowed */
.deal.is-armed .deal__stop:not(.is-reached)::before { background: var(--node-off); }
.deal.is-armed .deal__stop--final:not(.is-reached)::before { border-color: var(--node-on); transform: rotate(45deg) scale(0.8); }
.deal__stop--final.is-reached::before { transform: rotate(45deg) scale(1); }

/* dark variant (04 · warranty): the client's one move, then our five steps */
.deal--dark {
  --axis: 104px;
  --rail: rgba(251, 249, 244, 0.2);
  --run: var(--sun);
  --node-on: var(--sun);
  --node-off: var(--shadow);
  --name: var(--ivory);
  --no: var(--on-dark-3);
}
.deal--dark .deal__name { font-size: clamp(16px, 1.32vw, 20px); }
.deal--dark .deal__stop--final .deal__name {
  margin-left: 0;
  padding: 0;
  color: var(--sun);
  font-size: clamp(18px, 1.6vw, 24px);
  background: none;
}
.deal--dark .deal__stop--final .deal__no { color: var(--sun); }
.deal--dark .deal__stop--final::before { border-color: var(--sun); }
.deal__stop--you::before {
  width: 15px;
  height: 15px;
  top: calc(var(--axis) - 7.5px);
  left: -2px;
  border-color: var(--ivory);
  background: var(--ivory);
  box-shadow: 0 0 0 7px rgba(251, 249, 244, 0.1);
}
.deal__stop--you .deal__no { color: var(--ivory); text-transform: uppercase; }
.deal.is-armed .deal__stop--you::before { background: var(--ivory); }
/* "all at our expense" titles the whole repair timeline: set right above it, closer to
   the steps than to anything else, so the eye reads the phrase and the steps as one group */
.deal__title {
  margin-bottom: clamp(14px, 1.4vw, 20px);
  color: var(--sun);
  font-size: clamp(19px, 1.5vw, 22px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.018em;
}
.deal--dark .deal__stops { padding-top: 0; }

/* ---------- Acceptance checklist (02) ----------
   Numbered rows on hairlines: the four checks read as one list at a glance,
   the detail opens on demand. */
.checks__list { border-top: 1px solid var(--line-2); }
.check { border-bottom: 1px solid var(--line-2); }
.check__head { margin: 0; font: inherit; }
.check__toggle {
  display: grid;
  grid-template-columns: clamp(48px, 4.6vw, 72px) minmax(0, 1fr) 24px;
  align-items: center;
  width: 100%;
  min-height: clamp(58px, 4.8vw, 70px);
  padding: 14px 0;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.check__no {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.check__title {
  font-size: clamp(17px, 1.3vw, 19px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.018em;
  transition: color var(--t-fast) var(--ease);
}
.check__icon {
  position: relative;
  justify-self: end;
  width: 16px;
  height: 16px;
}
.check__icon::before,
.check__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  margin: -0.75px 0 0 -8px;
  background: currentColor;
  transition: transform 360ms var(--ease);
}
.check__icon::after { transform: rotate(90deg); }
.check__toggle[aria-expanded="true"] .check__icon::after { transform: rotate(0deg); }
.check__toggle:hover .check__title { color: var(--ink-2); }
.check__toggle:focus-visible { outline-offset: -2px; }
.check__panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 420ms var(--ease);
}
.check__inner { min-height: 0; overflow: hidden; }
.check__text {
  max-width: 34em;
  padding: 0 0 22px clamp(48px, 4.6vw, 72px);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
/* collapsed only when JS can open it again */
.js .check__panel { grid-template-rows: 0fr; }
.js .check__inner { visibility: hidden; transition: visibility 0s linear 420ms; }
.js .check.is-open .check__panel { grid-template-rows: 1fr; }
.js .check.is-open .check__inner { visibility: visible; transition-delay: 0s; }
.checks__foot {
  display: grid;
  gap: 16px;
  justify-items: start;
  margin-top: clamp(28px, 3vw, 44px);
}
/* ---------- Media frame ---------- */
.media { margin: 0; }
.media__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--graphite);
}
.media__frame video,
.media__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.012); /* hides a 1px dark column baked into some phone clips */
}
.media__frame video { cursor: pointer; }
.media__caption {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
}
.media__caption > span {
  flex: none;
  padding-top: 1px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chapter--dark .media__caption { color: var(--on-dark-2); }
.chapter--dark .media__caption > span { color: var(--sun); }
.video-error {
  position: absolute;
  inset: auto 12px 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(17, 17, 16, 0.86);
  color: var(--ivory);
  font-size: 13px;
}
.hero .video-error { display: none; }
.video-error button {
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sun);
  text-decoration: underline;
}

/* ---------- 01 · Payment ---------- */
.pay__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}
.pay__head { grid-column: 1 / span 7; grid-row: 1; }
.pay__head .lead { margin-top: clamp(18px, 1.8vw, 26px); }
.pay__figure { grid-column: 9 / -1; grid-row: 1; align-self: end; justify-self: end; }
.pay .deal { grid-column: 1 / -1; grid-row: 2; margin-top: clamp(64px, 7.4vw, 118px); }
.pay__body { grid-column: 1 / -1; grid-row: 3; margin-top: clamp(20px, 2.4vw, 36px); }

/* ---------- 02 · Acceptance ---------- */
.accept__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}
.accept__head { grid-column: 1 / span 8; }
.accept .checks { grid-column: 1 / span 7; margin-top: clamp(40px, 4.4vw, 60px); }
.accept__media {
  grid-column: 9 / -1;
  grid-row: 1 / span 2;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.accept__media .media__frame { aspect-ratio: 9 / 16; max-height: calc(100vh - var(--header-h) - 80px); }

/* ---------- Story panel (03 installation, 05 selection) ---------- */
.story {
  --media-w: min(36vw, 540px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--media-w);
  grid-template-rows: repeat(var(--steps), auto);
  column-gap: clamp(40px, 7vw, 140px);
  align-items: start;
}
.story--media-start { grid-template-columns: var(--media-w) minmax(0, 1fr); }
.story__step { display: contents; }
.story__copy {
  grid-column: 1;
  display: grid;
  grid-template-columns: minmax(0, 34em);
  align-content: center;
  min-height: clamp(260px, 42vh, 420px);
  padding: clamp(32px, 4vh, 48px) 0 clamp(32px, 4vh, 48px) clamp(20px, 2vw, 32px);
  border-left: 1px solid var(--line);
  opacity: 0.46;
  cursor: pointer;
  transition: opacity 500ms var(--ease), border-color 500ms var(--ease);
}
.story--media-start .story__copy { grid-column: 2; }
.story__copy.is-active,
.chapter--dark .story__copy.is-active {
  opacity: 1;
  border-left-color: var(--ink);
  box-shadow: inset 1px 0 0 var(--ink);
}
.no-js .story__copy { opacity: 1; }
.story__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-bottom: 18px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.story__no { color: var(--ink); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; }
.story__no span { color: var(--ink-3); font-weight: 400; }
.story__copy.is-active .story__no { color: var(--sun-ink); }
.story__title {
  font-size: clamp(24px, 2.25vw, 36px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.story__text {
  max-width: 30em;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: var(--fs-body);
  line-height: 1.6;
  text-wrap: pretty;
}
.story__media {
  grid-column: 2;
  grid-row: 1 / span var(--steps);
  position: sticky;
  top: calc(var(--header-h) + max(16px, (100vh - var(--header-h) - var(--media-w) * 1.25) / 2 - 20px));
  width: 100%;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.985);
  transition:
    opacity 520ms var(--ease),
    transform 700ms var(--ease),
    visibility 0s linear 520ms;
}
.story--media-start .story__media { grid-column: 1; }
.story__media.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 520ms var(--ease), transform 700ms var(--ease);
}
.story__media .media__frame { aspect-ratio: 4 / 5; }
.no-js .story__media:first-of-type { opacity: 1; visibility: visible; }

.chapter--dark .story__copy { border-left-color: var(--line-dark); opacity: 0.52; }
.chapter--dark .story__copy.is-active { border-left-color: var(--ivory); box-shadow: inset 1px 0 0 var(--ivory); }
.chapter--dark .story__meta { color: var(--on-dark-3); }
.chapter--dark .story__no { color: var(--ivory); }
.chapter--dark .story__no span { color: var(--on-dark-3); }
.chapter--dark .story__copy.is-active .story__no { color: var(--sun); }
.chapter--dark .story__text { color: var(--on-dark-2); }
.chapter--dark .media__frame { background: #232220; }

.story-progress { display: none; }

@media (min-width: 768px) and (max-width: 1099px) {
  .story { --media-w: min(40vw, 400px); column-gap: 40px; }
  .story__copy { min-height: 300px; }
}

/* ---------- Works & prices ---------- */
.works__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 32px clamp(32px, 5vw, 96px);
  margin-bottom: clamp(40px, 5vw, 72px);
}
.works__manifest {
  max-width: 30em;
  justify-self: end;
  color: var(--ink-2);
  font-size: var(--fs-body);
  line-height: 1.6;
}
.works__manifest strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(19px, 1.5vw, 23px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.02em;
}

.works__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(28px, 3vw, 44px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filters button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.filters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.filters__count {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  transition: color var(--t-fast) var(--ease);
}
.filters button[aria-pressed="true"] .filters__count { color: rgba(251, 249, 244, 0.62); }
.filters button:hover { border-color: var(--ink); }
.filters button.is-active,
.filters button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--ivory);
}
.sort {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sort[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }

/* Editorial rhythm of nine: rows "wide · portrait · square", "square · wide · portrait",
   "portrait · square · wide". Frames come from the position, so any filter or sort keeps
   the rhythm; the default order puts horizontal photos into the wide frames. */
.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: clamp(48px, 4.4vw, 76px) var(--gap);
}
.project-card {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.project-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--linen);
}
.project-card:nth-child(9n + 1),
.project-card:nth-child(9n + 5),
.project-card:nth-child(9n + 9) { grid-column: span 6; }
.project-card:nth-child(9n + 1) .project-card-media,
.project-card:nth-child(9n + 5) .project-card-media,
.project-card:nth-child(9n + 9) .project-card-media { aspect-ratio: 3 / 2; }
.project-card:nth-child(9n + 3) .project-card-media,
.project-card:nth-child(9n + 4) .project-card-media,
.project-card:nth-child(9n + 8) .project-card-media { aspect-ratio: 1 / 1; }
.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform 1100ms var(--ease);
}
.project-card:hover .project-card-media img { transform: scale(1.04); }
.project-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 8px 5px;
  border-radius: var(--radius);
  background: rgba(25, 25, 24, 0.7);
  color: var(--ivory);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.project-card-copy {
  display: flex;
  flex-direction: column;
  padding-top: 16px;
}
.project-card-price {
  order: -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}
.project-card-price strong {
  white-space: nowrap;
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(19px, 1.55vw, 24px);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.project-card-price > span[aria-hidden] { display: none; }
.project-card h3 {
  margin-top: 10px;
  font-size: clamp(15px, 1.05vw, 17px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.project-card-meta {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.4;
}
.project-card:nth-child(9n + 1) h3,
.project-card:nth-child(9n + 5) h3,
.project-card:nth-child(9n + 9) h3 { max-width: 30em; font-size: clamp(16px, 1.2vw, 19px); }
.project-card:focus-visible { outline-offset: 6px; }

.works__more {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 48px;
  margin-top: clamp(48px, 5vw, 80px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.works__more > p { max-width: 36em; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.works__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Calculation + quiz ----------
   The heading picks up from the portfolio; the quiz panel holds the stages, the action and,
   right under the stages, what arrives at the end. The panel is as tall as the current step. */
.calc__head { margin-bottom: clamp(40px, 4.6vw, 64px); }

.quiz-aside { min-width: 0; }
.quiz-aside__title {
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}
.quiz-gets { margin-top: 14px; display: grid; gap: 10px; }
.quiz-gets li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.4;
}
.quiz-gets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
}
.quiz-aside__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: var(--line-2);
}
.quiz-aside__link:hover { text-decoration-color: currentColor; }
.quiz-aside__link .i { width: 16px; height: 16px; }

.quiz-shell {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 3.4vw, 56px);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--sheet);
  box-shadow: 0 30px 60px -48px rgba(41, 40, 38, 0.32);
}
/* narrow screens: stages, step, then what arrives at the end */
.quiz-side { display: contents; }
.quiz-aside { order: 1; }
@media (min-width: 1024px) {
  /* one left column (stages + what arrives), so the list sits right under the stages
     whatever the height of the step on the right */
  .quiz-shell {
    display: grid;
    grid-template-columns: minmax(230px, 3fr) minmax(0, 9fr);
    align-items: start;
    column-gap: clamp(36px, 5vw, 96px);
  }
  .quiz-side { display: block; grid-column: 1; grid-row: 1; min-width: 0; }
  .quiz-shell .quiz-form,
  .quiz-shell .quiz-success { grid-column: 2; grid-row: 1; min-width: 0; max-width: 860px; margin-top: 0; }
  .quiz-aside { margin-top: clamp(32px, 3.4vw, 48px); }

  /* stages as a vertical rail: number, name, and a fill that grows within the stage */
  .quiz-progress .quiz-stages {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    counter-reset: stage;
  }
  .quiz-progress .quiz-stage {
    counter-increment: stage;
    grid-template-columns: 2px 2.6ch minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    column-gap: 16px;
    min-height: 54px;
    font-family: var(--font);
    font-size: 17px;
    letter-spacing: -0.01em;
    text-transform: none;
  }
  .quiz-progress .quiz-stage::before {
    content: counter(stage, decimal-leading-zero);
    grid-column: 2;
    grid-row: 1;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.06em;
  }
  .quiz-progress .quiz-stage.is-current::before,
  .quiz-progress .quiz-stage.is-complete::before { color: var(--sun-ink); }
  .quiz-progress .quiz-stage__label { grid-column: 3; grid-row: 1; }
  .quiz-progress .quiz-stage__track { grid-column: 1; grid-row: 1; align-self: stretch; width: 2px; }
  .quiz-progress .quiz-stage__track i {
    width: 100%;
    height: var(--stage-fill, 0%);
    transition: height 420ms var(--ease);
  }
}
.quiz-reassurance {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-left: 2px solid var(--sun);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.45;
}

.quiz-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.quiz-stage {
  display: grid;
  grid-template-rows: auto 2px;
  gap: 10px;
  min-width: 0;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}
.quiz-stage__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quiz-stage.is-current,
.quiz-stage.is-complete { color: var(--ink); }
.quiz-stage.is-current { font-weight: 500; }
.quiz-stage__track { display: block; overflow: hidden; background: var(--linen); }
.quiz-stage__track i {
  display: block;
  width: var(--stage-fill, 0%);
  height: 100%;
  background: var(--ink);
  transition: width 420ms var(--ease);
}
.quiz-stage.is-complete .quiz-stage__track i { background: var(--sun); }

.quiz-form { margin-top: clamp(28px, 3vw, 40px); }
.quiz-step:focus { outline: none; }
.quiz-step legend {
  display: block;
  width: 100%;
  max-width: 18em;
  padding: 0;
  font-size: clamp(25px, 2.3vw, 34px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.quiz-room-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
}
.quiz-room-context b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ivory);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}
.quiz-room-context b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }
.quiz-room-context i { color: var(--ink-3); font-style: normal; }
.quiz-step > p:not(.field-error) {
  max-width: 34em;
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}

.quiz-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(22px, 2.4vw, 30px);
}
.quiz-choice {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: stretch;
  cursor: pointer;
}
.quiz-choice input,
.quiz-priority input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.quiz-choice > span {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  min-height: 60px;
  padding: 14px 44px 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.quiz-choice > span > strong { font-weight: 400; }
.quiz-choice > span > small { margin-top: 4px; color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.quiz-choice > span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius);
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.quiz-choice:has(input[type="radio"]) > span::after { border-radius: 50%; }
.quiz-choice:hover > span { border-color: var(--ink); }
.quiz-choice:has(input:checked) > span,
.quiz-choice.is-selected:not(:has(input:not(:checked))) > span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--ivory);
}
.quiz-choice:has(input:checked) > span > small { color: rgba(251, 249, 244, 0.74); }
.quiz-choice:has(input:checked) > span::after {
  border-color: var(--sun);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23292826' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.3 4.3L19 7'/%3E%3C/svg%3E") center / 12px no-repeat,
    var(--sun);
}
.quiz-choice:has(input[type="radio"]:checked) > span::after {
  background: radial-gradient(circle, var(--graphite) 0 3px, var(--sun) 3.5px);
}
.quiz-choice:has(input:focus-visible),
.quiz-priority:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.quiz-choice-grid--products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quiz-choice-grid--products .quiz-choice:not(.quiz-choice--image),
.quiz-choice-grid--tasks .quiz-choice--help { grid-column: 1 / -1; }
/* «Подберите для меня» — короткий путь: золотая рамка и подпись «Проще всего».
   Без заливки: тёплая заливка уже означает выбранный ответ. */
.quiz-choice--help > span { border-color: var(--sun); }
.quiz-choice--help > span > strong { font-weight: 500; }
.quiz-choice__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.quiz-choice__eyebrow::before { content: ""; flex: 0 0 6px; height: 6px; border-radius: 50%; background: var(--sun); }
.quiz-choice--image {
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.quiz-choice--image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}
.quiz-choice--image:hover img { transform: scale(1.03); }
.quiz-choice--image img[src*="plisse"] { object-position: 50% 0; }
.quiz-choice--image > span { min-height: 48px; padding-block: 10px; border: 0; border-radius: 0; }
.quiz-choice--image:hover { border-color: var(--ink); }
.quiz-choice--image:has(input:checked) { border-color: var(--ink); }

.quiz-choice--other {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.quiz-choice--other > span { flex-direction: row; justify-content: space-between; align-items: center; padding-right: 16px; }
.quiz-choice--other > span::after { display: none; }
.quiz-choice--other b { font-size: 20px; font-weight: 400; line-height: 1; }

.quiz-shell .field,
.utility-dialog .field {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}
.quiz-shell .field > span,
.utility-dialog .field > span { color: var(--ink-2); font-size: 14px; }
.quiz-shell .field input,
.utility-dialog .field input {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  transition: border-color var(--t-fast) var(--ease);
}
.quiz-shell .field input:hover,
.quiz-shell .field input:focus { border-color: var(--ink); }
.quiz-shell .field input::placeholder { color: var(--ink-3); }
.quiz-other__field { margin-top: 12px !important; }

.quiz-room-list { margin-top: 22px; border-top: 1px solid var(--line); }
.quiz-room-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 152px;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.quiz-room-row strong { font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.counter-field {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  min-height: 48px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.counter-field button { border: 0; background: transparent; font-size: 20px; line-height: 1; }
.counter-field button:hover { background: var(--paper); }
.counter-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  -moz-appearance: textfield;
}
.counter-field input::-webkit-inner-spin-button,
.counter-field input::-webkit-outer-spin-button,
.quiz-size-field input::-webkit-inner-spin-button,
.quiz-size-field input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.quiz-photo-rooms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 12px;
  margin-top: 26px;
}
.quiz-photo-room { min-width: 0; }
.quiz-photo-room h3 { margin-bottom: 10px; font-size: 15px; font-weight: 500; }
.quiz-photo-upload {
  display: flex;
  width: 100%;
  min-height: 92px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: transparent;
  font-size: 14px;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.quiz-photo-upload:hover { border-color: var(--ink); background: var(--paper); }
.quiz-photo-upload,
.quiz-photo-replace { cursor: pointer; }
.quiz-photo-room:has(input:focus-visible) .quiz-photo-upload:not([hidden]),
.quiz-photo-room:has(input:focus-visible) .quiz-photo-replace { outline: 2px solid var(--focus); outline-offset: 3px; }
.quiz-photo-add { font-size: 24px; font-weight: 300; line-height: 1; }
.quiz-photo-preview {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.quiz-photo-preview img { grid-column: 1 / -1; width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius); }
.quiz-photo-name { grid-column: 1 / -1; overflow: hidden; color: var(--ink-2); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.quiz-photo-preview .text-link { justify-self: start; min-height: 44px; font-size: 14px; }
.quiz-photo-remove { width: 44px; height: 44px; border: 0; background: transparent; font-size: 24px; }
.quiz-photo-error { display: block; margin-top: 8px; color: var(--danger); font-size: 13px; line-height: 1.4; }
.quiz-photo-error.is-info { color: var(--ink-2); }

.quiz-dimensions { margin-top: 28px; }
.quiz-dimension-room + .quiz-dimension-room { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.quiz-dimension-room h3 { margin-bottom: 14px; font-size: 17px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.quiz-dimension-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 12px;
}
.quiz-dimension-row + .quiz-dimension-row { margin-top: 14px; }
.quiz-window-label { display: flex; align-items: center; min-height: 52px; color: var(--ink-2); font-family: var(--mono); font-size: 12px; }
.quiz-size-field { display: grid; min-width: 0; gap: 8px; }
.quiz-size-label { color: var(--ink-2); font-size: 13px; line-height: 1.3; }
.quiz-size-input { position: relative; display: block; }
.quiz-size-field input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 10px 40px 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  -moz-appearance: textfield;
}
.quiz-size-field input:focus { border-color: var(--ink); }
.quiz-size-input > span {
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
  pointer-events: none;
}
.quiz-size-field input[aria-invalid="true"] { border-color: var(--danger); }
.quiz-dimension-error { grid-column: 2 / -1; color: var(--danger); font-size: 13px; line-height: 1.4; }

.quiz-inline-link,
.quiz-measure-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 18px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: var(--line-2);
}
.quiz-inline-link:hover,
.quiz-measure-link:hover { text-decoration-color: currentColor; }
/* Подсказки интерфейса на шаге размеров: спокойный тон, без вида кнопки-призыва */
.quiz-size-note {
  display: grid;
  gap: 2px;
  margin-top: 22px;
  padding: 14px 16px 6px;
  border-left: 2px solid var(--sun);
  background: var(--paper);
}
.quiz-size-note p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.quiz-size-note p strong { color: var(--ink); font-weight: 500; }
.quiz-size-note .quiz-inline-link { justify-self: start; margin-top: 4px; }
.quiz-size-by-photo { margin: 0; color: var(--ink-2); font-size: 15px; }
.quiz-dimension-list { margin-top: 24px; }
.quiz-measure-hint { margin: 22px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.quiz-measure-hint .quiz-inline-link { display: inline; min-height: 0; margin: 0; padding: 0; font-size: inherit; font-weight: 400; }

/* Выбранный ответ — светлая тёплая заливка и тёмная рамка. Сплошной графит остаётся
   только у основной кнопки, чтобы выбор не спорил с «Далее» / «Получить расчёт». */
.quiz-shell { --sun-tint: rgba(200, 160, 107, 0.16); }
.quiz-choice:has(input:checked) > span,
.quiz-choice.is-selected:not(:has(input:not(:checked))) > span,
.quiz-priority:has(input:checked) > span {
  border-color: var(--ink);
  background: var(--sun-tint);
  color: var(--ink);
  box-shadow: inset 0 0 0 0.5px var(--ink);
}
.quiz-choice:has(input:checked) > span > small,
.quiz-priority:has(input:checked) small { color: var(--ink-2); }
.quiz-choice--image:has(input:checked) > span { box-shadow: none; }
.quiz-choice--image:has(input:checked) { box-shadow: inset 0 0 0 0.5px var(--ink); }

/* Telegram: по номеру или по никнейму */
.quiz-segment {
  display: inline-grid;
  grid-auto-flow: column;
  margin-top: 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.quiz-segment label { position: relative; cursor: pointer; }
.quiz-segment input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-segment span { display: block; padding: 10px 16px; color: var(--ink-2); font-size: 14px; }
.quiz-segment input:checked + span { background: var(--sun-tint); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.quiz-segment input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Дата замера в квизе — календарь как в форме записи на замер */
.quiz-date { margin-top: 24px; }
.quiz-field-title { display: block; margin-bottom: 10px; padding: 0; color: var(--ink-2); font-size: 14px; }
.quiz-field-title small { color: var(--ink-3); font-size: inherit; }
.quiz-date .date-trigger { min-height: 52px; padding: 0 14px; background: transparent; font-size: 16px; cursor: pointer; }

.quiz-priorities { display: grid; gap: 10px; margin-top: 26px; }
.quiz-priority { position: relative; display: flex; cursor: pointer; }
.quiz-priority > span {
  position: relative;
  display: grid;
  width: 100%;
  gap: 6px;
  padding: 18px 52px 18px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.quiz-priority > span::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 18px;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
}
.quiz-priority strong { font-size: 17px; font-weight: 500; }
.quiz-priority small { color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.quiz-priority:hover > span { border-color: var(--ink); }
.quiz-priority:has(input:checked) > span::after {
  border-color: var(--sun);
  background: radial-gradient(circle, var(--graphite) 0 3px, var(--sun) 3.5px);
}

.quiz-contact-method { margin-top: 26px; }
.quiz-contact-method > legend {
  margin-bottom: 12px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.quiz-choice-grid--contact { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
.quiz-choice-grid--contact .quiz-choice > span {
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  font-size: 14px;
}
.quiz-choice-grid--contact .quiz-choice > span::after { display: none; }

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(28px, 3vw, 40px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.quiz-nav .button { --btn-h: 54px; min-width: 140px; }
.quiz-nav .quiz-next::after {
  content: "→";
  font-size: 17px;
  line-height: 1;
  transition: transform 420ms var(--ease);
}
.quiz-nav .quiz-next:hover::after { transform: translateX(3px); }
.quiz-shell .field-error {
  margin-top: 12px;
  color: var(--danger);
  font-size: 14px;
  line-height: 1.45;
}
.quiz-shell .field-error:empty { display: none; }
.quiz-shell .legal-copy {
  max-width: 36em;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.6;
}
.quiz-shell .legal-copy .text-link { display: inline; }

.quiz-success { padding: 8px 0; }
.success-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--graphite);
  font-size: 22px;
}
.quiz-success h3 {
  margin-top: 22px;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.quiz-success p { max-width: 34em; margin-top: 14px; color: var(--ink-2); line-height: 1.55; }
.quiz-success a { display: block; width: max-content; max-width: 100%; margin-top: 18px; font-weight: 500; }

/* ---------- 04 · Warranty ---------- */
.warranty__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}
.warranty__head { grid-column: 1 / span 7; grid-row: 1; }
.warranty__head .lead { margin-top: clamp(18px, 1.8vw, 26px); }
.warranty__figure { grid-column: 9 / -1; grid-row: 1; align-self: end; justify-self: end; }
.warranty .deal { grid-column: 1 / -1; grid-row: 2; margin-top: clamp(72px, 6.6vw, 104px); }
.warranty__body { grid-column: 1 / -1; grid-row: 3; margin-top: clamp(28px, 3vw, 44px); }

/* ---------- 05 · Selection ---------- */
.approval .section-head--split .lead { color: var(--ink-2); }

/* ---------- Audit (dark inset) ---------- */
.audit {
  position: relative;
  overflow: clip;
  padding-block: clamp(64px, 7vw, 112px);
  background: var(--graphite);
  color: var(--on-dark);
}
.audit__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: end;
}
.audit .kicker { grid-column: 1 / -1; }
.audit__title {
  grid-column: 1 / span 8;
  max-width: 13em;
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: -0.05em;
  text-wrap: pretty;
}
.audit__text {
  grid-column: 1 / span 6;
  max-width: 26em;
  margin-top: clamp(18px, 1.8vw, 26px);
  color: var(--on-dark-2);
  font-size: var(--fs-lead);
  line-height: 1.6;
  text-wrap: pretty;
}
.audit__action {
  grid-column: 9 / -1;
  grid-row: 2 / span 2;
  justify-self: end;
}

/* ---------- Booking: the page's second full-bleed moment ----------
   After many contained chapters the layout breaks to the viewport edge: real footage of
   samples at a client's window on one half, a calm sheet with the form on the other.
   The blinds open over the footage once, the same gesture as the hero. */
.booking {
  position: relative;
  background: var(--ivory);
  color: var(--ink);
}
.booking__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
}
.booking__media {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--shadow);
  color: var(--ivory);
}
.booking__poster,
.booking__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.booking__video { opacity: 0; transition: opacity 900ms var(--ease); }
.booking__video.is-playing { opacity: 1; }
.booking__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(17, 17, 16, 0.86) 0%, rgba(17, 17, 16, 0.5) 30%, rgba(17, 17, 16, 0) 56%),
    linear-gradient(180deg, rgba(17, 17, 16, 0.32) 0%, rgba(17, 17, 16, 0) 22%);
}
.booking__slats {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-rows: repeat(10, 1fr);
  pointer-events: none;
}
.booking__slats i {
  display: block;
  background: var(--paper);
  transform: scaleY(0);
  transform-origin: 50% 50%;
}
.booking__claim {
  position: absolute;
  z-index: 1;
  left: max(var(--pad), calc((100vw - var(--wrap)) / 2));
  right: clamp(24px, 4vw, 64px);
  bottom: clamp(36px, 7vh, 72px);
}
.booking__claim strong {
  display: block;
  color: var(--sun);
  font-size: clamp(40px, 4.4vw, 76px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.048em;
}
.booking__claim span {
  display: block;
  max-width: 20em;
  margin-top: clamp(12px, 1.4vw, 18px);
  color: var(--ivory);
  font-size: clamp(17px, 1.42vw, 22px);
  line-height: 1.4;
}
.booking__panel {
  align-self: center;
  width: 100%;
  max-width: calc(600px + clamp(32px, 5.6vw, 104px) + max(var(--pad), calc((100vw - var(--wrap)) / 2)));
  padding:
    clamp(72px, 10vh, 120px)
    max(var(--pad), calc((100vw - var(--wrap)) / 2))
    clamp(72px, 10vh, 120px)
    clamp(32px, 5.6vw, 104px);
}
.booking__title {
  max-width: 11.5em;
  font-size: clamp(34px, 3.7vw, 62px);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: -0.05em;
  text-wrap: pretty;
}
.booking__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  max-width: 600px;
  margin-top: clamp(32px, 3.8vw, 52px);
}
.field-label,
.appointment-time legend {
  display: block;
  padding: 0;
  margin-bottom: 10px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.appointment-date { position: relative; }
.date-trigger,
.appointment-phone input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--sheet);
  color: var(--ink);
  font-size: 17px;
  text-align: left;
  transition: border-color var(--t-fast) var(--ease);
}
.date-trigger:hover,
.appointment-phone input:hover,
.appointment-phone input:focus { border-color: var(--ink); }
.date-trigger span { color: var(--ink-2); }
.date-trigger.has-value span { color: var(--ink); }
.date-trigger[aria-invalid="true"],
.appointment-phone input[aria-invalid="true"] { border-color: var(--danger); }
.date-trigger svg { flex: none; width: 22px; height: 22px; }
.date-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  width: min(100%, 360px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sheet);
  box-shadow: 0 30px 60px -30px rgba(25, 25, 24, 0.35);
}
.calendar-top {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  margin-bottom: 10px;
  text-align: center;
}
.calendar-top strong { font-size: 16px; font-weight: 500; }
.calendar-top strong::first-letter { text-transform: uppercase; }
.calendar-top button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  font-size: 16px;
}
.calendar-top button:disabled { opacity: 0.3; cursor: not-allowed; }
.calendar-week,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.calendar-week span {
  padding: 6px 0;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
  text-transform: uppercase;
}
.calendar-grid button {
  height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.calendar-grid button:hover:not(:disabled) { border-color: var(--ink); }
.calendar-grid button:disabled { color: var(--ink-3); opacity: 0.45; cursor: not-allowed; }
.calendar-grid button.is-today { box-shadow: inset 0 -2px 0 var(--sun); }
.calendar-grid button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }
.calendar-done {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: transparent;
  font-size: 14px;
}
.appointment-time { margin-top: 26px; }
.time-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.time-options label { position: relative; cursor: pointer; }
.time-options input { position: absolute; opacity: 0; pointer-events: none; }
.time-options span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font-size: 14px;
  text-align: center;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.time-options label:hover span { border-color: var(--ink); }
.time-options input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--ivory); }
.time-options input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
.appointment-phone { position: relative; display: block; margin-top: 26px; }
.appointment-phone input { display: block; font-variant-numeric: tabular-nums; }
.appointment-phone input::placeholder { color: var(--ink-3); }
.phone-valid {
  position: absolute;
  right: 16px;
  bottom: 19px;
  color: var(--success);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.booking .field-error { margin-top: 8px; color: var(--danger); font-size: 14px; line-height: 1.4; }
.booking .field-error:empty { display: none; }
/* the action closes the form: own row under a hairline, the button sized by its label,
   the promise of a call-back right next to it */
.appointment-action {
  display: flex;
  align-items: center;
  gap: 14px 24px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.appointment-submit { --btn-h: 58px; flex: none; padding: 0 28px; font-size: 15px; }
.appointment-explanation { max-width: 21em; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.prototype-note { margin-top: 14px; color: var(--ink-3); font-family: var(--mono); font-size: 11px; line-height: 1.5; }
.booking__success {
  max-width: 560px;
  margin-top: 36px;
  padding: 28px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--sun);
  background: var(--sheet);
}
.booking__success h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.025em; }
.booking__success p { margin-top: 10px; color: var(--ink-2); }

/* ---------- Team ---------- */
.people__head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: end;
  gap: 28px clamp(32px, 5vw, 96px);
}
.people__head .lead { justify-self: end; }
.people-grid {
  margin-top: clamp(48px, 5vw, 80px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}
.person figure {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--linen);
}
.person img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
  transition: transform 1100ms var(--ease);
}
.person:hover img { transform: scale(1.03); }
.person--nikita img { object-position: 50% 14%; }
.person--alena img,
.person--dmitry img { object-position: 50% 12%; }
.person-caption { padding-top: 14px; }
.person-caption h3 { font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.person-caption .role {
  margin-top: 4px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding: clamp(72px, 8vw, 120px) 0 calc(28px + env(safe-area-inset-bottom));
  background: var(--shadow);
  color: var(--on-dark-2);
  font-size: 14px;
  line-height: 1.6;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 44px;
}
.footer-brand { grid-column: 1 / span 4; }
.footer-brand p { max-width: 22em; }
.footer-brand p:first-child {
  color: var(--ivory);
  font-size: clamp(18px, 1.4vw, 21px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.footer-region { margin-top: 8px; color: var(--on-dark-3); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-group { grid-column: span 2; display: grid; align-content: start; gap: 6px; }
.footer-group:nth-of-type(1) { grid-column: 6 / span 2; }
.footer-group:nth-of-type(2) { grid-column: 8 / span 2; }
.footer-legal { grid-column: 10 / -1 !important; }
.footer-group h2 {
  margin-bottom: 10px;
  color: var(--on-dark-3);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-group a { color: var(--ivory); text-decoration: none; }
.footer-group a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-phone { font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.footer-documents button,
.footer-bottom button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ivory);
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: var(--line-dark-2);
  text-underline-offset: 4px;
}
.footer-documents { margin-top: 8px; }
.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
}
.footer-bottom button { color: var(--on-dark-3); font-size: 13px; }

/* Lamella wordmark: open slats close into the solid T, N and I as the page ends;
   the striped E stays as it is — it is the blind inside the logo. */
.footer-mark { margin-top: clamp(64px, 8vw, 128px); }
.footer-mark__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 22px;
  border-radius: var(--radius);
  background: var(--graphite);
  color: var(--ivory);
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 18px 40px -18px rgba(17, 17, 16, 0.6);
  transform: translateY(140%);
  transition: transform 420ms var(--ease);
}
.sticky-cta strong { font-weight: 500; }
.sticky-cta .i { width: 18px; height: 18px; }
.sticky-cta.is-visible { transform: none; }
html[data-quiz-active] .sticky-cta { display: none !important; }
@media (max-width: 767px) {
  .sticky-cta { display: flex; }
}

/* ---------- Dialogs ---------- */
dialog {
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--ivory);
}
dialog::backdrop {
  background: rgba(17, 17, 16, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
dialog[open] { animation: dialog-in 420ms var(--ease) both; }
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ivory);
  color: var(--ink);
}
.dialog-close .i { width: 18px; height: 18px; }
.dialog-close:hover { border-color: var(--ink); }

.project-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border-radius: var(--radius);
}
.project-dialog-content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  max-height: calc(100dvh - 32px);
}
.project-dialog-media { min-height: 0; background: var(--graphite); }
.project-dialog-media img,
.project-dialog-media video { width: 100%; height: 100%; max-height: calc(100dvh - 32px); object-fit: cover; }
.project-dialog-copy {
  overflow-y: auto;
  padding: clamp(28px, 3.4vw, 56px);
  padding-bottom: 96px;
}
.dialog-kicker {
  padding-right: 48px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.project-dialog-copy h2 {
  margin-top: 16px;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.dialog-price {
  display: inline-block;
  margin-top: 18px;
  padding: 2px 8px;
  background: var(--sun-patch);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.dialog-data { margin-top: 26px; border-top: 1px solid var(--line); }
.dialog-data div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.dialog-data dt { color: var(--ink-2); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; line-height: 1.8; text-transform: uppercase; }
.dialog-data dd { font-size: 15px; line-height: 1.5; }
.dialog-demo-note { margin-top: 18px; color: var(--ink-3); font-size: 12px; line-height: 1.5; }
.project-dialog-copy .button { margin-top: 24px; }
.dialog-nav {
  position: absolute;
  bottom: 20px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--ivory);
}
.dialog-nav .i { width: 18px; height: 18px; }
.dialog-nav:hover { border-color: var(--ink); }
.dialog-nav--prev { right: 76px; }
.dialog-nav--next { right: 20px; }

.contract-dialog {
  width: min(820px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border-radius: var(--radius);
}
.contract-dialog__inner {
  max-height: calc(100dvh - 32px);
  padding: clamp(28px, 4vw, 60px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.contract-dialog h2 {
  margin-top: 14px;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.contract-dialog__lead { max-width: 40em; margin-top: 14px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.contract-dialog__section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
  scroll-margin-top: 20px;
}
.contract-dialog__section:focus { outline: none; }
.contract-dialog__section h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.contract-dialog__section > p { margin-top: 12px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.contract-dialog__eyebrow { margin-bottom: 8px; color: var(--sun-ink) !important; font-size: 12px !important; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.contract-clause {
  margin-top: 16px;
  padding: 16px 18px;
  border-left: 2px solid var(--sun);
  background: var(--sheet);
}
.contract-clause span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contract-clause p { font-family: var(--mono); font-size: 13px; line-height: 1.65; }
.contract-checklist { margin-top: 12px; display: grid; gap: 8px; }
.contract-checklist li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.5; }
.contract-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 15px;
  height: 15px;
  border-radius: var(--radius);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23292826' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.3 4.3L19 7'/%3E%3C/svg%3E") center / 11px no-repeat,
    var(--sun);
}
.contract-pdf-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.contract-pdf-link:hover { border-bottom-color: var(--ink); }

.video-dialog {
  width: min(960px, calc(100vw - 32px));
  padding: 24px;
  background: var(--shadow);
  color: var(--ivory);
  border-radius: var(--radius);
}
.video-dialog h2 { padding-right: 56px; font-size: 18px; font-weight: 500; }
.video-dialog video { width: 100%; margin-top: 16px; max-height: 78dvh; background: #000; }

.utility-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
}
.utility-dialog h2 {
  margin-top: 12px;
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.utility-dialog > p { margin-top: 14px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.utility-dialog > .button { margin-top: 24px; }
.utility-dialog input[type="file"] { padding: 14px; background: var(--sheet); }
.utility-dialog .eyebrow { padding-right: 52px; }
.utility-dialog .audit-form__lead { margin-top: 14px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.audit-form__hint { margin-top: 8px; color: var(--ink-3); font-size: 13px; line-height: 1.4; }
.audit-files { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.audit-files:empty { display: none; }
.audit-files li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); font-size: 14px; }
.audit-files li span { min-width: 0; overflow-wrap: anywhere; }
.audit-files button { flex: none; padding: 4px 0; border: 0; background: none; color: var(--ink-2); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.audit-files button:hover { color: var(--ink); }
.utility-dialog .consent-check { margin-top: 20px; }
.audit-form__error { margin-top: 12px; color: var(--danger); font-size: 14px; line-height: 1.4; }
.audit-form__error:empty { display: none; }
.utility-dialog input[aria-invalid="true"] { border-color: var(--danger); }
.utility-dialog form .button, .audit-success .button { margin-top: 22px; }
.audit-success { margin-top: 18px; outline: none; }
.audit-success h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.audit-success p { margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 900px) and (max-width: 1199px) {
  .booking__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

@media (max-width: 1023px) {
  .section-head--split,
  .works__head,
  .people__head { grid-template-columns: 1fr; align-items: start; }
  .section-head--split .lead,
  .works__manifest,
  .people__head .lead { justify-self: start; }

  .pay__grid,
  .warranty__grid,
  .accept__grid,
  .audit__grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .pay__head,
  .pay__figure,
  .pay .deal,
  .pay__body,
  .warranty__head,
  .warranty__figure,
  .warranty .deal,
  .warranty__body,
  .accept__head,
  .accept .checks,
  .accept__media,
  .audit .kicker,
  .audit__title,
  .audit__text,
  .audit__action { grid-column: 1; grid-row: auto; justify-self: stretch; }

  .pay__figure,
  .warranty__figure { justify-self: start; margin-top: clamp(40px, 7vw, 64px); }
  .pay .deal { margin-top: clamp(48px, 8vw, 72px); }
  .deal__name { font-size: clamp(14px, 1.95vw, 17px); }
  .deal__stop { padding-right: 8px; }
  .pay__body { margin-top: clamp(24px, 4vw, 40px); }
  .warranty .deal { margin-top: clamp(56px, 10vw, 72px); }

  .accept__media { position: static; margin-top: clamp(40px, 6vw, 56px); }
  .accept__media .media__frame { aspect-ratio: 4 / 5; max-width: 560px; }

  .quiz-aside { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }

  .audit__action { justify-self: start; margin-top: 30px; }

  .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .footer-brand { grid-column: 1 / -1; }
  .footer-group:nth-of-type(1),
  .footer-group:nth-of-type(2),
  .footer-legal { grid-column: span 4 !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  /* the warranty steps have long names: on tablets they run down a rail like on phones */
  .deal--dark { --row: 50px; }
  .deal--dark .deal__stops { grid-template-columns: minmax(0, 1fr); padding-left: 32px; }
  .deal--dark .deal__stops::before,
  .deal--dark .deal__stops::after {
    left: 5px;
    right: auto;
    top: calc(var(--row) / 2);
    bottom: calc(var(--row) / 2);
    width: 1px;
    height: auto;
  }
  .deal--dark .deal__stops::after { left: 4.5px; width: 2px; transform: scaleY(var(--progress, 1)); transform-origin: 50% 0; }
  .deal--dark .deal__stop {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    height: auto;
    min-height: var(--row);
    padding: 0;
  }
  .deal--dark .deal__stop::before { left: -32px; top: 50%; margin-top: calc(var(--node) / -2); }
  .deal--dark .deal__stop--final::before,
  .deal--dark .deal__stop--you::before { left: -34px; margin-top: -7.5px; }
  .deal--dark .deal__no { flex: none; width: 2.4ch; }
  .deal--dark .deal__name { margin-top: 0; font-size: 19px; }
  .deal--dark .deal__stop--final .deal__name { font-size: 22px; }
}

@media (max-width: 899px) {
  /* works: one wide frame, then a pair of portraits */
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card:nth-child(n) { grid-column: span 1; }
  .project-card:nth-child(3n + 1) { grid-column: 1 / -1; }
  .project-card:nth-child(n) .project-card-media { aspect-ratio: 4 / 5; }
  .project-card:nth-child(3n + 1) .project-card-media { aspect-ratio: 3 / 2; }

  /* booking: footage on top, form below */
  .booking__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .booking__media { min-height: 0; aspect-ratio: 4 / 3; }
  .booking__claim { left: var(--pad); right: var(--pad); bottom: clamp(24px, 5vw, 44px); }
  .booking__panel { max-width: none; padding: clamp(48px, 9vw, 72px) var(--pad) clamp(64px, 11vw, 88px); }
}

@media (max-width: 767px) {
  :root { --section-y: 76px; }
  .chapter--dark::before,
  .audit::before { inset: -10% -40%; }

  .section-head { margin-bottom: 36px; }
  .h2,
  .audit__title,
  .booking__title { letter-spacing: -0.04em; line-height: 1.1; }
  .lead { font-size: 16px; }

  .bignum__value { font-size: clamp(120px, 40vw, 176px); }
  .bignum__label { font-size: 22px; }

  /* process timelines turn vertical: stages on a left rail, the accent stays on the last one */
  .deal { --row: 46px; }
  .deal__stops { grid-template-columns: minmax(0, 1fr); padding-left: 32px; }
  .deal__stops::before,
  .deal__stops::after {
    left: 5px;
    right: auto;
    top: calc(var(--row) / 2);
    bottom: calc(var(--row) / 2);
    width: 1px;
    height: auto;
  }
  .deal__stops::after {
    left: 4.5px;
    width: 2px;
    transform: scaleY(var(--progress, 1));
    transform-origin: 50% 0;
  }
  .deal__stop {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    height: auto;
    min-height: var(--row);
    padding: 0;
  }
  .deal__stop::before,
  .deal__stop--final::before,
  .deal__stop--you::before { left: -32px; top: 50%; margin-top: calc(var(--node) / -2); }
  .deal__stop--final::before,
  .deal__stop--you::before { left: -34px; margin-top: -7.5px; }
  .deal__no { flex: none; width: 2.4ch; }
  .deal__name { margin-top: 0; font-size: 18px; }
  .deal__stop--final .deal__name { font-size: 24px; }
  .deal--dark .deal__name { font-size: 16.5px; }
  .deal--dark .deal__stop--final .deal__name { font-size: 19px; }

  .checks__foot { margin-top: 24px; }

  .booking__media { aspect-ratio: 4 / 5; }
  .booking__claim strong { font-size: clamp(34px, 10.4vw, 48px); }
  .booking__claim span { font-size: 16px; }
  .booking__title { font-size: clamp(30px, 8.4vw, 40px); }
  .footer-mark { margin-top: 48px; }

  /* Story → swipe rail of cards */
  .story,
  .story--media-start {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    scrollbar-width: none;
  }
  .story::-webkit-scrollbar { display: none; }
  .story__step {
    display: flex;
    flex: 0 0 84%;
    flex-direction: column;
    min-width: 0;
    scroll-snap-align: start;
  }
  .story__media,
  .story--media-start .story__media {
    order: -1;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .story__media .media__caption { display: none; }
  .story__copy,
  .story--media-start .story__copy,
  .chapter--dark .story__copy {
    display: block;
    min-height: 0;
    padding: 18px 0 0;
    border: 0;
    box-shadow: none !important;
    opacity: 1;
    cursor: auto;
  }
  .story__meta { margin-bottom: 10px; font-size: 10.5px; }
  .story__title { font-size: 22px; line-height: 1.16; }
  .story__text { margin-top: 10px; font-size: 15px; line-height: 1.55; }
  .story-progress {
    display: flex;
    gap: 6px;
    margin-top: 22px;
  }
  .story-progress i {
    flex: 1;
    height: 2px;
    background: var(--linen);
    transition: background-color var(--t-base) var(--ease);
  }
  .story-progress i.is-active { background: var(--ink); }
  .chapter--dark .story-progress i { background: var(--line-dark); }
  .chapter--dark .story-progress i.is-active { background: var(--sun); }

  .works__toolbar { flex-direction: column; align-items: stretch; padding-bottom: 14px; }
  .filters {
    flex-wrap: nowrap;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .sort { align-self: flex-end; }
  .project-grid { gap: 28px 12px; }
  .project-card-copy { padding-top: 12px; }
  .project-card-price { font-size: 10.5px; }
  .project-card-price strong { font-size: 18px; }
  .project-card:nth-child(n) h3 { font-size: 14px; }
  .project-card-meta { font-size: 12px; }
  .project-card-badge { top: 8px; left: 8px; font-size: 9.5px; }
  .works__more { grid-template-columns: 1fr; }
  .works__actions { flex-direction: column; align-items: stretch; }

  .calc__head { margin-bottom: 28px; }
  .quiz-shell {
    margin-inline: calc(var(--pad) * -1);
    padding: 26px var(--pad) 22px;
    border-inline: 0;
    border-radius: 0;
  }
  .quiz-stages { gap: 8px; }
  .quiz-stage { font-size: 10px; letter-spacing: 0.04em; }
  .quiz-step legend { font-size: 25px; }
  .quiz-choice-grid { gap: 8px; }
  .quiz-choice > span { min-height: 58px; padding: 12px 38px 12px 12px; font-size: 14px; }
  .quiz-choice > span::after { right: 12px; }
  .quiz-choice-grid--tasks { grid-template-columns: 1fr; }
  .quiz-choice-grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quiz-choice--image img { aspect-ratio: 16 / 9; }
  .quiz-choice--image > span { min-height: 44px; }
  .quiz-room-context b { font-size: 14px; }
  .quiz-room-row { grid-template-columns: minmax(0, 1fr) 136px; gap: 12px; }
  .quiz-photo-rooms { gap: 16px 10px; }
  .quiz-dimension-row { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .quiz-size-field input { padding: 10px 30px 10px 10px; }
  .quiz-size-input > span { right: 10px; }
  .quiz-choice-grid--contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quiz-nav {
    position: sticky;
    bottom: 0;
    z-index: 4;
    gap: 10px;
    margin-inline: calc(var(--pad) * -1);
    padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 254, 251, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .quiz-nav .button { --btn-h: 52px; flex: 1; min-width: 0; padding: 0 12px; font-size: 14px; }
  .quiz-nav > span:empty { display: none; }

  .audit__title { font-size: 28px; }

  .time-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .appointment-action { flex-direction: column; align-items: stretch; }
  .appointment-submit { justify-content: space-between; }

  .people-grid {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    scrollbar-width: none;
  }
  .people-grid::-webkit-scrollbar { display: none; }
  .person { flex: 0 0 62%; scroll-snap-align: start; }

  .footer-group:nth-of-type(1),
  .footer-group:nth-of-type(2),
  .footer-legal { grid-column: 1 / -1 !important; }
  .footer__grid { row-gap: 34px; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  .project-dialog,
  .contract-dialog,
  .utility-dialog,
  .video-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
  .project-dialog { overflow: hidden; }
  .project-dialog::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    height: calc(84px + env(safe-area-inset-bottom));
    background: linear-gradient(0deg, var(--ivory) 62%, rgba(251, 249, 244, 0));
    pointer-events: none;
  }
  .project-dialog-content {
    grid-template-columns: 1fr;
    height: 100dvh;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .contract-dialog__inner { max-height: 100dvh; }
  .project-dialog-media img,
  .project-dialog-media video { max-height: 56dvh; }
  .project-dialog-copy { overflow: visible; padding: 26px var(--pad) 110px; }
  .dialog-data div { grid-template-columns: 1fr; gap: 4px; }
  .dialog-nav { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .dialog-nav--prev { right: auto; left: 16px; }
  .dialog-nav--next { right: 16px; }
}

@media (max-width: 380px) {
  .appointment-submit { padding: 0 18px; font-size: 15px; white-space: normal; text-align: left; }
  .quiz-stage { font-size: 9.5px; }
  .quiz-dimension-row { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .hero__offer { font-size: 46px; }
}

@media (max-width: 1023px) and (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 560px; }
  .hero__inner { padding-top: calc(var(--header-h) + 28px); }
}

/* ---------- Reduced motion: everything is shown in its final state ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
  .hero__slats,
  .booking__slats { display: none; }
}
