/* =================================================================
   Arc — detail pages (studio / modular / kits / elements)
   Loaded after arc.css and arc-rev3.css. Additive only — reuses the
   existing component language (.sec, .sechead, .ladder, .paths,
   .faq, .spec, .ctaband, .book-grid, .badge, .rv) wherever possible.
   ================================================================= */

/* ---------------------------------------------------------- sub-nav */
.dtabs { border-top: var(--hair) solid var(--rule); border-bottom: var(--hair) solid var(--rule); }
.dtabs .wrap { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); min-height: 52px; flex-wrap: wrap; overflow-x: auto; }
.dtabs a { font: 400 var(--t-sm)/1 var(--sans); text-decoration: none; color: var(--ink-50); padding: 14px 0; border-bottom: var(--member) solid transparent; white-space: nowrap; }
.dtabs a:hover { color: var(--ink); }
.dtabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.dtabs .back { margin-left: auto; color: var(--ink-70); }
.dtabs .back svg { transform: rotate(180deg); margin-right: 6px; vector-effect: non-scaling-stroke; }

/* ---------------------------------------------------------- detail hero */
.dhero { padding-block: clamp(56px, 8vw, 108px) clamp(40px, 6vw, 72px); border-bottom: var(--hair) solid var(--rule); }
.dhero .kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.dhero h1 { font-size: var(--t-hero); line-height: 1.03; letter-spacing: -.01em; max-width: 20ch; }
.dhero .sub { margin-top: 20px; font-size: var(--t-lg); color: var(--ink-70); max-width: 56ch; }
.dhero .facts { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 44px); margin-top: clamp(28px, 4vw, 44px); padding-top: clamp(22px, 3vw, 30px); border-top: var(--member) solid var(--ink); }
.dhero .facts dl { display: flex; flex-direction: column; gap: 4px; }
.dhero .facts dt { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-50); }
.dhero .facts dd { margin: 0; font-size: var(--t-lg); }

/* ---------------------------------------------------------- comparison / pricing tables */
.ladder.cmp th:first-child, .ladder.cmp td:first-child { color: var(--ink-50); }
.ladder.cmp td.yes { color: var(--ink); }
.ladder.cmp td.no { color: var(--ink-50); }
.pricecards { display: grid; gap: clamp(16px, 2.4vw, 28px); grid-template-columns: 1fr; margin-top: clamp(20px, 3vw, 32px); }
@media (min-width: 700px) { .pricecards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }
.pricecard { border: var(--hair) solid var(--rule); padding: clamp(20px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 10px; }
.pricecard .mono { display: block; }
.pricecard .amt { font-size: var(--t-2xl); letter-spacing: -.01em; }
.pricecard .amt small { font-size: var(--t-sm); color: var(--ink-50); font-family: var(--mono); font-weight: 400; letter-spacing: 0; }
.pricecard p { color: var(--ink-70); font-size: var(--t-sm); }

/* ---------------------------------------------------------- process ladder (numbered steps) */
.pstep-list { border-top: var(--member) solid var(--ink); counter-reset: pstep; }
.pstep-list > li { list-style: none; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: clamp(16px, 2vw, 22px) 0; border-bottom: var(--hair) solid var(--rule); counter-increment: pstep; }
.pstep-list > li::before { content: counter(pstep, decimal-leading-zero); font-family: var(--mono); font-size: var(--t-sm); color: var(--ink-50); padding-top: .1em; }
.pstep-list h4 { grid-column: 2; font-size: var(--t-base); margin: 0 0 4px; }
.pstep-list p { grid-column: 2; margin: 0; color: var(--ink-70); font-size: var(--t-sm); }

/* ---------------------------------------------------------- included / excluded lists */
.io-grid { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: 1fr; }
@media (min-width: 780px) { .io-grid { grid-template-columns: 1fr 1fr; } }
.io-col h3 { font-size: var(--t-lg); margin-bottom: 14px; }
.io-col ul { margin: 0; padding: 0; list-style: none; }
.io-col li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; padding: 8px 0; border-bottom: var(--hair) solid var(--rule-2); font-size: var(--t-sm); color: var(--ink-70); }
.io-col li .m { padding-top: .2em; color: var(--ink-50); font-family: var(--mono); }
.io-col.excl li .m { color: var(--ink-50); }

