/* GMR structural styles — consumes tokens from theme.css.
   Day-to-day look changes happen in theme.css, not here. */

* { box-sizing: border-box; }
html { font-size: var(--base-size); scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.6;
  /* engineering grid */
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; letter-spacing: .5px; }
code { font-family: var(--font-mono); background: var(--panel-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; font-size: .88em; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* admin bar */
.adminbar {
  display: flex; align-items: center; gap: 16px;
  background: #000; color: #fff; padding: 8px 20px; font-size: 13px;
  font-family: var(--font-mono); border-bottom: 1px solid var(--line);
  position: relative; z-index: 60;
}
.adminbar a { color: #fff; }
.adminbar a:hover { color: var(--brand); }
.adminbar .spacer { flex: 1; }
.adminbar .who { color: var(--muted); }

/* header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 14px 28px; position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  transition: padding .25s ease;
}
.site-header.scrolled { padding: 8px 28px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: var(--logo-h); width: auto; display: block; transition: height .25s ease; }
.site-header.scrolled .brand img { height: calc(var(--logo-h) - 8px); }
.mainnav { display: flex; align-items: center; }
.mainnav a {
  color: var(--header-ink); margin-left: 26px; font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: 1.6px; position: relative; padding: 4px 0;
}
.mainnav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--brand); transition: width .25s ease;
}
.mainnav a:hover { color: #fff; }
.mainnav a:hover::after { width: 100%; }

/* layout */
.content { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 80px; }
.narrow { max-width: var(--textw); margin-left: auto; margin-right: auto; }
.page-head { margin-bottom: 28px; }
.page-head.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-head h1 { font-size: 40px; text-transform: uppercase; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.right { text-align: right; }
.full-bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* section labels — "// 01 · SERVICES" */
.section-label {
  font-family: var(--font-mono); font-size: 13px; color: var(--brand);
  letter-spacing: 2px; text-transform: uppercase; margin: 0 0 10px;
}
.section-title { font-size: 36px; text-transform: uppercase; margin: 0 0 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head .section-title { margin-bottom: 0; }
.more-link { font-family: var(--font-mono); font-size: 13px; color: var(--muted); letter-spacing: 1px; }
.more-link:hover { color: var(--brand); }

/* scroll-reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* landing hero */
.landing-hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  margin-top: -40px; margin-bottom: 72px; overflow: hidden;
}
#hero3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-bg {
  position: absolute; inset: -1.5%; background-size: cover; background-position: center bottom;
  animation: hero-drift 26s ease-in-out infinite alternate;
}
.landing-hero.photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,9,11,.35) 0%, transparent 30%, transparent 60%, rgba(8,9,11,.7) 100%),
    linear-gradient(95deg, rgba(8,9,11,.93) 0%, rgba(8,9,11,.78) 38%, rgba(8,9,11,.38) 68%, rgba(8,9,11,.18) 100%);
}
@keyframes hero-drift { from { transform: scale(1); } to { transform: scale(1.02); } }

