/* Night Atlas — storefront styles */

@font-face { font-family: "NA Cormorant"; src: url("/assets/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "NA Cormorant"; src: url("/assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "NA Cormorant"; src: url("/assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "NA Cormorant"; src: url("/assets/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "NA Cormorant"; src: url("/assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "NA Jost"; src: url("/assets/fonts/jost-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "NA Jost"; src: url("/assets/fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "NA Jost"; src: url("/assets/fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --night: #161f37;
  --night-raised: #1d2843;
  --night-deep: #10172a;
  --star: #f2ebde;
  --mist: #a9b2c7;
  --faint: #78839d;
  --brass: #cdac70;
  --line: rgba(242, 235, 222, 0.13);
  --line-strong: rgba(242, 235, 222, 0.28);
  --serif: "NA Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "NA Jost", Jost, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 48px);
  color-scheme: dark;
}

*, *::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(--night);
  color: var(--star);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.005em; margin: 0; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--star); color: var(--night); padding: 10px 14px; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top of page ---------- */
.notice {
  text-align: center;
  font-size: 14px;
  color: var(--mist);
  padding: 8px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--head-h, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  background: var(--night);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 25px; letter-spacing: 0.01em; }
.wordmark .mark { width: 28px; height: 28px; color: var(--brass); }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { color: var(--mist); text-decoration: none; }
.nav a:hover { color: var(--star); }

/* ---------- designer ---------- */
.designer {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, 0.75fr);
  border-bottom: 1px solid var(--line);
}
.stage {
  position: sticky;
  top: var(--head-h, 64px);
  height: calc(100vh - var(--head-h, 64px));
  height: calc(100svh - var(--head-h, 64px));
  min-height: 520px;
  overflow: hidden;
  background: var(--night-deep);
}
.room {
  position: absolute;
  inset: 0;
  background-color: #84786a;
  background-image:
    radial-gradient(ellipse 58% 52% at 24% 6%, rgba(255, 228, 186, 0.42), rgba(255, 228, 186, 0) 72%),
    radial-gradient(ellipse 120% 90% at 50% 38%, rgba(0, 0, 0, 0) 55%, rgba(26, 18, 10, 0.42) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .32  0 0 0 0 .27  0 0 0 0 .22  0 0 0 .16 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    linear-gradient(180deg, #8d8172 0%, #7a6e60 100%);
  transition: opacity .35s ease;
}
.ledge {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--ledge-h, 13%);
  background: linear-gradient(180deg, #6e5845 0, #5d4a39 6px, #3d3026 7px, #33281f 100%);
  box-shadow: 0 -10px 24px rgba(20, 12, 6, 0.28);
}
.ledge::before { /* lit top edge of the sideboard */
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, rgba(255, 226, 186, 0.55), rgba(255, 226, 186, 0.12) 70%);
}
.art {
  position: absolute;
  left: 50%;
  top: var(--art-top, 10%);
  width: var(--art-w, 300px);
  transform: translateX(-50%);
  transition: width .45s cubic-bezier(.2, .7, .2, 1), top .45s cubic-bezier(.2, .7, .2, 1);
}
.frame {
  position: relative;
  padding: var(--fw, 0px);
  background: #1a1a1c;
  box-shadow:
    0 1px 2px rgba(20, 12, 6, 0.35),
    0 16px 24px -8px rgba(20, 12, 6, 0.5),
    0 42px 64px -24px rgba(20, 12, 6, 0.45);
}
.frame canvas { width: 100%; height: auto; aspect-ratio: 3 / 4; background: #0e1a2e url("/assets/img/plate-brooklyn.webp") center / cover no-repeat; }
.glass {
  position: absolute;
  inset: var(--fw, 0px);
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, 0) 64%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: inset 0 0 calc(var(--fw, 0px) * 0.45) rgba(0, 0, 0, 0.32);
}
.art[data-frame="none"] .frame {
  background: transparent;
  box-shadow: 0 1px 1px rgba(20, 12, 6, 0.35), 0 10px 18px -6px rgba(20, 12, 6, 0.42);
}
.art[data-frame="none"] .glass { background: none; box-shadow: none; }
.art[data-frame="black"] .frame {
  background: #1b1b1d;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.12), inset -1px -1px 0 rgba(0, 0, 0, 0.7),
    0 1px 2px rgba(20, 12, 6, 0.35), 0 16px 24px -8px rgba(20, 12, 6, 0.5), 0 42px 64px -24px rgba(20, 12, 6, 0.45);
}
.art[data-frame="white"] .frame {
  background: #eeece6;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.9), inset -1px -1px 0 rgba(0, 0, 0, 0.18),
    0 1px 2px rgba(20, 12, 6, 0.3), 0 16px 24px -8px rgba(20, 12, 6, 0.42), 0 42px 64px -24px rgba(20, 12, 6, 0.38);
}
.art[data-frame="oak"] .frame {
  background-color: #b8895a;
  background-image:
    repeating-linear-gradient(90deg, rgba(90, 55, 25, 0.10) 0 2px, rgba(0, 0, 0, 0) 2px 7px, rgba(255, 220, 170, 0.08) 7px 9px, rgba(0, 0, 0, 0) 9px 15px),
    linear-gradient(180deg, #c29466, #ab7c4d);
  box-shadow:
    inset 1px 1px 0 rgba(255, 236, 205, 0.5), inset -1px -1px 0 rgba(60, 35, 15, 0.45),
    0 1px 2px rgba(20, 12, 6, 0.35), 0 16px 24px -8px rgba(20, 12, 6, 0.5), 0 42px 64px -24px rgba(20, 12, 6, 0.45);
}
.stage[data-view="close"] .room { background: var(--night-deep); }
.stage[data-view="close"] .ledge { display: none; }
.stage[data-view="close"] .art .frame { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); }

.stage-tools {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  pointer-events: none;
}
.view-toggle { display: inline-flex; pointer-events: auto; background: rgba(16, 23, 42, 0.78); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; backdrop-filter: blur(6px); }
.view-toggle button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-size: 14px; cursor: pointer; color: var(--mist); }
.view-toggle button[aria-pressed="true"] { background: var(--star); color: var(--night); }
.stage-caption { font-size: 13px; color: rgba(242, 235, 222, 0.86); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); text-align: right; }

.poster-intro { animation: eyes 1.6s ease-out both; }
@keyframes eyes { from { filter: brightness(0.35) blur(1.5px); } to { filter: none; } }
@media (prefers-reduced-motion: reduce) { .poster-intro { animation: none; } .art { transition: none; } }

.controls { padding: clamp(28px, 4vw, 56px) clamp(20px, 3.4vw, 48px) 64px; }
.intro { max-width: 34rem; margin-bottom: 36px; }
.intro h1 { font-size: clamp(38px, 3.6vw, 54px); line-height: 1.04; margin-bottom: 18px; }
.lede { color: var(--mist); font-size: 18px; line-height: 1.55; }

.steps { max-width: 34rem; }
.step { border: 0; margin: 0; padding: 28px 0 30px; border-top: 1px solid var(--line); min-width: 0; }
.step legend { float: left; width: 100%; display: flex; align-items: baseline; gap: 12px; padding: 0; margin-bottom: 18px; font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.2; }
.step legend + * { clear: both; }
.step-n { font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--brass); min-width: 16px; font-variant-numeric: lining-nums; }
.callouts .pin, .callout-key li span:first-child { font-variant-numeric: lining-nums; }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; margin-bottom: 16px; position: relative; }
.field-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; color: var(--star); }
input[type="text"], input[type="date"], input[type="time"] {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  font: inherit;
  font-size: 17px;
  color: var(--star);
  background: rgba(242, 235, 222, 0.045);
  border: 1px solid rgba(242, 235, 222, 0.24);
  border-radius: 3px;
  appearance: none;
  -webkit-appearance: none;
}
input[type="date"], input[type="time"] { min-width: 0; }
input::-webkit-calendar-picker-indicator { filter: invert(0.9); opacity: 0.7; cursor: pointer; }
input[type="text"]:hover, input[type="date"]:hover, input[type="time"]:hover { border-color: rgba(242, 235, 222, 0.42); }
input[type="text"]:focus, input[type="date"]:focus, input[type="time"]:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(205, 172, 112, 0.22); }
input::placeholder { color: var(--faint); }
input[aria-invalid="true"] { border-color: #e39a86; }
.hint { display: block; font-size: 14px; color: var(--mist); margin-top: 7px; }

.scrub { margin: 4px 0 18px; }
.scrub input[type="range"] { width: 100%; margin: 6px 0 2px; accent-color: var(--brass); height: 28px; background: transparent; cursor: grab; -webkit-appearance: none; appearance: none; }
.scrub input[type="range"]:active { cursor: grabbing; }
.scrub input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, rgba(242,235,222,0.25), rgba(242,235,222,0.55) 50%, rgba(242,235,222,0.25)); }
.scrub input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--star); border: 5px solid var(--night); box-shadow: 0 0 0 1px var(--star); }
.scrub input[type="range"]::-moz-range-track { height: 2px; background: rgba(242,235,222,0.4); }
.scrub input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--star); border: 4px solid var(--night); box-shadow: 0 0 0 1px var(--star); }
.scrub-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); }
.scrub .hint { margin-top: 4px; }

