/* ==========================================================================
   SynthShade PDX — modern refresh
   Palette carried over 1:1 from the original site.
   ========================================================================== */

:root {
  /* Brand palette (unchanged from original) */
  --purple: oklch(0.6 0.28 300);         /* original --neon-yellow / primary */
  --cyan: oklch(0.75 0.18 250);          /* original --neon-cyan / accent   */
  --magenta: oklch(0.7 0.25 330);        /* original --neon-magenta         */
  --electric: #00e0ff;                   /* original Get Quote cyan         */
  --electric-soft: oklch(0.8324 0.1452 212.28); /* original --third        */

  --bg: oklch(0.1 0.03 280);
  --bg-deep: oklch(0.08 0.025 280);
  --surface: oklch(0.14 0.04 280);
  --surface-2: oklch(0.18 0.04 280);
  --input: oklch(0.22 0.06 280);
  --fg: oklch(0.95 0.02 100);
  --muted: oklch(0.7 0.04 240);
  --border: oklch(0.3 0.08 270 / 0.5);
  --border-soft: oklch(0.3 0.08 270 / 0.28);
  --on-accent: oklch(0.1 0.02 280);

  --gradient: linear-gradient(100deg, var(--purple) 0%, var(--magenta) 50%, var(--cyan) 100%);

  --font-display: "Orbitron", "Space Grotesk", system-ui, sans-serif;
  --font-sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 76rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: color-mix(in oklch, var(--purple) 60%, transparent); }
:focus-visible { outline: 2px solid var(--electric); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: 100;
  padding: 0.6rem 1rem; border-radius: 8px;
  background: var(--electric); color: var(--on-accent); font-weight: 600; text-decoration: none;
  transform: translateY(-200%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.7rem 1.25rem;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--btn-bg);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--ease); }
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 38px; padding: 0.45rem 1rem; font-size: 0.85rem; }
.btn--lg { min-height: 52px; padding: 0.85rem 1.6rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary {
  --btn-bg: var(--purple);
  color: #fff;
  box-shadow: 0 0 0 1px oklch(0.75 0.25 300 / 0.5) inset, 0 10px 30px -10px var(--purple);
}
.btn--cyan {
  --btn-bg: var(--electric);
  color: var(--on-accent);
  box-shadow: 0 8px 24px -10px var(--electric);
}
.btn--ghost {
  border-color: var(--border);
  background: oklch(0.14 0.04 280 / 0.5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
@media (hover: hover) {
  .btn--primary:hover { box-shadow: 0 0 0 1px oklch(0.8 0.25 300 / 0.7) inset, 0 14px 40px -8px var(--purple); transform: translateY(-1px); }
  .btn--primary:hover svg { transform: translateX(3px); }
  .btn--cyan:hover { box-shadow: 0 10px 30px -8px var(--electric); transform: translateY(-1px); }
  .btn--ghost:hover { border-color: var(--cyan); background: oklch(0.18 0.05 260 / 0.6); }
}
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.is-open {
  background: oklch(0.1 0.03 280 / 0.72);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border-soft);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }

.brand {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.06em;
  text-decoration: none;
}
.brand__dot {
  width: 8px; height: 8px; border-radius: 50%; margin-right: 0.6rem;
  background: var(--electric); box-shadow: 0 0 12px var(--electric);
}
.brand__synth { color: var(--electric); }
.brand__shade { color: var(--magenta); }
.brand__tag { color: var(--muted); font-family: var(--font-mono); font-weight: 500; font-size: 0.75em; margin-left: 0.2rem; letter-spacing: 0; }
.brand--sm { font-size: 0.95rem; }

.nav__links { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav__links a:not(.btn) {
  position: relative; padding: 0.5rem 0.85rem; border-radius: 999px;
  font-size: 0.92rem; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: var(--fg); background: oklch(0.3 0.08 270 / 0.3); }
.nav__mobile-cta { display: none; }
.nav__actions { display: flex; align-items: center; gap: 0.5rem; }

.nav__toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 12px;
  background: transparent; cursor: pointer; position: relative;
}
.nav__toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--fg);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 25px; }
.nav.is-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__actions { margin-left: auto; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0.25rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: oklch(0.1 0.03 280 / 0.96);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-soft);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .nav__links a:not(.btn) { padding: 0.85rem 1rem; font-size: 1.05rem; border-radius: 12px; }
  .nav__mobile-cta { display: inline-flex; margin-top: 0.5rem; min-height: 50px; }
}
@media (max-width: 420px) {
  .nav__actions .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh; display: flex; align-items: center;
  padding-block: calc(var(--nav-h) + 3rem) 4rem;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 15% 40%, oklch(0.1 0.03 280 / 0.92), transparent 70%),
    linear-gradient(90deg, oklch(0.1 0.03 280 / 0.95) 0%, oklch(0.1 0.03 280 / 0.55) 50%, oklch(0.1 0.03 280 / 0.2) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%),
    linear-gradient(180deg, oklch(0.1 0.03 280 / 0.6) 0%, transparent 25%);
}
.hero__grid {
  position: absolute; inset: auto 0 0 0; height: 45%; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(oklch(0.6 0.28 300 / 0.16) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.6 0.28 300 / 0.16) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to top, black, transparent);
  -webkit-mask-image: linear-gradient(to top, black, transparent);
  transform: perspective(600px) rotateX(55deg); transform-origin: bottom;
}
.hero__content { position: relative; }

.pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.4rem 0.9rem 0.4rem 0.75rem; border-radius: 999px;
  border: 1px solid oklch(0.75 0.18 250 / 0.4);
  background: oklch(0.14 0.04 280 / 0.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan);
}
.pill__pulse {
  position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--electric); flex: none;
}
.pill__pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--electric);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3); opacity: 0; } }

.hero__title {
  margin-top: 1.5rem;
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.75rem, 9vw, 7rem); line-height: 0.95; letter-spacing: 0.01em;
}
.hero__title span { display: block; }
.hero__title .text-gradient { filter: drop-shadow(0 0 30px oklch(0.6 0.28 300 / 0.45)); padding-bottom: 0.08em; }

.hero__lede { margin-top: 1.5rem; max-width: 34rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: oklch(0.85 0.03 250); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 34rem; margin-top: 3rem;
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  background: oklch(0.12 0.035 280 / 0.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}
.stat { padding: 1rem 1.25rem; display: flex; flex-direction: column-reverse; gap: 0.25rem; }
.stat + .stat { border-left: 1px solid var(--border-soft); }
.stat dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stat dd { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3.5vw, 2.1rem); line-height: 1; color: var(--purple); text-shadow: 0 0 24px oklch(0.6 0.28 300 / 0.5); }
.stat dd span { font-size: 0.6em; margin-left: 0.05em; }
.hero__fine { margin-top: 0.75rem; font-size: 0.78rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); position: relative; }
.section--alt {
  background:
    radial-gradient(50% 60% at 100% 0%, oklch(0.6 0.28 300 / 0.1), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, oklch(0.75 0.18 250 / 0.08), transparent 70%),
    var(--bg-deep);
  border-block: 1px solid var(--border-soft);
}
.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); max-width: 44rem; }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; }
.section-head--split .section-lede { max-width: 26rem; margin: 0; }
.kicker { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--cyan); margin-bottom: 0.9rem; }
.section-title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.9rem, 4.5vw, 3.1rem); line-height: 1.08; letter-spacing: 0.01em;
}
.section-lede { margin-top: 1.1rem; color: var(--muted); font-size: 1.08rem; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, oklch(0.16 0.045 280 / 0.9), oklch(0.13 0.035 280 / 0.9));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.card--glow { --tone: var(--purple); overflow: hidden; transition: border-color 0.3s, transform 0.3s var(--ease); }
.card--glow::before {
  /* cursor spotlight */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklch, var(--tone) 22%, transparent), transparent 60%);
}
.card--glow::after {
  /* top accent line */
  content: ""; position: absolute; top: 0; left: 1.5rem; right: 1.5rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--tone), transparent);
}
@media (hover: hover) {
  .card--glow:hover { border-color: color-mix(in oklch, var(--tone) 55%, transparent); transform: translateY(-3px); }
  .card--glow:hover::before { opacity: 1; }
}

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.service { padding: 2rem 1.75rem 2.1rem; }
.service__icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px;
  color: var(--tone);
  background: color-mix(in oklch, var(--tone) 12%, transparent);
  border: 1px solid color-mix(in oklch, var(--tone) 35%, transparent);
  box-shadow: 0 0 30px -6px color-mix(in oklch, var(--tone) 55%, transparent);
}
.service__icon svg, .feature svg, .channels__icon svg {
  width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.service__title { margin-top: 1.5rem; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--tone); }
