/* Bry3D homepage v2: "The drawing sheet".
   Tokens are the Bry3D Master's, value for value. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/plex-mono-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/plex-mono-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
    --side: #26357e; --side-ink: #ffffff; --side-ink-muted: #d6dbf0; --side-label: #a6aed6; --side-wash: #3e4c8d;
    --ground: #f4f5f8; --surface: #ffffff; --border: #e4e7ee; --hairline: #eef0f3; --border-strong: #c3c8d4;
    --ink: #15171f; --ink-2: #3b4050; --muted: #6a7080;
    --blue: #2b4bef; --blue-hover: #1f3fd9; --on-blue: #ffffff; --blue-ink: #1f38b8; --blue-tint: #eef0ff; --blue-on-dark: #8fa0f7;
    --plan-select: #dde2fc;
    --stage-1: #dce3ff; --stage-2: #b9c6ff; --stage-3: #5c74f2; --stage-4: #2b4bef; --stage-5: #1b2f9e;
    --warn: #d97706; --warn-ink: #9a4a00; --good: #15803d; --good-ink: #136b37; --good-tint: #e9f7ee;
    --dash: #b3b8c5;
    --on-ink: #ffffff; --on-ink-strong: #d6d9e1; --on-ink-body: #b9bdc9; --on-ink-muted: #9aa0ae; --ink-rule: #2a2e3a;

    --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --header-h: 64px;
    --gutter: 32px;
    --page-max: 1312px;
    --sheet-m: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0; background: var(--ground); color: var(--ink);
    font: 400 16px/1.55 var(--sans); font-feature-settings: 'cv11', 'ss01';
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
::selection { background: var(--plan-select); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
html { scrollbar-color: #c9cdd8 transparent; }
.num { font-variant-numeric: tabular-nums; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--surface); border: 1px solid var(--border); padding: 10px 14px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { max-width: calc(var(--page-max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.display { font-size: clamp(36px, 3.6vw, 56px); font-weight: 600; line-height: 1.06; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.display span { display: block; }
.lead { font-size: clamp(16.5px, 1.25vw, 18px); line-height: 1.55; color: var(--ink-2); max-width: 54ch; }
.h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1.1; letter-spacing: -0.028em; color: var(--ink); text-wrap: balance; max-width: 20ch; }
.body-text { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 58ch; margin-top: 16px; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 5px; border: 1px solid transparent; font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: var(--on-blue); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border); font-weight: 500; }
.btn-secondary:hover { border-color: var(--border-strong); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; font-weight: 600; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; }
.btn-on-side { background: var(--surface); color: var(--ink); }
.btn-on-side:hover { background: var(--blue-tint); }
.btn-ghost-side { color: var(--side-ink); border-color: var(--side-label); font-weight: 500; }
.btn-ghost-side:hover { background: var(--side-wash); }
.close :focus-visible { outline-color: var(--side-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Chips, tags ---------- */
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; background: var(--hairline); color: var(--ink-2); font: 600 11.5px/1 var(--sans); white-space: nowrap; }
.chip-blue { background: var(--blue-tint); color: var(--blue-ink); }
.chip-good { background: var(--good-tint); color: var(--good-ink); }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 4px; background: var(--blue-tint); color: var(--blue-ink); font: 700 11.5px/1 var(--sans); font-variant-numeric: tabular-nums; }
.sample-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.sample-tag::before { content: ""; width: 10px; height: 10px; border: 1px dashed var(--dash); border-radius: 2px; }
.fmt { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 4px; background: var(--blue-tint); color: var(--blue-ink); font: 700 11px/1 var(--sans); }
.ramp { display: inline-block; width: 14px; height: 6px; border-radius: 2px; margin-right: 8px; vertical-align: 2px; background: var(--hairline); }
.ramp.s1 { background: var(--stage-1); } .ramp.s2 { background: var(--stage-2); } .ramp.s3 { background: var(--stage-3); } .ramp.s4 { background: var(--stage-4); } .ramp.s5 { background: var(--stage-5); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ground); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-nav { height: var(--header-h); display: flex; align-items: center; gap: 28px; padding: 0 var(--sheet-m); }
.brand img { height: 30px; width: auto; }
.nav-menu { display: flex; align-items: center; flex: 1; gap: 8px; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-links > li > a, .nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 6px; border: 0; background: none; color: var(--ink-2); font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; }
.nav-links > li > a:hover, .nav-dropdown-toggle:hover { background: rgba(228, 231, 238, 0.6); color: var(--ink); }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle svg { width: 16px; height: 16px; }
.nav-dropdown-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px; box-shadow: 0 8px 16px -8px rgba(21, 23, 31, 0.2); display: none; }
/* Invisible strip over the 6px gap, so moving down to the menu does not count as leaving the dropdown. */
.nav-dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
[data-nav-enhanced] .nav-dropdown:not(.is-open) .nav-dropdown-menu { display: none; }
[data-nav-enhanced] .nav-dropdown.is-open .nav-dropdown-menu { display: block; }
.nav-demos-menu { width: 300px; }
.nav-demos-menu a { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; padding: 10px; border-radius: 6px; text-decoration: none; }
.nav-demos-menu a:hover { background: var(--ground); }
.nav-demos-menu .fmt { grid-row: span 2; width: 36px; height: 36px; justify-content: center; border-radius: 6px; }
.nav-demos-menu b { color: var(--ink); font-size: 14.5px; font-weight: 600; }
.nav-demos-menu span:not(.fmt) { color: var(--muted); font-size: 13px; }
.nav-lang { margin-left: auto; }
.nav-lang .nav-dropdown-toggle { color: var(--muted); font-size: 14px; }
.nav-lang .nav-dropdown-toggle:hover { color: var(--ink); }
.nav-lang-menu { left: auto; right: 0; width: 184px; }
.nav-lang-menu a, .nav-lang-menu span { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-radius: 6px; color: var(--ink); font-size: 14px; text-decoration: none; }
.nav-lang-menu a:hover { background: var(--ground); }
.nav-lang-menu svg { width: 16px; height: 16px; color: var(--blue-ink); }
.nav-burger { display: none; }

