/* IP Design — main stylesheet. Tokens mirror js/theme.js (SPEC §2). */
@font-face { font-family: 'Inter Tight'; src: url('../fonts/inter-tight-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('../fonts/inter-tight-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
/* FIX-04: handwriting for the sketch notes (self-hosted @fontsource/caveat, latin subset) */
@font-face { font-family: 'Caveat'; src: url('../fonts/caveat-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
/* FIX-05: 700 for the highlighted city label on the areas map (loaded when the map is inlined) */
@font-face { font-family: 'Caveat'; src: url('../fonts/caveat-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --bg: #F7F7F4;
  --dot: #D9D9D3;
  --ink: #0E0E0C;
  --ink-2: #6B6B66;
  --ink-3: #A3A39C;
  --line: #DCDCD6;
  --accent: #B98A5C;
  --accent-hover: #A67A4F;
  --tile: #C9CBBE;
  --marker: #3A3F47;
  /* FIX-04 §6: a little colour, only where it means something */
  --wood-deep: #8A5A35;   /* sketch strokes, handwritten notes */
  --sage: #7D8B6A;        /* approved / passed */
  --sand: #EFE8DD;        /* alternate section background */
  --m: 40px;              /* page margin */
  --gut: 24px;
  --maxw: 1600px;
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);   /* power3.inOut */
  --ease-o: cubic-bezier(0.22, 1, 0.36, 1);    /* power3.out */
  --sans: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --vh: 100vh;
}
@media (max-width: 768px) { :root { --m: 20px; --vh: 100svh; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
@media (max-width: 768px) { body { font-size: 16px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a, button, label, input, textarea { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.sec, .story { scroll-margin-top: 120px; }
.rn, .svc-n, .step-n { font-variant-numeric: tabular-nums; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--ink); }
.vh, .vh-input { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus-visible { top: 16px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut);
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--m);
}

/* ------------------------------------------------------------------ header */
/* FIX-02 §3: after the story the header gets a subtle backing bar (fades 0.3 s); none inside the story */
.hdr-bar { position: fixed; z-index: 49; top: 0; left: 0; right: 0; height: 136px; background: rgba(247, 247, 244, 0.85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.3s linear, visibility 0s linear 0.3s; }
.hdr-bar.on { opacity: 1; visibility: visible; transition: opacity 0.3s linear, visibility 0s; }
@media (max-width: 768px) { .hdr-bar { height: 88px; } }
.hdr {
  position: fixed; z-index: 50; top: 36px; left: 40px; right: 40px;
  display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none;
}
.hdr > * { pointer-events: auto; }
.logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; min-height: 44px; border-radius: 12px; }
.logo-mark { width: 64px; height: 64px; display: block; will-change: transform; }
.capsule { position: relative; width: 284px; color: var(--ink); }
.capsule-bg { position: absolute; inset: 0 0 auto 0; height: 100%; min-height: 80px; background: var(--accent); border-radius: 12px; clip-path: inset(0 0 calc(100% - 80px) 0 round 12px); will-change: clip-path; }
.capsule-row { position: relative; display: flex; align-items: stretch; height: 80px; }
.capsule-cta { flex: 1; display: flex; align-items: center; padding: 0 24px; font-size: 17px; font-weight: 500; text-decoration: none; border-radius: 12px 0 0 12px; }
.capsule-div { width: 1px; background: rgba(14, 14, 12, 0.12); margin: 0; }
.menu-btn { width: 80px; height: 80px; border: 0; background: none; cursor: pointer; display: grid; place-content: center; gap: 7px; border-radius: 0 12px 12px 0; padding: 0; }
.mb-bar { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform 0.5s var(--ease-io); }
.capsule.open .mb-bar:first-child { transform: translateY(4.25px) rotate(45deg); }
.capsule.open .mb-bar:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.menu { position: relative; padding: 28px 24px 24px; }
.menu[hidden] { display: none; }
.menu-list li { overflow: hidden; }
.menu-list a { display: block; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; padding: 6px 0; text-decoration: none; min-height: 44px; }
.menu-contact { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(14, 14, 12, 0.12); display: grid; gap: 4px; }
.menu-contact a { font-size: 15px; text-decoration: none; min-height: 32px; display: flex; align-items: center; }
@media (hover: hover) {
  .menu-list a:hover, .menu-contact a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
  .capsule-cta:hover { background: var(--accent-hover); }
  .menu-btn:hover { background: var(--accent-hover); }
}
.capsule-cta:focus-visible, .menu-btn:focus-visible { outline-offset: -4px; }
@media (max-width: 768px) {
  .hdr { top: 16px; left: 16px; right: 16px; }
  .logo-mark { width: 40px; height: 40px; }
  .logo { gap: 10px; }
  .capsule { width: 200px; }
  .capsule-row { height: 56px; }
  .capsule-bg { clip-path: inset(0 0 calc(100% - 56px) 0 round 12px); min-height: 56px; }
  .capsule-cta { padding: 0 16px; font-size: 15px; }
  .menu-btn { width: 56px; height: 56px; }
  .menu-list a { font-size: 22px; }
}

/* ------------------------------------------------------------------ buttons & links */
.i { width: 20px; height: 20px; flex: none; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 64px; padding: 0 28px; border-radius: 12px;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; border: 0; cursor: pointer;
  transition: background-color 0.3s var(--ease-o), transform 0.15s ease;
}
.btn .i { transition: transform 0.3s var(--ease-o); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-secondary { background: var(--ink); color: #F7F7F4; }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) {
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-secondary:hover { background: #2A2A27; }
  .btn:hover .i { transform: translateX(4px); }
}
@media (max-width: 768px) { .btn { height: 56px; } }

.tlink { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 500; text-decoration: none; position: relative; min-height: 44px; }
.tlink > span { position: relative; }
.tlink > span::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform-origin: left; }
.tlink:focus-visible { outline: none; background: var(--accent); box-shadow: 0 0 0 4px var(--accent); border-radius: 4px; }
@media (hover: hover) {
  .tlink:hover > span::after { animation: wipe 0.5s var(--ease-io); }
  .tlink:hover .i { transform: translateX(4px); }
  .tlink .i { transition: transform 0.3s var(--ease-o); }
}
@keyframes wipe { 0% { transform: scaleX(1); transform-origin: right; } 49% { transform: scaleX(0); transform-origin: right; } 50% { transform: scaleX(0); transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }

/* ------------------------------------------------------------------ stage (fixed canvas) */
.stage { position: fixed; inset: 0; z-index: 0; height: var(--vh); background: var(--bg); will-change: transform, opacity; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: opacity 0.5s ease; z-index: 2; }
.poster.off { opacity: 0; }
/* FIX-07 §3: the pre-rendered frames always sit on top of the canvas (own layer, container always opaque) */
.fallback { position: absolute; inset: 0; z-index: 3; opacity: 1; pointer-events: none; }
.fallback img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.tooltip { position: absolute; left: 0; top: 0; pointer-events: none; font-family: var(--mono); font-size: 12px; line-height: 1; padding: 8px 10px; background: var(--ink); color: var(--bg); border-radius: 6px; opacity: 0; transform: translate(-9999px, 0); transition: opacity 0.2s; white-space: nowrap; }
.tooltip.on { opacity: 1; }

/* ------------------------------------------------------------------ story */
main { position: relative; }
.story { position: relative; z-index: 1; }
.story-pin { position: relative; height: var(--vh); width: 100%; overflow: hidden; }
.layers { position: absolute; inset: 0; padding: 0; max-width: none; pointer-events: none; }
.layer { position: absolute; inset: 0; }
html.js:not(.reduced) .layer { visibility: hidden; }
.layer > * { pointer-events: auto; }
/* FIX-01: one text column per layer (eyebrow → headline → lead → body → list), vertically centred
   between the header and the rail. Plain black type, no containers. */
.lc { position: absolute; left: var(--m); top: 140px; bottom: 40px; width: clamp(340px, 38vw, 520px); display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.lc-in { display: flex; flex-direction: column; align-items: flex-start; transform: translate(var(--px, 0px), var(--py, 0px)); pointer-events: auto; }
.lh-mark { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.tile { flex: none; width: 72px; height: 72px; border-radius: 12px; background: var(--tile); display: grid; place-items: center; color: var(--ink); }
.tile .i { width: 32px; height: 32px; }
.ldiv { flex: none; width: 48px; height: 1px; background: var(--line); }
.leb { font-family: var(--mono); font-size: 14px; line-height: 1.2; color: var(--ink); margin-bottom: 18px; }
.headline { font-size: clamp(36px, 3.5vw, 60px); font-weight: 500; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.headline .word-mask { padding-bottom: 0.1em; margin-bottom: -0.1em; }
.llead { margin-top: 22px; font-size: 21px; line-height: 1.45; letter-spacing: -0.01em; color: var(--ink); }
.lbody { margin-top: 12px; font-size: 15px; line-height: 1.55; color: rgba(14, 14, 12, 0.62); }
.llist { margin-top: 20px; display: grid; gap: 7px; font-family: var(--mono); font-size: 13px; line-height: 1.35; color: var(--ink); }
.llist li { display: flex; gap: 10px; align-items: baseline; }
.llist li::before { content: ''; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.lbtns { margin-top: 28px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.layer[data-layer="5"] .lbtns { gap: 12px; }
.layer .leb, .layer .llead, .layer .lbody, .layer .llist li, .layer .lbtns, .layer .tile, .layer .ldiv, .layer .headline { will-change: transform, opacity; }
/* the icon tile only where there is room for it (it is not part of the FIX-01 text block) */
@media (max-height: 859px), (max-width: 1279px) { .lh-mark { display: none; } }
/* short screens (and any layer whose block would not fit): lead + list, no body paragraph */
.layer.compact .lbody { display: none; }
@media (max-height: 759px) { .lbody { display: none; } .llead { font-size: 19px; margin-top: 16px; } .lbtns { margin-top: 20px; } }

.labels { position: absolute; inset: 0; pointer-events: none; }
.label { position: absolute; left: 0; top: 0; display: flex; align-items: center; opacity: 0; will-change: transform, opacity; }
.label .mk { position: relative; width: 48px; height: 48px; flex: none; margin-left: -24px; margin-top: -24px; display: grid; place-items: center; }
.label .mk i { width: 12px; height: 12px; border-radius: 50%; background: var(--marker); box-shadow: 0 0 0 3px var(--bg); position: relative; }
.label .mk::before { content: ''; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; border: 1px solid var(--marker); animation: pulse 2.4s var(--ease-o) infinite; }
.label .lt { margin-top: -24px; font-family: var(--mono); font-size: 14px; line-height: 1.2; white-space: nowrap; color: var(--ink-2); padding: 0 0 0 4px; }
.label .lt b { font-weight: 400; color: var(--ink); }
.ph-inline { font-family: var(--mono); font-style: normal; font-size: 11px; color: var(--ink-2); border: 1px dashed var(--ink-3); border-radius: 4px; padding: 1px 5px; margin-left: 8px; vertical-align: 1px; letter-spacing: 0; }
.label.flip { flex-direction: row-reverse; }
.label.flip .mk { margin-left: 0; margin-right: -24px; }
.label.flip .lt { padding: 0 4px 0 0; }
.label.hide .lt { visibility: hidden; }
.label.is-permit .mk i { background: var(--accent); }
.label.is-permit .mk::before { border-color: var(--accent); }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }
/* FIX-02 §8: APPROVED stamp near the Permit label (decorative; wood ring + mono text) */
/* FIX-03: the stamp hangs below the label text (left-aligned with it), clear of it even at its 1.3 entry scale */
.label.is-permit .lt { position: relative; }
.label .stamp { position: absolute; left: 0; top: calc(100% + 20px); width: 88px; height: 88px; color: var(--accent); opacity: 0; transform-origin: 50% 50%; will-change: transform, opacity; pointer-events: none; }
.label .stamp svg { display: block; width: 100%; height: 100%; overflow: visible; }
.label .stamp text { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; fill: currentColor; }
.label .stamp .stamp-bg { fill: rgba(247, 247, 244, 0.88); }
.label.flip .stamp { left: auto; right: 0; }
/* FIX-03 5.0 Exploded labels: a right-hand column of mono labels, each with a thin leader + dot to its tier */
.label.xlab { display: block; }
.label.xlab .lt { position: absolute; left: 0; top: 0; margin: 0; padding: 0; transform: translate(8px, -50%); color: var(--ink); }
.xl-lead { position: absolute; left: 0; top: 0; height: 1px; margin-top: -0.5px; background: var(--ink-3); transform-origin: 0 50%; width: 0; }
.xl-dot { position: absolute; left: 0; top: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
/* FIX-02 6.0 Drawings: dimension text and the title block (DOM, positioned from 3D points) */
.sheet { position: absolute; inset: 0; pointer-events: none; }
.dimt { position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: 12px; line-height: 1; color: var(--ink); white-space: nowrap; opacity: 0; background: var(--bg); padding: 2px 4px; will-change: transform, opacity; }
.dimt.dimt-minor { color: var(--ink-2); }
.sheet-title { position: absolute; left: 0; top: 0; padding: 10px 14px; background: var(--bg); opacity: 0; will-change: transform, opacity; }
.st-rect { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.st-rect rect { width: calc(100% - 1px); height: calc(100% - 1px); fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; }
.st-text { position: relative; display: block; font-family: var(--mono); font-size: 12px; line-height: 1.2; color: var(--ink); white-space: nowrap; }
@media (max-width: 768px) { .dimt { font-size: 10px; padding: 1px 3px; } .st-text { font-size: 9px; white-space: normal; width: 150px; } .sheet-title { padding: 6px 8px; } .label .stamp { width: 64px; height: 64px; top: calc(100% + 14px); } }

/* FIX-02 §2: the rail is not rendered visually (kept for keyboard and screen readers). It is clipped
   away like the skip link and only appears while one of its links has keyboard focus. */
.rail { position: absolute; left: var(--m); right: var(--m); bottom: 40px; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.rail:focus-within { clip-path: none; opacity: 1; pointer-events: auto; }
.rail ol { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.rail a { display: block; text-decoration: none; padding-top: 12px; min-height: 44px; }
.rt { display: block; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.rf { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.rl { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; font-weight: 500; line-height: 1; letter-spacing: 0.01em; color: var(--ink-3); }
.rn { font-family: var(--mono); font-weight: 400; font-size: 12px; }
.rd { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: none; }
.rail li.done .rl { color: var(--ink); }
.rail li.done .rf { background: var(--ink); }
.rail li.active .rl { color: var(--ink); }
.rail li.active .rd { display: block; }
.rail li.active .rf { background: var(--accent); }
@media (hover: hover) { .rail a:hover .rl { color: var(--ink); } }

@media (max-width: 768px) {
  .lc { top: calc(var(--vh) * 0.47); left: var(--m); right: var(--m); bottom: auto; width: auto; display: block; }
  .lc-in { transform: none; }
  .leb, .lbody, .lbtns, .lh-mark { display: none !important; }
  .headline { font-size: 34px; }
  .llead { font-size: 16px; line-height: 1.45; margin-top: 12px; }
  .llist { margin-top: 12px; gap: 4px; font-size: 12px; }
  .label .lt { font-size: 12px; }
  .rail { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .rail .rname { display: none; }
  .rail li.active .rname { display: inline; }
  .rl { font-size: 11px; gap: 6px; }
}
.rail li.next .rf { background: var(--accent); }

/* ------------------------------------------------------------------ sections after the story */
.after { position: relative; z-index: 2; background: var(--bg); }
.sec { padding: 200px 0 120px; border-top: 1px solid var(--line); }
.sec:first-child { border-top: 0; }
.eyebrow { grid-column: 1 / -1; font-size: 17px; font-weight: 500; color: var(--ink-2); margin-bottom: 24px; }
.h2 { grid-column: 1 / 8; font-size: clamp(32px, 3.2vw, 56px); font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.h2 .line-mask { padding-bottom: 0.08em; margin-bottom: -0.08em; }
.sub { margin-top: 16px; color: var(--ink-2); }
.body-l { font-size: 21px; line-height: 1.45; letter-spacing: -0.01em; color: var(--ink-2); }
@media (max-width: 768px) {
  .sec { padding: 88px 0 48px; }
  .h2 { font-size: 30px; grid-column: 1 / -1; }
  .body-l { font-size: 17px; }
}

/* services */
.svc-list { margin-top: 120px; }
.svc { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: start; border-top: 1px solid var(--line); padding: 40px 0; }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc-n { grid-column: 1 / 2; font-family: var(--mono); font-size: 14px; color: var(--ink-3); padding-top: 10px; }
.svc-body { grid-column: 2 / 7; }
.svc-t { font-size: clamp(28px, 2.4vw, 40px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
.svc-d { margin-top: 16px; color: var(--ink-2); max-width: 30em; }
.svc-body .tlink { margin-top: 24px; }
.svc-fig { grid-column: 8 / 13; }
.svc-fig .clip { aspect-ratio: 4 / 3; overflow: hidden; }
.svc-fig img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 768px) {
  .svc-list { margin-top: 44px; }
  .svc { grid-template-columns: 1fr; padding: 32px 0; gap: 16px; }
  .svc-n, .svc-body, .svc-fig { grid-column: 1 / -1; }
}

/* process */
.steps { margin-top: 120px; }
.step { grid-column: span 3; padding-top: 0; }
.step-line { display: block; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.step-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.step-n { display: block; margin-top: 24px; font-family: var(--mono); font-size: 14px; color: var(--ink-3); }
.step-t { margin-top: 40px; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.step-d { margin-top: 12px; color: var(--ink-2); max-width: 22em; }
@media (max-width: 1023px) { .step { grid-column: span 6; margin-bottom: 64px; } }
@media (max-width: 768px) { .steps { margin-top: 44px; } .step { grid-column: 1 / -1; margin-bottom: 40px; } .step-t { margin-top: 16px; } }

/* cases — FIX-02 §1: a static 3-column grid (4 of 12 columns each); stacked on mobile; no dragging */
.cases-title { grid-column: 1 / 8; }
.cases-title .h2 { grid-column: auto; }
.case-grid { margin-top: 64px; row-gap: 40px; }
.case { grid-column: span 4; min-width: 0; }
.case .clip { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.case img { width: 100%; height: 100%; object-fit: cover; }
.case-city { margin-top: 24px; font-family: var(--mono); font-size: 14px; color: var(--ink-2); }
.case-t { margin-top: 8px; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.case-r { margin-top: 4px; color: var(--ink-2); }
@media (max-width: 768px) { .cases-title { grid-column: 1 / -1; } .case-grid { margin-top: 44px; } .case { grid-column: 1 / -1; } }

/* reviews */
.quotes-wrap { margin-top: 64px; }
.quotes { grid-column: 1 / 11; display: grid; }
.rq { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.9s var(--ease-io), visibility 0s linear 0.9s; }
.rq.is-on { opacity: 1; visibility: visible; transition: opacity 0.9s var(--ease-io), visibility 0s; }
.rq blockquote { font-size: clamp(28px, 2.8vw, 48px); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; max-width: 22em; text-wrap: balance; }
.rq figcaption { margin-top: 24px; font-family: var(--mono); font-size: 14px; color: var(--ink-2); }
.quotes-foot { grid-column: 1 / -1; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.dots { display: flex; gap: 4px; }
.qd { min-width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-family: var(--mono); font-size: 13px; color: var(--ink-3); padding: 0 8px; border-bottom: 2px solid transparent; }
.qd.is-on { color: var(--ink); border-bottom-color: var(--accent); }
@media (max-width: 768px) { .quotes { grid-column: 1 / -1; } .quotes-wrap { margin-top: 44px; } .quotes-foot { margin-top: 44px; } }

/* about */
.about-fig { grid-column: 1 / 5; }
.portrait { aspect-ratio: 4 / 5; overflow: hidden; background: var(--line); }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter 1.6s var(--ease-io); }
.portrait.color img { filter: grayscale(0); }
.about-body { grid-column: 6 / 12; }
.about-body .h2 { grid-column: auto; }
.about-copy { margin-top: 40px; max-width: 30em; }
.about-copy .body-l + .body-l { margin-top: 20px; }
.points { border-top: 1px solid var(--line); }
.points li { display: flex; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.pi { width: 32px; height: 32px; border-radius: 8px; background: var(--tile); display: grid; place-items: center; flex: none; }
.pi .i { width: 18px; height: 18px; }
.points h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.points p { color: var(--ink-2); margin-top: 4px; }
@media (max-width: 768px) { .about-fig, .about-body { grid-column: 1 / -1; } .about-body { margin-top: 40px; } }

/* areas */
.areas .h2 { grid-column: 1 / 6; }
.area-list { grid-column: 7 / 13; border-top: 1px solid var(--line); }
.area-list li { border-bottom: 1px solid var(--line); }
.area-list a { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 24px; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; text-decoration: none; padding: 16px 0; min-height: 44px; }
.area-list a::after { grid-column: 2; grid-row: 1 / span 2; content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform 0.4s var(--ease-o); }
@media (hover: hover) { .area-list a:hover::after { transform: scale(1); } }
.area-list a:focus-visible { outline-offset: -2px; }
@media (max-width: 768px) { .areas .h2, .area-list { grid-column: 1 / -1; } .area-list { margin-top: 40px; } .area-list a { font-size: 24px; } }

.area-n { grid-column: 1; }
.area-d { grid-column: 1; font-size: 16px; font-weight: 400; letter-spacing: 0; line-height: 1.4; color: var(--ink-2); margin-top: 2px; }
.area-more { grid-column: 7 / 13; margin-top: 24px; color: var(--ink-2); }
.area-more b { color: var(--ink); font-weight: 500; }
@media (max-width: 768px) { .area-more { grid-column: 1 / -1; } }

/* faq */
.faq .h2 { grid-column: 1 / 5; }
.acc { grid-column: 6 / 13; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa h3 { font-size: inherit; font-weight: inherit; }
.qa button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; text-align: left; background: none; border: 0; padding: 24px 0; cursor: pointer; font-size: 21px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; min-height: 44px; }
.pm { flex: none; width: 32px; height: 32px; display: grid; place-items: center; transition: transform 0.5s var(--ease-io); }
.qa button[aria-expanded="true"] .pm { transform: rotate(45deg); }
.ans { height: 0; overflow: hidden; }
.ans p { padding: 0 64px 28px 0; color: var(--ink-2); max-width: 40em; }
html:not(.js) .ans { height: auto; }
@media (max-width: 768px) { .faq .h2, .acc { grid-column: 1 / -1; } .acc { margin-top: 40px; } .qa button { font-size: 18px; } .ans p { padding-right: 0; } }

/* quote form */
.quote-l { grid-column: 1 / 6; }
.quote-l .h2 { grid-column: auto; }
.quote-l .body-l { margin-top: 24px; }
.contact { margin-top: 40px; display: grid; gap: 8px; font-size: 21px; letter-spacing: -0.01em; }
.contact a { text-decoration: none; }
.contact-note { display: block; font-size: 15px; letter-spacing: 0; color: var(--ink-2); margin-top: 2px; }
@media (hover: hover) { .contact a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; } }
.form { grid-column: 7 / 13; display: grid; gap: 24px; position: relative; align-content: start; }
.f { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.f > label, .f legend { font-size: 14px; color: var(--ink-2); font-weight: 500; padding: 0; }
.f label span { color: var(--ink); margin-left: 2px; }
.f input[type="text"], .f input[type="email"], .f input[type="tel"], .f textarea {
  font: inherit; font-size: 21px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink-3);
  border-radius: 0; padding: 8px 0 12px; outline: none; transition: border-color 0.3s; width: 100%; resize: vertical; min-height: 48px;
}
.f textarea::placeholder { color: var(--ink-2); opacity: 1; font-size: 17px; }
.f input:focus, .f textarea:focus { border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.f input[aria-invalid="true"] { border-bottom-color: #9C2F1F; box-shadow: 0 1px 0 0 #9C2F1F; }
.err { font-size: 14px; color: #9C2F1F; min-height: 0; }
.err:empty { display: none; }
/* FIX-02 §9: three short steps — progress "1 / 3" + a 2 px wood line, thin rules, no cards */
.fs-progress { display: flex; align-items: center; gap: 16px; }
.fs-count { font-family: var(--mono); font-size: 14px; color: var(--ink-2); flex: none; font-variant-numeric: tabular-nums; }
.fs-count b { font-weight: 400; color: var(--ink); }
.fs-track { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.fs-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0.3333); transition: transform 0.5s var(--ease-io); }
.fs-view { position: relative; }
.fs { display: grid; gap: 32px; }
.fs[hidden] { display: none; }
.fs.leaving { position: absolute; top: 0; left: 0; right: 0; pointer-events: none; }
.fs-h { font-size: clamp(24px, 2vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; outline: none; }
.fs-h:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tiles legend { grid-column: 1 / -1; margin-bottom: 10px; float: left; width: 100%; }
.tiles .err { grid-column: 1 / -1; }
.tiles-2 .tile-opt { grid-column: span 2; }
.tile-opt { position: relative; display: block; min-width: 0; }
.tile-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.to-box { position: relative; display: flex; flex-direction: column; justify-content: space-between; height: 120px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; transition: border-color 0.3s, box-shadow 0.3s; }
.to-ic { width: 88px; height: 66px; object-fit: contain; object-position: left center; }
.to-l { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.to-dot { position: absolute; top: 14px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform 0.4s var(--ease-o); }
.tile-opt input:checked + .to-box { border-color: var(--ink); box-shadow: inset 0 0 0 0.5px var(--ink); }
.tile-opt input:checked + .to-box .to-dot { transform: scale(1); }
.tile-opt input:focus-visible + .to-box { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) { .tile-opt:hover .to-box { border-color: var(--ink-3); } .tile-opt input:checked + .to-box { border-color: var(--ink); } }
.tiles[aria-invalid="true"] .to-box { border-color: #C9A79F; }
.fs-nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: flex-end; }
.fs-back { margin-right: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 17px; font-weight: 500; }
.fs-back .i { transform: rotate(180deg); transition: transform 0.3s var(--ease-o); }
.fs-back span { position: relative; }
.fs-back span::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; }
@media (hover: hover) { .fs-back:hover .i { transform: rotate(180deg) translateX(4px); } .fs-back:hover span::after { animation: wipe 0.5s var(--ease-io); } }
.fs-back:focus-visible { outline: none; background: var(--accent); box-shadow: 0 0 0 4px var(--accent); border-radius: 4px; }
.file-btn { display: flex !important; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--ink-3); cursor: pointer; font-size: 17px !important; color: var(--ink) !important; min-height: 44px; }
.file-btn small { color: var(--ink-2); font-size: 14px; margin-left: auto; }
.fi { width: 32px; height: 32px; border-radius: 8px; background: var(--tile); display: grid; place-items: center; }
.fi .i { width: 18px; height: 18px; }
.f.file input:focus-visible + .file-list, .f.file:focus-within .file-btn { outline: 2px solid var(--ink); outline-offset: 3px; }
.file-list { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.file-list:empty { display: none; }
.note { font-size: 14px; color: var(--ink-2); }
/* after submitting: "What happens next" */
.success { padding: 8px 0 0; outline: none; }
.success[hidden] { display: none; }
.ok-h { font-size: clamp(24px, 2vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.ok-k { margin-top: 40px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.ok-list { margin-top: 12px; border-top: 1px solid var(--line); }
.ok-list li { display: flex; gap: 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 21px; letter-spacing: -0.01em; line-height: 1.3; }
.ok-n { font-family: var(--mono); font-size: 14px; color: var(--ink-3); flex: none; width: 24px; }
.form.sent > :not(.success) { display: none; }
@media (max-width: 768px) {
  .quote-l, .form { grid-column: 1 / -1; } .form { margin-top: 44px; }
  .f input[type="text"], .f input[type="email"], .f input[type="tel"], .f textarea { font-size: 18px; }
  .file-btn small { margin-left: 0; width: 100%; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles-2 .tile-opt { grid-column: span 1; }
  .to-box { height: 112px; }
  .fs-back { min-height: 56px; }
  .ok-list li { font-size: 18px; }
}

/* ------------------------------------------------------------------ FIX-01 sections (same type system, thin rules, no cards) */
h4 { margin: 0; }
.sec-sub { grid-column: 1 / 8; margin-top: 24px; font-size: 21px; line-height: 1.45; letter-spacing: -0.01em; color: var(--ink-2); }
.sec-foot { grid-column: 2 / -1; margin-top: 40px; color: var(--ink-2); max-width: 40em; }
.svc-pts, .ref-dots { margin-top: 20px; display: grid; gap: 6px; font-family: var(--mono); font-size: 14px; line-height: 1.35; }
.svc-pts li { display: flex; gap: 10px; align-items: baseline; }
.svc-pts li::before { content: ''; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.svc-more { margin-top: 64px; }
.svc-more-q { grid-column: 2 / -1; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.svc-more .tlink { grid-column: 2 / -1; justify-self: start; margin-top: 12px; }
.set-list { margin-top: 80px; }
.set { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; border-top: 1px solid var(--line); padding: 20px 0; min-height: 120px; }
.set:last-child { border-bottom: 1px solid var(--line); }
.set .svc-n { padding-top: 0; }
.set-t { grid-column: 2 / 6; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.set-d { grid-column: 6 / 11; color: var(--ink-2); max-width: 32em; }
.set-fig { grid-column: 11 / 13; justify-self: end; width: 100%; max-width: 160px; }
.set-fig img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.insp .step { grid-column: span 4; }
.client-cols { margin-top: 80px; }
.client { grid-column: span 6; border-top: 1px solid var(--line); padding-top: 32px; }
.client-t { font-size: clamp(28px, 2.4vw, 40px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
.client-d { margin-top: 16px; color: var(--ink-2); max-width: 30em; }
.client .tlink { margin-top: 24px; }
.why-head { grid-column: 1 / 6; }
.why-head .h2 { grid-column: auto; }
.why .points { grid-column: 7 / 13; }
.ref-block { margin-top: 80px; row-gap: 0; }
.ref-h { grid-column: 1 / 5; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.ref-list, .res-list { grid-column: 6 / 13; border-top: 1px solid var(--line); }
.ref-list li { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ref-k { font-weight: 500; }
.ref-v { color: var(--ink-2); }
.ref-note { grid-column: 6 / 13; margin-top: 24px; color: var(--ink-2); }
.ref-note .tlink { color: var(--ink); margin-left: 4px; }
.res { padding: 22px 0; border-bottom: 1px solid var(--line); }
.res-n { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.res-d { margin-top: 4px; color: var(--ink-2); }
.res-l { margin-top: 8px; display: flex; flex-wrap: wrap; column-gap: 28px; }
.ref-end { margin-top: 64px; }
.ref-end .btn { grid-column: 6 / 13; justify-self: start; }
@media (max-width: 1023px) { .insp .step { grid-column: span 4; } }
@media (max-width: 768px) {
  .sec-sub { grid-column: 1 / -1; font-size: 17px; }
  .sec-foot, .svc-more-q, .svc-more .tlink { grid-column: 1 / -1; }
  .svc-more, .ref-end { margin-top: 44px; }
  .set-list { margin-top: 44px; }
  .set { grid-template-columns: 40px 1fr; column-gap: 12px; row-gap: 6px; min-height: 0; align-items: start; }
  .set .svc-n { grid-column: 1; grid-row: 1 / span 2; padding-top: 4px; }
  .set-t { grid-column: 2; font-size: 20px; }
  .set-d { grid-column: 2; }
  .set-fig { display: none; }
  /* inspections: vertical timeline */
  .insp { margin-top: 44px; }
  .insp .step { grid-column: 1 / -1; position: relative; padding-left: 28px; margin-bottom: 0; padding-bottom: 32px; }
  .insp .step-line { position: absolute; left: 0; top: 4px; bottom: 0; width: 2px; height: auto; }
  .insp .step-fill { transform-origin: top; transform: scaleY(0); }
  .insp .step-n { margin-top: 0; }
  .insp .step-t { margin-top: 8px; }
  .client-cols { margin-top: 44px; row-gap: 40px; }
  .client { grid-column: 1 / -1; }
  .why-head, .why .points { grid-column: 1 / -1; }
  .why .points { margin-top: 40px; }
  .ref-block { margin-top: 44px; }
  .ref-h, .ref-list, .res-list, .ref-note, .ref-end .btn { grid-column: 1 / -1; }
  .ref-list, .res-list { margin-top: 20px; }
  .ref-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* footer */
.footer { position: relative; z-index: 2; background: var(--bg); border-top: 1px solid var(--line); padding-top: 120px; overflow: hidden; }
.foot-tag { margin-bottom: 56px; }
.ftag { grid-column: 1 / 8; font-size: 21px; line-height: 1.45; letter-spacing: -0.01em; }
@media (max-width: 768px) { .ftag { grid-column: 1 / -1; font-size: 18px; } }
.foot-cols .fcol { grid-column: span 4; }
.fh { font-size: 14px; color: var(--ink-2); font-weight: 500; margin-bottom: 16px; }
.fcol ul { display: grid; gap: 6px; }
.fcol a { text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
@media (hover: hover) { .fcol a:hover, .legal a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; } }
.legal { margin-top: 64px; font-size: 14px; color: var(--ink-2); }
.legal p { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.legal .credit a { color: var(--ink); }
.legal a { text-decoration: none; color: var(--ink-2); }
/* FIX-06 §3: the whole wordmark, "g" descender included: no fixed height / overflow crop, line-height 1.05 plus
   0.1em of bottom padding that holds the descender (the glyph box is ≈ 1.13em), and positive space below it
   (plus the iOS home indicator). Size as before, capped by
   the viewport width so it never needs a horizontal scroll (320 px). */
.wordmark { font-size: min(clamp(80px, 15vw, 200px), 20vw); font-weight: 500; letter-spacing: -0.05em; line-height: 1.05; white-space: nowrap; margin: 40px auto calc(clamp(24px, 4vw, 56px) + env(safe-area-inset-bottom, 0px)); padding: 0 var(--m) 0.1em; max-width: var(--maxw); height: auto; overflow: visible; }
@media (max-width: 768px) { .foot-cols .fcol { grid-column: 1 / -1; margin-bottom: 32px; } }

/* ------------------------------------------------------------------ reduced motion: 6 static panels */
html.reduced .story-pin { height: auto; overflow: visible; }
html.reduced .labels, html.reduced .rail, html.reduced .sheet { display: none; }
html.reduced .stage { display: none; }
html.reduced .layers { position: static; display: block; }
html.reduced .layer { position: relative; inset: auto; height: var(--vh); min-height: 560px; overflow: hidden; border-bottom: 1px solid var(--line); }
html.reduced .layer .panel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
html.reduced .layer { z-index: 0; isolation: isolate; }
html.reduced [data-reveal], html.reduced .layer .lc { transition: opacity 0.3s linear; }
@media (prefers-reduced-motion: reduce) { .label .mk::before { animation: none; } .portrait img { transition: none; } .rq { transition: opacity 0.3s linear; } }

/* ------------------------------------------------------------------ FIX-04 §3: hand-drawn sketches */
/* main strokes --wood-deep 1.25 px · hatching --accent at 60 % · construction guides dashed --ink-3 ·
   handle markers --accent · approved / passed marks --sage · notes in Caveat, --wood-deep */
.sk { position: relative; pointer-events: none; }
.sk-svg { display: block; width: 100%; height: auto; overflow: visible; }
.sk-svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sk-m path { stroke: var(--wood-deep); stroke-width: 1.25; }
.sk-h path { stroke: var(--accent); stroke-opacity: 0.6; stroke-width: 0.9; }
.sk-g path { stroke: var(--ink-3); stroke-width: 0.9; }
.sk-s path { stroke: var(--sage); stroke-width: 1.5; }
.sk-k rect, .sk-k circle { fill: none; stroke: var(--accent); stroke-width: 1; }
.sk-k circle { fill: var(--accent); stroke: none; }
.sk-n path { stroke: var(--wood-deep); stroke-width: 1.2; }
.sk-n text { font-family: 'Caveat', var(--sans); fill: var(--wood-deep); }
/* drawing state: every stroke draws itself (pathLength = 1); JS moves the offsets */
html.js:not(.reduced) .sk-svg path[pathLength] { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
html.js:not(.reduced) .sk-svg .sk-k > *, html.js:not(.reduced) .sk-svg .sk-n text { opacity: 0; }

/* placements (FIX-04 §4) — every sketch sits in the 12-column grid and never crowds the text */
.sk-step { height: 200px; margin-bottom: 28px; }
.sk-step .sk-svg { height: 100%; width: auto; max-width: 100%; }
.sk-insp { height: 150px; }
.sk-bgwrap { position: absolute; pointer-events: none; z-index: 0; will-change: transform; }
.sk-bg { opacity: 0.2; }
.planset, .reviews, .faq, .quote { position: relative; }
.planset > .grid, .planset > ol, .reviews > .grid, .quote > .grid { position: relative; z-index: 1; }
.sk-bg-ps { top: 64px; right: var(--m); width: min(38vw, 560px); }
.quotes-wrap { position: relative; }
.sk-bg-quote { left: 0; top: -40px; width: min(30vw, 380px); }
.sk-bg-quote .sk-bg { opacity: 0.22; }
.sk-client { height: 210px; margin-bottom: 24px; }
.sk-client .sk-svg { height: 100%; width: auto; max-width: 100%; }
.case { position: relative; }
.sk-note { position: absolute; right: 0; bottom: -40px; width: 200px; }
.case-r { padding-right: 150px; }
.about-fig { position: relative; }
.sk-about { position: absolute; left: -6%; top: 0; width: 112%; margin-top: -6%; z-index: 2; }
.sk-why { width: 64px; height: 64px; margin: -4px 0 10px -6px; }
.areas-l { grid-column: 1 / 6; }
.areas-l .h2 { grid-column: auto; }
.sk-map { margin-top: 56px; max-width: 440px; }
.sk-refs { grid-column: 6 / 13; margin-top: 40px; max-width: 700px; }
.faq-l { grid-column: 1 / 5; position: relative; }
.faq-l .h2 { grid-column: auto; }
.faq-l .sk-bgwrap { position: absolute; }
.sk-bg-bal { left: 0; top: 140px; width: 80px; }
.sk-bg-str { left: 90px; top: 320px; width: 300px; }
.faq-l .sk-bg { opacity: 0.16; }
.sk-bg-form { grid-column: 7 / 13; grid-row: 1; align-self: end; justify-self: end; position: relative; inset: auto; width: 78%; margin-bottom: -40px; }
.sk-bg-form .sk-bg { opacity: 0.14; }
.quote .form { grid-row: 1; grid-column: 7 / 13; }
.quote-l { grid-row: 1; }
.sk-footwrap { padding: 0 var(--m); max-width: var(--maxw); margin: -40px auto 48px; }
.sk-foot { height: 200px; opacity: 0.24; }
.sk-foot .sk-svg { height: 100%; width: 100%; }
@keyframes skpulse { 0% { transform: scale(0.7); stroke-opacity: 0.9; } 100% { transform: scale(2.2); stroke-opacity: 0; } }
@media (max-width: 1023px) { .sk-step { height: 170px; } }
@media (max-width: 768px) {
  .sk-step { height: 140px; margin-bottom: 20px; }
  .sk-insp { height: 120px; }
  .sk-bg-ps { top: 64px; width: 92vw; right: 4vw; }
  .sk-bg-quote { width: 160px; top: -40px; }
  .sk-client { height: 150px; }
  .sk-about { margin-bottom: 0; }
  .about-fig { margin-bottom: 64px; }
  .areas-l, .faq-l { grid-column: 1 / -1; }
  .sk-map { margin: 32px auto 0; max-width: 300px; }
  .sk-refs { grid-column: 1 / -1; margin-top: 28px; }
  .sk-bg-bal { left: auto; right: 8px; top: -20px; width: 36px; }
  .sk-bg-str { left: auto; right: 40px; top: 10px; width: 150px; }
  .sk-bg-form { grid-column: 1 / -1; grid-row: 2; }
  .quote .form { grid-column: 1 / -1; grid-row: 2; }
  .sk-foot { height: 120px; }
  .sk-note { position: relative; right: auto; bottom: auto; margin: 6px 0 0 auto; width: 190px; }
  .case-r { padding-right: 0; }
  .sk-foot .sk-svg { width: auto; }
  .sk-footwrap { margin: -24px 0 32px; overflow: hidden; }
}

/* FIX-04 §6: colour — sand sections, sage for approved / passed */
.sec.process, .sec.quote { background: var(--sand); border-top-color: transparent; }
.sec.process + .sec, .sec.quote + .sec { border-top-color: transparent; }
/* --ink-2 on --sand is 4.4:1 (below AA), so secondary text in sand sections uses --ink (no new colour) */
.sec.process, .sec.quote { --ink-2: var(--ink); --ink-3: var(--ink); }
.label .stamp { color: var(--sage) !important; }
.ok-chk { width: 18px; height: 15px; flex: none; fill: none; stroke: var(--sage); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ok-h { position: relative; display: inline-block; }
.ok-line { position: absolute; left: 0; right: 0; bottom: -10px; width: 100%; height: 10px; fill: none; stroke: var(--sage); stroke-width: 2; stroke-linecap: round; overflow: visible; }
/* evening finale (7.0): a very subtle warm wash over the stage, driven by the story timeline */
.stage .dusk { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: radial-gradient(ellipse 70% 70% at 62% 46%, rgba(185, 138, 92, 0.045), rgba(185, 138, 92, 0) 72%); }
/* FIX-04 §7: mobile cases — a native scroll-snap row, one card at a time, with position dots */
.case-dots { display: none; }
@media (max-width: 768px) {
  .case-grid { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--m); padding-bottom: 48px; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; }
  .case-grid::-webkit-scrollbar { display: none; }
  .case { flex: 0 0 86vw; scroll-snap-align: start; }
  .case-dots { display: flex; justify-content: center; gap: 4px; margin-top: 4px; }
  .cdot { width: 44px; height: 44px; border: 0; background: none; padding: 0; display: grid; place-items: center; cursor: pointer; }
  .cdot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background 0.3s, transform 0.3s var(--ease-o); }
  .cdot.is-on::before { background: var(--accent); transform: scale(1.15); }
  .cdot:focus-visible { outline: 2px solid var(--ink); outline-offset: -8px; border-radius: 50%; }
}
/* FIX-04 §4.2 / §5: scroll-scrubbed clay image sequences (canvas over the static frame) */
.svc-fig .clip, .seq-intro .clip { position: relative; }
.seq-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; -webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent); mask-image: radial-gradient(closest-side, #000 82%, transparent); }
/* feathered edge: the lossy frames' background can differ from --bg by a level or two; no visible box */
.seq-on .seq-canvas { opacity: 1; }
.seq-on .clip > img { visibility: hidden; }
.services > .grid:first-child { position: relative; }
/* FIX-06 §2: one header row — text (eyebrow + h2) in cols 1–7, the deck in cols 8–13, vertical centres
   matched. The text sits between two equal 1fr rows the deck spans, so whichever is taller, the other is
   centred on it. No negative margins; the deck is at most 520 px wide and scales with its column below. */
.services > .grid:first-child { grid-template-rows: 1fr auto auto 1fr; }
.services > .grid:first-child > .eyebrow { grid-column: 1 / 8; grid-row: 2; }
.services > .grid:first-child > .h2 { grid-column: 1 / 8; grid-row: 3; }
.seq-intro { grid-column: 8 / 13; grid-row: 1 / 5; align-self: center; justify-self: end; width: 100%; max-width: 520px; margin: 0; }
.seq-intro .clip { aspect-ratio: 4 / 3; }
.seq-intro img { width: 100%; height: 100%; object-fit: contain; }
/* ≤ 768 px: the deck above the heading, right-aligned at 70 % width, 20 px above the eyebrow */
@media (max-width: 768px) {
  .services > .grid:first-child { grid-template-rows: none; }
  .services > .grid:first-child > .eyebrow { grid-column: 1 / -1; grid-row: 2; }
  .services > .grid:first-child > .h2 { grid-column: 1 / -1; grid-row: 3; }
  .seq-intro { grid-column: 1 / -1; grid-row: 1; width: 70%; max-width: none; justify-self: end; margin: 0 0 20px; }
}

/* ------------------------------------------------------------------ FIX-05 */
/* §1 areas map: a detailed geographic sketch, ~540 px tall in the left column; full width (≤ 360 px) on mobile */
.sk-map { margin-top: 48px; max-width: 460px; }
.sk-mapsvg .mt { stroke: var(--ink-3); stroke-width: 0.9; }
.sk-mapsvg .sk-m path.dbl { stroke-width: 0.8; stroke-opacity: 0.5; }
.sk-mapsvg .sk-m path.thin { stroke-width: 0.9; }
.sk-mapsvg .sk-h path.w0 { stroke: var(--accent); stroke-opacity: 0.5; stroke-width: 0.85; }
.sk-mapsvg .sk-h path.w1 { stroke: var(--accent); stroke-opacity: 0.32; stroke-width: 0.8; }
.sk-mapsvg .sk-h path.w2 { stroke: var(--accent); stroke-opacity: 0.16; stroke-width: 0.75; }
.sk-mapsvg .sk-m path.road { stroke-width: 1.35; }
.sk-mapsvg .sk-m path.road2 { stroke-width: 1; stroke-opacity: 0.55; }
.sk-mapsvg .mc { transform-box: fill-box; transform-origin: center; }
.sk-mapsvg .mdot { fill: var(--wood-deep); transform-box: fill-box; transform-origin: center; transition: transform 0.35s var(--ease-o); }
.sk-mapsvg .mdot.is-seattle { fill: var(--accent); }
.sk-mapsvg .mpulse { fill: none; stroke: var(--accent); stroke-width: 1; stroke-opacity: 0; transform-box: fill-box; transform-origin: center; }
.sk-mapsvg.is-live .mpulse { animation: skpulse 2.4s ease-out infinite; }
html.reduced .sk-mapsvg .mpulse { animation: none; stroke-opacity: 0.6; }
.sk-mapsvg .mhouse { fill: var(--bg); stroke: var(--wood-deep); stroke-width: 1.2; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; }
.sk-mapsvg .mhouse-d { fill: none; stroke: var(--wood-deep); stroke-width: 1; }
.sk-mapsvg .ml { font-family: 'Caveat', var(--sans); font-weight: 400; fill: var(--wood-deep); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.sk-mapsvg .ml.is-hot { font-weight: 700; }
.sk-mapsvg .mc.is-hot .mdot { transform: scale(1.4); }
@media (max-width: 768px) { .sk-map { margin: 32px auto 0; max-width: 360px; } }

/* §3 the faint sketches, a little stronger. Their strokes and hatching take the stated opacity (--sk-o); the
   few labels inside them (e.g. "ledger", "joist hanger") are kept readable at twice that. Main strokes are
   ~1.4 px on screen whatever the sketch's scale (--sk-s is set by sketch.js). Text stays dominant: the
   sketches are moved where they never sit under text. */
.sk-bg, .sk-bg-quote .sk-bg, .faq-l .sk-bg, .sk-bg-form .sk-bg { opacity: 1; }
.sk-bg-ps { --sk-o: 0.35; }
.sk-bg-quote { --sk-o: 0.32; }
.faq-l .sk-bgwrap { --sk-o: 0.3; }
.sk-bg-form { --sk-o: 0.24; }
.sk-bg .sk-svg > g { opacity: var(--sk-o); }
.sk-bg .sk-svg > g.sk-n { opacity: min(1, calc(var(--sk-o) * 2)); }
.sk-bg .sk-m path { stroke-width: calc(1.4px / var(--sk-s, 1)); }
.sk-bg .sk-n text { font-size: calc(15px / var(--sk-s, 1)); }
.sk-bg .sk-n path { stroke-width: calc(1.2px / var(--sk-s, 1)); }
/* footer elevation: ~0.6, main strokes 1.5 px --wood-deep, the "from plan to permit" note at full --wood-deep */
.sk-foot { opacity: 1; }
.sk-foot .sk-svg > g { opacity: 0.6; }
.sk-foot .sk-svg > g.sk-n { opacity: 1; }
.sk-foot .sk-m path { stroke: var(--wood-deep); stroke-width: calc(1.5px / var(--sk-s, 1)); }
.sk-foot .sk-n path { stroke-width: calc(1.4px / var(--sk-s, 1)); }
/* placements that keep every background sketch off the text */
.sk-bg-quote { left: auto; right: var(--m); top: -24px; width: min(20vw, 300px); }
.quote .form { grid-row: 1 / span 2; }
.sk-bg-form { grid-column: 1 / 6; grid-row: 2; align-self: start; justify-self: start; width: 100%; max-width: 420px; margin: 56px 0 0; }
@media (max-width: 768px) {
  .planset { display: flex; flex-direction: column; }
  .planset > div.grid { order: 0; }
  .sk-bg-ps { order: 1; position: relative; top: auto; right: auto; width: 78vw; align-self: center; margin-top: 48px; }
  .planset > ol.set-list { order: 2; }
  .planset > div.grid:last-child { order: 3; }
  .sk-bg-quote { position: relative; grid-column: 1 / -1; justify-self: end; right: auto; top: auto; width: 112px; margin: 30px 0 8px; }
  .faq-l { padding-bottom: 200px; }
  .sk-bg-bal { left: 8px; right: auto; top: auto; bottom: 16px; width: 28px; }
  .sk-bg-str { left: 64px; right: auto; top: auto; bottom: 16px; width: 170px; }
  .quote .form { grid-row: 3; }
  .sk-bg-form { grid-column: 1 / -1; grid-row: 2; justify-self: center; width: 64%; max-width: 280px; margin: 36px 0 0; }
}

/* ------------------------------------------------------------------ FIX-08: shared request form additions + shared footer */
.opt { margin-left: 6px; font-weight: 400; color: var(--ink-2); font-size: 13px; }
.f label .opt { color: var(--ink-2); margin-left: 6px; }
.f-hint { font-size: 14px; color: var(--ink-2); margin-top: -16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; margin-bottom: 10px; float: left; }
.chips .err { width: 100%; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 500; transition: border-color 0.3s, background-color 0.3s; }
.chip input:checked + span { border-color: var(--ink); background: rgba(14, 14, 12, 0.04); box-shadow: inset 0 0 0 0.5px var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) { .chip:hover span { border-color: var(--ink-3); } .chip input:checked + span { border-color: var(--ink); } }
.f-check { grid-template-columns: 28px 1fr; align-items: start; column-gap: 10px; }
.f-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); cursor: pointer; }
.f-check label { font-size: 16px !important; color: var(--ink) !important; font-weight: 400 !important; line-height: 1.45; cursor: pointer; }
.f-check label a { text-underline-offset: 3px; }
.f-check .err { grid-column: 2; }
.f-check input[aria-invalid="true"] { outline: 2px solid #9C2F1F; outline-offset: 2px; }
.f-check input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.rf-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.rf-errs { border-left: 2px solid #9C2F1F; padding: 4px 0 4px 16px; outline: none; }
.rf-errs[hidden] { display: none; }
.rf-errs:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.rf-errs-h { font-weight: 500; font-size: 16px; }
.rf-errs ul { margin-top: 6px; display: grid; gap: 2px; }
.rf-errs a { color: #9C2F1F; font-size: 15px; text-underline-offset: 3px; display: inline-flex; min-height: 32px; align-items: center; }
.rf-status { border-left: 2px solid var(--accent); padding: 6px 0 6px 16px; font-size: 16px; outline: none; }
.rf-status[hidden] { display: none; }
.rf-status:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.rf-status a, .ok-p a { color: var(--ink); text-underline-offset: 3px; }
.form button[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
.ok-ref { margin-top: 28px; font-size: 18px; }
.ok-ref b { font-family: var(--mono); font-weight: 400; letter-spacing: 0.02em; }
.ok-p { margin-top: 24px; font-size: 19px; line-height: 1.45; max-width: 30em; }
.ok-small { font-size: 15px; color: var(--ink-2); margin-top: 12px; }
.success .fs-nav { margin-top: 32px; justify-content: flex-start; }
.ok-h:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.foot-cols.c4 .fcol { grid-column: span 3; }
@media (max-width: 1023px) { .foot-cols.c4 .fcol { grid-column: span 6; margin-bottom: 32px; } }
@media (max-width: 768px) { .foot-cols.c4 .fcol { grid-column: 1 / -1; } .ok-p { font-size: 17px; } }
.ref-end .ref-all { grid-column: 6 / 13; justify-self: start; margin-bottom: 24px; }
@media (max-width: 768px) { .ref-end .ref-all { grid-column: 1 / -1; } }