.service__sub { margin-top: 0.25rem; font-size: 0.92rem; color: var(--muted); }
.checklist { margin-top: 1.4rem; display: grid; gap: 0.7rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: baseline; font-size: 1rem; }
.checklist li::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px; transform: translateY(-1px) rotate(45deg);
  background: var(--tone); box-shadow: 0 0 10px var(--tone);
}

/* Features */
.features {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  margin-top: 1.25rem; border-radius: var(--radius); overflow: hidden;
  background: var(--border-soft); border: 1px solid var(--border-soft);
}
.feature { display: flex; gap: 1rem; padding: 1.5rem 1.5rem; background: var(--bg); }
.feature svg { flex: none; color: var(--electric); margin-top: 2px; }
.feature h4 { font-weight: 600; font-size: 1.05rem; }
.feature p { margin-top: 0.2rem; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.process__media { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; border: 1px solid var(--border-soft); aspect-ratio: 1 / 1; }
.process__media img { width: 100%; height: 100%; object-fit: cover; }
.process__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, oklch(0.08 0.025 280 / 0.85));
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.04);
}
.process__tag {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.9rem; border-radius: 999px; font-size: 0.85rem; font-weight: 500;
  background: oklch(0.12 0.035 280 / 0.7); border: 1px solid var(--border-soft);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.process .section-head { margin-bottom: 2rem; }

.steps { position: relative; display: grid; gap: 0.5rem; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 1px;
  background: linear-gradient(180deg, var(--purple), var(--magenta), var(--cyan));
  opacity: 0.6;
}
.step { position: relative; display: flex; gap: 1.25rem; padding: 0.9rem 0; }
.step__n {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; color: var(--fg);
  background: var(--bg-deep); border: 1px solid var(--border);
  box-shadow: 0 0 0 5px var(--bg-deep);
  transition: border-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.step:hover .step__n { border-color: var(--purple); color: var(--purple); box-shadow: 0 0 0 5px var(--bg-deep), 0 0 24px -4px var(--purple); }
.step h3 { font-weight: 600; font-size: 1.2rem; margin-top: 0.6rem; }
.step p { color: var(--muted); margin-top: 0.15rem; }

/* ---------- Tint guide ---------- */
.tint {
  display: grid; grid-template-columns: 1.6fr 1fr; overflow: hidden;
  border: 1px solid var(--border-soft); border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
}
.tint__preview { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.tint__preview img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.tint__shade {
  position: absolute; inset: 0; background: #000; opacity: 0.65;
  transition: opacity 0.6s var(--ease);
}
.tint__preview::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, oklch(1 0 0 / 0.08) 0%, transparent 30%, transparent 70%, oklch(0.6 0.28 300 / 0.12) 100%);
}
.tint__readout { position: absolute; left: 1.5rem; bottom: 1.25rem; z-index: 1; display: flex; align-items: baseline; gap: 0.5rem; }
.tint__vlt {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 8vw, 5.5rem); line-height: 1;
  color: var(--purple); text-shadow: 0 0 40px oklch(0.6 0.28 300 / 0.6);
  font-variant-numeric: tabular-nums;
}
.tint__vlt-label { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.1em; color: var(--fg); opacity: 0.8; }
.tint__legal {
  position: absolute; top: 1rem; right: 1rem; z-index: 1;
  padding: 0.35rem 0.75rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  color: var(--on-accent); background: var(--electric);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.tint__legal.is-warn { background: var(--magenta); color: #fff; }

.tint__panel { padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 1.75rem; justify-content: center; border-left: 1px solid var(--border-soft); }
.tint__options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; }
.tint__opt {
  --s: 0.5;
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  padding: 0.8rem 0.25rem 0.7rem; border-radius: 12px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border-soft);
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.tint__opt::before {
  content: ""; width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, oklch(0.75 0.18 250 / 0.9), oklch(0.7 0.25 330 / 0.9));
  box-shadow: inset 0 0 0 100px rgb(0 0 0 / var(--s)), inset 0 0 0 1px oklch(1 0 0 / 0.15);
}
.tint__opt b { font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; }
.tint__opt span { font-size: 0.72rem; color: var(--muted); }
.tint__opt:hover { border-color: var(--border); }
.tint__opt:active { transform: scale(0.96); }
.tint__opt[aria-checked="true"] {
  border-color: var(--purple);
  background: color-mix(in oklch, var(--purple) 14%, var(--surface-2));
  box-shadow: 0 0 24px -8px var(--purple);
}
.tint__opt[aria-checked="true"] b { color: var(--purple); }
.tint__name { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; text-transform: uppercase; color: var(--cyan); }
.tint__desc { margin-top: 0.4rem; color: var(--muted); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.about__head { position: sticky; top: calc(var(--nav-h) + 2rem); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 2rem; }
.facts li {
  padding: 1rem 1.1rem; border-radius: var(--radius-sm);
  background: oklch(0.14 0.04 280 / 0.6); border: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: 0.15rem;
}
.facts b { font-weight: 600; }
.facts span { font-size: 0.88rem; color: var(--muted); line-height: 1.4; }
.prose { display: grid; gap: 1.4rem; font-size: 1.08rem; color: oklch(0.85 0.025 250); max-width: 40rem; }
.prose p:first-child::first-line { color: var(--fg); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: start; }
.contact .section-head { margin-bottom: 2rem; }
.channels { display: grid; gap: 0.5rem; }
.channels li { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 0; }
.channels__icon {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  color: var(--electric); background: oklch(0.75 0.18 250 / 0.1); border: 1px solid oklch(0.75 0.18 250 / 0.3);
}
.channels__icon svg { width: 22px; height: 22px; }
.channels__label { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.channels__value { display: block; font-weight: 600; font-size: 1.05rem; text-decoration: none; overflow-wrap: anywhere; }
a.channels__value:hover { color: var(--electric); }

.hours { margin-top: 2rem; padding: 1.5rem 1.6rem; }
.hours::before { content: ""; position: absolute; top: 0; left: 1.5rem; right: 1.5rem; height: 1px; background: linear-gradient(90deg, transparent, var(--magenta), transparent); }
.hours__title { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--magenta); }
.hours__grid { display: grid; grid-template-columns: auto 1fr; gap: 0.55rem 1.5rem; margin-top: 1rem; }
.hours__grid dt { color: var(--muted); }
.hours__grid dd { text-align: right; font-weight: 500; }
.hours__note { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border-soft); font-size: 0.92rem; color: var(--muted); line-height: 1.55; }
.hours__note strong { color: var(--fg); font-weight: 600; }

