/* ==========================================================================
   RIDGE — stylesheet
   Palette: chalk white #F4F1E8 · mountain blue #33608A · burnt orange #C05A22
            graphite #26282B · service grey #6B7076
   ========================================================================== */

@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/barlow-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/barlow-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/barlow-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/plexmono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/plexmono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --chalk: #F4F1E8;
  --chalk-2: #ECE8DC;
  --blue: #33608A;
  --blue-deep: #24455F;
  --blue-ink: #1B3140;
  --ember: #C05A22;
  --ember-bright: #D9702F;
  --graphite: #26282B;
  --graphite-2: #2E3236;
  --grey: #6B7076;
  --line: #D5D0C2;
  --line-dark: rgba(38, 40, 43, 0.22);
  --cond: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue Condensed', system-ui, sans-serif;
  --sans: 'Barlow', 'Helvetica Neue', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --measure: 1220px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--chalk);
  color: var(--graphite);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.94;
}

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 28px; }

/* ------------------------------------------------ technical label kit */
.tk {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}
.tk b { color: var(--graphite); font-weight: 500; }
.tk-rule {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--grey);
}
.tk-rule::after { content: ''; flex: 1; height: 1px; background: var(--line-dark); }
.tk-num { font-family: var(--mono); color: var(--ember); }

.section { padding: 96px 0 30px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(38px, 5vw, 64px); }
.section-head .tk { white-space: nowrap; }

/* --------------------------------------------------------------- nav */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: color-mix(in srgb, var(--chalk) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand {
  font-family: var(--cond); font-weight: 700; font-size: 24px;
  letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  display: flex; align-items: center; gap: 9px;
}
.brand svg { display: block; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none; color: var(--graphite);
  padding: 4px 0; border-bottom: 1px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--ember); color: var(--ember); }