/* ---------------------------------------------------------- tier / spec table (kits) */
.tiertable { width: 100%; border-collapse: collapse; margin-top: clamp(18px, 2.4vw, 28px); }
.tiertable th, .tiertable td { text-align: left; padding: 12px 14px; border-bottom: var(--hair) solid var(--rule-2); font-size: var(--t-sm); }
.tiertable th { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-50); font-weight: 400; }
.tiertable tr:first-child td, .tiertable tr:first-child th { border-top: var(--member) solid var(--ink); }
.tiertable td.tier { font-family: var(--mono); color: var(--ink); }
.srcnote { margin-top: 12px; font-size: var(--t-xs); color: var(--ink-50); font-family: var(--mono); }
/* The wide open-span widths sit alongside the sourced tier table rather than
   inside it, so they read as current supply direction and never get mistaken
   for a line item in the June 2026 specification. */
.widenote { margin-top: 18px; max-width: 62ch; font-size: var(--t-sm); line-height: 1.55; color: var(--ink); border-left: 2px solid var(--ink); padding-left: 16px; }
.widenote strong { font-weight: 600; }

/* ---------------------------------------------------------- transport spec sheet (modular / logistics) */
.transpec { display: grid; gap: 0; grid-template-columns: 1fr; border-top: var(--member) solid var(--ink); margin-top: clamp(18px, 2.4vw, 28px); }
@media (min-width: 640px) { .transpec { grid-template-columns: repeat(3, 1fr); } }
.transpec div { padding: 16px 18px; border-bottom: var(--hair) solid var(--rule); border-right: var(--hair) solid var(--rule); }
.transpec div:last-child { border-right: 0; }
.transpec dt { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-50); }
.transpec dd { margin: 6px 0 0; font-size: var(--t-lg); }

/* ---------------------------------------------------------- explore grid (index page) */
.explore-grid { display: grid; gap: 0; grid-template-columns: 1fr; border-top: var(--member) solid var(--ink); }
@media (min-width: 700px) { .explore-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .explore-grid { grid-template-columns: repeat(4, 1fr); } }
.xcard {
  display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 3vw, 34px) clamp(18px, 2vw, 26px);
  border-bottom: var(--hair) solid var(--rule); border-right: var(--hair) solid var(--rule);
  text-decoration: none; color: var(--ink); transition: background .2s ease;
}
@media (min-width: 700px) { .xcard:nth-child(2n) { border-right: 0; } }
@media (min-width: 1100px) { .xcard:nth-child(2n) { border-right: var(--hair) solid var(--rule); } .xcard:nth-child(4n) { border-right: 0; } }
.xcard:hover { background: var(--paper-2); }
.xcard .xn { margin-bottom: 4px; }
.xcard h3 { font-size: var(--t-xl); margin: 0; }
.xcard p { margin: 0; color: var(--ink-70); font-size: var(--t-sm); flex: 1; }
.xcard .xgo { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-top: 6px; }
.xcard .xgo svg { transform: rotate(-90deg); }
.xcard:hover .xgo svg { transform: rotate(-90deg) translateX(2px); }

/* ---------------------------------------------------------- elements: systems overview cards */
.sys-grid { display: grid; gap: clamp(24px, 3vw, 40px); grid-template-columns: 1fr; margin-top: clamp(24px, 3vw, 36px); }
@media (min-width: 860px) { .sys-grid { grid-template-columns: repeat(3, 1fr); } }
.sys-card { border-top: var(--member) solid var(--ink); padding-top: 18px; }
.sys-card .sn { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em; color: var(--ink-50); }
.sys-card h3 { font-size: var(--t-xl); margin: 8px 0 10px; }
.sys-card p { color: var(--ink-70); font-size: var(--t-sm); margin-bottom: 12px; }
.sys-card ul { margin: 0; padding: 0; list-style: none; }
.sys-card li { font-size: var(--t-sm); color: var(--ink-70); padding: 7px 0; border-top: var(--hair) solid var(--rule-2); }

