/* ── Reset & Vars ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --mono:    'JetBrains Mono', monospace;
  --sans:    'Barlow', sans-serif;
}

/* Dark theme (default) */
:root, [data-theme="dark"] {
  --navy:    #0f1e35;
  --navy-md: #152c4a;
  --navy-lt: #1e3a5f;
  --blue:    #2563a8;
  --sky:     #4a9fd4;
  --ice:     #c8dff2;
  --white:   #eef4fb;
  --muted:   rgba(200,223,242,1);
  --border:  rgba(74,159,212,0.18);
  --border-h:rgba(74,159,212,0.45);
  --nav-bg:  rgba(15,30,53,0.85);
  --card-bg: rgba(255,255,255,0.03);
  --card-bg-h: rgba(74,159,212,0.05);
  --input-bg: rgba(255,255,255,0.04);
  --input-bg-focus: rgba(74,159,212,0.06);
  --placeholder: rgba(200,223,242,0.25);
  --img-brightness: .75;
  --img-saturate: .7;
  --img-brightness-h: .85;
  --img-saturate-h: 1;
  --outline-stroke: rgba(74,159,212,0.55);
  --grain-opacity: 0.022;
  --logo-opacity: .7;
  --footer-name: rgba(200,223,242,0.4);
  --footer-text: rgba(200,223,242,0.22);
  --glow-color: rgba(37,99,168,0.22);
  --glow-mid: rgba(37,99,168,0.05);
  --glow-page: rgba(37,99,168,0.15);
  --btn-text: #eef4fb;
}

/* Light theme */
[data-theme="light"] {
  --navy:    #f5f7fa;
  --navy-md: #eaeff5;
  --navy-lt: #dde5ee;
  --blue:    #1d5694;
  --sky:     #2878b5;
  --ice:     #1e3a5f;
  --white:   #1a2332;
  --muted:   rgba(30,58,95,1);
  --border:  rgba(30,58,95,0.12);
  --border-h:rgba(30,58,95,0.3);
  --nav-bg:  rgba(245,247,250,0.88);
  --card-bg: rgba(0,0,0,0.025);
  --card-bg-h: rgba(40,120,181,0.06);
  --input-bg: rgba(0,0,0,0.03);
  --input-bg-focus: rgba(40,120,181,0.06);
  --placeholder: rgba(30,58,95,0.3);
  --img-brightness: .95;
  --img-saturate: .9;
  --img-brightness-h: 1;
  --img-saturate-h: 1;
  --outline-stroke: rgba(30,58,95,0.3);
  --grain-opacity: 0.015;
  --logo-opacity: .85;
  --footer-name: rgba(30,58,95,0.45);
  --footer-text: rgba(30,58,95,0.3);
  --glow-color: rgba(40,120,181,0.1);
  --glow-mid: rgba(40,120,181,0.03);
  --glow-page: rgba(40,120,181,0.07);
  --btn-text: #ffffff;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --navy:    #f5f7fa;
    --navy-md: #eaeff5;
    --navy-lt: #dde5ee;
    --blue:    #1d5694;
    --sky:     #2878b5;
    --ice:     #1e3a5f;
    --white:   #1a2332;
    --muted:   rgba(30,58,95,1);
    --border:  rgba(30,58,95,0.12);
    --border-h:rgba(30,58,95,0.3);
    --nav-bg:  rgba(245,247,250,0.88);
    --card-bg: rgba(0,0,0,0.025);
    --card-bg-h: rgba(40,120,181,0.06);
    --input-bg: rgba(0,0,0,0.03);
    --input-bg-focus: rgba(40,120,181,0.06);
    --placeholder: rgba(30,58,95,0.3);
    --img-brightness: .95;
    --img-saturate: .9;
    --img-brightness-h: 1;
    --img-saturate-h: 1;
    --outline-stroke: rgba(30,58,95,0.3);
    --grain-opacity: 0.015;
    --logo-opacity: .85;
    --footer-name: rgba(30,58,95,0.45);
    --footer-text: rgba(30,58,95,0.3);
    --glow-color: rgba(40,120,181,0.1);
    --glow-mid: rgba(40,120,181,0.03);
    --glow-page: rgba(40,120,181,0.07);
    --btn-text: #ffffff;
  }
}

