/* Genie Solution Vietnam — dark aurora style system (per DESIGN.md) */
:root {
  --void: #0b0c0e;
  --abyss: #0e111b;
  --deep: #0d172b;
  --panel: #12244f;
  --blue: #2862d7;
  --signal: #305fbd;
  --violet: #625fff;
  --pink: #ff7dda;
  --lilac: #85a6e9;
  --text: #ffffff;
  --ash: #abaebb;
  --mist: #c7c9d1;
  --edge: #172540;
  --ink: #151e32;
  --hairline: #24375a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: rgba(0, 0, 0, 0.5) 0 4px 30px;
  --shadow-float: rgba(0, 0, 0, 0.34) 0 20px 35px, rgba(0, 0, 0, 0.25) 0 4px 13px;
  --maxw: 1200px;
  --gap-section: 112px;
  --display: "Figtree", "DM Sans", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background-color: var(--void);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Aurora atmosphere — fixed so it bleeds behind everything but only on hero region */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 22% -6%, rgba(98, 95, 255, 0.34) 0, transparent 60%),
    radial-gradient(40% 38% at 88% 4%, rgba(255, 125, 218, 0.20) 0, transparent 64%),
    radial-gradient(50% 40% at 50% 116%, rgba(48, 95, 189, 0.18) 0, transparent 62%),
    linear-gradient(180deg, var(--void) 0, var(--abyss) 30%, var(--void) 100%);
}

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

::selection { background: rgba(98, 95, 255, 0.4); color: #fff; }

:focus-visible {
  outline: 2px solid var(--lilac);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-shell { max-width: 1440px; margin: 0 auto; }

.section {
  width: min(var(--maxw), calc(100% - 48px));
  margin: 0 auto;
  padding: calc(var(--gap-section) / 2) 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 60;
  padding: 10px 18px;
  border-radius: 9999px;
  background: #fff;
  color: #050606;
  font-weight: 500;
}
.skip-link:focus { left: 16px; }

/* ---------- Navigation ---------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 14px 0;
  transition: padding 0.3s ease;
}

.nav {
  width: min(var(--maxw), calc(100% - 32px));
  min-height: 60px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 8px 8px 8px 18px;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.nav-wrap.is-scrolled .nav {
  background: rgba(11, 12, 14, 0.72);
  border-color: var(--edge);
  box-shadow: rgba(0, 0, 0, 0.45) 0 8px 30px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }

.brand-mark {
  width: auto;
  height: 42px;
  filter: drop-shadow(rgba(98, 95, 255, 0.35) 0 4px 14px);
}

.brand strong, .brand small { display: block; }
.brand strong { font: 600 16px/1 var(--display); letter-spacing: -0.02em; }
.brand small { margin-top: 3px; color: var(--ash); font-size: 12px; font-weight: 400; }

.menu {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
}
.menu a {
  position: relative;
  padding: 9px 14px;
  border-radius: 9999px;
  color: var(--ash);
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s ease, background 0.2s ease;
}
.menu a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.menu a.is-active { color: var(--text); background: rgba(133, 166, 233, 0.12); }

.nav-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.nav-cta, .btn.primary {
  color: #050606;
  background: #ffffff;
  border: 1px solid transparent;
}
.nav-cta:hover, .btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: rgba(255, 255, 255, 0.25) 0 8px 26px;
}
.btn.ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid #4a4f63;
}
.btn.ghost:hover { border-color: var(--lilac); background: rgba(133, 166, 233, 0.08); transform: translateY(-2px); }
.btn.accent {
  color: #fff;
  background: linear-gradient(90deg, #305fbd, #625fff);
  border: none;
}
.btn.accent:hover { transform: translateY(-2px); box-shadow: rgba(98, 95, 255, 0.4) 0 10px 30px; }
.btn .arr { transition: transform 0.2s ease; }
.btn:hover .arr { transform: translateX(3px); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--deep);
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; margin: 4px auto; background: #fff; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Typography ---------- */
.eyebrow, .case-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lilac);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--lilac), transparent);
}

