/* Bizorex — clean premium dark */
:root {
  /* Theme-independent tokens */
  --purple: #8b7cff;
  --purple-deep: #6a5af8;
  --blue: #5b8cff;
  --ok: #3dd68c;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 20px;
  --header-h: 68px;
  --font-display: "Geologica", "Unbounded", system-ui, sans-serif;
  --font-brand: "Unbounded", "Geologica", system-ui, sans-serif;
  --font-body: "Onest", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grad-brand: linear-gradient(118deg, #5a4dff 0%, #7b6cff 45%, #5b8cff 100%);
  --max: 1120px;
}

/* ===== Dark theme (default polished look) ===== */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0f;
  --bg-elev: #101018;
  --bg-card: #12121a;
  --bg-card-2: #16161f;
  --ink: #f5f5f7;
  --muted: #a8a8b8;
  --muted-2: #78788a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.14);
  --purple: #8b7cff;
  --grid-line: rgba(255, 255, 255, 0.025);
  --glow-1: rgba(90, 77, 255, 0.12);
  --glow-2: rgba(91, 140, 255, 0.08);
  --header-bg: rgba(10, 10, 15, 0.85);
  --nav-mobile-bg: rgba(10, 10, 15, 0.97);
  --num-badge-bg: rgba(10, 10, 15, 0.72);
  --card-edge: rgba(10, 10, 15, 0.28);
  --hero-img-op: 0.18;
  --hero-fade: rgba(10, 10, 15, 0.65);
}

/* ===== Light theme (professional, not washed out) ===== */
[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-card-2: #f2f3f8;
  --ink: #16161d;
  --muted: #55566a;
  --muted-2: #7c7d90;
  --line: rgba(20, 20, 40, 0.1);
  --line-strong: rgba(20, 20, 40, 0.16);
  --purple: #5a4dff;
  --grid-line: rgba(20, 20, 50, 0.035);
  --glow-1: rgba(90, 77, 255, 0.1);
  --glow-2: rgba(91, 140, 255, 0.08);
  --header-bg: rgba(246, 247, 251, 0.85);
  --nav-mobile-bg: rgba(246, 247, 251, 0.98);
  --num-badge-bg: rgba(20, 20, 40, 0.68);
  --card-edge: rgba(20, 20, 40, 0.14);
  --hero-img-op: 0.3;
  --hero-fade: rgba(246, 247, 251, 0.6);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  /* Crisp: fine grid + tiny corner accents (no muddy blotches) */
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    radial-gradient(ellipse 50% 40% at 0% 0%, var(--glow-1), transparent 55%),
    radial-gradient(ellipse 40% 35% at 100% 0%, var(--glow-2), transparent 50%);
  background-size: 48px 48px, 48px 48px, 100% 100%, 100% 100%;
  background-attachment: fixed;
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header — pinned to top */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}
.header-inner .nav { margin-left: auto; }
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand img { width: 34px; height: 34px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav-cta {
  background: var(--grad-brand) !important;
  color: #fff !important;
  font-weight: 600 !important;
}
.nav-cta:hover { filter: brightness(1.08); }

.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-card);
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span {
  display: block; width: 17px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), filter 0.2s, background 0.2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 10px 28px rgba(90, 77, 255, 0.32);
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn-sm { padding: 10px 16px; font-size: 0.88rem; }

/* Hero — clean, no muddy glow */
.hero-hub {
  position: relative;
  padding: clamp(52px, 8vw, 88px) 0 clamp(48px, 7vw, 80px);
  border-bottom: 1px solid var(--line);
}
.hero-hub::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,124,255,0.45), transparent);
  pointer-events: none;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.hero-kicker i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple);
}
.hero-hub h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.038em;
  margin: 0 0 18px;
  max-width: 18ch;
  color: var(--ink);
}
.hero-hub h1 em {
  font-style: normal;
  color: var(--purple);
}
.hero-lead {
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  color: var(--muted);
  max-width: 48ch;
  margin: 0 0 28px;
  line-height: 1.65;
}
.hero-lead strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 640px;
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero-stats div span { color: var(--muted-2); font-size: 0.84rem; }

/* Sections */
.section { padding: clamp(52px, 8vw, 88px) 0; }
.section-head { margin-bottom: 36px; max-width: 640px; }
.section-head-center { text-align: center; margin-inline: auto; }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.section-head h2,
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
  letter-spacing: -0.032em;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--ink);
}
.section-head p { color: var(--muted); margin: 0; font-size: 1.02rem; }

