/* ==========================================================================
   W.S. Building & Remodeling — Keystone Deck
   Layout day: concrete slab, blueprint-chalk blue, marking orange, graphite.
   Base styles are the linear (no-JS) page; html.deck-mode turns the home
   page into the framed deck over the walkthrough film.
   ========================================================================== */

:root {
  --slab: #dedbd3;
  --slab-2: #cfccc3;
  --slab-3: #bdb9ae;
  --paper: #f6f4ef;
  --graphite: #16181a;
  --graphite-2: #34383c;
  --graphite-3: #4f5459;
  --chalk: #05479c;
  --chalk-deep: #03357a;
  --chalk-line: #2a63d4;
  --chalk-ink: #eef3ff;
  --chalk-soft: #b5cbf2;
  --mark: #ff5b1a;
  --mark-deep: #a83305;
  --mark-pale: #ffb48d;
  --night: #111417;
  --night-2: #1c2125;
  --night-ink: #ece9e2;
  --night-soft: #aaa69d;
  --copper: #c9603a;

  --f-frame: 'Archivo', 'Arial Narrow', sans-serif;
  --f-finish: 'Besley', Georgia, serif;
  --f-data: 'Martian Mono', ui-monospace, monospace;
  --f-hand: 'Permanent Marker', 'Comic Sans MS', cursive;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --hdr: 64px;
  --side: 16px;
  --band: 60px;
  --pad: clamp(20px, 3.6vw, 56px);
  --wrap: min(100% - 2 * var(--pad), 1360px);
  --radius: 18px;
  color-scheme: light;
}

@media (max-width: 760px) {
  :root { --hdr: 56px; --side: 8px; --band: 52px; --radius: 14px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 12px); }
body {
  margin: 0;
  background: var(--slab);
  color: var(--graphite);
  font-family: var(--f-frame);
  font-stretch: 100%;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--mark);
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 800; }
p { text-wrap: pretty; }
::selection { background: var(--mark); color: var(--graphite); }
:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; border-radius: 4px; }
.on-mark :focus-visible, .on-mark:focus-visible { outline-color: var(--graphite); }
html { scrollbar-color: var(--graphite-3) var(--slab-2); scrollbar-width: thin; }
.sr-only { 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 { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--mark); color: var(--graphite); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.t-frame { font-family: var(--f-frame); font-weight: 900; font-stretch: 72%; text-transform: uppercase; line-height: .86; letter-spacing: -.01em; }
.t-xl { font-family: var(--f-frame); font-weight: 900; font-stretch: 75%; text-transform: uppercase; line-height: .88; letter-spacing: -.012em; font-size: clamp(3rem, 8.4vw, 8.6rem); }
.t-h2 { font-family: var(--f-frame); font-weight: 800; font-stretch: 82%; font-size: clamp(2.2rem, 4.6vw, 4.6rem); line-height: .96; letter-spacing: -.015em; }
.t-h3 { font-family: var(--f-frame); font-weight: 700; font-stretch: 88%; font-size: clamp(1.3rem, 1.9vw, 1.75rem); line-height: 1.08; letter-spacing: -.01em; }
.t-finish, .t-h2 em, .t-xl em, .t-h3 em { font-family: var(--f-finish); font-style: italic; font-weight: 400; font-stretch: 100%; text-transform: none; letter-spacing: -.01em; }
.t-lead { font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.6; max-width: 56ch; }
.t-body { font-size: 1rem; line-height: 1.65; max-width: 66ch; }
.t-small { font-size: .9rem; line-height: 1.6; }
.t-data { font-family: var(--f-data); font-size: .72rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; line-height: 1.5; font-variant-numeric: tabular-nums; }
.t-hand { font-family: var(--f-hand); font-weight: 400; letter-spacing: .01em; }
.muted { color: var(--graphite-3); }
strong { font-weight: 700; }

/* ---------- icons ---------- */
.ico { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons: pill + circle ---------- */
.btn {
  --b-bg: var(--mark); --b-ink: var(--graphite); --b-hbg: var(--graphite); --b-hink: var(--paper);
  display: inline-flex; align-items: stretch; gap: 4px; text-decoration: none; cursor: pointer;
  font-family: var(--f-frame); font-weight: 650; font-stretch: 92%; font-size: .95rem; letter-spacing: .005em;
  border-radius: 999px; isolation: isolate;
}
.btn__label, .btn__arrow { background: var(--b-bg); color: var(--b-ink); border-radius: 999px; transition: background-color .35s var(--ease-out), color .35s var(--ease-out), transform .45s var(--ease-out); }
.btn__label { display: inline-flex; align-items: center; padding: 0 22px; min-height: 48px; white-space: nowrap; }
.btn__arrow { display: grid; place-items: center; width: 48px; height: 48px; }
.btn__arrow .ico { width: 18px; height: 18px; transition: transform .45s var(--ease-out); }
.btn:hover .btn__label, .btn:hover .btn__arrow, .btn:focus-visible .btn__label, .btn:focus-visible .btn__arrow { background: var(--b-hbg); color: var(--b-hink); }
.btn:hover .btn__arrow .ico { transform: rotate(-45deg); }
.btn:hover .btn__arrow .ico.ico--down { transform: translateY(3px); }
.btn:active .btn__label { transform: scale(.97); }
.btn--ink { --b-bg: var(--graphite); --b-ink: var(--paper); --b-hbg: var(--mark); --b-hink: var(--graphite); }
.btn--line { --b-bg: transparent; --b-ink: currentColor; --b-hbg: var(--graphite); --b-hink: var(--paper); }
.btn--line .btn__label, .btn--line .btn__arrow { box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--line:hover .btn__label, .btn--line:hover .btn__arrow { box-shadow: none; }
.btn--pale { --b-bg: var(--chalk-ink); --b-ink: var(--chalk); --b-hbg: var(--mark); --b-hink: var(--graphite); }
.btn--sm .btn__label { min-height: 40px; padding: 0 16px; font-size: .88rem; }
.btn--sm .btn__arrow { width: 40px; height: 40px; }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; opacity: .38; }
.btn[disabled]:hover .btn__label, .btn[disabled]:hover .btn__arrow { background: var(--b-bg); color: var(--b-ink); }
.btn[disabled]:hover .btn__arrow .ico { transform: none; }

.link {
  display: inline-flex; align-items: center; gap: .45em; font-weight: 650; font-stretch: 92%;
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 3px;
  transition: background-size .5s var(--ease-out);
}
.link:hover { background-size: 0 1.5px; background-position: 100% 100%; }
.link .ico { width: .95em; height: .95em; transition: transform .4s var(--ease-out); }
.link:hover .ico { transform: translate(2px, -2px); }

/* ---------- provenance stamps, stake tags ---------- */
.stamp {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 4px; border-radius: 4px;
  font-family: var(--f-data); font-size: .69rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--paper); color: var(--graphite); box-shadow: 0 2px 6px rgb(0 0 0 / .18);
}
.stamp::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mark); }
.stamp--render::before { background: var(--chalk-line); }
.tag {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 3px 8px; border-radius: 3px;
  font-family: var(--f-data); font-size: .7rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  background: var(--mark); color: var(--graphite);
}
.tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--graphite); }

/* ---------- header ---------- */
.ks-header {
  --h-ink: var(--graphite);
  position: fixed; inset: 0 0 auto; height: var(--hdr); z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 calc(var(--side) + 6px); color: var(--h-ink);
  transition: background-color .4s, box-shadow .4s, transform .5s var(--ease-out);
}
.ks-header.is-solid { background: rgb(222 219 211 / .88); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgb(22 24 26 / .08); }
.ks-header.is-hidden { transform: translateY(-100%); }
.deck-mode .ks-header { --h-ink: #f4f1ea; background: none; box-shadow: none; backdrop-filter: none; }
.ks-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; }
.ks-brand img { width: 46px; height: auto; }
.ks-brand span { font-weight: 750; font-stretch: 80%; font-size: .86rem; line-height: 1.02; text-transform: uppercase; letter-spacing: .02em; }
.ks-counter { display: none; align-items: baseline; gap: 10px; font-family: var(--f-data); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; font-variant-numeric: tabular-nums; }
.deck-mode .ks-counter { display: inline-flex; }
.ks-counter b { font-weight: 600; color: var(--mark); }
.ks-counter i { font-style: normal; opacity: .55; }
.ks-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; }
.ks-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--f-data); font-size: .74rem; letter-spacing: .04em; padding: 0 10px; height: 40px; }
.ks-phone .ico { width: 16px; height: 16px; }
.ks-round {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px currentColor; transition: background-color .3s, color .3s;
}
.ks-round:hover { background: var(--h-ink); color: var(--slab); }
.deck-mode .ks-round:hover { color: var(--graphite); }
.ks-round .ico { width: 18px; height: 18px; }
.ks-sound[aria-pressed="true"] { background: var(--mark); color: var(--graphite); box-shadow: none; }
.ks-menu-btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; font-weight: 650; font-stretch: 90%; font-size: .9rem; }
.ks-menu-btn:hover { background: var(--h-ink); color: var(--slab); }
.deck-mode .ks-menu-btn:hover { color: var(--graphite); }
.ks-menu-btn .bars { width: 16px; height: 9px; position: relative; }
.ks-menu-btn .bars::before, .ks-menu-btn .bars::after { content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .4s var(--ease-out); }
.ks-menu-btn .bars::before { top: 0; } .ks-menu-btn .bars::after { bottom: 0; }
.ks-menu-btn:hover .bars::before { transform: translateX(3px); }
@media (max-width: 1100px) { .ks-phone span { display: none; } .ks-phone { padding: 0; width: 40px; justify-content: center; box-shadow: inset 0 0 0 1.5px currentColor; border-radius: 50%; } }
@media (max-width: 760px) {
  .ks-header { grid-template-columns: 1fr auto; padding: 0 12px; }
  .ks-actions { grid-column: 2; }
  .ks-counter { display: none !important; }
  .ks-brand span { display: none; }
  .ks-quote-pill, .ks-sound { display: none; }
  .ks-menu-btn { padding: 0 14px; }
}