/* ---------- Sheet 1 (hero) ---------- */
.sheet {
    position: relative;
    margin: 4px var(--sheet-m) 0;
    padding: 20px;
    border: 1.5px solid var(--ink);
    height: calc(100svh - var(--header-h) - 28px);
    min-height: 780px; max-height: 960px;
}
.zones { position: absolute; display: flex; justify-content: space-around; font: 500 10.5px/1 var(--mono); color: var(--muted); letter-spacing: 0.08em; pointer-events: none; }
.zones-x { left: 20px; right: 20px; top: 0; height: 20px; align-items: center; }
.zones-y { top: 20px; bottom: 20px; left: 0; width: 20px; flex-direction: column; align-items: center; }
.zones span { flex: 1; display: grid; place-items: center; position: relative; }
.zones-x span + span::before { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 7px; background: var(--ink); }
.zones-y span + span::before { content: ""; position: absolute; top: 0; left: 0; height: 1px; width: 7px; background: var(--ink); }
.sheet-inner {
    height: 100%;
    border: 1px solid var(--ink);
    display: grid;
    grid-template-columns: repeat(20, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr) auto auto;
    background: var(--ground);
}
.cell { min-width: 0; }
.view1 { grid-column: 1 / 14; grid-row: 1; border-right: 1px solid var(--ink); display: flex; flex-direction: column; min-height: 0; }
.view2 { grid-column: 14 / 21; grid-row: 1; display: flex; flex-direction: column; min-height: 0; }
.tb-head { grid-column: 1 / 14; grid-row: 2; }
.tb-lead { grid-column: 1 / 14; grid-row: 3; border-top: 1px solid var(--ink); }
.tb-rec { grid-column: 14 / 21; grid-row: 2 / 4; }
.tb-head, .tb-rec { border-top: 1.5px solid var(--ink); }
.tb-head, .tb-lead { border-right: 1px solid var(--ink); }