/* Direction cards — PHOTO CLEAR, text BELOW image */
.dirs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .dirs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .dirs-grid { grid-template-columns: repeat(3, 1fr); }
}
.dir-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.dir-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 124, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.dir-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-elev);
  overflow: hidden;
}
.dir-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: none;
  transition: transform 0.45s var(--ease);
}
.dir-card:hover .dir-card-media img { transform: scale(1.03); }
/* Only a thin readable edge at bottom — photos stay visible */
.dir-card-media::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 28%;
  background: linear-gradient(180deg, transparent 0%, var(--card-edge) 100%);
  pointer-events: none;
}
.dir-num-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--num-badge-bg);
  backdrop-filter: blur(8px);
  font-family: var(--font-brand);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
}
.dir-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
  background: var(--bg-card);
}
.dir-card strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--ink);
}
.dir-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 14px;
  flex: 1;
  line-height: 1.55;
}
.dir-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--purple);
}
.dir-card:hover .dir-open span { transform: translateX(3px); }
.dir-open span { display: inline-block; transition: transform 0.25s var(--ease); }

@media (min-width: 980px) {
  .dirs-grid .dir-card:nth-child(7) { grid-column: 2; }
}

/* About / why / process */
.about-grid { display: grid; gap: 28px; }
@media (min-width: 800px) {
  .about-grid { grid-template-columns: 0.9fr 1.2fr; align-items: start; }
}
.about-copy p { color: var(--muted); margin: 0 0 14px; }
.about-copy p.lead { color: var(--ink); font-size: 1.12rem; line-height: 1.6; }
.about-points {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: grid; gap: 8px;
}
.about-points li {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--ink);
}
.about-points li::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--purple); flex-shrink: 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.why-item {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.why-item:hover { border-color: rgba(139,124,255,0.35); }
.why-item h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.why-item p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.timeline {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
@media (min-width: 700px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .timeline { grid-template-columns: repeat(6, 1fr); } }
.timeline-item {
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.timeline-item span {
  display: inline-block;
  font-family: var(--font-brand);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 8px;
}
.timeline-item h3 {
  font-size: 0.98rem;
  margin: 0 0 6px;
  font-family: var(--font-display);
  color: var(--ink);
}
.timeline-item p { margin: 0; color: var(--muted); font-size: 0.86rem; }

.cta-band { margin: 0; padding: clamp(28px, 5vw, 48px) 0; }
.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  margin: 0 0 8px;
  letter-spacing: -0.028em;
  color: var(--ink);
}
.cta-band p { margin: 0; color: var(--muted); max-width: 44ch; font-size: 0.95rem; }

.contact-wrap { display: grid; gap: 24px; }
@media (min-width: 800px) {
  .contact-wrap { grid-template-columns: 1fr 1fr; align-items: center; }
}
.contact-card {
  padding: 26px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.contact-card h3 {
  font-family: var(--font-display);
  margin: 0 0 18px;
  font-size: 1.15rem;
  color: var(--ink);
}
.contact-rows {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: grid; gap: 12px;
}
.contact-rows li { display: flex; flex-direction: column; gap: 2px; }
.contact-rows span { color: var(--muted-2); font-size: 0.78rem; }
.contact-rows a { font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.contact-rows a:hover { color: var(--purple); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 36px;
  margin-top: 12px;
  background: var(--bg-elev);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.footer-links, .footer-contacts {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
}
.footer-links a, .footer-contacts a {
  color: var(--muted); font-size: 0.88rem;
}
.footer-links a:hover, .footer-contacts a:hover { color: var(--ink); }
.copy { color: var(--muted-2); font-size: 0.82rem; margin: 0; }

.float-cta {
  position: fixed;
  right: 18px; bottom: 18px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 600; font-size: 0.88rem;
  box-shadow: 0 10px 28px rgba(90,77,255,0.4);
}
.float-cta-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff; animation: pulse 1.6s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ========== Service pages ========== */
.page-hero {
  position: relative;
  padding: clamp(36px, 6vw, 64px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: var(--hero-img-op);
}
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}
.page-hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--hero-fade) 0%, var(--bg) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  color: var(--muted-2); font-size: 0.84rem; margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--purple); }
.breadcrumb span { opacity: 0.45; }
.page-hero .hero-kicker { margin-bottom: 12px; }
.page-hero h1 { max-width: 20ch; }
.page-hero .hero-lead { margin-bottom: 20px; max-width: 52ch; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

/* Service panels — clear photos beside/above text */
.svc-grid { display: grid; gap: 18px; }
.svc-panel {
  display: grid;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s;
}
.svc-panel:hover { border-color: rgba(139,124,255,0.35); }
@media (min-width: 820px) {
  .svc-panel { grid-template-columns: minmax(260px, 36%) 1fr; }
}
.svc-photo {
  margin: 0;
  min-height: 200px;
  background: var(--bg-elev);
  overflow: hidden;
}
.svc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
  opacity: 1;
  filter: none;
}
.svc-copy { padding: clamp(18px, 2.8vw, 28px); }
.svc-copy h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: -0.022em;
  margin: 0 0 10px;
  color: var(--ink);
}
.svc-plain { color: var(--muted); margin: 0 0 8px; font-size: 0.98rem; }
.svc-plain strong { color: var(--ink); }
.svc-when { color: var(--muted-2); font-size: 0.9rem; margin: 0 0 14px; }
.svc-when strong { color: var(--muted); }
.svc-cols {
  display: grid; gap: 14px; margin-bottom: 14px;
}
@media (min-width: 560px) {
  .svc-cols { grid-template-columns: 1fr 1fr; }
}
.svc-cols h5 {
  margin: 0 0 8px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple);
}
.svc-cols ul, .svc-cols ol {
  margin: 0; padding-left: 17px;
  color: var(--muted); font-size: 0.9rem;
}
.svc-cols li { margin-bottom: 4px; }
.svc-result {
  margin: 0 0 12px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--purple) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--purple) 25%, transparent);
  font-size: 0.92rem;
  color: var(--ink);
}
.svc-badge {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.svc-badge-ok {
  background: rgba(61, 214, 140, 0.1);
  color: var(--ok);
  border: 1px solid rgba(61, 214, 140, 0.28);
}
.svc-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.other-dirs { padding: 40px 0 20px; }
.other-dirs h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.other-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.other-link {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.other-link:hover {
  border-color: rgba(139,124,255,0.4);
  transform: translateY(-2px);
}
.other-link strong { font-size: 0.9rem; color: var(--ink); }
.other-link span { color: var(--muted-2); font-size: 0.76rem; }

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; animation: reveal-enter 0.55s var(--ease); }
@keyframes reveal-enter { from { transform: translateY(14px); } to { transform: none; } }
.reveal.reveal-static { animation: none !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .reveal.is-in { animation: none !important; } }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 18px 22px;
    background: var(--nav-mobile-bg);
    border-bottom: 1px solid var(--line);
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.25s;
  }
  .nav.is-open {
    transform: none; opacity: 1; pointer-events: auto;
  }
  .nav a { padding: 13px 14px; border-radius: var(--radius-sm); }
  .dirs-grid .dir-card:nth-child(7) { grid-column: auto; }
  .float-cta span:last-child { display: none; }
  .float-cta { padding: 13px; border-radius: 50%; }
}

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


