/* ============================================================
   QP Inventory — marketing site
   Design system: industrial / warehouse signage.
   Dark charcoal base, hazard-yellow accent, traffic-light flags
   borrowed directly from the product's own bin-status system.
   ============================================================ */

:root {
  --bg:          #14171b;
  --bg-raised:   #1c2025;
  --bg-panel:    #20242a;
  --bg-chip:     #262b32;
  --paper:       #ede7d8;
  --paper-ink:   #1c1a15;
  --ink:         #ecebe6;
  --ink-dim:     #a7adb6;
  --ink-faint:   #6b7280;
  --accent:      #f2b705;
  --accent-ink:  #1c1300;
  --flag-green:  #3fa34d;
  --flag-red:    #d9503d;
  --flag-blue:   #4d8fd9;
  --line:        #2c3138;
  --line-soft:   #23272d;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

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

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--ink);
}

.h-display {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  line-height: 0.98;
  font-weight: 600;
}

.h-section {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.h-card {
  font-size: 1.15rem;
  line-height: 1.2;
}

p { margin: 0 0 1em; color: var(--ink-dim); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink-dim);
  max-width: 46ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  display: inline-block;
  flex: none;
}

.mono { font-family: var(--font-mono); }

.code-chip {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--bg-chip);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 23, 27, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-soft);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 11px;
  height: 11px;
  background: var(--accent);
  flex: none;
}

.brand small {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--ink-faint);
  text-transform: none;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.86rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-dim);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }

.nav-links a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
  padding-bottom: 3px;
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  border: none;
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .brand small { display: none; }
  .site-nav .wrap { height: 58px; }
  .brand { font-size: 1rem; white-space: nowrap; }
  .nav-cta { padding: 7px 12px; font-size: 0.74rem; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 79px,
      var(--line-soft) 80px
    );
  opacity: 0.35;
  pointer-events: none;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
}

.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 32px; }

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 22px;
  border: 1px solid var(--line);
  letter-spacing: 0.02em;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn-primary:hover { background: #ffc620; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink-faint); }

.proof-strip {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.proof-strip li {
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.proof-strip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flag-green);
  flex: none;
}

.proof-strip ul { margin: 0; padding: 0; display: contents; }

/* ---------- Phone frame ---------- */

.phone-frame {
  background: #0a0b0d;
  border: 1px solid #34383e;
  border-radius: 26px;
  padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}

.phone-frame img {
  border-radius: 17px;
  display: block;
  width: 100%;
}

.hero-device {
  max-width: 300px;
  margin: 0 auto;
  position: relative;
}

.hero-device::after {
  content: attr(data-caption);
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* ---------- Sections ---------- */

section { padding: 88px 0; border-bottom: 1px solid var(--line-soft); }
section:last-of-type { border-bottom: none; }

@media (max-width: 640px) {
  section { padding: 56px 0; }
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 { margin-bottom: 16px; }

/* ---------- Question / quote block ---------- */

.quote-block {
  background: var(--paper);
  color: var(--paper-ink);
  padding: 40px 44px;
  margin-bottom: 56px;
  position: relative;
  font-family: var(--font-body);
}

.quote-block::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--flag-red);
}

.quote-block p {
  color: var(--paper-ink);
  font-size: 1.35rem;
  line-height: 1.4;
  font-weight: 500;
  margin: 0;
  max-width: 60ch;
}

.quote-block .attribution {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #6b6555;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 900px) {
  .answer-grid { grid-template-columns: 1fr; }
}

.answer-card .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-bottom: 10px;
  display: block;
}

.answer-card h3 {
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 10px;
  font-weight: 600;
  font-family: var(--font-body);
}

.answer-card p { font-size: 0.94rem; margin-bottom: 18px; }

.shot {
  border: 1px solid var(--line);
  background: var(--bg-panel);
  overflow: hidden;
}

.shot img { width: 100%; display: block; }

.answer-card .shot img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
}

.shot-cap {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}

.flag-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: 1px;
}
.flag-dot.red { background: var(--flag-red); }
.flag-dot.green { background: var(--flag-green); }
.flag-dot.grey { background: var(--ink-faint); }

/* ---------- Hardware section ---------- */

.hw-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hw-layout { grid-template-columns: 1fr; }
}

.hw-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.hw-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
}

@media (max-width: 560px) {
  .hw-list li { grid-template-columns: 1fr; gap: 4px; }
}

