/* ============================================================
   poelights.au — site styles
   Brand tokens live in ../brand/tokens.css (source of truth:
   brand/brand-book.html). Local names below are aliases.
   ============================================================ */
@import url("tokens.css"); /* synced copy of brand/tokens.css for deployment */

:root {
  --paper-raised: var(--surface);
  --ink-soft: var(--tx-2);
  --glow-deep: var(--glow-600);
  --dark: var(--night-700);
  --dark-line: var(--line-night);

  --measure: 62ch;
  --pad-x: clamp(1.25rem, 5vw, 4rem);
  --dim: 0.85; /* hero dimmer level, set by JS */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

::selection { background: var(--glow); color: var(--ink); }

a { color: var(--blue); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  text-wrap: balance;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--ink);
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn-solid { background: var(--ink); color: var(--glow); }
.btn-ghost { background: transparent; color: var(--ink); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem var(--pad-x);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  z-index: 50;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 110%;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark .tld { color: var(--glow-deep); }

.site-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--ink); }

.header-cta { padding: 0.5rem 1.1rem; font-size: 0.95rem; }

.nav-toggle { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 8vh, 6rem) var(--pad-x);
  max-width: 1280px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-weight: 900;
  font-stretch: 105%;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--glow-deep);
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin-bottom: 1.75rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.25rem; }

.spec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}
.spec-strip b { color: var(--ink); font-weight: 500; }

/* --- hero visual: smartengine office scene + dimmer --- */
.hero-visual { display: grid; gap: 1.25rem; }

.office-scene {
  background: #0C151D;
  border: 1px solid var(--dark-line);
  border-radius: 10px;
  overflow: hidden;
}
.office-scene svg { display: block; width: 100%; height: auto; }

.office-scene .cone,
.office-scene .fit-glow {
  opacity: var(--dim);
  transition: opacity 160ms ease;
}
/* Bloom tightens as output drops — a real fitting's glow shrinks with it,
   it doesn't just fade. Radius rides the same --dim the opacity does. */
.office-scene .fit-glow {
  filter: drop-shadow(0 0 calc(var(--dim) * 9px) rgba(255, 214, 120, 0.8));
}

.dimmer-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.35rem 1rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
}

.dimmer-label {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.dimmer-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  min-width: 3.2ch;
  text-align: right;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--glow-deep);
  cursor: pointer;
}
input[type="range"]:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ============================================================
   Sections + port chips (the "switch ports" spine)
   ============================================================ */
.section {
  padding: clamp(3rem, 7vh, 5.5rem) var(--pad-x);
  max-width: 1280px;
  margin: 0 auto;
}

.port-header {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
  border-top: 2px solid var(--ink);
  padding-top: 1.5rem;
}

.port-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--paper);
  background: var(--ink);
  padding: 0.3rem 0.65rem;
  border-radius: 3px;
  position: relative;
  top: -1.5rem;
  margin-bottom: -1rem;
}

.section h2 {
  font-weight: 800;
  font-stretch: 105%;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  letter-spacing: -0.02em;
}

.section p { max-width: var(--measure); }

/* --- split layout --- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.split p + p { margin-top: 1rem; }

/* --- diagram --- */
.diagram {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.75rem;
  display: grid;
  justify-items: center;
  gap: 0;
}

.diagram-node {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  padding: 0.5rem 0.9rem;
  background: var(--paper);
}
.diagram-switch { background: var(--ink); color: var(--glow); }

.diagram-cables {
  display: flex;
  gap: clamp(2.5rem, 8vw, 5rem);
  height: 3rem;
}
.cable { width: 2px; background: var(--blue); }

.diagram-row { display: flex; gap: clamp(0.5rem, 2vw, 1.5rem); flex-wrap: nowrap; justify-content: center; }
.diagram-row .diagram-node { font-size: clamp(0.66rem, 1.6vw, 0.8rem); padding: 0.5rem clamp(0.45rem, 1.5vw, 0.9rem); white-space: nowrap; }

.mono-caption {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* --- benefits --- */
.paa-grid { margin-top: 2.5rem; }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
}

.benefit {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem;
}
.benefit h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.benefit p { font-size: 0.97rem; color: var(--ink-soft); }

