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

* { box-sizing: border-box; }
/* overflow-x: clip kills the phantom horizontal scrollbar from the 50vw
   full-bleed sections (50vw counts the vertical scrollbar width). clip — not
   hidden — so it doesn't create a scroll container and the sticky header keeps
   working. */
html { font-size: var(--base-size); scroll-behavior: smooth; overflow-x: clip; }
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;
  overflow-x: auto; white-space: nowrap;  /* scroll internally on narrow screens */
}
.adminbar a { color: #fff; }
.adminbar a:hover { color: var(--brand); }
.adminbar .spacer { flex: 1; }
/* thin rule between groups of related admin pages */
.adminbar .ab-sep { width: 1px; height: 14px; background: #333; flex: 0 0 1px; }
.adminbar a.on { color: var(--brand); }
.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); } }

/* hero slideshow: stacked background layers cross-fade between chosen images */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.landing-hero.has-slides .hero-bg { opacity: 0; transition: opacity 1.1s ease; }
.landing-hero.has-slides .hero-bg.is-active { opacity: 1; }
.hero-dots {
  position: absolute; right: 22px; bottom: 26px; z-index: 3;
  display: flex; gap: 10px;
}
.hero-dot {
  width: 11px; height: 11px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,.75); background: rgba(255,255,255,.18);
  transition: background .25s ease, transform .25s ease;
}
.hero-dot:hover { transform: scale(1.15); }
.hero-dot.is-active { background: var(--brand); border-color: var(--brand); }
@media (max-width: 920px){
  .hero-dots { right: 50%; transform: translateX(50%); bottom: 16px; }
  /* hero images are composed with the subject in the right half (the left is
     graphite for the headline); on narrow screens `cover` would crop to that
     boundary, so pan to the middle of the photo instead. */
  .hero-bg { background-position: 73% center; }
}
@media (prefers-reduced-motion: reduce){
  .hero-bg { animation: none; }
  .landing-hero.has-slides .hero-bg { transition: none; }
}

/* 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: 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;
}
.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%; }
/* Image on top, full card width — side-by-side left the text in a ~180px column
   (3-up grid) where the title and price wrapped badly and the photo sat in a
   tall band of empty white. 4:3 suits the square product shots without making
   the card image-heavy. */
.kit-img {
  background: #fff center/cover no-repeat; aspect-ratio: 4/3; width: 100%;
  border-bottom: 1px solid var(--line);
}
.kit-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kit-body h3 { margin: 4px 0 0; font-size: 21px; 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); }


/* 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;
}
/* The cards are links now. The global a:hover would otherwise repaint the
   whole card red, and a phone has no hover at all - hence the cue. */
.service-card:hover { border-color: var(--brand); transform: translateY(-4px); color: #fff; }
.sc-cta { display: inline-block; margin-top: 14px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .5px; color: var(--brand); }
.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%; }
/* library picker on the product form: reuse a photo or a model already uploaded */
.lib-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.lib-chosen { font-size: 12px; color: var(--muted); }
.lib-clear { background: none; border: 0; color: var(--brand); cursor: pointer;
  font: inherit; text-decoration: underline; padding: 0 2px; }
#lib-dialog { width: min(920px, 92vw); border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); color: var(--ink); padding: 0; }
#lib-dialog::backdrop { background: rgba(0,0,0,.6); }
.lib-head { display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--line); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px; padding: 16px; max-height: 70vh; overflow: auto; }
.lib-cell { display: flex; flex-direction: column; gap: 6px; align-items: center;
  padding: 8px; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 8px; cursor: pointer; color: var(--ink); font-size: 11px; text-align: center; }
.lib-cell:hover { border-color: var(--brand); }
.lib-cell img { width: 100%; height: 88px; object-fit: contain; background: #fff; border-radius: 5px; }
.lib-glb { display: flex; align-items: center; justify-content: center; width: 100%;
  height: 88px; background: var(--panel); border-radius: 5px; font-family: var(--font-mono);
  color: var(--brand); }

/* a quote-only card has no number to show, so it says what it is instead */
.price.enquire { font-size: 15px; color: var(--brand); letter-spacing: .02em; }
.price-unit { font-size: .5em; font-weight: 400; color: var(--muted); letter-spacing: .02em; }

.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); }