html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Grain */
body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: var(--grain-opacity);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Nav ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(24px, 5vw, 60px);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img {
  width: 38px; height: 38px;
  object-fit: contain;
}
.nav-logo-name {
  font-family: var(--sans); font-weight: 700;
  font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase;
}

.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a.active { color: var(--sky); }

.nav-cta {
  font-family: var(--mono) !important; font-size: 10.5px !important;
  letter-spacing: 0.16em !important; text-transform: uppercase !important;
  color: var(--sky) !important;
  border: 1px solid var(--border);
  padding: 7px 16px; border-radius: 2px;
  transition: border-color .2s, color .2s, background .2s !important;
}
.nav-cta:hover {
  border-color: var(--sky) !important;
  background: var(--card-bg-h) !important;
  color: var(--white) !important;
}

/* ── Page wrapper ── */
.page { padding-top: 80px; }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(80px,12vw,160px) clamp(24px,5vw,60px) clamp(60px,8vw,100px);
}

canvas.hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero-glow {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-55%, -50%);
  width: 900px; height: 900px;
  background: radial-gradient(ellipse, var(--glow-color) 0%, var(--glow-mid) 50%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 860px; }

.eyebrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: '//'; opacity: .5; }

h1.hero-title {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(44px, 7.5vw, 100px);
  line-height: 0.93; letter-spacing: -0.02em;
  text-transform: uppercase; color: var(--white);
}
h1.hero-title .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--outline-stroke);
}

.hero-divider {
  width: 64px; height: 2px;
  background: linear-gradient(to right, var(--sky), transparent);
  margin: 28px 0;
}

.hero-sub {
  font-size: clamp(16px, 1.9vw, 20px);
  font-weight: 300; line-height: 1.65;
  color: var(--muted); max-width: 520px;
}

.hero-actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: var(--btn-text);
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 2px;
  transition: background .2s, transform .1s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--sky); }
.btn-primary:active { transform: scale(0.97); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 2px;
  border: 1px solid var(--border);
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--sky); color: var(--white); }

/* ── Page hero (internal pages) ── */
.page-hero {
  padding: clamp(60px,8vw,100px) clamp(24px,5vw,60px) clamp(40px,5vw,64px);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-hero-glow {
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, var(--glow-page) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 0.95; letter-spacing: -0.02em;
  text-transform: uppercase;
}
.page-hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--outline-stroke);
}
.page-hero-sub {
  margin-top: 20px;
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 300; color: var(--muted); max-width: 540px; line-height: 1.65;
}

/* ── Sections ── */
section { padding: clamp(60px,8vw,100px) clamp(24px,5vw,60px); }
section + section { border-top: 1px solid var(--border); }

.section-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.section-label::before { content: '//'; opacity: .5; }

.section-title {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(28px, 3.5vw, 46px);
  letter-spacing: -0.01em; line-height: 1.1;
  margin-bottom: 16px; text-transform: uppercase;
}
.section-title .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--outline-stroke);
}
.section-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 300; color: var(--muted);
  max-width: 560px; line-height: 1.65;
  margin-bottom: 52px;
}

