/*!
 * xaracho.am — styles. Plain CSS, no build step. Everything is scoped under .xr (the page root).
 * Brand tokens are the custom properties on .xr below (--or = safety orange, the only accent).
 * States are driven by js/main.js through attributes on the root and the stages:
 *   [data-live]  sticky scroll stages on (off: reduced motion, viewport height < 420 or > 1700)
 *   [data-boot]  transitions off during first paint
 *   .st[data-b~="N"] .pc[data-s="N"]   scaffold piece N is assembled
 *   --pb / --sp        build progress / page progress (tape under the header)
 * Breakpoints: 1099px (single column, mobile build cards) · 960px (calculator stacks)
 *              900px (nav hidden) · 760px (phone: sticky call bar, lighter animation).
 */
html { scroll-behavior: smooth; }
body { margin: 0; background: #15181B; }

.xr {
  --or: #FF6B1A;
  --gr: #15181B;
  --gr2: #1C2024;
  --gr3: #2A2F34;
  --cn: #E4E2DC;
  --cn1: #EFEEE9;
  --ink: #15181B;
  --st: #B7BEC5;
  --md: #9AA1A8;
  --ml: #55595D;
  --hdr: 64px;
  --pad: clamp(20px, 4.4vw, 72px);
  position: relative;
  font-family: 'Noto Sans Armenian', 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #ECEEEF;
  background: var(--gr);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.xr *, .xr *::before, .xr *::after { box-sizing: border-box; }
.xr[data-boot] *, .xr[data-boot] *::before, .xr[data-boot] *::after { transition: none !important; }
.xr h1, .xr h2, .xr h3, .xr p, .xr figure { margin: 0; }
.xr a { color: inherit; }
.xr section[id] { scroll-margin-top: var(--hdr); }
.xr a:focus-visible, .xr button:focus-visible, .xr [tabindex]:focus-visible { outline: 3px solid #F2F3F3; outline-offset: 3px; }
.sec-l a:focus-visible, .sec-l button:focus-visible { outline-color: var(--ink); }
.cpanel a:focus-visible, .cpanel button:focus-visible { outline-color: #F2F3F3; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.mono { font-family: 'IBM Plex Mono', 'Noto Sans Armenian', ui-monospace, monospace; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }

.grid-d {
  background-color: var(--gr);
  background-image:
    linear-gradient(rgba(183, 190, 197, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 190, 197, .075) 1px, transparent 1px),
    linear-gradient(rgba(183, 190, 197, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 190, 197, .035) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
}
.grid-l {
  background-color: var(--cn);
  background-image:
    linear-gradient(rgba(21, 24, 27, .085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 24, 27, .085) 1px, transparent 1px),
    linear-gradient(rgba(21, 24, 27, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 24, 27, .04) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
}

/* ---------- type */
.eb {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1.2 'IBM Plex Mono', 'Noto Sans Armenian', monospace;
  letter-spacing: .14em; text-transform: uppercase; color: var(--md);
}
.eb::before { content: ''; width: 10px; height: 10px; flex: none; background: var(--or); }
.sec-l .eb { color: var(--ml); }
.dsp { font-family: 'Noto Sans Armenian', sans-serif; font-stretch: 62.5%; font-weight: 800; line-height: .92; letter-spacing: 0; }
.stc {
  --tc: #F2F3F3;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to bottom, var(--tc) 0 61%, transparent 61% 65.5%, var(--tc) 65.5% 100%);
  background-size: 100% .92em;
  background-repeat: repeat-y;
  -webkit-background-clip: text;
  background-clip: text;
  /* The text fill only paints inside the box, so give descenders (ր, ք, բ, յ…) and tall capitals room
     outside the line boxes; negative margins keep the layout unchanged, and content-box origin keeps
     the stencil band aligned to each line. */
  background-origin: content-box;
  padding: .1em 0 .3em;
}
.xr .stc { margin: -.1em 0 -.3em; }
.sec-l .stc { --tc: var(--ink); }
.h1 { font-size: clamp(60px, 7.4vw, 124px); }
.h2 { font-size: clamp(42px, 5.2vw, 84px); }
.lead { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: #C9CED2; max-width: 620px; text-wrap: pretty; }
.sec-l .lead { color: #3E4246; }
.ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- logo mark */
.xm { display: inline-block; overflow: visible; }
.xm-b { stroke: currentColor; stroke-width: 6.4; }
.xm-h { stroke: rgba(255, 255, 255, .38); stroke-width: 1.1; stroke-linecap: round; }
.xm-t { fill: currentColor; fill-rule: evenodd; }
.xm-c { fill: var(--or); }
.xm-bt { fill: #15181B; }
.logo { display: inline-flex; align-items: center; flex: none; height: 44px; text-decoration: none; }
.logo .lg { height: 30px; width: auto; }
.logo:hover .lg-m { rotate: 90deg; }

/* ---------- buttons: press like a clamp tightening */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 24px 0 20px; border: 0; border-radius: 3px;
  font: 700 16px/1.15 'Noto Sans Armenian', sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .16s cubic-bezier(.3, 1.6, .5, 1), filter .2s, box-shadow .2s;
}
.btn::before, .btn::after {
  content: ''; position: absolute; top: 50%; width: 4px; height: 20px; margin-top: -10px; border-radius: 1px;
  background: currentColor; opacity: .28; transition: translate .16s cubic-bezier(.3, 1.6, .5, 1);
}
.btn::before { left: 6px; }
.btn::after { right: 6px; }
.btn:hover::before { translate: 1px 0; }
.btn:hover::after { translate: -1px 0; }
.btn:active { transform: scale(.965, .93); }
.btn:active::before { translate: 4px 0; }
.btn:active::after { translate: -4px 0; }
.btn .ic { width: 20px; height: 20px; flex: none; }
.bolt { position: relative; width: 18px; height: 18px; flex: none; border-radius: 50%; background: currentColor; transition: rotate .35s cubic-bezier(.3, 1.5, .5, 1); }
.bolt::after { content: ''; position: absolute; left: 3px; right: 3px; top: 50%; height: 2px; margin-top: -1px; background: var(--bslot, var(--or)); }
.btn:hover .bolt { rotate: 90deg; }
.btn:active .bolt { rotate: 180deg; }
.btn-or { background: var(--or); color: #15181B; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); --bslot: var(--or); }
.btn-or:hover { filter: brightness(1.07); }
.btn-gh { background: transparent; color: #F2F3F3; box-shadow: inset 0 0 0 1.5px rgba(241, 242, 242, .45); --bslot: var(--gr); }
.btn-gh:hover { box-shadow: inset 0 0 0 1.5px #F2F3F3; }
.btn-dk { background: #2A2F34; color: #F2F3F3; box-shadow: inset 0 0 0 1px rgba(183, 190, 197, .35); --bslot: #2A2F34; }
.btn-dk:hover { box-shadow: inset 0 0 0 1.5px var(--or); }
.btn-lg { min-height: 60px; font-size: 17px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header */
.hd {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--hdr);
  display: flex; align-items: center; gap: clamp(12px, 2.4vw, 40px); padding: 0 var(--pad);
  background: #15181B; border-bottom: 1px solid rgba(183, 190, 197, .14);
}
/* iPhone Safari draws page content behind its see-through top bar. A solid header lets Safari tint that
   area with the header colour, and this strip covers anything above the header in browsers that don't. */
.hd::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 240px; background: #15181B; pointer-events: none; }
.nv { display: flex; gap: clamp(14px, 2vw, 32px); margin-left: auto; }
.nv a { position: relative; padding: 10px 2px; font-size: 15px; font-weight: 600; color: #C9CED2; text-decoration: none; }
.nv a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--or); scale: 0 1; transform-origin: 0 50%; transition: scale .25s; }
.nv a:hover { color: #FFFFFF; }
.nv a:hover::after { scale: 1 1; }
.hd-call { min-height: 44px; padding: 0 18px 0 14px; font-size: 15px; }
.hd-calc { display: none; }
.tape { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: repeating-linear-gradient(90deg, rgba(183, 190, 197, .3) 0 1px, transparent 1px 12px); }
.tape i { position: absolute; inset: 0; background: var(--or); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }

/* ---------- scroll tracks + sticky stages */
.trk { position: relative; }
.st { position: relative; overflow: hidden; }
.xr[data-live] .st { position: sticky; top: 0; height: 100vh; height: var(--vh, 100svh); min-height: 0; }
/* pinned scroll distance per stage: short enough that a fast swipe passes in one or two flicks,
   long enough that slow scrolling still builds the scaffold step by step (build ≈ 26px per step) */
.xr[data-live] .trk-a { height: calc(100vh + 560px); height: calc(var(--vh, 100svh) + 560px); }
/* after the build has played once the stage is an ordinary section (no pinned dead zone) */
.xr[data-live] .trk-a[data-collapsed] { height: auto; }
.st-a[data-done] .hint { visibility: hidden; }

/* ---------- stage A: hero + the build */
.st-a {
  height: 900px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  column-gap: clamp(24px, 3.4vw, 64px); align-items: center;
  padding: calc(var(--hdr) + 28px) var(--pad) 36px;
}
.hero { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; transition: opacity .35s, translate .35s; }
.hero-sub { margin-top: -10px; font-family: 'Noto Sans Armenian', sans-serif; font-stretch: 75%; font-weight: 700; font-size: clamp(24px, 2.5vw, 40px); line-height: 1.1; color: #DADDE0; }
.hero-sub::before { content: ''; display: inline-block; width: .55em; height: 4px; margin: 0 .35em .28em 0; background: var(--or); vertical-align: middle; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 20px; color: #C9CED2; }
.price b { font-family: 'Noto Sans Armenian', sans-serif; font-stretch: 75%; font-weight: 800; font-size: 40px; line-height: 1; color: var(--or); }
.price-u { font-weight: 600; color: #ECEEEF; }
.hint { display: flex; align-items: center; gap: 12px; font: 500 13px/1.3 'IBM Plex Mono', 'Noto Sans Armenian', monospace; letter-spacing: .04em; color: var(--md); transition: opacity .3s; }
.hint-c { width: 46px; height: 46px; flex: none; }
.hint .hint-a { width: 18px; height: 18px; color: var(--or); animation: xr-bob 1.6s ease-in-out infinite; }
.hc-pipe { fill: #8E979F; }
.hc-jaw { fill: var(--or); }
.hc-ln { stroke: rgba(21, 24, 27, .45); stroke-width: 1.2; }
.hc-nut { fill: #2A2F34; stroke: #15181B; stroke-width: 1; }
.hc-slot { stroke: var(--or); stroke-width: 1.6; }
.hc-bolt { transform-box: fill-box; transform-origin: 50% 50%; animation: xr-turn 2.6s ease-in-out infinite; }
.xr[data-live] .st-a[data-b~="1"] .hint { opacity: 0; }

.fig-a { min-width: 0; }
.fig { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 19vw, 290px); column-gap: 26px; }
.bsvg { display: block; width: 100%; height: auto; overflow: visible; }
.xr[data-live] .fig > .bsvg { max-height: calc(100vh - var(--hdr) - 170px); max-height: calc(var(--vh, 100svh) - var(--hdr) - 170px); }
.bn-col { position: relative; }
.bn {
  position: absolute; left: 0; right: 0; transform: translateY(-50%);
  padding: 12px 14px 13px 16px; border-radius: 3px;
  background: rgba(27, 31, 35, .94); border: 1px solid rgba(183, 190, 197, .22);
  opacity: 0; translate: 28px 0;
  transition: opacity .3s .12s, translate .55s .12s cubic-bezier(.3, 1.45, .5, 1);
}
.bn::before { content: ''; position: absolute; right: 100%; top: 50%; width: 26px; height: 1px; background: repeating-linear-gradient(90deg, var(--or) 0 4px, transparent 4px 7px); }
.bn-f0 { top: 87%; }
.bn-f1 { top: 62%; }
.bn-f2 { top: 37%; }
.bn-f3 { top: 12%; }
.bn-wait { display: none; }
.bn-tag { display: flex; align-items: center; gap: 8px; font: 600 11px/1.2 'IBM Plex Mono', 'Noto Sans Armenian', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--md); }
.bn-ic { width: 22px; height: 22px; flex: none; color: var(--or); }
.bn-n { color: var(--or); }
.bn-t { margin-top: 5px; font-size: 17px; font-weight: 700; line-height: 1.2; color: #F2F3F3; }
.bn-d { margin-top: 3px; font-size: 13px; line-height: 1.4; color: #BAC0C5; }
.st[data-b~="4"] .bn[data-s="4"],
.st[data-b~="8"] .bn[data-s="8"],
.st[data-b~="12"] .bn[data-s="12"],
.st[data-b~="16"] .bn[data-s="16"] { opacity: 1; translate: 0 0; }
.fcap { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font: 500 12px/1.3 'IBM Plex Mono', 'Noto Sans Armenian', monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--md); }
.rd::after { content: attr(data-v); color: #E9ECEE; }
.prog { position: relative; height: 4px; margin-top: 10px; background: repeating-linear-gradient(90deg, rgba(183, 190, 197, .45) 0 1px, transparent 1px 100%); background-size: calc(100% / 18) 100%; }
.prog::after { content: ''; position: absolute; inset: 0; background: var(--or); transform-origin: 0 50%; transform: scaleX(var(--pb, 1)); }

/* blueprint drawing */
.bp { fill: none; stroke: rgba(183, 190, 197, .55); stroke-width: 1.2; }
.bp-t { fill: none; stroke: rgba(183, 190, 197, .3); stroke-width: 1; }
.bp-d { fill: none; stroke: rgba(183, 190, 197, .35); stroke-width: 1; stroke-dasharray: 8 5; }
.bp-ax { stroke: rgba(183, 190, 197, .16); stroke-width: 1; stroke-dasharray: 14 4 3 4; }
.bp-bub { fill: #15181B; stroke: rgba(183, 190, 197, .5); stroke-width: 1.2; }
.bp-bt { font: 600 11px 'IBM Plex Mono', monospace; fill: #C9CED2; text-anchor: middle; }
.bp-gnd { stroke: #9AA1A8; stroke-width: 2; }
.bp-hat { fill: none; stroke: rgba(154, 161, 168, .4); stroke-width: 1; }
.bp-lv { fill: #9AA1A8; }

/* real material: galvanised steel + safety orange */
.m-pole { stroke: #C3CAD0; stroke-width: 5; }
.m-led { stroke: #AEB6BD; stroke-width: 4.5; }
.m-hr { stroke: #C3CAD0; stroke-width: 4; }
.m-plank { fill: #8D969E; stroke: #5D656C; stroke-width: 1; }
.m-perf { stroke: #3A4147; stroke-width: 3; stroke-dasharray: 7 5; }
.m-clamp { fill: var(--or); stroke: #15181B; stroke-width: 1; }
.m-jack { stroke: #9AA3AB; stroke-width: 3.5; }
.m-nut { fill: var(--or); }
.m-plate { fill: #8D969E; }
.m-post { stroke: #C3CAD0; stroke-width: 4; }
.m-rail { stroke: #AEB6BD; stroke-width: 3.5; }
.m-toe { fill: #8D969E; }
.m-dim { stroke: rgba(241, 242, 242, .7); stroke-width: 1; }
.m-ext { stroke: rgba(241, 242, 242, .3); stroke-width: 1; }
.m-tk { stroke: #F2F3F3; stroke-width: 1.4; }
.m-dt { font: 500 12.5px 'IBM Plex Mono', 'Noto Sans Armenian', monospace; fill: #F2F3F3; text-anchor: middle; }
.m-dt.e { text-anchor: end; }
.m-dt.s { text-anchor: start; }
.m-lv { fill: var(--st); }
.m-ld { fill: none; stroke: var(--or); stroke-width: 1.3; stroke-dasharray: 4 4; }
.m-ldd { fill: var(--or); }

/* piece states: off by default, on when its step is in the stage's data-b list */
.pc {
  transform-box: fill-box; transform-origin: 50% 50%; opacity: 0;
  transition: opacity .2s linear, translate .5s cubic-bezier(.3, 1.55, .55, 1), scale .5s cubic-bezier(.3, 1.55, .55, 1), rotate .5s cubic-bezier(.3, 1.55, .55, 1);
}
.pc.k1 { transition-delay: 50ms; }
.pc.k2 { transition-delay: 100ms; }
.pc.k3 { transition-delay: 150ms; }
.pc-b { translate: 0 14px; transform-origin: 50% 100%; }
.pc-p { scale: 1 0; transform-origin: 50% 100%; }
.pc-l { scale: 0 1; transform-origin: 0 50%; }
.pc-c { scale: 2.4; rotate: -90deg; }
.pc-h { translate: -90px 0; }
.pc-k { translate: 80px 0; }
.pc-g { translate: 0 -26px; }
.dm { transition: opacity .45s linear .12s; }
.st[data-b~="0"] .pc[data-s="0"],
.st[data-b~="1"] .pc[data-s="1"],
.st[data-b~="2"] .pc[data-s="2"],
.st[data-b~="3"] .pc[data-s="3"],
.st[data-b~="4"] .pc[data-s="4"],
.st[data-b~="5"] .pc[data-s="5"],
.st[data-b~="6"] .pc[data-s="6"],
.st[data-b~="7"] .pc[data-s="7"],
.st[data-b~="8"] .pc[data-s="8"],
.st[data-b~="9"] .pc[data-s="9"],
.st[data-b~="10"] .pc[data-s="10"],
.st[data-b~="11"] .pc[data-s="11"],
.st[data-b~="12"] .pc[data-s="12"],
.st[data-b~="13"] .pc[data-s="13"],
.st[data-b~="14"] .pc[data-s="14"],
.st[data-b~="15"] .pc[data-s="15"],
.st[data-b~="16"] .pc[data-s="16"],
.st[data-b~="17"] .pc[data-s="17"] { opacity: 1; translate: 0 0; scale: 1; rotate: 0deg; }
.pc[data-wob] { animation: xr-wob .72s cubic-bezier(.3, .7, .4, 1); }

.haz { height: 14px; background: repeating-linear-gradient(-45deg, var(--or) 0 14px, #15181B 14px 28px); }

/* ---------- sections */
.sec { position: relative; padding: clamp(48px, 6vw, 88px) 0; }
/* two light sections in a row (price list → calculator) read as one block: no double gap */
.sec-l + .sec-l { padding-top: clamp(8px, 1.5vw, 24px); }
.sec-l { color: var(--ink); }
.sec-h { display: grid; gap: 18px; justify-items: start; max-width: 800px; }

/* ---------- price list: exploded drawings */
.pgrid { margin-top: clamp(24px, 3vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); }
@media (min-width: 700px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .part:last-child { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .pgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .part { grid-column: span 2; } .part-w, .part-w:last-child { grid-column: span 3; } }
.part { display: flex; flex-direction: column; background: var(--cn1); border: 1.5px solid var(--ink); }
.part-fig { margin: 10px 10px 0; border: 1px solid rgba(21, 24, 27, .3); background-image: linear-gradient(rgba(21, 24, 27, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 24, 27, .05) 1px, transparent 1px); background-size: 12px 12px; }
.pv { display: block; width: 100%; height: auto; overflow: visible; }
.pv .o { fill: #D3D8DC; stroke: #1D2024; stroke-width: 1.6; stroke-linejoin: round; }
.pv .ln { fill: none; stroke: #1D2024; stroke-width: 1.6; stroke-linecap: round; }
.pv .thin { fill: none; stroke: #1D2024; stroke-width: .9; }
.pv .a { fill: var(--or); stroke: #1D2024; stroke-width: 1.4; stroke-linejoin: round; }
.pv .dk { fill: #2B3035; stroke: #1D2024; stroke-width: 1.4; }
.pv .hole { fill: var(--cn1); stroke: #1D2024; stroke-width: 1.2; }
.pv .ring { fill: none; stroke: #1D2024; stroke-width: 3.4; }
.pv .cl { fill: none; stroke: #1D2024; stroke-width: .8; stroke-dasharray: 10 3 2 3; opacity: .5; }
.pv .tube-o { stroke: #1D2024; stroke-width: 12; }
.pv .tube-i { stroke: #D3D8DC; stroke-width: 8.6; }
.pv .perf { fill: none; stroke: #1D2024; stroke-width: 3.2; stroke-dasharray: 9 6; opacity: .45; }
.pv .thread { fill: none; stroke: #1D2024; stroke-width: 1; opacity: .7; }
.pv .dm path { fill: none; stroke: #3F4449; stroke-width: .9; }
.pv .dm .tk { stroke: #1D2024; stroke-width: 1.3; }
.pv .dt { font: 500 10.5px 'IBM Plex Mono', 'Noto Sans Armenian', monospace; fill: #2B2F33; text-anchor: middle; }
.pv .dt.e { text-anchor: end; }
.pv .dt.s { text-anchor: start; }
.pv .gd path { fill: none; stroke: var(--or); stroke-width: 1.3; stroke-dasharray: 3 4; }
.pv .gd { opacity: 0; transition: opacity .4s; }
.pv .dm { transition: opacity .5s .75s; }
.ex { transition: translate .9s cubic-bezier(.22, 1, .36, 1); }
.ex.d1 { transition-delay: .06s; }
.ex.d2 { transition-delay: .18s; }
.ex.d3 { transition-delay: .3s; }
.xr[data-live] .part:not([data-in]) .ex-l { translate: -26px 0; }
.xr[data-live] .part:not([data-in]) .ex-r { translate: 26px 0; }
.xr[data-live] .part:not([data-in]) .ex-u { translate: 0 -22px; }
.xr[data-live] .part:not([data-in]) .ex-u2 { translate: 0 -40px; }
.xr[data-live] .part:not([data-in]) .ex-d { translate: 0 22px; }
.xr[data-live] .part:not([data-in]) .ex-ul { translate: -18px -16px; }
.xr[data-live] .part:not([data-in]) .ex-ur { translate: 18px -16px; }
.xr[data-live] .part:not([data-in]) .dm { opacity: 0; transition-delay: 0s; }
.xr[data-live] .part:not([data-in]) .gd { opacity: 1; }
.tb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5px; margin-top: 10px; background: var(--ink); border-top: 1.5px solid var(--ink); }
.tb > * { background: var(--cn1); }
.tb-a { grid-column: 1 / -1; position: relative; padding: 12px 16px 14px; }
.tb-no { font: 600 11px/1 'IBM Plex Mono', 'Noto Sans Armenian', monospace; letter-spacing: .12em; color: var(--ml); }
.tb-nm { margin-top: 8px; font-family: 'Noto Sans Armenian', sans-serif; font-stretch: 75%; font-weight: 800; font-size: 28px; line-height: 1.05; color: var(--ink); }
.tb-sp { display: block; margin-top: 4px; font-size: 14px; color: var(--ml); }

/* ---------- calculator */
.cpanel {
  position: relative; margin-top: clamp(24px, 3vw, 40px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "in prev" "in out" "in cta";
  column-gap: clamp(20px, 3vw, 44px); row-gap: 22px; align-items: start;
  padding: clamp(18px, 3vw, 40px); border-radius: 6px;
  background: #1A1D21; color: #ECEEEF; box-shadow: 0 30px 60px -20px rgba(21, 24, 27, .45);
}
.cpanel::before {
  content: ''; position: absolute; inset: 9px; pointer-events: none;
  background:
    radial-gradient(circle, #3B4147 0 3px, transparent 3.5px) 0 0 / 12px 12px no-repeat,
    radial-gradient(circle, #3B4147 0 3px, transparent 3.5px) 100% 0 / 12px 12px no-repeat,
    radial-gradient(circle, #3B4147 0 3px, transparent 3.5px) 0 100% / 12px 12px no-repeat,
    radial-gradient(circle, #3B4147 0 3px, transparent 3.5px) 100% 100% / 12px 12px no-repeat;
}
.c-in { grid-area: in; display: grid; align-content: start; gap: 22px; }
.c-prev { grid-area: prev; position: relative; overflow: hidden; border-radius: 4px; border: 1px solid rgba(183, 190, 197, .18); background-color: #111316; background-image: linear-gradient(rgba(183, 190, 197, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(183, 190, 197, .05) 1px, transparent 1px); background-size: 20px 20px; }
.c-out { grid-area: out; display: grid; align-content: start; min-width: 0; }
.c-cta { grid-area: cta; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.c-cta .btn { width: 100%; white-space: normal; text-align: center; }
.fine { grid-column: 1 / -1; font-size: 13px; color: var(--md); }
.fld { display: grid; gap: 8px; }
.fld-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fld-l { font-size: 15px; font-weight: 600; color: #DADDE0; }
.fld-v { font: 600 22px/1 'IBM Plex Mono', 'Noto Sans Armenian', monospace; color: #F2F3F3; }
.fld-r { display: flex; align-items: center; gap: 10px; }
.fld-s { display: flex; justify-content: space-between; padding: 0 54px; font-size: 11px; color: var(--md); }
.stp { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 4px; border: 1px solid rgba(183, 190, 197, .3); background: #24292E; color: #F2F3F3; cursor: pointer; transition: transform .14s cubic-bezier(.3, 1.6, .5, 1), border-color .2s; }
.stp:hover { border-color: var(--or); }
.stp:active { transform: scale(.9); }
.stp .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.rng {
  -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 44px; margin: 0; cursor: pointer; border-radius: 0;
  background: linear-gradient(var(--or), var(--or)) 0 50% no-repeat, linear-gradient(#383E44, #383E44) 0 50% no-repeat;
  background-size: 50% 6px, 100% 6px;
}
.rng::-webkit-slider-runnable-track { height: 44px; background: transparent; }
.rng::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 30px; height: 30px; margin-top: 7px; border-radius: 5px;
  border: 2px solid #15181B; background: radial-gradient(circle, #15181B 0 3.5px, transparent 4px), var(--or);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .35); transition: scale .15s;
}
.rng:active::-webkit-slider-thumb { scale: .86 1; }
.rng::-moz-range-track { height: 44px; background: transparent; }
.rng::-moz-range-thumb { width: 26px; height: 26px; border-radius: 5px; border: 2px solid #15181B; background: radial-gradient(circle, #15181B 0 3.5px, transparent 4px), var(--or); }
.tgs { display: grid; gap: 4px; padding-top: 10px; border-top: 1px dashed rgba(183, 190, 197, .22); }
.tg { position: relative; display: flex; align-items: center; gap: 14px; min-height: 52px; cursor: pointer; }
.tg-i { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tg-s { position: relative; width: 52px; height: 30px; flex: none; border-radius: 4px; background: #2E3338; border: 1px solid rgba(183, 190, 197, .25); transition: background-color .2s, border-color .2s; }
.tg-s::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 3px; background: #C7CDD2; transition: translate .25s cubic-bezier(.3, 1.5, .5, 1), background-color .2s; }
.tg-i:checked + .tg-s { background: var(--or); border-color: var(--or); }
.tg-i:checked + .tg-s::after { translate: 22px 0; background: #15181B; }
.tg-i:focus-visible + .tg-s { outline: 2px solid #F2F3F3; outline-offset: 3px; }
.tg-t { display: grid; gap: 1px; }
.tg-t b { font-size: 15px; font-weight: 600; color: #ECEEEF; }
.tg-t small { font-size: 12px; color: var(--md); }
.c-min { padding: 9px 12px; border: 1.5px dashed var(--or); border-radius: 3px; font-size: 13px; line-height: 1.4; color: #F2F3F3; transition: border-color .25s, color .25s; }
.c-min b { color: var(--or); }
.c-min.is-off { border-color: rgba(183, 190, 197, .25); color: var(--md); }
.c-min.is-off b { color: #DADDE0; }
.rate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--md); }
.smp { display: inline-flex; align-items: center; padding: 4px 9px 3px; border: 1.5px dashed var(--or); color: var(--or); font: 700 11px/1.2 'IBM Plex Mono', 'Noto Sans Armenian', monospace; letter-spacing: .08em; text-transform: uppercase; rotate: -2deg; }
.pv-top { position: absolute; left: 14px; right: 14px; top: 12px; display: flex; justify-content: space-between; gap: 10px; font: 600 11px/1.2 'IBM Plex Mono', 'Noto Sans Armenian', monospace; letter-spacing: .1em; color: var(--md); }
.pv-i { color: #F2F3F3; letter-spacing: .04em; }
.pvw { display: block; width: 100%; height: auto; }
.pvw .gnd { stroke: #9AA1A8; stroke-width: 1.5; fill: none; }
.pvw .gh { stroke: rgba(154, 161, 168, .35); stroke-width: 1; fill: none; }
.pvw .wall { fill: #2B3035; stroke: rgba(183, 190, 197, .35); stroke-width: 1; }
.pvw .sx { fill: none; stroke: #C3CAD0; stroke-width: 1.6; }
.pvw .sk { fill: none; stroke: #7E878F; stroke-width: 3; }
.pvw .sp { fill: none; stroke: #C3CAD0; stroke-width: 2.2; }
.pvw .sl { fill: none; stroke: #C3CAD0; stroke-width: 1.8; }
.pvw .sxc { fill: none; stroke: var(--or); stroke-width: 3.4; stroke-linecap: round; }
.pvw .sc { fill: none; stroke: var(--or); stroke-width: 5; stroke-linecap: round; }
.pvw .dx { fill: none; stroke: rgba(236, 238, 239, .35); stroke-width: 1; }
.pvw .dl { fill: none; stroke: #ECEEEF; stroke-width: 1; }
.pvw .dtk { fill: none; stroke: #ECEEEF; stroke-width: 1.4; }
.pvw .dtx { font: 600 13px 'IBM Plex Mono', 'Noto Sans Armenian', monospace; fill: #F2F3F3; }
.pvw .dtx.s { text-anchor: start; }
.pvw .dtx.m { text-anchor: middle; }
.pvw .man { fill: none; stroke: #ECEEEF; stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pvw .hat { fill: var(--or); }
.r-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px dashed rgba(183, 190, 197, .2); transition: opacity .25s; }
.r-row.is-off { opacity: .45; }
.r-l { min-width: 0; font-size: 15px; font-weight: 600; color: #DADDE0; }
.r-l small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--md); }
.r-v { display: inline-flex; align-items: center; gap: 6px; flex: none; font: 500 19px/1 'IBM Plex Mono', 'Noto Sans Armenian', monospace; color: #F2F3F3; white-space: nowrap; }
.r-v.r-free { font-weight: 700; color: var(--or); }
.r-u { font-family: 'Noto Sans Armenian', sans-serif; font-size: .85em; color: var(--md); }
/* the total wraps under its label when the number is too wide for one line (big walls on phones) */
.r-tot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 14px; padding-top: 18px; }
.r-tot .r-l { font-family: 'Noto Sans Armenian', sans-serif; font-stretch: 75%; font-weight: 800; font-size: 26px; color: #F2F3F3; }
.r-tot .r-v { margin-left: auto; max-width: 100%; font-size: clamp(30px, 3.6vw, 50px); font-weight: 600; color: var(--or); }
.r-tot .r-u { color: var(--or); }
.odo { display: inline-flex; align-items: center; }
.od { display: inline-block; width: 1ch; height: 1em; overflow: hidden; line-height: 1; transition: width .3s ease, opacity .3s ease, margin .3s ease; }
.od-off { width: 0; opacity: 0; }
.od-gp { margin-right: .28em; }
.od-s { display: block; width: 1ch; line-height: 1; white-space: normal; word-break: break-all; overflow-wrap: anywhere; transition: transform .6s cubic-bezier(.2, .85, .25, 1.1); }
.od-dot { display: inline-block; width: .55ch; text-align: center; line-height: 1; }
.odo-big .od { box-sizing: content-box; padding: .07em .06em; margin-right: 3px; border-radius: 3px; background: linear-gradient(180deg, #0B0D0F, #23272B 28%, #2B3034 50%, #23272B 72%, #0B0D0F); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.odo-big .od-gp { margin-right: .24em; }
.odo-big .od-off { padding: 0; margin-right: 0; }

/* ---------- gallery */
.gal-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.gal-nav { display: flex; gap: 10px; }
.nbtn { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 3px; border: 1px solid rgba(183, 190, 197, .35); background: #1F2327; color: #F2F3F3; cursor: pointer; transition: transform .15s cubic-bezier(.3, 1.6, .5, 1), border-color .2s; }
.nbtn:hover { border-color: var(--or); }
.nbtn:active { transform: scale(.92); }
.nbtn .ic { width: 22px; height: 22px; }
.gal-sc {
  margin-top: clamp(16px, 2vw, 28px); display: flex; gap: clamp(30px, 3vw, 46px); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 26px max(var(--pad), calc((100% - 1320px) / 2 + var(--pad))) 8px;
  scrollbar-width: thin; scrollbar-color: #3A4046 transparent; overscroll-behavior-x: contain;
}
.ph { flex: none; scroll-snap-align: start; scroll-margin-left: var(--pad); }
.ph-fr { position: relative; padding: 13px; }
.ph-fr::before {
  content: ''; position: absolute; left: -16px; right: -16px; top: 0; bottom: 0; pointer-events: none;
  background:
    linear-gradient(180deg, #5B636A, #DDE2E6 45%, #8A939A 75%, #4E555B) 0 0 / 100% 13px no-repeat,
    linear-gradient(180deg, #5B636A, #DDE2E6 45%, #8A939A 75%, #4E555B) 0 100% / 100% 13px no-repeat;
}
.ph-fr::after {
  content: ''; position: absolute; left: 0; right: 0; top: -16px; bottom: -16px; pointer-events: none;
  background:
    linear-gradient(90deg, #5B636A, #DDE2E6 45%, #8A939A 75%, #4E555B) 0 0 / 13px 100% no-repeat,
    linear-gradient(90deg, #5B636A, #DDE2E6 45%, #8A939A 75%, #4E555B) 100% 0 / 13px 100% no-repeat;
}
.ph-cl {
  position: absolute; inset: -5px; z-index: 2; pointer-events: none;
  background:
    radial-gradient(circle, #15181B 0 3px, transparent 3.5px) 0 0 / 23px 23px no-repeat,
    radial-gradient(circle, #15181B 0 3px, transparent 3.5px) 100% 0 / 23px 23px no-repeat,
    radial-gradient(circle, #15181B 0 3px, transparent 3.5px) 0 100% / 23px 23px no-repeat,
    radial-gradient(circle, #15181B 0 3px, transparent 3.5px) 100% 100% / 23px 23px no-repeat,
    linear-gradient(var(--or), var(--or)) 0 0 / 23px 23px no-repeat,
    linear-gradient(var(--or), var(--or)) 100% 0 / 23px 23px no-repeat,
    linear-gradient(var(--or), var(--or)) 0 100% / 23px 23px no-repeat,
    linear-gradient(var(--or), var(--or)) 100% 100% / 23px 23px no-repeat;
}
.ph-img {
  position: relative; height: clamp(260px, 28vw, 390px); display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center;
  color: var(--md); background-color: #1E2226;
  background-image: repeating-linear-gradient(135deg, rgba(183, 190, 197, .06) 0 2px, transparent 2px 16px);
}
.ph.land .ph-img { aspect-ratio: 4 / 3; }
.ph.port .ph-img { aspect-ratio: 4 / 5; }
.ph-ic { width: 40px; height: 40px; color: var(--md); }
.ph-img b { font-size: 16px; color: #DADDE0; }
.ph-img span { font-size: 13px; }
.ph figcaption { margin-top: 24px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: baseline; }
.ph-n { grid-row: 1 / 3; font-family: 'Big Shoulders Stencil', sans-serif; font-weight: 800; font-size: 44px; line-height: .9; color: var(--or); }
.ph-t { font-size: 17px; font-weight: 700; color: #F2F3F3; }
.ph-m { font: 500 13px/1.4 'IBM Plex Mono', 'Noto Sans Armenian', monospace; color: var(--md); }

/* ---------- stage C: finale / dismantle */

/* ---------- contact */
.ct-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.ct-info { display: grid; gap: 24px; justify-items: start; }
.ct-list { width: 100%; display: grid; border-top: 1px solid rgba(183, 190, 197, .2); }
.ct-it { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid rgba(183, 190, 197, .2); text-decoration: none; }
.ct-k { font: 600 11px/1.2 'IBM Plex Mono', 'Noto Sans Armenian', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--md); }
.ct-v { font-size: 22px; font-weight: 700; color: #F2F3F3; }
.ct-n { font-size: 15px; line-height: 1.45; color: #C9CED2; }
.ct-ph .ct-v { font-family: 'Noto Sans Armenian', sans-serif; font-stretch: 75%; font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; color: var(--or); }
.ct-ph:hover .ct-v { text-decoration: underline; text-underline-offset: 6px; }
.ct-map { position: relative; overflow: hidden; border-radius: 4px; border: 1px solid rgba(183, 190, 197, .22); background: #111316; }
.mp { display: block; width: 100%; height: auto; }
.mp-b { fill: #1D2125; }
.mp-r { fill: none; stroke: #2B3136; stroke-width: 14; stroke-linecap: round; }
.mp-r2 { fill: none; stroke: #262B30; stroke-width: 8; }
.mp-w { fill: none; stroke: #1B2630; stroke-width: 12; stroke-linecap: round; }
.mp-pin { fill: var(--or); stroke: #15181B; stroke-width: 1.5; }
.mp-dot { fill: #15181B; }
.mp-ring { fill: none; stroke: var(--or); stroke-width: 2; transform-box: fill-box; transform-origin: 50% 50%; animation: xr-ping 2.2s ease-out infinite; }
.mp-lab { position: absolute; left: 62%; top: 30%; padding: 8px 12px; border-radius: 3px; background: rgba(21, 24, 27, .92); border: 1px solid rgba(183, 190, 197, .3); font-size: 15px; font-weight: 700; color: #F2F3F3; }
.mp-cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 14px; border-top: 1px solid rgba(183, 190, 197, .2); font-size: 13px; color: var(--md); }
.mp-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: #F2F3F3; text-decoration: none; }
.mp-link .ic { width: 18px; height: 18px; }
.mp-link:hover { color: var(--or); }

/* ---------- footer + mobile bar */
/* ---------- FAQ */
.faq-l { margin-top: clamp(24px, 2.6vw, 36px); display: grid; gap: 10px; max-width: 920px; }
.faq-i { background: var(--cn1); border: 1.5px solid var(--ink); border-radius: 3px; }
.faq-i summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; padding: 16px 20px; font-family: 'Noto Sans Armenian', sans-serif; font-stretch: 75%; font-weight: 800; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.2; color: var(--ink); }
.faq-i summary::-webkit-details-marker { display: none; }
.faq-i summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--or); font: 600 22px/1 'IBM Plex Mono', monospace; transition: rotate .2s; }
.faq-i[open] summary::after { rotate: 45deg; }
.faq-i summary:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
.faq-i p { padding: 0 20px 18px; max-width: 720px; font-size: 16px; line-height: 1.55; color: #3E4246; }
.faq-i p b { color: var(--ink); }
.faq-i p a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }

.ft { background: #0F1113; border-top: 1px solid rgba(183, 190, 197, .12); }
.ft-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 36px; padding-bottom: 36px; }
.ft p { font-size: 14px; color: var(--md); }
.mbar { display: none; }

/* floating call button: always on screen on tablets and desktops (phones use the bottom bar) */
.fcall {
  position: fixed; z-index: 60; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px);
  display: flex; align-items: center; gap: 12px; padding: 9px 22px 9px 9px; border-radius: 999px;
  background: var(--or); color: #15181B; text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45), 0 0 0 1px rgba(21, 24, 27, .3);
  transition: transform .16s cubic-bezier(.3, 1.6, .5, 1);
}
.fcall:hover { transform: translateY(-2px); }
.fcall:active { transform: scale(.97); }
.fcall:focus-visible { outline: 3px solid #F2F3F3; outline-offset: 3px; }
.fcall-ic { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #15181B; color: var(--or); }
.fcall-ic::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #15181B; animation: xr-ping 2.2s ease-out infinite; }
.fcall-ic .ic { width: 22px; height: 22px; }
.fcall-t { display: grid; gap: 2px; }
.fcall-t small { font: 700 11px/1.1 'IBM Plex Mono', 'Noto Sans Armenian', monospace; letter-spacing: .12em; text-transform: uppercase; }
.fcall-t b { font: 700 18px/1.1 'IBM Plex Mono', 'Noto Sans Armenian', monospace; white-space: nowrap; }
@media (min-width: 761px) { .ft-in { padding-bottom: 112px; } }

@keyframes xr-turn { 0%, 55% { rotate: 0deg; } 80%, 100% { rotate: 180deg; } }
@keyframes xr-bob { 0%, 100% { translate: 0 -2px; } 50% { translate: 0 4px; } }
@keyframes xr-wob { 0% { rotate: 0deg; } 18% { rotate: 2.4deg; } 38% { rotate: -1.9deg; } 58% { rotate: 1.1deg; } 78% { rotate: -.5deg; } 100% { rotate: 0deg; } }
@keyframes xr-ping { 0% { scale: .4; opacity: .9; } 100% { scale: 1.8; opacity: 0; } }

/* ---------- tablet + phone */
@media (max-width: 1099px) {
  .st-a { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; row-gap: 20px; height: auto; min-height: 860px; padding-top: calc(var(--hdr) + 22px); }
  .fig { grid-template-columns: minmax(0, 1fr); }
  .fig > .bsvg { max-width: 620px; margin: 0 auto; }
  .ld { display: none; }
  .bn-col { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 10px; margin-top: 18px; }
  .bn { position: relative; top: auto; transform: none; opacity: 1; translate: none; }
  .bn::before { display: none; }
  .xr[data-live] .st-a { grid-template-rows: auto minmax(0, 1fr); }
  .xr[data-live] .st-a .fig { position: static; }
  .xr[data-live] .fig > .bsvg { max-height: calc(100vh - var(--hdr) - 400px); max-height: calc(var(--vh, 100svh) - var(--hdr) - 400px); }
  /* build stage on tablets/phones: the four benefit cards collect in a compact 2 × 2 grid above the
     drawing — each new floor adds its card and the earlier ones stay (slots are reserved, no jumps) */
  .xr[data-live] .st-a .bn-col { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); top: calc(var(--hdr) + 16px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
  .xr[data-live] .st-a .bn { position: relative; left: auto; right: auto; top: auto; padding: 10px 12px 11px; opacity: 0; translate: 0 12px; pointer-events: none; }
  .xr[data-live] .st-a .bn-wait { display: block; position: absolute; left: 0; right: 0; top: 0; }
  .xr[data-live] .st-a .bn-t { font-size: 15px; }
  .xr[data-live] .st-a .bn-tag { gap: 6px; font-size: 10px; }
  .xr[data-live] .st-a .bn-ic { width: 18px; height: 18px; }
  .xr[data-live] .st-a[data-b~="1"] .hero { opacity: 0; translate: 0 -14px; pointer-events: none; }
  .xr[data-live] .st-a[data-b~="1"]:not([data-b~="4"]) .bn-wait,
  .xr[data-live] .st-a[data-b~="4"] .bn[data-s="4"],
  .xr[data-live] .st-a[data-b~="8"] .bn[data-s="8"],
  .xr[data-live] .st-a[data-b~="12"] .bn[data-s="12"],
  .xr[data-live] .st-a[data-b~="16"] .bn[data-s="16"] { opacity: 1; translate: 0 0; pointer-events: auto; }
  .xr[data-live] .st-a[data-done][data-top] .hero { opacity: 1; translate: 0 0; pointer-events: auto; }
  .xr[data-live] .st-a[data-done][data-top] .bn[data-s] { opacity: 0; translate: 0 12px; pointer-events: none; }
  .ct-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .cpanel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "prev" "in" "out" "cta"; }
}
@media (max-width: 900px) {
  .nv { display: none; }
  .hd-calc { display: inline-flex; margin-left: auto; }
}
@media (max-width: 760px) {
  .xr { --hdr: 56px; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .logo .lg { height: 26px; }
  .hd-call { display: none; }
  .hd-calc { min-height: 42px; padding: 0 14px 0 12px; font-size: 14px; }
  .hero { gap: 14px; }
  .xr[data-live] .st-a .bn:not(.bn-wait) .bn-d { display: none; }
  .xr[data-live] .st-a .bn-tag span:not(.bn-n) { letter-spacing: .02em; }
  .hero-sub { margin-top: -4px; font-size: 22px; }
  .hero .eb { display: none; }
  .hero .btn-gh { display: none; }
  .h1 { font-size: clamp(42px, 12.4vw, 60px); }
  .price { font-size: 15px; }
  .price b { font-size: 30px; }
  .hint-c { width: 34px; height: 34px; }
  .xr[data-live] .st { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .xr[data-live] .fcap { display: none; }
  .pc { transition-duration: .18s, .32s, .32s, .32s; }
  .pc.k1, .pc.k2, .pc.k3 { transition-delay: 0s; }
  .c-cta { grid-template-columns: minmax(0, 1fr); }
  .r-v { font-size: 17px; }
  .r-tot .r-v { font-size: clamp(24px, 8.2vw, 34px); }
  /* phones: smaller photos so the next one peeks in from the right and it is obvious the row scrolls */
  .ph-img { height: min(190px, 46vw); }
  .ph { width: min-content; }
  .gal-sc { gap: 20px; }
  .ph figcaption { margin-top: 16px; column-gap: 10px; }
  .ph-n { font-size: 34px; }
  .ph-t { font-size: 15px; }
  .gal-nav { display: none; }
  .fcall { display: none; }
  .mbar {
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: #15181B; border-top: 1px solid rgba(183, 190, 197, .18);
  }
  .mbar::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 240px; background: #15181B; pointer-events: none; }
  .mb-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 3px; font-size: 16px; font-weight: 700; text-decoration: none; transition: transform .14s cubic-bezier(.3, 1.6, .5, 1); }
  .mb-btn:active { transform: scale(.96, .92); }
  .mb-btn .ic { width: 20px; height: 20px; }
  .mb-call { background: var(--or); color: #15181B; }
  .mb-vb { background: #2A2F34; color: #F2F3F3; box-shadow: inset 0 0 0 1px rgba(183, 190, 197, .3); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .xr *, .xr *::before, .xr *::after { animation: none !important; transition: none !important; }
}
.lg { display: block; overflow: visible; }
.lg-m { transform-box: fill-box; transform-origin: 50% 50%; transition: rotate .6s cubic-bezier(.3, 1.5, .5, 1); }
/* scroll turns the inner mark (no transition, follows the finger); hover turns the outer group */
.lg-s { transform-box: fill-box; transform-origin: 50% 50%; rotate: var(--lr, 0deg); }
.lg .lg-b { fill: none; stroke-width: 6.4; }
.lg .lg-h { fill: none; stroke: rgba(255, 255, 255, .38); stroke-width: 1.1; stroke-linecap: round; }
.lg .lg-t { fill-rule: evenodd; }
.lg-dark .lg-b { stroke: #B7BEC5; }
.lg-dark .lg-t { fill: #B7BEC5; }
.lg-dark .lg-c { fill: var(--or, #FF6B1A); }
.lg-dark .lg-bt { fill: #15181B; }
.lg-dark .lg-w { fill: #F2F3F3; }
.lg-dark .lg-d { fill: #9AA1A8; }
.lg-light .lg-b { stroke: #15181B; }
.lg-light .lg-t { fill: #15181B; }
.lg-light .lg-c { fill: var(--or, #FF6B1A); }
.lg-light .lg-bt { fill: #15181B; }
.lg-light .lg-w { fill: #15181B; }
.lg-light .lg-d { fill: #55595D; }
.lg-mono-k .lg-b { stroke: #15181B; }
.lg-mono-k .lg-t, .lg-mono-k .lg-c, .lg-mono-k .lg-w, .lg-mono-k .lg-d { fill: #15181B; }
.lg-mono-k .lg-halo, .lg-mono-k .lg-bt { fill: var(--paper, #FFFFFF); }
.lg-mono-w .lg-b { stroke: #FFFFFF; }
.lg-mono-w .lg-t, .lg-mono-w .lg-c, .lg-mono-w .lg-w, .lg-mono-w .lg-d { fill: #FFFFFF; }
.lg-mono-w .lg-halo, .lg-mono-w .lg-bt { fill: var(--paper, #15181B); }
.fv-bg { fill: #15181B; }
.fv-b { fill: none; stroke: #C3CAD0; stroke-width: 4.6; }
.fv-c { fill: var(--or, #FF6B1A); }
.fv-bt { fill: #15181B; }

/* static mode (no JS, reduced motion, extreme viewport heights): show the finished scaffold */
.xr:not([data-live]) .st-a .pc { opacity: 1; translate: 0 0; scale: 1; rotate: 0deg; }
.xr:not([data-live]) .st-a .bn { opacity: 1; translate: 0 0; }

/* gallery: a real photo placed inside .ph-img fills the scaffold-pipe frame */
.ph-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