/* Coming soon: a product that exists but cannot be bought yet. The badge sits
   next to the category so the state is read before the price is looked for. */
.tag-soon { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Postcode lookup: the field and its button sit on one row, and the button
   must not stretch to the full width the form grid would give it. */
.addr-find { display: flex; gap: 8px; align-items: stretch; }
.addr-find input { flex: 1; min-width: 0; }
.addr-find button { white-space: nowrap; }
.addr-msg:empty { display: none; }
.addr-msg.addr-err { color: var(--brand); }

/* Refunds in the admin order view. Deliberately plain: this moves real money,
   so it should not look like a one-click action. */
.rf-box { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 12px; background: var(--panel-2); }
.rf-box > summary { cursor: pointer; font-weight: 600; }
.rf-box form { display: grid; gap: 10px; margin-top: 12px; }
.rf-box label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.rf-box input[type=text], .rf-box input:not([type]) { padding: 8px 10px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); border-radius: 6px; }
.rf-check { display: flex !important; align-items: center; gap: 8px; }
.rf-check input { width: auto; }
.rf-done { margin-top: 16px; border-left: 3px solid var(--brand); padding: 4px 0 4px 12px; }
.rf-done ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.rf-ok { border-left: 3px solid var(--good, #3a8); padding: 8px 12px; background: var(--panel-2);
  border-radius: var(--radius); margin-bottom: 14px; }
.ac-addr-edit { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.price.big.coming { color: var(--brand); }

/* The category chips roll up on a phone so the products start at the top of the
   screen. The toggle carries the active filter, so collapsing never hides where
   you are. */
.filter-toggle { display: none; }
@media (max-width: 720px){
  .filter-toggle {
    display: block; width: 100%; text-align: left; margin-bottom: 14px;
    font-family: var(--font-mono); font-size: 13px; letter-spacing: .5px;
    border: 1px solid var(--line); border-radius: 3px; padding: 10px 14px;
    color: var(--muted); background: transparent; cursor: pointer;
  }
  .filter-toggle::after { content: "\25BE"; float: right; }
  .filter-toggle[aria-expanded="true"]::after { content: "\25B4"; }
  .filters { display: none; }
  .filters.open { display: flex; }
}

/* product page */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
/* The buy column carries the price, the configurator and the button; "what's
   included" belongs beside it rather than above it, or the decision scrolls off
   the screen. It goes under the gallery, which has the room. */
.product > .gallery { grid-column: 1; grid-row: 1; }
/* spec list in a product summary — a label/value pair per line, so a
   datasheet reads as one rather than collapsing into a paragraph */
.summary dl.spec { margin: 10px 0 0; display: grid;
  grid-template-columns: minmax(9rem, auto) 1fr; gap: 3px 16px; font-size: 14px; }
.summary dl.spec dt { color: var(--muted); }
.summary dl.spec dd { margin: 0; }
@media (max-width: 560px){ .summary dl.spec { grid-template-columns: 1fr; gap: 0 0; }
  .summary dl.spec dt { margin-top: 8px; } }

.product > .product-info { grid-column: 2; grid-row: 1 / span 2; }
/* "What's included" sits directly under the viewer, and downloads below that.
   Both are placed explicitly: left to auto-placement, a product that gains or
   loses a downloads panel would shuffle the one the customer reads first. */
.product > .includes { grid-column: 1; grid-row: 2; }
.product > .downloads { grid-column: 1; grid-row: 3; }
.product-info h1 { margin: 10px 0 8px; font-size: 36px; text-transform: uppercase; }
.summary { color: var(--muted); }

/* made-to-order lead time — prominent, next to the price */
.lead-callout {
  margin: 14px 0 18px; padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--line); border-left: 3px solid var(--brand);
  background: var(--panel);
}
.lc-tag {
  display: inline-block; font: 600 10px/1 var(--mono, monospace); letter-spacing: .12em;
  color: var(--brand); margin-bottom: 6px;
}
.lc-main { margin: 0; font-size: 16px; color: var(--ink); }
.lc-sub { margin: 3px 0 0; font-size: 13px; color: var(--muted); }

/* small "£X inc. VAT" hint under a headline (ex-VAT) price */
.price-vat { margin: 2px 0 0; font-size: 12px; color: var(--muted); font-weight: 400; }
.price.big + .price-vat { font-size: 13px; margin-top: 4px; }
.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); }

