:root {
  --bg: #0f1115;
  --bg-grad-a: #0d0f13;
  --bg-grad-b: #12161d;
  --text: #f5f7fa;
  --muted: #b7bfca;
  --line: rgba(255,255,255,0.08);
  --accent: #e21b23;
  --accent-dark: #b51017;
  --accent-cold: #2a6df5;
  --accent-cold-dark: #184dbd;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(0,0,0,0.25);
  --radius: 22px;
  --max: 1200px;
  --success: #1f9d67;
  --success-dark: #16734b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Cambria, Georgia, "Times New Roman", Times, serif;
  background:
    radial-gradient(circle at top right, rgba(226,27,35,0.16), transparent 30%),
    linear-gradient(180deg, var(--bg-grad-a) 0%, var(--bg-grad-b) 100%);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.35s ease, color 0.35s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 3.2rem)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(10,12,17,0.9), rgba(10,12,17,0.72));
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  position: relative;
}

.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 0 10px rgba(226,27,35,0.28)) drop-shadow(0 0 22px rgba(226,27,35,0.18));
  mix-blend-mode: screen;
  opacity: 0.96;
  transition: transform 180ms ease, filter 180ms ease;
}

.brand:hover img {
  transform: translateY(-1px) scale(1.03);
  filter: drop-shadow(0 0 12px rgba(226,27,35,0.42)) drop-shadow(0 0 28px rgba(226,27,35,0.24));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong { font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-text span { color: var(--muted); font-size: 0.9rem; }

.theme-toggle {
  margin-left: 0.6rem;
  padding: 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 78px;
  height: 40px;
  position: relative;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.22);
}

.theme-toggle-track {
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(42,109,245,0.18), rgba(226,27,35,0.16));
  overflow: hidden;
}

.theme-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(226,27,35,0.95), rgba(181,16,23,0.95));
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  transform: translateX(38px);
  transition: transform 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
  z-index: 2;
}

.theme-toggle-icons {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  font-size: 0.95rem;
  z-index: 3;
  pointer-events: none;
}

.theme-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mobile-theme-toggle { display: none; }

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--white); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle .burger { display: inline-grid; gap: 4px; }
.menu-toggle .burger span {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
  display: block;
}

.mobile-dropdown { display: none; }

.hero {
  padding: 7.5rem 0 6rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-watermark {
  position: absolute;
  right: -4rem;
  top: 50%;
  --parallax-offset: 0px;
  transform: translateY(calc(-50% + var(--parallax-offset)));
  width: min(58vw, 760px);
  opacity: 0.10;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 0 20px rgba(226,27,35,0.25)) drop-shadow(0 0 60px rgba(226,27,35,0.12));
  mix-blend-mode: screen;
  will-change: transform;
  transition: transform 120ms linear;
}

.hero-watermark img { width: 100%; height: auto; object-fit: contain; opacity: 0.95; }
.hero-watermark::before {
  content: '';
  position: absolute;
  inset: 8% 10% 12% 8%;
  background: radial-gradient(circle, rgba(226,27,35,0.3) 0%, rgba(226,27,35,0.12) 35%, rgba(226,27,35,0) 72%);
  filter: blur(22px);
  z-index: -1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(226,27,35,0.1);
  color: #ffd7d9;
  border: 1px solid rgba(226,27,35,0.18);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

h1, h2, h3 { margin: 0 0 1rem; line-height: 1.05; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -0.03em; }
.hero p { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.3rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 180ms ease;
  cursor: pointer;
}

.btn-primary { background: linear-gradient(180deg, var(--accent), var(--accent-dark)); color: var(--white); box-shadow: var(--shadow); }
.btn-secondary { border-color: var(--line); background: rgba(255,255,255,0.03); color: var(--white); }
.btn:hover { transform: translateY(-1px); }

.hero-card,
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.4rem; }
.metric {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
}
.metric strong { display: block; font-size: 1.45rem; margin-bottom: 0.25rem; }