/* ---------- menu (native dialog) ---------- */
.ks-menu {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--chalk-ink); overflow: hidden;
}
.ks-menu::backdrop { background: transparent; }
.ks-menu__slats { position: absolute; inset: 0; display: flex; pointer-events: none; }
.ks-menu__slats span { flex: 1; background: var(--chalk); transform: scaleY(0); transform-origin: 50% 0; }
.ks-menu__slats span:nth-child(odd) { background: #0a4ea8; }
.ks-menu__body {
  position: relative; height: 100%; overflow: auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(20px, 4vw, 64px); padding: calc(var(--hdr) + 28px) var(--pad) 32px; opacity: 0;
}
.ks-menu__top { position: absolute; inset: 0 0 auto; height: var(--hdr); display: flex; align-items: center; justify-content: space-between; padding: 0 calc(var(--side) + 6px); }
.ks-menu__close { width: 44px; height: 44px; }
.ks-menu__close:hover { background: var(--chalk-ink); color: var(--chalk); }
.ks-menu__links { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.ks-menu__links > li { border-top: 1px solid rgb(238 243 255 / .2); }
.ks-menu__links > li > a {
  display: flex; align-items: baseline; gap: 18px; padding: 10px 0 8px; text-decoration: none;
  font-weight: 900; font-stretch: 75%; text-transform: uppercase; font-size: clamp(2.2rem, 5.6vw, 4.9rem); line-height: .95;
  transition: color .3s, transform .5s var(--ease-out);
}
.ks-menu__links > li > a small { font-family: var(--f-data); font-size: .7rem; font-weight: 500; letter-spacing: .06em; color: var(--chalk-soft); min-width: 3.2em; }
.ks-menu__links > li > a:hover, .ks-menu__links > li > a:focus-visible { color: var(--mark-pale); transform: translateX(10px); }
.ks-menu__links > li > a[aria-current="page"] { color: var(--mark); }
.ks-menu__sub { display: flex; flex-wrap: wrap; gap: 6px 8px; padding: 0 0 14px 4.7em; margin: 0; list-style: none; }
.ks-menu__sub a { display: inline-block; padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(238 243 255 / .35); text-decoration: none; font-weight: 600; font-stretch: 90%; font-size: .86rem; }
.ks-menu__sub a:hover, .ks-menu__sub a:focus-visible { background: var(--chalk-ink); color: var(--chalk); }
.ks-menu__aside { display: flex; flex-direction: column; gap: 22px; min-height: 0; }
.ks-menu__preview { position: relative; flex: 1; min-height: 240px; border-radius: 12px; overflow: hidden; background: var(--chalk-deep); }
.ks-menu__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .5s var(--ease-out), transform .9s var(--ease-out); }
.ks-menu__preview img.is-on { opacity: 1; transform: none; }
.ks-menu__preview .stamp { position: absolute; left: 12px; bottom: 12px; z-index: 2; }
.ks-menu__contact { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: .92rem; }
.ks-menu__contact a { text-decoration: none; }
.ks-menu__contact .big { grid-column: 1 / -1; font-weight: 900; font-stretch: 75%; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1; color: var(--mark-pale); }
.ks-menu__contact .t-data { color: var(--chalk-soft); display: block; margin-bottom: 4px; }
@media (max-width: 860px) {
  .ks-menu__body { grid-template-columns: 1fr; }
  .ks-menu__preview { display: none; }
  .ks-menu__sub { padding-left: 0; }
}

/* ---------- loader (tape measure) ---------- */
.ks-loader { position: fixed; inset: 0; z-index: 120; background: var(--slab); display: grid; place-items: center; }
.ks-loader[hidden] { display: none; }
.ks-loader__tab {
  position: relative; width: min(360px, 82vw); padding: 26px 26px 22px; background: var(--paper); border-radius: 0 14px 14px 14px;
  box-shadow: 0 30px 60px -24px rgb(22 24 26 / .35);
}
.ks-loader__tab::before { content: ''; position: absolute; left: 0; top: -22px; width: 44%; height: 23px; background: var(--paper); border-radius: 12px 12px 0 0; }
.ks-loader__tab::after { content: ''; position: absolute; left: 44%; top: -10px; width: 14px; height: 11px; background: radial-gradient(circle at 100% 0, transparent 10px, var(--paper) 10.5px); }
.ks-loader__row { display: flex; justify-content: space-between; align-items: baseline; }
.ks-loader__num { font-weight: 900; font-stretch: 70%; font-size: 5.4rem; line-height: .8; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ks-loader__tape { position: relative; height: 34px; margin-top: 18px; background: var(--mark); border-radius: 3px; overflow: hidden; }
.ks-loader__ticks { position: absolute; inset: 0 auto 0 0; width: 300%; color: var(--graphite); }
.ks-loader__ticks svg { width: 100%; height: 100%; }
.ks-loader__hook { position: absolute; left: 0; top: -4px; bottom: -4px; width: 7px; background: var(--graphite); border-radius: 2px; }

/* ---------- page transition slats ---------- */
.ks-slats { position: fixed; inset: 0; z-index: 110; display: flex; pointer-events: none; }
.ks-slats span { flex: 1; background: var(--graphite); transform: scaleY(0); transform-origin: 50% 0; }
.ks-slats span:nth-child(even) { background: #1f2327; }
.ks-slats img { position: absolute; left: 50%; top: 50%; width: min(240px, 46vw); transform: translate(-50%, -50%); opacity: 0; }
html.arriving .ks-slats span { transform: scaleY(1); }
html.arriving .ks-slats img { opacity: 1; }
html.arriving::before { content: ''; position: fixed; inset: 0; background: var(--graphite); z-index: 109; }
html.arriving.slats-ready::before { display: none; }

/* ---------- custom cursor ---------- */
.ks-cursor { position: fixed; left: 0; top: 0; z-index: 130; pointer-events: none; width: 0; height: 0; }
.ks-cursor__x { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; transition: transform .35s var(--ease-out), opacity .3s; }
.ks-cursor__x::before, .ks-cursor__x::after { content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 2px; margin: -1px 0 0 -11px; background: var(--mark); border-radius: 2px; transform: rotate(45deg); }
.ks-cursor__x::after { transform: rotate(-45deg); }
.ks-cursor__label { position: absolute; left: 14px; top: 12px; padding: 5px 10px 4px; border-radius: 999px; background: var(--graphite); color: var(--paper); font-family: var(--f-data); font-size: .69rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; opacity: 0; transform: scale(.8); transform-origin: 0 0; transition: opacity .25s, transform .35s var(--ease-out); }
.ks-cursor.has-label .ks-cursor__label { opacity: 1; transform: none; }
.ks-cursor.is-link .ks-cursor__x { transform: scale(1.6) rotate(45deg); }
.ks-cursor.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .ks-cursor { display: none; } }

/* ==========================================================================
   HOME DECK
   ========================================================================== */
.world { display: none; }
.deck-mode .world { display: block; position: fixed; inset: 0; z-index: 0; background: #0e1114; overflow: hidden; }
.world video, .world img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.world video { opacity: 0; }
.world video.is-on { opacity: 1; }
.world img { transition: opacity .25s; }
.world img.is-off { opacity: 0; }
.veil { display: none; }
.deck-mode .veil {
  display: block; position: fixed; z-index: 1; background: rgb(14 17 20 / .34);
  backdrop-filter: blur(20px) saturate(1.15); -webkit-backdrop-filter: blur(20px) saturate(1.15);
}
.veil--t { inset: 0 0 auto; height: var(--hdr); }
.veil--b { inset: auto 0 0; height: var(--band); }
.veil--l { left: 0; top: var(--hdr); bottom: var(--band); width: var(--side); }
.veil--r { right: 0; top: var(--hdr); bottom: var(--band); width: var(--side); }

.deck { position: relative; }
.deck-mode, .deck-mode body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.deck-mode .deck {
  position: fixed; z-index: 2; top: var(--hdr); left: var(--side); right: var(--side); bottom: var(--band);
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 40px 90px -30px rgb(0 0 0 / .65);
}
.slide { position: relative; min-height: 100svh; }
.deck-mode .slide { position: absolute; inset: 0; min-height: 0; overflow: hidden auto; overscroll-behavior: contain; visibility: hidden; scrollbar-width: thin; }
.deck-mode .slide.is-active, .deck-mode .slide.is-leaving { visibility: visible; }
.deck-mode .slide.is-leaving { z-index: 1; }
.deck-mode .slide.is-active { z-index: 2; }
.surface-slab { background: var(--slab); }
.surface-slab2 { background: var(--slab-2); }
.surface-chalk { background: var(--chalk); color: var(--chalk-ink); }
.surface-mark { background: var(--mark); color: var(--graphite); }
.surface-night { background: var(--night); color: var(--night-ink); }
.slide__inner { position: relative; min-height: 100%; padding: calc(var(--hdr) + 24px) var(--pad) 48px; }
.deck-mode .slide__inner { padding: clamp(22px, 3.4vw, 48px); min-height: 100%; }

/* deck bar */
.deck-bar { display: none; }
.deck-mode .deck-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; height: var(--band); padding: 0 calc(var(--side) + 6px); color: #f4f1ea;
}
.deck-dots { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.deck-dots button { position: relative; display: block; width: 22px; height: 24px; }
.deck-dots button::before { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 2px; border-radius: 2px; background: rgb(244 241 234 / .35); transition: background-color .3s; }
.deck-dots button::after { content: ''; position: absolute; left: 0; top: 11px; height: 2px; width: calc(var(--p, 0) * 100%); border-radius: 2px; background: var(--mark); }
.deck-dots button[aria-current="step"] { width: 46px; }
.deck-dots button[aria-current="step"]::before { background: rgb(244 241 234 / .6); }
.deck-dots button:hover::before { background: #f4f1ea; }
.deck-dots button span { position: absolute; bottom: 30px; left: 50%; transform: translate(-50%, 6px); padding: 5px 9px 4px; border-radius: 4px; background: var(--paper); color: var(--graphite); font-family: var(--f-data); font-size: .69rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--ease-out); }
.deck-dots button:hover span, .deck-dots button:focus-visible span { opacity: 1; transform: translate(-50%, 0); }
.deck-arrows { justify-self: end; display: flex; gap: 8px; }
.deck-arrows button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgb(244 241 234 / .55); transition: background-color .3s, color .3s; }
.deck-arrows button:hover:not([disabled]) { background: #f4f1ea; color: var(--graphite); }
.deck-arrows button[disabled] { opacity: .3; cursor: default; }
.deck-arrows .ico { width: 18px; height: 18px; }
.deck-linear-btn { justify-self: start; font-family: var(--f-data); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; opacity: .8; }
.deck-linear-btn:hover { opacity: 1; }
.deck-linear-btn .ico { width: 15px; height: 15px; }
.deck-back { display: none; }
.deck-linear .deck-back { display: inline-flex; position: fixed; right: 16px; bottom: 16px; z-index: 50; }
@media (max-width: 760px) {
  .deck-mode .deck-bar { grid-template-columns: auto 1fr auto; }
  .deck-linear-btn span { display: none; }
  .deck-dots { justify-content: center; gap: 3px; }
  .deck-dots button { width: 10px; }
  .deck-dots button[aria-current="step"] { width: 26px; }
  .deck-dots button span { display: none; }
  .deck-arrows button { width: 36px; height: 36px; }
}

/* transition slats inside the frame */
.frame-slats { position: absolute; inset: 0; z-index: 4; display: flex; pointer-events: none; }
.frame-slats span { flex: 1; transform: scaleX(0); background: var(--graphite); }

/* ---------- slide 00: cover ---------- */
.cover { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-rows: auto 1fr auto; gap: 0 clamp(16px, 3vw, 48px); min-height: 100%; }
.cover__meta { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cover__title { grid-column: 1; align-self: center; margin: 18px 0 10px; }
.cover__built { display: flex; gap: .02em; font-weight: 900; font-stretch: 68%; font-size: clamp(5.4rem, min(14.2vw, 27vh), 15rem); line-height: .8; text-transform: uppercase; letter-spacing: -.01em; }
.mletter {
  position: relative; display: inline-block; color: transparent; background-size: cover; background-position: center;
  -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 5px 6px rgb(22 24 26 / .22));
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0)); transition: transform .6s var(--ease-out);
}
.mletter:hover { transform: rotate(0deg) translateY(-6px); }
.mletter .tag { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, 6px); opacity: 0; pointer-events: none; font-size: .69rem; filter: none; color: var(--graphite); background-clip: border-box; -webkit-background-clip: border-box; white-space: nowrap; transition: opacity .25s, transform .35s var(--ease-out); }
.mletter:hover .tag { opacity: 1; transform: translate(-50%, -4px); }
.cover__drawn { display: block; font-weight: 800; font-stretch: 118%; text-transform: uppercase; font-size: clamp(2rem, min(5.1vw, 9.4vh), 5.4rem); line-height: .95; color: transparent; -webkit-text-stroke: 1.4px var(--chalk-line); letter-spacing: .01em; margin-top: .12em; }
.cover__finish { font-family: var(--f-finish); font-style: italic; font-weight: 400; font-size: clamp(1.9rem, min(3.7vw, 6.6vh), 3.9rem); line-height: 1.05; margin-top: .3em; }
.cover__foot { grid-column: 1; display: flex; flex-direction: column; gap: 18px; }
.cover__foot p { max-width: 46ch; color: var(--graphite-2); }
.cover__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cover__art { grid-column: 2; grid-row: 2 / 4; position: relative; min-height: 360px; }
.cover__sheet { position: absolute; right: 2%; top: 6%; width: 92%; transform: rotate(-4.5deg); background: var(--paper); padding: 9px; box-shadow: 0 30px 50px -26px rgb(22 24 26 / .55); }
.cover__sheet img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cover__house { position: absolute; left: -6%; right: -4%; bottom: 8%; }
.cover__house img { width: 100%; filter: drop-shadow(0 26px 22px rgb(22 24 26 / .35)); }
.cover__caption { position: absolute; right: 2%; bottom: -4px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.cover__caption .t-data { color: var(--graphite-3); }
@media (max-width: 860px) {
  .cover { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .cover__title, .cover__foot, .cover__art { grid-column: 1; grid-row: auto; }
  .cover__built { font-size: clamp(5rem, 27vw, 9rem); }
  .cover__drawn { font-size: clamp(1.6rem, 8.6vw, 3rem); -webkit-text-stroke-width: 1.1px; }
  .cover__finish { font-size: clamp(1.7rem, 8vw, 2.8rem); }
  .cover__art { min-height: 0; aspect-ratio: 1.25; margin: 6px 0 18px; }
  .cover__caption { position: static; justify-content: flex-start; margin-top: 8px; }
  .cover__meta .t-data:last-child { display: none; }
}

/* ---------- walkthrough slides ---------- */
.walk { background: transparent; color: #fff; }
.walk__still { display: none; }
.walk__copy { position: absolute; left: 0; bottom: 0; max-width: min(640px, 100%); padding: clamp(22px, 3.4vw, 48px); z-index: 2; }
.walk::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(12deg, rgb(8 10 12 / .78) 0%, rgb(8 10 12 / .42) 34%, rgb(8 10 12 / 0) 62%); }
.walk__title { font-weight: 850; font-stretch: 78%; text-transform: uppercase; font-size: clamp(2.4rem, min(5.4vw, 10vh), 5.6rem); line-height: .92; letter-spacing: -.012em; }
.walk__title em { display: block; font-family: var(--f-finish); font-weight: 400; font-style: italic; text-transform: none; font-stretch: 100%; color: var(--mark-pale); letter-spacing: -.015em; }
.walk__body { margin-top: 16px; font-size: clamp(1rem, 1.2vw, 1.12rem); max-width: 44ch; color: rgb(255 255 255 / .9); }
.walk__meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.walk__meta .t-data { color: rgb(255 255 255 / .78); margin-right: 6px; }
.walk__meta .tag { background: rgb(255 255 255 / .92); }
.walk__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.walk__label { position: absolute; top: clamp(18px, 2.6vw, 36px); right: clamp(18px, 2.6vw, 36px); z-index: 2; }
.walk__hint { position: absolute; right: clamp(22px, 3.4vw, 48px); bottom: clamp(22px, 3.4vw, 48px); z-index: 2; display: flex; align-items: center; gap: 12px; font-family: var(--f-data); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / .85); }
.walk__hint i { position: relative; display: block; width: 1.5px; height: 46px; background: rgb(255 255 255 / .3); overflow: hidden; }
.walk__hint i::after { content: ''; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: var(--mark); animation: hintDrop 1.8s var(--ease-io) infinite; }
@keyframes hintDrop { to { top: 100%; } }
.walk__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: rgb(255 255 255 / .12); }
.walk__progress i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--mark); }
.deck-linear .walk, .walk:not(.deck-mode *) { }
html:not(.deck-mode) .walk { min-height: 92svh; overflow: hidden; }
html:not(.deck-mode) .walk__still { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
html:not(.deck-mode) .walk__progress { display: none; }
@media (max-width: 760px) {
  .walk__hint { display: none; }
  .walk::before { background: linear-gradient(0deg, rgb(8 10 12 / .85) 0%, rgb(8 10 12 / .45) 45%, rgb(8 10 12 / 0) 75%); }
}

/* ---------- shared slide header row ---------- */
.s-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; flex-wrap: wrap; }
.s-head__meta { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.s-head__meta::before { content: ''; width: 26px; height: 1.5px; background: currentColor; opacity: .6; }

/* ---------- slide 08: materials (depth collage) ---------- */
.mat { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(20px, 4vw, 60px); min-height: 100%; align-items: stretch; }
.mat__copy { display: flex; flex-direction: column; gap: 18px; }
.mat__copy > p { color: var(--graphite-2); max-width: 44ch; }
.mat__list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 8px; }
.mat__swatch {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 10px 6px 6px; border-radius: 999px; text-align: left;
  background: rgb(246 244 239 / .55); box-shadow: inset 0 0 0 1px rgb(22 24 26 / .12); font-weight: 650; font-stretch: 88%; font-size: .86rem;
  transition: background-color .3s, box-shadow .3s;
}
.mat__swatch img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.mat__swatch:hover { background: var(--paper); }
.mat__swatch[aria-pressed="true"] { background: var(--graphite); color: var(--paper); box-shadow: none; }
.mat__detail { margin-top: auto; padding-top: 18px; border-top: 1.5px solid var(--graphite); }
.mat__detail .t-data { color: var(--mark-deep); }
.mat__detail h3 { margin: 6px 0 8px; }
.mat__detail p { color: var(--graphite-2); max-width: 46ch; }
.spec { margin-top: 14px; display: grid; gap: 0; }
.spec div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0 7px; border-bottom: 1px solid rgb(22 24 26 / .14); font-size: .92rem; }
.spec div .t-data { color: var(--graphite-3); }
.surface-chalk .spec div, .surface-night .spec div { border-bottom-color: rgb(255 255 255 / .16); }
.mat__field { position: relative; min-height: 420px; perspective: 1200px; }
.mat__room { position: absolute; left: 12%; right: 10%; top: 10%; bottom: 14%; border-radius: 6px; overflow: hidden; box-shadow: 0 40px 70px -30px rgb(22 24 26 / .55); background: var(--slab-3); }
.mat__room img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease-out), transform 1.2s var(--ease-out); }
.mat__room img.is-off { opacity: 0; transform: scale(1.06); }
.mat__room .stamp { position: absolute; left: 12px; top: 12px; z-index: 2; }
.mat__room figcaption { position: absolute; right: 12px; bottom: 12px; z-index: 2; color: #fff; text-shadow: 0 1px 8px rgb(0 0 0 / .6); }
.mat__chip {
  --d: 1; position: absolute; width: calc(76px + 64px * var(--d)); aspect-ratio: 1; border-radius: 4px; overflow: hidden; padding: 0;
  box-shadow: 0 calc(10px + 16px * var(--d)) calc(18px + 26px * var(--d)) -14px rgb(22 24 26 / .55);
  filter: blur(calc((1 - var(--d)) * 3.2px)); transform: translate3d(var(--mx, 0), var(--my, 0), 0) rotate(var(--r, 0deg));
  transition: filter .6s, box-shadow .6s, outline-color .3s; outline: 3px solid transparent; outline-offset: 3px; z-index: calc(2 + var(--z, 0));
  animation: drift calc(7s + var(--i) * 1.3s) ease-in-out infinite alternate;
}
.mat__chip img { width: 100%; height: 100%; object-fit: cover; }
.mat__chip.is-on { filter: none; outline-color: var(--mark); z-index: 20; }
@keyframes drift { from { translate: 0 -6px; } to { translate: 0 8px; } }
.mat__line { position: absolute; inset: 0; z-index: 19; pointer-events: none; overflow: visible; }
.mat__line path { fill: none; stroke: var(--mark); stroke-width: 1.5; stroke-dasharray: 4 5; }
@media (max-width: 860px) {
  .mat { grid-template-columns: 1fr; }
  .mat__field { min-height: 0; aspect-ratio: 1; order: -1; }
  .mat__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mat__chip { width: calc(48px + 34px * var(--d)); }
}

/* ---------- slide 09: philosophy (projected type) ---------- */
.phil { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 60px); align-items: center; min-height: 100%; }
.phil__quote { font-family: var(--f-finish); font-weight: 400; font-size: clamp(2.1rem, min(4.3vw, 7.6vh), 4.5rem); line-height: 1.04; letter-spacing: -.015em; }
.phil__quote em { color: var(--mark-pale); }
.phil__by { margin-top: 22px; color: var(--chalk-soft); }
.phil__ctx { margin-top: 26px; max-width: 54ch; color: var(--chalk-soft); line-height: 1.75; }
.phil__ctx strong { color: var(--chalk-ink); font-weight: 650; }
.proj { position: relative; aspect-ratio: 1683 / 934; width: 124%; margin-left: -8%; }
.proj__house { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) contrast(1.2) brightness(1.05); mix-blend-mode: luminosity; }
.proj__type {
  position: absolute; inset: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: .02em;
  -webkit-mask: url('../images/atelier/shoreline-house-cutout.webp') center / contain no-repeat; mask: url('../images/atelier/shoreline-house-cutout.webp') center / contain no-repeat;
  mix-blend-mode: screen; opacity: .9;
}
.proj__row { display: flex; white-space: nowrap; font-weight: 900; font-stretch: 66%; text-transform: uppercase; font-size: clamp(1rem, 1.9vw, 2rem); line-height: .9; color: #fff; animation: projRow 30s linear infinite; }
.proj__row:nth-child(even) { animation-direction: reverse; color: #ff7a3d; }
.proj__row span { padding-right: .5em; }
@keyframes projRow { to { transform: translateX(-50%); } }
.proj__light { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; background: radial-gradient(circle at var(--lx, 60%) var(--ly, 40%), rgb(255 255 255 / .75), transparent 42%); -webkit-mask: url('../images/atelier/shoreline-house-cutout.webp') center / contain no-repeat; mask: url('../images/atelier/shoreline-house-cutout.webp') center / contain no-repeat; }
.proj .stamp { position: absolute; left: 9%; bottom: -6px; }
@media (max-width: 860px) { .phil { grid-template-columns: 1fr; } .proj { order: -1; } }

/* ---------- slide 10: drawn then built ---------- */
.dtb { display: flex; flex-direction: column; gap: 18px; min-height: 100%; }
.dtb__stage { position: relative; flex: 1; min-height: 340px; }
.compare {
  position: absolute; inset: 0; overflow: hidden; border-radius: 10px; background: var(--chalk); touch-action: pan-y;
  clip-path: inset(var(--ci, 0%) var(--cx, 0%) var(--ci, 0%) var(--cx, 0%) round 10px); cursor: ew-resize; user-select: none; -webkit-user-select: none;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 0; z-index: 3; }
.compare__line::before { content: ''; position: absolute; top: 0; bottom: 64px; left: -.75px; width: 1.5px; background: var(--paper); box-shadow: 0 0 0 .5px rgb(0 0 0 / .25); }
.compare__bob { position: absolute; bottom: 18px; left: -11px; width: 22px; height: 46px; }
.compare__bob svg { width: 100%; height: 100%; }
.compare__knob { position: absolute; top: 50%; left: -30px; width: 60px; height: 60px; margin-top: -30px; border-radius: 50%; display: grid; place-items: center; background: var(--mark); color: var(--graphite); box-shadow: 0 10px 24px -8px rgb(0 0 0 / .5); cursor: grab; touch-action: none; }
.compare__knob:active { cursor: grabbing; }
.compare__knob .ico { width: 26px; height: 26px; }
.compare__lab { position: absolute; top: 14px; z-index: 2; display: grid; gap: 6px; }
.compare__lab--l { left: 14px; justify-items: start; }
.compare__lab--r { right: 14px; justify-items: end; }
.compare__lab b { font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.8rem); line-height: .9; color: #fff; text-shadow: 0 2px 14px rgb(0 0 0 / .35); }
.dtb__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px 30px; flex-wrap: wrap; }
.dtb__foot p { color: var(--graphite-2); max-width: 62ch; }

/* ---------- slide 11: call band ---------- */
.call { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 100%; }
.call__top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.call__top p { max-width: 42ch; font-size: clamp(1rem, 1.3vw, 1.2rem); }
.call__phone { display: block; text-decoration: none; font-weight: 900; font-stretch: 64%; font-size: clamp(4.4rem, min(15vw, 30vh), 16rem); line-height: .8; letter-spacing: -.02em; font-variant-numeric: tabular-nums; transition: color .3s; white-space: nowrap; }
.call__phone:hover { color: var(--paper); }
.call__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.pulse { display: inline-flex; align-items: center; gap: 10px; }
.pulse i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.pulse i::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid currentColor; animation: pulse 2s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* ---------- slide 12: selected work ---------- */
.work { display: flex; flex-direction: column; gap: 20px; min-height: 100%; }
.work__note { color: var(--graphite-2); max-width: 70ch; }
.work__panels { flex: 1; display: grid; grid-template-columns: 1.25fr 1fr 1.1fr; gap: clamp(14px, 2.4vw, 34px); align-items: start; }
.panel { position: relative; transform: rotate(var(--a, 0deg)); transition: transform .7s var(--ease-out); }
.panel:hover { transform: rotate(0deg) translateY(-6px); }
.panel__mount { position: relative; background: var(--paper); padding: 8px; box-shadow: 0 26px 40px -24px rgb(22 24 26 / .5); }
.panel__img { position: relative; aspect-ratio: 4 / 3.2; overflow: hidden; }
.panel:nth-child(2) .panel__img { aspect-ratio: 3 / 3.4; }
.panel__img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel__img .stamp { position: absolute; left: 10px; top: 10px; z-index: 4; }
.panel__info { padding: 12px 4px 2px; }
.panel__info p { color: var(--graphite-2); font-size: .9rem; margin-top: 6px; }
.panel__info .t-data { color: var(--mark-deep); margin-top: 8px; display: block; }
.glass { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; }
@media (max-width: 860px) { .work__panels { grid-template-columns: 1fr; } .panel { max-width: 520px; } }

/* tile-grid duotone reveal */
.tiles { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--tc, 6), 1fr); pointer-events: none; }
.tiles i { background: var(--chalk); mix-blend-mode: color; opacity: 1; }
.tiles i:nth-child(3n) { mix-blend-mode: multiply; background: var(--chalk-line); }
.tiles.is-in i { opacity: 0; transition: opacity .5s var(--ease-out); transition-delay: calc(var(--d) * 1ms); }
html:not(.js) .tiles { display: none; }