@media (max-width: 760px) { .nav-links a:not(.nav-cta) { display: none; } }
.nav-links .nav-cta {
  background: var(--graphite); color: var(--chalk);
  padding: 9px 16px; border: none;
}
.nav-links .nav-cta:hover { background: var(--ember); color: #fff; }

/* --------------------------------------------------------------- hero */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  padding-top: 58px;
  overflow: hidden;
}
.hero-copy {
  padding: clamp(40px, 7vw, 110px) clamp(10px, 4vw, 60px) 60px clamp(28px, 5vw, 90px);
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 3;
}
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.hero-eyebrow .chip {
  background: var(--graphite); color: var(--chalk);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 5px 10px;
}
.hero h1 {
  font-size: clamp(58px, 8.4vw, 128px);
  letter-spacing: -0.005em; margin: 0 0 10px -3px;
}
.hero h1 .accent { color: var(--blue); display: block; }
.hero-sub {
  font-size: clamp(17px, 1.6vw, 21px); max-width: 30ch;
  color: #3c4045; margin: 18px 0 34px; font-weight: 400;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--cond); font-weight: 600; text-transform: uppercase;
  font-size: 19px; letter-spacing: 0.06em;
  padding: 15px 26px; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--graphite);
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--graphite); color: var(--chalk); }
.btn-solid:hover { background: var(--ember); border-color: var(--ember); color: #fff; }
.btn-ghost { background: transparent; color: var(--graphite); }
.btn-ghost:hover { background: var(--graphite); color: var(--chalk); }
.btn-ember { background: var(--ember); border-color: var(--ember); color: #fff; }
.btn-ember:hover { background: var(--ember-bright); border-color: var(--ember-bright); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.hero-cta { font-size: 21px; padding: 17px 30px; }

.hero-spec {
  display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 1px; background: var(--line-dark);
  border: 1px solid var(--line-dark); margin-top: 44px; max-width: 460px;
}
.hero-spec > div { background: var(--chalk); padding: 12px 14px; }
.hero-spec .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.hero-spec .v { font-family: var(--cond); font-weight: 600; font-size: 21px; }

.hero-visual { position: relative; min-height: 480px; }
.hero-mount { position: absolute; inset: 0; }
.hero-ridge {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none; opacity: 0.5;
}
.hero-badge {
  position: absolute; z-index: 4; background: var(--chalk);
  border: 1px solid var(--graphite); padding: 8px 12px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex; flex-direction: column; gap: 2px;
}
.hero-badge b { font-size: 13px; color: var(--ember); }
.hero-badge.b1 { top: 16%; right: 8%; }
.hero-badge.b2 { bottom: 22%; left: 10%; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 440px; order: -1; }
  .hero-copy { padding-top: 20px; }
}

/* ------------------------------------------------------------ marquee */
.strip {
  border-top: 1px solid var(--graphite); border-bottom: 1px solid var(--graphite);
  background: var(--chalk-2); overflow: hidden; padding: 11px 0;
}
.strip-inner {
  display: flex; gap: 54px; white-space: nowrap;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--graphite);
  animation: strip 36s linear infinite;
}
.strip-inner span::after { content: '·'; margin-left: 54px; color: var(--ember); }
@keyframes strip { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-inner { animation: none; } }

/* --------------------------------------------------- configurator */
.config-grid {
  display: grid; grid-template-columns: 1.35fr 0.65fr;
  gap: 42px; align-items: start;
}
@media (max-width: 980px) { .config-grid { grid-template-columns: 1fr; } }

.stage {
  position: relative; border: 1px solid var(--graphite);
  background:
    radial-gradient(120% 90% at 70% 10%, rgba(51,96,138,0.10), transparent 55%),
    var(--chalk-2);
  min-height: 560px; overflow: hidden;
}
.stage-mount { position: absolute; inset: 0; }
.stage-hud {
  position: absolute; top: 14px; left: 14px; right: 14px; z-index: 5;
  display: flex; justify-content: space-between; pointer-events: none;
}
.stage-hud .tk { background: color-mix(in srgb, var(--chalk) 82%, transparent); padding: 4px 8px; }
.stage-modes {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 1px; z-index: 5; border: 1px solid var(--graphite);
  background: var(--graphite);
}
.stage-modes button {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 9px 14px; border: none;
  background: var(--chalk); color: var(--graphite); cursor: pointer;
}
.stage-modes button.on { background: var(--ember); color: #fff; }
.stage-hint {
  position: absolute; bottom: 58px; left: 50%; transform: translateX(-50%);
  z-index: 4; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--grey);
  background: color-mix(in srgb, var(--chalk) 80%, transparent); padding: 4px 10px;
  pointer-events: none; white-space: nowrap;
}

.gl-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; touch-action: none; cursor: grab; }
.gl-canvas:active { cursor: grabbing; }

.gl-label {
  position: absolute; top: 0; left: 0; z-index: 6;
  opacity: 0; transition: opacity 0.25s ease;
  pointer-events: none; display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; white-space: nowrap;
}
.gl-label-tick { width: 7px; height: 7px; background: var(--ember); border: 1px solid var(--graphite); }
.gl-label-text { background: var(--chalk); border: 1px solid var(--graphite); padding: 3px 7px; }
.gl-label-text em { font-style: normal; color: var(--grey); display: block; font-size: 9px; }

.no3d::after {
  content: '3D preview unavailable — WebGL is disabled in this browser.';
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; color: var(--grey);
  padding: 20px; text-align: center;
}

/* configurator controls */
.config-panel { display: flex; flex-direction: column; gap: 26px; }
.cp-block { border: 1px solid var(--line-dark); background: #fff; }
.cp-head {
  padding: 10px 14px; border-bottom: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--chalk-2);
}
.cp-body { padding: 16px 14px; }

