/* ==========================================================================
   Permanent Lighting Albuquerque
   --------------------------------------------------------------------------
   Design idea: the page behaves like the product. A slim "light channel" runs
   through the layout as its main structural device, and the whole palette is
   driven by three custom properties (--glow-a/b/c) that the scene switcher
   rewrites live. Change scene and the site changes color, exactly like the
   customer's roofline does.

   The palette variables themselves come from config.php via an inline
   <style id="scene-palette"> block in head.php — do not hardcode scene colors
   in here, or adding a scene to the config will silently do nothing.

   Deliberately night-first. This is a product you only ever see after dark.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* surfaces */
  --ink:        #05070d;
  --ink-2:      #080c15;
  --surface:    #0e1420;
  --surface-2:  #141c2b;
  --line:       rgba(255, 255, 255, .09);
  --line-2:     rgba(255, 255, 255, .16);

  /* type */
  --text:       #e9edf6;
  --text-2:     #a8b3c7;
  --text-3:     #6f7c93;

  /* scene glow — overwritten per scene by head.php; these are the fallbacks */
  --glow-a: #ffce8a;
  --glow-b: #ffb25e;
  --glow-c: #fff0d6;

  --danger:  #ff7a85;
  --ok:      #4ade80;

  /* rhythm */
  --shell:   1200px;
  --shell-narrow: 760px;
  --gutter:  clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius:  14px;
  --radius-lg: 22px;

  /* type scale */
  --display: clamp(2.75rem, 7.2vw, 5.25rem);
  --h1:      clamp(2.25rem, 5.2vw, 3.75rem);
  --h2:      clamp(1.75rem, 3.6vw, 2.75rem);
  --h3:      clamp(1.15rem, 2vw, 1.5rem);
  --body:    clamp(1rem, .96rem + .3vw, 1.15rem);

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-ui:      'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--body);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* a very faint scene wash so the page feels lit, not just dark */
  background-image:
    radial-gradient(120% 60% at 50% -10%, color-mix(in srgb, var(--glow-a) 9%, transparent), transparent 70%),
    radial-gradient(80% 50% at 100% 100%, color-mix(in srgb, var(--glow-b) 5%, transparent), transparent 70%);
  background-attachment: fixed;
  transition: background-image .6s var(--ease);
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.022em;
  font-variation-settings: 'SOFT' 8, 'WONK' 1;
  text-wrap: balance;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); letter-spacing: -.014em; }

p { text-wrap: pretty; }

a { color: inherit; }

/* In-body contextual links are a first-class element of this site, not an
   afterthought — they carry the internal linking plan. Make them read as links. */
.prose a,
.section-lede a,
.footer-note a,
.console-caption a,
.form-footnote a,
.faq-answer a {
  color: var(--glow-c);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--glow-a) 55%, transparent);
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
  transition: color .18s var(--ease), text-decoration-color .18s var(--ease);
}
.prose a:hover,
.section-lede a:hover,
.footer-note a:hover,
.console-caption a:hover,
.form-footnote a:hover,
.faq-answer a:hover {
  color: #fff;
  text-decoration-color: var(--glow-a);
}

:focus-visible {
  outline: 2px solid var(--glow-c);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: color-mix(in srgb, var(--glow-a) 45%, transparent); color: #fff; }

/* Hidden with a transform rather than a -9999px offset: an element parked far
   off-canvas creates a 10,000px-wide box that only `overflow-x: hidden` is
   masking, which is a fragile thing to depend on. */
.skip-link {
  position: absolute; left: 0; top: 0; z-index: 999;
  background: var(--glow-a); color: #000; padding: .75rem 1.25rem;
  font-weight: 600; border-radius: 0 0 8px 0;
  transform: translateY(-130%);
  transition: transform .15s var(--ease);
}
.skip-link:focus { transform: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}
.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); max-width: 62ch; }
.section-head.narrow { max-width: 54ch; }
.section-head.center { margin-inline: auto; text-align: center; }