/* "what's included" — base contents vs paid options, above the configurator */
.includes {
  margin: 0; padding: 16px 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel);
}
.includes-title {
  font-family: var(--font-mono); font-size: 12px; color: var(--brand);
  letter-spacing: 2px; text-transform: uppercase; margin: 0 0 10px;
}
.includes .prose > :first-child { margin-top: 0; }
.includes .prose > :last-child { margin-bottom: 0; }
.includes .prose p { font-size: 14px; margin: 0 0 10px; }
.includes .prose h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--muted); margin: 14px 0 6px;
}
.includes .prose ul { margin: 0 0 10px; padding-left: 18px; }
.includes .prose li { font-size: 14px; margin: 0 0 4px; }

/* "want this, but not quite like this?" — folded away under the buy column so it
   is there for the person who needs it without arguing with the Add to basket */
.tweak {
  margin: 16px 0 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); padding: 0 18px;
}
.tweak > summary {
  cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 14px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.tweak > summary::-webkit-details-marker { display: none; }
.tweak > summary::after { content: "+"; color: var(--brand); font-size: 18px; line-height: 1; }
.tweak[open] > summary::after { content: "2"; }
.tweak > summary:hover { color: var(--brand); }
.tweak > *:not(summary) { margin-bottom: 14px; }
.tweak form { display: flex; flex-direction: column; gap: 12px; }
.tweak-done {
  margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius);
  border: 1px solid var(--line); border-left: 3px solid var(--brand); background: var(--panel);
  font-size: 14px;
}

/* bespoke enquiry form — sits where the configurator does on a quote-only listing */
.enquiry {
  margin: 22px 0 0; display: flex; flex-direction: column; gap: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.enquiry .cfg-title { margin: 0; }
.enquiry > p { margin: 0; }
.enq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.enq-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; }
.enq-field.wide { grid-column: 1 / -1; }
.enq-field em {
  font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted);
}
.enq-field input, .enq-field select, .enq-field textarea { width: 100%; }
.enq-field textarea { resize: vertical; }
.enq-err {
  background: var(--panel-2); border-left: 3px solid var(--brand);
  padding: 8px 12px; border-radius: 4px; font-size: 14px;
}
.enquiry.done p + p { margin-top: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.oq-link { text-align:center; margin: 10px 0 0; }
.oq-link a { color: var(--brand); }
@media (max-width: 720px){ .enq-grid { grid-template-columns: 1fr; } }

/* "GMR recommends" — one click to a build we would specify */
.presets { margin: 20px 0 0; }
.preset-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.preset { flex: 1 1 150px; text-align: left; cursor: pointer; padding: 11px 13px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); font: inherit; transition: border-color .2s ease, background .2s ease; }
.preset:hover { border-color: var(--brand); }
.preset.on { border-color: var(--brand); background: var(--panel-2); }
.preset strong { display: block; font-size: 14px; }
.preset span { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.4; }

/* 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%; }
/* a combination we will not build: say why, in the place the price would be */
.cfg-status.cfg-warn { color: var(--brand); font-size: 13px; line-height: 1.5;
  border-left: 2px solid var(--brand); padding-left: 10px; }
.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; }

