/* ==========================================================================
   Arc Modular — drafting-office minimal
   Palette is fixed by the brief: paper, ink, mid rule, forest (action only),
   tan (annotation callouts only). All animation is monochrome.
   ========================================================================== */

:root {
  --paper: #f7f5ef;
  --paper-2: #f1eee5;
  --ink: #14181a;
  --ink-70: #4a5052;
  --ink-50: #767b7c;
  --rule: #c9c4b6;
  --rule-2: #ddd8cb;
  --forest: #22332c;
  --forest-hi: #2e453b;
  --tan: #b08d57;

  --sans: "Switzer", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;

  --hair: 1px;
  --member: 2px;

  --gutter: clamp(20px, 5vw, 84px);
  --sec-y: clamp(72px, 11vw, 168px);
  --maxw: 1360px;

  --t-xs: 0.6875rem;
  --t-sm: 0.8125rem;
  --t-base: 1rem;
  --t-lg: clamp(1.0625rem, 0.4vw + 0.95rem, 1.25rem);
  --t-xl: clamp(1.375rem, 1vw + 1.1rem, 1.9rem);
  --t-2xl: clamp(1.9rem, 2.4vw + 1.2rem, 3.1rem);
  --t-hero: clamp(2.2rem, 3.5vw + 0.7rem, 4.15rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.55;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.022em; line-height: 1.08; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  font: 500 var(--t-sm)/1 var(--sans); text-decoration: none;
  transition: top .16s;
}
.skip:focus { top: 12px; }

/* The UA stylesheet gives [hidden] display:none, but any explicit display in
   our own CSS outranks it — so a flex or grid component stays visible after
   `el.hidden = true`. This was being patched per-component (.cfg-row,
   .widthctl, .bld-step, .bld-price) until it bit the enquiry page too. Fix it
   once, here, for every component. */
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- shell */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

section { position: relative; }
.sec { padding-block: var(--sec-y); border-top: var(--hair) solid var(--rule); }
.sec:first-of-type { border-top: 0; }

.sechead { display: grid; gap: clamp(14px, 2vw, 30px) clamp(20px, 3vw, 56px); align-items: baseline; margin-bottom: clamp(28px, 4vw, 60px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .sechead { grid-template-columns: 170px minmax(0, 1.05fr) minmax(0, .95fr); }
  .sechead .secnum { white-space: nowrap; } }
.secnum { font: 400 var(--t-xs)/1 var(--mono); letter-spacing: .16em; color: var(--ink-50); flex: 0 0 auto; padding-top: .5em; }
.sechead h2 { font-size: var(--t-2xl); max-width: 20ch; }
.sechead .lede { font-size: var(--t-lg); color: var(--ink-70); max-width: 48ch; }

.mono { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-50); }
.mono-b { font-family: var(--mono); font-size: var(--t-sm); color: var(--ink); }

/* ---------------------------------------------------------------- header */
.hdr {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: var(--hair) solid var(--rule);
}
.hdr .wrap { display: flex; align-items: center; gap: 20px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand svg { width: 26px; height: 26px; color: var(--ink); }
.brand .wm { font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1; }
.brand .wm b { font-family: var(--sans); font-style: normal; font-weight: 500; font-size: 1.02rem; letter-spacing: -.01em; }
.navlinks { display: flex; gap: clamp(14px, 2vw, 30px); margin-left: auto; }
/* nowrap: six nav items would otherwise break mid-label ("How it" / "works")
   between the 720px hamburger breakpoint and ~960px. Measured: the row needs
   444px at 721px wide and has 464px, so it stays on one line throughout. */
.navlinks a { font-size: var(--t-sm); text-decoration: none; color: var(--ink-70); padding: 6px 0; border-bottom: var(--hair) solid transparent; white-space: nowrap; }
.navlinks a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------------------------------------------------------------- button */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--forest); color: #f3f1ea; text-decoration: none;
  font: 500 var(--t-sm)/1 var(--sans); letter-spacing: .01em;
  padding: 13px 20px; border: var(--hair) solid var(--forest); border-radius: 0;
  cursor: pointer; transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--forest-hi); }
.btn:active { transform: translateY(1px); }
.btn .arw { width: 15px; height: 9px; }
.btn.lg { padding: 17px 28px; font-size: var(--t-base); }
.btn-quiet {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: 0;
  padding: 6px 0; font: 400 var(--t-sm)/1.2 var(--sans); color: var(--ink-70);
  text-decoration: none; border-bottom: var(--hair) solid var(--rule); cursor: pointer;
}
.btn-quiet:hover { color: var(--ink); border-bottom-color: var(--ink); }
.btn-quiet .arw { width: 15px; height: 9px; flex: 0 0 auto; }
.hdr .btn { flex: 0 0 auto; padding: 10px 16px; }