/* ── Cards grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 32px 28px;
  transition: border-color .25s, background .25s, transform .2s;
}
.card:hover {
  border-color: var(--border-h);
  background: var(--card-bg-h);
  transform: translateY(-2px);
}

.card-icon {
  width: 40px; height: 40px; margin-bottom: 20px;
  color: var(--sky);
}

.card-num {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; color: var(--sky); opacity: .45;
  margin-bottom: 14px;
}

.card h3 {
  font-family: var(--sans); font-weight: 600;
  font-size: 17px; letter-spacing: 0.02em;
  text-transform: uppercase; margin-bottom: 10px;
  color: var(--white);
}

.card p {
  font-size: 14px; font-weight: 300;
  color: var(--muted); line-height: 1.65;
}

/* ── Image cards ── */
.img-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.img-card {
  border: 1px solid var(--border);
  border-radius: 3px; overflow: hidden;
  transition: border-color .25s, transform .2s;
}
.img-card:hover { border-color: var(--border-h); transform: translateY(-3px); }
.img-card img { width: 100%; height: 220px; object-fit: cover; display: block; filter: brightness(var(--img-brightness)) saturate(var(--img-saturate)); transition: filter .3s; }
.img-card:hover img { filter: brightness(var(--img-brightness-h)) saturate(var(--img-saturate-h)); }
.img-card-body { padding: 24px 22px; }
.img-card-body h3 {
  font-family: var(--sans); font-weight: 600;
  font-size: 16px; letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 8px;
}
.img-card-body p { font-size: 14px; font-weight: 300; color: var(--muted); line-height: 1.6; }

/* ── Team cards ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
  gap: 24px;
}
.team-card {
  border: 1px solid var(--border); border-radius: 3px;
  overflow: hidden; transition: border-color .25s, transform .2s;
}
.team-card:hover { border-color: var(--border-h); transform: translateY(-3px); }
.team-card img { width: 100%; height: 260px; object-fit: cover; filter: brightness(var(--img-brightness)) saturate(var(--img-saturate)); transition: filter .3s; }
.team-card:hover img { filter: brightness(var(--img-brightness-h)) saturate(var(--img-saturate-h)); }
.team-card-body { padding: 22px 20px; }
.team-card-body h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.team-card-body .role {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 12px;
}
.team-card-body p { font-size: 13.5px; font-weight: 300; color: var(--muted); line-height: 1.6; }

/* ── Portfolio grid (full page) ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.portfolio-card {
  border: 1px solid var(--border);
  border-radius: 3px; overflow: hidden;
  transition: border-color .25s, transform .2s;
}
.portfolio-card:hover { border-color: var(--border-h); transform: translateY(-3px); }
.portfolio-card-img img {
  width: 100%; height: 240px; object-fit: cover; display: block;
  filter: brightness(var(--img-brightness)) saturate(var(--img-saturate)); transition: filter .3s;
}
.portfolio-card:hover .portfolio-card-img img { filter: brightness(var(--img-brightness-h)) saturate(var(--img-saturate-h)); }
.portfolio-card-body { padding: 26px 24px; }
.portfolio-card-body h3 {
  font-family: var(--sans); font-weight: 600;
  font-size: 17px; letter-spacing: 0.03em;
  text-transform: uppercase; margin-bottom: 10px;
}
.portfolio-card-body > p {
  font-size: 14px; font-weight: 300;
  color: var(--muted); line-height: 1.65; margin-bottom: 16px;
}
.portfolio-card-body .tags-row { margin-top: 0; margin-bottom: 16px; }
.portfolio-link {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sky); transition: color .2s;
}
.portfolio-link:hover { color: var(--white); }

/* ── Portfolio compact (home) ── */
.portfolio-compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.portfolio-compact-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px; align-items: center;
  border: 1px solid var(--border);
  border-radius: 3px; padding: 18px;
  transition: border-color .25s, background .25s, transform .2s;
}
.portfolio-compact-card:hover {
  border-color: var(--border-h);
  background: var(--card-bg-h);
  transform: translateY(-2px);
}
.portfolio-compact-img img {
  width: 100px; height: 72px; object-fit: cover;
  border-radius: 2px;
  filter: brightness(var(--img-brightness)) saturate(var(--img-saturate)); transition: filter .3s;
}
.portfolio-compact-card:hover .portfolio-compact-img img { filter: brightness(var(--img-brightness-h)) saturate(var(--img-saturate-h)); }
.portfolio-compact-body h3 {
  font-family: var(--sans); font-weight: 600;
  font-size: 14px; letter-spacing: 0.03em;
  text-transform: uppercase; margin-bottom: 4px;
}
.portfolio-compact-body > p {
  font-size: 13px; font-weight: 300;
  color: var(--muted); line-height: 1.55; margin-bottom: 8px;
}
.portfolio-compact-body .tags-row { margin-top: 0; }
.portfolio-compact-body .tag { font-size: 9px; padding: 3px 8px; }