.hw-list .model {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
}

.hw-list .desc h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  margin-bottom: 4px;
}

.hw-list .desc p { font-size: 0.9rem; margin: 0; }

/* ---------- Explore grid (home → sub-pages) ---------- */

.explore-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 760px) {
  .explore-grid { grid-template-columns: 1fr; }
}

.explore-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  padding: 30px 32px 28px;
  transition: border-left-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.explore-card:hover,
.explore-card:focus-visible {
  border-left-color: var(--accent);
  background: var(--bg-raised);
  transform: translateY(-2px);
}

.explore-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.explore-num {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.explore-card h3 {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.explore-card p {
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.explore-go {
  font-size: 0.76rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.explore-card:hover .explore-go span { padding-left: 4px; }
.explore-go span { transition: padding-left 0.15s ease; display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .explore-card, .explore-go span { transition: none; }
  .explore-card:hover { transform: none; }
}

/* ---------- Lifecycle thread (per-unit traceability) ---------- */

.serial-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 1rem;
  background: var(--bg-chip);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 10px 16px;
  margin-bottom: 8px;
}

.serial-tag em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--ink-faint);
}

.lifecycle-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  position: relative;
  margin-top: 44px;
}

.life-step {
  position: relative;
  padding: 34px 22px 0 0;
}

.life-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  z-index: 1;
}

.life-step::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 15px;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.4;
}

.life-step:last-child::after { display: none; }

.life-step .stage {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}

.life-step h4 {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 7px;
}

.life-step p { font-size: 0.85rem; }

@media (max-width: 860px) {
  .lifecycle-track { grid-template-columns: 1fr; margin-top: 32px; }
  .life-step { padding: 0 0 28px 32px; }
  .life-step::before { top: 2px; }
  .life-step::after {
    top: 17px;
    bottom: -2px;
    left: 7px;
    right: auto;
    width: 2px;
    height: auto;
  }
}

/* ---------- Asked questions ---------- */

.ask-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}

@media (max-width: 760px) {
  .ask-list { grid-template-columns: 1fr; }
}

.ask {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--bg-panel);
  padding: 16px 20px;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
}

/* ---------- Before / after compare ---------- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  margin-bottom: 48px;
}

@media (max-width: 760px) {
  .compare { grid-template-columns: 1fr; }
}

.compare > div { padding: 36px 34px; }

@media (max-width: 640px) {
  .compare > div { padding: 28px 24px; }
}

.compare .side-old {
  background: var(--bg-raised);
  border-right: 1px solid var(--line);
}

@media (max-width: 760px) {
  .compare .side-old { border-right: none; border-bottom: 1px solid var(--line); }
}

.compare .side-new { background: var(--bg-panel); }

.compare .side-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  display: block;
}

.compare .side-old .side-label { color: var(--ink-faint); }
.compare .side-new .side-label { color: var(--accent); }

.compare h4 {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.compare .side-old h4 { color: var(--ink-dim); }

.compare p { font-size: 0.92rem; margin: 0; }

/* ---------- Browser frame (desktop screenshots) ---------- */

.browser-frame {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  overflow: hidden;
}

.browser-frame .chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--line);
}

.browser-frame .chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  display: inline-block;
}

.browser-frame .shot-window {
  overflow: hidden;
  height: 300px;
  position: relative;
}

.browser-frame .shot-window img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}

.browser-frame .shot-window.tall { height: 460px; }

/* ---------- Tour grid ---------- */

.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 980px) {
  .tour-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tour-grid { grid-template-columns: 1fr; }
}

.tour-grid .tour-item.span-2 { grid-column: span 2; }
@media (max-width: 640px) {
  .tour-grid .tour-item.span-2 { grid-column: span 1; }
}

.tour-cap {
  margin-top: 12px;
}

.tour-cap strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}

.tour-cap span {
  font-size: 0.84rem;
  color: var(--ink-dim);
}

/* ---------- Field photo banner ---------- */

.field-photo {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--bg-panel);
}

@media (max-width: 860px) {
  .field-photo { grid-template-columns: 1fr; }
}

.field-photo .photo-side {
  height: 100%;
  min-height: 340px;
  overflow: hidden;
}

.field-photo .photo-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  display: block;
}

.field-photo .text-side {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 640px) {
  .field-photo .text-side { padding: 32px 24px; }
}

.field-photo .text-side h3 {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.25;
}

.field-photo .text-side p { font-size: 0.95rem; }