/* -------------------------------------------------------- mobile nav toggle */
.navtoggle {
  display: none; flex: 0 0 auto; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-left: 4px; padding: 0;
  background: none; border: var(--hair) solid var(--rule); border-radius: 0;
  color: var(--ink); cursor: pointer;
}
.navtoggle svg { width: 18px; height: 13px; }
.navtoggle[aria-expanded="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.mobilenav {
  display: none; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0; z-index: 89;
  background: var(--paper); border-bottom: var(--hair) solid var(--rule);
  box-shadow: 0 12px 24px -12px rgba(0,0,0,.18);
}
.mobilenav.open { display: flex; }
.mobilenav a {
  padding: 15px clamp(20px, 5vw, 32px); text-decoration: none; color: var(--ink);
  font: 500 var(--t-base)/1 var(--sans); border-top: var(--hair) solid var(--rule);
}
.mobilenav a:first-child { border-top: none; }
.mobilenav a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }

/* The header CTA carries a short label for narrow screens. At 390px the logo,
   a five-word button and the burger do not fit across the row, and the button
   pushed the burger ~24px past the viewport — which gave every page a sliver
   of horizontal scroll on a phone. */
.lbl-short { display: none; }

/* 1119px, not 720px: the desktop row carries seven items and, with the
   wordmark, the call button and the Configure & price button beside it,
   measures as fitting only from 1060px up. Below the threshold the row either
   broke mid-label or pushed the button off-screen, so the hamburger takes over
   instead. Held at 1119px rather than the measured 1060px so font fallback on
   other platforms can cost a few pixels harmlessly.
   Was 999px against a measured 946px, before the header gained the call
   button — that control costs the row 129px at desktop widths.
   Re-measure if a nav item is added or relabelled. */
@media (max-width: 1119px) {
  .navlinks { display: none; }
  .hdr .btn { margin-left: auto; }
  .navtoggle { display: flex; }
}

@media (max-width: 560px) {
  .hdr .wrap { gap: 10px; }
  .hdr .btn { padding: 9px 12px; }
  .lbl-full { display: none; }
  .lbl-short { display: inline; }
  .navtoggle { margin-left: 0; }
}
/* Must stay the exact complement of the 1119px hamburger breakpoint above —
   otherwise the burger is visible but its panel is force-hidden and the menu
   cannot open at all. js/nav.js carries the same threshold. */
@media (min-width: 1120px) {
  .mobilenav { display: none !important; }
}


/* ---------------------------------------------------------------- placeholder chip */
.todo {
  display: inline-flex; align-items: center; gap: 8px;
  font: 400 var(--t-xs)/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--tan); border: var(--hair) dashed var(--tan);
  padding: 5px 9px; background: color-mix(in srgb, var(--tan) 7%, transparent);
}
.todo::before { content: "◇"; }