.ann-strip { display: flex; gap: 18px; align-items: center; height: 30px; padding: 0 14px; border-top: 1px solid var(--ink); background: var(--surface); font: 500 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; }
.ann-strip span:first-child { color: var(--ink); }
.ann-strip span:last-child { margin-left: auto; }

.shot { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #eef1f7; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transition: opacity .45s var(--ease-out); }
.shot img.is-back { opacity: 0; }

/* Option schedule */
.schedule { position: relative; padding: 16px 20px 14px; border-bottom: 1px solid var(--ink); background: var(--surface); display: grid; gap: 10px; }
.opt-group { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; }
.opt-group legend { float: left; padding: 0; font: 500 11px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.opt-row { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px; border-radius: 5px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: 500 14px/1 var(--sans); cursor: pointer; transition: background-color .25s var(--ease-out), border-color .15s; }
.opt:hover { border-color: var(--border-strong); }
.opt small { font-size: 12.5px; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.opt[aria-pressed="true"] { background: var(--plan-select); border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); font-weight: 600; }
.opt[aria-pressed="true"] small { color: var(--ink-2); }
.swatch { width: 14px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(21, 23, 31, 0.18); }
.schedule .sample-tag { justify-self: end; margin-top: -2px; }
.ghost { color: var(--muted) !important; font-weight: 400 !important; font-size: 13px !important; justify-self: start; border-bottom: 1px dashed var(--border-strong); line-height: 1.5; }

/* Plan */
.plan { flex: 1; min-height: 190px; display: flex; flex-direction: column; }
.plan-svg { flex: 1; min-height: 0; width: 100%; padding: 14px 18px 8px; }
.plan-svg .grid path { stroke: var(--muted); stroke-width: 0.8; stroke-dasharray: 10 3 2 3; fill: none; opacity: .7; }
.plan-svg .grid circle { fill: var(--surface); stroke: var(--muted); stroke-width: 0.9; }
.plan-svg .grid circle.setout { fill: var(--plan-select); stroke: var(--ink); }
.plan-svg .grid text { font: 500 10px var(--mono); fill: var(--ink); text-anchor: middle; }
.plan-svg .wall rect { fill: var(--ink); }
.plan-svg .swing path { fill: none; stroke: var(--ink); stroke-width: 1.1; }
.plan-svg .swing path:nth-child(odd) { stroke-width: 2.5; }
.plan-svg .ann { font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; fill: var(--muted); }
.plan-svg .choice { fill: var(--plan-select); mix-blend-mode: multiply; stroke: var(--blue); stroke-width: 1.8; stroke-dasharray: 7 5; transition: fill .4s var(--ease-out); }
.plan-svg .roof path { stroke: var(--muted); stroke-width: 0.9; stroke-dasharray: 5 4; fill: none; }
.plan-svg .front-sliders path { stroke: var(--ink); stroke-width: 1; }
.plan-svg .posts rect { fill: var(--ink); }
.plan-svg .dim path { stroke: var(--ink); stroke-width: 1.1; fill: none; }
.plan-svg .dimtext { font: 500 12.5px var(--mono); letter-spacing: .04em; fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: var(--ground); stroke-width: 6px; }
.plan-svg.is-new .choice { animation: planwash 1.4s var(--ease-out); }
@keyframes planwash { from { fill: var(--stage-2); } to { fill: var(--plan-select); } }

/* Title block cells */
.tb-head { display: flex; align-items: flex-end; padding: 26px 32px 24px; background: var(--surface); }
.tb-lead { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 20px 32px 22px; background: var(--surface); }
.tb-lead .actions { flex: none; }
.record { display: flex; flex-direction: column; background: var(--surface); }
.rec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px 12px 18px; background: var(--side); color: var(--side-ink); }
.rec-head b { display: block; font-size: 15px; font-weight: 600; }
.rec-head span { font-size: 12.5px; color: var(--side-ink-muted); }
.stage-chip { padding: 3px 9px; border-radius: 4px; background: var(--side-wash); color: var(--side-ink) !important; font: 600 12px/1.4 var(--sans) !important; white-space: nowrap; }
.rec-rows > div { display: grid; grid-template-columns: 82px 1fr; gap: 10px; padding: 8px 18px; border-bottom: 1px solid var(--hairline); }
.rec-rows dt { font-size: 12.5px; color: var(--muted); }
.rec-rows dd { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.rec-foot { margin-top: auto; display: flex; justify-content: space-between; padding: 9px 18px; background: var(--ground); font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* A bound value that just changed washes in plan-select */
[data-bind].is-new, .is-new > [data-bind] { animation: fieldwash 1.4s var(--ease-out); }
@keyframes fieldwash { from { background-color: var(--plan-select); } to { background-color: transparent; } }

/* ---------- Bands and steps ---------- */
.band, .step { padding: 96px 0; border-top: 1px solid var(--border); }
.band { background: var(--surface); }
.fit { border-top: 0; margin-top: 24px; background: var(--ground); padding-top: 72px; }

.fit-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.fit-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.fit-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--hairline); }
.fit-head b { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.fit-head span { font-size: 13px; color: var(--muted); }
.fit-list { display: grid; grid-template-columns: 1fr 1fr; }
.fit-list li { border-bottom: 1px solid var(--hairline); }
.fit-list li:nth-child(odd) { border-right: 1px solid var(--hairline); }
.fit-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 0 20px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color .15s; }
.fit-list a svg { width: 16px; height: 16px; flex: none; color: var(--muted); transition: transform .2s var(--ease-out), color .15s; }
.fit-list a:hover { background: var(--ground); }
.fit-list a:hover svg { color: var(--blue-ink); transform: translateX(3px); }
.fit-foot { padding: 12px 20px; background: var(--ground); font-size: 13px; color: var(--muted); }

/* Register */
.reg-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.register table { width: 100%; border-collapse: collapse; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--ink); }
.register th { text-align: left; padding: 10px 12px 10px 0; font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }
.register td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--hairline); font-size: 14.5px; color: var(--ink-2); vertical-align: baseline; white-space: nowrap; }
.register td:nth-child(2) { white-space: normal; width: 100%; }
.register td:first-child { font-weight: 600; color: var(--ink); width: 48px; }
.register td a { color: var(--ink); font-weight: 500; text-decoration: none; background-image: linear-gradient(var(--border-strong), var(--border-strong)); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; }
.register td a:hover { color: var(--blue-ink); background-image: linear-gradient(var(--blue-ink), var(--blue-ink)); }
.register tr:last-child td { border-bottom: 0; }
.register .r { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }
.register .sample-tag { margin-top: 12px; }

