/* HomePro v3 — "Майсторът": warm fresh plaster, graphite and HomePro orange. The site renovates itself while you look:
   headings are plastered on with a trowel, photos are painted in with a roller, projects are laid like tiles. */
:root {
  --con: #efe9df; --con2: #e3dbce; --grout: #d3c9ba;
  --ink: #1c1d1f; --ink2: #242628; --ink3: #33363a;
  --paper: #faf7f1;
  --chalk: #2f6fae; --chalk2: #7db4e6;
  --mark: #e0572c; --salmon: #f2a487;
  --laser: #ff2f2f;
  --lcd: #c3cdb6; --lcd-ink: #1b2417;
  --mute: #5f5a53; --mute-d: rgba(244, 239, 231, .7);
  --line: rgba(28, 29, 31, .15); --line-d: rgba(244, 239, 231, .15);
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Script", cursive;
  --pad: clamp(18px, 4.4vw, 72px);
  --e: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--con); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; color: var(--ink); font: 400 17px/1.65 var(--sans); background: var(--con); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--mark); color: #fff; }
.wrap { position: relative; width: 100%; max-width: 1300px; margin: 0 auto; padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); }
main > section, main > div, .ft { position: relative; z-index: 2; }
main > section { overflow-x: clip; }            /* scaled-up stamps before they land must not widen the page */
.hero, .mf { overflow: visible; }               /* sections with a pinned (sticky) stage: no clipping, it can make the stage jitter on iPhone */
.sec { padding-block: clamp(76px, 9vw, 136px); }

