/* ============================================
   QUARTZ ELEKTROMEKANİK — Design System
   Light corporate-modern + electric blue
   ============================================ */

:root {
  /* Brand */
  --navy-950: #050B14;
  --navy-900: #0A1628;
  --navy-800: #0F1F38;
  --navy-700: #15294A;
  --navy-600: #1E3A66;

  --blue-600: #0052D4;
  --blue-500: #0066FF;   /* primary electric */
  --blue-400: #2E84FF;
  --blue-300: #5BA4FF;

  --cyan-500: #00C2FF;
  --cyan-400: #33D2FF;

  --grey-50:  #F7F9FC;
  --grey-100: #EEF2F8;
  --grey-200: #E1E7F0;
  --grey-300: #C9D2E0;
  --grey-400: #9AA6B8;
  --grey-500: #6B7689;
  --grey-600: #4B5468;
  --grey-700: #2E3647;

  --success: #00B57A;
  --warning: #F5A623;
  --danger:  #E5484D;

  /* Light theme tokens (default) */
  --bg:           #FFFFFF;
  --bg-alt:       var(--grey-50);
  --bg-elev:      #FFFFFF;
  --surface:      #FFFFFF;
  --surface-alt:  var(--grey-100);
  --ink:          var(--navy-900);
  --ink-soft:     var(--grey-600);
  --ink-mute:     var(--grey-500);
  --line:         var(--grey-200);
  --line-strong:  var(--grey-300);
  --primary:      var(--blue-500);
  --primary-deep: var(--blue-600);
  --accent:       var(--cyan-500);
  --hero-bg:      var(--navy-900);
  --hero-ink:     #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.04), 0 1px 1px rgba(10, 22, 40, 0.03);
  --shadow-md: 0 8px 24px -8px rgba(10, 22, 40, 0.10), 0 2px 6px rgba(10, 22, 40, 0.04);
  --shadow-lg: 0 24px 48px -16px rgba(10, 22, 40, 0.16), 0 4px 12px rgba(10, 22, 40, 0.06);
  --glow-blue: 0 0 0 1px rgba(0, 102, 255, 0.20), 0 8px 32px -8px rgba(0, 102, 255, 0.40);

  /* Type */
  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-body:    'Inter', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Radius / motion */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --container: 1280px;
  --pad: clamp(20px, 4vw, 48px);
}

[data-theme="dark"] {
  --bg:           var(--navy-950);
  --bg-alt:       #08111E;
  --bg-elev:      var(--navy-900);
  --surface:      var(--navy-900);
  --surface-alt:  var(--navy-800);
  --ink:          #F2F6FC;
  --ink-soft:     #A8B5CC;
  --ink-mute:     #6F7E99;
  --line:         rgba(255, 255, 255, 0.08);
  --line-strong:  rgba(255, 255, 255, 0.16);
  --hero-bg:      var(--navy-950);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px -8px rgba(0,0,0,0.6);
  --shadow-lg: 0 24px 48px -16px rgba(0,0,0,0.6);
}

/* ============================================
   Dark mode component overrides
   (topbar/btn-quote use a fixed dark surface so contrast stays correct)
   ============================================ */
