/* ============================================================
   DOSSIER — a property drawing set
   ScaanMe next-gen theme · warm paper, two drawing inks, real drawings
   Ground is PAPER. Clay annotates. Blueprint draws.
   Mobile-first · RTL-native (logical properties) · reduced-motion aware
   ============================================================ */

:root {
    /* --- paper --- */
    --paper:    var(--tk-bg, #FBF9F4);
    --paper-2:  #FFFFFF;
    --paper-3:  #F1ECE1;
    --paper-4:  #E7E0D1;

    /* --- one dark sheet, used for the plates only, so the set has rhythm --- */
    --plate:    #151A21;
    --plate-2:  #1D242E;

    /* --- ink --- */
    --ink:      var(--tk-text, #16191F);
    --ink-2:    #575F6E;
    --ink-3:    #8A93A2;
    --ink-on-plate: #F4F1EA;

    /* --- the two drawing inks. clay annotates, blueprint draws. --- */
    --clay:     var(--tk-primary, #B4472A);
    --clay-2:   #D4805F;
    --blue:     var(--tk-secondary, #26456F);
    --blue-2:   #5C7CA8;

    /* --- hairlines, warm not grey --- */
    --rule:     #E2DBCC;
    --rule-2:   #C9BFA9;
    --rule-3:   #A99C80;
    --rule-plate: #303845;

    --grad: linear-gradient(180deg, var(--clay) 0%, color-mix(in srgb, var(--clay) 80%, #6d2612) 100%);

    --font-d: var(--tk-font-header, 'Readex Pro'), 'Alexandria', system-ui, sans-serif;
    --font-b: var(--tk-font-content, 'Alexandria'), 'Readex Pro', system-ui, sans-serif;

    --r: 2px;
    --dock-h: 74px;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --pad: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
    background: var(--paper); color: var(--ink);
    font-family: var(--font-b); font-size: 16px; line-height: 1.75; font-weight: 300;
    -webkit-font-smoothing: antialiased; overflow-x: clip; min-height: 100vh;
    padding-block-end: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.hidden { display: none !important; }
::selection { background: var(--clay); color: #fff; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

/* ---------- the sheet grid, faint, warm ---------- */
.fx { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.fx::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(to right, rgba(60,52,36,.045) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(to bottom, rgba(60,52,36,.045) 0 1px, transparent 1px 44px);
}

/* ============================================================
   VOCABULARY — the drawing-set language
   ============================================================ */

/* a hairline that draws itself out */
.rule { display: block; block-size: 1px; background: var(--rule-2); transform: scaleX(0); transform-origin: inline-start; }
.in-view .rule, .rule.drawn { transform: scaleX(1); transition: transform .8s var(--ease); }

/* dimension line */
.dim { display: flex; align-items: center; gap: 10px; inline-size: 100%; }
.dim-tick { inline-size: 1px; block-size: 15px; background: var(--clay); flex: none; }
.dim-span { block-size: 1px; background: var(--rule-2); flex: 1 1 auto; position: relative; }
.dim-span::after {
    content: ""; position: absolute; inset-inline: 0; inset-block-start: 0;
    block-size: 1px; background: var(--clay); transform: scaleX(0); transform-origin: inline-start;
}
.in-view .dim-span::after { transform: scaleX(1); transition: transform 1s var(--ease) .12s; }

/* corner tick — one corner only */
.notch { position: relative; }
.notch::before, .notch::after {
    content: ""; position: absolute; inset-block-start: -1px; inset-inline-start: -1px; background: var(--clay);
}
.notch::before { inline-size: 20px; block-size: 2px; }
.notch::after  { inline-size: 2px; block-size: 20px; }

/* THE SIGNATURE: a sheet with a title block, like a real drawing sheet */
.sheet {
    background: var(--paper-2); border: 1px solid var(--rule-2);
    position: relative; overflow: hidden;
}
.sheet-body { padding: 22px 18px; }
.sheet-title {
    display: flex; align-items: stretch; border-block-start: 1px solid var(--rule-2);
    background: var(--paper-3); font-family: var(--font-d);
}
.sheet-title > * {
    padding: 9px 12px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--ink-2); display: flex; align-items: center;
}
.sheet-title > * + * { border-inline-start: 1px solid var(--rule-2); }
.sheet-title .st-name { flex: 1 1 auto; font-weight: 600; color: var(--ink); letter-spacing: .04em; text-transform: none; font-size: 12.5px; }
.sheet-title .st-meta { flex: none; unicode-bidi: isolate; }
[dir="rtl"] .sheet-title > * { letter-spacing: 0; }

/* annotation label */
.label {
    font-family: var(--font-d); font-size: 11px; font-weight: 600;
    letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3);
}
[dir="rtl"] .label { letter-spacing: 0; font-size: 12px; }
.label { display: inline-block; max-inline-size: 100%; overflow-wrap: break-word; }

/* every measured value */
.val {
    display: inline-block; max-inline-size: 100%; overflow-wrap: normal; word-break: keep-all;
    font-family: var(--font-d); font-weight: 600; unicode-bidi: isolate;
    font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-d); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.h-xl { font-size: clamp(30px, 8vw, 46px); font-weight: 700; }
.h-lg { font-size: clamp(23px, 6vw, 32px); }
.h-md { font-size: clamp(18px, 4.6vw, 23px); }
.body { color: var(--ink-2); font-size: 15.5px; max-inline-size: 68ch; }

/* ---------- shell ---------- */
.dsr-wrap { max-inline-size: 780px; margin-inline: auto; background: var(--paper); }
.sec { padding: 46px var(--pad); position: relative; }
.sec + .sec { border-block-start: 1px solid var(--rule); }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-block-end: 22px; flex-wrap: wrap; }
.sec-head h2 { flex: 0 1 auto; min-inline-size: 0; }
.sec-head .rule { flex: 1 1 40px; min-inline-size: 24px; }
.sec-head .label { flex: 0 0 auto; }

/* ---------- topbar ---------- */
.topbar {
    display: flex; align-items: center; gap: 12px;
    padding: 11px var(--pad); border-block-end: 1px solid var(--rule-2);
    position: sticky; inset-block-start: 0; z-index: 40;
    background: color-mix(in srgb, var(--paper) 90%, transparent);
    backdrop-filter: blur(14px);
}
.topbar-avatar { inline-size: 30px; block-size: 30px; object-fit: cover; border: 1px solid var(--rule-2); flex: none; }
.topbar-name { font-family: var(--font-d); font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-spacer { flex: 1 1 auto; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-block-end: 30px; overflow: clip; }
.hero-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-4); border-block-end: 1px solid var(--rule-2); }
.hero-media img, .hero-media iframe { inline-size: 100%; block-size: 100%; object-fit: cover; border: 0; }
.hero-ghost {
    position: absolute; inset-block-end: -6%; inset-inline-end: -1%; z-index: 1;
    font-family: var(--font-d); font-weight: 700; font-size: clamp(110px, 38vw, 230px);
    line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--rule-2);
    opacity: .8; pointer-events: none; unicode-bidi: isolate;
}
.hero-body { position: relative; z-index: 2; padding: 26px var(--pad) 0; }
.hero-measure { display: flex; align-items: flex-end; gap: 14px; }
.hero-figure {
    font-family: var(--font-d); font-weight: 700; font-size: clamp(62px, 20vw, 104px);
    line-height: .84; letter-spacing: -.055em; color: var(--ink);
    unicode-bidi: isolate; font-variant-numeric: tabular-nums;
}
.hero-unit {
    font-family: var(--font-d); font-weight: 600; font-size: 15px; color: #fff;
    background: var(--clay); padding: 3px 9px; margin-block-end: 14px; unicode-bidi: isolate;
}
.hero-dim { margin-block: 14px 20px; }
.hero-title { margin-block-end: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 18px; }
.hero-chip {
    font-family: var(--font-d); font-size: 12px; font-weight: 500;
    padding: 6px 11px; border: 1px solid var(--rule-2); color: var(--ink-2);
    background: var(--paper-2); unicode-bidi: isolate;
}
.hero-chip.on { color: var(--clay); border-color: var(--clay); background: color-mix(in srgb, var(--clay) 7%, var(--paper-2)); }

/* ============================================================
   DRAWINGS — inline svg, blueprint ink on paper
   ============================================================ */
.draw { inline-size: 100%; block-size: auto; display: block; }
.draw .d-line   { stroke: var(--blue); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.draw .d-faint  { stroke: var(--rule-2); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.draw .d-fill   { fill: var(--paper-3); }
.draw .d-fill-2 { fill: var(--paper-4); }
.draw .d-mark   { fill: var(--clay); }
.draw .d-mark-l { stroke: var(--clay); stroke-width: 1.5; fill: none; vector-effect: non-scaling-stroke; }
.draw .d-txt    { font-family: var(--font-d); font-size: 11px; font-weight: 500; fill: var(--ink-2); }
.draw .d-txt-s  { font-family: var(--font-d); font-size: 9.5px; font-weight: 500; fill: var(--ink-3); }
.draw .d-txt-m  { font-family: var(--font-d); font-size: 12px; font-weight: 700; fill: var(--clay); }
.draw .d-num    { font-family: var(--font-d); font-size: 11px; font-weight: 600; fill: var(--ink); font-variant-numeric: tabular-nums; }
.draw .d-dash   { stroke: var(--blue-2); stroke-width: 1; stroke-dasharray: 3 3; fill: none; vector-effect: non-scaling-stroke; }
/* the draw-on reveal.
   The stroked classes carry vector-effect:non-scaling-stroke, so the browser measures the dash
   pattern in RENDERED pixels while --len is authored in user units. At the sheet's real width the
   scale runs to about 1.8, which would leave roughly half of every stroke permanently undrawn.
   Multiplying by 3 makes the dash longer than any path at any scale we render at, so the whole
   path is a single "on" dash and the offset hides it completely before it draws. The same
   multiplier also fixes multi-subpath paths, where the pattern runs on across the M and would
   otherwise leave the second subpath inside the "off" run. */
.draw .d-anim { stroke-dasharray: calc(var(--len, 1200) * 3); stroke-dashoffset: calc(var(--len, 1200) * 3); }
.in-view .draw .d-anim { stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s var(--ease); }
.draw .d-pop { opacity: 0; }
.in-view .draw .d-pop { opacity: 1; transition: opacity .7s var(--ease) .5s; }

/* the highlighted storey in the section drawing */
.draw .d-storey     { fill: var(--paper-2); }
.draw .d-storey-on  { fill: color-mix(in srgb, var(--clay) 12%, var(--paper-2)); }

/* ============================================================
   SPEC SHEET
   ============================================================ */
.spec { border-block-start: 1px solid var(--rule); }
.spec-row { display: flex; align-items: baseline; gap: 14px; padding: 13px 0; border-block-end: 1px solid var(--rule); }
.spec-k { flex: 0 1 40%; min-inline-size: 0; color: var(--ink-3); font-size: 14px; overflow-wrap: break-word; }
.spec-v { flex: 1 1 auto; min-inline-size: 0; text-align: end; font-size: 15px; color: var(--ink); overflow-wrap: break-word; }
.spec-v .val { font-size: 15.5px; }

/* ---------- questions on the file ---------- */
.qa { margin: 0; }
.qa-row { padding-block: 16px; border-block-end: 1px solid var(--rule); }
.qa-row:first-child { padding-block-start: 0; }
.qa-row:last-child { border-block-end: 0; padding-block-end: 0; }
.qa-q {
    font-family: var(--font-d); font-weight: 600; font-size: 16px; color: var(--ink);
    margin: 0 0 7px; padding-inline-start: 16px; position: relative; line-height: 1.45;
}
.qa-q::before {
    content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .55em;
    inline-size: 8px; block-size: 2px; background: var(--clay);
}
.qa-a { margin: 0; padding-inline-start: 16px; color: var(--ink-2); font-size: 15px; max-inline-size: 68ch; }

/* ============================================================
   LEDGER
   ============================================================ */
.ledger-row { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-block-end: 1px solid var(--rule); }
.ledger-row:last-of-type { border-block-end: 0; }
.ledger-k { flex: 1 1 auto; min-inline-size: 0; color: var(--ink-2); font-size: 14.5px; overflow-wrap: break-word; }
.ledger-v { flex: 0 1 auto; min-inline-size: 0; font-size: 17px; color: var(--ink); overflow-wrap: break-word; }
.ledger-total { margin-block-start: 6px; padding-block-start: 15px; border-block-start: 2px solid var(--clay); }
.ledger-total .ledger-k { color: var(--ink); font-weight: 500; }
.ledger-total .ledger-v { font-size: 24px; color: var(--clay); }
.ledger-note { margin-block-start: 14px; font-size: 13px; color: var(--ink-3); line-height: 1.65; }

.price-block { padding: 24px 20px; border: 1px solid var(--rule-2); background: var(--paper-2); }
.price-fig { font-family: var(--font-d); font-weight: 700; font-size: clamp(32px, 9.5vw, 46px); line-height: 1.05; letter-spacing: -.035em; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.price-per { margin-block-start: 10px; font-family: var(--font-d); font-weight: 600; font-size: 14.5px; color: var(--clay); unicode-bidi: isolate; }

/* ============================================================
   PLATES — the one dark passage, for the renders
   ============================================================ */
.plates { background: var(--plate); color: var(--ink-on-plate); border-block: 1px solid var(--rule-plate); }
.plates .sec-head h2, .plates h2, .plates h3 { color: var(--ink-on-plate); }
.plates .label { color: #8E9AAC; }
.plates .rule { background: var(--rule-plate); }
.plate-cap { margin-block-start: 10px; font-size: 13px; color: #97A2B3; line-height: 1.6; }

/* ============================================================
   THE PLATE VIEWER — one plate at a time, edge to edge.
   A rail of small cards reads cheap on a document at this price, so each plate
   fills the sheet and the strip breaks out of the section padding entirely.
   ============================================================ */
.plate-strip {
    display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    /* break out of .sec's inline padding so a plate runs to both edges */
    margin-inline: calc(var(--pad) * -1); padding-inline: 0;
}
.plate-strip::-webkit-scrollbar { display: none; }
.plate { flex: 0 0 100%; scroll-snap-align: center; margin: 0; }
.plate-frame {
    position: relative; display: block; inline-size: 100%; padding: 0; border: 0;
    aspect-ratio: 3 / 2; background: var(--plate-2); overflow: hidden; cursor: zoom-in;
}
.plate-frame img, .plate-frame iframe {
    inline-size: 100%; block-size: 100%; object-fit: cover; border: 0; display: block;
}
.plate-frame iframe { cursor: auto; }
.plate-tag {
    position: absolute; inset-block-end: 0; inset-inline-start: 0;
    padding: 7px 12px; background: var(--plate); color: var(--ink-on-plate);
    font-family: var(--font-d); font-size: 11px; font-weight: 600; letter-spacing: .08em;
    text-transform: uppercase; border-block-start: 2px solid var(--clay);
}
[dir="rtl"] .plate-tag { letter-spacing: 0; text-transform: none; font-size: 12px; }
.plate-bar {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    margin-block-start: 16px; padding-inline: 0;
}
.plate-bar .plate-cap { flex: 1 1 200px; min-inline-size: 0; margin: 0; }
.plate-nav { flex: none; display: flex; gap: 8px; }

/* ---------- floor plan viewer ---------- */
.plan { position: relative; background: var(--paper-2); border: 1px solid var(--rule-2); overflow: hidden; cursor: zoom-in; display: block; inline-size: 100%; }
.plan img { inline-size: 100%; block-size: auto; }
.plan-locator { position: absolute; inline-size: 34px; block-size: 34px; border: 2px solid var(--clay); border-radius: 50%; pointer-events: none; }
.plan-locator::after { content: ""; position: absolute; inset: -8px; border: 1px solid var(--clay); border-radius: 50%; opacity: 0; animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.7); opacity: .9 } 70%, 100% { transform: scale(1.4); opacity: 0 } }
.plan-cap { display: flex; align-items: center; gap: 10px; margin-block-start: 10px; flex-wrap: wrap; }
.plan-zoom { position: fixed; inset: 0; z-index: 200; background: rgba(20,17,12,.96); display: grid; place-items: center; padding: 16px; overflow: auto; }
.plan-zoom img { inline-size: 100%; max-inline-size: 1100px; background: var(--paper-2); }
.plan-zoom-x { position: fixed; inset-block-start: 14px; inset-inline-end: 14px; inline-size: 42px; block-size: 42px; display: grid; place-items: center; border: 1px solid var(--rule-3); background: var(--paper-2); color: var(--ink); font-size: 18px; }

/* ============================================================
   RAILS
   ============================================================ */
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block-end: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: 0 0 auto; }
.rail-img { inline-size: 80vw; max-inline-size: 340px; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--rule-plate); }
.rail-nav { display: flex; justify-content: center; gap: 8px; margin-block-start: 14px; }
.rail-btn { inline-size: 38px; block-size: 38px; display: grid; place-items: center; border: 1px solid var(--rule-2); color: var(--ink-2); }
.plates .rail-btn { border-color: var(--rule-plate); color: #97A2B3; }
.rail-btn:hover { color: var(--clay); border-color: var(--clay); }

.quote { inline-size: 80vw; max-inline-size: 340px; padding: 18px 16px; border: 1px solid var(--rule-2); background: var(--paper-2); }
.quote-txt { font-size: 15px; color: var(--ink-2); }
.quote-who { margin-block-start: 12px; font-family: var(--font-d); font-size: 12px; font-weight: 600; color: var(--clay); }

/* ============================================================
   FORMS / BUTTONS / ALERTS
   ============================================================ */
.f-input, textarea.f-input, select.f-input {
    inline-size: 100%; padding: 13px 14px; padding-inline-end: 38px;
    background: var(--paper-2); border: 1px solid var(--rule-2); border-radius: var(--r);
    color: var(--ink); font-family: var(--font-b); font-size: 15px;
}
.f-input::placeholder { color: var(--ink-3); }
.f-input:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px color-mix(in srgb, var(--clay) 12%, transparent); }
textarea.f-input { padding-inline-end: 14px; min-block-size: 110px; resize: vertical; }
.f-row { display: grid; gap: 12px; }
.f-lab { display: block; margin-block-end: 6px; font-family: var(--font-d); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
[dir="rtl"] .f-lab { letter-spacing: 0; font-size: 12px; text-transform: none; }

.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 22px; background: var(--grad); color: #fff; border-radius: var(--r);
    font-family: var(--font-d); font-weight: 600; font-size: 15px;
    box-shadow: 0 4px 14px -6px rgb(from var(--clay) r g b / .75);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 9px 22px -8px rgb(from var(--clay) r g b / .9); }
.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 18px; border: 1px solid var(--rule-2); color: var(--ink); background: var(--paper-2);
    border-radius: var(--r); font-family: var(--font-d); font-weight: 600; font-size: 15px;
    transition: border-color .25s var(--ease), color .25s var(--ease);
}
.btn-ghost:hover { border-color: var(--clay); color: var(--clay); }
.plates .btn-ghost { background: transparent; border-color: var(--rule-plate); color: var(--ink-on-plate); }
.btn-stack { display: grid; gap: 10px; margin-block-start: 20px; }

.alert-box { padding: 12px 14px; border-radius: var(--r); font-size: 14px; border: 1px solid; }
.alert-error { color: #8a2d16; border-color: #e0b3a4; background: #fbeee9; }
.alert-success { color: #1d5c34; border-color: #a8d3ba; background: #eef7f1; }

.toast {
    position: fixed; inset-block-end: calc(var(--dock-h) + 18px); inset-inline: 16px;
    margin-inline: auto; max-inline-size: 420px; z-index: 300;
    padding: 13px 16px; border: 1px solid var(--rule-3); background: var(--paper-2);
    color: var(--ink); font-size: 14.5px; text-align: center; box-shadow: 0 12px 30px -14px rgba(40,30,15,.5);
}
.toast.ok { border-color: #a8d3ba; } .toast.err { border-color: #e0b3a4; }

.icon-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.icon-row a, .icon-row button {
    flex: 0 0 auto; inline-size: 46px; block-size: 46px; display: grid; place-items: center;
    border: 1px solid var(--rule-2); background: var(--paper-2); color: var(--ink-2); font-size: 17px;
    transition: color .25s var(--ease), border-color .25s var(--ease);
}
.icon-row a:hover, .icon-row button:hover { color: var(--clay); border-color: var(--clay); }
.plates .icon-row a, .plates .icon-row button { background: transparent; border-color: var(--rule-plate); color: #97A2B3; }

/* ============================================================
   DOCK
   ============================================================ */
.dock {
    position: fixed; inset-block-end: 0; inset-inline: 0; z-index: 90;
    block-size: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
    padding-block-end: env(safe-area-inset-bottom, 0px);
    display: flex; align-items: center; gap: 8px; padding-inline: 12px;
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: blur(16px); border-block-start: 1px solid var(--rule-2);
}
.dock-btn { flex: 1 1 0; display: grid; place-items: center; gap: 3px; padding: 8px 4px; color: var(--ink-3); }
.dock-btn i { font-size: 17px; }
.dock-btn span { font-family: var(--font-d); font-size: 10.5px; font-weight: 500; }
.dock-btn.main { flex: 1.5 1 0; background: var(--grad); color: #fff; padding-block: 11px; border-radius: var(--r); }
.dock-menu {
    position: absolute; inset-block-end: calc(100% + 8px); inset-inline-end: 12px;
    min-inline-size: 200px; max-inline-size: calc(100vw - 24px);
    background: var(--paper-2); border: 1px solid var(--rule-2); padding: 6px;
    box-shadow: 0 14px 34px -16px rgba(40,30,15,.5);
}
.dock-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 14px; color: var(--ink-2); }
.dock-menu a:hover { color: var(--clay); }

/* ============================================================
   MODALS
   ============================================================ */
.pm-overlay {
    position: fixed; inset: 0; z-index: 220; display: grid; place-items: center;
    padding: 16px; background: rgba(30,24,14,.55); backdrop-filter: blur(6px); overflow-y: auto;
}
.pm-overlay.hidden { display: none; }
.pm-box {
    position: relative; inline-size: 100%; max-inline-size: 440px;
    background: var(--paper-2); border: 1px solid var(--rule-2); padding: 26px 20px;
    box-shadow: 0 30px 70px -28px rgba(40,30,15,.7);
}
.pm-x, .pm-close {
    position: absolute; inset-block-start: 8px; inset-inline-end: 8px;
    inline-size: 38px; block-size: 38px; display: grid; place-items: center;
    color: var(--ink-3); font-size: 17px;
}
.pm-x:hover, .pm-close:hover { color: var(--clay); }
.pm-title { font-family: var(--font-d); font-size: 21px; font-weight: 700; }
.pm-sub { margin-block-start: 6px; color: var(--ink-2); font-size: 14.5px; }
.pm-body { margin-block-start: 18px; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { padding: 34px var(--pad) 30px; border-block-start: 1px solid var(--rule); text-align: center; }
.foot-brand { margin-block-start: 16px; font-size: 12.5px; color: var(--ink-3); }
.foot-brand a { color: var(--ink-2); }

.rv { opacity: 0; transition: opacity .6s var(--ease); }
.rv.in-view { opacity: 1; }

/* ============================================================
   >= 760px
   ============================================================ */
@media (min-width: 760px) {
    :root { --pad: 38px; }
    .sec { padding: 64px var(--pad); }
    .hero-media { aspect-ratio: 21 / 9; }
    .f-row.two { grid-template-columns: 1fr 1fr; }
    .btn-stack { grid-auto-flow: column; justify-content: start; }
    .spec-k { flex-basis: 32%; }
    .rail-img { inline-size: 340px; }
    .dsr-wrap { border-inline: 1px solid var(--rule); }
}

/* ============================================================
   reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .rule, .dim-span::after { transform: scaleX(1) !important; }
    .rv { opacity: 1 !important; }
    .draw .d-anim { stroke-dashoffset: 0 !important; }
    .draw .d-pop { opacity: 1 !important; }
    .plan-locator::after { display: none; }
}

/* ============================================================
   Shared review-form partial — it ships its own blue chrome.
   Scope it into the drawing set without touching the shared file.
   ============================================================ */
#scaanReviewForm button, .scaan-review button, button[id^="scaanReview"],
#scaanReviewToggle, .scaan-review-toggle {
    background: var(--grad) !important; color: #fff !important;
    border: 0 !important; border-radius: var(--r) !important;
    font-family: var(--font-d) !important; font-weight: 600 !important;
    box-shadow: 0 4px 14px -6px rgb(from var(--clay) r g b / .75) !important;
}
#scaanReviewForm input, #scaanReviewForm textarea, #scaanReviewForm select,
.scaan-review input, .scaan-review textarea, .scaan-review select {
    background: var(--paper-2) !important; border: 1px solid var(--rule-2) !important;
    border-radius: var(--r) !important; color: var(--ink) !important;
    font-family: var(--font-b) !important;
}
#scaanReviewForm a, .scaan-review a { color: var(--clay) !important; }