/* ---------- slide 13: services node graph ---------- */
.svc { position: relative; display: flex; flex-direction: column; gap: 18px; min-height: 100%; }
.svc__graph { position: relative; flex: 1; display: grid; grid-template-columns: 1fr minmax(240px, 1.35fr) 1fr; grid-template-rows: repeat(3, auto); gap: 18px clamp(16px, 3vw, 48px); align-items: center; }
.svc__hub { grid-column: 2; grid-row: 1 / 4; position: relative; align-self: center; }
.svc__hub img { width: 100%; border-radius: 8px; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }
.svc__hub .stamp { position: absolute; left: 10px; bottom: 10px; }
.node { position: relative; z-index: 2; display: block; text-decoration: none; padding: 14px 0 12px; border-top: 1.5px solid rgb(238 243 255 / .35); transition: border-color .3s; }
.node:hover, .node:focus-visible { border-top-color: var(--mark); }
.node .t-data { color: var(--mark-pale); }
.node h3 { margin: 6px 0 6px; }
.node p { color: var(--chalk-soft); font-size: .9rem; max-width: 36ch; }
.node .link { margin-top: 10px; font-size: .88rem; }
.node--l { grid-column: 1; text-align: left; }
.node--r { grid-column: 3; }
.svc__wires { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: visible; }
.svc__wires path { fill: none; stroke: rgb(238 243 255 / .5); stroke-width: 1.2; }
.svc__wires circle { fill: var(--mark); }
.receipt {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 16px 20px 14px; background: var(--paper); color: var(--graphite);
  border-radius: 2px; box-shadow: 0 18px 30px -18px rgb(0 0 0 / .5);
  -webkit-mask: radial-gradient(circle at 6px 0, transparent 4px, #000 4.5px) 0 0 / 12px 100% repeat-x; mask: radial-gradient(circle at 6px 0, transparent 4px, #000 4.5px) 0 0 / 12px 100% repeat-x;
}
.receipt .t-data { color: var(--mark-deep); }
.receipt p { flex: 1 1 420px; font-size: .92rem; color: var(--graphite-2); }
.receipt a { color: var(--graphite); }
@media (max-width: 960px) {
  .svc__graph { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .svc__hub { grid-column: 1 / -1; grid-row: 1; max-width: 420px; }
  .node--l, .node--r { grid-column: auto; }
  .svc__wires { display: none; }
}
@media (max-width: 560px) { .svc__graph { grid-template-columns: 1fr; } }

/* ---------- slide 14 + footer ---------- */
.end { display: flex; flex-direction: column; gap: clamp(28px, 5vh, 60px); min-height: 100%; }
.end__cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.end__cta h2 { font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: clamp(2.8rem, min(7vw, 12vh), 7.4rem); line-height: .86; max-width: 17ch; letter-spacing: -.012em; }
.end__cta h2 em { font-family: var(--f-finish); font-style: italic; font-weight: 400; text-transform: none; font-stretch: 100%; color: var(--mark); }

.ks-footer { background: var(--night); color: var(--night-ink); padding: clamp(48px, 7vw, 96px) var(--pad) 28px; }
.slide .ks-footer { padding: 0; background: none; margin-top: auto; }
.ks-footer__word { display: block; font-weight: 900; font-stretch: 66%; text-transform: uppercase; font-size: clamp(3rem, 11.4vw, 12.4rem); line-height: .82; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; }
.ks-footer__word em { font-family: var(--f-finish); font-weight: 400; font-style: italic; text-transform: none; color: var(--mark); font-stretch: 100%; padding: 0 .04em; }
.slide .ks-footer__word { font-size: clamp(2.6rem, 9.6vw, 9.4rem); }
.ks-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; margin-top: clamp(28px, 4vw, 48px); padding-top: 24px; border-top: 1px solid rgb(236 233 226 / .16); }
.ks-footer__brand img { width: 150px; height: auto; }
.ks-footer__brand p { font-family: var(--f-finish); font-style: italic; font-size: 1.15rem; line-height: 1.35; margin: 14px 0 16px; color: var(--night-ink); }
.ks-footer nav { display: flex; flex-direction: column; gap: 7px; }
.ks-footer nav .t-data { color: var(--night-soft); margin-bottom: 6px; }
.ks-footer nav a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: .95rem; width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease-out), color .3s; }
.ks-footer nav a:hover { background-size: 100% 1px; color: var(--mark-pale); }
.ks-footer nav a.hot { color: var(--mark-pale); font-weight: 650; }
.ks-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin-top: 32px; color: var(--night-soft); }
.ks-footer .pulse { color: var(--mark); }
.ks-footer .pulse span { color: var(--night-ink); }
@media (max-width: 860px) { .ks-footer__grid { grid-template-columns: 1fr 1fr; } .ks-footer__brand { grid-column: 1 / -1; } }