h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.025em; }

h1 {
  max-width: 14ch;
  margin: 18px 0 24px;
  font-size: clamp(42px, 6vw, 66px);
  line-height: 1.02;
}
h2 { margin-bottom: 16px; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; }
h3 { margin-bottom: 10px; font: 600 20px/1.25 var(--display); letter-spacing: -0.02em; }

p { color: var(--mist); font-size: 16px; font-weight: 300; line-height: 1.6; }

.lead { font-size: 20px; line-height: 1.5; color: var(--mist); }

.grad-text {
  background: linear-gradient(100deg, #fff 10%, #85a6e9 55%, #625fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 56px;
  padding-top: 40px;
  padding-bottom: 64px;
}
.hero-copy { max-width: 640px; }
.hero-copy > p { max-width: 560px; }

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  background: rgba(18, 36, 79, 0.5);
  color: var(--mist);
  font-size: 13px;
  margin-bottom: 4px;
}
.pill-badge b {
  padding: 2px 9px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #305fbd, #625fff);
  color: #fff;
  font-weight: 500;
  font-size: 12px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 44px 0 0;
  padding: 0;
}
.hero-stats div {
  padding: 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(13, 23, 43, 0.6);
}
.hero-stats dt { font: 500 34px/1 var(--display); letter-spacing: -0.03em; }
.hero-stats dd { margin: 8px 0 0; color: var(--ash); font-size: 13px; line-height: 1.4; }

/* Hero visual */
.hero-visual { position: relative; min-height: 540px; }
.main-window {
  position: absolute;
  inset: 24px 0 auto 0;
  padding: 16px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: rgba(13, 23, 43, 0.86);
  box-shadow: var(--shadow-float);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.5s ease;
}
.hero-visual:hover .main-window { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }

.window-bar { display: flex; align-items: center; gap: 8px; height: 30px; color: var(--ash); font: 13px/1 var(--mono); }
.window-bar i { width: 9px; height: 9px; border-radius: 999px; background: #3c3f44; }
.window-bar i:nth-child(1) { background: #ff7dda; }
.window-bar i:nth-child(2) { background: #85a6e9; }
.window-bar i:nth-child(3) { background: #28b6ff; }
.window-bar strong { margin-left: 4px; font-weight: 400; }

.code-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 12px; margin: 6px 0 12px; }
.code-panel, .metric-panel { padding: 16px; border: 1px solid var(--ink); border-radius: var(--radius-sm); background: #0e111b; }
.code-panel small, .metric-panel span, .floating-card span { color: var(--ash); font-size: 12px; }
.code-panel p { margin: 9px 0 0; color: var(--mist); font: 13px/1.5 var(--mono); }
.code-panel b { color: var(--pink); font-weight: 400; }
.metric-panel { display: flex; flex-direction: column; justify-content: center; }
.metric-panel strong { display: block; margin: 12px 0; font: 500 44px/1 var(--display); }
.meter { height: 8px; overflow: hidden; border-radius: 9999px; background: #151e32; }
.meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #305fbd, #625fff, #ff7dda); transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1); }
.is-visible .meter i { width: 96%; }
.main-window > img { width: 100%; height: 280px; object-fit: cover; border: 1px solid var(--ink); border-radius: var(--radius-sm); opacity: 0.82; filter: saturate(0.85) contrast(1.05); }

.floating-card {
  position: absolute;
  width: min(280px, 46%);
  padding: 16px 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(18, 36, 79, 0.92);
  box-shadow: var(--shadow-float);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.floating-card strong { display: block; margin-top: 6px; font-size: 14px; line-height: 1.4; }
.card-a { right: -8px; bottom: 96px; animation: float 6s ease-in-out infinite; }
.card-b { left: 6px; bottom: 8px; animation: float 6s ease-in-out infinite 1.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Logo marquee ---------- */
.logos { padding-top: 24px; }
.logos-head { text-align: center; margin-bottom: 28px; color: var(--ash); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 14px; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  padding: 13px 22px;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  background: rgba(20, 38, 74, 0.55);
  color: #e7e9f1;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.logo-chip img { width: 27px; height: 27px; color: var(--brand, #fff); }
.logo-chip:hover { border-color: var(--lilac); background: rgba(30, 53, 99, 0.75); transform: translateY(-2px); }

/* ---------- Section headings ---------- */
.section-heading { max-width: 720px; margin-bottom: 44px; }
.section-lede { margin-top: 14px; color: var(--mist); font-size: 15px; line-height: 1.6; max-width: 56ch; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading.center .eyebrow::before { display: none; }
.section-heading.center .eyebrow { justify-content: center; }

.intro { max-width: 860px; margin-inline: auto; text-align: center; }
.intro .lead { margin-top: 8px; }

/* ---------- Cards / grids ---------- */
.service-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }

.feature-card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: rgba(13, 23, 43, 0.55);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 0 0, rgba(98, 95, 255, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--hairline); background: rgba(18, 36, 79, 0.5); }
.feature-card:hover::after { opacity: 1; }
.feature-card .icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(98, 95, 255, 0.22), rgba(18, 36, 79, 0.8));
  border: 1px solid var(--hairline);
  color: var(--lilac);
  font: 500 13px/1 var(--mono);
}
.feature-card .tags { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.feature-card .tags span { font-size: 12px; color: var(--ash); padding: 3px 10px; border: 1px solid var(--ink); border-radius: 9999px; }

/* Stack band */
.stack-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  padding: 40px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(18, 36, 79, 0.85), rgba(13, 23, 43, 0.85));
  box-shadow: var(--shadow);
}
.tech-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 9px 11px;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  background: rgba(20, 38, 74, 0.5);
  color: #e7e9f1;
  font-size: 14px;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.tech-chip img { width: 20px; height: 20px; color: var(--brand, #fff); }
.tech-chip:hover { border-color: var(--lilac); background: rgba(30, 53, 99, 0.7); transform: translateY(-2px); }

.tag-cloud, .domain-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud span, .domain-list span {
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  color: var(--mist);
  background: rgba(13, 23, 43, 0.6);
  font-size: 13px;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.tag-cloud span:hover, .domain-list span:hover { color: #fff; border-color: var(--lilac); transform: translateY(-2px); }

/* Process timeline */
.timeline { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.timeline-item {
  position: relative;
  padding: 26px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: rgba(13, 23, 43, 0.55);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.timeline-item:hover { transform: translateY(-6px); border-color: var(--hairline); }
.timeline-item .step {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 22px;
  border-radius: 12px; color: #050606;
  background: linear-gradient(135deg, #fff, #85a6e9);
  font: 600 16px/1 var(--display);
}

/* Showcase */
.case-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.case-card {
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: rgba(13, 23, 43, 0.6);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.case-card:hover { transform: translateY(-6px); border-color: var(--hairline); }
.case-card.highlight {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: linear-gradient(135deg, rgba(18, 36, 79, 0.9), rgba(13, 23, 43, 0.9));
}
.case-media { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--abyss); }
.case-media .window-bar { flex: 0 0 auto; padding: 0 14px; background: rgba(13, 23, 43, 0.92); border-bottom: 1px solid var(--ink); }
.case-media img {
  flex: 1 1 auto;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top center;
  background: #0a1120;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: saturate(0.8) contrast(1.08) brightness(0.96);
}
.case-media::after {
  content: "";
  position: absolute;
  inset: 30px 0 0 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 17, 32, 0.4) 0%, rgba(10, 17, 32, 0) 16%, rgba(10, 17, 32, 0) 74%, rgba(10, 17, 32, 0.5) 100%);
}
.case-card.highlight .case-media img { height: 100%; min-height: 350px; }
.case-card:hover .case-media img { transform: scale(1.05); filter: saturate(0.95) contrast(1.05) brightness(1); }
.case-body { padding: 26px; }
.case-body ul { margin: 18px 0 0; padding-left: 18px; color: var(--mist); line-height: 1.6; font-size: 14px; }
.case-problem, .case-solution {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.02);
}
.case-problem p, .case-solution p { margin: 6px 0 0; color: var(--mist); line-height: 1.6; font-size: 14px; }
.case-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.case-label.is-problem { color: var(--pink); }
.case-label.is-problem::before { content: "—"; }
.case-label.is-solution { color: var(--lilac); }
.case-label.is-solution::before { content: "✓"; }
.case-meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.case-meta span { font-size: 12px; color: var(--ash); padding: 3px 10px; border: 1px solid var(--ink); border-radius: 9999px; }

/* Team */
.team-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.person {
  padding: 24px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: rgba(13, 23, 43, 0.55);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.person:hover { transform: translateY(-6px); border-color: var(--hairline); }
.person img {
  width: 84px; height: 84px; margin-bottom: 20px;
  border: 1px solid var(--hairline); border-radius: 16px;
  object-fit: cover; background: #c7c9d1;
}
.person .role { color: var(--lilac); font-size: 13px; font-weight: 500; margin-bottom: 6px; display: block; }

/* Domains */
.domains { max-width: var(--maxw); }
.domains-inner {
  padding: 40px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(13, 23, 43, 0.55);
  box-shadow: var(--shadow);
}

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 440px; gap: 32px; align-items: stretch; }
.contact-card {
  padding: 32px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(18, 36, 79, 0.92), rgba(13, 23, 43, 0.92));
  box-shadow: var(--shadow);
}
.contact-card .mail { display: block; margin-bottom: 18px; color: #fff; font: 500 22px/1.25 var(--display); overflow-wrap: anywhere; }
.contact-card .mail:hover { color: var(--lilac); }
.contact-card .row { display: flex; gap: 10px; margin-bottom: 12px; color: var(--mist); font-size: 14px; line-height: 1.5; }
.contact-card .row svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; color: var(--lilac); }
.contact-card .btn { margin-top: 14px; width: 100%; }

/* Footer */
.footer {
  width: min(var(--maxw), calc(100% - 48px));
  margin: 40px auto 0;
  padding: 32px 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ash);
  border-top: 1px solid var(--ink);
}
.footer-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-brand img { height: 30px; width: auto; opacity: 0.9; }
.footer p { margin: 0; font-size: 14px; }
.footer a:hover { color: var(--text); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.4s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  :root { --gap-section: 88px; }
  .section { width: min(100% - 40px, 760px); }
  .nav { grid-template-columns: auto 1fr auto; padding: 8px 8px 8px 14px; }
  .menu, .nav > .nav-cta { display: none; }
  .nav-toggle { display: block; justify-self: end; }
  .nav.is-open { position: relative; }
  .nav.is-open .menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--edge);
    border-radius: var(--radius);
    background: rgba(11, 12, 14, 0.96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
  }
  .nav.is-open .menu a { padding: 13px 14px; }
  .hero, .stack-band, .case-card.highlight, .contact { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 24px; gap: 40px; }
  .hero-visual { min-height: 500px; }
  .service-grid, .timeline, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .case-card.highlight .case-media img { min-height: 280px; }
}

@media (max-width: 640px) {
  .section { width: calc(100% - 32px); }
  h1 { font-size: 40px; }
  .lead, .hero-copy > p { font-size: 17px; }
  .hero-stats { grid-template-columns: 1fr; }
  .service-grid, .timeline, .case-grid, .team-grid { grid-template-columns: 1fr; }
  .stack-band, .domains-inner, .contact-card { padding: 26px; }
  .hero-visual { min-height: 460px; }
  .code-grid { grid-template-columns: 1fr; }
  .metric-panel { display: none; }
  .main-window > img { height: 230px; }
  .floating-card { width: 80%; }
  .card-a { right: 0; bottom: 70px; }
  .card-b { left: 0; bottom: 0; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .main-window { transform: none; }
}