/* quantity + flow-matched set (injectors) */
.qty-buy {
  margin: 22px 0 0; display: flex; flex-direction: column; gap: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.qb-row { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin: 0; }
.qb-qty { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: .8px; }
.qb-qty input { width: 96px; }
.qb-each { margin: 0 0 6px; }
.qb-match { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.qb-match input { margin-top: 2px; flex: none; width: 16px; height: 16px; accent-color: var(--brand); }
.qb-match em { font-style: normal; color: var(--brand); font-weight: 600; }
.qb-match input:disabled + span { color: var(--muted); }
.qb-match:has(input:disabled) { cursor: default; }
.qb-note { margin: -6px 0 0; }
.qb-total { font-family: var(--font-mono); margin: 0; display: flex; align-items: baseline;
  gap: 8px; flex-wrap: wrap; }
.qb-total strong { font-size: 28px; color: var(--brand); font-weight: 600; line-height: 1; }
.qb-status { min-height: 1.2em; font-family: var(--font-mono); font-size: 12px; color: var(--brand); }

/* 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 {
  /* White stage, matching .gallery-main so the 3D tab and the photo tab read as
     the same lightbox. The viewer's own lighting is tuned for this in
     product.html — a background swap alone would look murky. */
  aspect-ratio: 1/1; width: 100%; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff;
  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;
}
/* configured 3D view: the model follows the variation */
.cfg3d { display: block; }
.cfg3d:not(.ready):not(.failed)::after {
  content: "Loading the model6"; position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: #8a8f98;
}
.cfg3d.failed::after {
  content: "The 3D model could not be loaded"; position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; color: #8a8f98;
}

/* the configurator, riding along in fullscreen */
.g3d-cfg { display: none; }
.g3d-box:fullscreen .g3d-cfg {
  display: flex; flex-direction: column; gap: 14px;
  position: absolute; top: 0; right: 0; height: 100%; width: 370px; max-width: 92vw;
  box-sizing: border-box; padding: 20px; overflow: auto; z-index: 6;
  background: rgba(12, 14, 18, .93);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-left: 1px solid rgba(255,255,255,.14); color: #fff;
}
/* the panels inside already have their own frame on the page; in here the
   surrounding panel IS the frame, so they go flat */
.g3d-box:fullscreen .g3d-cfg .configurator,
.g3d-box:fullscreen .g3d-cfg .presets {
  background: transparent; border: 0; padding: 0; margin: 0;
}
.g3d-box:fullscreen .g3d-cfg .price { margin: 0; font-size: 30px; }
.g3d-box:fullscreen .g3d-cfg .price-vat { margin: -8px 0 0; }
.g3d-box:fullscreen .g3d-cfg .cfg-field,
.g3d-box:fullscreen .g3d-cfg .muted,
.g3d-box:fullscreen .g3d-cfg .preset span { color: #e8e8ec; }
.g3d-box:fullscreen .g3d-cfg .preset { background: rgba(255,255,255,.07); color: #fff; }
.g3d-box:fullscreen .g3d-cfg .cfg-part { background: rgba(0,0,0,.35); }
.g3d-box:fullscreen .g3d-cfg select,
.g3d-box:fullscreen .g3d-cfg input[type="number"] {
  background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28);
}
.g3d-box:fullscreen .g3d-cfg select option { background: #15171c; color: #fff; }
/* the fullscreen button would sit under the panel, so it swaps sides */
.g3d-box:fullscreen .g3d-fs { left: 10px; right: auto; z-index: 7; }
/* on a phone it is a bottom sheet instead, or the model has nowhere to live */
@media (max-width: 760px) {
  .g3d-box:fullscreen .g3d-cfg {
    top: auto; bottom: 0; width: 100%; max-width: none; height: auto; max-height: 58%;
    border-left: 0; border-top: 1px solid rgba(255,255,255,.14);
  }
}

.g3d-fs {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  background: rgba(255,255,255,.82); color: #3a4048; border: 1px solid #d6dade;
  border-radius: 6px; width: 38px; height: 38px; font-size: 18px; cursor: pointer;
  transition: all .2s ease;
}
.g3d-fs:hover { background: var(--brand); 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 — natively scrollable (swipe/trackpad/arrows); JS nudges it along
   once the section has been on screen a while. Not a CSS marquee: a transform
   animation can't be scrolled by hand. */
.reel-wrap { position: relative; }
.reel {
  overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth;
  scroll-snap-type: x proximity; overscroll-behavior-x: contain;
  scrollbar-width: none; -ms-overflow-style: none;
  /* Fade only the side that has more content to scroll to — a scroll hint, not
     decoration. A fixed fade washed out the first and last post at rest. */
  --fade-l: 0px; --fade-r: 0px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l),
                                      #000 calc(100% - var(--fade-r)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l),
                              #000 calc(100% - var(--fade-r)), transparent 100%);
}
.reel.can-left  { --fade-l: 44px; }
.reel.can-right { --fade-r: 44px; }
.reel::-webkit-scrollbar { display: none; }
.reel-track { display: flex; gap: 16px; width: max-content; }
.reel-card { scroll-snap-align: start; }
.reel-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 1px solid var(--line); background: rgba(11,13,16,.85); color: #fff;
  font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, opacity .2s ease, border-color .2s ease;
}
.reel-nav:hover { background: var(--brand); border-color: var(--brand); }
.reel-nav.prev { left: -6px; }
.reel-nav.next { right: -6px; }
@media (max-width: 560px){ .reel-nav { display: none; } }   /* swipe instead */
.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); }