/* ---------- Gun gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 22px;
}

@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
}

.gallery-item { text-align: center; }

.gallery-item .phone-frame {
  border-radius: 18px;
  padding: 7px;
}
.gallery-item .phone-frame img { border-radius: 12px; }

.gallery-cap {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  line-height: 1.4;
}

.gallery-cap strong {
  display: block;
  color: var(--ink-dim);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}

/* ---------- Feature spec sheet ---------- */

.spec-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
}

@media (max-width: 860px) {
  .spec-groups { grid-template-columns: 1fr; }
}

.spec-group { margin-bottom: 48px; }

.spec-group-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 4px;
}

.spec-list { list-style: none; margin: 0; padding: 0; }

.spec-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
}

.spec-list .term {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.spec-list .def {
  font-size: 0.86rem;
  color: var(--ink-dim);
}

/* ---------- Stack strip ---------- */

.stack-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 36px;
  align-items: start;
}

@media (max-width: 980px) {
  .stack-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .stack-strip { grid-template-columns: 1fr; }
}

.stack-item .num {
  font-family: var(--font-mono);
  color: var(--flag-blue);
  font-size: 0.78rem;
  margin-bottom: 10px;
  display: block;
}

.stack-item h4 {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.stack-item p { font-size: 0.9rem; }

.callout {
  margin-top: 52px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: var(--bg-panel);
  padding: 28px 32px;
}

.callout p {
  font-size: 1rem;
  max-width: 88ch;
  margin: 0;
}

.callout strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 640px) {
  .callout { padding: 24px 22px; }
}

/* ---------- Footer / CTA ---------- */

.cta-section {
  text-align: center;
  padding: 96px 0;
}

.cta-section .eyebrow { justify-content: center; }
.cta-section h2 { margin: 0 auto 20px; max-width: 20ch; }
.cta-section .lede { margin: 0 auto 36px; max-width: 50ch; text-align: center; }

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

footer {
  border-top: 1px solid var(--line-soft);
  padding: 32px 0;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
}

footer a { color: var(--ink-faint); text-decoration: none; }
footer a:hover { color: var(--ink); }

.footer-links a {
  color: var(--accent);
  border-bottom: 1px solid rgba(242, 183, 5, 0.35);
  padding-bottom: 1px;
}
.footer-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Lightbox ---------- */

.zoomable { cursor: zoom-in; }

.zoomable:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(9, 11, 13, 0.95);
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding: 68px 24px 72px;
  overflow: auto;
  overscroll-behavior: contain;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(1280px, 100%);
  height: auto;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  cursor: default;
}

.lightbox-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
  background: rgba(9, 11, 13, 0.9);
  border-bottom: 1px solid var(--line);
  z-index: 101;
}

.lightbox-cap {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox-close {
  flex: none;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  cursor: pointer;
}

.lightbox-close:hover { background: #ffc620; }

@media (max-width: 560px) {
  .lightbox { padding: 62px 12px 24px; }
  .lightbox-cap { display: none; }
}

/* ---------- Print ---------- */

@media print {
  :root {
    --bg: #ffffff;
    --bg-raised: #f7f6f3;
    --bg-panel: #f2f1ee;
    --bg-chip: #ece9e2;
    --ink: #17181b;
    --ink-dim: #3a3d42;
    --ink-faint: #6b7280;
    --line: #d6d3ca;
    --line-soft: #e6e3da;
    --paper: #ede7d8;
    --paper-ink: #1c1a15;
  }
  body { font-size: 12px; }
  .site-nav, .hero-ctas, footer .social, .lightbox { display: none !important; }

  /* The contact address must survive into the PDF — it's the whole point of
     printing one. Render it as plain text rather than a yellow button. */
  .cta-buttons .btn {
    background: none !important;
    border: none !important;
    color: var(--ink) !important;
    padding: 0 !important;
    font-size: 1rem;
  }
  .zoomable { cursor: default; }
  section { break-inside: avoid; padding: 32px 0; border-bottom: 1px solid var(--line); }
  .hero { padding: 24px 0 40px; }
  .hero::before { display: none; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .tour-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .tour-grid .tour-item.span-2 { grid-column: span 2; }
  .field-photo { grid-template-columns: 0.8fr 1.2fr; }
  a { text-decoration: none; }
  .phone-frame { box-shadow: none; }
  .quote-block { border: 1px solid var(--line); }
}