.form-card { padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 0 30px 80px -40px oklch(0.6 0.28 300 / 0.5); }
.form-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, oklch(0.75 0.18 250 / 0.6), transparent 35%, transparent 65%, oklch(0.6 0.28 300 / 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: 0.5rem; }
.field label, .field__label { font-size: 0.88rem; font-weight: 600; color: var(--cyan); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 0.8rem 1rem;
  font-size: 1rem; /* ≥16px prevents iOS zoom */
  background: oklch(0.1 0.03 280 / 0.7); border: 1px solid var(--border); border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: oklch(0.55 0.04 250); }
.field input:hover, .field textarea:hover { border-color: oklch(0.4 0.1 270 / 0.7); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); background: oklch(0.12 0.035 280);
  box-shadow: 0 0 0 4px oklch(0.75 0.18 250 / 0.15);
}
.field input[aria-invalid="true"] { border-color: var(--magenta); box-shadow: 0 0 0 4px oklch(0.7 0.25 330 / 0.15); }

.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: oklch(0.1 0.03 280 / 0.7); border: 1px solid var(--border); }
.segmented__btn {
  min-height: 42px; padding: 0.5rem; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  font-weight: 600; font-size: 0.92rem; color: var(--muted);
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.segmented__btn:hover { color: var(--fg); }
.segmented__btn.is-active { background: var(--purple); color: #fff; box-shadow: 0 6px 20px -8px var(--purple); }
.form__foot { text-align: center; font-size: 0.88rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-soft); padding-block: 2rem; background: var(--bg-deep); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer__meta { font-size: 0.88rem; color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(1.25rem, env(safe-area-inset-bottom)); z-index: 60;
  max-width: calc(100% - 2rem); padding: 0.9rem 1.25rem; border-radius: 14px;
  font-weight: 500; background: var(--surface-2); border: 1px solid var(--border);
  box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.8);
  transform: translate(-50%, 1rem); opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.toast--visible { transform: translate(-50%, 0); opacity: 1; }
.toast--success { border-color: var(--electric); }
.toast--error { border-color: var(--magenta); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .services { grid-template-columns: 1fr; }
  .service { display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; padding: 1.5rem; }
  .service__icon { grid-row: span 2; }
  .service__title { margin-top: 0.2rem; }
  .checklist { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 0.6rem 1rem; }
  .features { grid-template-columns: 1fr; }
  .tint { grid-template-columns: 1fr; }
  .tint__panel { border-left: 0; border-top: 1px solid var(--border-soft); }
  .process, .about, .contact { grid-template-columns: 1fr; }
  .process__media { aspect-ratio: 16 / 10; }
  .about__head { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero { align-items: flex-end; padding-bottom: 2.5rem; }
  .hero__media img { object-position: 70% center; }
  .hero__media::after {
    background:
      linear-gradient(0deg, var(--bg) 0%, oklch(0.1 0.03 280 / 0.85) 45%, oklch(0.1 0.03 280 / 0.35) 100%);
  }
  .hero__actions .btn { flex: 1 1 100%; }
  .stat { padding: 0.85rem 0.9rem; }
  .checklist { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .tint__readout { left: 1rem; bottom: 0.9rem; }
  .tint__opt span { display: none; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   3D branch additions
   ========================================================================== */
.hero__canvas {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; display: block; pointer-events: none;
}
.hero__hint { color: var(--electric); opacity: 0.75; margin-left: 0.4rem; }
@media (hover: none) { .hero__hint { display: none; } }

/* Cards lift their contents off the surface while tilting */
[data-tilt] { transform-style: preserve-3d; will-change: transform; }
.service[data-tilt] .service__icon { transform: translateZ(40px); }
.service[data-tilt] .service__title { transform: translateZ(28px); }
.service[data-tilt] .checklist { transform: translateZ(16px); }
.process__media[data-tilt] .process__tag { transform: translateZ(50px); }
/* overflow:hidden flattens 3D; let services pop, keep spotlight clipped by radius */
.service.card--glow { overflow: visible; }
.service.card--glow::before { border-radius: inherit; }

/* Tint lab */
.tint__lab {
  position: relative; height: 190px; border-radius: 14px; overflow: hidden;
  background:
    radial-gradient(80% 90% at 50% 50%, oklch(0.6 0.28 300 / 0.12), transparent 70%),
    var(--bg-deep);
  border: 1px solid var(--border-soft);
}
.tint__lab canvas { width: 100%; height: 100%; display: block; }
.tint__lab-tag {
  position: absolute; bottom: 0.6rem; font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.tint__lab-tag--in { left: 0.75rem; color: var(--electric); }
.tint__lab-tag--out { right: 0.75rem; color: var(--purple); }
.no-webgl .tint__lab, .no-webgl .hero__hint { display: none; }

/* Custom service icons: tinted glass fill + glare stroke */
.service__icon svg { width: 30px; height: 30px; stroke-width: 1.4; }
.service__icon .ico-tint { fill: currentColor; fill-opacity: 0.38; stroke-width: 1.2; }
.service__icon .ico-glare { stroke: #fff; stroke-opacity: 0.75; stroke-width: 1.1; }
/* Two features now, not three */
.features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .features { grid-template-columns: 1fr; } }
/* Kicker without the code-comment slashes reads like a plain label */
.kicker { font-family: var(--font-sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; }

/* Mt. Hood sign-off band */
.horizon {
  position: relative; height: clamp(260px, 38vw, 420px); overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, oklch(0.12 0.06 300) 70%, var(--bg-deep) 100%);
}
.horizon__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.horizon__tag {
  position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%);
  margin: 0; white-space: nowrap;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: oklch(0.85 0.05 300); text-shadow: 0 0 16px oklch(0.6 0.28 300 / 0.8);
}
.no-webgl .horizon { display: none; }

@media (max-width: 480px) { .horizon__tag { white-space: normal; width: calc(100% - 2rem); text-align: center; font-size: 0.7rem; } }

/* ==========================================================================
   About page + short home About
   ========================================================================== */
.about--short { align-items: center; }
.about--short .about__head { position: static; }
.about--short .facts { margin-top: 0; }
.about__more { margin-top: 1.75rem; }
.about__more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--ease); }
@media (hover: hover) { .about__more:hover svg { transform: translateX(3px); } }

.page-head {
  padding-block: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)) clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(50% 80% at 85% 0%, oklch(0.6 0.28 300 / 0.18), transparent 70%),
    radial-gradient(40% 70% at 0% 100%, oklch(0.75 0.18 250 / 0.1), transparent 70%);
}
.page-head__title {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.3rem, 7vw, 5rem); line-height: 1; letter-spacing: 0.01em; max-width: 14ch;
}
.page-head__lede { margin-top: 1.25rem; max-width: 34rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }

/* Intro */
.intro { padding-top: clamp(2rem, 5vw, 3rem); }
.intro__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.intro__photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  border: 1px solid var(--border-soft); background: var(--surface);
  box-shadow: 0 30px 80px -40px oklch(0.6 0.28 300 / 0.6);
}
.intro__photo img { width: 100%; height: 100%; object-fit: cover; }
.intro__placeholder {
  position: absolute; inset: 0.75rem; border: 1.5px dashed var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; text-align: center;
  color: var(--muted);
  background: repeating-linear-gradient(135deg, transparent 0 14px, oklch(0.3 0.08 270 / 0.12) 14px 15px);
}
.intro__placeholder svg { width: 56px; height: 56px; fill: none; stroke: var(--cyan); stroke-width: 1.3; stroke-linecap: round; margin-bottom: 0.25rem; }
.intro__placeholder span { font-weight: 600; color: var(--fg); }
.intro__placeholder small { font-family: var(--font-mono); font-size: 0.72rem; }