/* ==========================================================================
   SCROLL PAGES
   ========================================================================== */
.page { padding-top: var(--hdr); }
.wrap { width: var(--wrap); margin-inline: auto; }
.sec { position: relative; padding: clamp(72px, 9vw, 140px) 0; }
.sec--chalk { background: var(--chalk); color: var(--chalk-ink); }
.sec--mark { background: var(--mark); color: var(--graphite); }
.sec--slab2 { background: var(--slab-2); }
.sec--night { background: var(--night); color: var(--night-ink); }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 64px); max-width: 980px; }
.sec-head .t-data { display: flex; align-items: center; gap: 10px; color: var(--graphite-3); }
.sec--chalk .sec-head .t-data { color: var(--chalk-soft); }
.sec-head .t-data::before { content: ''; width: 26px; height: 1.5px; background: currentColor; }
.chalkline { position: absolute; left: 0; right: 0; top: 0; height: 30px; transform: translateY(-50%); pointer-events: none; z-index: 3; overflow: visible; }
.chalkline path { fill: none; stroke: var(--chalk-line); stroke-width: 1.6; stroke-linecap: round; }
.sec--chalk .chalkline path { stroke: var(--chalk-soft); }
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--rd, 0ms); }
html:not(.js) .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- services page ---------- */
.svh { position: relative; padding: calc(var(--hdr) + clamp(20px, 4vw, 48px)) 0 0; overflow: hidden; }
.svh__word { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(3.6rem, 15.6vw, 17rem); line-height: .8; letter-spacing: -.035em; text-align: center; white-space: nowrap; overflow: hidden; }
.svh__grid { display: grid; grid-template-columns: 1fr auto; gap: 20px 48px; align-items: end; margin-top: clamp(20px, 3vw, 40px); }
.svh__grid p { max-width: 60ch; }
@media (max-width: 760px) { .svh__grid { grid-template-columns: 1fr; } }
.svh__meta { display: flex; gap: 12px; align-items: center; color: var(--graphite-3); }
.expand { position: relative; height: 200vh; margin-top: clamp(28px, 4vw, 56px); }
.expand__pin { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.expand__frame { position: relative; width: 100%; height: 100%; clip-path: inset(var(--ey, 22%) var(--ex, 30%) round var(--er, 14px)); }
.expand__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--es, 1.18)); }
.expand__frame .stamp { position: absolute; left: calc(var(--ex, 30%) + 14px); top: calc(var(--ey, 22%) + 14px); z-index: 2; }
.expand__cap { position: absolute; right: calc(var(--ex, 30%) + 14px); bottom: calc(var(--ey, 22%) + 14px); z-index: 2; color: #fff; text-shadow: 0 1px 10px rgb(0 0 0 / .6); }

.scheme { position: relative; display: grid; grid-template-columns: 1fr minmax(260px, 1.5fr) 1fr; gap: 26px clamp(18px, 3vw, 44px); align-items: center; }
.scheme__house { grid-column: 2; grid-row: 1 / 4; position: relative; }
.scheme__house img { width: 100%; filter: drop-shadow(0 30px 30px rgb(0 0 0 / .35)); }
.scheme__house .stamp { position: absolute; right: 0; bottom: -8px; }
.scheme .node--l { grid-column: 1; text-align: right; }
.scheme .node--l p { margin-left: auto; }
.scheme .node--r { grid-column: 3; }
.scheme__wires { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 1; }
.scheme__wires path { fill: none; stroke: rgb(238 243 255 / .55); stroke-width: 1.2; stroke-dasharray: 3 4; }
.scheme__wires circle.pin { fill: var(--chalk); stroke: var(--mark); stroke-width: 2; }
.node__icon { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--chalk-ink); color: var(--chalk); margin-bottom: 8px; }
.node__icon .ico { width: 18px; height: 18px; }
@media (max-width: 960px) {
  .scheme { grid-template-columns: 1fr 1fr; }
  .scheme__house { grid-column: 1 / -1; grid-row: 1; }
  .scheme .node--l, .scheme .node--r { grid-column: auto; text-align: left; }
  .scheme .node--l p { margin-left: 0; }
  .scheme__wires { display: none; }
}
@media (max-width: 560px) { .scheme { grid-template-columns: 1fr; } }

