/* Flex Studio - all styling. Colours are tokens on :root; dark is the only theme.
   --accent (#39FF14, neon green) is for fills, icons and text on dark.
   --accent-2 (#196A0B, office green) is for borders, glows and hover fills only:
   it is too dark to be readable as text on black. */

:root {
  --bg: #050605;
  --bg-alt: #090c09;
  --surface: #0d110d;
  --surface-2: #121812;
  --border: #1d261d;
  --text: #f2f5f2;
  --muted: #a3ada3;
  --accent: #39ff14;
  --accent-2: #196a0b;
  --accent-ink: #050605;
  --glow: rgba(57, 255, 20, 0.35);
  --gutter: 16px;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 { line-height: 1.1; margin: 0 0 0.5em; font-weight: 900; letter-spacing: -0.02em; }
h1 { font-size: clamp(3rem, 10vw, 6.5rem); text-transform: uppercase; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.15rem; letter-spacing: 0; }

p { margin: 0 0 1em; }

.accent { color: var(--accent); }
.muted { color: var(--muted); }

.wrap {
  width: min(1120px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
/* Translucent so the speck layer behind the page shows through */
.section-alt { background: rgba(9, 12, 9, 0.72); border-block: 1px solid var(--border); }

/* Faint green grid behind a section */
.grid-bg {
  background-image:
    linear-gradient(rgba(57, 255, 20, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head p:last-child { color: var(--muted); margin: 0; }

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: var(--gutter); background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 99; }

/* Buttons - square corners on purpose */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px var(--glow); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn-ghost { background: rgba(5, 6, 5, 0.55); color: var(--text); border-color: rgba(242, 245, 242, 0.25); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(25, 106, 11, 0.35); box-shadow: none; }
.btn-small { padding: 9px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* Header */
/* Fixed header: see-through over the hero, solid once the page scrolls (.is-scrolled from main.js) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(5, 6, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.js .site-header:not(.is-scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(57, 255, 20, 0.12), 0 10px 30px rgba(0, 0, 0, 0.5); }
.nav { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand img { filter: drop-shadow(0 0 8px rgba(57, 255, 20, 0.35)); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--accent); }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--text); transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero: cover art behind, text in the lower part so the logo in the art stays visible */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  padding: 120px 0 clamp(56px, 8vw, 96px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
}
/* The art fills the top of the hero only, so the logo in it sits above the heading */
.hero-bg {
  position: absolute;
  inset: 0 0 30% 0;
  z-index: -2;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(5, 6, 5, 0.35) 0%, rgba(5, 6, 5, 0.05) 25%, rgba(5, 6, 5, 0.35) 52%, var(--bg) 74%),
    radial-gradient(120% 70% at 50% 100%, rgba(25, 106, 11, 0.25), transparent 60%);
}
.hero-inner { max-width: 860px; }
.hero h1 { margin-bottom: 0.15em; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6); }
.hero h1 .accent { text-shadow: 0 0 30px rgba(57, 255, 20, 0.45); }
.lead {
  color: var(--text);
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight: 500;
  margin: 0 auto 2rem;
  min-height: 1.6em;
}
.rotator { color: var(--accent); font-weight: 800; }
.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 3px;
  vertical-align: -0.15em;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Floating sparks (spans added by main.js) */
.sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sparks span {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  background: var(--accent);
  box-shadow: 0 0 10px 2px var(--glow);
  opacity: 0;
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.9; }
  80% { opacity: 0.6; }
  100% { transform: translateY(-90vh); opacity: 0; }
}

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.services-grid { grid-template-columns: repeat(2, 1fr); }
.team-grid { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
/* Neon corner notch, echoes the angular logo */
.card::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 18px;
  height: 18px;
  background: linear-gradient(225deg, var(--accent) 50%, transparent 50%);
  opacity: 0.85;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-2);
  box-shadow: 0 14px 40px rgba(25, 106, 11, 0.3);
}

.service { padding: 30px; }
.service .icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid var(--accent-2);
  color: var(--accent);
  margin-bottom: 20px;
}
.service .icon svg { width: 24px; height: 24px; }
.service p { color: var(--muted); margin: 0; }

.member { padding: 28px 20px; text-align: center; }
.avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(57, 255, 20, 0.14), var(--bg) 70%);
  border: 1px solid var(--accent-2);
  overflow: hidden;
}
.avatar img { opacity: 0.55; }
.avatar img.photo { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.member h3 { margin-bottom: 4px; }
.member p { color: var(--accent); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin: 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.contact-icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid var(--accent-2);
  color: var(--accent);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-item .label { display: block; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }
.contact-item a, .contact-item .value { font-weight: 800; text-decoration: none; word-break: break-word; }
.contact-item a { color: var(--accent); }
.contact-item a:hover { text-decoration: underline; }

.contact-form {
  display: grid;
  gap: 8px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.contact-form label { font-weight: 700; font-size: 0.9rem; margin-top: 8px; }
.optional { color: var(--muted); font-weight: 400; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 0;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #6c766c; }
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.15);
  outline: none;
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { margin-top: 14px; }
.form-status { margin: 8px 0 0; color: var(--muted); font-size: 0.95rem; min-height: 1.5em; }
.form-status.ok { color: var(--accent); }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; background: rgba(5, 6, 5, 0.8); }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 40px;
  align-items: center;
}
.footer-inner .brand { grid-column: 1; grid-row: 1; }
.footer-inner nav { display: flex; gap: 24px; grid-column: 2; grid-row: 1; justify-self: end; }
.footer-inner nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.footer-inner nav a:hover { color: var(--accent); }
.copy {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 8px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* Simple inner pages (partner, 404) */
.page-hero {
  position: relative;
  padding: clamp(96px, 14vw, 160px) 0 clamp(56px, 8vw, 88px);
  text-align: center;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(57, 255, 20, 0.14), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); }
.page-hero .lead { color: var(--muted); max-width: 620px; }
.back-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin: 0 auto 24px;
}
.back-link:hover { color: var(--accent); }