/* ---------------------------------------------------------------- drawing */
svg .member, svg .hair, svg .env, svg .light, svg .sheet {
  fill: none; stroke: var(--ink);
  stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
svg .member { stroke-width: var(--member); }
/* second ink weight: light-gauge infill — studs, girts, joists, cleats, glazing */
svg .light { stroke-width: 1.3px; }
/* third weight: skins — roof sheet and wall cladding */
/* Cladding and roof sheet are solid, not see-through: paper fill so the panels
   occlude the framing behind them and the building actually reads as closed.
   Still strictly monochrome — paper plane, ink edge. */
svg .sheet { stroke-width: var(--hair); stroke: var(--ink-50); fill: var(--paper); }
/* Glass is the one thing that is NOT opaque: a faint tint so openings read as
   glazed rather than as holes, and you can still sense the frame through them. */
svg .glass { fill: color-mix(in srgb, var(--ink) 7%, transparent); }
/* Door leaf: same glazed convention as a window, but a visibly stronger tint
   so a small opening still reads as "this is the door" at building-overview
   scale, without needing colour. */
svg .doorglass { fill: color-mix(in srgb, var(--ink) 22%, transparent); }
svg .hair { stroke-width: var(--hair); stroke: var(--ink-50); }
svg .env { stroke-width: var(--hair); stroke: var(--ink-50); stroke-dasharray: 6 5; }
svg .slab { stroke: var(--rule); }
svg .breeze { stroke: var(--ink-50); stroke-dasharray: 4 6; }
svg .detailring { fill: none; stroke: var(--tan); stroke-width: var(--hair); vector-effect: non-scaling-stroke; }
svg .dot { fill: var(--ink); stroke: none; }
svg .mono-lbl { font-family: var(--mono); font-size: 300px; fill: var(--ink); letter-spacing: .02em; }
svg .ann text { fill: var(--ink); }

/* ---------------------------------------------------------------- hero */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(28px, 6vh, 72px) clamp(24px, 5vh, 56px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); }
@media (min-width: 940px) {
  .hero .wrap { grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(32px, 4vw, 72px); }
}
.hero h1 { font-size: var(--t-hero); max-width: 16ch; text-wrap: balance; }
.hero .sub { margin-top: 22px; font-size: var(--t-lg); color: var(--ink-70); max-width: 42ch; }
.hero .acts { margin-top: clamp(24px, 3vw, 36px); display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero .kicker { margin-bottom: 20px; }

.stage {
  position: relative; width: 100%; aspect-ratio: 3 / 2;
  background: var(--paper-2); border: var(--hair) solid var(--rule); overflow: hidden;
}
.stage .grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--rule-2) var(--hair), transparent var(--hair)),
                    linear-gradient(90deg, var(--rule-2) var(--hair), transparent var(--hair));
  background-size: 44px 44px;
}
.stage > svg, .stage > picture, .stage > .ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage picture img { width: 100%; height: 100%; }
.stage .hero-photo { object-fit: cover; opacity: 0; transition: opacity 1.05s ease; }
.stage .hero-photo.on { opacity: 1; }
.stage .hero-residual { opacity: 0; transition: opacity .7s ease .25s; }
.stage .hero-residual.on { opacity: .95; }
.stage .hero-residual .hair { stroke: rgba(247, 245, 239, .8); stroke-width: 1px; }
.stage .hero-residual .bz { font-size: 22px; }
.stage .hero-residual .mono-lbl { fill: #fff; font-size: 30px; letter-spacing: .14em; paint-order: stroke; stroke: rgba(20,24,26,.5); stroke-width: 4px; }
.hero-svg { transition: opacity .85s ease; }
.hero-svg.off { opacity: 0; }
.hstep path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.hstep.drawn path { stroke-dashoffset: 0; transition: stroke-dashoffset 1s cubic-bezier(.4,0,.2,1); }
.stagecap { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- layers */
.layers { display: grid; gap: clamp(28px, 3vw, 40px); grid-template-columns: 1fr; }
@media (min-width: 860px) { .layers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .layers { grid-template-columns: repeat(4, 1fr); } }
.layer { border-top: var(--member) solid var(--ink); padding-top: 20px; }
.layer .dia { width: 100%; aspect-ratio: 4/3; background: var(--paper-2); border: var(--hair) solid var(--rule); margin-bottom: 20px; }
/* Photo/line-art reference image standing in for an SVG diagram (e.g. the
   Building Systems card's isometric module sketch). Contain, not cover, so
   the annotation labels never crop — the source has a paper-2-matched
   background so the letterbox is invisible. */
.layer .dia--photo picture, .layer .dia--photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.layer h3 { font-size: var(--t-xl); margin-bottom: 10px; }
.layer .idx { display: block; margin-bottom: 14px; }
.layer p { color: var(--ink-70); font-size: var(--t-sm); margin-bottom: 8px; }
.layer dl { margin: 16px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: var(--t-xs); }
.layer dt { font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-50); }
.layer dd { margin: 0; color: var(--ink); }

/* ---------------------------------------------------------------- assembly */
.asm-grid { display: grid; gap: clamp(20px, 3vw, 44px); grid-template-columns: 1fr; }
@media (min-width: 1000px) { .asm-grid { grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.72fr); } }
/* click/key/drag-driven — the section holds a normal, bounded height so a
   visitor who isn't interested just scrolls straight past it */
.asm-pin { padding-block: 14px 18px; }
.asm-stage { position: relative; width: 100%; aspect-ratio: 18341 / 14120; background: var(--paper-2); border: var(--hair) solid var(--rule); overflow: hidden; }
.asm-stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.astep { visibility: hidden; }
.astep path[data-o] { opacity: 0; }
.astep .ann, .astep text { opacity: 0; }
.astep.on { visibility: visible; }
/* members already placed drop to a lighter ink so the newest layer reads as the active one */
.astep.placed .member { stroke-width: 1.4px; stroke: var(--ink-70); }
.astep.placed .light { stroke-width: 1px; stroke: var(--ink-50); }
.astep.placed .sheet, .astep.placed .hair { stroke: var(--rule); }
/* once clad, it stays clad — the fill must not fade with the stroke */
.astep.placed .sheet { fill: var(--paper); }
.astep.placed .slab { stroke: var(--rule); }

