/* Owens Corning · Roof Museum & Lab — Super Arbor Brand Hall */
@font-face { font-family: 'Arbor Mulish'; src: url(../assets/arbor-mulish.woff2) format('woff2'); font-weight: 200 900; font-style: normal; font-display: swap; }

:root {
  --paper: #f1f0e9; --paper-2: #e9e7de; --paper-3: #fbfaf6; --ink: #1d231f; --ink-2: #39413b; --muted: #59625b;
  --line: #d6d3c7; --line-2: #c6c2b4; --green: #173b2b; --green-2: #23503b; --green-tint: #dfe5d8;
  --orange: #b9471d; --orange-2: #9f3c17;
  --gallery: #0d1511; --gallery-2: #131c17; --gallery-3: #1b2620; --on-dark: #ede9df; --on-dark-2: #c3c9bf; --on-dark-line: #2d3a32; --amber: #e9b18c;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Arbor Mulish', 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 4px; --gutter: clamp(16px, 3.4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; margin: 0; }
h1 em, h2 em, h3 em { font-style: italic; }
p { margin: 0; }
[hidden] { display: none !important; }
section[id], .bill { scroll-margin-top: 64px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.museum :focus-visible { outline-color: var(--amber); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--green); color: #fff; padding: 12px 16px; border-radius: var(--radius); text-decoration: none; }
.skip:focus { top: 12px; }

/* The shared Brand Hall script prepends a back bar when the page is opened on its own. */
body > aside:first-child { padding-top: 0 !important; padding-bottom: 0 !important; row-gap: 0 !important; }
body > aside:first-child a { display: inline-flex; align-items: center; min-height: 44px; }
body > aside:first-child span { padding: 6px 0; }
@media (max-width: 640px) { body > aside:first-child { position: relative !important; } }

.eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.eyebrow--dark { color: var(--on-dark-2); }
.num { font-variant-numeric: tabular-nums; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px var(--gutter); border-bottom: 1px solid var(--line); background: var(--paper); flex-wrap: wrap; }
.lockup { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; text-decoration: none; color: var(--ink); }
.lockup img { height: 27px; width: auto; }
.lockup span { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); border-left: 1px solid var(--line-2); padding-left: 14px; }
.site-nav { display: flex; gap: 4px 22px; flex-wrap: wrap; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; color: var(--ink-2); border-bottom: 1px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--ink-2); }
@media (max-width: 720px) { .site-nav { display: none; } }