/* Oversized section index — the editorial spine of the page */
.section-index {
  display: block;
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--glow-a);
  margin-bottom: .9rem;
  opacity: .85;
}
.section-lede {
  color: var(--text-2);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  margin-top: 1rem;
  max-width: 60ch;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--glow-a);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glow-a));
}

/* The light channel: the site's recurring structural device */
.channel-rule {
  position: relative;
  height: 1px;
  background: var(--line);
  overflow: visible;
}
.channel-rule::after {
  content: '';
  position: absolute; inset-block: -1px; left: 0;
  width: 22%;
  background: linear-gradient(90deg,
    transparent,
    color-mix(in srgb, var(--glow-a) 70%, transparent),
    color-mix(in srgb, var(--glow-c) 90%, transparent),
    color-mix(in srgb, var(--glow-b) 70%, transparent),
    transparent);
  filter: blur(.3px);
  animation: channel-travel 9s linear infinite;
}
@keyframes channel-travel {
  from { transform: translateX(-120%); }
  to   { transform: translateX(560%); }
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-pad-y: .78rem;
  --btn-pad-x: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: var(--font-ui);
  font-size: .95rem; font-weight: 600; letter-spacing: -.005em;
  line-height: 1.2;
  border: 1px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-lg { --btn-pad-y: 1rem; --btn-pad-x: 1.9rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--glow-c), var(--glow-a) 55%, var(--glow-b));
  color: #100c04;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--glow-a) 60%, transparent),
              0 10px 30px -12px color-mix(in srgb, var(--glow-a) 80%, transparent);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 26px -2px color-mix(in srgb, var(--glow-a) 55%, transparent),
              0 16px 40px -14px color-mix(in srgb, var(--glow-a) 90%, transparent);
}
.btn-ghost {
  border-color: var(--line-2);
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--glow-a) 55%, transparent);
  color: #fff;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--ink) 94%, transparent);
  box-shadow: 0 12px 40px -24px #000;
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 74px;
}
.header-channel {
  height: 1px;
  background: linear-gradient(90deg,
    transparent, color-mix(in srgb, var(--glow-a) 45%, transparent) 30%,
    color-mix(in srgb, var(--glow-b) 45%, transparent) 70%, transparent);
}

.logo {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--text); flex-shrink: 0;
}
.logo-mark { color: var(--text-3); display: block; }
.logo-mark svg { display: block; }
.logo-dots circle { fill: var(--glow-a); }
.logo-dots circle:nth-child(odd) { fill: var(--glow-c); }
.logo:hover .logo-dots circle { filter: drop-shadow(0 0 4px var(--glow-a)); }
.logo-type { display: flex; flex-direction: column; line-height: 1.05; }
.logo-l1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.02rem; letter-spacing: -.02em;
}
.logo-l2 {
  font-size: .64rem; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--glow-a);
}

.nav { margin-left: auto; }
.nav ul { display: flex; gap: .35rem; list-style: none; padding: 0; }
.nav a {
  display: block; padding: .5rem .72rem;
  font-size: .875rem; font-weight: 500; color: var(--text-2);
  text-decoration: none; border-radius: 8px;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav a[aria-current="page"] { color: var(--glow-a); }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-quote { padding: .6rem 1.15rem; font-size: .875rem; }
.header-call  { padding: .6rem 1rem; font-size: .875rem; }
.nav-toggle { display: none; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem); overflow: hidden; }

.hero-sky { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-ridge {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 42%;
  opacity: .5;
}
.hero-ridge path { fill: #0a0f19; }
.hero-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(255,255,255,.55), transparent),
    radial-gradient(1.2px 1.2px at 32% 12%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.6px 1.6px at 58% 28%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.1px 1.1px at 76% 15%, rgba(255,255,255,.42), transparent),
    radial-gradient(1.5px 1.5px at 88% 34%, rgba(255,255,255,.38), transparent),
    radial-gradient(1.2px 1.2px at 45% 40%, rgba(255,255,255,.3), transparent),
    radial-gradient(1.3px 1.3px at 21% 46%, rgba(255,255,255,.28), transparent);
  opacity: .9;
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}