/* ===== Theme toggle ===== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  min-width: 38px;
  padding: 0 12px;
  margin-right: 4px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.theme-toggle:hover {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--purple) 18%, transparent);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}
.theme-toggle svg.ti {
  display: none !important;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
html[data-theme-pref="light"] .theme-toggle svg.ti-sun,
html[data-theme-pref="dark"] .theme-toggle svg.ti-moon {
  display: block !important;
}
.theme-label {
  white-space: nowrap;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

@media (max-width: 860px) {
  .theme-label { display: none; }
  .theme-toggle { padding: 0; width: 38px; }
}


/* ===== Nav spy active ===== */
.nav a.is-active {
  color: var(--ink);
  background: color-mix(in srgb, var(--purple) 16%, transparent);
}

/* ===== Directions search ===== */
.dirs-search {
  margin: 0 0 22px;
}
.dirs-search input {
  width: 100%;
  max-width: 520px;
  display: block;
  margin-inline: auto;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dirs-search input::placeholder { color: var(--muted-2); }
.dirs-search input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--purple) 18%, transparent);
}
.dir-card.is-hidden { display: none; }

/* ===== FAQ ===== */
.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
  max-width: 920px;
  margin-inline: auto;
}
.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  padding: 2px 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq-item[open] {
  border-color: color-mix(in srgb, var(--purple) 35%, var(--line));
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 28px 14px 0;
  font-weight: 650;
  position: relative;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--purple);
  font-size: 1.2rem;
  font-weight: 500;
}
.faq-item[open] summary::after { content: "–"; }
.faq-body {
  padding: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
}
.faq-body p { margin: 0; }

/* ===== Scroll progress ===== */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 60;
  width: 0%;
  background: var(--grad-brand);
  pointer-events: none;
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 78px;
  z-index: 40;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, border-color 0.2s;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.back-to-top:hover { border-color: var(--purple); }

@media (max-width: 860px) {
  .faq-list { grid-template-columns: 1fr; }
  .back-to-top { bottom: 72px; right: 14px; }
}

/* ===== Contact form ===== */
.contact-form {
  display: grid;
  gap: 14px;
  margin: 6px 0 4px;
}
.form-group {
  display: grid;
  gap: 6px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--ink);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group textarea { min-height: 96px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-2); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--purple) 18%, transparent);
}
.form-group.is-invalid input,
.form-group.is-invalid textarea,
.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] { border-color: #ff6b6b; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.form-note {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Mobile: theme toggle + burger pinned to the right */
@media (max-width: 860px) {
  .header-actions { margin-left: auto; }
}