.size-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--graphite); border: 1px solid var(--graphite); }
.size-toggle button {
  padding: 14px 10px; border: none; background: var(--chalk); cursor: pointer; text-align: left;
  font-family: var(--cond); font-weight: 600; font-size: 24px; text-transform: uppercase;
  color: var(--graphite); line-height: 1;
}
.size-toggle button small { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; margin-top: 5px; color: var(--grey); font-weight: 400; }
.size-toggle button.on { background: var(--blue); color: #fff; }
.size-toggle button.on small { color: rgba(255,255,255,0.75); }

.finish-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.finish-card { border: 1.5px solid var(--line-dark); background: var(--chalk); cursor: pointer; padding: 0 0 10px; text-align: center; }
.finish-card .swatch { height: 64px; display: block; border-bottom: 1px solid var(--line-dark); image-rendering: auto; width: 100%; }
.finish-card .fname { font-family: var(--cond); font-weight: 600; font-size: 16.5px; text-transform: uppercase; margin-top: 8px; }
.finish-card .fsub { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; color: var(--grey); text-transform: uppercase; }
.finish-card.on { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember); }
.finish-card.on .fname::after { content: ' ●'; color: var(--ember); font-size: 10px; }

.spec-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 11.5px; }
.spec-table td { padding: 7px 4px; border-bottom: 1px dashed var(--line-dark); }
.spec-table td:last-child { text-align: right; color: var(--graphite); }
.spec-table td:first-child { color: var(--grey); letter-spacing: 0.08em; text-transform: uppercase; }

/* ------------------------------------------------------------ modes */
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .mode-grid { grid-template-columns: 1fr; } }
.mode-card {
  position: relative; border: 1px solid var(--graphite); min-height: 300px;
  background: var(--chalk-2); overflow: hidden;
}
.mode-mount { position: absolute; inset: 0; }
.mode-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  background: linear-gradient(transparent, rgba(244,241,232,0.95));
  padding: 34px 14px 12px;
}
.mode-card h3 { font-size: 24px; margin-bottom: 2px; }

/* --------------------------------------------------------- materials */
.mat-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .mat-grid { grid-template-columns: 1fr; } }
.mat-swatch-col { display: grid; gap: 16px; }
.mat-swatch {
  display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center;
  border: 1px solid var(--line-dark); background: #fff; padding: 12px;
}
.mat-swatch canvas { width: 132px; height: 66px; border: 1px solid var(--line-dark); }
.mat-swatch h4 { font-size: 19px; margin-bottom: 3px; }
.mat-swatch .tk { display: block; }

.mat-detail { border: 1px solid var(--graphite); background: var(--graphite); color: var(--chalk-2); padding: 26px 24px; }
.mat-detail h3 { color: #fff; font-size: 27px; margin-bottom: 14px; }
.mat-detail ul { list-style: none; display: grid; gap: 10px; }
.mat-detail li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14.5px; color: #cfd3d8; }
.mat-detail li::before { content: '▸'; color: var(--ember-bright); }
.mat-detail .tk { color: #9aa0a7; margin-top: 18px; display: block; }

/* ------------------------------------------------------------ campaign */
.campaign {
  position: relative; overflow: hidden; min-height: 74vh;
  display: grid; align-items: end; margin-top: 30px;
}
.campaign img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 38%;
  filter: saturate(0.85) contrast(1.05);
}
.campaign::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(112deg,
    rgba(27,49,64,0.82) 0%, rgba(36,69,95,0.42) 48%, rgba(192,90,34,0.22) 100%);
}
.campaign-copy {
  position: relative; z-index: 2;
  padding: clamp(40px, 8vw, 120px) clamp(28px, 6vw, 90px);
  max-width: 820px; color: var(--chalk);
}
.campaign-copy h2 {
  font-size: clamp(44px, 6.4vw, 92px); color: #fff; margin: 14px 0 18px;
}
.campaign-copy p { font-size: 17.5px; max-width: 46ch; color: rgba(244,241,232,0.94); }
.campaign-copy .tk { color: rgba(244,241,232,0.78); }
.campaign-credit {
  position: absolute; right: 18px; bottom: 14px; z-index: 3;
  color: rgba(244,241,232,0.7);
}

/* ------------------------------------------------------- packing tool */
.pack-layout {
  display: grid; grid-template-columns: 0.92fr 1.5fr 0.92fr;
  gap: 22px; align-items: start;
}
@media (max-width: 1180px) { .pack-layout { grid-template-columns: 1fr 1.3fr; } .pack-side-right { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; } }
@media (max-width: 760px) { .pack-layout { grid-template-columns: 1fr; } .pack-side-right { grid-template-columns: 1fr; } }

