/* Home page. Stone paper and carbon. Three type sizes and no more:
   --t1 display serif (h1, h2), --t2 serif titles (h3, brand, questions), --t3 for everything else.
   The drawings and documents are pictures of real paperwork: their print sizes scale with the picture (container units). */
@font-face { font-family: "Instrument Serif Fallback"; src: local("Times New Roman"), local("Georgia"); size-adjust: 92%; }
@font-face { font-family: "Instrument Sans Fallback"; src: local("Helvetica Neue"), local("Arial"); size-adjust: 97%; }

:root {
  --paper: #f4f4f1;
  --paper-2: #eaeae5;
  --sheet: #ffffff;
  --carbon: #1c1b19;
  --graphite: #52514b;
  --muted: #6a6962;
  --mineral: #1f476b;
  --trace: #f1dc73;
  --shade: #1f160f;
  --rule: rgba(28, 27, 25, 0.12);
  --rule-strong: rgba(28, 27, 25, 0.3);
  --on-shade: #f4f4f1;
  --on-shade-2: rgba(244, 244, 241, 0.76);
  --serif: "Instrument Serif", "Instrument Serif Fallback", "Times New Roman", serif;
  --sans: "Instrument Sans", "Instrument Sans Fallback", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ui: "Segoe UI", system-ui, -apple-system, sans-serif;
  --print: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --t1: clamp(44px, 6vw, 92px);
  --t2: clamp(23px, 1.9vw, 28px);
  --t3: 17px;
  --shadow-sheet: 0 1px 2px rgba(28, 27, 25, 0.08), 0 18px 40px -24px rgba(28, 27, 25, 0.45);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1320px;
  --gutter: clamp(20px, 4.4vw, 56px);
  color-scheme: light;
}
@media (max-width: 720px) { :root { --t3: 16px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (pointer: fine) { html { overscroll-behavior: none; } }
body {
  margin: 0; background: var(--paper); color: var(--carbon);
  font: 400 var(--t3)/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: rgba(31, 71, 107, 0.12); touch-action: manipulation;
}
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; padding: 0; }
h1, h2 { font: 400 var(--t1)/0.95 var(--serif); letter-spacing: -0.012em; text-wrap: balance; }
h3 { font: 400 var(--t2)/1.15 var(--serif); letter-spacing: -0.004em; text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--trace); color: var(--carbon); }
:focus-visible { outline: 2px solid var(--mineral); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--carbon); color: var(--paper); border-radius: 4px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 4px;
  font: 600 var(--t3)/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}
.btn-sm { height: 40px; padding: 0 16px; }
.btn-ink { background: var(--carbon); color: var(--paper); }
.btn-ink:hover { background: var(--mineral); }
.btn-line { background: transparent; color: var(--carbon); border-color: var(--rule-strong); }
.btn-line:hover { border-color: var(--carbon); background: var(--sheet); }
.btn-paper { background: var(--paper); color: var(--carbon); }
.btn-paper:hover { background: var(--trace); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); transition: box-shadow 0.25s; }
.top.scrolled { box-shadow: 0 1px 0 var(--rule); }
.top-in { display: flex; align-items: center; gap: 36px; height: 76px; }
.brand { display: inline-flex; align-items: baseline; gap: 0.3em; text-decoration: none; font: 400 var(--t2)/1 var(--serif); }
.brand-mark { flex: none; width: 1.167em; height: 0.74em; }
.face-shade { fill: #5a4321; }
.face-lit { fill: #b08a4c; }
.top-links { display: flex; gap: 28px; margin-left: auto; }
.top-links a { text-decoration: none; color: var(--graphite); transition: color 0.18s; }
.top-links a:hover { color: var(--carbon); }

/* ---------- hero: the drawing becomes the building ---------- */
.hero { position: relative; display: flex; flex-direction: column; min-height: calc(100svh - 76px); }
.hero-copy { position: relative; z-index: 2; width: 100%; padding-top: clamp(40px, 8vh, 96px); }
.hero h1 { max-width: 11em; }
.lede { margin-top: 22px; max-width: 30em; color: var(--graphite); }
.hero-copy .btn { margin-top: 28px; }
.hero-art { position: relative; flex: 1 1 auto; min-height: clamp(280px, 42vh, 600px); margin-top: clamp(-40px, -3vh, 0px); overflow: hidden; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.art-line { filter: grayscale(1) sepia(0.12) contrast(1.28) brightness(1.07); }
.hero-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--paper) 0%, rgba(244, 244, 241, 0) 28%), linear-gradient(90deg, rgba(244, 244, 241, 0.5) 0%, rgba(244, 244, 241, 0) 18%);
}
.art-pen { position: absolute; inset: 0; z-index: 1; border-right: 1.5px solid rgba(31, 71, 107, 0.65); transform: translateX(-100%); opacity: 0; pointer-events: none; }
.js .hero:not(.plotted) .art-colour { clip-path: inset(0 100% 0 0); }
.hero.plotting .art-colour { animation: plot 2.6s var(--ease) both; }
.hero.plotting .art-pen { animation: pen 2.6s var(--ease) both; }
@keyframes plot { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pen { 0% { transform: translateX(-100%); opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(0); opacity: 0; } }

/* On wide screens the picture fills the hero and the headline sits on its blank paper */
@media (min-width: 900px) {
  .hero-over .hero-art { position: absolute; inset: 0; margin: 0; min-height: 0; }
  .hero-over .hero-art img { object-position: 62% 55%; }
  .hero-over .hero-art::after { background: linear-gradient(180deg, var(--paper) 0%, rgba(244, 244, 241, 0) 12%), radial-gradient(ellipse 52% 46% at 20% 40%, rgba(244, 244, 241, 0.88) 0%, rgba(244, 244, 241, 0.6) 50%, rgba(244, 244, 241, 0) 100%); }
  .hero-over .hero-copy { padding-top: clamp(56px, 12vh, 132px); }
}

/* ---------- what it does, in three parts ---------- */
.map { padding: clamp(64px, 8vw, 112px) 0 0; }
.map-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 3.4vw, 48px); }
.m-h { font: 400 var(--t2)/1.15 var(--serif); padding-bottom: 14px; border-bottom: 1px solid var(--carbon); }
.m-col ul { list-style: none; margin-top: 8px; }
.m-col a { display: inline-block; padding: 7px 0; color: var(--graphite); text-decoration: none; transition: color 0.18s; }
.m-col a:hover { color: var(--mineral); }