/* the last step: the finished drawing gives way to the render behind a mono rule */
.asm-photo { position: absolute; inset: 0; opacity: 0; clip-path: inset(0 100% 0 0); pointer-events: none; }
.asm-photo picture, .asm-photo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.asm-photo img { object-fit: cover; }
.asm-wipe { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--ink); opacity: 0; pointer-events: none; }

/* finish crossfade — stacked, pixel-identical renders of the same fixed camera;
   only the active layer is opaque, so switching finish reads as the material
   itself reskinning rather than a scene dissolve */
.asm-photo-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s cubic-bezier(.4,0,.2,1); will-change: opacity; }
.asm-photo-layer.is-active { opacity: 1; z-index: 1; }
.asm-photo-layer picture, .asm-photo-layer img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.asm-photo-layer img { object-fit: cover; }
@media (prefers-reduced-motion: reduce) {
  .asm-photo-layer { transition: none; }
}
.asm-panel { display: flex; flex-direction: column; gap: 18px; }
.asm-count-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.asm-count { font: 400 var(--t-sm)/1 var(--mono); letter-spacing: .14em; color: var(--ink-50); }
.asm-count b { color: var(--ink); font-weight: 400; }
.asm-skip {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: 0;
  padding: 4px 0; font: 400 var(--t-sm)/1.2 var(--sans); color: var(--ink-50); word-spacing: .1em;
  text-decoration: none; border-bottom: var(--hair) solid transparent; cursor: pointer; white-space: nowrap;
}
.asm-skip:hover, .asm-skip:focus-visible { color: var(--ink); border-bottom-color: var(--ink); }
.asm-skip .arw { width: 13px; height: 8px; flex: 0 0 auto; }
.asm-title { font-size: var(--t-xl); }
.asm-body { color: var(--ink-70); font-size: var(--t-sm); max-width: 40ch; min-height: 4.2em; }
.asm-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; }
.chip { font: 400 var(--t-xs)/1 var(--mono); letter-spacing: .08em; border: var(--hair) solid var(--rule); padding: 6px 8px; color: var(--ink-70); }
.asm-ticks { display: flex; gap: 4px; }
.asm-ticks button { flex: 1 1 0; height: 30px; background: none; border: 0; cursor: pointer; padding: 0; display: grid; place-items: end center; }
.asm-ticks span { display: block; width: 100%; height: 2px; background: var(--rule); transition: background .2s, height .2s; }
.asm-ticks button[aria-current="true"] span { background: var(--ink); height: 6px; }
.asm-ticks button:hover span { background: var(--ink-70); }
.asm-nav { display: flex; gap: 10px; align-items: center; }
.asm-nav button { font: 400 var(--t-sm)/1 var(--sans); background: none; border: var(--hair) solid var(--rule); padding: 10px 14px; cursor: pointer; color: var(--ink); }
.asm-nav button:hover:not(:disabled) { border-color: var(--ink); }
.asm-nav button:disabled { opacity: .35; cursor: default; }

.storyboard { display: none; }

/* ---------------------------------------------------------------- configurator */
.cfg-row-wrap { position: relative; }
.cfg-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.cfg-row::-webkit-scrollbar { height: 6px; }
.cfg-row::-webkit-scrollbar-thumb { background: var(--rule); }
/* Right-edge fade hints that the row scrolls horizontally when cards overflow
   the container -- otherwise, on touch devices with hidden overlay
   scrollbars (iOS Safari), a flush-cut row reads as "the complete list" and
   the remaining configs are undiscoverable. JS toggles .hide once scrolled
   to the end. */
.cfg-row-fade {
  position: absolute; top: 0; right: 0; bottom: 8px; width: 44px;
  background: linear-gradient(to right, transparent, var(--paper) 75%);
  pointer-events: none; transition: opacity .18s; opacity: 1;
}
.cfg-row-fade.hide { opacity: 0; }
.cfg-row-hint {
  display: none; font-size: var(--t-xs); color: var(--ink-50); letter-spacing: .06em;
  margin: 6px 0 0; text-transform: uppercase; transition: opacity .18s; opacity: 1;
}
.cfg-row-hint.hide { opacity: 0; }
@media (max-width: 640px) { .cfg-row-hint.show { display: block; } }
.cfg-opt {
  flex: 0 0 auto; background: none; cursor: pointer; text-align: left;
  border: var(--hair) solid var(--rule); padding: 10px 13px; min-width: 132px;
  display: flex; flex-direction: column; gap: 6px; color: var(--ink);
  transition: border-color .16s, background .16s;
}
.cfg-opt:hover:not(:disabled) { border-color: var(--ink-50); }
.cfg-opt[aria-checked="true"] { border-color: var(--ink); border-width: var(--member); background: var(--paper-2); padding: 9px 12px; }
.cfg-opt:disabled { opacity: .35; cursor: default; }
.cfg-opt .nm { font-size: var(--t-sm); font-weight: 500; line-height: 1.2; }