.panel { border: 1px solid var(--graphite); background: #fff; position: relative; }
.panel-head {
  padding: 11px 14px; background: var(--chalk-2); border-bottom: 1px solid var(--graphite);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.panel-head h3 { font-size: 19px; }
.panel-body { padding: 14px; }

/* item tray */
.tray { display: grid; gap: 8px; max-height: 560px; overflow: auto; }
.item-card {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center;
  border: 1.5px solid var(--line-dark); background: var(--chalk); cursor: grab;
  padding: 9px 11px; user-select: none; position: relative;
  transition: border-color 0.12s ease, transform 0.12s ease, opacity 0.15s;
  touch-action: none;
}
.item-card:hover { border-color: var(--graphite); }
.item-card.dragging { opacity: 0.45; cursor: grabbing; }
.item-card.packed { border-color: var(--blue); background: #eef2f6; }
.item-card.packed .ic-name::after { content: ' ✓'; color: var(--blue); font-size: 12px; }
.item-card .ic-thumb { width: 40px; height: 40px; display: grid; place-items: center; }
.item-card .ic-thumb i { display: block; border: 1px solid rgba(0,0,0,0.4); }
.item-card .ic-name { font-family: var(--cond); font-weight: 600; font-size: 17.5px; text-transform: uppercase; line-height: 1.1; }
.item-card .ic-dims { font-family: var(--mono); font-size: 9.5px; color: var(--grey); letter-spacing: 0.04em; }
.item-card .ic-acts { display: flex; gap: 6px; align-items: center; }
.item-card .ic-loc { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-top: 2px; }
.mini-btn {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--graphite); background: #fff; color: var(--graphite);
  padding: 5px 9px; cursor: pointer;
}
.mini-btn:hover { background: var(--graphite); color: var(--chalk); }
.mini-btn.warn:hover { background: var(--ember); border-color: var(--ember); }
.mini-btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.mini-btn[disabled]:hover { background: #fff; color: var(--graphite); }

/* center stage + overlays */
.pack-stage-wrap { position: relative; }
.pack-stage-mount { position: absolute; inset: 0; }
.pack-drop-glow { position: absolute; inset: 0; pointer-events: none; z-index: 7; }
.drop-hint {
  position: absolute; z-index: 8; pointer-events: none;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--ember); color: #fff; padding: 4px 9px;
  opacity: 0; transition: opacity 0.1s;
}
.pack-controls {
  position: absolute; top: 12px; right: 12px; z-index: 6; display: grid; gap: 6px;
}
.pack-controls .mini-btn { background: var(--chalk); }

.pack-msg {
  position: absolute; left: 14px; right: 14px; bottom: 62px; z-index: 9;
  border: 1.5px solid var(--graphite); background: var(--chalk);
  padding: 12px 14px; display: none;
}
.pack-msg.show { display: block; animation: msgin 0.18s ease; }
@keyframes msgin { from { transform: translateY(8px); opacity: 0; } }
.pack-msg h4 { font-size: 17px; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.pack-msg h4 .tk { font-size: 9px; }
.pack-msg.ok h4 { color: var(--blue); }
.pack-msg.err h4 { color: var(--ember); }
.pack-msg.warn h4 { color: var(--ember); }
.pack-msg p { font-size: 13.5px; color: #3c4045; }
.pack-msg .msg-actions { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; }

/* capacity meters */
.meter { display: grid; gap: 4px; margin-bottom: 13px; }
.meter .m-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.meter .m-top b { font-weight: 500; }
.meter .m-bar { height: 13px; background: var(--chalk-2); border: 1px solid var(--graphite); position: relative; overflow: hidden; }
.meter .m-fill { position: absolute; inset: 0; right: auto; background: var(--blue); width: 0%; transition: width 0.3s ease; }
.meter.full .m-fill { background: var(--ember); }
.meter .m-sub { font-family: var(--mono); font-size: 9.5px; color: var(--grey); }
.total-meter .m-fill { background: var(--ember); }
.gauge-big { display: flex; align-items: baseline; gap: 8px; border: 1px solid var(--graphite); background: var(--chalk-2); padding: 10px 12px 8px; margin-bottom: 12px; }
.gauge-big .g-num { font-family: var(--cond); font-weight: 700; font-size: 42px; line-height: 1; color: var(--ember); }
.gauge-big .g-unit { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }

/* switch report */
.switch-report { display: none; border: 1.5px solid var(--blue); background: #eef2f6; padding: 12px 14px; margin-bottom: 14px; }
.switch-report.show { display: block; }
.switch-report h4 { font-size: 17px; color: var(--blue-deep); margin-bottom: 6px; }
.switch-report ul { list-style: none; display: grid; gap: 5px; font-size: 13px; }
.switch-report li.keep::before { content: '✓'; color: var(--blue); margin-right: 8px; }
.switch-report li.move::before { content: '→'; color: var(--blue); margin-right: 8px; }
.switch-report li.fail::before { content: '✕'; color: var(--ember); margin-right: 8px; }
.switch-report li.fail { color: var(--ember); font-weight: 500; }
.switch-report .fail-detail { display: block; font-family: var(--mono); font-size: 10.5px; color: #3c4045; margin-top: 2px; margin-left: 21px; }

/* solver notes */
.solver-notes { font-size: 13px; color: #3c4045; display: grid; gap: 8px; }
.solver-notes summary { cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--graphite); }
.solver-notes li { margin-left: 18px; }
.solver-notes li::marker { color: var(--ember); }

/* ------------------------------------------------------- inside section */
.inside-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 36px; align-items: start; }
@media (max-width: 980px) { .inside-grid { grid-template-columns: 1fr; } }
.inside-stage { position: relative; min-height: 620px; border: 1px solid var(--graphite); background: var(--chalk-2); overflow: hidden; }
.inside-stage .stage-modes { bottom: 16px; }
.construction-list { display: grid; gap: 0; border: 1px solid var(--line-dark); background: #fff; }
.construction-list > div { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 13px 15px; border-bottom: 1px solid var(--line-dark); }
.construction-list > div:last-child { border-bottom: none; }
.construction-list .c-num { font-family: var(--mono); font-size: 10px; color: var(--ember); letter-spacing: 0.08em; padding-top: 3px; }
.construction-list h4 { font-size: 18px; margin-bottom: 2px; }
.construction-list p { font-size: 13.5px; color: #3c4045; }

/* ------------------------------------------------------------ plan */
.plan-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 30px; align-items: start; }
@media (max-width: 980px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-list { border: 1px solid var(--graphite); background: #fff; }
.plan-list table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.plan-list th {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  text-align: left; color: var(--grey); padding: 10px 14px; border-bottom: 1px solid var(--graphite);
  background: var(--chalk-2);
}
.plan-list td { padding: 10px 14px; border-bottom: 1px dashed var(--line-dark); vertical-align: top; }
.plan-list tr:last-child td { border-bottom: none; }
.plan-list td.mono { font-family: var(--mono); font-size: 11.5px; }
.plan-list .empty-row td { text-align: center; color: var(--grey); font-family: var(--mono); font-size: 11px; padding: 26px; }
.plan-side { display: grid; gap: 18px; }
.plan-export { display: grid; gap: 10px; }
.plan-export .btn { justify-content: center; font-size: 17px; padding: 13px 18px; }
.export-note { font-family: var(--mono); font-size: 10px; color: var(--grey); letter-spacing: 0.06em; line-height: 1.7; }

/* toast */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(70px);
  background: var(--graphite); color: var(--chalk); z-index: 90;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 11px 18px; opacity: 0; transition: all 0.25s ease; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* -------------------------------------------------------------- footer */
footer { background: var(--graphite); color: #b9bec4; margin-top: 110px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 54px 0 40px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
footer h4 { color: var(--chalk); font-size: 18px; margin-bottom: 12px; }
footer .tk { color: #82878d; }
footer ul { list-style: none; display: grid; gap: 7px; font-size: 13.5px; }
.foot-base { border-top: 1px solid #3a3d41; padding: 16px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* misc */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--ember); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