.hero-copy h1 {
  font-size: var(--display);
  font-weight: 600;
  font-variation-settings: 'SOFT' 20, 'WONK' 1, 'opsz' 96;
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--glow-a);
  font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 120;
  text-shadow: 0 0 44px color-mix(in srgb, var(--glow-a) 40%, transparent);
}
.hero-lede {
  color: var(--text-2);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 46ch; margin-top: 1.6rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  list-style: none; padding: 0; margin-top: 2.2rem;
  font-size: .85rem; color: var(--text-3);
}
.hero-trust li { display: flex; align-items: center; gap: .5rem; }
.hero-trust li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--glow-a);
  box-shadow: 0 0 8px var(--glow-a);
}

/* ---- the scene console ---- */
.console-frame {
  background: linear-gradient(180deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2vw, 1.5rem);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.02) inset,
    0 40px 80px -50px #000,
    0 0 90px -40px color-mix(in srgb, var(--glow-a) 60%, transparent);
  transition: box-shadow .6s var(--ease);
}
.console-bar {
  display: flex; align-items: center; gap: .6rem;
  padding-bottom: .9rem; margin-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}
.console-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--glow-a);
  box-shadow: 0 0 10px var(--glow-a);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.console-label {
  font-size: .68rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-3);
}

.house { width: 100%; height: auto; display: block; }
.house .ground { fill: #05070d; }
.house .mass   { fill: #1c2637; }
.house .cap    { fill: #2a3750; }
.house .beam   { fill: #2a3750; }
.house .post   { fill: #1f2a3c; }
.house .door   { fill: #0b111c; }
.house .win    { fill: color-mix(in srgb, var(--glow-c) 30%, #0b111c); }
.house .garage { fill: #141d2c; }
.house .vent   { fill: #0b111c; }
.house .channel { stroke: #3a4a68; stroke-width: 2.4; stroke-linecap: round; }

.house .pt {
  fill: var(--glow-a);
  filter: drop-shadow(0 0 6px var(--glow-a));
  transition: fill .5s var(--ease);
  animation: chase 5.5s linear infinite;
  animation-delay: calc(var(--i) * -.11s);
}
/* alternate the run so multi-color scenes read as two colors, like the real thing */
.house .pt:nth-child(2n)   { fill: var(--glow-b); filter: drop-shadow(0 0 6px var(--glow-b)); }
.house .pt:nth-child(5n+1) { fill: var(--glow-c); filter: drop-shadow(0 0 7px var(--glow-c)); }
@keyframes chase {
  0%, 100% { opacity: .8; r: 2.8; }
  50%      { opacity: 1;  r: 3.4; }
}

.house .spill rect {
  fill: var(--glow-a);
  opacity: .2;
  filter: blur(11px);
  transition: fill .5s var(--ease);
}

.scene-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: .5rem;
  margin-top: 1.1rem;
}
.scene-chip {
  display: flex; align-items: center; gap: .55rem;
  padding: .6rem .7rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-2);
  font-family: var(--font-ui); font-size: .8rem; font-weight: 500;
  text-align: left; cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.scene-chip:hover { border-color: var(--line-2); color: var(--text); }
.scene-chip[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--chip-a) 70%, transparent);
  background: color-mix(in srgb, var(--chip-a) 12%, var(--surface-2));
  color: #fff;
}
.chip-swatch {
  width: 16px; height: 16px; border-radius: 5px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--chip-a), var(--chip-b));
  box-shadow: 0 0 10px -1px var(--chip-a);
}
.chip-label { line-height: 1.25; }

.scene-note {
  margin-top: .85rem; padding-top: .85rem;
  border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--text-3); min-height: 2.4em;
}
.console-caption {
  margin-top: 1rem; font-size: .82rem; color: var(--text-3); text-align: center;
}

/* --------------------------------------------------------------------------
   7. Interior page hero
   -------------------------------------------------------------------------- */
.page-hero { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3.5rem); }
.page-hero-grid {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr); align-items: center;
}
@media (min-width: 940px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  .page-hero-plain .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
}
.page-lede {
  color: var(--text-2);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  margin-top: 1.3rem; max-width: 54ch;
}
.page-hero-media { position: relative; margin: 0; }
.page-hero-media .media-img {
  width: 100%; border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  aspect-ratio: 5 / 4; object-fit: cover;
}

/* The owner headshot's source is only 506px wide, so never render it larger than
   that or it goes soft. Replace the source photo and this cap can be relaxed. */
.split figure img.headshot,
.page-hero-media .media-img.headshot { max-width: 380px; aspect-ratio: 3 / 4; }
.media-glow {
  position: absolute; inset: auto 8% -14px 8%; height: 44px;
  background: radial-gradient(60% 100% at 50% 0%, color-mix(in srgb, var(--glow-a) 50%, transparent), transparent 72%);
  filter: blur(16px); z-index: -1;
}

/* --------------------------------------------------------------------------
   8. Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb { padding-top: 1.4rem; }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: .45rem;
  list-style: none; padding: 0;
  font-size: .78rem; color: var(--text-3);
}
.breadcrumb li + li::before { content: '/'; margin-right: .45rem; opacity: .5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--glow-a); }

/* --------------------------------------------------------------------------
   9. Prose
   -------------------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 2rem; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .5rem; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li {
  position: relative; padding-left: 1.5rem;
}
.prose ul li::before {
  content: ''; position: absolute; left: .25rem; top: .62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--glow-a); box-shadow: 0 0 7px var(--glow-a);
}
.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--glow-a); font-weight: 700; }

.prose blockquote {
  border-left: 2px solid var(--glow-a);
  padding-left: 1.25rem; margin-left: 0;
  color: var(--text); font-family: var(--font-display);
  font-size: 1.15rem; font-style: italic;
}

.split {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 940px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .split-wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .split-sticky > :last-child { position: sticky; top: 6.5rem; }
}
.split figure { margin: 0; }
/* Source photos are overwhelmingly phone portraits (3:4). Forcing 4:3 landscape
   crops the roofline — the subject — straight out of frame, so these frames stay
   portrait-leaning and only trim a little off the top and bottom. */
.split figure img {
  width: 100%; border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5; object-fit: cover;
}
.split figcaption {
  margin-top: .7rem; font-size: .8rem; color: var(--text-3);
}

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  list-style: none; padding: 0;
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.5rem;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
/* the light bleed along the top edge of every card */
.card::before {
  content: ''; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glow-a), transparent);
  opacity: .5; transition: opacity .3s var(--ease), left .4s var(--ease), right .4s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card:hover::before { opacity: 1; left: 0; right: 0; }
.card h3 { margin-bottom: .6rem; }
.card p  { color: var(--text-2); font-size: .95rem; }
.card-num {
  font-size: .7rem; font-weight: 700; letter-spacing: .2em;
  color: var(--glow-a); margin-bottom: .8rem;
}
.card-link {
  margin-top: auto; padding-top: 1.1rem;
  font-size: .88rem; font-weight: 600; color: var(--glow-c);
  text-decoration: none; display: inline-flex; align-items: center; gap: .4rem;
}
.card-link::after { content: '\2192'; transition: transform .2s var(--ease); }
.card:hover .card-link::after { transform: translateX(4px); }

/* service cards with a photo */
.card-media { padding: 0; }
.card-media img {
  width: 100%; aspect-ratio: 16 / 11; object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.card-media .card-body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }

/* --------------------------------------------------------------------------
   11. Steps / process
   -------------------------------------------------------------------------- */
.steps { list-style: none; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step {
  position: relative;
  display: grid; gap: 1.25rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  counter-increment: step;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--glow-a) 40%, transparent);
  background: color-mix(in srgb, var(--glow-a) 8%, transparent);
  color: var(--glow-a);
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  box-shadow: 0 0 22px -8px var(--glow-a);
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: .45rem; }
.step p  { color: var(--text-2); max-width: 62ch; }

/* --------------------------------------------------------------------------
   12. Comparison table
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table.compare-table {
  width: 100%; border-collapse: collapse; min-width: 560px;
  font-size: .93rem;
}
.compare-table th, .compare-table td {
  padding: .95rem 1.1rem; text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare-table thead th {
  background: var(--surface-2);
  font-family: var(--font-ui); font-size: .74rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-3);
}
.compare-table thead th.is-us { color: var(--glow-a); }
.compare-table tbody th {
  font-weight: 600; color: var(--text); width: 30%;
}
.compare-table td { color: var(--text-2); }
.compare-table td.is-us { color: var(--text); background: color-mix(in srgb, var(--glow-a) 5%, transparent); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------------------
   13. Two-up photo comparison (dusk / after dark)
   -------------------------------------------------------------------------- */
.two-up {
  display: grid; gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 800px) { .two-up { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }

.two-up-item { position: relative; margin: 0; }
.two-up-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.two-up-tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  padding: .4rem .85rem; border-radius: 999px;
  background: rgba(5, 7, 13, .74);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  font-size: .7rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text);
}
.two-up-item figcaption {
  margin-top: .85rem;
  font-size: .87rem; color: var(--text-2);
  max-width: 46ch;
}