/* ── Two-col layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.two-col.reverse .two-col-img { order: -1; }
.two-col-img img { width: 100%; border-radius: 3px; border: 1px solid var(--border); filter: brightness(var(--img-brightness)) saturate(var(--img-saturate)); }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px; align-items: start;
}
.contact-info { }
.contact-info-item { margin-bottom: 28px; }
.contact-info-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 6px;
}
.contact-info-value {
  font-size: 16px; font-weight: 300; color: var(--white);
}
.contact-info-value a { transition: color .2s; }
.contact-info-value a:hover { color: var(--sky); }

.contact-form { }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--sans); font-size: 15px; font-weight: 300;
  padding: 12px 16px; border-radius: 2px; outline: none;
  transition: border-color .2s, background .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--placeholder); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--sky);
  background: var(--input-bg-focus);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── CTA Band ── */
.cta-band {
  background: var(--navy-md);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(48px,6vw,80px) clamp(24px,5vw,60px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-band-text h2 {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(24px,3vw,36px);
  letter-spacing: -0.01em; text-transform: uppercase;
  margin-bottom: 8px;
}
.cta-band-text p { font-size: 15px; font-weight: 300; color: var(--muted); }

/* ── Tags row ── */
.tags-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--border);
  padding: 5px 11px; border-radius: 2px;
  transition: border-color .2s, color .2s;
}
.tag:hover { border-color: var(--sky); color: var(--sky); cursor: default; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: clamp(32px,4vw,48px) clamp(24px,5vw,60px);
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo img { width: 30px; height: 30px; object-fit: contain; opacity: var(--logo-opacity); }
.footer-logo-name {
  font-family: var(--sans); font-weight: 700;
  font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--footer-name);
}
.footer-right {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; color: var(--footer-text);
  line-height: 1.9; text-align: right;
}

/* ── Status badge ── */
.status-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sky); border: 1px solid var(--border);
  background: var(--card-bg-h);
  padding: 5px 12px; border-radius: 2px;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sky); animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

/* ── Divider line ── */
.h-divider {
  width: 64px; height: 2px;
  background: linear-gradient(to right, var(--sky), transparent);
  margin: 24px 0;
}

/* ── Theme toggle ── */
.theme-toggle {
  background: none; border: 1px solid var(--border);
  border-radius: 2px; padding: 6px 8px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: border-color .2s, color .2s;
  margin-left: 8px;
}
.theme-toggle:hover { border-color: var(--sky); color: var(--sky); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon,
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme]) .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: block; }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(22px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.anim-fade-up { animation: fadeUp .9s ease both; }
.anim-fade-up-1 { animation: fadeUp .9s ease both .1s; }
.anim-fade-up-2 { animation: fadeUp .9s ease both .22s; }
.anim-fade-up-3 { animation: fadeUp .9s ease both .34s; }
.anim-fade-up-4 { animation: fadeUp .9s ease both .46s; }
.anim-fade-up-5 { animation: fadeUp .9s ease both .58s; }

/* ── Language switcher ── */
.lang-switcher {
  display: flex; gap: 0; align-items: center;
  border: 1px solid var(--border);
  border-radius: 2px; overflow: hidden;
  margin-left: 4px;
}
.lang-link {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted); padding: 6px 10px;
  background: transparent;
  opacity: 0.45;
  transition: color .2s, background .2s, opacity .2s;
}
.lang-link + .lang-link { border-left: 1px solid var(--border); }
.lang-link:hover { color: var(--white); opacity: 0.8; }
.lang-link.active { color: var(--sky); opacity: 1; }

/* ── Nav controls wrapper (transparent on desktop) ── */
.nav-controls { display: contents; }