.sheets { display: grid; gap: 0; }
.sheet {
  position: sticky; top: calc(var(--hdr) + 14px); min-height: min(76vh, 720px); margin-bottom: 6vh;
  display: grid; grid-template-columns: 56px minmax(0, 1.05fr) minmax(0, 1fr); background: var(--paper); border-radius: 12px; overflow: hidden;
  box-shadow: 0 -2px 0 rgb(22 24 26 / .06), 0 30px 60px -36px rgb(22 24 26 / .55); transform-origin: 50% 0;
}
.sheet__strip { background-size: cover; background-position: center; position: relative; }
.sheet__strip::after { content: ''; position: absolute; inset: 0; box-shadow: inset -1px 0 0 rgb(0 0 0 / .15); }
.sheet__media { position: relative; overflow: hidden; }
.sheet__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet__media .stamp { position: absolute; left: 14px; top: 14px; z-index: 3; }
.sheet__body { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: clamp(24px, 3.4vw, 52px); }
.sheet__num { font-weight: 900; font-stretch: 62%; font-size: clamp(5rem, 11vw, 10rem); line-height: .78; color: transparent; -webkit-text-stroke: 1.5px var(--chalk-line); }
.sheet__body p { color: var(--graphite-2); max-width: 52ch; }
.sheet__cap { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1.5px solid var(--graphite); }
.sheet__cap::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--mark); flex: none; }
@media (max-width: 860px) {
  .sheet { position: relative; top: 0; grid-template-columns: 1fr; min-height: 0; margin-bottom: 18px; }
  .sheet__strip { height: 14px; }
  .sheet__media { aspect-ratio: 4 / 3; }
}