/* --------------------------------------------------------------------------
   Crop anchor for photo frames
   --------------------------------------------------------------------------
   Almost every source photo is a phone portrait of a house at night: roughly
   half the frame is empty black sky and the building sits in the lower portion.
   With the default `object-position: center`, any frame shorter than the source
   crops to the sky and renders as a black rectangle. Anchoring low keeps the
   roofline — the actual subject — inside the frame.
   -------------------------------------------------------------------------- */
.split figure img,
.page-hero-media .media-img,
.two-up-item img,
.gallery-item img,
.card-media img {
  object-position: center 68%;
}
/* The hero shot is a true landscape frame with the house centered, and the
   headshot is a portrait — both want the default. The 2026-08-19 photographs
   are landscape too: anchoring them at 68% would push the roofline, which is
   the subject, straight out of the top of the frame. */
.gallery-item img[src*="home-night"],
.card-media img[src*="home-night"],
.gallery-item img[src*="same-house"],
.card-media img[src*="same-house"],
.gallery-item img[src*="track-hidden"],
.card-media img[src*="track-hidden"],
.headshot { object-position: center center; }

/* --------------------------------------------------------------------------
   14. Gallery
   -------------------------------------------------------------------------- */
.gallery-strip {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.gallery-grid {
  display: grid; gap: .9rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  grid-auto-flow: dense;
}
.gallery-item {
  position: relative; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--ink-2);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5;
  transition: transform .7s var(--ease), filter .5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item.is-wide { grid-column: span 2; }
.gallery-item.is-wide img { aspect-ratio: 16 / 10; }
@media (max-width: 640px) { .gallery-item.is-wide { grid-column: span 1; } }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 2.2rem .9rem .8rem;
  background: linear-gradient(180deg, transparent, rgba(5,7,13,.92));
  font-size: .78rem; color: var(--text-2);
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gallery-item:hover figcaption, .gallery-item:focus-within figcaption { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  font-weight: 600; letter-spacing: -.012em; color: var(--text);
  transition: color .2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--glow-a); }