/* --- kit (dark section) --- */
.section-dark {
  max-width: none;
  background: var(--dark);
  color: var(--paper);
}
.section-dark .port-header { border-top-color: var(--glow); }
.section-dark .port-chip { background: var(--glow); color: var(--dark); }
.section-dark > * { max-width: 1152px; margin-left: auto; margin-right: auto; }
.section-dark .port-header { margin-bottom: 2.25rem; }

.kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.kit-card {
  border: 1px solid var(--dark-line);
  border-radius: 10px;
  padding: 1.5rem;
  background: color-mix(in srgb, var(--dark) 70%, #16232E);
}
.kit-model {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--glow);
}
.kit-card h3 { font-size: 1.15rem; margin: 0.6rem 0 0.5rem; }
.kit-card p { font-size: 0.95rem; color: #A8B4BD; }

.kit-note {
  margin-top: 2rem;
  font-size: 1.05rem;
  color: #C9D2D9;
  max-width: var(--measure);
}

/* --- steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem;
}
.steps li::before {
  content: "Step " counter(step);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
}
.steps h3 { font-size: 1.1rem; margin: 0.6rem 0 0.5rem; }
.steps p { font-size: 0.97rem; color: var(--ink-soft); }

/* --- fits --- */
.fit-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.fit-list li {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  font-size: 0.98rem;
}
.fit-note { color: var(--ink-soft); }

/* --- comparison table --- */
.table-wrap {
  overflow-x: auto;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 560px;
}
.compare th,
.compare td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: none; }
.compare thead th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--ink);
}
.compare thead th:nth-child(2) { color: var(--accent-text); }
.compare tbody th {
  font-weight: 700;
  color: var(--ink);
  width: 28%;
}
.compare td { color: var(--ink-soft); }
.compare td:nth-child(2) { color: var(--ink); }

.split-sub {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

/* --- FAQ --- */
.faq-list { display: grid; gap: 0.75rem; max-width: 800px; }

details {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 1.25rem;
}
details[open] { border-color: var(--ink-soft); }

summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style-position: outside;
}
summary h3 {
  display: inline;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  margin: 0;
}
summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
details p { padding: 0 0 1.25rem; color: var(--ink-soft); }

/* --- quote --- */
.section-quote { padding-bottom: clamp(4rem, 9vh, 7rem); }

.quote-copy p { font-size: 1.1rem; }
.quote-copy p + p { margin-top: 1rem; }
.quote-phone a { font-weight: 700; }

.quote-form { display: grid; gap: 1rem; }
.quote-form label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.quote-form input,
.quote-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--paper-raised);
  color: var(--ink);
}
.quote-form input:focus-visible,
.quote-form textarea:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent);
}
.quote-form button { justify-self: start; }
.quote-form .hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
.form-status { font-size: 0.9rem; color: var(--accent-text); min-height: 1.2em; }

/* ============================================================
   Lane cards (homepage category split)
   ============================================================ */
.lane-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.lane-card {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  background: var(--paper-raised);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}
.lane-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 6px 0 var(--ink);
}
.lane-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.lane-card.lane-dark {
  background: var(--dark);
  color: var(--paper);
  border-color: var(--dark-line);
}
.lane-card.lane-dark:hover { border-color: var(--glow); box-shadow: 0 6px 0 var(--glow-deep); }

.lane-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
}
.lane-dark .lane-tag { color: var(--glow); }