.step-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.step-flip .step-text { order: 2; }
.step-text-wide { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: end; margin-bottom: 48px; }
.step-text-wide .body-text { margin-top: 0; }
.note { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* A sheet panel: the product, closed by a one-row title block */
.sheetpanel { min-width: 0; }
.sheetpanel-narrow { max-width: 460px; justify-self: center; width: 100%; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.tblock { display: grid; grid-auto-flow: column; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); margin-top: 12px; border: 1px solid var(--ink); background: var(--surface); }
.tblock > div { padding: 7px 12px 8px; border-left: 1px solid var(--ink); min-width: 0; }
.tblock > div:first-child { border-left: 0; }
.tblock i { display: block; font: 500 11px/1.3 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tblock b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lane-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.lane-head b { font-size: 14px; font-weight: 600; }
.lane-sub { font-size: 12.5px; color: var(--muted); }
.lane-head .chip:last-child { margin-left: auto; }
.lane .sample-tag { margin-left: auto; }
.row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--hairline); }
.row:last-child { border-bottom: 0; }
.row.is-this { background: var(--blue-tint); }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; background: var(--hairline); font: 600 11.5px/1 var(--sans); color: var(--ink-2); }
.row.is-this .avatar { background: var(--surface); }
.row-main { min-width: 0; }
.row-main b { display: block; font-size: 14px; font-weight: 600; }
.row-main > span { display: block; font-size: 13px; color: var(--muted); }
.row-amt { font-size: 13.5px; font-weight: 600; min-width: 64px; text-align: right; }
.row .btn-secondary { cursor: default; }