.permits { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); padding-top: 30px; }
.permits__line { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--graphite); transform-origin: 0 50%; }
.permits__line i { position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--mark); box-shadow: 0 0 0 3px var(--slab-2); animation: travel 6s var(--ease-io) infinite; }
@keyframes travel { 0% { left: 0; } 50% { left: calc(100% - 12px); } 100% { left: 0; } }
.permit {
  position: relative; background: var(--paper); padding: 22px 20px 20px; border-radius: 2px; box-shadow: 0 22px 34px -24px rgb(22 24 26 / .5);
  -webkit-mask: radial-gradient(circle at 6px 0, transparent 4px, #000 4.5px) 0 0 / 12px 100% repeat-x; mask: radial-gradient(circle at 6px 0, transparent 4px, #000 4.5px) 0 0 / 12px 100% repeat-x;
}
.permit::before { content: ''; position: absolute; left: 50%; top: -30px; width: 1.5px; height: 30px; background: var(--graphite); }
.permit .t-data { color: var(--mark-deep); }
.permit h3 { margin: 10px 0 8px; }
.permit p { color: var(--graphite-2); font-size: .92rem; }
.permit__punch { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 12px; border-top: 1px dashed rgb(22 24 26 / .3); font-family: var(--f-data); font-size: .69rem; letter-spacing: .06em; color: var(--graphite-3); text-transform: uppercase; }
@media (max-width: 760px) { .permits { grid-template-columns: 1fr; } .permit::before { display: none; } }

.band { text-align: center; }
.band h2 { font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: clamp(2.8rem, 8vw, 8rem); line-height: .86; letter-spacing: -.012em; max-width: 14ch; margin: 18px auto 30px; }
.band__phone { display: inline-block; text-decoration: none; font-weight: 900; font-stretch: 64%; font-size: clamp(1.6rem, 4vw, 3.4rem); line-height: 1; padding: 16px 28px 14px; border-radius: 999px; background: var(--graphite); color: var(--mark); font-variant-numeric: tabular-nums; transition: background-color .3s, color .3s; }
.band__phone:hover { background: var(--paper); color: var(--graphite); }

/* ---------- projects page ---------- */
.pv { padding-top: calc(var(--hdr) + 16px); padding-bottom: clamp(32px, 4vw, 56px); }
.pv__grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: clamp(16px, 2.6vw, 40px); align-items: stretch; }
.pv__viewer { position: relative; min-height: min(72vh, 680px); }
.pv__panel { display: flex; flex-direction: column; gap: 16px; padding: clamp(20px, 2.4vw, 32px); background: var(--paper); border-radius: 12px; box-shadow: 0 26px 50px -36px rgb(22 24 26 / .5); }
.pv__panel .t-data { color: var(--mark-deep); }
.pv__panel h1 { font-weight: 850; font-stretch: 78%; text-transform: uppercase; font-size: clamp(2rem, 3.2vw, 3.2rem); line-height: .94; }
.pv__panel > p { color: var(--graphite-2); }
.pv__count { display: flex; align-items: flex-end; gap: 14px; margin-top: auto; }
.pv__count b { font-weight: 900; font-stretch: 62%; font-size: clamp(4.6rem, 7vw, 7rem); line-height: .78; font-variant-numeric: tabular-nums; }
.pv__count .t-data { color: var(--graphite-3); padding-bottom: 6px; }
.pv__note { font-size: .86rem; color: var(--graphite-3); }
.pv__tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: clamp(20px, 3vw, 36px); }
.dial { position: relative; display: flex; align-items: center; gap: 18px; }
.dial__knob { position: relative; width: 92px; height: 92px; border-radius: 50%; background: var(--graphite); box-shadow: inset 0 0 0 6px #2a2e32, 0 14px 24px -12px rgb(0 0 0 / .5); transition: transform .7s var(--ease-out); transform: rotate(var(--deg, 0deg)); }
.dial__knob::after { content: ''; position: absolute; left: 50%; top: 10px; width: 4px; height: 22px; margin-left: -2px; border-radius: 2px; background: var(--mark); }
.dial__btns { display: grid; grid-template-columns: repeat(4, auto); gap: 6px; }
.dial__btns button { padding: 9px 14px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--graphite); font-family: var(--f-data); font-size: .7rem; letter-spacing: .06em; transition: background-color .3s, color .3s; }
.dial__btns button:hover { background: rgb(22 24 26 / .08); }
.dial__btns button[aria-checked="true"] { background: var(--graphite); color: var(--paper); }
.dial__status { display: flex; gap: 8px; }
.dial__status .t-data:last-child { color: var(--mark-deep); }
.strip { position: relative; margin-top: 22px; overflow: hidden; padding: 18px 0 26px; cursor: grab; }
.strip.is-drag { cursor: grabbing; }
.strip__track { display: flex; gap: 14px; width: max-content; padding: 0 var(--pad); will-change: transform; }
.frame {
  position: relative; width: clamp(180px, 20vw, 260px); flex: none; text-align: left;
}
.frame__img { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--slab-3); box-shadow: 0 16px 26px -18px rgb(22 24 26 / .6); }
.frame__img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform .8s var(--ease-out); }
.frame:hover .frame__img img { transform: scale(1.06); }
.frame__tag { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: .86rem; font-weight: 650; font-stretch: 88%; }
.frame__tag .t-data { color: var(--graphite-3); }
.frame[aria-pressed="true"] .frame__img { outline: 3px solid var(--mark); outline-offset: 3px; }
.frame[aria-pressed="true"] .frame__tag .t-data { color: var(--mark-deep); }
/* filtered-out jobs leave the strip entirely, so every photo on screen stays at full strength */
.frame.is-filtered { display: none; }
@media (max-width: 960px) { .pv__grid { grid-template-columns: 1fr; } .pv__viewer { min-height: 0; aspect-ratio: 4 / 3.2; } }
@media (max-width: 560px) { .dial__knob { width: 64px; height: 64px; } .dial__btns { grid-template-columns: repeat(2, auto); } }