.lane-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  font-stretch: 105%;
  letter-spacing: -0.015em;
}
.lane-card p { font-size: 0.98rem; color: var(--ink-soft); }
.lane-dark p { color: #A8B4BD; }

.lane-link { font-weight: 700; margin-top: 0.5rem; }
.lane-dark .lane-link { color: var(--glow); }

/* ============================================================
   Night theme (security page)
   ============================================================ */
.night {
  background: var(--dark);
  color: var(--paper);
}
.night .site-header {
  background: color-mix(in srgb, var(--dark) 92%, transparent);
  border-bottom-color: var(--dark-line);
}
.night .wordmark { color: var(--paper); }
.night .site-nav a { color: #A8B4BD; }
.night .site-nav a:hover, .night .site-nav a[aria-current="page"] { color: var(--paper); }
.night .btn-solid { background: var(--glow); color: var(--dark); border-color: var(--glow); }
.night .btn-solid:hover { box-shadow: 0 4px 0 var(--glow-deep); }
.night .btn-ghost { color: var(--paper); border-color: var(--paper); }
.night .btn-ghost:hover { box-shadow: 0 4px 0 var(--paper); }
.night .hero h1 em { color: var(--glow); }
.night .lede { color: #A8B4BD; }
.night .spec-strip { border-top-color: var(--dark-line); color: #A8B4BD; }
.night .spec-strip b { color: var(--paper); }
.night .port-header { border-top-color: var(--glow); }
.night .port-chip { background: var(--glow); color: var(--dark); }
.night .benefit,
.night .fit-list li,
.night details,
.night .diagram,
.night .dimmer-card {
  background: color-mix(in srgb, var(--dark) 70%, #16232E);
  border-color: var(--dark-line);
}
.night .benefit p, .night details p, .night .fit-note, .night .mono-caption { color: #A8B4BD; }
.night details[open] { border-color: #5A6873; }
.night .diagram-node { background: var(--dark); border-color: #5A6873; color: var(--paper); }
.night .diagram-switch { background: var(--glow); color: var(--dark); border-color: var(--glow); }
.night .quote-form input,
.night .quote-form textarea {
  background: color-mix(in srgb, var(--dark) 70%, #16232E);
  border-color: var(--dark-line);
  color: var(--paper);
}
.night .quote-form label { color: #A8B4BD; }
.night .site-footer { border-top-color: var(--dark-line); color: #A8B4BD; }
.night .site-footer .wordmark { color: var(--paper); }
.night ::selection { background: var(--glow); color: var(--dark); }
.night .nav-toggle span { background: var(--paper); }

/* ============================================================
   Floodlight motion demo (security page hero)
   ============================================================ */
.yard {
  background: #060B10;
  border-radius: 10px;
  border: 1px solid var(--dark-line);
  overflow: hidden;
}
.yard svg { display: block; width: 100%; height: auto; }

.yard .beam,
.yard .pool,
.yard .face-on {
  opacity: 0;
  transition: opacity 300ms ease;
}
.yard.lit .beam { opacity: 1; }
.yard.lit .pool { opacity: 0.22; }
.yard.lit .face-on {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(255, 214, 120, 0.85));
}

.yard .cam-led { stroke: #1668E3; transition: stroke 300ms ease; }
.yard.lit .cam-led {
  stroke: #6FB4FF;
  filter: drop-shadow(0 0 3px rgba(111, 180, 255, 0.9));
}

.yard .pir { opacity: 0.35; transition: stroke 300ms ease, opacity 300ms ease; }
.yard .pir-label { opacity: 0.55; }
.yard.lit .pir { stroke: var(--glow); opacity: 0.9; }

.yard .det-line { opacity: 0; transition: opacity 300ms ease; }
.yard.lit .det-line { opacity: 0.7; }

.yard .walker { transform: translate(-40px, 280px); }
.yard.walking .walker { animation: walk-past 7s linear forwards; }
@keyframes walk-past {
  from { transform: translate(-40px, 280px); }
  to   { transform: translate(440px, 280px); }
}

/* ============================================================
   Product photos + spec tables
   ============================================================ */
.product-shot {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  align-content: center;
}
.product-shot img {
  max-width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
}
.product-shot figcaption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #45525C;
  text-align: center;
}
.night .product-shot,
.section-dark .product-shot { border-color: var(--dark-line); }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 0;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table th {
  font-weight: 700;
  white-space: nowrap;
  width: 32%;
}
.night .spec-table th { color: var(--paper); }
.night .spec-table td { color: #A8B4BD; }
.night .spec-table th, .night .spec-table td { border-bottom-color: var(--dark-line); }
.night .table-wrap { background: color-mix(in srgb, var(--dark) 70%, #16232E); border-color: var(--dark-line); }

/* ============================================================
   Animations
   ============================================================ */

/* office scene: lights commission one by one on load, flickering
   like real fittings coming up (delays staggered by JS) */
/* keyframes lamp-snap / packet-up / flicker-on / pir-breathe are brand
   assets — defined once in brand/tokens.css */
.office-scene .fit-glow,
.office-scene .cone {
  animation: flicker-on var(--m-scene) both;
}

/* data packets running up the Cat6 from the engine */
.office-scene .packet { animation: packet-up 2.6s linear infinite 1.2s; opacity: 0; }

/* yard: PIR breathes while idle */
.yard:not(.lit) .pir { animation: pir-breathe 4.5s ease-in-out infinite; }

/* lamp snaps on with a flicker, not a fade */
.yard.lit .beam,
.yard.lit .face-on { animation: lamp-snap var(--m-snap) ease-out both; }

/* walker: legs actually stride */
.yard .leg-a,
.yard .leg-b { transform-box: fill-box; transform-origin: 50% 0; }
.yard.walking .leg-a { animation: stride 0.55s ease-in-out infinite alternate; }
.yard.walking .leg-b { animation: stride 0.55s ease-in-out infinite alternate-reverse; }
@keyframes stride {
  from { transform: rotate(-24deg); }
  to   { transform: rotate(24deg); }
}

/* camera tracking box rides with the walker */
.yard .det-box { opacity: 0; transition: opacity 200ms ease; }
.yard.lit .det-box { opacity: 0.9; animation: det-pulse 1.1s ease-in-out infinite; }
@keyframes det-pulse {
  0%, 100% { stroke-width: 1.2; }
  50%      { stroke-width: 2.2; }
}

/* Protect-style notification when the light fires */
.yard { position: relative; }
.protect-toast {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(26, 39, 49, 0.94);
  border: 1px solid var(--dark-line);
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--paper);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 320ms ease 150ms, transform 320ms ease 150ms;
  pointer-events: none;
}
.yard.lit .protect-toast { opacity: 1; transform: none; }
.toast-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4D9FFF;
}
.yard.lit .toast-dot { animation: dot-pulse 1.2s ease-out infinite; }
@keyframes dot-pulse {
  50% { box-shadow: 0 0 0 4px rgba(77, 159, 255, 0.25); }
}

/* scroll reveals: only when JS is running and motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 600ms ease var(--rd, 0ms), transform 600ms ease var(--rd, 0ms);
  }
  html.js .reveal.in-view {
    opacity: 1;
    transform: none;
  }
}

.kit-photo { margin-bottom: 1.5rem; }
.kit-photo img { max-height: 260px; }

.lane-img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  box-sizing: border-box;
  margin-bottom: 0.6rem;
}
.lane-dark .lane-img { border-color: var(--dark-line); }

.lane-imgwrap {
  display: grid;
  place-items: center;
  height: 150px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: #FFFFFF;
  overflow: hidden;
  margin-bottom: 0.6rem;
}
.lane-imgwrap .lane-img {
  border: none;
  margin: 0;
  padding: 0;
  height: 100%;
  transform: scale(2.2);
}

.trigger-btn { padding: 0.55rem 1.1rem; font-size: 0.92rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2.5rem var(--pad-x) 3rem;
  border-top: 1px solid var(--line);
  max-width: 1280px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.site-footer .wordmark { font-size: 1.1rem; }
.site-footer p { margin-top: 0.5rem; }
.footer-nav { display: flex; gap: 1.25rem; margin-top: 0.5rem; }
.footer-nav a { font-size: 0.9rem; }
.fineprint { font-size: 0.8rem; max-width: 46ch; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; }
  .split { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
}

/* ============================================================
   Refinement layer — premium polish over the base system.
   Loaded last so these rules win at equal specificity.
   ============================================================ */

/* radius + shadows come from brand/tokens.css */

/* --- buttons: depth instead of hard offsets --- */
.btn {
  border: none;
  border-radius: 10px;
  padding: 0.85rem 1.6rem;
  letter-spacing: 0.005em;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease, border-color 200ms ease;
}
.btn-solid {
  box-shadow: 0 1px 2px rgba(16, 27, 36, 0.25), 0 6px 18px -8px rgba(16, 27, 36, 0.45);
}
.btn:hover { transform: translateY(-1px); box-shadow: none; }
.btn-solid:hover {
  box-shadow: 0 2px 4px rgba(16, 27, 36, 0.25), 0 12px 28px -10px rgba(16, 27, 36, 0.5);
}
.btn-ghost {
  border: 1.5px solid color-mix(in srgb, var(--ink) 30%, transparent);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(16, 27, 36, 0.045);
}
.night .btn-solid {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 22px -8px rgba(255, 181, 37, 0.45);
}
.night .btn-solid:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 14px 30px -10px rgba(255, 181, 37, 0.55);
}
.night .btn-ghost { border-color: rgba(246, 246, 242, 0.4); }
.night .btn-ghost:hover { border-color: var(--paper); background: rgba(246, 246, 242, 0.07); }

/* --- header: quieter, glassier, real link states --- */
.site-header {
  padding: 0.85rem var(--pad-x);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  backdrop-filter: blur(14px) saturate(150%);
}
.night .site-header { border-bottom-color: rgba(246, 246, 242, 0.08); }
.site-nav { gap: 0.25rem; }
.site-nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  transition: background-color 180ms ease, color 180ms ease;
}
.site-nav a:hover { background: rgba(16, 27, 36, 0.055); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(16, 27, 36, 0.07);
}
.night .site-nav a:hover { background: rgba(246, 246, 242, 0.08); }
.night .site-nav a[aria-current="page"] {
  color: var(--paper);
  background: rgba(246, 246, 242, 0.1);
}

/* --- rhythm --- */
.section { padding-top: clamp(3.5rem, 9vh, 6.5rem); padding-bottom: clamp(3.5rem, 9vh, 6.5rem); }
.port-header { margin-bottom: 2.75rem; }
.lede { line-height: 1.65; }

/* --- hero: ambient light + weightier scenes --- */
.hero { position: relative; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(640px 420px at 72% 32%, rgba(255, 181, 37, 0.08), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }
.office-scene,
.yard {
  border-radius: var(--radius);
  box-shadow: var(--shadow-scene);
}
.dimmer-card {
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

/* --- custom range slider (default control reads DIY) --- */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 22px;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--glow-deep) calc(var(--dim) * 100%),
    color-mix(in srgb, var(--ink) 12%, transparent) 0
  );
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--glow-deep);
  border: 3px solid var(--paper-raised);
  box-shadow: 0 1px 4px rgba(16, 27, 36, 0.35);
  margin-top: -6.5px;
  transition: transform 150ms ease;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 12%, transparent);
}
input[type="range"]::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: var(--glow-deep);
}
input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--glow-deep);
  border: 3px solid var(--paper-raised);
  box-shadow: 0 1px 4px rgba(16, 27, 36, 0.35);
}

/* --- cards: soft elevation, no flat 1px boxes --- */
.benefit, .kit-card, .steps li, .fit-list li, details,
.diagram, .table-wrap, .product-shot, .lane-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-color: color-mix(in srgb, var(--ink) 9%, transparent);
}
.fit-list li { border-radius: 10px; }
details { border-radius: 12px; }
.lane-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.lane-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--ink) 30%, transparent);
}
.lane-card.lane-dark { border-color: var(--dark-line); }
.lane-card.lane-dark:hover {
  border-color: color-mix(in srgb, var(--glow) 55%, transparent);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 20px 44px -18px rgba(255, 181, 37, 0.28);
}
.night .benefit, .night .fit-list li, .night details,
.night .diagram, .night .dimmer-card, .night .table-wrap {
  border-color: rgba(246, 246, 242, 0.09);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -20px rgba(0, 0, 0, 0.5);
}
.kit-card {
  background: linear-gradient(180deg, #18242E, #131E27);
  border-color: rgba(246, 246, 242, 0.09);
  box-shadow: none;
}
.section-dark .product-shot { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 24px 48px -24px rgba(0, 0, 0, 0.6); }

/* --- FAQ: custom disclosure, no default triangle --- */
summary {
  list-style: none;
  position: relative;
  padding-right: 2.25rem;
  transition: color 180ms ease;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 0.15rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--ink-soft);
  transition: transform 200ms ease;
}
details[open] summary::after { content: "\2212"; }
summary:hover { color: var(--accent-text); }
.night summary:hover { color: var(--glow); }