/* ---------- type ---------- */
.h2 { font: 800 clamp(31px, 5.4vw, 82px)/1.02 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.h2 em { font-style: normal; color: var(--mark); }
.sec-head { display: grid; gap: 20px; justify-items: start; max-width: 900px; margin-bottom: clamp(36px, 5vw, 68px); }
.tw + .lead, .tw + .sv__hint { margin-top: 6px; }
.lead { max-width: 560px; color: var(--mute); font-size: clamp(16px, 1.25vw, 19px); }
/* headings are plastered on: a trowel smooths each line from left to right, the fresh plaster dries a moment later */
.tw { position: relative; }
.tw-w { display: inline-block; }
.tw-w.wet { opacity: .55; }
.tw-w.dry { opacity: 1; transition: opacity .9s ease-out; }
.trowel { position: absolute; left: 0; top: 0; z-index: 2; width: 1.5em; height: 1.05em; pointer-events: none; opacity: 0; will-change: transform, opacity; }
.trowel svg { position: absolute; left: -.045em; top: -.32em; width: 1.45em; height: 1.16em; overflow: visible; filter: drop-shadow(0 .05em .08em rgba(28, 20, 10, .3)); }

/* photos are painted in: a roller runs down each stripe and leaves the photo behind it */
.roller { position: absolute; left: 0; top: 0; z-index: 4; height: 0; pointer-events: none; opacity: 0; will-change: transform, opacity; --k: 1; }
.roller__s { position: absolute; left: 5%; right: 5%; top: calc(-15px * var(--k)); height: calc(30px * var(--k)); border-radius: 999px;
  background: linear-gradient(180deg, #fffbf4 0%, #f0e7da 34%, #d7cab6 74%, #bba98f 100%); box-shadow: 0 calc(8px * var(--k)) calc(18px * var(--k)) rgba(30, 22, 12, .34), inset 0 2px 0 rgba(255, 255, 255, .75); }
.roller__s::before { content: ""; position: absolute; inset: 22% 4%; border-radius: 999px; background: repeating-linear-gradient(90deg, rgba(90, 70, 40, .07) 0 2px, transparent 2px 5px); }
.roller__a { position: absolute; left: 50%; right: calc(5% - 7px * var(--k)); top: 0; height: calc(28px * var(--k)); border: 3px solid #45484d; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.roller__a::after { content: ""; position: absolute; left: calc(-7px * var(--k)); top: calc(100% - 2px); width: calc(14px * var(--k)); height: calc(60px * var(--k)); border-radius: 999px; background: linear-gradient(90deg, #f3825a, var(--mark) 45%, #b5421e); box-shadow: 0 6px 12px rgba(0, 0, 0, .3); }

/* ---------- buttons ---------- */
.btn { --sh: var(--ink); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 24px; border: 0; border-radius: 3px; background: var(--mark); color: #fff; font: 800 14px/1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; box-shadow: 4px 4px 0 var(--sh); transition: transform .25s var(--e), box-shadow .25s var(--e); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--sh); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--sh); }
.btn svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.btn--sm { padding: 11px 15px; font-size: 13px; box-shadow: 3px 3px 0 var(--sh); }
.btn--ghost { background: rgba(0, 0, 0, .25); color: #fff; box-shadow: inset 0 0 0 2px #fff, 4px 4px 0 rgba(0, 0, 0, .45); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px #fff, 6px 6px 0 rgba(0, 0, 0, .45); }
.btn--ink { background: var(--ink); color: #fff; --sh: var(--mark); }
.btn--wa { background: #25d366; color: #072a13; }
.btn--viber { background: #7360f2; color: #fff; }

/* ---------- loader: a tape measure that pulls out while the first frames load ---------- */
.loader { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; align-content: center; gap: 22px; background: var(--con); transition: opacity .6s .1s, visibility 0s .8s; }
.loader.gone { opacity: 0; visibility: hidden; }
.loader__tape { display: flex; align-items: center; width: min(80vw, 560px); }
.loader__case { position: relative; z-index: 2; flex: none; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 24px; background: linear-gradient(145deg, #2e3238, #121417); box-shadow: 0 16px 30px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .08); }
.loader__case::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 34px; margin-top: -17px; border-radius: 3px; background: #2a2e34; }
.loader__case svg { width: 54px; height: 44px; }
.loader__case .pl { fill: #a6afb6; opacity: .7; } .loader__case .ln { fill: none; stroke: #7db4e6; stroke-width: 30; stroke-linejoin: round; stroke-linecap: round; }
.loader__blade { position: relative; flex: 1; height: 28px; }
.loader__blade i { position: absolute; left: 0; top: 0; height: 100%; width: calc(var(--lp, 0) * 100%); border-radius: 0 3px 3px 0; box-shadow: 0 6px 14px rgba(0, 0, 0, .15); transition: width .5s var(--e);
  background: linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px) 0 0 / 40px 14px repeat-x, linear-gradient(90deg, var(--ink) 0 1px, transparent 1px) 0 0 / 8px 7px repeat-x, linear-gradient(90deg, var(--mark) 0 2px, transparent 2px) 0 0 / 200px 100% repeat-x, #f4f0e6; }
.loader__blade i::after { content: ""; position: absolute; right: -4px; top: -3px; bottom: -3px; width: 5px; border-radius: 1px; background: #8a9098; }
.loader.done .loader__blade i { width: 0 !important; transition: width .32s cubic-bezier(.7, 0, .9, .35); }
.loader__read { font: 700 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.loader__read b { display: inline-block; min-width: 3ch; text-align: right; font-size: 15px; }

/* ---------- header ---------- */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; gap: 26px; padding: calc(12px + env(safe-area-inset-top)) max(var(--pad), env(safe-area-inset-right)) 12px max(var(--pad), env(safe-area-inset-left)); color: #fff; transition: background .4s, color .4s, box-shadow .4s, transform .5s var(--e); }
.bar.is-light { color: var(--ink); background: rgba(239, 233, 223, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.bar.is-hide { transform: translateY(-110%); }
.bar:not(.is-light) .btn { --sh: rgba(0, 0, 0, .5); }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; font: 800 19px/1 var(--display); letter-spacing: -.04em; }
.logo svg { width: 40px; height: 33px; flex: none; }
.logo .pl { fill: #a6afb6; opacity: .6; }
.logo .ln { fill: none; stroke: #5b97c9; stroke-width: 30; stroke-linejoin: round; stroke-linecap: round; transition: stroke .4s; }
.logo b { font-weight: 800; color: #7db4e6; transition: color .4s; }
.is-light .logo .ln { stroke: var(--chalk); } .is-light .logo b { color: var(--chalk); }
.nav { display: flex; gap: 22px; }
.nav a { font: 700 14px/1 var(--sans); letter-spacing: -.005em; text-decoration: none; opacity: .88; transition: color .3s, opacity .3s; }
.nav a:hover { opacity: 1; color: var(--mark); }
/* language switch, top right */
.lang { display: flex; flex: none; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; font: 800 12.5px/1 var(--sans); letter-spacing: .04em; }
.lang a { display: block; padding: 7px 9px; border-radius: 999px; text-decoration: none; opacity: .72; transition: opacity .2s, background .2s, color .2s; }
.lang a:hover { opacity: 1; }
.lang a[aria-current="page"] { background: var(--mark); color: #fff; opacity: 1; }

/* ---------- hero ---------- */
.hero { height: 860vh; background: #0b0c0d; transition: background-color .5s; }
.hero.is-wall { background-color: var(--con); }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8, 9, 10, .55), rgba(8, 9, 10, 0) 26%, rgba(8, 9, 10, 0) 44%, rgba(8, 9, 10, .7) 76%, rgba(8, 9, 10, .93)), linear-gradient(90deg, rgba(8, 9, 10, .5), rgba(8, 9, 10, 0) 62%); }
.hero__txt { position: absolute; left: max(var(--pad), env(safe-area-inset-left)); right: max(var(--pad), env(safe-area-inset-right)); bottom: clamp(74px, 12vh, 130px); color: #fff; opacity: 0; pointer-events: none; will-change: opacity, transform; }
.hero__txt.on { pointer-events: auto; }
.tagline { font: 600 12px/1.5 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
.hero h1 { margin: 16px 0 18px; font: 900 clamp(36px, 7.6vw, 124px)/.95 var(--display); letter-spacing: -.05em; text-shadow: 0 6px 40px rgba(0, 0, 0, .4); }
.chalk { position: relative; display: inline-block; font-style: normal; color: var(--salmon); }
.chalk::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.04em; height: .07em; min-height: 3px; border-radius: 2px; opacity: 0; background: repeating-linear-gradient(90deg, #7db4e6 0 10px, rgba(125, 180, 230, .55) 10px 12px); }
.ready .chalk::after { animation: chalk .8s .2s both; }
.hero__sub { max-width: 520px; font-size: clamp(16px, 1.4vw, 20px); color: rgba(255, 255, 255, .9); text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.hero__hint { display: flex; align-items: center; gap: 12px; margin-top: 26px; font: 600 11.5px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.hero__hint i { position: relative; width: 22px; height: 34px; border: 2px solid currentColor; border-radius: 12px; }
.hero__hint i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--salmon); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px 18px; }
/* the closing picture: the canvas draws the room into the slot, the words sit beside it on the wall */
.hero__end { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "txt pic"; align-items: center; gap: clamp(28px, 4vw, 72px);
  padding: calc(86px + env(safe-area-inset-top)) max(var(--pad), env(safe-area-inset-right)) 56px max(var(--pad), env(safe-area-inset-left)); pointer-events: none; }
.hero__slot { grid-area: pic; justify-self: end; width: 100%; max-height: 100%; aspect-ratio: 3 / 2; }
.hero__e { grid-area: txt; color: var(--ink); opacity: 0; will-change: opacity, transform; }
.hero__e.on { pointer-events: auto; }
.hero__e h2 { margin-bottom: 28px; font: 900 clamp(30px, 3.2vw, 54px)/1 var(--display); letter-spacing: -.05em; }
.hero__e em { font-style: normal; color: var(--mark); }
.hero__rule { position: absolute; left: max(var(--pad), env(safe-area-inset-left)); right: max(var(--pad), env(safe-area-inset-right)); bottom: 16px; height: 38px; pointer-events: none; overflow: hidden; }
.hero__rule i { position: absolute; left: 0; right: 0; bottom: 0; height: 18px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .85) 0 1.5px, transparent 1.5px) 0 100% / 80px 18px repeat-x, linear-gradient(90deg, rgba(255, 255, 255, .55) 0 1px, transparent 1px) 0 100% / 40px 11px repeat-x, linear-gradient(90deg, rgba(255, 255, 255, .3) 0 1px, transparent 1px) 0 100% / 8px 6px repeat-x; }
.hero__rule::before { content: ""; position: absolute; left: 0; bottom: 0; width: 2px; height: 26px; background: var(--laser); box-shadow: 0 0 8px var(--laser); }
.hero__rule b { position: absolute; left: 8px; bottom: 21px; font: 700 11px/1 var(--mono); letter-spacing: .08em; color: #fff; }

/* ---------- 01 manifesto ---------- */
.mf { position: relative; }
.mf__track { height: 230vh; }
.me { position: relative; padding-block: clamp(36px, 4vw, 64px) clamp(76px, 9vw, 136px); }
.mf__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.mf__grid { display: block; }
.mf__txt { max-width: calc(57vw - 56px - max(var(--pad), (100vw - 1300px) / 2 + var(--pad))); }
.mf__big { padding-top: 40px; font: 700 clamp(26px, 3.15vw, 52px)/1.16 var(--display); letter-spacing: -.035em; }
.mf__big .w { color: rgba(28, 29, 31, .15); transition: color .35s; }
.mf__big .w.on { color: var(--ink); }
.mf__big .w.hl.on { color: var(--mark); }
/* rubber stamps: double ring, the words running round the edge, the number in the middle, worn ink.
   Four in a row at every width; each spins in while its number counts up */
.stamps { display: grid; grid-template-columns: repeat(4, minmax(0, 136px)); gap: 16px; margin-top: 34px; }
.stamp { position: relative; aspect-ratio: 1; color: var(--mark); opacity: 0; transform: rotate(-200deg) scale(.4); }
.stamp svg { display: block; width: 100%; height: 100%; overflow: visible;
  -webkit-mask: url("assets/tex/stamp-grit.webp") 0 0 / 150px repeat; mask: url("assets/tex/stamp-grit.webp") 0 0 / 150px repeat; }
.stamp circle { fill: none; stroke: currentColor; }
.stamp .st-o { stroke-width: 3.4; }
.stamp .st-i { stroke-width: 1.1; }
.stamp .st-c { stroke-width: 1.5; }
.stamp text { fill: currentColor; }
.stamp .st-r { font: 800 10.5px var(--sans); }
.stamp .st-n { font: 900 34px var(--display); letter-spacing: -.04em; }
.stamp .st-u { font: 800 8px var(--sans); letter-spacing: .06em; }
.stamp--ink { color: var(--ink); }
.stamp--chalk { color: var(--chalk); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.stamp.in { animation: stampSpin 1.05s cubic-bezier(.22, .9, .3, 1) both; }
@keyframes stampSpin { 0% { opacity: 0; transform: rotate(-200deg) scale(.4); } 45% { opacity: 1; } 78% { transform: rotate(calc(var(--sr, -6deg) + 8deg)) scale(1.07); } 100% { opacity: 1; transform: rotate(var(--sr, -6deg)) scale(1); } }
.mf__ph { position: absolute; top: 0; right: 0; bottom: 0; width: 43vw; margin: 0; overflow: visible; background: var(--con2); }
.mf__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mf__top { object-position: 50% 50%; }
.mf__ph figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; height: 120px; background: linear-gradient(transparent, rgba(10, 8, 6, .55)); pointer-events: none; }
.mf__cap { position: absolute; left: clamp(18px, 2.4vw, 34px); bottom: clamp(16px, 2.2vw, 28px); color: #fff; font: 700 15px/1.2 var(--sans); letter-spacing: .01em; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); transition: opacity .5s, transform .6s var(--e); }
.mf__cap--b { opacity: 0; transform: translateY(8px); }
.mf__ph.is-done .mf__cap--a { opacity: 0; transform: translateY(-8px); }
.mf__ph.is-done .mf__cap--b { opacity: 1; transform: none; }

/* ---------- the master: photo and diploma ---------- */
.me__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 90px); align-items: center; }
/* he steps out of the picture: the frame's top edge slides down while he stays, so his head and shoulders come out in front of it;
   the room behind him goes soft and a little darker. A graphite frame like the closing picture of the film. */
.me__ph { position: relative; margin: 0; }
.me__in { position: relative; z-index: 1; overflow: hidden; border-radius: 3px; will-change: transform, clip-path; }
.me__in > img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.me__in .me__blur { position: absolute; inset: 0; height: 100%; opacity: 0; }
.me__rim { position: absolute; inset: 0; z-index: 3; border: 6px solid var(--ink); border-radius: 3px; pointer-events: none; }
.me__bar { position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 6px; background: var(--ink); will-change: transform; pointer-events: none; }
.me__cut { position: absolute; left: 0; top: 0; z-index: 4; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transform-origin: 50% 94%; will-change: transform; pointer-events: none; }
.me__ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; z-index: 5; border-radius: 0 0 3px 3px; pointer-events: none; background: linear-gradient(transparent, rgba(10, 8, 6, .5)); }
.js .me__in > img:first-child { opacity: 0; transform: scale(1.06); transition: opacity 1s ease, transform 1.8s var(--e); }
.js .me__ph.is-shown .me__in > img:first-child { opacity: 1; transform: none; }
.js .me__cut { opacity: 0; }
.js .me__ph.is-cut .me__cut { opacity: 1; }
.js .me__ph::after { opacity: 0; transition: opacity 1s; }
.js .me__ph.is-shown::after { opacity: 1; }
/* a wipe of light across the photo once it is in */
.me__in::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .42) 50%, transparent 62%); transform: translateX(-130%); }
.me__ph.is-shined .me__in::before { transform: translateX(130%); transition: transform 1.3s cubic-bezier(.45, 0, .25, 1); }
.me__sig { position: absolute; left: 7%; bottom: 5%; z-index: 6; font: 700 clamp(40px, 4.6vw, 66px)/1 var(--hand); color: #fff; transform: rotate(-6deg); text-shadow: 0 2px 16px rgba(0, 0, 0, .45); clip-path: inset(-20% 100% -30% 0); transition: clip-path 1.6s cubic-bezier(.6, .1, .3, 1); pointer-events: none; }
.me__ph.is-signed .me__sig { clip-path: inset(-20% -5% -30% 0); }
.me__txt { display: grid; gap: 26px; justify-items: start; }
/* the diploma as a graphite credential card: the top of the document clipped on, the facts beside it */
.me__card { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 26px; align-items: center; width: 100%; max-width: 640px; margin-top: 18px; padding: 24px; border-radius: 6px; background: var(--ink); color: #fff; box-shadow: 0 30px 60px rgba(30, 22, 12, .25); }
.me__thumb { position: relative; display: block; margin: -46px 0 0 -6px; padding: 0; border: 0; background: none; cursor: zoom-in; transform: rotate(-4deg); box-shadow: 0 18px 34px rgba(0, 0, 0, .45); transition: transform .9s var(--spring), opacity .5s; }
.me__thumb::before { content: ""; position: absolute; z-index: 2; top: -9px; left: 50%; width: 44px; height: 18px; margin-left: -22px; border-radius: 3px; background: linear-gradient(#5a5e64, #2c2f33); box-shadow: 0 2px 4px rgba(0, 0, 0, .4); }
.me__thumb:hover { transform: rotate(0) scale(1.04); }
.me__thumb img { width: 100%; border-radius: 2px; }
.me__card.pre .me__thumb { transform: translateY(26px) rotate(8deg); opacity: 0; }
.me__info { display: grid; gap: 16px; justify-items: start; }
.me__kind { font: 800 15px/1.3 var(--display); letter-spacing: -.02em; color: var(--salmon); }
.me__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0; width: 100%; }
.me__facts div { padding-top: 8px; border-top: 1px solid var(--line-d); }
.me__facts dt { font: 600 12.5px/1.2 var(--sans); color: var(--mute-d); }
.me__facts dd { margin: 4px 0 0; font: 800 15.5px/1.3 var(--sans); }
.me__open { --sh: #000; }
.lb.is-single .lb__nav { display: none; }

/* ---------- caution tape ---------- */
.xt { position: relative; z-index: 3; height: clamp(150px, 15vw, 220px); margin-block: -30px -10px; overflow: hidden; pointer-events: none; }
.xt__band { position: absolute; left: -8vw; right: -8vw; top: 50%; height: clamp(46px, 4.4vw, 64px); margin-top: calc(clamp(46px, 4.4vw, 64px) / -2); display: flex; align-items: center; overflow: hidden; box-shadow: 0 10px 26px rgba(0, 0, 0, .2); }
.xt__band--a { z-index: 2; background: var(--mark); color: var(--ink); transform: rotate(-3.2deg); }
.xt__band--b { background: var(--ink); color: var(--con); transform: rotate(2.4deg); }
.xt__band::before, .xt__band::after { content: ""; position: absolute; left: 0; right: 0; height: 7px; background: repeating-linear-gradient(-45deg, var(--ink) 0 10px, transparent 10px 20px); }
.xt__band--b::before, .xt__band--b::after { background: repeating-linear-gradient(-45deg, var(--mark) 0 10px, transparent 10px 20px); }
.xt__band::before { top: 0; } .xt__band::after { bottom: 0; }
.xt__track { display: flex; flex: none; white-space: nowrap; will-change: transform; font: 800 clamp(15px, 1.6vw, 23px)/1 var(--display); letter-spacing: -.01em; text-transform: uppercase; }
.xt__track span { display: inline-flex; align-items: center; gap: 1.1em; padding-right: 1.1em; }
.xt__track span::after { content: ""; display: inline-block; width: .42em; height: .42em; background: currentColor; transform: rotate(45deg); }

/* ---------- 02 services ---------- */
.sv { padding-block: clamp(76px, 9vw, 136px) clamp(64px, 8vw, 116px); overflow: hidden; }
.sv__list { border-bottom: 1px solid var(--line); }
.sv__row { border-top: 1px solid var(--line); }
.sv__head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 50px; align-items: center; gap: 16px; width: 100%; padding: clamp(18px, 2.1vw, 30px) 0; border: 0; background: none; text-align: left; cursor: pointer; }
.sv__n { font: 700 13px/1 var(--mono); letter-spacing: .1em; color: var(--chalk); }
.sv__t { font: 800 clamp(23px, 4.3vw, 64px)/1.04 var(--display); letter-spacing: -.04em; transition: transform .5s var(--e), color .3s; }
.sv__head:hover .sv__t, .sv__head:focus-visible .sv__t { transform: translateX(14px); color: var(--mark); }
.sv__row.is-open .sv__t { color: var(--mark); }
.sv__tag { padding: 8px 12px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 12.5px/1 var(--sans); }
.sv__pm { position: relative; justify-self: end; width: 48px; height: 48px; border: 2px solid currentColor; border-radius: 50%; transition: background .3s, border-color .3s, color .3s; }
.sv__pm::before, .sv__pm::after { content: ""; position: absolute; left: 13px; right: 13px; top: 50%; height: 2.5px; margin-top: -1.25px; background: currentColor; transition: transform .45s var(--e); }
.sv__pm::after { transform: rotate(90deg); }
.sv__row.is-open .sv__pm::after { transform: rotate(0); }
.sv__head:hover .sv__pm, .sv__head:focus-visible .sv__pm { background: var(--ink); border-color: var(--ink); color: var(--con); }
.sv__row.is-open .sv__pm { background: var(--mark); border-color: var(--mark); color: #fff; }
/* tells people the rows open: a hint under the heading, and the buttons pulse once when the list comes into view */
.sv__hint { display: flex; align-items: center; gap: 12px; font: 600 15px/1.4 var(--sans); color: var(--mute); }
.sv__hint i { position: relative; flex: none; width: 28px; height: 28px; border: 1.5px solid var(--mark); border-radius: 50%; animation: hintPing 2.4s ease-out infinite; }
.sv__hint i::before, .sv__hint i::after { content: ""; position: absolute; left: 7.5px; right: 7.5px; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--mark); }
.sv__hint i::after { transform: rotate(90deg); }
@keyframes hintPing { 0% { box-shadow: 0 0 0 0 rgba(224, 87, 44, .45); } 70%, 100% { box-shadow: 0 0 0 12px rgba(224, 87, 44, 0); } }
.sv__list.in .sv__row:not(.is-open) .sv__pm { animation: pmPulse 1.2s var(--e) both; animation-delay: calc(var(--i, 0) * 110ms + .15s); }
@keyframes pmPulse { 0% { box-shadow: 0 0 0 0 rgba(224, 87, 44, .5); } 35% { transform: scale(1.14); background: var(--mark); border-color: var(--mark); color: #fff; } 100% { box-shadow: 0 0 0 18px rgba(224, 87, 44, 0); transform: none; } }
.sv__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--e); }
.sv__row.is-open .sv__body { grid-template-rows: 1fr; }
.sv__in { min-height: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 64px); align-items: start; padding-left: 80px; }
.sv__ph { position: relative; margin: 4px 0 34px; overflow: visible; }
.sv__ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sv__copy { display: grid; gap: 18px; align-content: start; padding: 8px 0 38px; }
.sv__copy p { max-width: 520px; font-size: clamp(16px, 1.35vw, 20px); color: var(--mute); }
.spec { display: flex; flex-wrap: wrap; gap: 6px; }
.spec li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font: 600 13.5px/1 var(--sans); }
.sv__float { position: fixed; left: 0; top: 0; z-index: 40; width: 270px; margin: 0; border-radius: 3px; overflow: hidden; box-shadow: 0 24px 50px rgba(0, 0, 0, .3); pointer-events: none; opacity: 0; transition: opacity .25s; will-change: transform; }
.sv__float.on { opacity: 1; }
.sv__float img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
/* ---------- 04 diary ---------- */
/* Light, like the rest of the page. The dark speckled concrete slid past the pinned photo while scrolling, which read as the photo
   jumping on phones. Now the pinned frame carries its own background, so nothing moves behind the photo while it is pinned.
   No clip-path or overflow clipping on this section: it holds a pinned child. */
.dy { height: 430vh; overflow: visible; }
.dy__pin { position: sticky; top: 0; height: 100vh; height: 100lvh; display: flex; align-items: center; background: var(--con); }
.dy__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.dy__txt { display: grid; gap: 22px; align-content: center; }
.dy__steps { display: grid; gap: 2px; margin-top: 8px; }
.dy__steps li { display: grid; grid-template-columns: 66px 1fr; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); color: rgba(28, 29, 31, .38); transition: color .4s; }
.dy__steps time { font: 700 13px/1 var(--mono); letter-spacing: .06em; }
.dy__steps li.done { color: rgba(28, 29, 31, .6); }
.dy__steps li.on { color: var(--ink); }
.dy__steps li.on time { color: var(--mark); }
.dy__stage { position: relative; justify-self: end; width: min(100%, 66svh); aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; background: #0b0c0d; box-shadow: 0 30px 70px rgba(0, 0, 0, .22); }
/* each next day dissolves in over the one before as a timed fade, however fast the finger flicks */
.dy__f { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; will-change: opacity; transition: opacity .8s cubic-bezier(.4, 0, .2, 1); }
.dy__f:first-child, .dy__f.is-on { opacity: 1; }
.dy__f--fin { transform-origin: 0 0; will-change: opacity, transform; }
.dy__day { position: absolute; left: 12px; top: 12px; padding: 6px 9px; border-radius: 2px; background: rgba(0, 0, 0, .62); color: #fff; font: 700 11.5px/1 var(--mono); letter-spacing: .14em; }
.dy__date { position: absolute; right: 14px; bottom: 18px; font: 700 clamp(18px, 1.8vw, 24px)/1 var(--mono); letter-spacing: .06em; color: #ff9440; text-shadow: 0 0 6px rgba(255, 120, 40, .85), 0 0 1px #ffb27a; }
.dy__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .15); }
.dy__bar i { position: absolute; inset: 0; background: var(--mark); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- 05 x-ray lens ---------- */
.lz__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.lz__txt { display: grid; gap: 20px; justify-items: start; }
.lz__fig { --lx: 58%; --ly: 56%; --r: 120px; position: relative; justify-self: end; width: min(100%, 66svh, 700px); aspect-ratio: 3 / 4; margin: 0; overflow: hidden; border-radius: 4px; background: #0b0c0d; box-shadow: 0 30px 70px rgba(0, 0, 0, .28);
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }   /* a finger on the photo moves the lens, never the page */
.lz__top, .lz__under { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.lz__under { clip-path: circle(var(--r) at var(--lx) var(--ly)); }
.lz__ring { position: absolute; left: var(--lx); top: var(--ly); width: calc(var(--r) * 2); height: calc(var(--r) * 2); margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1); border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px rgba(0, 0, 0, .3), 0 14px 34px rgba(0, 0, 0, .45), inset 0 0 26px rgba(0, 0, 0, .45); pointer-events: none; }
.lz__ring::before, .lz__ring::after { content: ""; position: absolute; left: 50%; top: 50%; background: rgba(255, 70, 70, .9); }
.lz__ring::before { width: 22px; height: 1.5px; margin: -.75px 0 0 -11px; }
.lz__ring::after { width: 1.5px; height: 22px; margin: -11px 0 0 -.75px; }
.lz__fig figcaption { position: absolute; left: 14px; bottom: 14px; padding: 7px 11px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font: 700 13px/1 var(--sans); }

/* ---------- 06 before / after with a spirit level ---------- */
/* before / after picker: pills with a photo, clearly buttons; the chosen one goes dark with an orange ring; they press in when tapped */
.ba__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(36px, 5vw, 90px); align-items: center; }
.ba__side .sec-head { margin-bottom: 30px; }
.ba__pick { margin: 0 0 12px; font: 700 14px/1 var(--sans); color: var(--mute); }
.ba__tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.ba__tabs button { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 5px 20px 5px 5px; border: 1.5px solid rgba(28, 29, 31, .16); border-radius: 999px; background: var(--paper); color: var(--ink); font: 700 14px/1.15 var(--sans); text-align: left; cursor: pointer;
  box-shadow: 0 3px 0 rgba(28, 29, 31, .12), 0 10px 20px rgba(0, 0, 0, .07); transition: background .25s, color .25s, border-color .25s, box-shadow .2s, transform .2s var(--e); -webkit-tap-highlight-color: transparent; }
.ba__tabs img { flex: none; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(28, 29, 31, .12); transition: box-shadow .25s; }
@media (hover: hover) { .ba__tabs button:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 5px 0 rgba(28, 29, 31, .14), 0 14px 24px rgba(0, 0, 0, .1); } }
.ba__tabs button:active { transform: translateY(2px) scale(.97); box-shadow: 0 1px 0 rgba(28, 29, 31, .12), 0 4px 10px rgba(0, 0, 0, .08); }
.ba__tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 3px 0 #000, 0 12px 26px rgba(28, 29, 31, .28); }
.ba__tabs button[aria-selected="true"] img { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--mark); }
.ba__box { position: relative; justify-self: end; height: min(86svh, 900px); width: auto; max-width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; background: var(--con2); box-shadow: 0 30px 70px rgba(0, 0, 0, .22); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ba__box.is-land { height: auto; width: 100%; aspect-ratio: 4 / 3; }
.ba__box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__a { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.ba__lbl { position: absolute; top: 14px; padding: 8px 13px; border-radius: 999px; background: rgba(28, 29, 31, .8); color: #fff; font: 700 13px/1 var(--sans); pointer-events: none; }
.ba__lbl--a { left: 14px; } .ba__lbl--b { right: 14px; color: var(--salmon); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); pointer-events: none; }
.level { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 138px; height: 42px; margin: -21px 0 0 -69px; border-radius: 6px; background: linear-gradient(180deg, #4b8fd0, #2c64a0 55%, #24568b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 26px rgba(0, 0, 0, .4); }
.level::before, .level::after { content: ""; position: absolute; top: 4px; bottom: 4px; width: 14px; border-radius: 3px; background: #1b2f46; }
.level::before { left: 4px; } .level::after { right: 4px; }
.level__vial { position: relative; width: 70px; height: 20px; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #eef7a6, #c9dc52); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .38); transition: box-shadow .3s; }
.level__vial::before, .level__vial::after { content: ""; position: absolute; top: 2px; bottom: 2px; width: 1.5px; background: rgba(0, 0, 0, .55); }
.level__vial::before { left: 22px; } .level__vial::after { right: 22px; }
.level__bub { position: absolute; top: 4px; left: 50%; width: 22px; height: 12px; margin-left: -11px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, rgba(255, 255, 255, .45)); transition: transform .3s var(--spring); }
.level__deg { position: absolute; top: calc(100% + 7px); left: 50%; transform: translateX(-50%); padding: 4px 7px; border-radius: 2px; background: rgba(0, 0, 0, .7); color: #fff; font: 700 11px/1 var(--mono); white-space: nowrap; transition: color .3s; }
.ba__box.is-level .level__vial { box-shadow: inset 0 2px 5px rgba(0, 0, 0, .38), 0 0 14px rgba(210, 255, 90, .95); }
.ba__box.is-level .level__deg { color: #d8ff6e; }
.ba__r { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

/* ---------- 07 acceptance protocol ---------- */
.pr__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.pr__head { position: sticky; top: 120px; margin-bottom: 0; }
.pr__head .h2, .rq__head .h2 { font-size: clamp(30px, 3.5vw, 56px); }
.doc { position: relative; padding: clamp(22px, 3vw, 44px); border-radius: 2px; color: var(--ink); background: var(--paper) repeating-linear-gradient(180deg, transparent 0 31px, rgba(47, 111, 174, .08) 31px 32px); box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 34px 70px rgba(0, 0, 0, .2); transform: rotate(-.7deg); }
.doc.thud { animation: thud .35s ease-out; }
@keyframes thud { 30% { transform: rotate(-.7deg) translateY(3px) scale(.995); } 100% { transform: rotate(-.7deg); } }
.doc__head { display: grid; gap: 6px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.doc__head b { font: 800 clamp(18px, 1.9vw, 26px)/1.1 var(--display); letter-spacing: -.03em; text-transform: uppercase; }
.doc__head span { font: 600 11.5px/1 var(--mono); letter-spacing: .12em; color: var(--mute); text-transform: uppercase; }
.doc__meta { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; }
.doc__meta dt { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.doc__meta dd { font-weight: 700; }
.doc__row { display: grid; grid-template-columns: 128px minmax(0, 1fr) 44px; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.doc__ph { position: relative; margin: 0; }
.doc__ph img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.doc__row small { display: block; margin-bottom: 5px; font: 700 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--chalk); }
.doc__row h3 { font: 800 16px/1.25 var(--sans); }
.doc__row p { margin-top: 3px; font-size: 14.5px; line-height: 1.5; color: var(--mute); }
.doc__chk { display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 3px; }
.doc__chk svg { width: 30px; height: 30px; fill: none; stroke: var(--mark); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 46; stroke-dashoffset: 46; }
.doc__row.ok .doc__chk svg { transition: stroke-dashoffset .5s .1s var(--e); stroke-dashoffset: 0; }
.doc__foot { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 40px); padding-top: 30px; }
.doc__sig { display: grid; align-content: end; gap: 8px; min-height: 66px; }
.doc__sign--you { min-height: 30px; }
.doc__sign { font: 700 clamp(30px, 3vw, 40px)/1 var(--hand); color: var(--chalk); transform: rotate(-4deg); }
.doc__line { padding-top: 8px; border-top: 1.5px solid var(--ink); font: 600 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.seal { position: absolute; right: clamp(10px, 3vw, 40px); bottom: clamp(40px, 6vw, 80px); display: grid; place-items: center; width: clamp(118px, 13vw, 158px); aspect-ratio: 1; color: var(--mark); opacity: 0; transform: rotate(-14deg) scale(2.6); pointer-events: none;
  -webkit-mask-image: url("assets/tex/concrete.webp"); mask-image: url("assets/tex/concrete.webp"); -webkit-mask-size: 240px; mask-size: 240px; mask-mode: luminance; }
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal text { fill: currentColor; font: 700 14px var(--mono); letter-spacing: .12em; }
.seal b { position: relative; font: 900 clamp(13px, 1.25vw, 17px)/1 var(--display); letter-spacing: -.02em; text-transform: uppercase; transform: rotate(-4deg); }
.seal.in { animation: seal .45s var(--spring) both; }
@keyframes seal { 0% { opacity: 0; transform: rotate(-14deg) scale(2.6); } 65% { opacity: 1; transform: rotate(-9deg) scale(.94); } 100% { opacity: .92; transform: rotate(-9deg) scale(1); } }

/* ---------- 08 projects: square tiles laid one by one, edge to edge, with grout between ---------- */
.wl { overflow: hidden; padding-bottom: 0; }
.wl__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 30px 60px; margin-bottom: clamp(36px, 5vw, 64px); }
.wl__top .sec-head { margin-bottom: 0; }
.wl__nums { display: flex; gap: clamp(26px, 4vw, 64px); margin: 0; }
.wl__nums div { display: grid; gap: 8px; max-width: 220px; }
.wl__nums dt { font: 900 clamp(48px, 6vw, 96px)/.85 var(--display); letter-spacing: -.06em; color: var(--mark); }
.wl__nums dd { margin: 0; font: 600 15px/1.35 var(--sans); color: var(--mute); }
.for-touch { display: none; }
.wl__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; padding: 5px; background: var(--grout); }
.tile { position: relative; margin: 0; aspect-ratio: 1; overflow: hidden; background: var(--con2); cursor: zoom-in; opacity: 0; transform: translateY(-16px) scale(1.06); box-shadow: 0 26px 34px rgba(30, 22, 12, .28); }
.tile.laid { animation: lay .62s cubic-bezier(.2, .9, .25, 1.05) forwards; }
@keyframes lay { 0% { opacity: 0; transform: translateY(-16px) scale(1.06); box-shadow: 0 26px 34px rgba(30, 22, 12, .28); } 60% { opacity: 1; transform: translateY(1px) scale(.992); box-shadow: 0 2px 4px rgba(30, 22, 12, .2); } 100% { opacity: 1; transform: none; box-shadow: 0 0 0 rgba(30, 22, 12, 0); } }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--e); }
.tile:hover img { transform: scale(1.05); }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); color: #fff; font: 700 14px/1.3 var(--sans); }
.tile time { flex: none; color: #ff9440; font: 700 12px/1.3 var(--mono); letter-spacing: .05em; text-shadow: 0 0 6px rgba(255, 120, 40, .8); }
.wl__count { display: none; }

/* ---------- 09 process as a dimension line ---------- */
.dim { --dp: 0; position: relative; padding-top: 46px; }
.dim__line { position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: rgba(28, 29, 31, .12); }
.dim__line i { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--dp)); }
.dim__line::before, .dim__line::after { content: ""; position: absolute; top: -9px; width: 2px; height: 20px; background: var(--ink); }
.dim__line::before { left: 0; } .dim__line::after { right: 0; }
.dim__steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 36px); }
.dim__steps li { position: relative; padding-top: 22px; opacity: .22; transform: translateY(16px); transition: opacity .8s var(--e), transform .8s var(--e); }
.dim__steps li.on { opacity: 1; transform: none; }
.dim__steps li::before { content: ""; position: absolute; left: 0; top: -34px; width: 2px; height: 26px; background: var(--ink); }
.dim__steps b { display: block; font: 900 clamp(44px, 5vw, 84px)/.9 var(--display); letter-spacing: -.06em; color: var(--mark); }
.dim__steps h3 { margin: 16px 0 10px; font: 800 clamp(19px, 1.75vw, 27px)/1.15 var(--display); letter-spacing: -.035em; }
.dim__steps p { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.55; color: var(--mute); }

/* the terms, in big numbers right under the steps */
.terms { margin-top: clamp(56px, 7vw, 100px); padding-top: clamp(30px, 4vw, 48px); border-top: 2px solid var(--ink); }
.terms__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 40px); }
.term b { display: block; font: 900 clamp(34px, 3.4vw, 56px)/.95 var(--display); letter-spacing: -.05em; white-space: nowrap; }
.term:first-child b { color: var(--mark); }
.term h3 { margin: 14px 0 6px; font: 800 clamp(17px, 1.5vw, 22px)/1.2 var(--display); letter-spacing: -.03em; }
.term p { font-size: clamp(15px, 1.15vw, 17px); line-height: 1.5; color: var(--mute); }
.js .term { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--e), transform .8s var(--e); }
.js .terms__row.in .term { opacity: 1; transform: none; }
.js .terms__row.in .term:nth-child(2) { transition-delay: .1s; } .js .terms__row.in .term:nth-child(3) { transition-delay: .2s; } .js .terms__row.in .term:nth-child(4) { transition-delay: .3s; }
.terms__note { margin-top: 22px; max-width: 860px; font-size: clamp(16px, 1.3vw, 19px); color: var(--mute); }
.terms__note + .terms__note { margin-top: 8px; }
.terms__note b { color: var(--ink); }

/* ---------- 10 work order ---------- */
.rq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.rq__head { position: sticky; top: 120px; margin-bottom: 0; }
.ticket { --fill: 0; position: relative; padding: clamp(22px, 3vw, 40px); border-radius: 3px; background: var(--paper); box-shadow: 0 34px 70px rgba(0, 0, 0, .2); transform: rotate(.5deg); }
.ticket::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 10px; background: radial-gradient(circle at 9px 0, transparent 6px, var(--paper) 6.5px) 0 0 / 18px 10px repeat-x; }
.ticket__head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.ticket__head b { font: 800 clamp(17px, 1.8vw, 24px)/1.1 var(--display); letter-spacing: -.03em; text-transform: uppercase; }
.ticket__head span { font: 700 12px/1 var(--mono); letter-spacing: .08em; color: var(--mark); white-space: nowrap; }
.ticket__fill { height: 4px; margin: 0 0 22px; background: rgba(28, 29, 31, .08); }
.ticket__fill i { display: block; height: 100%; background: var(--mark); transform-origin: 0 50%; transform: scaleX(var(--fill)); transition: transform .5s var(--e); }
.ticket fieldset { border: 0; margin: 0 0 20px; min-width: 0; }
.ticket legend { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; padding: 0; font: 700 12.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.ticket legend i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--paper); font-style: normal; font-size: 11px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 11px 14px; border: 1.5px solid rgba(28, 29, 31, .28); border-radius: 999px; background: transparent; font: 700 14px/1 var(--sans); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--e); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateY(-1px); }
.ticket__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.ticket__fields label { display: grid; gap: 4px; font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.ticket__fields input { width: 100%; padding: 10px 0 8px; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; background: transparent; font: 600 16px/1.3 var(--sans); color: var(--ink); outline: none; }
.ticket__fields input:focus { border-bottom-color: var(--mark); }
.ticket__msg { margin-bottom: 20px; padding: 14px 16px; border: 1.5px dashed rgba(28, 29, 31, .3); background: #fff; }
.ticket__msg span { display: block; margin-bottom: 6px; font: 700 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.ticket__msg p { white-space: pre-line; font: 500 14px/1.55 var(--mono); }
.ticket__send { display: flex; flex-wrap: wrap; gap: 12px; }
/* no empty strip between the five steps and the price list */
.pc.sec { padding-bottom: 0; }
.rq.sec { padding-top: clamp(56px, 7vw, 110px); }
.rq__note { max-width: 520px; padding-left: 14px; border-left: 3px solid var(--mark); font: 600 15px/1.55 var(--sans); }

/* the price list inside the work order: what (icons), the price sheet with dotted leaders, a tape measure, the bill */
.pcats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pcat { display: grid; justify-items: center; align-content: center; gap: 7px; min-height: 84px; padding: 12px 6px 10px; border: 1.5px solid rgba(28, 29, 31, .2); border-radius: 10px; background: rgba(255, 255, 255, .5); color: var(--ink); font: 700 12.5px/1.15 var(--sans); text-align: center; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .3s var(--e), box-shadow .3s var(--e); }
.pcat svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--spring); }
.pcat:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 4px 0 rgba(28, 29, 31, .12); }
.pcat:hover svg { transform: rotate(-8deg) scale(1.08); }
.pcat[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateY(-2px); box-shadow: 0 4px 0 var(--mark); }
.pcat[aria-pressed="true"] svg { stroke: var(--salmon); }
.pcat--wide { grid-column: 1 / -1; grid-auto-flow: column; justify-content: center; align-items: center; min-height: 54px; gap: 12px; font-size: 13.5px; }
.pl__note { margin: -2px 0 12px; font: 600 14px/1.45 var(--sans); color: var(--mute); }
.pl__list { list-style: none; margin: 0; padding: 0; }
.pl__list:not(:empty) { border-top: 2px solid var(--ink); }
.pl__list li { border-bottom: 1px dashed rgba(28, 29, 31, .25); }
.pl__list.in li { animation: plIn .5s var(--e) both; animation-delay: calc(var(--i) * 22ms); }
.prow { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 12px 2px; border: 0; background: none; color: var(--ink); text-align: left; font: 600 15px/1.35 var(--sans); cursor: pointer; }
.prow__n { flex: 0 1 auto; min-width: 0; transition: color .2s; }
.prow__dots { flex: 1 1 14px; min-width: 14px; border-bottom: 2px dotted rgba(28, 29, 31, .3); transform: translateY(-4px); }
.prow__p { flex: none; font: 700 13.5px/1.2 var(--mono); white-space: nowrap; }
.prow__p small { margin-left: 1px; font-size: 11.5px; font-weight: 500; color: var(--mute); }
.prow__p em { font-style: normal; font-weight: 500; color: var(--mute); }
.prow:hover .prow__n { color: var(--mark); }
.prow[aria-expanded="true"] { font-weight: 800; }
.prow[aria-expanded="true"] .prow__p { color: var(--mark); }
.prow[aria-expanded="true"] .prow__dots { border-color: var(--mark); }
.calc { margin: 0 0 14px; padding: 16px 16px 18px; border-radius: 8px; background: #efe8db; box-shadow: inset 0 0 0 1.5px rgba(28, 29, 31, .1); animation: plIn .45s var(--e); }
.calc__q { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; }
.calc__q label { font: 700 12px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.calc__in { display: flex; align-items: center; gap: 7px; }
.calc__in input { width: 3.7em; padding: 4px 2px 3px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font: 800 26px/1 var(--mono); text-align: center; outline: none; }
.calc__in input:focus { border-bottom-color: var(--mark); }
.calc__in span { min-width: 2.6em; font: 700 15px/1 var(--mono); }
.calc__pm { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--ink); font: 700 19px/1 var(--sans); cursor: pointer; transition: background .2s, color .2s, transform .2s var(--e); }
.calc__pm:hover { background: var(--ink); color: var(--paper); }
.calc__pm:active { transform: scale(.9); }
/* a yellow tape measure: drag it sideways like the real one, the red line reads the value */
.tape { --u: 12px; --big: 10; --mid: 5; position: relative; height: 64px; margin-top: 14px; border-radius: 6px; background: linear-gradient(180deg, #f8d54e 0%, #f0c22c 55%, #e2b01c 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -3px 0 rgba(120, 80, 0, .22), 0 8px 18px rgba(130, 90, 0, .18); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.tape:focus-visible { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -3px 0 rgba(120, 80, 0, .22), 0 0 0 3px var(--ink); }
.tape.is-drag { cursor: grabbing; }
.tape__win { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; -webkit-mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent); mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent); }
.tape__strip { position: absolute; top: 0; bottom: 0; left: 50%; will-change: transform; transition: transform .45s var(--e);
  background: linear-gradient(90deg, #1c1d1f 2px, transparent 2px) -1px 0 / calc(var(--u) * var(--big)) 25px repeat-x,
              linear-gradient(90deg, #1c1d1f 1.5px, transparent 1.5px) -.75px 0 / calc(var(--u) * var(--mid)) 17px repeat-x,
              linear-gradient(90deg, rgba(28, 29, 31, .7) 1px, transparent 1px) -.5px 0 / var(--u) 10px repeat-x; }
.tape.is-drag .tape__strip { transition: none; }
.tape__strip b { position: absolute; top: 30px; transform: translateX(-50%); font: 800 13px/1 var(--mono); color: #1c1d1f; pointer-events: none; }
.tape::before { content: ""; position: absolute; z-index: 2; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--mark); pointer-events: none; }
.tape::after { content: ""; position: absolute; z-index: 2; left: 50%; top: 0; margin-left: -7px; border: 7px solid transparent; border-top: 9px solid var(--mark); border-bottom: 0; pointer-events: none; }
.calc__tip { margin-top: 9px; font: 600 11.5px/1 var(--mono); letter-spacing: .08em; text-align: center; color: var(--mute); transition: opacity .4s; }
.tape.used + .calc__tip { opacity: 0; }
.calc__out { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: 14px; }
.calc__sum { display: block; font: 900 clamp(28px, 3vw, 40px)/1 var(--display); letter-spacing: -.045em; }
.calc__how { display: block; margin-top: 7px; font: 600 12.5px/1.35 var(--mono); color: var(--mute); }
.calc__add { flex: none; }
.calc__add.is-done { background: #2f7d4f; }
.calc__ask { display: none; font: 700 15px/1.5 var(--sans); }
.calc.is-ask .calc__q, .calc.is-ask .tape, .calc.is-ask .calc__tip, .calc.is-ask .calc__out p { display: none; }
.calc.is-ask .calc__ask { display: block; }
.calc.is-ask .calc__out { margin-top: 12px; }
.bill { margin: 4px 0 24px; padding: 16px 16px 12px; border: 1.5px dashed rgba(28, 29, 31, .35); background: #fff; }
.bill__h { margin-bottom: 4px; font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.bill__list { list-style: none; margin: 0; padding: 0; }
.bill__list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(28, 29, 31, .2); }
.bill__list li.new { animation: billIn .7s var(--e); }
.bill__n { flex: 1; min-width: 0; font: 700 14.5px/1.35 var(--sans); }
.bill__n small { display: block; margin-top: 2px; font: 500 12px/1.35 var(--mono); color: var(--mute); }
.bill__list b { flex: none; font: 800 15px/1 var(--mono); white-space: nowrap; }
.bill__x { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(28, 29, 31, .07); color: var(--ink); font: 700 15px/1 var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.bill__x:hover { background: var(--mark); color: #fff; }
.bill__tot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; font: 700 12.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.bill__tot b { font: 900 clamp(26px, 2.8vw, 36px)/1 var(--display); letter-spacing: -.045em; text-transform: none; color: var(--mark); }
.bill__lv { margin-top: 6px; text-align: right; font: 600 12.5px/1.5 var(--mono); color: var(--mute); white-space: pre-line; }
.bill__lv:empty { display: none; }
@keyframes plIn { from { opacity: 0; transform: translateY(-6px); } }
@keyframes billIn { 0% { opacity: 0; transform: translateX(-10px); background: rgba(224, 87, 44, .18); } 60% { background: rgba(224, 87, 44, .1); } 100% { background: transparent; } }

/* ---------- 11 banner on the scaffolding ---------- */
.bn { padding-block: clamp(100px, 12vw, 170px) clamp(60px, 7vw, 90px); background: var(--ink); color: #fff; clip-path: polygon(0 3.2vw, 100% 0, 100% 100%, 0 100%); }
.bn .btn { --sh: #000; }
.bn__mesh { --rx: 0deg; --ry: 0deg; position: relative; padding: clamp(40px, 6vw, 84px) clamp(22px, 5vw, 70px); border: 3px solid #0c0c0d; border-radius: 4px; background-color: #2a2b2e;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .055) 0 2px, transparent 2px 9px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .055) 0 2px, transparent 2px 9px);
  box-shadow: 0 34px 70px rgba(0, 0, 0, .5), inset 0 0 0 6px rgba(255, 255, 255, .04); transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--e); }
.eye { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, #0a0b0c 0 4px, #cfd3d8 4.5px 7px, #6f757c 7.5px); box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.eye::after { content: ""; position: absolute; left: 50%; top: -26px; width: 3px; height: 32px; margin-left: -1.5px; border-radius: 2px; background: #0d0e10; transform: rotate(14deg); }
.e1 { left: 14px; top: 14px; } .e2 { right: 14px; top: 14px; } .e3 { left: 50%; top: 14px; margin-left: -9px; } .e4 { left: 14px; bottom: 14px; } .e5 { right: 14px; bottom: 14px; } .e6 { left: 50%; bottom: 14px; margin-left: -9px; }
.e4::after, .e5::after, .e6::after { top: auto; bottom: -26px; transform: rotate(-14deg); }
.bn__top { font: 700 15px/1.5 var(--sans); color: var(--salmon); }
.bn__h { margin: 16px 0 6px; font: 700 clamp(18px, 2vw, 26px)/1.2 var(--display); letter-spacing: -.03em; color: rgba(255, 255, 255, .82); }
.bn__phone { display: block; font: 900 clamp(40px, 7.4vw, 128px)/.98 var(--display); letter-spacing: -.05em; color: #fff; text-decoration: none; white-space: nowrap; }
.bn__phone span:first-child { color: var(--salmon); }
.bn__phone:hover { text-shadow: 0 0 30px rgba(242, 164, 135, .35); }
.bn__sub { margin: 18px 0 30px; font: 600 16px/1.6 var(--sans); color: var(--mute-d); }
.bn__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.bn__info { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 46px; }
.bn__info div { padding-top: 12px; border-top: 1px solid var(--line-d); }
.bn__info dt { font: 600 13px/1 var(--sans); color: var(--mute-d); }
.bn__info dd { margin-top: 8px; font-weight: 700; }
.bn__info a { text-decoration: none; border-bottom: 1px solid var(--line-d); }

/* ---------- footer ---------- */
.ft { padding-block: 50px calc(40px + env(safe-area-inset-bottom)); }
.ft__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.ft__sig { display: grid; gap: 2px; }
.ft__hand { font: 700 clamp(40px, 4.6vw, 64px)/1 var(--hand); color: var(--ink); transform: rotate(-3deg); transform-origin: 0 100%; }
.ft__sig small { font: 600 14px/1.2 var(--sans); color: var(--mute); }
.ft__seal { width: 120px; height: 120px; color: var(--chalk); animation: spin 40s linear infinite; }
.ft__seal text { fill: currentColor; font: 700 13px var(--mono); letter-spacing: .1em; }
@keyframes spin { to { transform: rotate(360deg); } }
.ft__c { font: 600 14px/1.6 var(--sans); color: var(--mute); }
.ft__c a { text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }

/* ---------- floating call button, lightbox, cursor ---------- */
.fab { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 55; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--mark); box-shadow: 3px 3px 0 var(--ink), 0 12px 30px rgba(0, 0, 0, .3); opacity: 0; transform: translateY(140%) scale(.8); pointer-events: none; transition: transform .45s var(--e), opacity .3s; }
.fab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fab svg { width: 24px; height: 24px; fill: #fff; }
.lb { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; align-content: center; gap: 12px; padding: 20px; background: rgba(8, 10, 12, .94); }
.lb img { max-width: 100%; max-height: 82vh; border-radius: 3px; touch-action: pan-y; }
.lb p { color: rgba(255, 255, 255, .78); font: 600 15px/1.4 var(--sans); }
.lb__nav { position: absolute; top: 50%; width: 54px; height: 54px; margin-top: -27px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font: 400 34px/1 var(--sans); cursor: pointer; transition: background .2s; }
.lb__nav:hover { background: var(--mark); }
.lb__nav--p { left: max(14px, env(safe-area-inset-left)); } .lb__nav--n { right: max(14px, env(safe-area-inset-right)); }
.lb__x { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink3); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.cursor { position: fixed; left: 0; top: 0; z-index: 400; width: 0; height: 0; pointer-events: none; transition: opacity .3s; }
.cursor i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--laser); box-shadow: 0 0 8px 2px rgba(255, 47, 47, .65); transition: transform .25s var(--e), background .25s, border-color .25s; border: 0 solid var(--laser); }
.cursor::before, .cursor::after { content: ""; position: absolute; background: rgba(255, 47, 47, .75); transition: opacity .25s, transform .25s var(--e); }
.cursor::before { left: -14px; top: -.5px; width: 28px; height: 1px; -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 30% 70%, #000 70%); mask-image: linear-gradient(90deg, #000 30%, transparent 30% 70%, #000 70%); }
.cursor::after { left: -.5px; top: -14px; width: 1px; height: 28px; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 30% 70%, #000 70%); mask-image: linear-gradient(180deg, #000 30%, transparent 30% 70%, #000 70%); }
.cursor.is-link i { transform: scale(3); background: rgba(255, 47, 47, .12); border-width: .5px; }
.cursor.is-link::before, .cursor.is-link::after { opacity: 0; transform: scale(.4); }
.cursor.is-lens, .cursor.off { opacity: 0; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor .tile, .has-cursor .ba__r, .has-cursor .lz__fig, .has-cursor label { cursor: none; }
.has-cursor input:not([type="range"]) { cursor: text; }
.has-cursor .tape { cursor: none; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .wl__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .hero__end { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "pic" "txt"; align-items: stretch; gap: 22px; padding-bottom: 34px; }
  .hero__slot { justify-self: center; align-self: center; width: auto; height: 100%; max-width: 100%; aspect-ratio: 4 / 5; }
  .hero__e h2 { margin-bottom: 20px; font-size: clamp(31px, 9vw, 52px); }
  /* phones: text and stamps, then Nikolay's photo and diploma, then the Germany photo */
  .mf { display: flex; flex-direction: column; height: auto; overflow-x: clip; }
  .mf__track, .mf__pin { display: contents; }
  .mf__grid { order: 1; padding-top: 60px; }
  .me { order: 2; padding-block: 40px 8px; }
  .mf__ph { order: 3; }
  .mf__txt { max-width: none; }
  .mf__big { padding-top: 0; }
  .mf__ph { position: relative; top: auto; right: auto; bottom: auto; width: 100%; aspect-ratio: 4 / 5; margin-top: 44px; }
  .sv__head { grid-template-columns: 34px minmax(0, 1fr) 42px; gap: 10px; }
  .sv__pm { width: 42px; height: 42px; }
  .sv__pm::before, .sv__pm::after { left: 11px; right: 11px; }
  .sv__hint { font-size: 14px; }
  .sv__tag { display: none; }
  .sv__body { margin-left: calc(-1 * max(var(--pad), env(safe-area-inset-left))); margin-right: calc(-1 * max(var(--pad), env(safe-area-inset-right))); }
  .sv__in { grid-template-columns: 1fr; padding-left: 0; gap: 4px; }
  .sv__ph { margin: 4px 0 16px; }
  .sv__ph img { aspect-ratio: 4 / 3; }
  .sv__copy { padding: 0 max(var(--pad), env(safe-area-inset-right)) 30px max(var(--pad), env(safe-area-inset-left)); }
  .dy { height: 400vh; }
  .dy__pin { align-items: flex-start; }
  /* the photo fits the screen with the browser bar showing (svh); the pinned frame itself is 100lvh tall,
     so its still background also fills the strip the bar leaves when it hides */
  .dy__grid { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 14px; padding-block: calc(72px + env(safe-area-inset-top)) 18px; height: 100vh; height: 100svh; }
  .dy__txt { gap: 10px; }
  .dy .h2 { font-size: clamp(26px, 7.4vw, 44px); }
  .dy .lead { display: none; }
  .dy__steps { margin: 0; }
  /* all captions share one cell: the box keeps the height of the longest one, so the photo below never resizes */
  .dy__steps li { grid-area: 1 / 1; grid-template-columns: 56px 1fr; border: 0; padding: 0; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
  .dy__steps li.on { opacity: 1; visibility: visible; transition: opacity .3s; }
  .dy__stage { justify-self: center; align-self: start; width: auto; height: 100%; max-height: 100%; max-width: 100%; }
  .dy__date { right: auto; left: 14px; }   /* the round call button sits bottom-right on phones and covered the date */
  .lz__grid, .pr__grid, .rq__grid, .ba__grid, .me__grid { grid-template-columns: 1fr; }
  .me__ph { width: min(100%, 460px); justify-self: center; }
  .me__card { grid-template-columns: 1fr; margin-top: 46px; padding: 20px; }
  .me__thumb { width: 82%; justify-self: center; margin: -66px 0 0; }
  .lz__fig { --r: 84px; justify-self: center; width: min(100%, 520px); }
  .ba__box { justify-self: center; height: auto; width: 100%; max-height: 80svh; }
  .ba__box.is-land { max-height: none; }
  .pr__head, .rq__head { position: static; margin-bottom: 10px; }
  .doc__row { grid-template-columns: 84px minmax(0, 1fr) 36px; gap: 14px; }
  .doc__chk { width: 34px; height: 34px; }
  .doc__chk svg { width: 26px; height: 26px; }

  .dim { padding-top: 0; padding-left: 34px; }
  .dim__line { left: 9px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .dim__line i { transform-origin: 50% 0; transform: scaleY(var(--dp)); }
  .dim__line::before, .dim__line::after { left: -9px; top: 0; width: 20px; height: 2px; }
  .dim__line::after { top: auto; bottom: 0; right: auto; }
  .dim__steps { grid-template-columns: 1fr; gap: 28px; }
  .dim__steps li { padding-top: 0; }
  .dim__steps li::before { left: -32px; top: 22px; width: 16px; height: 2px; }
  .dim__steps b { font-size: 44px; }
  .dim__steps h3 { margin: 10px 0 6px; }
  .terms__row { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .term b { font-size: 31px; }
  .ticket__fields { grid-template-columns: 1fr; }
  .bn__phone { font-size: clamp(38px, 13.2vw, 110px); }
  .bn__phone span { display: block; }
  .bn__info { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .btn--sm { padding: 10px 12px; font-size: 12px; }
  .bar { gap: 12px; }
  .lang a { padding: 6px 7px; }
  .logo { font-size: 17px; }
  .logo svg { width: 34px; height: 28px; }
  .hero { height: 800vh; }
  .stamps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-top: 26px; }
  .ba__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ba__tabs button { min-height: 50px; padding: 4px 10px 4px 4px; gap: 8px; font-size: 12.5px; }
  .ba__tabs img { width: 38px; height: 38px; }
  .level { width: 116px; height: 36px; margin: -18px 0 0 -58px; }
  .level__vial { width: 58px; height: 17px; }
  .level__vial::before { left: 18px; } .level__vial::after { right: 18px; }
  .level__bub { width: 18px; height: 10px; margin-left: -9px; top: 3.5px; }
  .xt__track { font-size: 14px; }
  .pcats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .pcat { min-height: 76px; padding: 10px 3px 9px; font-size: 12px; }
  .pcat--wide { min-height: 50px; font-size: 12.5px; }
  .prow { padding: 11px 0; font-size: 14.5px; }
  .prow__p { font-size: 12.5px; }
  .calc { margin-inline: -8px; padding: 14px 12px 16px; }
  .calc__in input { font-size: 24px; }
  .bill { padding: 14px 12px 10px; }
}
/* phones: the projects become a swipe gallery, one photo almost the whole screen */
@media (max-width: 699px) {
  .for-fine { display: none; } .for-touch { display: inline; }
  .wl__nums { width: 100%; justify-content: flex-start; }
  .wl__grid { display: flex; gap: 6px; padding: 0 6vw; background: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .wl__grid::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 88vw; height: min(70svh, 125vw); aspect-ratio: auto; scroll-snap-align: center; scroll-snap-stop: always; border-radius: 3px; opacity: 1; transform: none; box-shadow: none; cursor: default; }
  .tile.laid { animation: none; }
  .tile figcaption { padding: 60px 16px 16px; font-size: 16px; }
  .tile time { font-size: 13px; }
  .wl__count { display: block; margin: 16px 0 0; padding: 0 6vw; font: 700 14px/1 var(--mono); letter-spacing: .08em; color: var(--mute); }
  .wl__count b { color: var(--ink); }
  .wl { padding-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .stamp, .tile, .seal.in { animation: none !important; opacity: 1; transform: none; }
  .js .term, .js .me__in > img:first-child, .js .me__cut { opacity: 1; transform: none; transition: none; }
  .sv__hint i, .sv__list.in .sv__pm { animation: none !important; }
  .dim__steps li { opacity: 1; transform: none; }
  .ft__seal, .hero__hint i::after { animation: none; }
  .dy__f { transition: none; }
  .pl__list.in li, .calc, .bill__list li.new { animation: none; }
  .tape__strip { transition: none; }
}