.faq-sign {
  position: relative; flex-shrink: 0;
  width: 22px; height: 22px; margin-top: .25rem;
  border: 1px solid var(--line-2); border-radius: 50%;
}
.faq-sign::before, .faq-sign::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  background: var(--glow-a); transform: translate(-50%, -50%);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.faq-sign::before { width: 9px; height: 1.5px; }
.faq-sign::after  { width: 1.5px; height: 9px; }
.faq-item[open] .faq-sign::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-answer { padding-bottom: 1.5rem; color: var(--text-2); max-width: 70ch; }
.faq-answer > * + * { margin-top: .85rem; }

/* --------------------------------------------------------------------------
   16. Forms
   -------------------------------------------------------------------------- */
.quote-form {
  background: linear-gradient(180deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  box-shadow: 0 40px 90px -60px #000;
}
.quote-form-head { margin-bottom: 1.5rem; }
.quote-form-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.quote-form-head p { color: var(--text-2); font-size: .92rem; margin-top: .5rem; }

.field { margin-bottom: 1rem; }
.field-row { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field label {
  display: block; margin-bottom: .4rem;
  font-size: .82rem; font-weight: 600; color: var(--text-2);
  letter-spacing: .01em;
}
.req { color: var(--glow-a); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem .95rem;
  font-family: var(--font-ui); font-size: .95rem;
  color: var(--text);
  background: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23a8b3c7' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95rem center;
  background-size: 12px;
  padding-right: 2.4rem;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--glow-a) 65%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--glow-a) 16%, transparent);
  background: var(--ink-2);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin-top: .4rem; font-size: .8rem; color: var(--danger); }