/* --- tables --- */
.compare tbody tr { transition: background-color 150ms ease; }
.compare tbody tr:hover { background: rgba(16, 27, 36, 0.025); }

/* --- forms --- */
.quote-form input,
.quote-form textarea {
  border-radius: 10px;
  padding: 0.8rem 1rem;
  border-color: color-mix(in srgb, var(--ink) 14%, transparent);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.quote-form input:focus-visible,
.quote-form textarea:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 14%, transparent);
}
.night .quote-form input, .night .quote-form textarea { border-color: rgba(246, 246, 242, 0.12); }

/* ============================================================
   Design elevation — night hero, dark quote band, real footer
   ============================================================ */

/* homepage hero on night, full bleed, brand-cover energy */
.hero-night {
  max-width: none;
  background:
    radial-gradient(900px 560px at 72% 20%, rgba(255, 181, 37, 0.12), transparent 65%),
    var(--night-800);
  padding-inline: max(var(--pad-x), calc((100% - 1280px) / 2));
}
.hero-night::before { display: none; }
.hero-night .eyebrow { color: var(--blue-400); }
.hero-night h1 { color: var(--paper); }
.hero-night h1 em { color: var(--glow); }
.hero-night .lede { color: var(--tx-2-on-night); }
.hero-night .lede a { color: var(--glow); }
.hero-night .spec-strip { border-top-color: var(--line-night); color: var(--tx-2-on-night); }
.hero-night .spec-strip b { color: var(--paper); }
.hero-night .btn-solid {
  background: var(--glow);
  color: var(--night);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 22px -8px rgba(255, 181, 37, 0.45);
}
.hero-night .btn-solid:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 14px 30px -10px rgba(255, 181, 37, 0.55);
}
.hero-night .btn-ghost { color: var(--paper); border-color: rgba(246, 246, 242, 0.4); }
.hero-night .btn-ghost:hover { border-color: var(--paper); background: rgba(246, 246, 242, 0.07); }
.hero-night .office-scene { border-color: var(--line-night); }
.hero-night .dimmer-card {
  background: var(--night-500);
  border-color: var(--line-night);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -20px rgba(0, 0, 0, 0.5);
}
.hero-night .dimmer-label { color: var(--tx-2-on-night); }
.hero-night .dimmer-value { color: var(--paper); }