.cfg-main { display: grid; gap: clamp(18px, 2.6vw, 36px); grid-template-columns: 1fr; margin-top: clamp(22px, 3vw, 34px); }
@media (min-width: 1000px) {
  .cfg-main { grid-template-columns: minmax(0, 1.62fr) minmax(250px, .68fr); }
  /* the controls column runs longer than the visual column — pin the visual
     column at the top instead of letting it stretch into blank space, so the
     price/render stay in view while the taller panel scrolls past */
  .cfg-visual { align-self: start; position: sticky; top: 88px; }
}
.cfg-stage { position: relative; width: 100%; aspect-ratio: 16/9; background: var(--paper-2); border: var(--hair) solid var(--rule); overflow: hidden; }
@media (max-width: 640px) { .cfg-stage { aspect-ratio: 4/3; } }
.cfg-stage .concept-svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .35s ease; }
.cfg-stage .concept-svg.on { opacity: 1; }
.cfg-panel { display: flex; flex-direction: column; gap: 16px; }
.cfg-panel h3 { font-size: var(--t-xl); }
.cfg-panel .desc { font-size: var(--t-sm); color: var(--ink-70); min-height: 5.2em; }
.readout { border-top: var(--hair) solid var(--rule); }
.readout div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: var(--hair) solid var(--rule-2); font-family: var(--mono); font-size: var(--t-xs); }
.readout dt, .readout .k { color: var(--ink-50); letter-spacing: .1em; text-transform: uppercase; }
.readout .v { color: var(--ink); text-align: right; }
/* Full spec table: a collapsible dropdown on mobile (long list, closed by
   default) but always fully visible on desktop, matching how it read before —
   the summary toggle is hidden there and the content forced open via CSS. */
.cfg-spec-details { border-top: var(--hair) solid var(--rule); }
.cfg-spec-details .readout { border-top: none; }
.cfg-spec-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; cursor: pointer; list-style: none; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-70); }
.cfg-spec-summary::-webkit-details-marker { display: none; }
.cfg-spec-summary .arw { width: 15px; height: 9px; flex: none; transform: rotate(90deg); transition: transform .2s ease; }
.cfg-spec-details[open] .cfg-spec-summary .arw { transform: rotate(-90deg); }
@media (min-width: 1000px) {
  /* JS removes the [open] attribute below 1000px only, so desktop always
     renders expanded (default markup has open) with the toggle hidden. */
  .cfg-spec-summary { display: none; }
  .cfg-spec-details .readout { border-top: var(--hair) solid var(--rule); }
}
.widthctl { display: flex; flex-direction: column; gap: 8px; }
.widthctl .opts { display: flex; gap: 6px; flex-wrap: wrap; }
.widthctl button { font: 400 var(--t-xs)/1 var(--mono); padding: 9px 10px; border: var(--hair) solid var(--rule); background: none; cursor: pointer; color: var(--ink-70); }
.widthctl button[aria-checked="true"] { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }
.smallprint { font-size: var(--t-xs); color: var(--ink-50); max-width: 62ch; margin-top: 14px; }

/* ---------------------------------------------------------------- proof */
.proof-grid { display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: 1fr; }
@media (min-width: 960px) { .proof-grid { grid-template-columns: minmax(0, 1.45fr) minmax(240px, .7fr); } }
.pair { display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: 1fr; }
@media (min-width: 620px) { .pair { grid-template-columns: 1fr 1fr; } }
figure { margin: 0; }
figure img { width: 100%; height: auto; background: var(--paper-2); }
figcaption { margin-top: 10px; font-size: var(--t-xs); color: var(--ink-50); font-family: var(--mono); line-height: 1.5; }
.spec { border-top: var(--member) solid var(--ink); }
.spec div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: var(--hair) solid var(--rule-2); font-family: var(--mono); font-size: var(--t-xs); }
.spec .k { color: var(--ink-50); text-transform: uppercase; letter-spacing: .09em; }
.spec .v { text-align: right; }
.ladder { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: var(--t-xs); }
.ladder th, .ladder td { text-align: left; padding: 9px 8px 9px 0; border-bottom: var(--hair) solid var(--rule-2); }
.ladder th { color: var(--ink-50); text-transform: uppercase; letter-spacing: .09em; font-weight: 400; }