/* ===================== Effects ===================== */

/* Page layers: speck canvas and cursor glow sit behind the content */
.specks, .cursor-glow { position: fixed; pointer-events: none; z-index: 0; }
.specks { inset: 0; }
.cursor-glow {
  top: 0;
  left: 0;
  width: 640px;
  height: 640px;
  margin: -320px 0 0 -320px;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.075), transparent 62%);
  will-change: transform;
}
main, .site-footer { position: relative; z-index: 1; }
main { overflow-x: clip; }

/* Scroll progress bar */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* Hero entrance, staggered */
.js .hero-inner > * { opacity: 0; animation: fade-up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.js .hero-inner > :nth-child(1) { animation-delay: 0.15s; }
.js .hero-inner > :nth-child(2) { animation-delay: 0.3s; }
.js .hero-inner > :nth-child(3) { animation-delay: 0.5s; }
.js .hero-inner > :nth-child(4) { animation-delay: 0.7s; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
.hero-bg { will-change: transform; }
.js .hero-bg img { animation: hero-zoom 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes hero-zoom { from { transform: scale(1.12); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Neon gradient running through "Flex" */
.hero h1 .shimmer {
  background: linear-gradient(100deg, #39ff14 0%, #39ff14 35%, #d9ffcc 50%, #39ff14 65%, #1fbf05 85%, #39ff14 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 22px rgba(57, 255, 20, 0.45));
  animation: shimmer 4.5s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }

/* Short RGB-split glitch on "Studio" every few seconds */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.glitch::before { color: var(--accent); animation: glitch-a 5s infinite steps(1); }
.glitch::after { color: #ff2bd6; animation: glitch-b 5s infinite steps(1); mix-blend-mode: screen; }
@keyframes glitch-a {
  0%, 88%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
  89% { opacity: 0.9; transform: translate(-4px, 1px); clip-path: inset(10% 0 55% 0); }
  91% { opacity: 0.9; transform: translate(3px, -2px); clip-path: inset(60% 0 8% 0); }
  93% { opacity: 0.9; transform: translate(-2px, 0); clip-path: inset(30% 0 40% 0); }
  95% { opacity: 0; }
}
@keyframes glitch-b {
  0%, 89%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
  90% { opacity: 0.7; transform: translate(4px, -1px); clip-path: inset(45% 0 30% 0); }
  92% { opacity: 0.7; transform: translate(-3px, 2px); clip-path: inset(5% 0 70% 0); }
  94% { opacity: 0; }
}

/* Bouncing scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  margin-left: -20px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--accent);
  opacity: 0.8;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* Stats strip with count-up numbers */
.stats {
  position: relative;
  padding: clamp(48px, 7vw, 80px) 0;
  background: rgba(9, 12, 9, 0.6);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
/* A light that sweeps along the top edge */
.stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: sweep 4s ease-in-out infinite;
}
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(440%); } }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(57, 255, 20, 0.06);
  border: 1px solid var(--accent-2);
  box-shadow: 0 0 24px rgba(57, 255, 20, 0.12), inset 0 0 14px rgba(57, 255, 20, 0.08);
}
.stat-icon svg { width: 26px; height: 26px; }
.stat-num {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 28px rgba(57, 255, 20, 0.35);
}
.stat-label { margin-top: 10px; color: var(--muted); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }

/* Moving text bands */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 16px 0;
  background: var(--accent);
  color: var(--accent-ink);
  transform: rotate(-1.5deg) scale(1.03);
  margin: 28px 0;
  box-shadow: 0 0 40px rgba(57, 255, 20, 0.3);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee span {
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee i { flex: none; width: 12px; height: 12px; background: currentColor; transform: rotate(45deg); }
.marquee-reverse {
  background: transparent;
  color: var(--accent);
  transform: rotate(1.5deg) scale(1.03);
  border-block: 1px solid var(--accent-2);
  box-shadow: none;
}
.marquee-reverse .marquee-track { animation-direction: reverse; animation-duration: 40s; }
.marquee-reverse span { color: transparent; -webkit-text-stroke: 1px var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Floating angular shards inside some sections (spans added by main.js) */
.shards { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
[data-shards] > .wrap { position: relative; z-index: 1; }
.shards span {
  position: absolute;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
  opacity: 0.5;
  animation: drift ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0) rotate(var(--r0, 0deg)); }
  to { transform: translate(var(--dx, 20px), var(--dy, -40px)) rotate(var(--r1, 40deg)); }
}

/* Card spotlight that follows the mouse (--mx/--my set by main.js) */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(57, 255, 20, 0.13), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover::after { opacity: 1; }
.card { transform-style: preserve-3d; will-change: transform; }
.card:hover .icon, .card:hover .avatar { box-shadow: 0 0 24px rgba(57, 255, 20, 0.35); border-color: var(--accent); }
.service .icon, .avatar { transition: box-shadow 0.3s ease, border-color 0.3s ease; }

/* Light sweep across buttons on hover */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn:hover::after { animation: btn-shine 0.7s ease; }
.btn-ghost::after { background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.35), transparent); }
@keyframes btn-shine { to { left: 130%; } }

/* Headings: accent words glow softly */
h2 .accent { text-shadow: 0 0 24px rgba(57, 255, 20, 0.35); }

/* Reveal on scroll (only when JS is running, so content never stays hidden) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.settled { transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }

/* Reduced motion (also Windows with "Animation effects" off): keep the effects, drop only the
   large movements. Parallax and card tilt are skipped in main.js. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glitch::before, .glitch::after { animation: none; }
  .js .hero-bg img { animation: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .menu-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    margin: 0;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 16px var(--gutter); border-top: 1px solid var(--border); }
  .services-grid { grid-template-columns: 1fr; }
  .hero { min-height: 82vh; }
  .hero-bg img { object-position: center 30%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner nav, .footer-inner .brand { grid-column: 1; grid-row: auto; justify-self: start; }
}

@media (max-width: 480px) {
  .stats-grid { gap: 8px; }
  .stat-icon { width: 46px; height: 46px; }
  .stat-num { font-size: 2rem; }
  .stat-label { font-size: 0.7rem; letter-spacing: 0.08em; }
  .marquee { padding: 12px 0; margin: 20px 0; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .member { padding: 22px 12px; }
  .avatar { width: 72px; height: 72px; }
  .contact-form, .service { padding: 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
}