/* Quote */
.quote { background: var(--surface); border: 1px solid var(--border); padding: 32px; }
.quote-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1.5px solid var(--ink); }
.quote-head > div { display: flex; align-items: center; gap: 10px; }
.quote-head b { font-size: 16px; }
.your-logo { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px dashed var(--dash); border-radius: 2px; font-size: 12px; color: var(--muted); }
.quote-for { padding: 14px 0 6px; font-size: 14px; color: var(--ink-2); }
.quote-lines { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.quote-lines th { text-align: left; padding: 10px 0; font-size: 12.5px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--hairline); }
.quote-lines td { padding: 10px 0; border-bottom: 1px solid var(--hairline); color: var(--ink); }
.quote-lines .r { text-align: right; }
.quote-lines tfoot td { color: var(--ink-2); }
.quote-lines .total td { border-top: 1.5px solid var(--ink); border-bottom: 0; font-weight: 700; color: var(--ink); font-size: 16px; }
.revs { margin-top: 32px; border-top: 1px solid var(--border); }
.revs li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 14.5px; }
.revs b { font-weight: 500; color: var(--ink); }
.revs span { color: var(--muted); }
.revs .is-signed b { color: var(--good-ink); font-weight: 600; }

/* Follow-up */
.follow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.flow-steps { counter-reset: s; padding: 8px 16px 14px; }
.flow-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; color: var(--ink); }
.flow-steps li:last-child { border-bottom: 0; }
.flow-steps i { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.bubbles { display: grid; gap: 10px; padding: 16px; }
.bubbles p { max-width: 86%; padding: 10px 12px; font-size: 14px; line-height: 1.45; border-radius: 12px; }
.bubbles .in { background: var(--hairline); color: var(--ink); border-top-left-radius: 4px; }
.bubbles .out { justify-self: end; background: var(--blue-tint); color: var(--ink); border-top-right-radius: 4px; }
.bubbles .handoff { max-width: none; justify-self: center; padding: 4px 0 0; font-size: 12.5px; color: var(--muted); border-radius: 0; }

/* Job board */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.col .job { margin: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px; display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.col .job b { font-size: 14px; color: var(--ink); }
.col .job.is-this { background: var(--blue-tint); border-color: var(--border); }
.job-spec { color: var(--ink-2); }
.tasks { margin-top: 10px; display: grid; gap: 6px; }
.tasks li { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; }
.tasks li::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--border-strong); border-radius: 4px; background: var(--surface); flex: none; }
.tasks li.done { color: var(--muted); text-decoration: line-through; }
.tasks li.done::before { border-color: var(--good); background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.tasks em, .due { font-style: normal; margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.due { margin: 6px 0 0; }

/* Customer page */
.portal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--hairline); }
.portal-body { padding: 22px 22px 24px; }
.portal-title { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.portal-spec { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.track { margin-top: 20px; display: grid; }
.track li { position: relative; padding: 0 0 18px 30px; font-size: 14.5px; color: var(--muted); }
.track li:last-child { padding-bottom: 0; }
.track li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--surface); box-sizing: border-box; }
.track li::after { content: ""; position: absolute; left: 7.5px; top: 20px; bottom: 2px; width: 1px; background: var(--border); }
.track li:last-child::after { display: none; }
.track li.done { color: var(--ink); }
.track li.done::before { border-color: var(--ink); background: var(--ink); }
.track li.now { color: var(--ink); font-weight: 600; }
.track li.now::before { border: 5px solid var(--ink); }