.intro__text { display: grid; gap: 1.2rem; font-size: 1.1rem; max-width: 38rem; }
.intro__hello { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3.5vw, 2.4rem); line-height: 1.1; margin-bottom: 0.4rem; }
.intro__sign { margin-top: 0.5rem; font-weight: 600; color: var(--cyan); }

/* Placeholder copy: obvious on screen so it never ships by accident */
.draft {
  position: relative; padding: 0.9rem 1rem 0.9rem 1.1rem; border-radius: 12px;
  border: 1px dashed oklch(0.7 0.25 330 / 0.55); background: oklch(0.7 0.25 330 / 0.06);
  color: oklch(0.82 0.06 330); font-style: italic;
}
.draft::before {
  content: "Draft"; position: absolute; top: -0.6rem; right: 0.75rem;
  padding: 0 0.45rem; border-radius: 999px; font-style: normal;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--magenta); color: #fff;
}
.draft-inline { color: var(--magenta); border-bottom: 1px dashed currentColor; }

/* Story rows */
.story__row {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 1rem clamp(2rem, 6vw, 5rem);
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
}
.story__row + .story__row { border-top: 1px solid var(--border-soft); }
.story__title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem); letter-spacing: 0.03em; color: var(--cyan);
}
.story__row:nth-child(2) .story__title { color: var(--purple); }
.story__row:nth-child(3) .story__title { color: var(--magenta); }
.story__row:nth-child(4) .story__title { color: var(--electric); }
.story__row p { font-size: 1.08rem; color: oklch(0.85 0.025 250); max-width: 40rem; }