/* ---------------------------------------------------------------- reveal */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.rv.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- finished */
.fin { display: grid; gap: clamp(18px, 2.6vw, 34px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .fin { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .fin > figure:nth-of-type(2) { grid-row: span 2; } }
.fin .wide { grid-column: 1 / -1; }
.fin img { width: 100%; height: auto; }
.plansheet { background: var(--paper-2); border: var(--hair) solid var(--rule); padding: clamp(10px, 2vw, 22px); }
/* screenshots — never upscale past their native pixel width */
.plansheet img { max-width: min(100%, var(--nat, 100%)); margin-inline: auto; }
.plansheet figcaption { max-width: 78ch; }

/* ---------------------------------------------------------------- paths */
.paths { display: grid; gap: 0; grid-template-columns: 1fr; border-top: var(--member) solid var(--ink); }
@media (min-width: 860px) { .paths { grid-template-columns: 1fr 1fr; } }
.path { padding: clamp(24px, 3vw, 40px) 0; border-bottom: var(--hair) solid var(--rule); }
@media (min-width: 860px) {
  .path:first-child { padding-right: clamp(24px, 4vw, 64px); border-right: var(--hair) solid var(--rule); }
  .path:last-child { padding-left: clamp(24px, 4vw, 64px); }
}
.path h3 { font-size: var(--t-xl); margin: 12px 0 14px; }
.path ul { margin: 0 0 22px; padding: 0; list-style: none; }
.path li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 9px 0; border-bottom: var(--hair) solid var(--rule-2); font-size: var(--t-sm); color: var(--ink-70); }
.path li .n { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-50); padding-top: .18em; }

/* ---------------------------------------------------------------- faq */
.faq { border-top: var(--member) solid var(--ink); }
.faq details { border-bottom: var(--hair) solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-size: var(--t-lg); font-weight: 500; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 13px; height: var(--hair); background: var(--ink); }
.faq summary::before { content: ""; position: absolute; right: 12px; top: 50%; width: var(--hair); height: 13px; background: var(--ink); transform: translateY(-50%); transition: opacity .2s; }
.faq details[open] summary::before { opacity: 0; }
.faq .ans { padding: 0 clamp(0px, 6vw, 90px) 22px 0; color: var(--ink-70); font-size: var(--t-sm); max-width: 68ch; display: flex; flex-direction: column; gap: 10px; }