.field-hint  { margin: -.4rem 0 1rem; font-size: .8rem; color: var(--text-3); }

.field-more { margin-bottom: 1rem; }
.field-more summary {
  cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--glow-c);
  padding: .55rem 0; list-style: none;
}
.field-more summary::-webkit-details-marker { display: none; }
.field-more summary::before { content: '+ '; }
.field-more[open] summary::before { content: '\2212 '; }
.field-more[open] { padding-bottom: .25rem; }

.form-alert {
  padding: .9rem 1.1rem; border-radius: 10px; margin-bottom: 1.25rem;
  font-size: .9rem; border: 1px solid;
}
.form-alert-error { background: color-mix(in srgb, var(--danger) 10%, transparent); border-color: color-mix(in srgb, var(--danger) 45%, transparent); color: #ffd7db; }
.form-alert-ok    { background: color-mix(in srgb, var(--ok) 10%, transparent);     border-color: color-mix(in srgb, var(--ok) 40%, transparent);     color: #d3ffe4; }

.form-footnote {
  margin-top: 1rem; font-size: .78rem; color: var(--text-3); line-height: 1.55;
}

/* --------------------------------------------------------------------------
   17. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(90% 120% at 15% 0%, color-mix(in srgb, var(--glow-a) 10%, transparent), transparent 65%),
    var(--ink-2);
  border-block: 1px solid var(--line);
}
.cta-grid {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr); align-items: start;
}
@media (min-width: 940px) { .cta-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.cta-copy h2 { max-width: 16ch; }
.cta-copy > p { color: var(--text-2); margin-top: 1.1rem; max-width: 48ch; }
.cta-points { list-style: none; padding: 0; margin-top: 1.75rem; display: grid; gap: .8rem; }
.cta-points li {
  position: relative; padding-left: 1.7rem;
  font-size: .92rem; color: var(--text-2);
}
.cta-points li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--glow-a); box-shadow: 0 0 10px var(--glow-a);
}
.cta-phone { margin-top: 1.5rem; font-size: .95rem; color: var(--text-2); }

/* --------------------------------------------------------------------------
   18. Related links
   -------------------------------------------------------------------------- */
.related-grid {
  display: grid; gap: .75rem; list-style: none; padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.related-grid a {
  position: relative; display: block; height: 100%;
  padding: 1.25rem 2.5rem 1.25rem 1.35rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.related-grid a:hover { border-color: color-mix(in srgb, var(--glow-a) 45%, transparent); background: var(--surface-2); }
.related-label { display: block; font-weight: 600; color: var(--text); margin-bottom: .3rem; }
.related-blurb { display: block; font-size: .86rem; color: var(--text-3); }
.related-arrow {
  position: absolute; right: 1.2rem; top: 1.35rem;
  color: var(--glow-a); transition: transform .2s var(--ease);
}
.related-grid a:hover .related-arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   19. Callout / note
   -------------------------------------------------------------------------- */
.callout {
  border: 1px solid var(--line);
  border-left: 2px solid var(--glow-a);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--glow-a) 5%, var(--surface));
  padding: 1.35rem 1.5rem;
}
.callout h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.callout p { color: var(--text-2); font-size: .93rem; }
.callout > * + * { margin-top: .75rem; }

.stat-row {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  list-style: none; padding: 0;
}
.stat {
  padding: 1.4rem 1.35rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.stat dt { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: .5rem; }
.stat dd { margin: 0; font-family: var(--font-display); font-size: 1.15rem; color: var(--text); line-height: 1.3; }

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink-2); padding-bottom: 2rem; }
.footer-top {
  display: grid; gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
@media (min-width: 900px) { .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } }

.footer-brand .logo-type { display: flex; flex-direction: column; }
.footer-brand .logo-l1 { font-size: 1.2rem; }
.footer-tagline { color: var(--text-2); font-size: .92rem; margin-top: .8rem; max-width: 34ch; }
.footer-meta { margin-top: 1.4rem; font-size: .86rem; color: var(--text-2); line-height: 1.9; }
.footer-meta strong { color: var(--text-3); font-weight: 600; display: inline-block; min-width: 4.5rem; }
.footer-meta a { color: var(--glow-c); text-decoration: none; }
.footer-note { margin-top: 1.2rem; font-size: .84rem; color: var(--text-3); max-width: 40ch; }
.footer-social { list-style: none; padding: 0; margin-top: 1.2rem; display: flex; gap: 1rem; font-size: .86rem; }

.footer-cols {
  display: grid; gap: 2rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}
.footer-col h2 {
  font-family: var(--font-ui); font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--glow-a);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.footer-col a {
  font-size: .875rem; color: var(--text-2); text-decoration: none;
  transition: color .18s var(--ease);
}
.footer-col a:hover { color: var(--text); }

.footer-areas { border-top: 1px solid var(--line); padding-block: 1.75rem; }
.footer-areas h2 {
  font-family: var(--font-ui); font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: .7rem;
}
.footer-areas p { font-size: .86rem; color: var(--text-2); }
.footer-areas a { color: var(--glow-c); }

.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 1.75rem;
  display: grid; gap: 1.25rem;
}
.footer-disclosure { font-size: .8rem; color: var(--text-3); max-width: 72ch; }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  font-size: .78rem; color: var(--text-3);
}
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: var(--glow-a); }