/* Quill 2 writes EVERY list as <ol> and records the kind per item
   (<li data-list="bullet">). The editor loads Quill's stylesheet so it looks
   right there; the public pages don't, so without these a bullet list renders
   as a numbered one. */
.prose .ql-ui, .summary .ql-ui { display: none; }
.prose li[data-list="bullet"],  .summary li[data-list="bullet"]  { list-style-type: disc; }
.prose li[data-list="ordered"], .summary li[data-list="ordered"] { list-style-type: decimal; }

/* Rich-text output. The editor (Quill) writes ql-indent-* / ql-align-* classes,
   but the public pages don't load Quill's stylesheet — without these rules an
   indent or alignment set in admin would silently render flat. */
.summary p:first-child { margin-top: 0; }
.summary p:last-child { margin-bottom: 0; }
.prose .ql-align-center,  .summary .ql-align-center  { text-align: center; }
.prose .ql-align-right,   .summary .ql-align-right   { text-align: right; }
.prose .ql-align-justify, .summary .ql-align-justify { text-align: justify; }
.prose .ql-indent-1, .summary .ql-indent-1 { padding-left: 3em; }
.prose .ql-indent-2, .summary .ql-indent-2 { padding-left: 6em; }
.prose .ql-indent-3, .summary .ql-indent-3 { padding-left: 9em; }
.prose .ql-indent-4, .summary .ql-indent-4 { padding-left: 12em; }
.prose .ql-indent-5, .summary .ql-indent-5 { padding-left: 15em; }
.prose .ql-indent-6, .summary .ql-indent-6 { padding-left: 18em; }
.prose .ql-indent-7, .summary .ql-indent-7 { padding-left: 21em; }
.prose .ql-indent-8, .summary .ql-indent-8 { padding-left: 24em; }

/* 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; }

/* cart / shop */
.cart-link { position: relative; margin-left: 26px; font-size: 18px; }
.cart-count {
  position: absolute; top: -8px; right: -10px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--brand); color: #fff; border-radius: 9px; font-family: var(--font-mono);
  font-size: 10px; line-height: 16px; text-align: center; font-weight: 700;
}
.gmr-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 1200;
  background: #111; color: #fff; border: 1px solid var(--brand); border-radius: 8px;
  padding: 11px 20px; font-size: 14px; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none;
}
.gmr-toast.show { opacity: 1; transform: translate(-50%, 0); }