/* ---------------------------------------------------------- elements: profile row (doors) */
.profile-row { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: 1fr; margin-top: clamp(20px, 3vw, 30px); }
@media (min-width: 700px) { .profile-row { grid-template-columns: repeat(5, 1fr); } }
.profile { border: var(--hair) solid var(--rule); padding: 14px; text-align: center; }
.profile .pdia { width: 100%; aspect-ratio: 1/1.6; background: var(--paper-2); margin-bottom: 10px; }
.profile .pdia svg { width: 100%; height: 100%; display: block; }
.profile .pname { font-size: var(--t-xs); font-family: var(--mono); letter-spacing: .06em; color: var(--ink-70); }

/* ---------------------------------------------------------- elements: reveal spec badge row */
.revealspec { display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 36px); }
.revealspec .rs { display: flex; flex-direction: column; gap: 4px; }
.revealspec dt { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-50); }
.revealspec dd { margin: 0; font-size: var(--t-lg); }

/* ---------------------------------------------------------- elements: palette chips (real collection colours) */
.palette-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(18px, 2.4vw, 26px); }
.pchip { display: flex; align-items: center; gap: 9px; border: var(--hair) solid var(--rule); padding: 9px 14px 9px 10px; background: var(--paper); cursor: pointer; font: inherit; transition: border-color .2s ease, transform .15s ease; }
.pchip:hover { border-color: var(--ink-50); }
.pchip:active { transform: scale(.97); }
.pchip[aria-current="true"] { border-color: var(--ink); border-width: var(--member); }
.pchip .sw { width: 16px; height: 16px; border: var(--hair) solid var(--ink); flex: 0 0 auto; border-radius: 50%; }
.pchip .nm { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .06em; color: var(--ink-70); }

/* ==================================================================
   Elements finish configurator — real fixed-camera photographs only,
   no drawn/schematic build-up. This is the one page allowed real
   colour.
   ================================================================== */

/* Static, photoreal finish configurator — a single fixed-camera photo
   stage with six pixel-identical renders crossfading on top of one
   another (see .elm-photo-stack + .asm-photo-layer in css/arc.css). No
   drawn/schematic build sequence: the room is always shown as a real
   photograph, only the selected finish changes. */
.elm-config { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin: clamp(28px, 4vw, 44px) auto 0; }
.elm-config-stage { position: relative; width: 100%; aspect-ratio: 1016 / 1020; background: var(--paper-2); border: var(--hair) solid var(--rule); overflow: hidden; }
.elm-photo-stack { position: relative; width: 100%; height: 100%; }

.elm-swatchrow { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: var(--hair) solid var(--rule-2); }
.swatch-hint {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--tan); text-transform: uppercase; letter-spacing: .08em;
}
.swatch-hint .arw.down { width: 13px; height: 8px; transform: rotate(90deg); flex: 0 0 auto; animation: hint-nudge 1.8s ease-in-out infinite; }
@keyframes hint-nudge {
  0%, 100% { transform: rotate(90deg) translateX(0); }
  50% { transform: rotate(90deg) translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .swatch-hint .arw.down { animation: none; }
}
.swbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.swbtns button { width: 30px; height: 30px; border-radius: 50%; background: var(--sw); border: var(--hair) solid var(--ink); cursor: pointer; padding: 0; position: relative; transition: transform .15s ease; }
.swbtns button:hover { transform: scale(1.12); }
.swbtns button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .swbtns button { transition: none; }
}

/* ---------------------------------------------------------- sequence animations (kits / modular / studio) */
/* Generic click/tick-driven stepper stage — monochrome line-art, matching the homepage assembly
   drafting style. Distinct from .elm-* (Elements is the only page that gets real colour). */
.dan-wrap { display: grid; gap: clamp(24px, 3vw, 44px); grid-template-columns: 1fr; margin-top: clamp(28px, 4vw, 44px); }
@media (min-width: 980px) { .dan-wrap { grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.74fr); } }
.dan-stage { position: relative; width: 100%; background: var(--paper-2); border: var(--hair) solid var(--rule); overflow: hidden; }
.dan-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dan-stagecap { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }

.kit-stage { aspect-ratio: 6900 / 7000; }
.mod-stage { aspect-ratio: 10300 / 8900; }
.stu-stage { aspect-ratio: 1200 / 900; }

.dan-layer { opacity: 0; transform: translateY(50px) scale(.99); transform-origin: 50% 100%; transition: opacity .5s cubic-bezier(.2,.7,.3,1), transform .5s cubic-bezier(.2,.7,.3,1); }
.dan-layer.on { opacity: 1; transform: none; }

.dan-line { fill: none; stroke: var(--ink); stroke-width: var(--member); vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.dan-line-2 { fill: none; stroke: var(--ink-70); stroke-width: 1.3px; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.dan-line-3 { fill: none; stroke: var(--ink-50); stroke-width: var(--hair); vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.dan-fill { fill: color-mix(in srgb, var(--ink) 7%, transparent); stroke: var(--ink); stroke-width: var(--member); vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.dan-fill-2 { fill: color-mix(in srgb, var(--ink) 15%, transparent); stroke: var(--ink); stroke-width: var(--member); vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.dan-dot { fill: var(--ink); stroke: none; }
.dan-dash { fill: none; stroke: var(--ink-50); stroke-width: var(--hair); stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.dan-hatch { fill: none; stroke: var(--ink-50); stroke-width: var(--hair); vector-effect: non-scaling-stroke; }
.dan-sheet { fill: var(--paper); stroke: var(--ink-50); stroke-width: var(--hair); vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.dan-glass { fill: color-mix(in srgb, var(--ink) 7%, transparent); stroke: var(--ink-50); stroke-width: var(--hair); vector-effect: non-scaling-stroke; }
.dan-doorglass { fill: color-mix(in srgb, var(--ink) 22%, transparent); stroke: var(--ink-50); stroke-width: var(--hair); vector-effect: non-scaling-stroke; }
.dan-swing { fill: none; stroke: var(--ink-50); stroke-width: var(--hair); vector-effect: non-scaling-stroke; }
.dan-lbl { font-family: var(--mono); font-size: 130px; fill: var(--ink); letter-spacing: .02em; }
.dan-ldr { fill: none; stroke: var(--ink-50); stroke-width: var(--hair); vector-effect: non-scaling-stroke; }

/* Studio sheet-specific marks (flat drafting sheet, not isometric) */
.stu-stage .stamp-ring { fill: none; stroke: var(--ink); stroke-width: 3; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.stu-stage .stamp-check { fill: none; stroke: var(--ink); stroke-width: 4; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.stu-stage .grid-dot { fill: var(--ink-50); }
.stu-stage .swing { fill: none; stroke: var(--ink-70); stroke-width: 2; vector-effect: non-scaling-stroke; }
.stu-stage .plan-wall { fill: none; stroke: var(--ink); stroke-width: 5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.stu-stage .plan-part { fill: none; stroke: var(--ink); stroke-width: 3.5; vector-effect: non-scaling-stroke; }
.stu-stage .tblock-line { fill: none; stroke: var(--ink-50); stroke-width: 2; vector-effect: non-scaling-stroke; }
.stu-stage .dim-line { fill: none; stroke: var(--ink-50); stroke-width: 2; vector-effect: non-scaling-stroke; }

@media (prefers-reduced-motion: reduce) {
  .dan-layer { transition: none; }
}

/* Design-path cards (Studio 04). Same frame as .pricecard, but the headline
   is the path name instead of a dollar figure, so it sits at heading scale
   rather than display scale -- four cards across need the smaller step. The
   note line is pushed to the bottom so the cards keep a common baseline
   even when the descriptions run to different lengths. */
.pricecard .pname { font-size: var(--t-lg); font-weight: 500; letter-spacing: -.005em; line-height: 1.25; }
.pricecard .pnote {
  margin-top: auto; padding-top: 12px; border-top: var(--hair) solid var(--rule);
  font: 400 var(--t-xs)/1.4 var(--mono); letter-spacing: .12em; color: var(--ink-50);
}