/* --------------------------------------------------------------------------
   21. Sticky mobile CTA
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed; inset: auto 0 0 0; z-index: 70;
  display: none; gap: .6rem;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { flex: 1; }
@media (max-width: 860px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 4.5rem; }
}

/* --------------------------------------------------------------------------
   22. Mobile nav
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    background: color-mix(in srgb, var(--ink) 97%, transparent);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.5rem;
    display: none;
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a {
    padding: .9rem .25rem; font-size: 1rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav li:last-child a { border-bottom: 0; }

  .header-actions { margin-left: auto; }
  .nav-toggle {
    display: grid; place-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0;
    background: transparent; border: 1px solid var(--line-2);
    border-radius: 10px; cursor: pointer;
  }
  .nav-toggle span {
    display: block; width: 18px; height: 1.5px; background: var(--text);
    transition: transform .25s var(--ease), opacity .2s var(--ease);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .header-quote { display: none; }
  .logo-l1 { font-size: .95rem; }
}

/* --------------------------------------------------------------------------
   23. Scroll reveal
   -------------------------------------------------------------------------- */
/* Only ever hide content once JS has confirmed it is running and able to
   reveal it again. Without the .js gate, a script error or a blocked bundle
   leaves whole sections permanently invisible — content you cannot see is
   content that does not convert and does not get crawled as visible text. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   24. Reduced motion — turn off everything decorative
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .channel-rule::after { display: none; }
}

/* --------------------------------------------------------------------------
   25. Print
   -------------------------------------------------------------------------- */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .sticky-cta, .cta-band, .site-footer, .hero-sky { display: none; }
  a[href^="/"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