/* ---------------------------------------------------------------- form */
.book { background: var(--ink); color: var(--paper); }
.book .sechead h2, .book h3 { color: var(--paper); }
.book .lede, .book p { color: #b9bcbb; }
.book .mono { color: #8f9493; }
.book-grid { display: grid; gap: clamp(24px, 4vw, 60px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .book-grid { grid-template-columns: .85fr 1.15fr; } }
.book ol { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; }
.book ol li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 11px 0; border-bottom: var(--hair) solid #2b3133; font-size: var(--t-sm); color: #c6c9c8; }
.book ol li::before { content: "0" counter(s); font-family: var(--mono); font-size: var(--t-xs); color: #8f9493; }
.f-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .f-grid { grid-template-columns: 1fr 1fr; } .f-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font: 400 var(--t-xs)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #9aa09e; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; color: var(--paper);
  border: var(--hair) solid #3a4143; padding: 12px 13px; font: 400 var(--t-base)/1.4 var(--sans);
  border-radius: 0; -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, #9aa09e 50%), linear-gradient(135deg, #9aa09e 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--paper); outline: 2px solid var(--paper); outline-offset: 2px; }
.field .err { display: none; margin-top: 7px; font: 400 var(--t-xs)/1.3 var(--mono); color: #e0a878; }
.field.bad input, .field.bad select { border-color: #e0a878; }
.field.bad .err { display: block; }
.book .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.book .btn:hover { background: #fff; }
.formnote { font-size: var(--t-xs); color: #8f9493; margin-top: 14px; }
.success { display: none; border: var(--hair) solid #4c5457; padding: clamp(22px, 3vw, 36px); }
.success.on { display: block; }
form.done { display: none; }

/* ---------------------------------------------------------------- ctaband */
.ctaband { display: flex; gap: clamp(16px, 3vw, 40px); align-items: center; justify-content: space-between; flex-wrap: wrap; border-top: var(--member) solid var(--ink); padding-top: clamp(22px, 3vw, 34px); margin-top: clamp(30px, 4vw, 52px); }
.ctaband p { font-size: var(--t-lg); max-width: 46ch; }
.ctaband-acts { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 28px); flex-wrap: wrap; }

/* ---------------------------------------------------------------- footer */
.ftr { border-top: var(--hair) solid var(--rule); padding-block: clamp(34px, 5vw, 64px); }
.ftr .row { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; align-items: flex-start; }
.ftr a { text-decoration: none; border-bottom: var(--hair) solid var(--rule); }
.ftr a:hover { border-bottom-color: var(--ink); }
.ftr .draftnote { margin-top: 26px; }

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .asm-live { display: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rv { opacity: 1; transform: none; }
  .hstep path { stroke-dashoffset: 0 !important; }
  .astep path[data-o] { opacity: 1 !important; transform: none !important; }
  .astep .ann, .astep text { opacity: 1 !important; }
  .hero-svg.off { opacity: 0; }
  .asm-live { display: none; }
  .storyboard { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .storyboard .sb { border: var(--hair) solid var(--rule); background: var(--paper-2); }
  .storyboard .sb .sbimg { position: relative; width: 100%; aspect-ratio: 18341/14120; overflow: hidden; background: var(--paper-2); }
  .storyboard .sb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .storyboard .sb figcaption { padding: 12px 14px; margin: 0; border-top: var(--hair) solid var(--rule); }
}

/* ---------------------------------------------------------------- small diagram labels */
svg .mono-lbl.s { font-size: 12px; letter-spacing: .1em; fill: var(--ink-50); }
.layer .dia svg, svg.dia { display: block; width: 100%; height: 100%; }

/* ---------------------------------------------------------------- concept block plans */
.concept-svg .svgband rect { fill: color-mix(in srgb, var(--tan) 7%, transparent); stroke: none; }
.concept-svg .svgband path { stroke: var(--tan); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; fill: none; }
.concept-svg .svgband text { fill: var(--tan); font-family: var(--mono); letter-spacing: .14em; }
.concept-svg { padding: 2%; }
.concept-svg .grid { stroke: var(--rule); stroke-dasharray: 3 4; }
.concept-svg .zspine { fill: none; stroke: var(--ink); stroke-width: var(--member); vector-effect: non-scaling-stroke; }
.concept-svg .hatch { fill: url(#hx); stroke: none; opacity: .5; }
.concept-svg .zbreeze { stroke-dasharray: 5 4; }
.concept-svg .zlbl { font-family: var(--mono); fill: var(--ink); letter-spacing: .06em; paint-order: stroke fill; stroke: var(--paper); stroke-width: 3.5px; stroke-linejoin: round; }
.concept-svg .zlbl.faint { fill: var(--ink-50); }
.concept-svg .zlbl.dim { fill: var(--ink-50); }
.concept-svg rect.hair, .concept-svg rect.env, .concept-svg rect.member { fill: none; }
.concept-svg .zg { opacity: 1; }
.concept-svg.anim .zg { animation: zonein .5s cubic-bezier(.2,.7,.3,1) both; animation-delay: var(--d, 0ms); }
@keyframes zonein { from { opacity: 0; transform: translateX(var(--dx, 0)); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .concept-svg.anim .zg { animation: none; } }

/* ==========================================================================
   ADDITIONS — concept floor plans (js/planengine.js)
   Monochrome drafting language: solid poché walls, hairline fixtures,
   two stroke weights only. Everything below is additive.
   ========================================================================== */
.cfg-stage .plan-holder {
  position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease;
  pointer-events: none;
}
.cfg-stage .plan-holder.on { opacity: 1; }
.plan-svg { position: absolute; inset: 0; width: 100%; height: 100%; padding: 1.5%; }

/* fills */
.plan-svg .fl      { fill: var(--paper); stroke: none; }
.plan-svg .poche   { fill: var(--ink); stroke: none; }
.plan-svg .punch   { fill: var(--paper); stroke: none; }
.plan-svg .deck    { fill: var(--paper-2); stroke: none; }
.plan-svg .fxg     { fill: color-mix(in srgb, var(--ink) 4%, transparent); stroke: none; }

/* strokes — two weights, both non-scaling so they hold at any stage size */
.plan-svg .fx, .plan-svg .fxl, .plan-svg .fxd, .plan-svg .op, .plan-svg .swing,
.plan-svg .gridln, .plan-svg .deckln, .plan-svg .deckedge, .plan-svg .spedge,
.plan-svg .dimln, .plan-svg .jamb, .plan-svg .slid, .plan-svg .frameline {
  vector-effect: non-scaling-stroke; stroke-linecap: butt; stroke-linejoin: round;
}
.plan-svg .fx      { fill: var(--paper); stroke: var(--ink-70); stroke-width: 1px; }
.plan-svg .fxl     { fill: none; stroke: var(--ink-70); stroke-width: 1px; }
.plan-svg .fxd     { fill: none; stroke: var(--ink-50); stroke-width: 1px; stroke-dasharray: 5 4; }
.plan-svg .op      { fill: none; stroke: var(--ink); stroke-width: 1.4px; }
.plan-svg .jamb    { fill: none; stroke: var(--ink); stroke-width: 1px; }
.plan-svg .slid    { fill: none; stroke: var(--ink-50); stroke-width: 1px; stroke-dasharray: 4 3; }
.plan-svg .swing   { fill: none; stroke: var(--ink-50); stroke-width: 1px; }
.plan-svg .gridln  { fill: none; stroke: var(--rule); stroke-width: 1px; stroke-dasharray: 7 6; }
.plan-svg .deckln  { fill: none; stroke: var(--rule); stroke-width: 1px; }
.plan-svg .deckedge{ fill: none; stroke: var(--ink-50); stroke-width: 1px; stroke-dasharray: 3 4; }
.plan-svg .frameline { fill: none; stroke: var(--ink-50); stroke-width: 1.4px; stroke-dasharray: 9 7; }
.plan-svg .dimln   { fill: none; stroke: var(--ink-50); stroke-width: 1px; }
.plan-svg .pmark   { fill: var(--ink); stroke: none; }
.plan-svg .spband { fill: color-mix(in srgb, var(--ink) 9%, transparent); stroke: none; }
.plan-svg .spedge { fill: none; stroke: var(--ink-50); stroke-width: 1px; stroke-dasharray: 6 5; }

/* text */
.plan-svg text { paint-order: stroke fill; stroke: var(--paper); stroke-width: 3.6px;
  stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.plan-svg .mid { text-anchor: middle; }
.plan-svg .rlbl { font-family: var(--sans); font-weight: 600; fill: var(--ink);
  letter-spacing: .07em; }
.plan-svg .albl { font-family: var(--mono); fill: var(--ink-50); letter-spacing: .09em;
  font-size: calc(var(--fd) * 1px); }
.plan-svg .fxlbl { font-family: var(--mono); fill: var(--ink-50); letter-spacing: .04em;
  stroke-width: 2px; }

/* two cuts of every room name: the long one on a wide stage, the short one
   when the stage is narrow and 1 px buys 75 mm of plan */
.plan-svg .lbl-m { display: none; }
@media (max-width: 700px) {
  .plan-svg .lbl-d { display: none; }
  .plan-svg .lbl-m { display: block; }
  .plan-svg .albl  { font-size: calc(var(--fm) * 1px); }
}
.plan-svg .splbl { fill: var(--ink-70); }

/* entry animation: poché draws in from the living end, then the rest comes up */
.plan-svg.anim .lyr-walls { animation: pocheIn .62s cubic-bezier(.35,0,.2,1) both; }
.plan-svg.anim .lyr-grid  { animation: fadeUp .4s ease both; }
.plan-svg.anim .lyr-deck  { animation: fadeUp .45s ease both .05s; }
.plan-svg.anim .lyr-spine { animation: fadeUp .45s ease both .1s; }
.plan-svg.anim .lyr-floor { animation: fadeUp .4s ease both; }
.plan-svg.anim .lyr-open  { animation: fadeUp .4s ease both .5s; }
.plan-svg.anim .lyr-fix   { animation: fadeUp .45s ease both .6s; }
.plan-svg.anim .lyr-mark  { animation: fadeUp .4s ease both .72s; }
.plan-svg.anim .lyr-lbl   { animation: fadeUp .45s ease both .78s; }
.plan-svg.anim .lyr-ann   { animation: fadeUp .45s ease both .86s; }
@keyframes pocheIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes fadeUp  { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .plan-svg.anim .lyr { animation: none !important; }
}

/* ADDITIONS — tall stage variant for near-square concept plans (courtyard-l) */
.cfg-stage[data-aspect="tall"] { aspect-ratio: 4/3; }
@media (max-width: 640px) { .cfg-stage[data-aspect="tall"] { aspect-ratio: 1/1; } }