/* quote sections close on a dark band */
.section-quote.section-dark .quote-copy p { color: var(--tx-2-on-night); }
.section-quote.section-dark .quote-copy .quote-phone a { color: var(--glow); }
.section-quote.section-dark .quote-form label { color: var(--tx-2-on-night); }
.section-quote.section-dark .quote-form input,
.section-quote.section-dark .quote-form textarea {
  background: var(--night-500);
  border-color: rgba(246, 246, 242, 0.12);
  color: var(--paper);
}
.section-quote.section-dark .btn-solid { background: var(--glow); color: var(--night); }
.section-quote.section-dark .form-status { color: var(--glow); }

/* ============================================================
   Reel Lab pass — targeted upgrades
   ============================================================ */

/* layout-shift + form ergonomics */
html { scrollbar-gutter: stable; }
.quote-form textarea { resize: vertical; }
.quote-form input, .quote-form textarea { caret-color: var(--glow-600); }

/* smooth dimmer value (registered property can transition) */
@property --dim {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.85;
}
html { transition: --dim 180ms var(--e-ui); }

/* night hero: the amber word glows like the light it is */
.hero-night h1 em,
.night .hero h1 em {
  text-shadow: 0 0 18px rgba(255, 181, 37, 0.45), 0 0 44px rgba(255, 181, 37, 0.18);
}