[data-theme="dark"] .site-header {
  background: rgba(5, 11, 20, 0.9);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .topbar {
  background: #050B14;
  color: rgba(255,255,255,.72);
  border-bottom-color: rgba(255,255,255,.08);
}
[data-theme="dark"] .topbar-pill { background: rgba(52,211,153,.14); color: #6EE7B7; }
[data-theme="dark"] .topbar-link { color: rgba(255,255,255,.92); }
[data-theme="dark"] .topbar-link--mute { color: rgba(255,255,255,.65); }
[data-theme="dark"] .topbar-meta { color: rgba(255,255,255,.55); }
[data-theme="dark"] .topbar-divider { background: rgba(255,255,255,.18); }

[data-theme="dark"] .btn-quote {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong, #00C2FF));
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 10px 28px -10px rgba(0, 102, 255, .55), inset 0 1px 0 rgba(255,255,255,.18);
}
[data-theme="dark"] .btn-quote:hover {
  box-shadow: 0 16px 36px -10px rgba(0, 102, 255, .7);
}
[data-theme="dark"] .btn-quote::before {
  background: linear-gradient(135deg, transparent, rgba(255,255,255,.18) 65%);
}

[data-theme="dark"] .brand-logo svg rect:first-child { fill: #0F1B2E; }

[data-theme="dark"] .nav-menu a {
  color: var(--ink-soft);
}
[data-theme="dark"] .nav-menu a:hover { color: var(--ink); background: rgba(255,255,255,.04); }
[data-theme="dark"] .nav-menu a.active { color: var(--primary); background: rgba(0, 102, 255, .12); }

[data-theme="dark"] .mobile-drawer { background: #050B14; border-top-color: rgba(255,255,255,.06); }
[data-theme="dark"] .mobile-drawer.open { background: #050B14 !important; }

[data-theme="dark"] .service-card,
[data-theme="dark"] .product-card,
[data-theme="dark"] .ref-card {
  background: var(--surface);
  border-color: var(--line);
}
[data-theme="dark"] .service-card:hover { background: var(--surface-alt); }

[data-theme="dark"] .hero-side {
  background: rgba(15, 27, 46, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.08);
}

[data-theme="dark"] .site-footer {
  background: #050B14;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.5;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -0.035em; font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; letter-spacing: -0.01em; }

p { margin: 0; }

/* ---------- layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: clamp(48px, 7vw, 96px) 0;
  position: relative;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
}

/* ---------- header / nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 6px 28px -16px rgba(10,22,40,0.18);
}
.site-header.scrolled .topbar { max-height: 0; opacity: 0; border-bottom-color: transparent; }

/* ------- topbar (info strip) ------- */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  max-height: 40px;
  overflow: hidden;
  transition: max-height 0.35s var(--ease), opacity 0.25s var(--ease);
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.topbar-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 3px rgba(52,211,153,.18);
  animation: pulse-soft 2.4s var(--ease) infinite;
}
@keyframes pulse-soft { 0%,100% { opacity: 1 } 50% { opacity: .55 } }
.topbar-meta { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; opacity: .65; }
.topbar-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.topbar-link:hover { color: #fff; }
.topbar-link svg { opacity: .7; }
.topbar-link--mute { color: rgba(255,255,255,.55); font-size: 11.5px; }
.topbar-divider { width: 1px; height: 16px; background: rgba(255,255,255,.12); }
.topbar-icon {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.75);
  border-radius: 6px;
  transition: all .2s;
}
.topbar-icon:hover { background: rgba(255,255,255,.08); color: #fff; }
.topbar-icon svg { width: 14px; height: 14px; }

/* ------- main nav ------- */
.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-logo {
  display: block;
  width: 48px; height: 48px;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(10,22,40,.18));
}
.brand-logo svg { display: block; }

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 6px;
  align-items: flex-start;
}
.brand-wordmark__top {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.brand-wordmark__bot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
  line-height: 1;
  text-transform: uppercase;
}
.brand-bar {
  width: 18px;
  height: 1.5px;
  background: var(--primary);
  display: inline-block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  border-radius: 10px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-menu a::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  transform: translateX(-50%) scale(0);
  transition: transform .25s var(--ease);
}
.nav-menu a:hover {
  color: var(--primary);
  background: color-mix(in oklab, var(--primary) 7%, transparent);
}
.nav-menu a.active {
  color: var(--primary);
  background: color-mix(in oklab, var(--primary) 10%, transparent);
}
.nav-menu a.active::before { transform: translateX(-50%) scale(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}
.btn-quote {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px 13px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid var(--ink);
  box-shadow: 0 8px 22px -10px rgba(10,22,40,.5), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), transparent 65%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.btn-quote > * { position: relative; z-index: 1; }
.btn-quote__icon {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  background: rgba(255,255,255,.12);
  border-radius: 7px;
}
.btn-quote__arrow {
  font-size: 1.05rem;
  transition: transform .2s var(--ease);
  opacity: .7;
}
.btn-quote:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(10,22,40,.6);
}
.btn-quote:hover::before { opacity: 1; }
.btn-quote:hover .btn-quote__arrow { transform: translateX(3px); opacity: 1; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  height: 26px;
}
.lang-toggle button {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.6);
  padding: 0 8px;
  letter-spacing: 0.08em;
  cursor: pointer;
  height: 100%;
}
.lang-toggle button.active {
  background: rgba(255,255,255,.95);
  color: #0A1628; /* fixed dark — topbar always dark regardless of theme */
}

.mobile-drawer-foot { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }

.mobile-drawer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.lang-toggle--mobile {
  border-color: var(--line-strong);
}
.lang-toggle--mobile button { color: var(--ink-soft); }
.lang-toggle--mobile button.active { background: var(--ink); color: var(--bg); }
.theme-toggle--mobile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.theme-toggle--mobile:hover { background: var(--bg-alt); border-color: var(--primary); color: var(--primary); }
.theme-toggle--mobile svg { width: 16px; height: 16px; }

.mobile-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--r-sm);
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

/* mobile drawer */
.mobile-drawer {
  display: none;
}
.mobile-drawer.open {
  display: block;
}
.mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
.mobile-drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: padding-left .2s var(--ease), color .2s var(--ease);
}
.mobile-drawer a::after {
  content: "→";
  color: var(--ink-mute);
  font-weight: 400;
  font-size: 1rem;
  transition: transform .2s var(--ease), color .2s var(--ease);
}
.mobile-drawer a:hover { padding-left: 8px; color: var(--primary); }
.mobile-drawer a:hover::after { transform: translateX(4px); color: var(--primary); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
  background: transparent;
  color: inherit;
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px -4px rgba(0, 102, 255, .35);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.3), transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}
.btn-primary:hover {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  box-shadow: 0 12px 28px -8px rgba(0, 102, 255, .55), 0 0 0 1px rgba(0,102,255,.2);
  transform: translateY(-2px);
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  position: relative;
}
.btn-ghost:hover {
  background: var(--surface-alt);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--ink);
  color: var(--bg);
}
.btn-dark:hover { opacity: 0.9; }
.btn-lg { padding: 18px 28px; font-size: 0.95rem; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer-grid h5 {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cyan-400);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-grid a {
  display: block;
  padding: 6px 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-grid a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}
.footer-brand p { font-family: var(--f-body); font-size: 0.875rem; line-height: 1.6; max-width: 320px; margin-top: 16px; }

/* ---------- generic cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---------- utility ---------- */
.muted { color: var(--ink-mute); }
.soft  { color: var(--ink-soft); }
.mono  { font-family: var(--f-mono); }
.divider { height: 1px; background: var(--line); }

.scroll-fade {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  filter: blur(2px);
}
.scroll-fade.in { opacity: 1; transform: none; filter: none; }

/* Stagger children when parent fades in */
.scroll-fade.in > * { animation: stagger-up 0.6s var(--ease) backwards; }
.scroll-fade.in > *:nth-child(1) { animation-delay: 0.05s; }
.scroll-fade.in > *:nth-child(2) { animation-delay: 0.12s; }
.scroll-fade.in > *:nth-child(3) { animation-delay: 0.19s; }
.scroll-fade.in > *:nth-child(4) { animation-delay: 0.26s; }
.scroll-fade.in > *:nth-child(5) { animation-delay: 0.33s; }
.scroll-fade.in > *:nth-child(6) { animation-delay: 0.40s; }
@keyframes stagger-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* tag pill */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--surface);
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