/* ---------- the three parts ---------- */
.bucket { padding-top: clamp(104px, 11vw, 168px); }
.b-head { margin-bottom: clamp(36px, 4.4vw, 64px); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px clamp(24px, 3.4vw, 48px); }
.convert + .pair { margin-top: clamp(72px, 8vw, 120px); }
.feat h3 { margin-top: 24px; }
.feat > p { margin-top: 6px; color: var(--graphite); max-width: 32em; }
.apps { display: flex; gap: 12px; margin-top: 14px; }
.apps img { width: 18px; height: 18px; object-fit: contain; }

/* ---------- format scene (pinned) ---------- */
.convert { position: relative; height: 400vh; background: var(--paper-2); }
.convert-pin { position: sticky; top: 76px; height: calc(100vh - 76px); height: calc(100svh - 76px); display: flex; align-items: center; overflow: hidden; }
.convert-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px clamp(32px, 4vw, 72px); align-items: center; width: 100%; }
.steps { list-style: none; margin-top: 24px; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 9px 0; color: var(--muted); transition: color 0.3s; }
.steps li.on { color: var(--carbon); }
.fmts { display: flex; gap: 5px; min-width: 7.4em; }
.fmt { padding: 5px 7px; border: 1px solid var(--rule-strong); border-radius: 4px; background: var(--sheet); font: 500 var(--t3)/1 var(--mono); letter-spacing: 0.02em; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.steps li.on .fmt { background: var(--carbon); color: var(--paper); border-color: var(--carbon); }

.stage { position: relative; margin: 0; width: min(100%, calc((100svh - 150px) * 4 / 3)); justify-self: end; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; container: stage / inline-size; background: #56595d; box-shadow: 0 30px 70px -40px rgba(28, 27, 25, 0.55); }
.st { position: absolute; inset: 0; opacity: 0; transition: opacity 0.55s var(--ease); }
.stage[data-step="0"] .st-scan, .stage[data-step="1"] .st-dwg, .stage[data-step="2"] .st-rvt, .stage[data-step="3"] .st-sheet { opacity: 1; }
.plan-slot > svg, .axo-slot > svg { display: block; width: 100%; height: 100%; }

/* 1. the client's marked-up scan */
.st-scan { background: #56595d; }
.scan-page { position: absolute; left: 4.5%; top: 5.5%; width: 91%; height: 89%; overflow: hidden; background: #efeee9; transform: rotate(-1.1deg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 26px -12px rgba(0, 0, 0, 0.55); }
.scan-page::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, 0.09), rgba(0, 0, 0, 0) 4%, rgba(0, 0, 0, 0) 95%, rgba(0, 0, 0, 0.05)), repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.018) 0 1px, rgba(0, 0, 0, 0) 1px 3px); }
.scan-head { position: absolute; left: 2.2%; top: 1.8%; font: 400 1.2cqw/1 var(--mono); color: #7a7972; }
.scan-page .plan-slot, .scan-page .pen { position: absolute; left: 2%; top: 6%; width: 96%; height: 92%; }
.ps-scan { filter: blur(0.3px) contrast(1.06); }
.pen path { fill: none; stroke: #c8302a; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.pen text { font: 600 20px "Caveat", cursive; fill: #c8302a; }

/* 2. traced in AutoCAD on the studio's layers */
.st-dwg { background: #212830; font-family: var(--ui); }
.cad-tabs { position: absolute; left: 0; right: 0; top: 0; height: 4.6cqw; display: flex; align-items: flex-end; gap: 2px; padding: 0 1.2cqw; background: #333c48; font-size: 1.35cqw; color: #aeb7c2; }
.cad-tabs span { padding: 0.7em 1.1em; border-radius: 3px 3px 0 0; }
.cad-tabs .on { background: #212830; color: #fff; }
.st-dwg .plan-slot { position: absolute; left: 22%; right: 1%; top: 7%; bottom: 13%; }
.cad-layers { position: absolute; left: 1.4cqw; top: 6.4cqw; width: 18cqw; padding: 0.6cqw 0; background: #2a323d; border: 1px solid #3c4552; font-size: 1.3cqw; line-height: 1; color: #d0d6dd; }
.cad-layers .cl-h { padding: 0.35em 0.9em 0.8em; margin-bottom: 0.3em; border-bottom: 1px solid #3c4552; color: #fff; font-weight: 600; }
.cad-layers p { display: flex; align-items: center; gap: 0.7em; padding: 0.42em 0.9em; }
.cad-layers i { flex: none; width: 0.8em; height: 0.8em; background: var(--c); }
.cad-ucs { position: absolute; left: 23%; bottom: 13.5%; width: 4.6cqw; height: 4.6cqw; }
.cad-ucs path { fill: none; stroke: #cfd6de; stroke-width: 1.6; }
.cad-ucs text { font: 600 7px var(--ui); fill: #cfd6de; }
.cad-cmd { position: absolute; left: 1.4cqw; right: 1.4cqw; bottom: 4.2cqw; padding: 0.6cqw 1cqw; background: rgba(42, 50, 61, 0.96); border: 1px solid #3c4552; font: 400 1.25cqw/1.55 var(--mono); color: #c3cbd5; }
.cad-cmd .cur::after { content: ""; display: inline-block; width: 0.55em; height: 1.05em; margin-left: 0.35em; vertical-align: -0.18em; background: #c3cbd5; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cad-model { position: absolute; left: 0; right: 0; bottom: 0; height: 3.2cqw; display: flex; align-items: stretch; gap: 2px; padding-left: 1.2cqw; background: #333c48; font-size: 1.25cqw; color: #aeb7c2; }
.cad-model span { display: flex; align-items: center; padding: 0 1em; }
.cad-model .on { background: #212830; color: #fff; }

/* 3. modeled in Revit in the studio's template */
.st-rvt { background: linear-gradient(180deg, #fdfdfd 0%, #eceef1 100%); font-family: var(--ui); }
.rvt-tabs { position: absolute; left: 0; right: 0; top: 0; height: 4.4cqw; display: flex; align-items: flex-end; gap: 2px; padding: 0 1cqw; background: #dfe3e8; font-size: 1.3cqw; color: #2b2b2b; }
.rvt-tabs span { padding: 0.65em 1em; background: #eceff2; border-radius: 3px 3px 0 0; }
.rvt-tabs .on { background: #fff; }
.axo-slot { position: absolute; left: 25%; right: 0; top: 7%; bottom: 6%; }
.rvt-props { position: absolute; left: 0; top: 4.4cqw; bottom: 3.4cqw; width: 25cqw; background: #fff; border-right: 1px solid #cdd3d9; font-size: 1.22cqw; line-height: 1.25; color: #1f1f1f; }
.rp-h { padding: 0.6em 0.8em; background: #f1f3f5; border-bottom: 1px solid #dde1e5; font-weight: 600; }
.rp-type { position: relative; display: flex; flex-direction: column; gap: 0.2em; padding: 0.75em 0.8em 0.75em 3.7em; border-bottom: 1px solid #e5e8eb; }
.rp-type::before { content: ""; position: absolute; left: 0.8em; top: 0.75em; width: 2.3em; height: 2.3em; border: 1px solid #b7bec5; background: linear-gradient(90deg, #c9ced3 0 28%, #ecedef 28% 72%, #c9ced3 72%); }
.rp-type b { font-weight: 600; }
.rp-type span { color: #444; }
.rp-sel { display: flex; align-items: center; justify-content: space-between; padding: 0.55em 0.8em; border-bottom: 1px solid #e5e8eb; }
.rp-sel span { padding: 0.15em 0.55em; border: 1px solid #b9c0c7; border-radius: 2px; }
.rp-grp { padding: 0.5em 0.8em; background: #e9ecef; font-weight: 600; }
.rvt-props dl div { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #eceef0; }
.rvt-props dt, .rvt-props dd { padding: 0.48em 0.8em; }
.rvt-props dd { border-left: 1px solid #eceef0; color: #333; }
.rvt-cube { position: absolute; right: 2cqw; top: 6.6cqw; width: 10cqw; height: 10cqw; }
.rvt-cube ellipse { fill: none; stroke: #b9bfc6; stroke-width: 2.4; }
.rvt-cube path { stroke: #8f979f; stroke-width: 0.8; }
.rvt-cube .c-top { fill: #f6f7f8; } .rvt-cube .c-l { fill: #d4d8dc; } .rvt-cube .c-r { fill: #e5e8eb; }
.rvt-cube text { font: 600 6px var(--ui); fill: #5c636a; text-anchor: middle; }
.rvt-cube .ct { font-size: 6.4px; } .rvt-cube .cf { font-size: 4.8px; }
.rvt-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3.4cqw; display: flex; align-items: center; gap: 0.9cqw; padding-left: 26cqw; background: #f1f3f5; border-top: 1px solid #d5dae0; font-size: 1.2cqw; color: #333; }
.rvt-bar i { width: 1.6cqw; height: 1.6cqw; border-radius: 2px; background: #c9cfd5; }

/* 4. the issued sheet */
.st-sheet { background: #cfcfca; }
.sheet-frame { position: absolute; left: 3%; right: 3%; top: 50%; aspect-ratio: 36 / 24; transform: translateY(-50%); background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 14px 30px -14px rgba(0, 0, 0, 0.4); }
.sheet-frame::before { content: ""; position: absolute; inset: 1.6% 1.1%; border: 1px solid #222; pointer-events: none; }
.st-sheet .plan-slot { position: absolute; left: 2.4%; top: 4%; bottom: 4%; right: 21.6%; }
.tb { position: absolute; top: 1.6%; bottom: 1.6%; right: 1.1%; width: 19.4%; display: flex; flex-direction: column; border-left: 1px solid #222; font: 400 0.98cqw/1.2 var(--print); color: #111; }
.tb > * { padding: 0.55em 0.7em; border-bottom: 1px solid #222; }
.tb-firm b { display: block; font-size: 1.3em; font-weight: 700; letter-spacing: 0.12em; }
.tb-firm span, .tb-cons p, .tb-proj span { display: block; color: #444; }
.tb-key span { display: block; color: #444; }
.tb-key svg { display: block; width: 72%; margin-top: 0.35em; }
.tb-key .lot { fill: none; stroke: #222; stroke-width: 0.8; stroke-dasharray: 3 1.5; }
.tb-key .k { fill: rgba(34, 34, 34, 0.75); }
.tb-rev { border-collapse: collapse; width: 100%; }
.tb-rev th, .tb-rev td { padding: 0.2em 0.25em 0.2em 0; text-align: left; font-size: 0.86em; font-weight: 400; }
.tb-rev th { color: #555; border-bottom: 1px solid #999; }
.tb-nfc { font-weight: 700; letter-spacing: 0.06em; text-align: center; }
.tb-proj b { display: block; font-size: 1.12em; font-weight: 700; }
.tb-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35em 0.6em; }
.tb-meta dt { font-size: 0.8em; color: #555; }
.tb-meta dd { font-weight: 600; }
.tb-title { margin-top: auto; border-bottom: 0 !important; }
.tb-title span { display: block; font-weight: 700; }
.tb-title b { display: block; font-size: 3em; line-height: 1.05; letter-spacing: -0.01em; }

/* ---------- drawings in four drafting styles (js/drawing-l1.js) ---------- */
.plan2d { --ink: #1b1b1b; --thin: #333; --light: #9c9c9c; --grid: #8f8f8f; --poche: #222; --poche-i: #666; --txt: #111; --txt-2: #4a4a4a; --glaz: var(--thin); --door: var(--thin); --stair: var(--thin); --dim: var(--thin); --tag: var(--txt); --tagbox: #fff; --bub: var(--ink); --bubfill: #fff; --cloud: #1b1b1b; }
.plan2d text { font-family: var(--print); fill: var(--txt); text-anchor: middle; }
.plan2d .d-grid line { stroke: var(--grid); stroke-width: 0.5; stroke-dasharray: 16 3 3 3; }
.plan2d .d-bub circle { fill: var(--bubfill); stroke: var(--bub); stroke-width: 0.6; }
.plan2d .d-bub text { font-size: 8px; font-weight: 600; fill: var(--bub); }
.plan2d .d-dim line { stroke: var(--dim); stroke-width: 0.4; }
.plan2d .d-dim .tk { stroke-width: 0.9; }
.plan2d .d-dim text { font-size: 6.2px; fill: var(--dim); }
.plan2d .d-furn * { fill: none; stroke: var(--light); stroke-width: 0.4; }
.plan2d .d-stair rect, .plan2d .d-stair line, .plan2d .d-stair path { fill: none; stroke: var(--stair); stroke-width: 0.45; }
.plan2d .d-stair .walk { stroke-dasharray: 3 2; }
.plan2d .d-stair .up { font-size: 4.6px; text-anchor: start; fill: var(--stair); }
.plan2d .d-wall rect { fill: var(--poche); }
.plan2d .d-wall .iw rect { fill: var(--poche-i); }
.plan2d .d-wall .col { fill: var(--ink); }
.plan2d .d-open line { stroke: var(--glaz); stroke-width: 0.4; }
.plan2d .d-door path { fill: none; stroke: var(--door); stroke-width: 0.45; }
.plan2d .d-tag .rn { font-size: 6.4px; font-weight: 600; letter-spacing: 0.03em; fill: var(--tag); }
.plan2d .d-tag .rb { fill: var(--tagbox); stroke: var(--tag); stroke-width: 0.5; }
.plan2d .d-tag .no { font-size: 6.2px; font-weight: 600; fill: var(--tag); }
.plan2d .d-tag .ar { font-size: 5.6px; fill: var(--tag); opacity: 0.85; }
.plan2d .d-tag .sm { font-size: 5px; font-weight: 500; }
.plan2d .d-sym circle { fill: var(--bubfill); stroke: var(--ink); stroke-width: 0.6; }
.plan2d .d-sym line { stroke: var(--ink); stroke-width: 0.5; }
.plan2d .d-sym .cut { stroke-width: 1.6; }
.plan2d .d-sym text { font-size: 6.4px; font-weight: 600; fill: var(--ink); }
.plan2d .d-sym .s { font-size: 4.6px; font-weight: 500; }
.plan2d .d-sym .na { fill: var(--ink); stroke: none; }
.plan2d .rev-cloud { fill: none; stroke: var(--cloud); stroke-width: 0.9; }
.plan2d .rev-tag path { fill: #fff; stroke: var(--cloud); stroke-width: 0.7; }
.plan2d .rev-tag text { font-size: 6.4px; font-weight: 700; fill: var(--cloud); }
.plan2d .d-title circle { fill: #fff; stroke: var(--ink); stroke-width: 0.7; }
.plan2d .d-title line { stroke: var(--ink); stroke-width: 0.7; }
.plan2d .d-title .n { font-size: 7.4px; font-weight: 700; }
.plan2d .d-title .s { font-size: 4.8px; }
.plan2d .d-title .t { font-size: 9px; font-weight: 700; letter-spacing: 0.02em; text-anchor: start; }
.plan2d .d-title .sc { font-size: 5.4px; text-anchor: start; }
.ps-scan { --ink: #3b3b37; --thin: #4c4c47; --light: #8f8f89; --grid: #8a8a84; --poche: #403f3b; --poche-i: #76756f; --txt: #3b3b37; --tagbox: rgba(0, 0, 0, 0); --bubfill: rgba(0, 0, 0, 0); }
.ps-dwg { --ink: #f2f2f2; --thin: #f2f2f2; --light: #8c8c8c; --grid: #ef4d3c; --poche: rgba(140, 140, 140, 0.26); --poche-i: rgba(140, 140, 140, 0.26); --txt: #ffd84a; --glaz: #4fc8e8; --door: #5ad06a; --stair: #d36ce0; --dim: #4fc8e8; --tag: #ffd84a; --tagbox: rgba(0, 0, 0, 0); --bub: #ef4d3c; --bubfill: rgba(0, 0, 0, 0); }
.ps-dwg text { font-family: var(--mono); }
.ps-dwg .d-wall rect { stroke: #f2f2f2; stroke-width: 0.45; }
.ps-dwg .d-wall .col { fill: none; }
.ps-dwg .d-sym circle { fill: none; }

.axo3d { display: block; width: 100%; height: 100%; }
.axo3d polygon { stroke: #5d656e; stroke-width: 0.35; stroke-linejoin: round; }
.axo3d .slab { fill: #f1f2f3; }
.axo3d .slab-e { fill: #b9bec4; }
.axo3d .slab-e2 { fill: #a5abb2; }
.axo3d .ag { fill: none; stroke: rgba(31, 71, 107, 0.4); stroke-width: 0.5; stroke-dasharray: 10 3 2 3; }
.axo3d .tr { fill: none; stroke: #8c949c; stroke-width: 0.4; }
.axo3d .w.fy { fill: #dcdfe2; } .axo3d .w.fx { fill: #bcc2c8; } .axo3d .w.top { fill: #f7f7f8; }
.axo3d .i.fy { fill: #e8eaec; } .axo3d .i.fx { fill: #d2d6da; } .axo3d .i.top { fill: #fbfbfb; }
.axo3d .c.fy { fill: #c9cdd2; } .axo3d .c.fx { fill: #aeb4ba; } .axo3d .c.top { fill: #eceef0; }
.axo3d .g { fill: rgba(122, 166, 198, 0.5); stroke: #5d86a3; stroke-width: 0.25; }
.axo3d .g.top { fill: rgba(122, 166, 198, 0.35); }

/* ---------- the documents ---------- */
.vbox { position: relative; overflow: hidden; aspect-ratio: 10 / 9; border-radius: 6px; container: vbox / inline-size; background: var(--paper-2); }

/* Word, with a tracked change and its note */
.vb-word { background: #e6e6e6; }
.w-bar { position: absolute; left: 0; right: 0; top: 0; height: 6.4cqw; display: flex; align-items: center; justify-content: space-between; padding: 0 2.6cqw; background: #2b579a; color: #fff; font: 400 1.6cqw/1 var(--ui); }
.w-bar span + span { padding: 0.35em 0.7em; border-radius: 3px; background: rgba(255, 255, 255, 0.16); }
.w-page { position: absolute; left: 4cqw; top: 10cqw; width: 60cqw; min-height: 120cqw; padding: 5cqw 5cqw; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.12); font: 400 1.68cqw/1.42 Arial, Helvetica, sans-serif; color: #111; }
.w-hd { display: flex; justify-content: space-between; gap: 1em; margin-bottom: 1.6em; font-size: 0.84em; line-height: 1.35; color: #555; }
.w-hd span + span { text-align: right; }
.w-art { margin-top: 1.2em; }
.w-part { margin-top: 1.8em; }
.w-p { position: relative; display: grid; grid-template-columns: 2.1em minmax(0, 1fr); margin-top: 0.5em; padding-left: 2.1em; }
.w-sub { padding-left: 4.2em; }
.chg::before { content: ""; position: absolute; left: -2.6cqw; top: 0.15em; bottom: 0.15em; width: 1px; background: #333; }
.vb-word ins { color: #c4161c; text-decoration: underline; text-underline-offset: 0.14em; }
.vb-word del { color: #c4161c; text-decoration: line-through; margin-right: 0.15em; }
.w-cmt { position: absolute; left: calc(100% + 7.4cqw); top: -0.9em; width: 30cqw; display: flex; flex-direction: column; gap: 0.6em; padding: 1em 1.1em; background: #fff; border: 1px solid #d4d4d4; border-radius: 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); font: 400 1.48cqw/1.4 var(--ui); color: #222; }
.w-cmt::before { content: ""; position: absolute; right: 100%; top: 1.6em; width: 7.4cqw; border-top: 1px dashed #c4161c; }
.w-who { display: flex; align-items: center; gap: 0.55em; }
.w-who i { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--carbon); color: var(--paper); font-style: normal; font-weight: 600; }
.w-who b { font-weight: 600; }
.w-who em { margin-left: auto; font-style: normal; color: #777; }
.w-btns { display: flex; gap: 0.5em; }
.w-btns span { padding: 0.35em 0.85em; border: 1px solid #c8c8c8; border-radius: 4px; }
.w-btns span:first-child { background: #2b579a; border-color: #2b579a; color: #fff; }

/* Bluebeam, with markups and the markups list */
.vb-revu { display: flex; flex-direction: column; background: #e6e6e6; }
.rv-bar { flex: none; display: flex; align-items: center; justify-content: space-between; height: 6.4cqw; padding: 0 2.4cqw; background: #2e3237; color: #e9e9e9; font: 400 1.6cqw/1 var(--ui); }
.rv-tools { display: flex; gap: 0.9cqw; }
.rv-tools i { width: 2.6cqw; height: 2.6cqw; border-radius: 0.5cqw; background: #4a4f56; }
.rv-tools .on { background: #3b3f45; box-shadow: inset 0 0 0 1.5px #ff453a; }
.rv-canvas { flex: 1 1 auto; min-height: 0; padding: 2.2cqw; background: #8b9096; }
.rv-sheet { position: relative; width: 100%; height: 100%; overflow: hidden; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }
.rv-sheet .plan-slot, .rv-marks { position: absolute; inset: 0; width: 100%; height: 100%; }
.rv-marks path { fill: none; stroke: #ee2a1e; stroke-width: 1.3; stroke-linejoin: round; }
.rv-marks .ah { fill: #ee2a1e; stroke: none; }
.rv-marks rect { fill: #fff; stroke: #ee2a1e; stroke-width: 0.9; }
.rv-marks text { font: 400 8.4px Arial, Helvetica, sans-serif; fill: #ee2a1e; }
.rv-list { flex: none; width: 100%; border-collapse: collapse; table-layout: fixed; background: #fff; font: 400 1.48cqw/1.25 var(--ui); color: #1f1f1f; }
.rv-list .c1 { width: 16%; } .rv-list .c2 { width: 12.5%; } .rv-list .c3 { width: 12%; } .rv-list .c4 { width: 10%; }
.rv-list th { padding: 0.6em 0.8em; text-align: left; font-weight: 600; background: #f2f2f2; border-bottom: 1px solid #d9d9d9; white-space: nowrap; overflow: hidden; }
.rv-list td { padding: 0.62em 0.8em; border-bottom: 1px solid #eee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-list .sw { display: inline-block; width: 1.1em; height: 0.78em; margin-right: 0.45em; border: 1.5px solid #ee2a1e; border-radius: 0.45em; vertical-align: -0.04em; }
.rv-list .sw.sq { border-radius: 1px; }

/* paper: minutes, a submittal, a proposal page, an invoice */
.d-page { position: absolute; left: 6cqw; right: 6cqw; top: 6cqw; min-height: 120cqw; padding: 5.6cqw 6cqw; background: #fff; box-shadow: var(--shadow-sheet); font: 400 1.7cqw/1.42 var(--print); color: #161616; font-variant-numeric: tabular-nums; }
.d-page table { width: 100%; border-collapse: collapse; }
.lh { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; padding-bottom: 1.1em; border-bottom: 1px solid #161616; }
.lh b, .d-run b, .inv-firm b { font-weight: 700; letter-spacing: 0.14em; }
.lh span { color: #666; }
.d-title { margin-top: 1.5em; font-size: 1.5em; font-weight: 500; letter-spacing: -0.005em; }
.d-info { margin-top: 1em; }
.d-info th, .d-info td { padding: 0.28em 1em 0.28em 0; text-align: left; vertical-align: top; font-weight: 400; }
.d-info th { width: 1%; color: #777; white-space: nowrap; }
.d-items { margin-top: 1.5em; }
.d-items th { padding: 0.45em 0.8em 0.45em 0; text-align: left; font-weight: 600; border-bottom: 1px solid #161616; }
.d-items td { padding: 0.55em 0.8em 0.55em 0; vertical-align: top; border-bottom: 1px solid #dcdcdc; }
.d-items td:first-child { width: 3.4em; color: #555; }
.d-items td:nth-child(3), .d-items td:nth-child(4) { width: 3.6em; white-space: nowrap; }
.d-filed { position: absolute; left: 4cqw; bottom: 4cqw; padding: 0.6em 0.9em; border-radius: 4px; background: var(--carbon); color: var(--paper); font: 500 1.6cqw/1 var(--sans); }

.s-top, .d-run { display: flex; justify-content: space-between; gap: 1em; padding-bottom: 1em; border-bottom: 1px solid #161616; font-size: 0.9em; color: #555; }
.d-run span { text-align: right; }
.s-dt { color: #666; }
.vb-sub .d-title { margin-top: 1.1em; }
.s-tab { margin-top: 1em; }
.s-tab th { width: 33%; padding: 0.42em 1em 0.42em 0; text-align: left; font-weight: 400; color: #666; border-bottom: 1px solid #e3e3e3; }
.s-tab td { padding: 0.42em 1em 0.42em 0; border-bottom: 1px solid #e3e3e3; }
.s-n { color: #e0281e; font-family: Arial, Helvetica, sans-serif; }
.mk { white-space: nowrap; }
.mk-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.mk-layer path { fill: none; stroke: #e0281e; stroke-width: 1.3; stroke-linejoin: round; }
.s-low { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.6em; align-items: start; margin-top: 1.5em; }
.s-det { display: block; width: 100%; height: auto; }
.s-det path, .s-det rect, .s-det polyline, .s-det line { fill: none; stroke: #222; stroke-width: 0.6; }
.s-det .ins { stroke: #888; stroke-width: 0.5; }
.s-det .stone { fill: url(#s-hatch); }
.s-det pattern line { stroke: #555; stroke-width: 0.5; }
.s-det .kerf { fill: #fff; }
.s-det .clip { stroke-width: 1.4; }
.s-det text { font: 400 5.6px Arial, Helvetica, sans-serif; fill: #222; stroke: none; }
.s-det .cap { font-weight: 700; }
.stamp { padding: 0.8em 0.9em; border: 2px solid #27428f; color: #27428f; transform: rotate(-2.5deg); font: 700 1.36cqw/1.3 Arial, Helvetica, sans-serif; text-transform: uppercase; letter-spacing: 0.02em; mix-blend-mode: multiply; }
.stamp .sb-h { padding-bottom: 0.5em; margin-bottom: 0.4em; border-bottom: 1.5px solid #27428f; }
.stamp .sb-o { display: flex; align-items: center; gap: 0.5em; margin-top: 0.3em; }
.stamp i { position: relative; flex: none; width: 1em; height: 1em; border: 1.5px solid #27428f; }
.stamp i.x::before, .stamp i.x::after { content: ""; position: absolute; left: -0.2em; right: -0.2em; top: 50%; height: 1.6px; margin-top: -0.8px; background: #27428f; transform: rotate(45deg); }
.stamp i.x::after { transform: rotate(-45deg); }
.stamp .sb-d { margin-top: 0.6em; font-size: 0.86em; font-weight: 400; text-transform: none; letter-spacing: 0; }
.stamp .sb-by { display: flex; justify-content: space-between; margin-top: 0.6em; padding-top: 0.45em; border-top: 1px solid #27428f; }

.d-h { margin-top: 1.6em; font-weight: 700; }
.d-p { margin-top: 0.5em; }
.d-fee { margin-top: 1em; }
.d-fee th { padding: 0.4em 0; text-align: left; font-weight: 600; border-bottom: 1px solid #161616; }
.d-fee td { padding: 0.42em 0; border-bottom: 1px solid #e0e0e0; }
.d-fee th:not(:first-child), .d-fee td:not(:first-child) { text-align: right; }
.d-fee tfoot td { font-weight: 700; border-top: 1px solid #161616; border-bottom: 0; }
.d-rates { margin-top: 0.7em; }
.d-rates td { padding: 0.3em 0; }
.d-rates td:nth-child(2n) { text-align: right; padding-right: 2.6em; color: #333; }

.inv-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 1.1em; border-bottom: 1px solid #161616; }
.inv-firm, .inv-no { display: flex; flex-direction: column; gap: 0.25em; }
.inv-firm span { color: #666; }
.inv-no { text-align: right; }
.inv-no b { font-size: 1.4em; font-weight: 500; }
.inv-meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0.3em 2.4em; margin-top: 1.2em; }
.inv-meta span { display: block; color: #777; }
.inv-t { margin-top: 1.4em; font-size: 0.94em; }
.inv-t th { padding: 0.4em 0 0.4em 0.8em; text-align: right; font-weight: 600; white-space: nowrap; border-bottom: 1px solid #161616; }
.inv-t td { padding: 0.42em 0 0.42em 0.8em; text-align: right; white-space: nowrap; border-bottom: 1px solid #e0e0e0; }
.inv-t th:first-child, .inv-t td:first-child { padding-left: 0; text-align: left; }
.inv-t tfoot td { font-weight: 700; border-top: 1px solid #161616; border-bottom: 0; }
.inv-sum { width: 54% !important; margin: 1.1em 0 0 auto; }
.inv-sum td { padding: 0.32em 0; }
.inv-sum td + td { text-align: right; }
.inv-sum .due td { padding-top: 0.6em; border-top: 1px solid #161616; font-weight: 700; }
.inv-terms { margin-top: 1.3em; color: #666; }
.sticky { position: absolute; right: 5cqw; bottom: 6cqw; width: 33cqw; padding: 1.1em 1.2em; background: var(--trace); box-shadow: 0 10px 24px -12px rgba(28, 27, 25, 0.55); transform: rotate(1.6deg); font: 500 1.75cqw/1.35 var(--sans); color: var(--carbon); }

@container vbox (max-width: 520px) {
  .d-page { left: 4cqw; right: 4cqw; top: 4cqw; padding: 5cqw; font-size: 2.3cqw; }
  .w-page { left: 3cqw; width: 64cqw; padding: 4cqw; font-size: 2.15cqw; }
  .w-hd { display: none; }
  .w-cmt { left: calc(100% + 6cqw); width: 28cqw; font-size: 2cqw; padding: 0.7em 0.8em; }
  .w-cmt::before { width: 6cqw; }
  .w-bar, .rv-bar { font-size: 2.3cqw; height: 8cqw; }
  .w-page { top: 11cqw; }
  .rv-list { font-size: 2.1cqw; }
  .rv-list .c2 { width: 18%; }
  .rv-list .c3, .rv-list .c4 { width: 0; }
  .rv-list th:nth-child(3), .rv-list td:nth-child(3), .rv-list th:nth-child(4), .rv-list td:nth-child(4) { padding: 0; }
  .stamp { font-size: 1.9cqw; }
  .s-det text { font-size: 7px; }
  .d-filed, .sticky { font-size: 2.4cqw; }
  .sticky { width: 44cqw; right: 3cqw; bottom: 2.5cqw; }
  .inv-t th:nth-child(2), .inv-t td:nth-child(2), .inv-t th:nth-child(4), .inv-t td:nth-child(4) { display: none; }
}

/* ---------- answers from every project, on the joinery drawing ---------- */
.memory { position: relative; overflow: hidden; margin-top: clamp(96px, 10vw, 152px); padding: clamp(80px, 9vw, 136px) 0; }
.memory-art { position: absolute; top: 0; right: 0; bottom: 0; width: min(68%, 1180px); }
.memory-art img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; }
.memory-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(244, 244, 241, 0) 34%), linear-gradient(180deg, var(--paper) 0%, rgba(244, 244, 241, 0) 14%, rgba(244, 244, 241, 0) 86%, var(--paper) 100%);
}
.memory-in { position: relative; z-index: 1; }
.memory-in > * { max-width: 540px; }
.memory-in > p:not(.apps) { margin-top: 8px; color: var(--graphite); }
.questions { list-style: none; margin-top: 28px; }
.questions li { padding: 10px 0; font: italic 400 var(--t2)/1.25 var(--serif); }
.memory .apps { margin-top: 24px; }

/* ---------- programs ---------- */
.sec { padding: clamp(112px, 12vw, 184px) 0; }
.programs { margin-top: clamp(120px, 13vw, 200px); background: var(--paper-2); }
.sec-head { max-width: 780px; }
.sec-head p { margin-top: 18px; color: var(--graphite); max-width: 34em; }
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px clamp(32px, 4vw, 64px); margin-top: clamp(56px, 6vw, 88px); align-items: start; }
.group h3 { padding-bottom: 12px; border-bottom: 1px solid var(--rule-strong); }
.group ul { list-style: none; margin-top: 6px; }
.group li { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.group img { flex: none; width: 20px; height: 20px; object-fit: contain; }
.group li em { margin-left: auto; font: 400 var(--t3)/1 var(--mono); font-style: normal; color: var(--muted); }
.also { margin-top: 8px; color: var(--muted); }

/* ---------- approval on trace ---------- */
.approve-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px clamp(40px, 5vw, 96px); align-items: center; }
.approve .btn { margin-top: 28px; }
.trace-fig { margin: 0; }
.trace-sheet { position: relative; aspect-ratio: 640 / 440; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(28, 27, 25, 0.08), 0 22px 44px -28px rgba(28, 27, 25, 0.55); }
.trace-sheet .plan-slot, .trace-sheet .trace { position: absolute; inset: 0; width: 100%; height: 100%; }
.trace .t-sheet { transform-box: fill-box; transform-origin: 70% 0; transition: transform 0.7s var(--ease), opacity 0.45s; }
.trace .t-paper { fill: rgba(241, 220, 115, 0.58); mix-blend-mode: multiply; }
.trace path { fill: none; stroke: #3d3300; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.trace .t-x { stroke-width: 1.3; }
.trace .t-cloud { stroke-width: 1.2; }
.trace text { font: 600 8.6px var(--print); letter-spacing: 0.03em; fill: #3d3300; }
.trace-sheet.lifted .t-sheet { transform: translate(12%, -112%) rotate(-6deg); opacity: 0; }

/* ---------- start with one project ---------- */
.close { position: relative; overflow: hidden; background: var(--shade); color: var(--on-shade); padding: clamp(120px, 13vw, 200px) 0; }
.close-art { position: absolute; inset: 0; }
.close-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.close-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31, 22, 15, 0.9) 0%, rgba(31, 22, 15, 0.62) 38%, rgba(31, 22, 15, 0) 70%); }
.close-in { position: relative; z-index: 1; }
.close-in > * { max-width: 540px; }
.close-in > p { margin-top: 18px; color: var(--on-shade-2); }
.terms { list-style: none; margin: 24px 0 36px; }
.terms li { padding: 6px 0; color: var(--on-shade); }
.close :focus-visible { outline-color: var(--trace); }

/* ---------- footer ---------- */
.foot { background: var(--shade); color: var(--on-shade-2); padding: 40px 0 56px; }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: center; padding-top: 16px; }
.foot .brand { color: var(--on-shade); }
.foot .face-shade { fill: #94723c; }
.foot .face-lit { fill: #dcbd83; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: flex-end; }
.foot-links a { text-decoration: none; color: var(--on-shade-2); transition: color 0.18s; }
.foot-links a:hover { color: var(--on-shade); }
.foot-note { grid-column: 1 / -1; color: rgba(244, 244, 241, 0.6); }
.foot :focus-visible { outline-color: var(--trace); }

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
  .convert-in { grid-template-columns: 1fr; gap: 18px; align-content: center; }
  .stage { order: -1; width: min(100%, calc(48svh * 4 / 3)); justify-self: center; }
  .steps { margin-top: 10px; }
  .steps li { padding: 5px 0; }
  .approve-in { grid-template-columns: 1fr; }
  .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .memory-art { width: 100%; opacity: 0.5; }
}
@media (max-width: 720px) {
  .convert { height: 360vh; }
  .convert-text h3 { display: none; }
  .fmts { min-width: 0; }
  .steps li { justify-content: center; }
  .steps li:not(.on) { display: none; }
  .top-in { gap: 16px; height: 64px; }
  .top-links { gap: 16px; }
  .top-links a:last-child { display: none; }
  html { scroll-padding-top: 76px; }
  .convert-pin { top: 64px; height: calc(100svh - 64px); }
  .hero { min-height: auto; }
  .hero-art { flex: none; aspect-ratio: 4 / 3; min-height: 0; margin-top: 16px; }
  .hero-art img { object-position: 62% 60%; }
  .map-in, .pair { grid-template-columns: 1fr; }
  .map-in { gap: 32px; }
  .groups { grid-template-columns: 1fr; gap: 40px; }
  .group ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .group li em { display: none; }
  .memory { padding-top: 0; }
  .memory-art { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 10; opacity: 1; }
  .memory-art img { object-position: 92% 50%; }
  .memory-art::after { background: linear-gradient(180deg, rgba(244, 244, 241, 0) 70%, var(--paper) 100%); }
  .close-art::after { background: linear-gradient(90deg, rgba(31, 22, 15, 0.92) 0%, rgba(31, 22, 15, 0.7) 60%, rgba(31, 22, 15, 0.35) 100%); }
  .foot-in { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
}
@media (max-width: 420px) {
  .top-in { gap: 12px; }
  .top .btn-sm { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero:not(.plotted) .art-colour { clip-path: none; }
  .hero.plotting .art-colour, .hero.plotting .art-pen { animation: none; }
  .art-pen { display: none; }
  .st, .trace .t-sheet { transition: opacity 0.2s; }
  .cad-cmd .cur::after { animation: none; }
  .trace-sheet.lifted .t-sheet { transform: none; }
}

/* ---------- booking page ---------- */
.book { padding: clamp(48px, 9vh, 112px) 0 clamp(112px, 12vw, 176px); }
.book-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 6vw, 112px); align-items: start; }
.book-copy p { margin-top: 18px; max-width: 24em; color: var(--graphite); }
.book-copy .tz { margin-top: 8px; color: var(--muted); }
.book-panel { min-height: 380px; padding: clamp(20px, 2.6vw, 32px); border-radius: 6px; background: var(--sheet); box-shadow: var(--shadow-sheet); }
.days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 16px; border-bottom: 1px solid var(--rule); scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.days button, .times button { border: 1px solid transparent; border-radius: 4px; background: none; font: 500 var(--t3)/1 var(--sans); color: var(--graphite); cursor: pointer; transition: border-color 0.15s, background-color 0.15s, color 0.15s; }
.days button { flex: none; height: 44px; padding: 0 14px; }
.days button:hover { border-color: var(--rule-strong); color: var(--carbon); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; margin-top: 18px; }
.times button { height: 46px; border-color: var(--rule-strong); color: var(--carbon); font-variant-numeric: tabular-nums; }
.times button:hover { border-color: var(--carbon); }
.days button[aria-pressed="true"], .times button[aria-pressed="true"] { background: var(--carbon); border-color: var(--carbon); color: var(--paper); }
.guest, .book-step { display: grid; gap: 14px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--rule); }
.guest[hidden], .book-step[hidden], .done[hidden], .days[hidden], .times[hidden], .btn[hidden] { display: none; }
.guest .pick, .book-step .pick, .done .d1 { font-weight: 600; }
.guest label { display: grid; gap: 6px; color: var(--graphite); }
.guest input { height: 48px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: 4px; background: var(--sheet); font: 400 var(--t3)/1 var(--sans); color: var(--carbon); }
.guest input:focus-visible { outline: 2px solid var(--mineral); outline-offset: 1px; }
.guest .btn, .book-step .btn { justify-self: start; margin-top: 4px; }
.book-step .row { display: flex; flex-wrap: wrap; gap: 8px; }
.done { display: grid; gap: 8px; }
.done a, .fresh a { color: var(--mineral); }
.fresh { margin-top: 10px; }
.msg { margin-top: 14px; color: #a3321f; }
.msg:empty { display: none; }
@media (max-width: 860px) { .book-in { grid-template-columns: minmax(0, 1fr); } }