/* jargon tooltips (spec strips) */
.tip {
  border-bottom: 1px dotted currentColor;
  cursor: help;
  position: relative;
}
.tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(3px);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms var(--e-ui), transform 160ms var(--e-ui);
  z-index: 20;
}
.tip:hover::after,
.tip:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.night .tip::after,
.hero-night .tip::after { background: var(--paper); color: var(--ink); }

/* quote form: label lights while its field is focused, honest validity colours */
.quote-form label:has(input:focus),
.quote-form label:has(textarea:focus) { color: var(--accent-text); }
.section-dark .quote-form label:has(input:focus),
.section-dark .quote-form label:has(textarea:focus) { color: var(--glow); }
.quote-form input:user-valid[required] { border-color: color-mix(in srgb, var(--ok) 55%, transparent); }
.quote-form input:user-invalid { border-color: color-mix(in srgb, var(--err) 65%, transparent); }

/* mobile: lane cards become a snap slider instead of an endless stack */
@media (max-width: 720px) {
  .lane-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
  }
  .lane-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
}

/* smartengine power-budget meter (commercial, dark section) */
.budget-card {
  margin-top: 1.5rem;
  background: var(--night-500);
  border: 1px solid var(--line-night);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  display: grid;
  gap: 0.75rem;
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
}
.budget-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tx-2-on-night);
}
.budget-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.budget-card meter { width: 100%; height: 14px; }
.budget-card meter::-webkit-meter-bar {
  background: var(--night-700);
  border: 1px solid var(--line-night);
  border-radius: 7px;
  height: 14px;
}
.budget-card meter::-webkit-meter-optimum-value { background: var(--glow); border-radius: 7px; }
.budget-card meter::-webkit-meter-suboptimum-value { background: var(--glow-600); border-radius: 7px; }
.budget-card meter::-webkit-meter-even-less-good-value { background: var(--err); border-radius: 7px; }
.budget-card output {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--paper);
  white-space: nowrap;
}
.budget-note { font-size: 0.85rem; color: var(--tx-2-on-night); max-width: 60ch; }
@media (max-width: 640px) {
  .budget-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .budget-card output { white-space: normal; }
}