/* ── Language dropdown (mobile-only, matches theme toggle) ── */
.lang-dropdown { display: none; position: relative; }
.lang-dropdown-btn {
  background: none; border: 1px solid var(--border);
  border-radius: 2px; padding: 6px 8px;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  color: var(--muted); transition: border-color .2s, color .2s;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em;
}
.lang-dropdown-btn:hover { border-color: var(--sky); color: var(--sky); }
.lang-dropdown-btn svg { width: 16px; height: 16px; }
.lang-dropdown-menu {
  display: none; position: absolute; bottom: calc(100% + 6px); left: 0;
  background: var(--navy-md); border: 1px solid var(--border);
  border-radius: 2px; overflow: hidden; min-width: 100%;
  z-index: 10;
}
.lang-dropdown.open .lang-dropdown-menu { display: block; }
.lang-dropdown-menu a {
  display: block; padding: 8px 14px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; color: var(--muted);
  transition: color .2s, background .2s;
  border-bottom: none;
}
.lang-dropdown-menu a:hover { color: var(--white); background: var(--card-bg-h); }
.lang-dropdown-menu a.active { color: var(--sky); }

/* ── Hamburger toggle (hidden on desktop) ── */
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border);
  border-radius: 2px; padding: 8px 7px;
  cursor: pointer; flex-direction: column; gap: 4px;
  align-items: center; justify-content: center;
}
.nav-toggle-bar {
  display: block; width: 18px; height: 2px;
  background: var(--muted); border-radius: 1px;
  transition: transform .3s, opacity .3s;
}
.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Responsive ── */

/* Tablet — ≤1024px */
@media (max-width: 1024px) {
  .two-col { gap: 36px; }
  .contact-grid { gap: 36px; }
  .portfolio-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .cards-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .nav-links { gap: 20px; }
}

/* Small tablet / large phone — ≤800px */
@media (max-width: 800px) {
  /* Mobile nav */
  .nav-toggle { display: flex; }
  .site-nav { flex-wrap: wrap; padding: 14px clamp(16px, 4vw, 24px); }
  .nav-links {
    display: none; flex-direction: column; align-items: stretch;
    width: 100%; gap: 0;
    border-top: 1px solid var(--border);
    margin-top: 14px; padding-top: 14px;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links > a {
    padding: 12px 0; border-bottom: 1px solid var(--border);
    font-size: 12px;
  }
  .nav-links .nav-cta {
    border: none; border-bottom: 1px solid var(--border);
    padding: 12px 0 !important; border-radius: 0;
  }
  .nav-controls .lang-switcher { display: none; }
  .nav-controls .lang-dropdown { display: block; }
  .nav-controls .theme-toggle { margin-left: 0; }
  .nav-controls {
    display: flex; align-items: center; gap: 10px;
    padding-top: 14px; margin-top: 4px;
  }

  /* Layouts */
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .two-col.reverse .two-col-img { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .site-footer { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-right { text-align: left; }

  /* Spacing */
  section { padding: clamp(40px, 6vw, 64px) clamp(16px, 4vw, 32px); }
  .section-sub { margin-bottom: 32px; }
  .card { padding: 24px 20px; }
}

/* Phone — ≤560px */
@media (max-width: 560px) {
  /* Typography */
  body { font-size: 15px; }
  h1.hero-title { font-size: clamp(32px, 10vw, 52px); }
  .page-hero h1 { font-size: clamp(28px, 8vw, 44px); }
  .section-title { font-size: clamp(22px, 6vw, 32px); }
  .hero-sub { font-size: 15px; }
  .cta-band-text h2 { font-size: clamp(20px, 5vw, 28px); }

  /* Hero */
  .hero { min-height: auto; padding: 100px 20px 60px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { width: 100%; justify-content: center; }

  /* Grids → single column */
  .team-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-compact-card { grid-template-columns: 1fr; }
  .portfolio-compact-img img { width: 100%; height: 120px; }
  .img-cards-grid { grid-template-columns: 1fr; }

  /* Cards */
  .card { padding: 20px 16px; }
  .img-card img { height: 180px; }

  /* Touch-friendly targets */
  .btn-primary, .btn-outline { padding: 16px 24px; font-size: 11px; }
  .nav-cta { padding: 10px 16px !important; }
  .tag { padding: 6px 12px; }

  /* Page hero */
  .page-hero { padding: 48px 20px 32px; }
}