/* split hero — full photo visible (no crop), feathered into the dark bg */
.landing-hero.split {
  background:
    radial-gradient(60% 70% at 72% 45%, rgba(225,6,0,.10), transparent 70%),
    var(--bg);
}
.lh-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center;
  width: 100%; max-width: calc(var(--maxw) + 140px); margin: 0 auto; padding: 90px 24px 70px;
}
.landing-hero.split .lh-inner { padding: 0; }
.lh-photo {
  aspect-ratio: 1/1; width: 100%; max-height: 82vh;
  background-size: cover; background-position: center;
  border-radius: var(--radius);
  -webkit-mask-image: radial-gradient(115% 115% at 50% 50%, #000 62%, transparent 98%);
  mask-image: radial-gradient(115% 115% at 50% 50%, #000 62%, transparent 98%);
  animation: hero-breathe 18s ease-in-out infinite alternate;
}
@keyframes hero-breathe { from { transform: scale(1); } to { transform: scale(1.025); } }
@media (max-width: 920px){
  .lh-grid { grid-template-columns: 1fr; padding-top: 60px; }
  .lh-photo { order: -1; max-height: 52vh; }
  .landing-hero.split { min-height: auto; padding-bottom: 30px; }
}
.landing-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
  background: linear-gradient(transparent, var(--bg)); pointer-events: none;
}
.lh-inner {
  position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto;
  padding: 110px 24px 70px; width: 100%; pointer-events: none;
}
.lh-inner .btn, .lh-inner select, .lh-inner a { pointer-events: auto; }
.lh-inner h1 {
  font-size: clamp(50px, 8vw, 104px); margin: 0 0 18px; text-transform: uppercase;
  line-height: .92; max-width: 12ch; color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,.55);
}
.lh-inner .sub { font-size: 20px; color: #cfd3d8; max-width: 520px; margin: 0 0 34px; text-shadow: 0 1px 14px rgba(0,0,0,.6); }
.scroll-cue {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 24px; height: 38px; border: 2px solid var(--muted); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; top: 6px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px;
  background: var(--brand); border-radius: 2px; animation: cue 1.6s ease infinite;
}
@keyframes cue { 0%{opacity:0;transform:translateY(0)} 30%{opacity:1} 100%{opacity:0;transform:translateY(12px)} }

/* halo — ITB kits */
.halo { margin: 0 0 88px; }
.halo-intro { color: #b9c0c7; max-width: 70ch; margin: 0 0 30px; font-size: 17px; }
.kit-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.kit-card {
  display: grid; grid-template-columns: 1fr 1fr; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  color: var(--ink); position: relative; transition: border-color .25s ease, transform .25s ease;
}
.kit-card::before {
  content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 0;
  background: var(--brand); transition: width .35s ease; z-index: 2;
}
.kit-card:hover { border-color: var(--brand); transform: translateY(-4px); color: var(--ink); }
.kit-card:hover::before { width: 100%; }
.kit-img { background: #fff center/contain no-repeat; min-height: 260px; border-right: 1px solid var(--line); }
.kit-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.kit-body h3 { margin: 4px 0 0; font-size: 24px; text-transform: uppercase; }
.kit-cta { font-family: var(--font-mono); font-size: 13px; color: var(--brand); letter-spacing: 1px; margin-top: auto; }
.halo-foot { margin-top: 18px; }
.halo-foot a { color: var(--brand); }
@media (max-width: 560px){ .kit-card { grid-template-columns: 1fr; } .kit-img { min-height: 200px; border-right: 0; border-bottom: 1px solid var(--line); } }

/* why pillars (image-led) */
.why { margin: 0 0 88px; }
.pillar {
  display: grid; grid-template-columns: minmax(280px, 460px) 1fr; gap: 44px; align-items: center;
  padding: 44px 0; border-bottom: 1px solid var(--line);
}
.pillar.alt { grid-template-columns: 1fr minmax(280px, 460px); }
.pillar.alt .pillar-media { order: 2; }
.pillar-media {
  aspect-ratio: 4/3; background-size: cover; background-position: center;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.pillar-media.tall { aspect-ratio: 2/3; max-width: 400px; margin: 0 auto; }
img.pillar-media { display: block; width: 100%; object-fit: cover; height: auto; }
.data-link {
  display: inline-block; margin-top: 14px; font-family: var(--font-mono); font-size: 13px;
  color: var(--brand); letter-spacing: .5px;
}
.pillar-stat { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.pillar-num {
  font-family: var(--font-mono); font-weight: 600; color: var(--brand);
  font-size: clamp(40px, 5vw, 64px); line-height: 1;
}
.pillar-num .accent { color: var(--brand); }
.pillar-cap {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted);
}
.pillar-copy h3 { font-size: 28px; text-transform: uppercase; margin: 0 0 10px; }
.pillar-copy p { color: #b9c0c7; margin: 0; max-width: 62ch; }
.pillar-copy em { color: #fff; font-style: normal; font-weight: 600; }
@media (max-width: 820px){
  .pillar, .pillar.alt { grid-template-columns: 1fr; gap: 16px; }
  .pillar.alt .pillar-media { order: 0; }
}

/* dyno section */
.dyno { margin: 0 0 88px; }
.dyno-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: center; }
.dyno-svg {
  width: 100%; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px;
}
.dyno-axis line { stroke: var(--line); stroke-width: 1.5; }
.dyno-axis text, .dyno-legend text {
  font-family: var(--font-mono); font-size: 12px; fill: var(--muted);
  letter-spacing: 1px;
}
.dyno-path { fill: none; stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; }
.dyno-path.gmr { stroke: var(--brand); filter: drop-shadow(0 0 6px rgba(225,6,0,.55)); }
.dyno-path.ghost { stroke: #4a525c; stroke-width: 2; stroke-dasharray: 1; }
.reveal.in .dyno-path.gmr { transition: stroke-dashoffset 2s ease .3s; stroke-dashoffset: 0; }
.reveal.in .dyno-path.ghost { transition: stroke-dashoffset 2s ease; stroke-dashoffset: 0; }
.lg-gmr { fill: var(--brand); } .lg-ghost { fill: #4a525c; }
.dyno-copy p { color: #b9c0c7; }
.dyno-copy strong { color: #fff; }
.dyno-copy .btn { margin-top: 10px; }
@media (max-width: 900px){ .dyno-grid { grid-template-columns: 1fr; } }

/* hero (legacy banner, still used elsewhere) */
.hero-banner {
  position: relative; background-size: cover; background-position: center;
  color: #fff; min-height: 88vh; display: flex; align-items: center;
  margin-top: -40px; margin-bottom: 72px;
}
.hero-banner::after {  /* blend the photo into the page background */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px;
  background: linear-gradient(transparent, var(--bg));
}
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 100px 24px 60px; width: 100%; }
.eyebrow {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 3px;
  font-size: 13px; color: var(--brand); margin: 0 0 18px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--brand); }
.hero-banner h1 {
  font-size: clamp(48px, 7.5vw, 92px); margin: 0 0 18px; text-transform: uppercase;
  line-height: .95; max-width: 14ch;
}
.hero-banner .sub { font-size: 19px; color: #c9cdd2; max-width: 540px; margin: 0 0 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }

/* hero stats — animated counters */
.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); max-width: 820px;
}
.stat { background: rgba(11,13,16,.82); padding: 18px 20px; }
.stat-num {
  font-family: var(--font-mono); font-size: 30px; font-weight: 600; color: #fff; display: block;
}
.stat-num .accent { color: var(--brand); }
.stat-label {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--muted);
}

/* buttons */
.btn {
  display: inline-block; background: var(--brand); color: #fff;
  padding: 13px 28px; border-radius: 4px; border: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  text-transform: uppercase; letter-spacing: 1.5px;
  transition: background .2s ease, transform .15s ease;
}
.btn:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn:disabled { background: #3a4048; color: #818a94; cursor: not-allowed; transform: none; }
.btn.lg { padding: 16px 36px; font-size: 17px; }
.btn.ghost { background: transparent; border: 1.5px solid #fff; }
.btn.ghost:hover { background: #fff; color: #0b0d10; }
.link-btn { background: none; border: 0; color: var(--brand); cursor: pointer; padding: 0; font: inherit; }
.link-btn.danger { color: #ff5a52; }

/* services */
.services { margin: 0 0 88px; }
.service-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.service-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--panel); color: #fff; min-height: 320px; display: flex; align-items: flex-end;
  border: 1px solid var(--line); transition: border-color .25s ease, transform .25s ease;
}
.service-card:hover { border-color: var(--brand); transform: translateY(-4px); }
.service-card .sc-img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform .6s ease; opacity: .85;
}
.service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.0), rgba(0,0,0,.88)); }
.service-card:hover .sc-img { transform: scale(1.07); }
.sc-num {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  font-family: var(--font-mono); font-size: 15px; color: var(--brand);
  border: 1px solid var(--brand); padding: 2px 8px; border-radius: 3px; background: rgba(0,0,0,.45);
}
.sc-body { position: relative; z-index: 2; padding: 24px; }
.sc-body h3 { margin: 0 0 6px; font-size: 24px; text-transform: uppercase; }
.sc-body p { margin: 0; font-size: 14px; color: #c4c9cf; }

/* product cards — spec-sheet style */
.grid-section { margin-bottom: 88px; }
.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card {
  display: flex; flex-direction: column; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink);
  position: relative; transition: border-color .25s ease, transform .25s ease;
}
.card::before {  /* red sweep on hover */
  content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 0;
  background: var(--brand); transition: width .3s ease; z-index: 2;
}
.card:hover { border-color: #3a4250; transform: translateY(-4px); color: var(--ink); }
.card:hover::before { width: 100%; }
.card-img { height: 210px; background: #fff center/contain no-repeat; border-bottom: 1px solid var(--line); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 2px 0 0; font-size: 19px; }
.card-sku { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.card.pad { padding: 22px; }
.admin-tiles .big { font-size: 30px; font-family: var(--font-mono); }
.tag {
  display: inline-block; width: fit-content; background: var(--panel-2); color: var(--muted);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 3px; border: 1px solid var(--line);
}
.price { font-family: var(--font-mono); font-weight: 600; color: #fff; margin: auto 0 0; padding-top: 8px; }
.price.big { font-size: 30px; color: var(--brand); margin: 6px 0 4px; }

/* filters */
.filters { margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .5px;
  border: 1px solid var(--line); border-radius: 3px; padding: 7px 14px; color: var(--muted);
  transition: all .2s ease;
}
.chip.on, .chip:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* product page */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.product-info h1 { margin: 10px 0 8px; font-size: 36px; text-transform: uppercase; }
.summary { color: var(--muted); }
.lead-time { font-family: var(--font-mono); font-size: 13px; color: var(--brand); text-transform: uppercase; letter-spacing: 1px; }

/* gallery */
.gallery-main {
  aspect-ratio: 1/1; background: #fff center/contain no-repeat;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs .thumb {
  width: 70px; height: 70px; border-radius: 6px; cursor: pointer;
  background: #fff center/contain no-repeat; border: 2px solid var(--line); padding: 0;
  transition: border-color .2s ease;
}
.gallery-thumbs .thumb:hover { border-color: var(--muted); }
.gallery-thumbs .thumb.on { border-color: var(--brand); }

/* configurator — engineering panel */
.configurator {
  margin: 22px 0 0; display: flex; flex-direction: column; gap: 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.cfg-title {
  font-family: var(--font-mono); font-size: 12px; color: var(--brand);
  letter-spacing: 2px; text-transform: uppercase; margin: 0;
}
.cfg-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; }
.cfg-field em { font-weight: 400; font-style: normal; text-transform: none; letter-spacing: 0; }
.cfg-field select { width: 100%; }
.cfg-part {
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  background: var(--bg); border: 1px dashed var(--line); border-radius: 4px; padding: 10px 12px;
}
.cfg-part code { border: 0; background: none; color: #fff; font-size: 13px; }
.cfg-custom-note { color: var(--brand); font-weight: 600; }
.cfg-status { min-height: 1.2em; font-family: var(--font-mono); font-size: 12px; }
#cfg-price { transition: color .15s ease; }

/* quick configurator (homepage demo) */
.quickcfg {
  margin: 0 0 88px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; position: relative; overflow: hidden;
}
.quickcfg::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--brand); }
.qc-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 36px; align-items: start; }
.qc-fields { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.qc-fields label { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); }
.qc-readout { border-left: 1px solid var(--line); padding-left: 32px; display: flex; flex-direction: column; gap: 8px; }
.qc-price { font-family: var(--font-mono); font-size: 42px; font-weight: 600; color: var(--brand); line-height: 1; }
.qc-part { font-family: var(--font-mono); font-size: 12px; color: var(--muted); word-break: break-all; }
.qc-part b { color: #fff; font-weight: 600; }
@media (max-width: 860px){ .qc-grid { grid-template-columns: 1fr; } .qc-readout { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; } }

/* 3D viewer */
.gal-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.gal-tab {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  background: var(--panel-2); color: var(--muted); border: 1px solid var(--line);
  border-radius: 4px; padding: 8px 16px; cursor: pointer; transition: all .2s ease;
}
.gal-tab.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.gal-tab:hover:not(.on) { color: #fff; border-color: var(--muted); }
.g3d-box {
  aspect-ratio: 1/1; width: 100%; border: 1px solid var(--line); border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(225,6,0,.07), transparent 60%),
    radial-gradient(ellipse at center, #15181e 0%, #0b0d10 85%);
  display: block; overflow: hidden; position: relative;
}
.g3d-box canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.g3d-box:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; border: 0; border-radius: 0; }
.g3d-box .g3d-fill, .g3d-box model-viewer {
  position: absolute; inset: 0; width: 100%; height: 100%; --poster-color: transparent;
}
.g3d-fs {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  background: rgba(11,13,16,.7); color: var(--muted); border: 1px solid var(--line);
  border-radius: 6px; width: 38px; height: 38px; font-size: 18px; cursor: pointer;
  transition: all .2s ease;
}
.g3d-fs:hover { color: #fff; border-color: var(--brand); }
.g3d-hint {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: var(--muted);
  text-transform: uppercase; margin: 10px 0 0; text-align: center;
}
model-viewer.g3d-box { --poster-color: transparent; position: relative; }
.ar-btn { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 13px; padding: 10px 18px; white-space: nowrap; }

/* homepage live 3D */
.qc-grid.three-col { grid-template-columns: minmax(340px, 1.3fr) 1.1fr 1fr; }
.qc-3d .g3d-hint { text-align: left; }
@media (max-width: 1000px){ .qc-grid.three-col { grid-template-columns: 1fr; } }

/* heritage band */
.heritage {
  background-size: cover; background-position: center;
  padding: 110px 24px; margin: 0 0 88px; text-align: center;
}
.heritage-inner { max-width: 760px; margin: 0 auto; }
.heritage-inner .section-label { justify-content: center; }
.heritage h2 {
  font-size: clamp(38px, 5vw, 60px); text-transform: uppercase; margin: 0 0 18px; color: #fff;
}
.heritage p { color: #c9ced4; font-size: 18px; margin: 0; }

/* social reel — auto-scrolling marquee, pauses on hover */
.reel { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.reel-track { display: flex; gap: 16px; width: max-content; animation: reel-scroll 55s linear infinite; }
.reel:hover .reel-track { animation-play-state: paused; }
@keyframes reel-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.reel-card {
  width: 290px; flex: none; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; color: var(--ink);
  transition: border-color .25s ease;
}
.reel-card:hover { border-color: var(--brand); color: var(--ink); }
.reel-img { display: block; position: relative; aspect-ratio: 1/1; background-size: cover; background-position: center; }
.reel-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: #fff; background: rgba(0,0,0,.25);
}
.reel-meta { display: block; padding: 12px 14px; }
.reel-cap { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.4; }

/* fitted by customers gallery */
.fitted { margin: 0 0 88px; }
.fitted-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.shot {
  aspect-ratio: 4/3; margin: 0; background-size: cover; background-position: center;
  border-radius: var(--radius); border: 1px solid var(--line);
  transition: transform .3s ease, border-color .3s ease; cursor: pointer;
}
.shot:hover { transform: scale(1.025); border-color: var(--brand); }
.fitted > .muted { margin-top: 14px; }

/* prose (CMS/blog content) */
.prose { margin-top: 12px; }
.prose.product-desc { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 28px; }
.prose h1 { font-size: 38px; text-transform: uppercase; }
.prose h2 { margin-top: 1.6em; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.prose a { color: var(--brand); }

/* blog */
.post-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .25s ease, transform .25s ease;
}
.post-card:hover { border-color: var(--brand); transform: translateY(-3px); color: var(--ink); }
.post-thumb { height: 180px; background: var(--panel-2) center/cover no-repeat; border-bottom: 1px solid var(--line); }
.post-card:hover .post-thumb { opacity: .9; }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.post-card h3 { margin: 0; font-size: 22px; }
.post-hero {
  width: 100%; max-height: 380px; object-fit: cover;
  border: 1px solid var(--line); border-radius: var(--radius); margin: 18px 0 6px;
}
.post-date { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.post-excerpt { color: var(--muted); font-size: 14px; margin: 0; }

/* footer */
.site-footer { background: #07090b; border-top: 1px solid var(--line); margin-top: 80px; padding: 52px 24px 28px; }
.foot-grid { max-width: var(--maxw); margin: 0 auto; display: flex; gap: 72px; flex-wrap: wrap; }
.foot-grid strong { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-size: 16px; }
.foot-grid p { color: var(--muted); font-size: 14px; max-width: 360px; }
.copyright {
  max-width: var(--maxw); margin: 36px auto 0; color: #5b646e; font-size: 12px;
  font-family: var(--font-mono); border-top: 1px solid var(--line); padding-top: 18px;
}

/* forms */
form.stack { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
form.stack label, .row label { display: flex; flex-direction: column; font-weight: 600; font-size: 13px; gap: 6px; }
input, textarea, select {
  font: inherit; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 6px; font-weight: 400; background: var(--panel-2); color: var(--ink);
}
input::placeholder, textarea::placeholder { color: #5b646e; }
select { cursor: pointer; }
textarea { resize: vertical; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > label { flex: 1; min-width: 150px; }
.row.end { align-items: flex-end; }
img.thumb { max-width: 150px; border-radius: 6px; border: 1px solid var(--line); margin-bottom: 6px; }

/* admin */
.admin-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.admin-table th, .admin-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.admin-table th { color: var(--muted); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.admin-table a { color: var(--brand); }
.pill { font-family: var(--font-mono); font-size: 11px; padding: 2px 10px; border-radius: 3px; background: var(--panel-2); border: 1px solid var(--line); }
.pill.published { color: #4ade80; border-color: #14532d; }
.pill.draft { color: #fbbf24; border-color: #713f12; }
.badge-draft { display: inline-block; background: #2a2007; color: #fbbf24; border: 1px solid #713f12; padding: 4px 10px; border-radius: 4px; font-family: var(--font-mono); font-size: 12px; }
.variations-admin { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 26px; }
.newkey { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.newkey legend { font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding: 0 8px; }

/* admin model orientation preview */
.model-preview { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; max-width: 760px; }
.model-preview legend { font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding: 0 8px; }
.g3d-box.admin-prev { max-width: 420px; }
.prev-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }

.auth-box { max-width: 380px; margin: 48px auto; }
.auth-box form { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }

/* newsletter popup */
.nl-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.nl-modal[hidden] { display: none; }
.nl-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(3px); }
.nl-dialog {
  position: relative; background: var(--panel-2); border: 1px solid var(--line);
  max-width: 430px; width: 90%; padding: 40px 34px 34px; border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(0,0,0,.6); text-align: center; animation: nl-in .25s ease;
}
.nl-dialog::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--brand); border-radius: 8px 8px 0 0; }
@keyframes nl-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.nl-x { position: absolute; top: 8px; right: 14px; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }
.nl-x:hover { color: #fff; }
.nl-dialog h2 { margin: 0 0 8px; font-size: 30px; text-transform: uppercase; }
.nl-dialog > p { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.nl-dialog form { display: flex; flex-direction: column; gap: 10px; }
.nl-msg { min-height: 1.2em; font-family: var(--font-mono); font-size: 13px; margin: 12px 0 0; color: var(--brand); }

@media (max-width: 720px){
  .product { grid-template-columns: 1fr; }
  .hero-banner { min-height: 76vh; }
  .hero-banner h1 { font-size: 42px; }
  .mainnav a { margin-left: 16px; font-size: 12px; letter-spacing: 1px; }
}