/* ---------- about page ---------- */
.ab-hero { position: relative; background: var(--chalk); color: var(--chalk-ink); padding: calc(var(--hdr) + clamp(28px, 4vw, 56px)) 0 clamp(48px, 6vw, 88px); overflow: hidden; }
.ab-hero__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 64px); align-items: center; }
.ab-hero h1 { font-weight: 850; font-stretch: 76%; text-transform: uppercase; font-size: clamp(2.6rem, 5.6vw, 5.8rem); line-height: .9; letter-spacing: -.012em; }
.ab-hero h1 em { font-family: var(--f-finish); font-weight: 400; font-style: italic; text-transform: none; font-stretch: 100%; color: var(--mark-pale); }
.ab-hero p { margin-top: 18px; max-width: 44ch; color: var(--chalk-soft); }
.ab-hero__meta { margin-bottom: 18px; color: var(--chalk-soft); }
.iso { position: relative; aspect-ratio: 1.15; perspective: 2000px; }
.iso__stack { position: absolute; left: 50%; top: 54%; width: 58%; aspect-ratio: 1; transform-style: preserve-3d; transform: translate(-50%, -50%) rotateX(58deg) rotateZ(-42deg); }
.iso__plate {
  position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--z) * var(--gap, 46px))); transition: transform .8s var(--ease-out);
  background-size: cover; background-position: center; cursor: pointer; border: 0; padding: 0; border-radius: 3px;
  box-shadow: 0 0 0 1.5px rgb(238 243 255 / .85);
}
.iso__plate::before { content: ''; position: absolute; inset: 0; background: rgb(5 71 156 / .38); transition: background-color .4s; border-radius: 3px; }
.iso__plate.is-on::before, .iso__plate:hover::before, .iso__plate:focus-visible::before { background: rgb(5 71 156 / 0); }
.iso__plate.is-on { transform: translateZ(calc(var(--z) * var(--gap, 46px) + 26px)); box-shadow: 0 0 0 2.5px var(--mark); }
.iso__plate span { position: absolute; left: 100%; bottom: 0; transform-origin: 0 100%; transform: rotateZ(42deg) rotateX(-58deg) translate(14px, 0); white-space: nowrap; font-family: var(--f-data); font-size: .69rem; letter-spacing: .08em; text-transform: uppercase; color: var(--chalk-ink); background: rgb(3 53 122 / .85); padding: 4px 8px 3px; border-radius: 3px; pointer-events: none; }
.iso__plate.is-on span { background: var(--mark); color: var(--graphite); }
.iso:hover .iso__stack, .iso:focus-within .iso__stack { --gap: 64px; }
.iso__plate--split { display: grid; grid-template-columns: 1fr 1fr; background: none !important; box-shadow: none; }
.iso__card { position: absolute; right: 0; bottom: 0; width: min(330px, 70%); padding: 18px 20px; background: var(--paper); color: var(--graphite); border-radius: 10px; box-shadow: 0 30px 50px -30px rgb(0 0 0 / .55); }
.iso__card .t-data { color: var(--mark-deep); }
.iso__card h2 { font-weight: 800; font-stretch: 82%; font-size: 1.7rem; line-height: 1; margin: 8px 0 8px; }
.iso__card p { color: var(--graphite-2); font-size: .9rem; margin: 0; max-width: none; }
@media (max-width: 960px) { .ab-hero__grid { grid-template-columns: 1fr; } .iso { aspect-ratio: .95; } .iso__card { position: relative; width: 100%; margin-top: -10%; } }

.stakes { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); padding-top: 70px; }
.stakes__line { position: absolute; left: -4vw; right: -4vw; top: 30px; height: 2px; background: var(--chalk-line); transform-origin: 0 50%; }
.stake { position: relative; }
.stake__post { position: absolute; left: 22px; top: -70px; width: 10px; height: 74px; background: linear-gradient(90deg, #c69a5b, #e2bd84 45%, #b98a4c); border-radius: 1px 1px 0 0; clip-path: polygon(0 0, 100% 0, 100% 86%, 50% 100%, 0 86%); }
.stake__flag { position: absolute; left: 32px; top: -66px; padding: 4px 12px 4px 10px; background: var(--mark); color: var(--graphite); font-family: var(--f-hand); font-size: 1.05rem; line-height: 1.1; transform-origin: 0 50%; animation: flag 3.2s ease-in-out infinite alternate; clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%); }
@keyframes flag { from { transform: skewY(-3deg); } to { transform: skewY(3deg) scaleX(.96); } }
.stake__body { padding-top: 24px; }
.stake__body p { color: var(--graphite-2); font-size: .94rem; margin-top: 8px; }
@media (max-width: 860px) { .stakes { grid-template-columns: 1fr 1fr; row-gap: 100px; } .stakes__line { display: none; } }
@media (max-width: 520px) { .stakes { grid-template-columns: 1fr; } }

.seals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 60px); justify-items: center; }
.seal { display: grid; justify-items: center; gap: 16px; text-align: center; }
.seal svg { width: clamp(150px, 16vw, 210px); height: auto; overflow: visible; }
.seal svg text { font-family: var(--f-data); }
.seal .seal__inner { transform-origin: 60px 60px; }
.seal.is-in .seal__inner { animation: stamp .7s var(--ease-out) both; }
@keyframes stamp { 0% { transform: scale(1.5) rotate(-14deg); opacity: 0; } 55% { transform: scale(.94) rotate(2deg); opacity: 1; } 100% { transform: scale(1) rotate(-3deg); opacity: 1; } }
.seal__label { font-weight: 700; font-stretch: 88%; font-size: 1.05rem; }
@media (max-width: 760px) { .seals { grid-template-columns: 1fr; } }

.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.why > div { padding-top: 16px; border-top: 2px solid var(--graphite); }
.why h3 { font-weight: 850; font-stretch: 76%; text-transform: uppercase; font-size: 1.6rem; line-height: 1; margin-bottom: 10px; }
.why p { color: var(--graphite-2); font-size: .95rem; }
.convo { margin-top: clamp(40px, 6vw, 80px); display: flex; justify-content: space-between; align-items: center; gap: 20px 40px; flex-wrap: wrap; padding: clamp(24px, 3vw, 40px); border-radius: 14px; background: var(--paper); }
.convo p { font-family: var(--f-finish); font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.25; max-width: 30ch; }
.convo strong { font-style: italic; font-weight: 400; color: var(--mark-deep); }
@media (max-width: 860px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } }

/* ---------- quote page ---------- */
.qz { padding: calc(var(--hdr) + clamp(24px, 3vw, 44px)) 0 clamp(48px, 6vw, 88px); }
.qz__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.qz__intro { color: var(--graphite-2); max-width: 52ch; margin: 10px 0 24px; }
.qz__meta { color: var(--mark-deep); }
.tape { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 32px; }
.tape span { position: relative; height: 30px; background: var(--slab-2); border-radius: 2px; overflow: hidden; font-family: var(--f-data); font-size: .69rem; letter-spacing: .06em; display: flex; align-items: center; padding-left: 10px; color: var(--graphite-3); transition: background-color .5s, color .5s; }
.tape span::after { content: ''; position: absolute; inset: auto 0 0; height: 8px; background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 10px); opacity: .5; }
.tape span.is-done, .tape span.is-on { background: var(--mark); color: var(--graphite); }
.step { display: none; }
.step.is-on { display: block; animation: stepIn .6s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 26px)); } }
.step h2 { font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: .88; letter-spacing: -.01em; }
.step__sub { color: var(--graphite-2); margin: 10px 0 26px; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.opt {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 132px; padding: 16px; text-align: left;
  background: var(--paper); border-radius: 10px; box-shadow: inset 0 0 0 1px rgb(22 24 26 / .1); transition: background-color .3s, box-shadow .3s, transform .4s var(--ease-out);
}
.opt:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--graphite); }
.opt .ico { width: 34px; height: 34px; stroke-width: 1.3; color: var(--chalk); }
.opt b { font-weight: 750; font-stretch: 86%; font-size: 1.02rem; }
.opt[aria-checked="true"] { background: var(--graphite); color: var(--paper); box-shadow: none; }
.opt[aria-checked="true"] .ico { color: var(--mark); }
.opt[aria-checked="true"]::after { content: ''; position: absolute; right: 14px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--mark); }
.step__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; }
.step__nav .link { font-size: .95rem; }
.lab { display: block; color: var(--graphite-3); margin-bottom: 12px; }
.ruler { position: relative; height: 96px; background: var(--mark); border-radius: 4px; cursor: ew-resize; touch-action: none; user-select: none; }
.ruler svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--graphite); }
.ruler__handle { position: absolute; top: -10px; bottom: -10px; left: var(--rp, 30%); width: 0; }
.ruler__handle::before { content: ''; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--graphite); }
.ruler__handle i { position: absolute; top: -14px; left: -14px; width: 28px; height: 28px; border-radius: 50%; background: var(--graphite); box-shadow: 0 0 0 4px var(--slab); cursor: grab; }
.ruler__handle i:focus-visible { outline: 2px solid var(--chalk); outline-offset: 4px; }
.ruler__out { margin-top: 16px; font-weight: 900; font-stretch: 66%; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.timing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.timing button { padding: 14px 12px 12px; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px rgb(22 24 26 / .1); display: flex; align-items: center; gap: 10px; font-family: var(--f-data); font-size: .72rem; letter-spacing: .06em; transition: background-color .3s, color .3s; }
.timing button i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.timing button[aria-checked="true"] { background: var(--graphite); color: var(--paper); }
.timing button[aria-checked="true"] i { background: var(--mark); box-shadow: none; }
.field { position: relative; display: grid; gap: 6px; margin-bottom: 18px; }
.field label { color: var(--graphite-3); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--graphite); background: rgb(246 244 239 / .7); border: 0; border-radius: 8px; padding: 14px 14px 13px;
  box-shadow: inset 0 -2px 0 rgb(22 24 26 / .3); transition: box-shadow .3s, background-color .3s; appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181a' stroke-width='1.8'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: #5b5f62; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--paper); box-shadow: inset 0 -3px 0 var(--mark); }
.field.is-error input, .field.is-error select { box-shadow: inset 0 -3px 0 var(--mark-deep); }
.field__err { font-size: .82rem; color: var(--mark-deep); font-weight: 600; display: none; }
.field.is-error .field__err { display: block; }
.brief-wrap { position: sticky; top: calc(var(--hdr) + 20px); perspective: 1400px; }
.brief {
  position: relative; background: var(--paper); padding: 30px 26px 26px; border-radius: 4px; transform-origin: 50% 0; transform: rotate(1.4deg);
  box-shadow: 0 34px 60px -34px rgb(22 24 26 / .55); transition: transform .9s var(--ease-out);
}
.brief::before { content: ''; position: absolute; left: 50%; top: -14px; width: 90px; height: 26px; margin-left: -45px; background: rgb(255 91 26 / .82); transform: rotate(-3deg); }
.brief__seal { position: absolute; right: 18px; top: 18px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--chalk); color: var(--chalk-ink); font-weight: 900; font-stretch: 70%; font-size: 1rem; transform: rotate(-10deg); }
.brief .t-data { color: var(--mark-deep); }
.brief h3 { margin: 6px 0 18px; font-weight: 850; font-stretch: 76%; text-transform: uppercase; font-size: 1.8rem; }
.brief__row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0 10px; border-bottom: 1px dashed rgb(22 24 26 / .25); }
.brief__row span:last-child { font-weight: 650; text-align: right; }
.brief__row span:last-child.is-pulse { animation: ink .6s var(--ease-out); }
@keyframes ink { from { color: var(--mark-deep); transform: translateX(-4px); } }
.brief__foot { margin-top: 22px; color: var(--graphite-3); font-size: .69rem; line-height: 1.6; }
.brief.is-folded { transform: rotateX(78deg) translateY(30px) scale(.9); }
.done-overlay { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 20px; background: rgb(5 71 156 / .96); color: var(--chalk-ink); }
.done-overlay.is-on { display: grid; animation: fadeIn .5s var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; } }
.done-overlay__box { max-width: 560px; text-align: center; display: grid; justify-items: center; gap: 16px; }
.done-overlay h2 { font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .9; }
.done-overlay p { color: var(--chalk-soft); }
.done-overlay__acts { display: flex; flex-wrap: wrap; gap: 14px 22px; justify-content: center; align-items: center; margin-top: 8px; }
.done-overlay svg.check { width: 84px; height: 84px; }
.done-overlay svg.check path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .9s .2s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.next3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); }
.next3 > div { padding-top: 16px; border-top: 2px solid var(--graphite); }
.next3 .t-data { color: var(--mark-deep); }
.next3 h3 { margin: 10px 0 8px; }
.next3 p { color: var(--graphite-2); font-size: .95rem; }
@media (max-width: 960px) { .qz__grid { grid-template-columns: 1fr; } .brief-wrap { position: relative; top: 0; } }
@media (max-width: 680px) { .next3 { grid-template-columns: 1fr; } .timing { grid-template-columns: 1fr; } }

/* ---------- contact page ---------- */
.ct { padding: calc(var(--hdr) + clamp(24px, 3vw, 44px)) 0 clamp(48px, 6vw, 88px); }
.ct__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.ct h1 { font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: clamp(3rem, 7vw, 7rem); line-height: .86; letter-spacing: -.012em; margin-top: 16px; }
.ct__lead { color: var(--graphite-2); max-width: 48ch; margin-top: 14px; }
.ct__phone { margin: 30px 0 28px; }
.ct__phone .t-data { color: var(--mark-deep); }
.ct__digits { display: inline-flex; align-items: center; gap: 14px; margin-top: 8px; text-decoration: none; font-weight: 900; font-stretch: 62%; font-size: clamp(3.4rem, 7.4vw, 7rem); line-height: .85; font-variant-numeric: tabular-nums; transition: color .3s; }
.ct__digits:hover { color: var(--mark-deep); }
.ct__digits .ico { width: .5em; height: .5em; stroke-width: 1.4; }
.site-plan { position: relative; display: block; text-decoration: none; border-radius: 14px; overflow: hidden; background: var(--chalk); color: var(--chalk-ink); aspect-ratio: 16 / 10; }
.site-plan svg.plan { position: absolute; inset: 0; width: 100%; height: 100%; }
.site-plan__top, .site-plan__bot { position: absolute; left: 16px; right: 16px; display: flex; justify-content: space-between; gap: 10px; z-index: 2; }
.site-plan__top { top: 14px; } .site-plan__bot { bottom: 14px; }
.site-plan__bot span:last-child { color: var(--mark-pale); display: inline-flex; gap: 6px; align-items: center; }
.site-plan:hover .plan .pin { transform: translateY(-4px); }
.plan .pin { transition: transform .4s var(--ease-out); transform-box: fill-box; }
.ct__form { padding: clamp(22px, 3vw, 40px); background: var(--paper); border-radius: 14px; position: relative; overflow: hidden; box-shadow: 0 34px 60px -40px rgb(22 24 26 / .55); }
.ct__form .t-data { color: var(--graphite-3); }
.ct__form h2 { font-weight: 850; font-stretch: 76%; text-transform: uppercase; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: .92; margin: 8px 0 24px; }
.ct__form .field input, .ct__form .field select, .ct__form .field textarea { background: rgb(222 219 211 / .45); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ct__ok { position: absolute; inset: 0; z-index: 3; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 28px; text-align: center; background: var(--chalk); color: var(--chalk-ink); }
.ct__ok.is-on { display: flex; animation: fadeIn .5s var(--ease-out); }
.ct__ok h3 { font-weight: 900; font-stretch: 72%; text-transform: uppercase; font-size: 2.4rem; line-height: .9; }
.ct__ok p { color: var(--chalk-soft); max-width: 36ch; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0 40px; }
.facts > div { padding: 18px; border-radius: 10px; background: var(--paper); }
.facts .t-data { color: var(--mark-deep); display: block; margin-bottom: 8px; }
.stepby { display: flex; justify-content: space-between; align-items: center; gap: 20px 40px; flex-wrap: wrap; padding: clamp(22px, 3vw, 36px); border-radius: 14px; background: var(--graphite); color: var(--night-ink); }
.stepby .t-data { color: var(--mark); }
.stepby p { color: var(--night-soft); margin-top: 8px; max-width: 52ch; }
@media (max-width: 960px) { .ct__grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } .row2 { grid-template-columns: 1fr; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .proj__row { animation: none; }
}

/* custom cursor replaces the pointer on fine pointers */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor :is(input, textarea, select, [contenteditable]) { cursor: text !important; }
.page-about .ks-header:not(.is-solid) { --h-ink: var(--chalk-ink); }
.page-about .ks-header:not(.is-solid) .ks-round:hover, .page-about .ks-header:not(.is-solid) .ks-menu-btn:hover { color: var(--chalk); }
.iso__stack { left: 44%; }
@media (max-width: 960px) {
  .iso { aspect-ratio: auto; padding-top: min(96vw, 620px); }
  .iso__stack { top: min(46vw, 300px); left: 46%; width: min(58vw, 380px); }
  .iso__card { margin-top: 0; }
}
@media (max-width: 860px) { .cover__caption { position: relative; z-index: 2; } }
@media (max-width: 560px) {
  .tape span { font-size: 0; padding: 0; justify-content: center; }
  .tape span::before { content: attr(data-n); font-size: .69rem; }
}

@media (max-width: 400px) { .btn__label { white-space: normal; line-height: 1.15; padding-block: 8px; } }
@media (max-width: 760px) {
  .iso { padding-top: 92vw; }
  .iso__stack { --gap: 26px !important; top: 50vw; left: 50%; width: 52vw; }
  .iso__plate span { display: none; }
}

/* walkthrough tour control */
.tour-btn { display: none; }
.deck-mode .tour-btn {
  position: absolute; z-index: 6; top: clamp(14px, 2.2vw, 30px); left: clamp(14px, 2.2vw, 30px);
  display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 16px 0 14px; border-radius: 999px;
  background: rgb(14 17 20 / .55); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25); font-family: var(--f-data); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .3s, color .3s;
}
.deck-mode .tour-btn[hidden] { display: none; }
.tour-btn:hover { background: var(--mark); color: var(--graphite); }
.tour-btn i { width: 3px; height: 12px; border-radius: 1px; background: currentColor; }
.tour-btn i + i { margin-right: 8px; }
.tour-btn b { width: 0; height: 0; margin-right: 8px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
@media (max-width: 760px) { .walk__label { top: 62px; right: auto; left: 14px; } }