/* CTA */
.cta__inner { text-align: center; max-width: 44rem; }
.cta__inner .section-lede { margin-inline: auto; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }

@media (max-width: 860px) {
  .intro__grid, .story__row { grid-template-columns: 1fr; }
  .intro__photo { max-width: 22rem; }
}
@media (max-width: 600px) {
  .cta__actions .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery { padding-top: 0; }
.shade-layer { position: absolute; inset: 0; background: #000; pointer-events: none; }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filters__btn {
  min-height: 42px; padding: 0.5rem 1.1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  font-weight: 600; font-size: 0.92rem;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.filters__btn:hover { color: var(--fg); border-color: oklch(0.45 0.1 270 / 0.8); }
.filters__btn.is-active { background: var(--fg); border-color: var(--fg); color: var(--on-accent); }

.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.25rem; }
.gallery__empty { padding: 3rem 0; text-align: center; color: var(--muted); }
.gallery__empty a { color: var(--electric); }

.vcard { display: block; text-decoration: none; color: inherit; border-radius: var(--radius); overflow: hidden; }
.vcard[hidden] { display: none; }
.vcard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
@media (hover: hover) { .vcard:hover .vcard__media img { transform: scale(1.05); } }
.vcard__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, oklch(0.1 0.03 280 / 0.7));
}
.vcard__count, .vcard__sample {
  position: absolute; z-index: 1; padding: 0.3rem 0.65rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600;
}
.vcard__count { right: 0.75rem; bottom: 0.75rem; background: oklch(0.1 0.03 280 / 0.7); border: 1px solid var(--border-soft); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.vcard__sample { left: 0.75rem; top: 0.75rem; background: var(--magenta); color: #fff; letter-spacing: 0.08em; text-transform: uppercase; }
.vcard__body { padding: 1.1rem 1.25rem 1.3rem; }
.vcard__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.vcard__title { font-weight: 700; font-size: 1.15rem; }
.vcard__date { flex: none; font-size: 0.82rem; color: var(--muted); }
.vcard__meta { margin-top: 0.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; font-size: 0.9rem; color: var(--muted); }

.chip {
  display: inline-flex; align-items: center; padding: 0.15rem 0.6rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; color: var(--tone, var(--purple));
  background: color-mix(in oklch, var(--tone, var(--purple)) 14%, transparent);
  border: 1px solid color-mix(in oklch, var(--tone, var(--purple)) 40%, transparent);
}
.chip--automotive { --tone: var(--purple); }
.chip--residential { --tone: var(--cyan); }
.chip--commercial { --tone: var(--magenta); }
.chip--sample { --tone: var(--magenta); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Viewer dialog ---------- */
html.is-locked { overflow: hidden; }
.viewer {
  width: min(1100px, calc(100% - 2rem)); max-width: none; max-height: calc(100dvh - 2rem);
  padding: 0; border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px);
  background: var(--bg); color: var(--fg);
  box-shadow: 0 40px 120px -30px oklch(0.6 0.28 300 / 0.45);
  overflow: auto; overscroll-behavior: contain;
}
.viewer::backdrop { background: oklch(0.06 0.02 280 / 0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.viewer[open] { animation: viewer-in 0.35s var(--ease); }
.viewer[open]::backdrop { animation: fade-in 0.35s var(--ease); }
@keyframes viewer-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
@keyframes fade-in { from { opacity: 0; } }

.viewer__inner { padding: clamp(1rem, 3vw, 1.75rem); display: grid; gap: 1rem; }
.viewer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.viewer__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.25rem, 3vw, 1.8rem); letter-spacing: 0.02em; }
.viewer__meta { margin-top: 0.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; font-size: 0.92rem; color: var(--muted); }
.viewer__close, .viewer__nav {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--border); background: oklch(0.14 0.04 280 / 0.75); color: var(--fg);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s, background-color 0.2s;
}
.viewer__close:hover, .viewer__nav:hover { border-color: var(--cyan); }
.viewer__close svg, .viewer__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.viewer__stage-wrap { position: relative; }
.viewer__stage { border-radius: var(--radius); overflow: hidden; background: var(--bg-deep); aspect-ratio: 16 / 10; }
.viewer__photo { position: relative; width: 100%; height: 100%; margin: 0; }
.viewer__photo img { width: 100%; height: 100%; object-fit: contain; animation: fade-in 0.3s var(--ease); }
.viewer__photo figcaption {
  position: absolute; left: 0.75rem; bottom: 0.75rem; max-width: calc(100% - 6rem);
  padding: 0.35rem 0.7rem; border-radius: 8px; font-size: 0.82rem;
  background: oklch(0.1 0.03 280 / 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; }
.viewer__nav--prev { left: 0.75rem; }
.viewer__nav--next { right: 0.75rem; }
.viewer__nav[hidden] { display: none; }
.viewer__counter {
  position: absolute; right: 0.75rem; bottom: 0.75rem; z-index: 4;
  font-family: var(--font-mono); font-size: 0.75rem; padding: 0.25rem 0.55rem; border-radius: 6px;
  background: oklch(0.1 0.03 280 / 0.7);
}
.viewer__counter:empty { display: none; }

.viewer__thumbs { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; scrollbar-width: thin; }
.viewer__thumbs[hidden] { display: none; }
.viewer__thumb {
  position: relative; flex: none; width: 96px; aspect-ratio: 4 / 3; padding: 0; cursor: pointer;
  border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--surface-2);
  opacity: 0.6; transition: opacity 0.2s, border-color 0.2s;
}
.viewer__thumb img { width: 100%; height: 100%; object-fit: cover; }
.viewer__thumb:hover { opacity: 0.9; }
.viewer__thumb[aria-current="true"] { opacity: 1; border-color: var(--purple); }
.viewer__thumb span {
  position: absolute; inset: auto 0 0 0; padding: 0.15rem; text-align: center;
  font-family: var(--font-mono); font-size: 0.62rem; background: oklch(0.1 0.03 280 / 0.75);
}
.viewer__notes { color: var(--muted); max-width: 60rem; }
.viewer__notes[hidden] { display: none; }

/* ---------- Before / after slider ---------- */
.compare { position: relative; width: 100%; height: 100%; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.compare__layer { position: absolute; inset: 0; }
.compare__layer img { width: 100%; height: 100%; object-fit: cover; }
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; transform: translateX(-1px);
  background: var(--electric); box-shadow: 0 0 16px var(--electric); pointer-events: none; z-index: 2;
}
.compare__handle span {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--bg); border: 2px solid var(--electric);
  box-shadow: 0 0 20px oklch(0.85 0.15 210 / 0.6);
}
.compare__handle span::before, .compare__handle span::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; transform: translateY(-50%);
  border: 6px solid transparent;
}
.compare__handle span::before { left: 4px; border-right-color: var(--electric); }
.compare__handle span::after { right: 4px; border-left-color: var(--electric); }
.compare__range {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.compare:focus-within .compare__handle span { outline: 2px solid var(--fg); outline-offset: 3px; }
.compare__label {
  position: absolute; top: 0.75rem; z-index: 2; padding: 0.3rem 0.7rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; pointer-events: none;
  background: oklch(0.1 0.03 280 / 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.compare__label--before { left: 0.75rem; }
.compare__label--after { right: 0.75rem; color: var(--purple); }

@media (max-width: 600px) {
  .viewer { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .viewer__stage { aspect-ratio: 4 / 3.4; }
  .viewer__nav { width: 38px; height: 38px; }
  .viewer__nav--prev { left: 0.4rem; }
  .viewer__nav--next { right: 0.4rem; }
}

/* keep the whole viewer on screen */
.viewer__stage { max-height: calc(100dvh - 21rem); width: 100%; }
@media (max-width: 600px) { .viewer__stage { max-height: none; } }

.notfound { padding-bottom: clamp(3rem, 8vw, 6rem); }
.notfound .page-head__lede { max-width: 38rem; }
.notfound__actions { margin-top: 2rem; justify-content: flex-start; }