/* Colour temperature demo */
.cct-card { margin-top: 1rem; }
.cct-scene {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-night);
}
.cct-scene svg { display: block; width: 100%; height: auto; }
.cct-scene .cct-cone,
.cct-scene .cct-lens,
.cct-scene .cct-pool { transition: fill 220ms var(--e-ui); }
.cct-scene .cct-lens { filter: drop-shadow(0 0 7px var(--cct, #FFD1A3)); }
.cct-card input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, #FF9F5B, #FFC38E, #FFE4CE, #FFFFFF, #DCEBFF);
}
.cct-card input[type="range"]::-moz-range-track {
  background: linear-gradient(90deg, #FF9F5B, #FFC38E, #FFE4CE, #FFFFFF, #DCEBFF);
}
.cct-card input[type="range"]::-webkit-slider-thumb { background: var(--cct, #FFD1A3); }
.cct-card input[type="range"]::-moz-range-thumb { background: var(--cct, #FFD1A3); }

/* Quote form: photo attachments */
.photo-field { display: grid; gap: 0.5rem; }
.photo-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.photo-hint {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: 0.82rem;
}
.section-dark .photo-label { color: var(--tx-2-on-night); }

.photo-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.photo-drop {
  display: grid;
  gap: 0.2rem;
  justify-items: center;
  text-align: center;
  padding: 1.1rem 1rem;
  border: 1.5px dashed color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color var(--m-ui) var(--e-ui), background-color var(--m-ui) var(--e-ui);
}
.photo-drop:hover { border-color: var(--glow-600); background: rgba(255, 181, 37, 0.05); }
.photo-field input[type="file"]:focus-visible + .photo-list,
.photo-field input[type="file"]:focus-visible ~ .photo-drop { outline: 3px solid var(--blue); }
.photo-cta { font-weight: 700; font-size: 0.98rem; }
.photo-meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-soft); }
.section-dark .photo-drop { border-color: rgba(246, 246, 242, 0.28); }
.section-dark .photo-drop:hover { border-color: var(--glow); background: rgba(255, 181, 37, 0.08); }
.section-dark .photo-cta { color: var(--paper); }
.section-dark .photo-meta { color: var(--tx-2-on-night); }

.photo-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; }
.photo-list li {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--ink-soft);
}
.photo-list img {
  width: 74px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.section-dark .photo-list li { color: var(--tx-2-on-night); }
.section-dark .photo-list img { border-color: var(--line-night); }
.photo-working { font-family: var(--font-mono); font-size: 0.72rem; }

/* keep card hovers ahead of the scroll-reveal transform in the cascade */
.lane-grid .lane-card:hover { transform: translateY(-4px); }

/* the footer becomes a designed close, not an afterthought */
.site-footer {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  max-width: none;
  background: var(--night-700);
  border-top: none;
  color: var(--tx-2-on-night);
  padding: 3.5rem max(var(--pad-x), calc((100% - 1280px) / 2)) 3rem;
}
.site-footer .wordmark { color: var(--paper); font-size: 1.5rem; }
.site-footer .wordmark .tld { color: var(--glow); }
.footer-tagline { margin-top: 0.6rem; max-width: 34ch; }
.footer-cta {
  display: inline-block;
  margin-top: 1.4rem;
  background: var(--glow);
  color: var(--night);
}
.site-footer .footer-nav {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  margin-top: 0.4rem;
}
.site-footer .footer-nav a {
  color: var(--paper);
  text-decoration: none;
  font-size: 0.98rem;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color var(--m-ui) var(--e-ui), color var(--m-ui) var(--e-ui);
}
.site-footer .footer-nav a:hover { color: var(--glow); border-bottom-color: var(--glow); }
.site-footer .fineprint {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-night);
  padding-top: 1.25rem;
  margin-top: 0.75rem;
  max-width: none;
  color: var(--night-100);
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.9rem var(--pad-x); }

  .header-cta { margin-left: auto; }

  .nav-toggle {
    display: grid;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.6rem 0.4rem;
    cursor: pointer;
  }
  .nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    display: block;
  }
}