/* Numbers */
.split-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; margin-bottom: 48px; }
.split-head .body-text { margin-top: 0; }
.pipe { padding: 24px; }
.pipe-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; font-size: 15px; color: var(--ink-2); }
.figure { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-right: 4px; }
.pipe-bar { display: flex; gap: 2px; height: 14px; }
.pipe-bar span { border-radius: 2px; }
.pipe-bar .s1 { background: var(--stage-1); } .pipe-bar .s2 { background: var(--stage-2); } .pipe-bar .s3 { background: var(--stage-3); } .pipe-bar .s4 { background: var(--stage-4); } .pipe-bar .s5 { background: var(--stage-5); }
.pipe-legend { display: flex; gap: 2px; margin-top: 12px; }
.pipe-legend li { min-width: 0; display: grid; align-content: start; gap: 2px; font-size: 13px; padding-right: 8px; }
.pipe-legend b { font-weight: 600; }
.pipe-legend span { color: var(--muted); white-space: nowrap; }
.quiet { font-style: normal; color: var(--warn-ink); font-size: 12.5px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.quiet::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.pipe-legend li:nth-child(5) { min-width: 84px; }
.pipe-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--muted); }

/* Formats */
.formats { background: var(--ground); }
.fmt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fmt-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s; }
.fmt-card:hover { border-color: var(--border-strong); }
.fmt-card figure { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--ground); }
.fmt-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.fmt-card:hover img { transform: scale(1.015); }
.cap { position: absolute; left: 10px; bottom: 10px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.fmt-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.fmt-body h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.fmt-body p { margin: 8px 0 18px; font-size: 15px; color: var(--ink-2); }
.arrow { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--blue-ink); font-size: 15px; font-weight: 500; }
.arrow::after { content: ""; width: 16px; height: 16px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s var(--ease-out); }
.fmt-card:hover .arrow::after { transform: translateX(3px); }

/* Trust */
.trust .split-head { margin-bottom: 0; align-items: start; }
.trust .body-text { margin-top: 16px; }
.numbers .tblock { margin-top: 12px; }
.trust-list { border-top: 1.5px solid var(--ink); }
.trust-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--hairline); font-size: 15.5px; color: var(--ink); }
.trust-list a { flex: none; font-size: 14.5px; font-weight: 500; }

/* Close */
.close { background: var(--side); color: var(--side-ink-muted); padding: 96px 0; }
.close-grid { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 64px; align-items: center; }
.close .h2 { color: var(--side-ink); }
.close p { margin: 16px 0 28px; font-size: 18px; line-height: 1.55; max-width: 52ch; }

