/* ============================================================
   CastDome — design system (v6)
   Minimal editorial style: white space, hairlines, square
   corners, uppercase light headings, one blue accent.
   ============================================================ */

:root {
  --navy: #14243e;
  --navy-deep: #0e1a2e;
  --ink: #333333;
  --gray: #8a8a8a;
  --gray-soft: #b9bec7;
  --accent: #1e96e6;
  --accent-dark: #1478bd;
  --bg: #ffffff;
  --bg-soft: #eceeeb;
  --bg-cta: #f4f7f5;
  --bg-panel: #f8f9fa;
  --border: #e3e3e3;
  --border-dark: #d5d8de;
  --charcoal: #2b2b2b;
  --green: #1d7a4f;
  --green-bg: #edf6f0;
  --amber: #8a5a00;
  --amber-bg: #fdf3dd;
  --red: #b3261e;
  --red-bg: #fdecea;
  --font: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: #cfd8e6;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 16px;
}
.topbar strong { color: #fff; font-weight: 600; }
.topbar .dot { color: var(--accent); margin: 0 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(20, 36, 62, 0.08); }
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy);
  text-transform: uppercase;
  white-space: nowrap;
}
.logo .logo-dot { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover { color: var(--accent); }
.main-nav a.is-current { color: var(--accent); border-bottom-color: var(--accent); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: #fff;
  border: 1px solid var(--border-dark);
  font-size: 18px;
  color: var(--navy);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--border-dark);
  background: #fff;
  color: var(--navy);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { border-color: var(--navy); }
.btn--primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 18px; font-size: 11px; }

/* ---------- Hero ---------- */
.hero { background: var(--bg-soft); overflow: hidden; }
.hero-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: stretch;
}
.hero-copy { padding: 84px 0 72px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--accent);
}
.hero h1 {
  font-size: 46px;
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}
.hero h1 .rotator { color: var(--accent); font-weight: 400; white-space: nowrap; }
.hero h1 .rotator-line { display: block; min-height: 1.28em; }
.rotator-caret {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: -0.08em;
  animation: caretBlink 0.9s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }
.hero-sub {
  margin-top: 22px;
  font-size: 14.5px;
  line-height: 1.75;
  color: #4c5563;
  max-width: 520px;
}
.hero-sub strong { color: var(--navy); font-weight: 600; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid #d9dcd8;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 540px;
}
.hero-trust .t-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}
.hero-trust .t-sub { font-size: 12px; color: var(--gray); margin-top: 3px; line-height: 1.5; }
.hero-media { position: relative; min-height: 420px; }
.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-media .hero-chip {
  position: absolute;
  left: 18px; bottom: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}