.cart-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 32px; align-items: start; }
.qty-form { margin: 0; }
.cart-summary { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.cart-summary h3 { margin: 0 0 14px; font-size: 18px; text-transform: uppercase; }
.srow { display: flex; justify-content: space-between; padding: 7px 0; font-size: 15px; color: var(--muted); }
.srow.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; color: #fff; font-weight: 700; font-size: 18px; font-family: var(--font-mono); }
.srow.vat { font-size: 12px; padding-top: 0; }
.srow span:last-child { font-family: var(--font-mono); color: var(--ink); }
.srow.total span:last-child { color: var(--brand); }
@media (max-width: 760px){ .cart-grid { grid-template-columns: 1fr; } }

/* 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; }
  /* One column: gallery, then the price and the button, then the detail.
     Ordered explicitly because downloads comes first in the source but should
     not come before what the kit includes. */
  .product > .gallery, .product > .product-info,
  .product > .includes, .product > .downloads {
    grid-column: 1; grid-row: auto;
  }
  .product > .gallery { order: 1; }
  .product > .product-info { order: 2; }
  .product > .includes { order: 3; }
  .product > .downloads { order: 4; }
  .hero-banner { min-height: 76vh; }
  .hero-banner h1 { font-size: 42px; }
  .mainnav a { margin-left: 16px; font-size: 12px; letter-spacing: 1px; }
}

/* Honeypot: must be reachable in the DOM for bots to fill, but never visible or
   focusable for people. display:none is skipped by smarter bots, so park it
   off-screen instead. */
.hp-field {
  position: absolute !important; left: -9999px !important; top: auto;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}

/* Listing-card blurb: the summary is truncated server-side, but clamp here too
   so a long unbroken string (or a wide-screen 3-up grid where each card body is
   only ~180px) can never stretch one card past its neighbours. */
.card-sum {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere; margin: 0;
}
.kit-body { min-width: 0; }
.kit-img { align-self: stretch; }

/* trade account banner on /account */
.trade-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border: 1px solid var(--line); border-left: 3px solid var(--brand); background: var(--panel);
  border-radius: 8px; padding: 12px 16px; margin: 0 0 18px;
}

/* retail-vs-your-price line on discounted accounts */
.retail-was { margin: 0 0 2px; font-size: 13px; color: var(--muted); }
.retail-was s { opacity: .8; }

/* shop: bordered category panels on the unfiltered view. A row holds one group,
   or two side by side where a category has a single product. */
.shop-row { display: grid; gap: 22px; margin: 0 0 22px; align-items: start; }
.shop-row.split { grid-template-columns: 1fr 1fr; }
/* a leftover single-product category keeps the half-width panel rather than
   stretching one card across the page */
.shop-row.solo { grid-template-columns: minmax(0, calc(50% - 11px)); }
.shop-group {
  min-width: 0; padding: 20px 20px 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(8,9,11,.5);
}
.shop-group .section-head {
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.shop-group .section-title { font-size: 24px; }
@media (max-width: 880px){
  .shop-row.split, .shop-row.solo { grid-template-columns: 1fr; }
  .shop-group { padding: 16px 14px 18px; }
}

/* trade mark / attribution strip at the very bottom of the footer */
.foot-legal { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 14px; }
.foot-legal p { margin: 0; max-width: 900px; line-height: 1.5; font-size: 12.5px; }
.tm-note { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 12px; font-size: 12.5px; }

.cfg-note { margin: 2px 0 10px; line-height: 1.45; }

/* admin list filters */
.admin-filters { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; }
.admin-filters input { flex: 0 1 320px; padding: 7px 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--ink); border-radius: 6px; font-size: 14px; }
.admin-chips { margin-bottom: 10px; }
.admin-chips .chip { font-size: 13px; padding: 5px 11px; }
.admin-chips .chip em { font-style: normal; color: var(--muted); margin-left: 5px; }
.admin-chips .chip.on em { color: inherit; opacity: .75; }