/* Footer */
.footer { background: var(--ink); color: var(--on-ink-body); padding: 64px 0 32px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin-top: 16px; max-width: 34ch; }
.foot-lang { display: flex; gap: 12px; }
.foot-lang span { color: var(--on-ink); font-weight: 600; }
.footer h2 { font-size: 13px; font-weight: 600; color: var(--on-ink); margin-bottom: 14px; }
.footer ul { display: grid; gap: 10px; }
.footer a { color: var(--on-ink-body); text-decoration: none; }
.footer a:hover { color: var(--on-ink); text-decoration: underline; }
.footer :focus-visible { outline-color: var(--blue-on-dark); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--ink-rule); font-size: 13px; color: var(--on-ink-muted); }
.foot-bottom a { color: var(--on-ink-strong); }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
    .view1, .tb-head, .tb-lead { grid-column: 1 / 13; }
    .view2, .tb-rec { grid-column: 13 / 21; }
    .opt { height: 32px; padding: 0 9px; font-size: 13.5px; }
    .opt-group { grid-template-columns: 84px 1fr; }
}
@media (max-width: 1180px) {
    .view1, .tb-head, .tb-lead { grid-column: 1 / 12; }
    .view2, .tb-rec { grid-column: 12 / 21; }
    .tb-lead { flex-direction: column; align-items: flex-start; gap: 18px; }
    .tb-head { padding: 24px 28px; }
    .tb-lead { padding: 18px 28px 24px; }
    .sheet { height: auto; max-height: none; min-height: 0; }
    .sheet-inner { grid-template-rows: minmax(420px, 50vh) auto auto; }
    .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    :root { --gutter: 24px; }
    .band, .step { padding: 64px 0; }
    .fit-grid, .reg-grid, .step-grid, .step-text-wide, .split-head { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .step-flip .step-text { order: 0; }
    .follow { grid-template-columns: minmax(0, 1fr); }
    .fmt-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
    .close-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .close-grid img { width: 120px; height: 120px; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .sheetpanel-narrow { justify-self: start; }
}
@media (max-width: 820px) {
    :root { --sheet-m: 12px; }
    .sheet { padding: 12px; margin-top: 0; }
    .zones { font-size: 9px; }
    .zones-x { left: 12px; right: 12px; height: 12px; }
    .zones-y { top: 12px; bottom: 12px; width: 12px; }
    .sheet-inner { display: flex; flex-direction: column; }
    .tb-head { order: 1; border-top: 0; padding: 22px 18px 6px; border-right: 0; }
    .tb-lead { order: 2; border-top: 0; border-right: 0; padding: 14px 18px 22px; }
    .view1 { order: 3; border-right: 0; border-top: 1.5px solid var(--ink); }
    .view1 .shot { aspect-ratio: 3 / 2; flex: none; }
    .view2 { order: 4; border-top: 1px solid var(--ink); }
    .plan-svg { flex: none; aspect-ratio: 560 / 320; }
    .tb-rec { order: 5; border-top: 1px solid var(--ink); }
    .hide-sm { display: none; }
}
@media (max-width: 640px) {
    :root { --gutter: 16px; --header-h: 60px; }
    .nav-menu { display: none; }
    .has-nav-js .site-nav.nav-open .nav-menu { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: var(--header-h); left: 0; right: 0; padding: 8px 16px 16px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 10px 16px -10px rgba(21, 23, 31, 0.2); }
    .nav-open .nav-links { flex-direction: column; align-items: stretch; }
    .nav-open .nav-links > li > a, .nav-open .nav-dropdown-toggle { height: 52px; width: 100%; }
    .nav-open .nav-dropdown-menu { position: static; display: block !important; border: 0; box-shadow: none; padding: 0; width: auto; }
    .nav-open .nav-dropdown > .nav-dropdown-toggle { display: none; }
    .nav-login { margin-left: auto; }
    .nav-burger { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; }
    .nav-burger svg { width: 24px; height: 24px; }
    .nav-burger .i-close, .nav-open .nav-burger .i-open { display: none; }
    .nav-open .nav-burger .i-close { display: block; }
    .site-nav { gap: 12px; padding: 0 16px; }
    .display { font-size: 34px; }
    .opt-group { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .schedule { padding: 16px; }
    .ann-strip { gap: 10px; padding: 0 10px; font-size: 11px; letter-spacing: 0.04em; }
    .fit-list { grid-template-columns: minmax(0, 1fr); }
    .fit-list li:nth-child(odd) { border-right: 0; }
    .row { grid-template-columns: 32px minmax(0, 1fr) auto; }
    .row .chip, .row .btn { display: none; }
    .quote { padding: 20px; }
    .board { grid-template-columns: minmax(0, 1fr); }
    .tblock { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
    .tblock > div { border-left: 0; border-top: 1px solid var(--ink); }
    .tblock > div:nth-child(-n+2) { border-top: 0; }
    .tblock > div:nth-child(even) { border-left: 1px solid var(--ink); }
    .pipe-legend { flex-direction: column; gap: 10px; }
    .pipe-legend li { flex: none !important; grid-template-columns: 1fr auto; }
    .pipe-legend .quiet { grid-column: 1 / -1; }
    .trust-list li { flex-direction: column; gap: 4px; }
    .foot-grid { grid-template-columns: 1fr; }
    .register th:nth-child(3), .register td:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Quote: revision triangle and the unsigned box */
.rev-tri { position: relative; display: inline-grid; place-items: center; width: 26px; height: 24px; }
.rev-tri svg { position: absolute; inset: 0; width: 26px; height: 24px; fill: var(--surface); stroke: var(--ink); stroke-width: 1.4; }
.rev-tri span { position: relative; top: 3px; font: 600 11px/1 var(--sans); color: var(--ink); }
.sign-box { margin-top: 20px; padding: 12px 14px; border: 1px dashed var(--dash); display: grid; gap: 2px; }
.sign-box span { font-size: 12.5px; color: var(--muted); }
.sign-box b { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.revs .is-waiting b { color: var(--warn-ink); font-weight: 600; }

/* Job sheet: the issue stamp */
.stamp { margin-top: 10px; display: grid; gap: 1px; padding: 6px 10px; border: 1px solid var(--good-ink); background: var(--surface); color: var(--good-ink); }
.stamp b, .col .job .stamp b { font: 500 11px/1.3 var(--mono); color: var(--good-ink); letter-spacing: .08em; text-transform: uppercase; }
.stamp span { font-size: 12px; }

/* Formats: one framed strip of three views */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1.5px solid var(--ink); background: var(--surface); }
.sview { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--ink); }
.sview:first-child { border-left: 0; }
.sview-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ground); }
.sview-media img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; transition: transform .5s var(--ease-out); }
a.sview-media:hover img { transform: scale(1.015); }
.sview .ann-strip span:first-child { color: var(--ink); }
.sview-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; border-top: 1px solid var(--ink); }
.sview-body h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.sview-body p { margin: 8px 0 18px; font-size: 15px; color: var(--ink-2); }
.sview-body .arrow { text-decoration: none; }
.sview-body .arrow:hover::after { transform: translateX(3px); }
.form-sample { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 24px 28px; }
.fs-step { font-size: 12.5px; color: var(--muted); }
.fs-q { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.fs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fs-chips .opt { cursor: default; }
.fs-chips .opt.is-on { background: var(--plan-select); border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); font-weight: 600; }
.fs-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--muted); }
.fs-total b { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }

/* Short laptop screens: keep the primary action in the first screen */
@media (min-width: 1181px) and (max-height: 820px) {
    .sheet { min-height: 0; height: calc(100svh - var(--header-h) - 28px); }
    .display { font-size: 42px; }
    .tb-head { padding: 16px 32px 14px; }
    .tb-lead { padding: 12px 32px 14px; }
    .tb-lead .lead { font-size: 15.5px; line-height: 1.5; }
    .tb-lead .actions { flex-direction: column; }
    .tb-lead .btn { height: 40px; }
    .schedule { padding: 12px 18px 10px; gap: 6px; }
    .plan { min-height: 120px; }
    .plan-svg { padding: 6px 14px 4px; }
    .rec-rows > div:nth-child(n+5) { display: none; }
    .rec-rows > div { padding: 6px 18px; }
    .rec-head { padding: 9px 16px 9px 18px; }
}
@media (max-width: 960px) {
    .strip { grid-template-columns: minmax(0, 1fr); }
    .sview { border-left: 0; border-top: 1px solid var(--ink); }
    .sview:first-child { border-top: 0; }
}