.hero-media .hero-chip b { color: var(--accent); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section--soft { background: var(--bg-panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head .eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 33px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.25;
}
.section-head .rule {
  width: 44px; height: 2px;
  background: var(--navy);
  margin: 20px auto 0;
}
.section-head.left .rule { margin-left: 0; }
.section-head p { margin-top: 18px; color: #5b6472; font-size: 13.5px; line-height: 1.75; }

/* ---------- Page title band (inner pages) ---------- */
.page-band {
  background: #9b9b9b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='90' viewBox='0 0 720 90'%3E%3Cg fill='%23878787'%3E%3Crect x='10' y='38' width='34' height='52'/%3E%3Crect x='52' y='22' width='26' height='68'/%3E%3Crect x='86' y='48' width='40' height='42'/%3E%3Crect x='134' y='30' width='22' height='60'/%3E%3Crect x='140' y='18' width='10' height='12'/%3E%3Crect x='164' y='54' width='46' height='36'/%3E%3Crect x='300' y='44' width='30' height='46'/%3E%3Crect x='338' y='26' width='24' height='64'/%3E%3Crect x='370' y='50' width='42' height='40'/%3E%3Crect x='420' y='34' width='26' height='56'/%3E%3Crect x='454' y='56' width='38' height='34'/%3E%3Crect x='560' y='40' width='32' height='50'/%3E%3Crect x='600' y='20' width='24' height='70'/%3E%3Crect x='606' y='8' width='12' height='12'/%3E%3Crect x='632' y='48' width='44' height='42'/%3E%3Crect x='684' y='32' width='26' height='58'/%3E%3C/g%3E%3C/svg%3E") bottom center / 720px 90px repeat-x;
  padding: 52px 0 56px;
  text-align: center;
}
.page-band h1 {
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}
.page-band .crumbs {
  margin-top: 10px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.page-band .crumbs a:hover { color: #fff; text-decoration: underline; }
.page-band .crumbs .sep { margin: 0 8px; color: rgba(255,255,255,0.55); }
.page-band .crumbs .here { color: #fff; }
.page-band p.lead { margin: 18px auto 0; max-width: 640px; color: #f2f2f2; font-size: 13.5px; line-height: 1.75; }

/* ---------- Showcase gallery ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 30px;
  margin-bottom: 38px;
}
.filters button {
  position: relative;
  background: none;
  border: none;
  padding: 6px 2px 10px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #555f6e;
  transition: color 0.2s ease;
}
.filters button:hover { color: var(--navy); }
.filters button.is-active { color: var(--navy); font-weight: 600; }
.filters button.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 1px 3px rgba(20, 36, 62, 0.35);
}
.filters .count { color: var(--gray-soft); font-size: 10px; margin-left: 4px; }

.masonry { columns: 3; column-gap: 22px; }
.work-item {
  break-inside: avoid;
  margin-bottom: 22px;
  background: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
}
.work-item .work-media { position: relative; overflow: hidden; }
.work-item .work-media img { width: 100%; }
.work-item .work-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.work-item:hover .work-overlay { opacity: 1; }
.work-overlay .expand-icon {
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 50%;
  background: rgba(32, 32, 32, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-overlay .expand-icon svg { width: 17px; height: 17px; }
.work-caption { padding: 14px 16px 15px; border-top: 1px solid var(--border); }
.work-caption .work-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}
.work-caption .work-cat {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 3px;
}
.work-item.is-hidden { display: none; }
.gallery-empty {
  display: none;
  text-align: center;
  color: var(--gray);
  padding: 50px 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 18, 32, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.lightbox.is-open { display: flex; }
.lightbox-card {
  background: #fff;
  max-width: 880px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  max-height: 90vh;
  overflow: hidden;
}
.lightbox-media { background: #101623; display: flex; align-items: center; }
.lightbox-media img { width: 100%; height: 100%; object-fit: cover; max-height: 90vh; }
.lightbox-body { padding: 34px 32px; overflow-y: auto; }
.lightbox-body .lb-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.lightbox-body h3 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-top: 10px;
  line-height: 1.35;
}
.lightbox-body p { margin-top: 14px; font-size: 13px; color: #5b6472; line-height: 1.75; }
.lightbox-meta { margin-top: 22px; border-top: 1px solid var(--border); }
.lightbox-meta .lm-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.lightbox-meta .lm-label { color: var(--gray); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; padding-top: 2px; }
.lightbox-meta .lm-value { color: var(--navy); font-weight: 500; text-align: right; }
.lightbox-actions { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  font-size: 20px;
  line-height: 1;
}
.lightbox-counter {
  position: absolute;
  top: 30px; left: 28px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.14em;
}
.lightbox-close:hover { border-color: #fff; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: none;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  font-size: 20px;
}
.lightbox-nav:hover { border-color: #fff; }
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

/* ---------- Material cards ---------- */
.material-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.material-card {
  border: 1px solid var(--border);
  background: #fff;
  padding: 26px 24px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.material-card:hover { border-color: var(--border-dark); box-shadow: 0 6px 22px rgba(20, 36, 62, 0.06); }
.material-card .mc-top { display: flex; align-items: center; gap: 14px; }
.mc-swatch {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  flex-shrink: 0;
  box-shadow: inset 0 2px 5px rgba(255,255,255,0.7), inset 0 -3px 6px rgba(20,36,62,0.12);
}
.material-card h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}
.material-card .mc-badge {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-top: 2px;
}
.material-card p { margin-top: 14px; font-size: 12.5px; color: #5b6472; line-height: 1.7; }
.material-card .mc-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
}
.material-card .mc-link:hover { color: var(--accent); }

@keyframes holoShift {
  0% { background-position: 0% 50%; filter: hue-rotate(0deg); }
  50% { background-position: 100% 50%; filter: hue-rotate(65deg); }
  100% { background-position: 0% 50%; filter: hue-rotate(0deg); }
}
.holo-shimmer {
  background-size: 220% 220% !important;
  animation: holoShift 4.5s ease-in-out infinite;
}

/* ---------- Calculator ---------- */
.calc-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 30px;
  align-items: start;
}
.calc-panel {
  background: #fff;
  border: 1px solid var(--border);
  padding: 34px 34px 30px;
}
.calc-step { margin-bottom: 30px; }
.calc-step:last-child { margin-bottom: 0; }
.step-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}
.step-label .req { color: var(--red); }
.step-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.step-row .step-label { margin-bottom: 0; }
.step-link {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.step-link:hover { text-decoration: underline; }

.seg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.seg-btn {
  padding: 11px 8px;
  background: #fff;
  border: 1px solid var(--border-dark);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  transition: all 0.18s ease;
}
.seg-btn:hover { border-color: var(--navy); }
.seg-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.unit-switch {
  display: inline-flex;
  border: 1px solid var(--border-dark);
}
.unit-switch button {
  padding: 6px 14px;
  background: #fff;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
}
.unit-switch button.is-active { background: var(--navy); color: #fff; }
.area-badge {
  font-size: 11.5px;
  color: var(--navy);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 5px 12px;
  letter-spacing: 0.04em;
}

.dim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block;
  font-size: 11.5px;
  color: var(--gray);
  letter-spacing: 0.06em;
  margin-bottom: 7px;
}
.field input[type="number"],
.field input[type="email"],
.field input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-dark);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  background: #fff;
  outline: none;
  transition: border-color 0.18s ease;
}
.field input:focus { border-color: var(--navy); }

.opt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opt-grid--2 { grid-template-columns: 1fr 1fr; }
.opt-card {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 12px 13px;
  background: #fff;
  border: 1px solid var(--border-dark);
  transition: all 0.18s ease;
  width: 100%;
}
.opt-card:hover { border-color: var(--navy); }
.opt-card.is-active {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
  background: var(--bg-cta);
}
.opt-card--wide { flex-direction: column; align-items: stretch; gap: 0; padding: 15px 16px; }
.opt-swatch {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  flex-shrink: 0;
  box-shadow: inset 0 1px 3px rgba(255,255,255,0.8);
}
.opt-text { display: flex; flex-direction: column; min-width: 0; }
.opt-name { font-size: 12.5px; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt-name--lg { font-size: 13.5px; }
.opt-badge { font-size: 11px; color: var(--gray); }
.opt-badge--holo { color: var(--accent); font-weight: 600; }
.opt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.opt-desc { display: block; font-size: 12px; color: #5b6472; line-height: 1.6; margin-top: 7px; }
.pill {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: #5b6472;
  white-space: nowrap;
}
.pill--amber { background: var(--amber-bg); border-color: #ecd9a8; color: var(--amber); }
.pill--pop { background: var(--amber-bg); border-color: #ecd9a8; color: var(--amber); }
.pill--save { background: var(--green-bg); border-color: #bfe0cc; color: var(--green); }

.qty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qty-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid var(--border-dark);
  color: var(--navy);
  transition: all 0.18s ease;
  text-align: left;
  width: 100%;
}
.qty-card:hover { border-color: var(--navy); }
.qty-card.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.qty-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qty-count { font-size: 13.5px; font-weight: 600; }
.qty-right { text-align: right; display: flex; flex-direction: column; }
.qty-total { font-size: 14px; font-weight: 700; }
.qty-unit { font-size: 11px; color: var(--gray); }
.qty-card.is-active .qty-unit { color: #aebdd2; }
.qty-card.is-active .pill--pop { background: rgba(255, 196, 64, 0.18); border-color: rgba(255,196,64,0.4); color: #ffd97a; }
.qty-card.is-active .pill--save { background: rgba(46, 204, 143, 0.16); border-color: rgba(46,204,143,0.4); color: #7fe3bb; }

.dropzone {
  border: 1.5px dashed var(--border-dark);
  background: var(--bg-panel);
  padding: 24px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
}
.dropzone:hover { border-color: var(--navy); }
.dropzone.is-dragging { border-color: var(--accent); background: #eef6fd; }
.dropzone .dz-title { font-size: 13px; font-weight: 600; color: var(--navy); }
.dropzone .dz-sub { font-size: 11.5px; color: var(--gray); margin-top: 5px; }
.file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--green-bg);
  border: 1px solid #bfe0cc;
  color: #14532d;
  padding: 10px 14px;
  font-size: 12px;
  margin-top: 12px;
}
.file-chip-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip-remove {
  background: none; border: none;
  color: var(--green);
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}
.file-chip-remove:hover { color: #14532d; text-decoration: underline; }
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.check-row input { width: 16px; height: 16px; accent-color: var(--navy); }
.check-row .hint { font-size: 11.5px; color: var(--gray); }
.step-divider { border-top: 1px solid var(--border); padding-top: 26px; margin-top: 4px; }

/* 3D preview + summary column */
.calc-side { position: sticky; top: 94px; display: flex; flex-direction: column; gap: 22px; }
.stage-panel { background: var(--navy-deep); border: 1px solid var(--navy-deep); padding: 20px; }
.stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.stage-title {
  display: flex; align-items: center; gap: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e7edf6;
}
.stage-title .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ecc8f;
  animation: caretBlink 1.6s steps(1) infinite;
}
.stage-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 4px 11px;
}
#preview-stage {
  height: 300px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #16233c, #0b1322);
  border: 1px solid rgba(255,255,255,0.1);
  user-select: none;
}
#webgl-3d-canvas { width: 100%; height: 100%; cursor: grab; }
#webgl-3d-canvas:active { cursor: grabbing; }
.stage-hint {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(0,0,0,0.5);
  color: #d5deeb;
  font-size: 11px;
  padding: 5px 10px;
  pointer-events: none;
}
.stage-controls {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.stage-controls .sc-left { display: flex; gap: 7px; }
.stage-btn {
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #d5deeb;
  transition: all 0.18s ease;
}
.stage-btn:hover { background: rgba(255,255,255,0.16); }
.stage-btn.is-on { background: rgba(30,150,230,0.25); border-color: rgba(30,150,230,0.55); color: #a9d8f7; }
.stage-btn--sample { background: rgba(30,150,230,0.18); border-color: rgba(30,150,230,0.4); color: #a9d8f7; }
.stage-caption { margin-top: 14px; font-size: 12px; color: #93a5bf; line-height: 1.65; min-height: 38px; }

.summary-panel { background: #fff; border: 1px solid var(--border); padding: 26px; }
.summary-top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.summary-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}
.summary-total { font-size: 32px; font-weight: 600; color: var(--navy); letter-spacing: 0.01em; }
.summary-unit { text-align: right; font-size: 12px; color: var(--green); font-weight: 500; margin-top: 2px; }
.summary-specs {
  margin-top: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 13px 15px;
  font-size: 12.5px;
  color: #3d4655;
  line-height: 1.65;
}
.checkout-error {
  margin-top: 14px;
  background: var(--red-bg);
  border: 1px solid #f3c2be;
  color: var(--red);
  padding: 12px 14px;
  font-size: 12.5px;
  font-weight: 500;
}
#paypal-button-container { margin-top: 20px; min-height: 8px; }
.demo-banner {
  margin-top: 16px;
  background: var(--amber-bg);
  border: 1px solid #ecd9a8;
  color: #6b4a00;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.6;
}
.demo-banner code { font-family: ui-monospace, monospace; font-size: 11px; }
#demo-pay-btn { margin-top: 12px; }
.summary-note {
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--gray);
  text-align: center;
  line-height: 1.65;
}

/* ---------- Craft / feature blocks ---------- */
.craft-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 54px; align-items: start; }
.craft-copy h2 {
  font-size: 29px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.3;
}
.craft-copy p { margin-top: 18px; font-size: 13.5px; color: #5b6472; line-height: 1.8; }
.craft-copy p strong { color: var(--navy); }
.callout {
  margin-top: 24px;
  background: var(--bg-cta);
  border: 1px solid var(--border);
  padding: 18px 20px;
  font-size: 12.5px;
  color: #3d4655;
  line-height: 1.7;
}
.callout strong { display: block; color: var(--navy); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature-card { border: 1px solid var(--border); background: #fff; padding: 24px 22px; }
.feature-card .fc-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.feature-card h3 {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}
.feature-card p { margin-top: 9px; font-size: 12.5px; color: #5b6472; line-height: 1.7; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.process-card { background: #fff; border: 1px solid var(--border); padding: 30px 26px; }
.process-card .step-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--gray-soft);
}
.process-card h3 {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}
.process-card p { margin-top: 10px; font-size: 12.5px; color: #5b6472; line-height: 1.75; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); background: #fff; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  font-size: 20px;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; font-size: 13px; color: #5b6472; line-height: 1.8; }
.faq-item .faq-body strong { color: var(--navy); }
.faq-item .faq-body a { color: var(--accent); font-weight: 600; }
.faq-item .faq-body a:hover { text-decoration: underline; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-cta); border-top: 1px solid var(--border); padding: 64px 0; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.cta-copy h2 {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}
.cta-copy p { margin-top: 8px; font-size: 13px; color: #5b6472; max-width: 460px; line-height: 1.7; }
.cta-form { display: flex; gap: 0; }
.cta-form input {
  width: 300px;
  max-width: 70vw;
  padding: 13px 16px;
  border: 1px solid var(--border-dark);
  border-right: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--navy);
  outline: none;
  background: #fff;
}
.cta-form input:focus { border-color: var(--navy); }
.cta-form .btn { border-radius: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 66px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 48px;
}
.footer-brand p { margin-top: 16px; font-size: 12.5px; color: #5b6472; line-height: 1.75; max-width: 320px; }
.footer-brand .f-contact { margin-top: 14px; font-size: 12.5px; color: #5b6472; }
.footer-brand .f-contact a { color: var(--navy); font-weight: 600; }
.footer-brand .f-contact a:hover { color: var(--accent); }
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 12.5px; color: #5b6472; }
.footer-col a:hover { color: var(--accent); }
.footer-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.footer-photos a { display: block; overflow: hidden; }
.footer-photos img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.4s ease; }
.footer-photos a:hover img { transform: scale(1.07); }
.footer-bottom {
  margin-top: 52px;
  border-top: 1px solid var(--border);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--gray);
  letter-spacing: 0.04em;
}
.back-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 70;
  width: 44px; height: 44px;
  background: var(--charcoal);
  border: none;
  color: #fff;
  font-size: 18px;
  display: none;
  align-items: center;
  justify-content: center;
}
.back-top.is-visible { display: flex; }
.back-top:hover { background: var(--accent); }

/* ---------- Receipt modal ---------- */
.receipt-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(10, 18, 32, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.receipt-modal.is-open { display: flex; }
.receipt-card { background: #fff; max-width: 460px; width: 100%; padding: 34px 32px; }
.receipt-check {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green-bg);
  border: 1px solid #bfe0cc;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
}
.receipt-card h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.receipt-card .receipt-sub { margin-top: 8px; font-size: 12.5px; color: #5b6472; line-height: 1.7; }
.receipt-card .receipt-sub strong { color: var(--navy); font-family: ui-monospace, monospace; }
.receipt-summary { margin-top: 20px; background: var(--bg-panel); border: 1px solid var(--border); padding: 8px 16px; }
.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.receipt-row--last { border-bottom: none; }
.receipt-label { color: var(--gray); }
.receipt-value { font-weight: 600; color: var(--navy); }
.receipt-value--right { text-align: right; max-width: 62%; font-weight: 500; }
.receipt-actions { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.receipt-close-btn {
  background: none;
  border: none;
  padding: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}
.receipt-close-btn:hover { color: var(--navy); }

/* ---------- Policy pages ---------- */
.policy-wrap { max-width: 820px; margin: 0 auto; padding: 64px 24px 84px; }
.policy-wrap .updated { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); margin-bottom: 30px; }
.policy-wrap h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 34px 0 12px;
}
.policy-wrap h2:first-of-type { margin-top: 0; }
.policy-wrap p { font-size: 13.5px; color: #454f5e; line-height: 1.85; margin-bottom: 12px; }
.policy-wrap a { color: var(--accent); font-weight: 600; }
.policy-wrap a:hover { text-decoration: underline; }
.policy-back {
  display: inline-block;
  margin-bottom: 26px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}
.policy-back:hover { color: var(--accent); }

/* ---------- Spec strip ---------- */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  background: #fff;
}
.spec-cell { padding: 24px 22px; border-right: 1px solid var(--border); }
.spec-cell:last-child { border-right: none; }
.spec-cell .spec-value { font-size: 20px; font-weight: 500; color: var(--navy); letter-spacing: 0.02em; }
.spec-cell .spec-label { margin-top: 5px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); line-height: 1.55; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-side { position: static; }
  .craft-grid { grid-template-columns: 1fr; gap: 36px; }
  .material-grid { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 2; }
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .spec-cell { border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 60px 0 40px; }
  .hero-media { min-height: 340px; margin: 0 -24px; }
  .lightbox-card { grid-template-columns: 1fr; overflow-y: auto; }
  .lightbox-media img { max-height: 46vh; }
}
@media (max-width: 760px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 16px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 11px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .main-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .hero h1 { font-size: 32px; }
  .hero-trust { grid-template-columns: 1fr; gap: 14px; }
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 26px; }
  .seg-grid { grid-template-columns: repeat(2, 1fr); }
  .opt-grid { grid-template-columns: repeat(2, 1fr); }
  .opt-grid--2, .qty-grid, .dim-grid { grid-template-columns: 1fr; }
  .calc-panel { padding: 24px 20px; }
  .process-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .material-grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .spec-strip { grid-template-columns: 1fr; }
  .spec-cell { border-right: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-form { width: 100%; }
  .cta-form input { flex: 1; max-width: none; }
  .page-band h1 { font-size: 26px; }
  .lightbox { padding: 14px; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
}