/* status indicator (live) */
.live-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--success);
  position: relative;
  box-shadow: 0 0 0 0 var(--success);
  animation: live-glow 2.4s ease-out infinite;
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--success);
  opacity: 0.5;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.5); opacity: 0.7; }
  70% { opacity: 0; }
  100% { transform: scale(2); opacity: 0; }
}
@keyframes live-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, .0); }
}

/* responsive */
@media (max-width: 1180px) {
  .nav-menu a { padding: 10px 12px; font-size: 0.88rem; }
  .brand-wordmark__top { font-size: 1.35rem; }
  .nav { height: 84px; }
}
@media (max-width: 980px) {
  .topbar-meta, .topbar-link--mute { display: none; }
}
@media (max-width: 880px) {
  .nav-menu { display: none; }
  .mobile-toggle { display: inline-flex; }
  .nav { height: 72px; gap: 16px; }
  .nav-divider { display: none; }
  .mobile-drawer.open {
    display: block;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: var(--bg);
    z-index: 99;
    border-top: 1px solid var(--line);
    padding: 24px var(--pad);
    overflow-y: auto;
    animation: drawerSlide 0.3s var(--ease);
  }
  .mobile-drawer.open ul { display: block; }
  .mobile-drawer.open a {
    display: block;
    padding: 14px 0;
    font-family: var(--f-display);
    font-size: 1.05rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    transition: color 0.2s, padding-left 0.2s var(--ease);
    position: relative;
  }
  .mobile-drawer.open a:hover { color: var(--primary); padding-left: 8px; }
  .mobile-drawer.open a::after {
    content: "→";
    position: absolute;
    right: 0;
    color: var(--ink-mute);
    transition: transform 0.2s, color 0.2s;
  }
  .mobile-drawer.open a:hover::after { color: var(--primary); transform: translateX(4px); }
  @keyframes drawerSlide {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .topbar { display: none; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-logo svg { width: 42px; height: 42px; }
  .brand-wordmark__top { font-size: 1.25rem; }
  .brand-wordmark__bot { font-size: 8.5px; letter-spacing: 0.18em; }
  .btn-quote { padding: 10px 14px; font-size: 0.85rem; gap: 6px; }
  .btn-quote__icon { display: none; }
  .btn-quote__arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  /* Hide topbar lang-toggle but keep mobile drawer one */
  .topbar .lang-toggle { display: none; }
  .lang-toggle--mobile { display: inline-flex !important; }
}