/* ── I · Museum ─────────────────────────────────────────────── */
.museum { background: var(--gallery); color: var(--on-dark); padding: clamp(20px, 3vw, 36px) var(--gutter) clamp(22px, 3vw, 34px); }
.museum__grid { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr) minmax(280px, 340px); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.museum__intro { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.museum h1 { font-size: clamp(38px, 4.1vw, 60px); line-height: 1.0; color: #f6f2e8; }
.museum h1 em { display: block; color: var(--amber); }
.museum__lede { color: var(--on-dark-2); font-size: 16px; line-height: 1.6; }
.parts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.parts button { width: 100%; min-height: 44px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; text-align: left; background: transparent; border: 1px solid var(--on-dark-line); border-radius: var(--radius); color: var(--on-dark); padding: 8px 12px; cursor: pointer; font-size: 15px; transition: background-color .2s, border-color .2s; }
.parts button .n { font-size: 13px; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.parts button .s { font-size: 13px; color: var(--on-dark-2); }
.parts button:hover { border-color: #4d6156; background: var(--gallery-2); }
.parts button[aria-pressed='true'] { background: #f1ece0; color: var(--green); border-color: #f1ece0; }
.parts button[aria-pressed='true'] .n, .parts button[aria-pressed='true'] .s { color: var(--green-2); }
.museum__controls { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.btn-dark { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #4b5d52; background: transparent; color: var(--on-dark); font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-dark:hover { background: var(--gallery-3); }
.btn-dark[aria-pressed='false'] { border-color: var(--amber); color: var(--amber); }

.museum__stage { position: relative; min-height: 560px; height: min(76vh, 760px); border-radius: 6px; overflow: hidden; background: radial-gradient(120% 90% at 50% 30%, #1a241e 0%, var(--gallery) 70%); }
.museum__stage canvas, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.museum__stage canvas { cursor: grab; }
.museum__stage canvas:active { cursor: grabbing; }
.still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pins { position: absolute; inset: 0; pointer-events: none; }
.pin { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px; border-radius: 999px; border: 0; background: rgba(241, 236, 224, 0.96); color: var(--green); font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: opacity .25s, transform .25s; white-space: nowrap; }
.pin b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #f1ece0; font-size: 13px; font-variant-numeric: tabular-nums; }
.pin span { display: none; padding-right: 7px; }
.pin:hover span, .pin.is-active span { display: inline; }
.pin:hover, .pin.is-active { z-index: 2; }
.pin.is-hidden { opacity: 0; pointer-events: none; }
.pin.is-active { background: var(--amber); color: #2b170c; }
.pin.is-active b { background: #2b170c; color: var(--amber); }
.pin::after { content: ''; position: absolute; inset: -6px; }
.museum__hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: 13px; color: var(--on-dark-2); background: var(--gallery); border: 1px solid var(--on-dark-line); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.stage-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 14px; color: var(--on-dark-2); background: var(--gallery); border: 1px solid var(--on-dark-line); padding: 10px 16px; border-radius: 999px; }
.stage .stage-loading { color: var(--ink-2); background: var(--paper-3); border: 1px solid var(--line); }
.stage-loading[hidden] { display: none; }

.museum__panel { background: #f1ece0; color: var(--ink); border-radius: 6px; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 12px; align-self: stretch; overflow: auto; max-height: min(76vh, 760px); }
.museum__panel > * { flex-shrink: 0; }
.museum__panel .kicker { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.museum__panel h2 { font-size: 34px; line-height: 1.05; color: var(--green); }
.museum__panel .job { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.museum__panel h3 { font-family: var(--sans); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--green-2); margin-top: 4px; }
.museum__panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.museum__panel li { font-size: 14px; line-height: 1.5; padding-left: 18px; position: relative; color: var(--ink-2); }
.museum__panel li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border: 1.5px solid var(--green-2); border-radius: 50%; }
.listing-chip { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 10px; border: 1px solid #d9d1bf; border-radius: var(--radius); background: #f8f5ee; text-decoration: none; min-height: 44px; }
.listing-chip img { width: 56px; height: 56px; object-fit: cover; border-radius: 3px; background: #fff; }
.listing-chip span { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.listing-chip strong { display: block; font-size: 14px; color: var(--ink); font-weight: 700; }
.listing-chip:hover { border-color: var(--green-2); }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--green); text-decoration: underline; text-underline-offset: 4px; background: none; border: 0; padding: 0; cursor: pointer; }
.stack { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 6px; }
.stack li { padding-left: 0 !important; display: grid; grid-template-columns: 28px 1fr; gap: 8px; font-size: 14px; }
.stack li::before { display: none; }
.stack li span:first-child { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.museum__placard { margin-top: 16px; font-size: 13px; line-height: 1.6; color: var(--on-dark-2); max-width: 980px; }
.museum__placard strong { color: var(--on-dark); }

@media (max-width: 1340px) and (min-width: 1181px) {
  .museum__grid { grid-template-columns: 280px minmax(0, 1fr) 300px; }
  .museum h1 { font-size: clamp(36px, 3.4vw, 48px); }
  .museum__lede { font-size: 15px; }
  .parts button { grid-template-columns: 26px 1fr; }
  .parts button .s { display: none; }
  .museum__panel { padding: 18px; }
  .museum__panel h2 { font-size: 30px; }
}
@media (max-width: 1180px) and (min-width: 821px) {
  /* intro → [stage | panel] → parts row: the specimen stays in the first view */
  .museum__grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); row-gap: 16px; }
  .museum__intro { display: contents; }
  .museum__intro > .eyebrow, .museum__intro > h1, .museum__intro > .museum__lede { grid-column: 1 / -1; }
  .museum__intro > .eyebrow { order: 1; } .museum__intro > h1 { order: 2; } .museum__intro > .museum__lede { order: 3; max-width: 70ch; }
  .museum h1 em { display: inline; }
  .museum__stage { order: 4; grid-column: 1; height: min(68vh, 640px); min-height: 480px; }
  .museum__panel { order: 5; grid-column: 2; max-height: min(68vh, 640px); }
  .parts { order: 6; grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .parts button { grid-template-columns: 26px 1fr; }
  .parts button .s { display: none; }
  .museum__controls { order: 7; grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .museum__grid { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .museum__intro { display: contents; }
  .museum__intro > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .museum__intro > .eyebrow { order: 1; } .museum__intro > h1 { order: 2; } .museum__intro > .museum__lede { order: 3; }
  .museum__stage { order: 4; } .parts { order: 5; } .museum__controls { order: 6; } .museum__panel { order: 7; }
  .museum__stage { height: auto; aspect-ratio: 1 / 1.02; min-height: 0; }
  .museum__panel { max-height: none; }
  .parts { grid-template-columns: 1fr 1fr; }
  .parts button { grid-template-columns: 24px 1fr; padding: 8px 10px; font-size: 14px; }
  .parts button .s { display: none; }
  .pin:hover span { display: none; }
}

/* ── II · Lab ───────────────────────────────────────────────── */
.lab { padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(32px, 5vw, 64px); }
.lab__head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: 26px; }
.lab__head h2 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.0; margin-top: 10px; }
.lab__head h2 em { display: block; }
.lab__intro { font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 520px; }
@media (max-width: 820px) { .lab__head { grid-template-columns: 1fr; } }

.directions { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; border: 1px solid var(--line); border-bottom: 0; padding: 12px; background: var(--paper-3); }
.direction { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; min-height: 56px; min-width: 0; flex: 1 1 220px; max-width: 320px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
.direction img { width: 44px; height: 44px; object-fit: cover; object-position: 0 0; border-radius: 2px; display: block; }
.direction small { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.direction strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.direction em { font-style: normal; font-size: 13px; color: var(--muted); }
.direction.is-active { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: var(--green-tint); }
.compare-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; font-weight: 600; font-size: 14px; }
.compare-toggle__icon { width: 18px; height: 14px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; }
.compare-toggle__icon::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1.5px; background: currentColor; }
.compare-toggle[aria-pressed='true'] { background: var(--green); color: #fff; border-color: var(--green); }
@media (max-width: 720px) {
  .directions { padding: 8px; gap: 8px; }
  .direction { max-width: none; flex-basis: calc(50% - 4px); grid-template-columns: 34px minmax(0, 1fr); gap: 8px; padding: 6px 8px 6px 6px; }
  .direction img { width: 34px; height: 34px; }
  .direction small { letter-spacing: .06em; }
  .direction strong { font-size: 13px; }
  .direction em { display: none; }
  .compare-toggle { margin-left: 0; flex: 1 1 100%; justify-content: center; min-height: 48px; }
}

.tabs { display: flex; border: 1px solid var(--line); background: var(--paper); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role='tab'] { flex: 0 0 auto; min-height: 56px; padding: 0 22px; border: 0; border-right: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 15px; color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; box-shadow: inset 0 -2px 0 transparent; }
.tabs [role='tab'] span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tabs [role='tab'][aria-selected='true'] { background: var(--green-tint); color: var(--ink); box-shadow: inset 0 -3px 0 var(--green); }
.tabs [role='tab']:hover { color: var(--ink); }
@media (max-width: 720px) { .tabs { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; } .tabs [role='tab'] { padding: 0 12px; white-space: normal; text-align: left; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 14px; } }

.lab__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 390px); border: 1px solid var(--line); border-top: 0; background: #fff; }
.stage { position: relative; min-height: 560px; height: min(72vh, 720px); background: #e6e5dc; overflow: hidden; }
.stage canvas { cursor: grab; touch-action: pan-y; }
.stage__caption { position: absolute; left: 16px; top: 16px; z-index: 3; background: var(--paper-3); border: 1px solid var(--line); padding: 10px 14px; border-radius: 2px; max-width: calc(100% - 32px); }
.stage__eyebrow { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.stage__title { font-family: var(--serif); font-size: 24px; line-height: 1.15; }
.stage__bottom { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; pointer-events: none; }
.stage__bottom > * { pointer-events: auto; }
.seg { display: inline-flex; background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 3px; gap: 2px; }
.seg button { min-height: 44px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 3px; background: transparent; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.seg button[aria-pressed='true'] { background: var(--green); color: #fff; }
.seg button:hover:not([aria-pressed='true']) { background: var(--paper-2); }
.seg--wide { display: flex; }
.seg--wide button { flex: 1; min-height: 44px; }
.orbit-hint { margin-left: auto; font-size: 13px; color: var(--ink-2); background: var(--paper-3); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.stage__labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.edge-label { position: absolute; transform: translate(-50%, -50%); font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 999px; color: #fff; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.edge-label--eave, .key--eave { background: #2f6f8f; }
.edge-label--rake, .key--rake { background: #5b7f3a; }
.edge-label--ridge, .key--ridge { background: #8a4b1d; }
.edge-label--hip, .key--hip { background: #6b4d8a; }
.edge-label--valley, .key--valley { background: #1f4f6b; }
.wx-label { background: var(--paper-3); color: var(--ink); border: 1px solid var(--line); font-weight: 600; }
.wx-label--warn { background: var(--green); color: #fff; border-color: var(--green); }
.key { display: inline-block; color: #fff; font-size: 13px; padding: 1px 8px; border-radius: 999px; margin: 2px 2px 2px 0; }
.compare { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.compare__tag { position: absolute; top: 88px; z-index: 3; font-size: 13px; font-weight: 700; background: var(--paper-3); border: 1px solid var(--line); padding: 6px 10px; border-radius: 2px; max-width: 42%; }
.compare__tag--a { left: 16px; }
.compare__tag--b { right: 16px; text-align: right; }
.compare__line { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); left: 50%; }
.compare__line span { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.compare__line span::before, .compare__line span::after { content: ''; position: absolute; top: 50%; width: 0; height: 0; border: 6px solid transparent; transform: translateY(-50%); }
.compare__line span::before { left: 6px; border-right-color: var(--ink); }
.compare__line span::after { right: 6px; border-left-color: var(--ink); }
.compare input[type='range'] { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); width: 100%; height: 44px; margin: 0; opacity: 0; pointer-events: auto; cursor: ew-resize; }
.compare input[type='range']:focus-visible + * , .compare input[type='range']:focus-visible { opacity: 0.001; }
.compare:focus-within .compare__line span { outline: 3px solid var(--green); outline-offset: 2px; }
.section-drawing { position: absolute; inset: 0; z-index: 4; background: var(--paper-3); display: flex; flex-direction: column; }
.section-drawing__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.section-drawing__bar p { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.section-drawing__svg { flex: 1; min-height: 0; overflow: auto; padding: 12px; }
.section-drawing__svg svg { width: 100%; height: 100%; min-height: 380px; display: block; }
.sx-legend { margin: 10px 0 0; padding: 0 0 0 26px; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.sx-legend li::marker { font-weight: 700; color: var(--green); }
.sx-legend strong { color: var(--ink); }
.sx-note { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
@media (max-width: 720px) {
  .section-drawing { position: absolute; }
  .section-drawing__svg { overflow: auto; }
  .section-drawing__svg svg { height: auto; min-height: 0; }
}

.panels { border-left: 1px solid var(--line); min-width: 0; }
.panel { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 18px; max-height: min(72vh, 720px); overflow: auto; }
.panel[hidden] { display: none; }
.panel__kicker { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.panel__title { font-size: 34px; line-height: 1.05; margin-top: -6px; }
.field { border: 0; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.field legend, .field__label { padding: 0; font-size: 14px; font-weight: 600; color: var(--ink); display: flex; gap: 8px; align-items: baseline; width: 100%; margin-bottom: 10px; }
.field__label { margin-bottom: 0; }
.field legend span, .num { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.field legend small { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--muted); }
.lines { display: grid; gap: 6px; }
.line-opt { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; text-align: left; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
.line-opt strong { font-size: 15px; font-weight: 700; }
.line-opt .lo-count { font-size: 13px; color: var(--muted); text-align: right; align-self: center; }
.line-opt .lo-meta { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.line-opt .lo-price { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); }
.line-opt[aria-pressed='true'] { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: var(--green-tint); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.swatch { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; min-width: 0; }
.swatch img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 0 0; border-radius: 3px; border: 1px solid var(--line); display: block; background: var(--paper-2); }
.swatch span { font-size: 13px; line-height: 1.25; color: var(--ink-2); }
.swatch[aria-pressed='true'] img { outline: 2px solid var(--green); outline-offset: 2px; }
.swatch[aria-pressed='true'] span { color: var(--ink); font-weight: 700; }
.swatch-note, .hint, .note { font-size: 13px; line-height: 1.55; color: var(--muted); }
.note { border-top: 1px solid var(--line); padding-top: 12px; }
.pick { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px; border: 1px solid var(--line); background: var(--paper-3); border-radius: var(--radius); }
.pick img { width: 72px; height: 72px; object-fit: cover; object-position: 0 0; border-radius: 3px; }
.pick p { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.pick .pick__title { font-size: 14px; font-weight: 700; color: var(--ink); }
.pick .pick__price { font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--ink); }
.pick .pick__price small { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.pick a { grid-column: 1 / -1; }
.compare-card { border: 1px solid var(--line); background: var(--paper-3); border-radius: var(--radius); padding: 12px; display: grid; gap: 10px; }
.compare-card__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compare-card__col { display: grid; gap: 4px; align-content: start; min-width: 0; }
.compare-card__col p { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.compare-card__col .t { font-size: 14px; font-weight: 700; color: var(--ink); }
.compare-card__col .v { font-family: var(--serif); font-size: 24px; line-height: 1.1; color: var(--ink); }
.compare-card__diff { font-size: 14px; color: var(--ink); border-top: 1px solid var(--line); padding-top: 8px; }
.iq { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 12px; min-width: 0; }
.iq__q { display: grid; gap: 8px; min-width: 0; }
.iq__q p { font-size: 14px; line-height: 1.55; }
.iq__opts { display: flex; gap: 6px; flex-wrap: wrap; }
.iq__opts button { min-height: 44px; min-width: 52px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; cursor: pointer; font-size: 14px; }
.iq__opts button[aria-pressed='true'].is-right { background: var(--green); border-color: var(--green); color: #fff; }
.iq__opts button[aria-pressed='true'].is-wrong { background: var(--paper-2); border-color: var(--ink-2); text-decoration: line-through; }
.iq__why { font-size: 13px; line-height: 1.55; color: var(--ink-2); border-left: 2px solid var(--green-2); padding-left: 10px; }
.range-label { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; }
.range-label output { font-weight: 400; color: var(--muted); font-size: 14px; }
input[type='range'] { width: 100%; height: 44px; margin: 0; accent-color: var(--green); background: transparent; cursor: pointer; }
.layer-list { display: grid; gap: 4px; }
.layer-btn { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: center; min-height: 44px; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; font-size: 14px; }
.layer-btn i { width: 18px; height: 18px; border-radius: 3px; border: 1px solid rgba(0,0,0,.18); }
.layer-btn small { grid-column: 2; font-size: 13px; color: var(--muted); line-height: 1.4; }
.layer-btn[aria-pressed='true'] { border-color: var(--green); background: var(--green-tint); box-shadow: inset 0 0 0 1px var(--green); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-line { min-height: 44px; padding: 0 14px; border: 1px solid var(--ink-2); border-radius: 999px; background: #fff; cursor: pointer; font-size: 14px; font-weight: 600; }
.btn-line:hover { background: var(--paper-2); }
.btn-ghost { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); }
.weather-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.weather-grid button { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 76px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; font-size: 14px; font-weight: 600; text-align: left; }
.weather-grid button[aria-checked='true'] { border-color: var(--green); background: var(--green-tint); box-shadow: inset 0 0 0 1px var(--green); }
.wx-icon { width: 22px; height: 22px; display: block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; color: var(--green-2); }
.wx-icon--wind { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 8h11a3 3 0 1 0-3-3M3 12h16a3 3 0 1 1-3 3M3 16h8'/%3E%3C/svg%3E"); }
.wx-icon--rain { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 15a4 4 0 0 1 .5-8A6 6 0 0 1 19 9a3.5 3.5 0 0 1-1 6.8M8 18l-1 3M12 18l-1 3M16 18l-1 3'/%3E%3C/svg%3E"); }
.wx-icon--ice { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 2v20M4 6l16 12M20 6 4 18M9 3l3 3 3-3M9 21l3-3 3 3'/%3E%3C/svg%3E"); }
.wx-icon--heat { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E"); }
.weather-detail { display: flex; flex-direction: column; gap: 12px; border-left: 2px solid var(--green-2); padding-left: 14px; }
.weather-detail h4 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; margin: 0; }
.weather-detail p { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.weather-detail .check { font-size: 14px; color: var(--ink); background: var(--paper-3); border: 1px solid var(--line); padding: 10px 12px; border-radius: var(--radius); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-size: 14px; font-weight: 600; cursor: pointer; }
.toggle input { width: 22px; height: 22px; accent-color: var(--green); }

.plan-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 12px; }
.plan-form input[type='number'], .plan-form select { width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; font-size: 15px; }
.plan-form input:focus-visible, .plan-form select:focus-visible { outline: 3px solid var(--green); outline-offset: 1px; }
.plan-area { grid-column: 1 / -1; display: grid; gap: 6px; }
.plan-area label { font-size: 14px; font-weight: 600; }
.plan-area__row { display: grid; grid-template-columns: 1fr 120px; gap: 8px; }
.plan-field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.plan-field small { font-weight: 400; color: var(--muted); font-size: 13px; }
.plan-field--wide { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.plan-check { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; cursor: pointer; }
.plan-check input { width: 22px; height: 22px; accent-color: var(--green); flex: none; }
.plan-hint { grid-column: 1 / -1; margin-top: -4px; }

@media (max-width: 1080px) {
  .lab__layout { grid-template-columns: minmax(0, 1fr); }
  .panels { border-left: 0; border-top: 1px solid var(--line); }
  .panel { max-height: none; }
  .stage { height: min(64vh, 620px); min-height: 420px; }
}
@media (max-width: 720px) {
  .stage { height: auto; aspect-ratio: 4 / 4.4; min-height: 0; }
  .stage__caption { left: 10px; top: 10px; padding: 8px 10px; }
  .stage__title { font-size: 19px; }
  .stage__bottom { left: 8px; right: 8px; bottom: 8px; gap: 6px; }
  .stage__bottom .seg button { padding: 0 9px; font-size: 13px; }
  .orbit-hint { display: none; }
  .panel { padding: 20px 16px 24px; }
  .compare__tag { top: auto; bottom: 64px; }
}

/* Bill */
.bill { margin-top: 28px; border: 1px solid var(--line); background: #fff; padding: clamp(18px, 2.4vw, 30px); }
.bill__head { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.bill__head h3 { font-size: clamp(30px, 3vw, 40px); line-height: 1.05; margin-top: 6px; }
.bill__meta { font-size: 13px; color: var(--muted); max-width: 520px; text-align: right; }
.bill__table-wrap { overflow-x: auto; }
.bill__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bill__table th { text-align: left; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 8px; border-bottom: 1px solid var(--line-2); }
.bill__table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bill__table small { font-size: 13px; }
.bill__table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); font-size: 14px; font-weight: 400; }
.bill__table th.num { font-size: 13px; }
.bill__prod { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start; }
.bill__prod img { width: 48px; height: 48px; object-fit: cover; object-position: 0 0; border-radius: 3px; border: 1px solid var(--line); background: var(--paper-2); }
.bill__role { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.bill__title { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.bill__title:hover { text-decoration-color: var(--ink); }
.bill__math { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.bill__desk td { background: #fbf6ef; }
.bill__desk .bill__role { color: var(--orange-2); }
.bill__checks { display: grid; gap: 6px; margin-top: 14px; }
.bill__checks p { font-size: 13px; line-height: 1.55; color: var(--ink-2); padding-left: 14px; border-left: 2px solid var(--line-2); }
.bill__foot { display: flex; justify-content: space-between; align-items: end; gap: 18px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.bill__total-label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.bill__total-value { font-family: var(--serif); font-size: clamp(40px, 4.4vw, 56px); line-height: 1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.bill__total-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.bill__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; }
.btn-primary { background: var(--orange); color: #fff; border: 1px solid var(--orange); }
.btn-primary:hover { background: var(--orange-2); }
.btn-primary[aria-disabled='true'] { background: #c9c4b8; border-color: #c9c4b8; color: #4d4a43; pointer-events: none; }
.btn-secondary { background: var(--green); color: #fff; border: 1px solid var(--green); }
.btn-secondary:hover { background: var(--green-2); }
.bill__fine { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 14px; }
@media (max-width: 720px) {
  .bill__meta { text-align: left; }
  .bill__table thead { display: none; }
  .bill__table, .bill__table tbody, .bill__table tr, .bill__table td { display: block; width: 100%; }
  .bill__table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .bill__table td { border: 0; padding: 2px 0; }
  .bill__table td.num { text-align: left; display: inline-block; width: auto; margin-right: 14px; }
  .bill__table td.num::before { content: attr(data-label) ' '; color: var(--muted); font-size: 13px; }
  .bill__table td.unit { display: none; }
  .bill__actions { width: 100%; }
  .bill__actions a, .bill__actions button { flex: 1 1 100%; }
}

/* ── III · Catalog ──────────────────────────────────────────── */
.catalog { padding: clamp(32px, 5vw, 64px) var(--gutter); border-top: 1px solid var(--line); }
.catalog__head { max-width: 760px; display: grid; gap: 10px; margin-bottom: 24px; }
.catalog__head h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; }
.catalog__head p { color: var(--ink-2); }
.catalog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; min-width: 0; }
.card:hover { border-color: var(--green-2); }
.card__img { aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__img--contain img { object-fit: contain; padding: 10px; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.card__kind { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.card__title { font-size: 14px; line-height: 1.45; font-weight: 600; flex: 1; }
.card__price { font-size: 14px; color: var(--ink); }
.card__price small { display: block; font-size: 13px; color: var(--muted); }
.card__cta { font-size: 14px; font-weight: 700; color: var(--green); }
.catalog__all { margin-top: 22px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); }
.catalog__all summary { min-height: 52px; display: list-item; padding: 14px 16px; cursor: pointer; font-weight: 600; line-height: 1.5; }
.catalog__table-wrap { overflow-x: auto; padding: 0 16px 16px; }
.catalog__table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.catalog__table th { text-align: left; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line-2); }
.catalog__table td { padding: 8px; border-bottom: 1px solid var(--line); }
.catalog__table td.num, .catalog__table th.num { text-align: right; }
.catalog__table a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
@media (max-width: 720px) { .catalog__grid { grid-template-columns: 1fr 1fr; gap: 10px; } .card__body { padding: 10px; } }

.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 22px var(--gutter) 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.site-footer p { max-width: 760px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ink); }

/* Still-capture mode (?still=museum | house): the stage alone, no UI, for card and fallback renders */
.is-still body > *:not(main), .is-still main > section:not(.museum):not(.lab) { display: none !important; }
.is-still .museum__stage .pins, .is-still .museum__hint, .is-still .stage__caption, .is-still .stage__bottom, .is-still .stage__labels { display: none !important; }
.is-still-museum #museumStage, .is-still-house #labStage { position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100vh !important; min-height: 0 !important; z-index: 9999; border-radius: 0 !important; aspect-ratio: auto !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