.check { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; line-height: 1.45; cursor: pointer; margin: 10px 0; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 19px; height: 19px; margin: 1px 0 0; border: 1px solid rgba(242, 235, 222, 0.45); border-radius: 3px; background: transparent; cursor: pointer; display: grid; place-content: center; }
.check input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--night); border-bottom: 2px solid var(--night); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--star); border-color: var(--star); }
.check input:checked::after { opacity: 1; }
.checks { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; margin-top: 6px; }
.checks .check { margin: 6px 0; }

.place-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% - 22px);
  margin: 0; padding: 4px 0; list-style: none;
  background: #212c49; border: 1px solid var(--line-strong); border-radius: 3px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  max-height: 300px; overflow-y: auto;
}
.place-list li { padding: 9px 14px; cursor: pointer; font-size: 15px; line-height: 1.35; }
.place-list li small { display: block; color: var(--mist); font-size: 13px; }
.place-list li[aria-selected="true"], .place-list li:hover { background: rgba(242, 235, 222, 0.09); }

.styles { display: grid; gap: 10px; }
.style-opt, .size-opt, .frame-opt { position: relative; cursor: pointer; }
.style-opt input, .size-opt input, .frame-opt input { position: absolute; opacity: 0; pointer-events: none; }
.style-opt {
  display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 3px;
}
.style-opt .swatch { grid-row: 1 / span 2; width: 44px; height: 56px; border-radius: 1px; position: relative; }
.swatch::after { content: ""; position: absolute; left: 7px; right: 7px; top: 8px; aspect-ratio: 1; border-radius: 50%; }
.swatch.midnight { background: #0e1a2e; }
.swatch.midnight::after { border: 1px solid #dbc08a; background: radial-gradient(circle at 40% 40%, #fff 0 1px, transparent 1.5px), radial-gradient(circle at 65% 60%, #fff 0 1px, transparent 1.5px), #0f1d34; }
.swatch.paper { background: #f1eadb; }
.swatch.paper::after { border: 1px solid #1d2539; background: radial-gradient(circle at 40% 40%, #1d2539 0 1px, transparent 1.5px), radial-gradient(circle at 65% 60%, #1d2539 0 1px, transparent 1.5px), #f4eee2; }
.swatch.noir { background: #0b0b0c; outline: 1px solid rgba(255,255,255,0.12); }
.swatch.noir::after { border: 1px solid #fff; background: radial-gradient(circle at 40% 40%, #fff 0 1px, transparent 1.5px), radial-gradient(circle at 65% 60%, #fff 0 1px, transparent 1.5px), #0b0b0c; }
.style-name { font-weight: 500; font-size: 16px; }
.style-note { font-size: 14px; color: var(--mist); }
.style-opt:has(input:checked), .size-opt:has(input:checked), .frame-opt:has(input:checked) { border-color: var(--star); box-shadow: inset 0 0 0 1px var(--star); }
.style-opt:has(input:focus-visible), .size-opt:has(input:focus-visible), .frame-opt:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 3px; }
.layers { margin-top: 18px; }

.sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.size-opt { padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 3px; display: flex; flex-direction: column; }
.size-name { font-weight: 500; font-size: 17px; }
.size-note { font-size: 14px; color: var(--mist); }
.frames { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.frame-opt { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 6px 10px; border: 1px solid var(--line-strong); border-radius: 3px; font-size: 14px; text-align: center; }
.chip { width: 30px; height: 30px; border-radius: 2px; }
.chip.none { border: 1px dashed rgba(242, 235, 222, 0.5); }
.chip.black { background: #1b1b1d; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); }
.chip.white { background: #eeece6; }
.chip.oak { background: repeating-linear-gradient(90deg, rgba(90,55,25,.15) 0 2px, transparent 2px 6px), linear-gradient(180deg, #c29466, #ab7c4d); }

.summary { border-top: 1px solid var(--line); padding-top: 26px; }
.summary-line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.summary-item { font-size: 17px; }
.summary-price { font-family: var(--serif); font-size: 38px; font-weight: 500; line-height: 1; }
.summary-meta { font-size: 14px; color: var(--mist); margin-bottom: 4px; }
.buy {
  display: block; width: 100%; margin-top: 18px; height: 58px;
  border: 0; border-radius: 3px; cursor: pointer;
  background: var(--star); color: var(--night);
  font-size: 18px; font-weight: 500; letter-spacing: 0.01em;
  transition: background .15s ease;
}
.buy:hover { background: #fff; }
.buy:disabled { opacity: 0.6; cursor: progress; }
.buy.small { width: auto; height: 46px; margin: 0; padding: 0 18px; font-size: 16px; }
.pay-note { font-size: 13px; color: var(--faint); margin-top: 12px; text-align: center; }
.form-error { margin-top: 12px; font-size: 15px; color: #f0b3a3; }

/* ---------- content sections ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section.chart-explained, section.plates, section.print, section.prices, section.delivery, section.questions { padding: clamp(72px, 10vw, 128px) 0; border-bottom: 1px solid var(--line); }
section h2 { font-size: clamp(34px, 4vw, 50px); line-height: 1.08; margin-bottom: 22px; }
.section-lede, .section-note { color: var(--mist); max-width: 38rem; }
.section-note { font-size: 15px; margin-top: 22px; }

.chart-explained .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.explain-copy p { color: var(--mist); margin-bottom: 18px; max-width: 30rem; }
.specimen { margin: 0; position: relative; }
.specimen img { width: 100%; height: auto; border-radius: 50%; }
.specimen figcaption { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--mist); margin-top: 16px; text-align: center; }
.callouts { list-style: none; margin: 0; padding: 0; }
.callouts li { position: absolute; transform: translate(-50%, -50%); }
.callouts .pin {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--brass); color: var(--brass); background: rgba(16, 23, 42, 0.72);
  font-family: var(--serif); font-weight: 600; font-size: 15px; cursor: default;
}
.callout-key { list-style: none; padding: 0; margin: 26px 0 0; counter-reset: key; }
.callout-key li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--mist); }
.callout-key li span:first-child { color: var(--brass); font-family: var(--serif); font-weight: 600; font-size: 17px; }
.callout-key li strong { color: var(--star); font-weight: 500; }

.plate-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); margin-top: 44px; }
.plate { appearance: none; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; color: inherit; }
.plate img { width: 100%; height: auto; aspect-ratio: 3 / 4; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.7); transition: transform .3s ease; }
.plate:hover img { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .plate:hover img { transform: none; } }
.plate-caption { display: block; margin-top: 16px; font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.plate-meta { display: block; font-size: 14px; color: var(--mist); margin-top: 2px; }

.specs { margin: 34px 0 0; max-width: 52rem; }
.specs > div { display: grid; grid-template-columns: 11rem 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.specs > div:last-child { border-bottom: 1px solid var(--line); }
.specs dt { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.3; }
.specs dd { margin: 0; color: var(--mist); }

.price-table { border-collapse: collapse; margin-top: 30px; min-width: min(100%, 520px); font-size: 18px; }
.price-table th, .price-table td { text-align: left; padding: 14px 40px 14px 0; border-bottom: 1px solid var(--line); }
.price-table thead th { font-size: 14px; font-weight: 500; color: var(--mist); }
.price-table tbody th { font-weight: 400; }
.price-table td { font-family: var(--serif); font-size: 26px; font-weight: 500; }

.timeline { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: t; }
.timeline li { position: relative; padding: 26px 24px 0 0; border-top: 1px solid var(--line-strong); counter-increment: t; }
.timeline li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--star); }
.t-when { display: block; font-family: var(--serif); font-size: 22px; line-height: 1.25; margin-bottom: 6px; }
.t-what { display: block; color: var(--mist); font-size: 15px; }
.delivery-estimate { margin-top: 40px; font-family: var(--serif); font-size: 26px; line-height: 1.3; }

.qa { margin-top: 30px; max-width: 46rem; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-size: 18px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-family: var(--serif); font-size: 28px; color: var(--mist); }
.qa details[open] summary::after { content: "−"; }
.qa details p { color: var(--mist); padding: 0 40px 22px 0; max-width: 40rem; }

.colophon { background: var(--night-deep); padding: 64px 0 120px; color: var(--mist); font-size: 15px; }
.colophon-lede { font-family: var(--serif); font-size: 24px; color: var(--star); max-width: 34rem; line-height: 1.35; margin-bottom: 18px; }
.credits { max-width: 40rem; margin-bottom: 26px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 26px; }
.foot-nav a { text-decoration: none; color: var(--star); }
.foot-nav a:hover { text-decoration: underline; }
.copyright { font-size: 13px; color: var(--faint); }

/* ---------- mobile bar ---------- */
.mobile-bar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .designer { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .designer { grid-template-columns: 1fr; }
  .stage { position: relative; top: auto; height: min(124vw, 72vh); min-height: 420px; }
  .notice { font-size: 13px; padding: 7px 14px; }
  .view-toggle button { padding: 6px 12px; font-size: 13px; white-space: nowrap; }
  .stage-tools { padding: 12px 12px; }
  .stage-caption { font-size: 12px; max-width: 46%; }
  .controls { padding-top: 32px; }
  .intro h1 { font-size: clamp(34px, 9vw, 44px); }
  .chart-explained .wrap { grid-template-columns: 1fr; }
  .plate-row { grid-template-columns: 1fr; max-width: 420px; }
  .specs > div { grid-template-columns: 1fr; gap: 4px; }
  .timeline { grid-template-columns: 1fr; }
  .timeline li { padding: 0 0 26px 26px; border-top: 0; border-left: 1px solid var(--line-strong); }
  .timeline li::before { top: 8px; left: -5px; }
  .timeline li:last-child { padding-bottom: 0; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(16, 23, 42, 0.96); border-top: 1px solid var(--line-strong);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .mobile-bar.show { transform: none; }
  .mini { border: 0; padding: 0; background: none; flex: none; cursor: pointer; }
  .mini canvas { width: 36px; height: 48px; box-shadow: 0 2px 6px rgba(0,0,0,0.5); }
  .mobile-bar-text { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
  .mobile-bar-text span:first-child { font-family: var(--serif); font-size: 22px; font-weight: 500; }
  .mobile-bar-text span:last-child { font-size: 13px; color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 480px) {
  .checks { grid-template-columns: 1fr; }
  .frames { grid-template-columns: repeat(2, 1fr); }
  .price-table th, .price-table td { padding-right: 22px; }
}

/* ---------- simple pages (policies, thanks) ---------- */
.page { max-width: 46rem; margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--gutter) 96px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.08; margin-bottom: 26px; }
.page h2 { font-size: 28px; margin: 40px 0 12px; }
.page p, .page li { color: var(--mist); margin-bottom: 14px; }
.page strong { color: var(--star); font-weight: 500; }
.page ul { padding-left: 20px; }
.contact-form { display: grid; gap: 4px; margin-top: 26px; }
.contact-form textarea {
  width: 100%; min-height: 160px; padding: 12px 14px; font: inherit; font-size: 17px; color: var(--star);
  background: rgba(242, 235, 222, 0.045); border: 1px solid rgba(242, 235, 222, 0.24); border-radius: 3px; resize: vertical;
}
.contact-form textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(205, 172, 112, 0.22); }
.contact-form input[type="email"] {
  width: 100%; height: 50px; padding: 0 14px; font: inherit; font-size: 17px; color: var(--star);
  background: rgba(242, 235, 222, 0.045); border: 1px solid rgba(242, 235, 222, 0.24); border-radius: 3px;
}
.contact-form input[type="email"]:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(205, 172, 112, 0.22); }
.form-ok { color: #b9d8b0; margin-top: 12px; }

.thanks-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; margin-top: 10px; }
.thanks-grid canvas { width: 100%; height: auto; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.order-facts { margin: 20px 0 28px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.order-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; }
.order-facts li span:last-child { color: var(--star); text-align: right; }
.download { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 24px; border-radius: 3px; background: var(--star); color: var(--night); border: 0; font-size: 17px; font-weight: 500; cursor: pointer; text-decoration: none; }
.download:hover { background: #fff; color: var(--night); }
.download:disabled { opacity: .6; cursor: progress; }
@media (max-width: 760px) { .thanks-grid { grid-template-columns: 1fr; } }