section { padding: 4rem 0 7rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-head p { max-width: 60ch; color: var(--muted); margin: 0; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
.tag {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: #d8dee7;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.card p { color: var(--muted); margin-bottom: 0; }

.service-icon {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 0.9rem;
  background: linear-gradient(180deg, rgba(226,27,35,0.18), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.1);
  color: #ffe0e2;
}

.service-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.references-wrap { display: grid; gap: 1rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #14181f;
  min-height: 280px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  cursor: pointer;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: 0 24px 46px rgba(0,0,0,0.3); border-color: rgba(226,27,35,0.28); }
.portfolio-card img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; transition: transform 300ms ease; }
.portfolio-card:hover img { transform: scale(1.04); }
.portfolio-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.1rem;
  background: linear-gradient(180deg, rgba(10,12,17,0) 0%, rgba(10,12,17,0.9) 62%, rgba(10,12,17,0.98) 100%);
  display: grid;
  gap: 0.45rem;
}
.portfolio-overlay h4 { margin: 0; font-size: 1.05rem; }
.portfolio-overlay p { margin: 0; color: #d5dbe4; font-size: 0.94rem; }
.portfolio-zoom {
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1.8rem; align-items: stretch; }
.contact-card { display: grid; gap: 1rem; align-content: start; }
.contact-info-block {
  display: block;
}
.contact-info-block strong {
  display: block;
  margin-bottom: 0.35rem;
}
.contact-map-card { padding: 0; overflow: hidden; }

form { display: grid; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input, textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--white);
  padding: 0.95rem 1rem;
  font: inherit;
}
input:invalid:not(:placeholder-shown) { border-color: rgba(226,27,35,0.6); }
input:valid:not(:placeholder-shown) { border-color: rgba(31,157,103,0.7); }
textarea { min-height: 160px; resize: vertical; }
.captcha {
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  color: var(--muted);
}
.notice-box {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}
.form-status { min-height: 1.2rem; font-size: 0.94rem; }
.form-status.error { color: #ffd4d7; }
.form-status.success { color: #d9f9e8; }

.map-frame { width: 100%; min-height: 460px; border: 0; display: block; background: rgba(255,255,255,0.03); }
.jobs { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }

footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.footer-links { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.4rem; }
.footer-link-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--white);
  border-radius: 12px;
  padding: 0.75rem 0.95rem;
  font: inherit;
  cursor: pointer;
}

.lightbox,
.legal-modal,
.success-modal {
  position: fixed;
  inset: 0;
  background: rgba(3,5,8,0.82);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 120;
}

.lightbox.open,
.legal-modal.open,
.success-modal.open { display: flex; }

.lightbox-content,
.legal-modal-card,
.success-modal-card {
  width: min(900px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: #10141b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  padding: 1.8rem;
}

.lightbox-content { width: min(1100px, 100%); padding: 0; overflow: hidden; }
.lightbox-image { width: 100%; max-height: 72vh; object-fit: contain; background: #0b0e13; }
.lightbox-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem 1.2rem;
}
.lightbox-copy h4, .lightbox-copy p { margin: 0; }
.lightbox-copy p { color: var(--muted); margin-top: 0.25rem; }
.lightbox-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end; }
.lightbox-counter {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.lightbox-close {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--white);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  font: inherit;
}

.legal-modal-head,
.success-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.legal-modal-copy { color: var(--muted); }
.legal-modal-copy h4 { color: var(--white); margin: 1.1rem 0 0.45rem; }

.success-modal-card { width: min(620px, 100%); border-color: rgba(31,157,103,0.35); }
.success-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, var(--success), var(--success-dark));
  color: var(--white);
  font-size: 1.4rem;
}

.floating-whatsapp {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #25D366, #128C7E);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 18px 35px rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.12);
}

.small { font-size: 0.94rem; color: var(--muted); }
.muted { color: var(--muted); }

body.light-mode {
  background:
    radial-gradient(circle at top right, rgba(42,109,245,0.14), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #eef4ff 52%, #e7f0ff 100%);
  color: #111827;
}

body.light-mode .theme-toggle {
  background: rgba(17,17,17,0.04);
  border-color: rgba(0,0,0,0.12);
  color: #111827;
}

body.light-mode .theme-toggle-thumb {
  transform: translateX(0);
  background: linear-gradient(180deg, rgba(42,109,245,0.95), rgba(24,77,189,0.95));
  box-shadow: 0 8px 18px rgba(42,109,245,0.22);
}

body.light-mode .topbar {
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

body.light-mode .card,
body.light-mode .hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.35));
  backdrop-filter: blur(6px);
  border-color: rgba(42,109,245,0.10);
  box-shadow: 0 18px 42px rgba(16,24,40,0.06);
}

body.light-mode .hero p,
body.light-mode .card p,
body.light-mode .section-head p,
body.light-mode .muted,
body.light-mode .small,
body.light-mode .brand-text span,
body.light-mode .metric span,
body.light-mode .lightbox-copy p,
body.light-mode .legal-modal-copy,
body.light-mode .legal-modal-copy p,
body.light-mode .legal-modal-copy li,
body.light-mode .notice-box,
body.light-mode .form-status,
body.light-mode .quicklink span,
body.light-mode .success-modal-card .muted,
body.light-mode .success-modal-card .small,
body.light-mode .portfolio-overlay p {
  color: #374151;
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode .brand-text strong,
body.light-mode .quicklink strong,
body.light-mode .portfolio-overlay h4,
body.light-mode .contact-info-block strong {
  color: #111827;
}

body.light-mode .nav-links a {
  color: #1f2937;
}

body.light-mode .nav-links a:hover,
body.light-mode .nav-links a:focus-visible {
  color: var(--accent-cold-dark);
}

body.light-mode .btn-primary,
body.light-mode .footer-link-btn,
body.light-mode .lightbox-close,
body.light-mode .portfolio-zoom {
  background: linear-gradient(180deg, var(--accent-cold), var(--accent-cold-dark));
  color: #ffffff;
  border-color: rgba(42,109,245,0.22);
  box-shadow: 0 12px 26px rgba(42,109,245,0.18);
}

body.light-mode .btn-secondary {
  background: #ffffff;
  border-color: rgba(42,109,245,0.18);
  color: var(--accent-cold-dark);
}

body.light-mode .contact-info-block,
body.light-mode .quicklink {
  border-color: rgba(42,109,245,0.14);
  background: rgba(42,109,245,0.04);
}

body.light-mode .quicklink:hover {
  border-color: rgba(42,109,245,0.28);
}

body.light-mode input,
body.light-mode textarea {
  background: #ffffff;
  color: #111827;
  border: 1px solid rgba(42,109,245,0.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

body.light-mode input::placeholder,
body.light-mode textarea::placeholder {
  color: #6b7280;
}

body.light-mode input:focus,
body.light-mode textarea:focus {
  outline: none;
  border-color: rgba(42,109,245,0.50);
  box-shadow: 0 0 0 4px rgba(42,109,245,0.12);
}

body.light-mode .captcha,
body.light-mode .notice-box {
  background: rgba(42,109,245,0.04);
  border-color: rgba(42,109,245,0.14);
  color: #374151;
}

body.light-mode .portfolio-card {
  background: #ffffff;
  border-color: rgba(42,109,245,0.12);
}

body.light-mode .portfolio-overlay {
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.88) 58%, rgba(255,255,255,0.97) 100%);
}

body.light-mode .lightbox-counter {
  border-color: rgba(42,109,245,0.16);
  color: #3f4b5d;
  background: rgba(42,109,245,0.05);
}

body.light-mode .hero-watermark {
  opacity: 0.12;
  width: min(60vw, 780px);
  filter: drop-shadow(0 0 22px rgba(42,109,245,0.32)) drop-shadow(0 0 64px rgba(42,109,245,0.18));
}

body.light-mode .hero-watermark img {
  filter: hue-rotate(188deg) saturate(2.1) brightness(0.98) contrast(1.12);
}

body.light-mode .brand img {
  filter: hue-rotate(188deg) saturate(2.1) brightness(0.98) contrast(1.12)
          drop-shadow(0 0 12px rgba(42,109,245,0.34))
          drop-shadow(0 0 26px rgba(42,109,245,0.22));
  mix-blend-mode: normal;
  opacity: 1;
}

body.light-mode .brand:hover img {
  filter: hue-rotate(188deg) saturate(2.25) brightness(0.98) contrast(1.14)
          drop-shadow(0 0 14px rgba(42,109,245,0.42))
          drop-shadow(0 0 30px rgba(42,109,245,0.28));
}

body.light-mode .eyebrow {
  background: rgba(42,109,245,0.08);
  color: #244ca8;
  border-color: rgba(42,109,245,0.18);
}

body.light-mode .tag {
  background: rgba(42,109,245,0.08);
  color: #1f4fb2;
  border-color: rgba(42,109,245,0.18);
}

body.light-mode .service-icon {
  background: linear-gradient(180deg, rgba(42,109,245,0.16), rgba(255,255,255,0.9));
  border-color: rgba(42,109,245,0.18);
  color: #1f4fb2;
}

body.light-mode .menu-toggle {
  border-color: rgba(0,0,0,0.12);
  background: rgba(17,17,17,0.04);
  color: #111827;
}

body.light-mode .mobile-dropdown-panel {
  background: rgba(255,255,255,0.98);
  border-color: rgba(0,0,0,0.08);
}

body.light-mode .mobile-dropdown-panel a {
  color: #111827;
}

body.light-mode .mobile-dropdown-panel a:hover,
body.light-mode .mobile-dropdown-panel a:focus-visible {
  background: rgba(42,109,245,0.10);
  color: var(--accent-cold-dark);
}

body.light-mode .legal-modal,
body.light-mode .success-modal {
  background: rgba(239,244,255,0.82);
  backdrop-filter: blur(10px);
}

body.light-mode .legal-modal-card,
body.light-mode .success-modal-card {
  background: #ffffff;
  border-color: rgba(42,109,245,0.16);
  box-shadow: 0 24px 60px rgba(42,109,245,0.12);
  color: #111827;
}

body.light-mode .legal-modal-head h3,
body.light-mode .success-modal-head h3,
body.light-mode .legal-modal-copy h4 {
  color: var(--accent-cold-dark);
}

@media (max-width: 980px) {
  .hero-grid,
  .grid,
  .footer-grid,
  .jobs,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .section-head > div { order: 1; }
  .section-head > p { order: 2; }

  .lightbox-meta {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .lightbox-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .topbar { overflow: visible; }

  .nav {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
  }

  .menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .nav-links { display: none !important; }
  #themeToggle { display: none !important; }

  .mobile-dropdown {
    display: none;
    width: 100%;
    margin-top: 0.75rem;
  }

  .mobile-dropdown.open { display: block; }

  .mobile-dropdown-panel {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(13,16,22,0.96);
    backdrop-filter: blur(18px);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
    padding: 0.5rem;
  }

  .mobile-dropdown-panel a {
    display: block;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    color: var(--white);
  }

  .mobile-theme-toggle {
    display: flex;
    justify-content: center;
    margin: 0.35rem 0 0.7rem;
  }

  #mobileThemeToggle {
    display: inline-flex !important;
    width: 70px;
    height: 38px;
    margin: 0;
  }

  .mobile-theme-toggle .theme-toggle-thumb {
    width: 28px;
    height: 28px;
  }

  body.light-mode .mobile-theme-toggle .theme-toggle-thumb {
    transform: translateX(0);
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 92px);
  }

  .brand img {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
  }

  .brand-text { min-width: 0; }
  .brand-text strong { font-size: 0.95rem; line-height: 1.15; }
  .brand-text span { font-size: 0.78rem; line-height: 1.2; }

  h1 { font-size: clamp(2rem, 11vw, 3rem); line-height: 1.02; }

  .hero {
    padding-top: 3.5rem;
    padding-bottom: 3rem;
  }

  .hero-grid,
  .metric-grid,
  .portfolio-grid,
  .grid,
  .footer-grid,
  .jobs,
  .form-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid { gap: 1.4rem; }
  .hero p { font-size: 1rem; max-width: 100%; }

  .hero-card,
  .card {
    padding: 1.25rem;
  }

  .hero-watermark {
    width: min(110vw, 520px);
    right: -9rem;
    top: 1.5rem;
    transform: translateY(0);
    opacity: 0.07;
  }

  body.light-mode .hero-watermark {
    width: min(110vw, 520px);
    right: -9rem;
    top: 1.5rem;
    transform: translateY(0);
    opacity: 0.09;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .section-head > div { order: 1; }
  .section-head > p { order: 2; }

  .hero-actions .btn,
  .btn { width: 100%; }

  .lightbox-meta {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .lightbox-actions { justify-content: flex-start; }
  .map-frame { min-height: 320px; }
}