/* ============================================================
   Mega Consultants — modern dark theme
   ============================================================ */

:root {
  --bg: #05080f;
  --bg-2: #0a101b;
  --surface: #0d1524;
  --surface-2: #101a2c;
  --line: rgba(148, 178, 224, 0.14);
  --line-strong: rgba(148, 178, 224, 0.28);

  --text: #e9eef8;
  --muted: #97a5be;
  --muted-2: #6d7c96;

  --amber: #ffb224;
  --amber-2: #ff8c42;
  --cyan: #37c8f2;
  --teal: #2dd4bf;

  --grad: linear-gradient(120deg, #ffd166 0%, #ff8c42 100%);
  --grad-cool: linear-gradient(135deg, #37c8f2 0%, #2dd4bf 100%);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.65);
  --maxw: 1180px;

  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); background: var(--bg); }

body {
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(255, 178, 36, 0.3); color: #fff; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c2940; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #2a3b5c; }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(var(--maxw), 92%); margin-inline: auto; }

/* ---------- three.js HDR background ---------- */
#bg3d {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
#bg3d canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.5;
}
#bg3d.bg-fallback { display: none; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .kicker { margin-bottom: 16px; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.75rem); margin-bottom: 16px; }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 620px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--grad);
  color: #191105;
  box-shadow: 0 10px 30px -10px rgba(255, 162, 60, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(255, 162, 60, 0.7); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }

.btn-lg { padding: 0.95rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 42px; width: auto; display: block; }
.site-footer .brand-logo { height: 46px; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--grad);
}

.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.lang-toggle:hover { color: var(--amber); border-color: var(--amber); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 80px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 170, 215, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 170, 215, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 30%, transparent 75%);
}

.hero-glow {
  position: absolute;
  width: 900px;
  height: 560px;
  top: -140px;
  right: -220px;
  background: radial-gradient(closest-side, rgba(255, 178, 36, 0.14), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-glow::after {
  content: "";
  position: absolute;
  inset: 40% 0 0 40%;
  background: radial-gradient(closest-side, rgba(55, 200, 242, 0.12), transparent 70%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(13, 21, 36, 0.6);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 28px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(45, 212, 191, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 5.6vw, 4.3rem);
  margin-bottom: 22px;
}
.hero-title .line-1 { display: block; }

.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 42px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
  max-width: 640px;
}
.stat dt {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 4px;
}
.stat dd {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

/* hero art */
.hero-art { position: relative; display: flex; justify-content: center; align-items: center; }

.art-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(148, 178, 224, 0.18);
  pointer-events: none;
}
.orbit-1 { width: min(540px, 88vw); aspect-ratio: 1; animation: spin 40s linear infinite; }
.orbit-2 {
  width: min(680px, 112vw);
  aspect-ratio: 1;
  border-style: solid;
  border-color: rgba(148, 178, 224, 0.07);
  animation: spin 60s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-photo {
  position: relative;
  width: min(470px, 94%);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 178, 36, 0.06), 0 0 120px -30px rgba(255, 178, 36, 0.35);
  aspect-ratio: 1 / 1;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(5, 8, 15, 0) 55%, rgba(5, 8, 15, 0.85) 100%);
  pointer-events: none;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.photo-chip {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 12, 22, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.chip-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #191105;
  background: var(--grad);
}
.chip-icon svg { width: 18px; height: 18px; }
.photo-chip strong { display: block; font-family: var(--font-display); font-size: 0.9rem; line-height: 1.2; }
.photo-chip small { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}
.marquee-track i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   CLIENTS
   ============================================================ */
.clients { background: rgba(5, 8, 15, 0.66); }

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.client-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 92px;
  padding: 16px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 178, 224, 0.22);
  background: #f2f5fa;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.client-tile:hover {
  transform: translateY(-4px);
  border-color: var(--amber);
  box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 0.7);
}
.client-tile img {
  max-height: 34px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1) opacity(0.8);
  transition: filter 0.3s ease, transform 0.3s ease;
}
.client-tile:hover img {
  filter: grayscale(0) opacity(1);
  transform: scale(1.05);
}
/* white logo (e.g. CSE) rendered dark on the light tile */
.client-tile img.invert {
  filter: invert(1) grayscale(1) opacity(0.85);
}
.client-tile:hover img.invert {
  filter: invert(1);
}
.client-tile strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-align: center;
  color: #26344e;
}
.client-tile span {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7c8aa4;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { background: rgba(10, 16, 27, 0.72); }

/* featured showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}

.showcase-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  background: var(--surface);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.showcase-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 178, 36, 0.4);
  box-shadow: var(--shadow);
}
.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) brightness(0.85);
  transition: transform 0.6s cubic-bezier(0.2, 0.65, 0.3, 1), filter 0.4s ease;
}
.showcase-card:hover img { transform: scale(1.06); filter: saturate(1.05) brightness(1); }

.showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(195deg, rgba(5, 8, 15, 0) 42%, rgba(5, 8, 15, 0.92) 100%);
  pointer-events: none;
}
.showcase-link { display: block; height: 100%; }
.showcase-link img { display: block; }

.showcase-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #191105;
  background: var(--grad);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 8px 20px -6px rgba(255, 162, 60, 0.6);
}
.showcase-arrow svg { width: 18px; height: 18px; }
.showcase-card:hover .showcase-arrow { opacity: 1; transform: translateY(0); }

.showcase-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 46px 18px 16px;
}
.showcase-chip {
  display: inline-block;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #191105;
  background: var(--grad);
  margin-bottom: 10px;
}
.showcase-body h3 {
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: 4px;
}
.showcase-client { font-size: 0.82rem; color: var(--muted); }

/* tabs */
.proj-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.proj-tab {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.proj-tab:hover { color: var(--text); border-color: var(--amber); transform: translateY(-1px); }
.proj-tab.active {
  background: var(--grad);
  border-color: transparent;
  color: #191105;
  box-shadow: 0 8px 22px -8px rgba(255, 162, 60, 0.55);
}

/* project list rows */
.proj-list { display: flex; flex-direction: column; gap: 12px; }

.proj-group-head {
  font-size: 1.04rem;
  color: var(--amber);
  margin: 26px 0 4px;
}
.proj-group-head:first-child { margin-top: 0; }
.proj-group-head span { font-size: 0.82rem; color: var(--muted-2); font-weight: 600; }

.proj-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.proj-row:hover {
  border-color: rgba(255, 178, 36, 0.35);
  transform: translateX(4px);
  box-shadow: var(--shadow);
}
.proj-main h4 { font-size: 1rem; line-height: 1.3; margin-bottom: 5px; }
.proj-client { font-size: 0.85rem; color: var(--cyan); margin-bottom: 4px; }
.proj-client-label { color: var(--muted-2); }
.proj-scope { font-size: 0.85rem; color: var(--muted); }

.proj-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.chip.year {
  color: var(--muted);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}
.chip.status.present { color: var(--amber); background: rgba(255, 178, 36, 0.1); border: 1px solid rgba(255, 178, 36, 0.3); }
.chip.status.complete { color: var(--teal); background: rgba(45, 212, 191, 0.09); border: 1px solid rgba(45, 212, 191, 0.3); }

/* staff experience */
.staff-panel {
  margin-top: 44px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.staff-title { font-size: 1.15rem; margin-bottom: 4px; }
.staff-sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 22px; }

.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
}
.staff-grid li {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: border-color 0.25s ease;
}
.staff-grid li:hover { border-color: rgba(55, 200, 242, 0.35); }
.staff-grid h4 { font-size: 0.92rem; line-height: 1.35; margin-bottom: 4px; }
.staff-meta { font-size: 0.82rem; color: var(--muted-2); }

.projects-note { margin-top: 28px; text-align: center; font-size: 0.82rem; color: var(--muted-2); }

/* ============================================================
   PROJECT DETAIL PAGE
   ============================================================ */
.project-detail { padding-top: calc(var(--header-h) + 44px); padding-bottom: clamp(64px, 8vw, 100px); }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted-2);
  margin-bottom: 26px;
}
.breadcrumb a { color: var(--amber); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--muted-2); }

.project-hero { margin-bottom: 44px; }
.project-hero .showcase-chip { margin-bottom: 16px; }
.project-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  max-width: 820px;
  margin-bottom: 12px;
}
.project-client { font-size: 1rem; color: var(--cyan); margin-bottom: 16px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.chip.location { color: var(--cyan); background: rgba(55, 200, 242, 0.09); border: 1px solid rgba(55, 200, 242, 0.3); }

.project-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.project-main h2 {
  font-size: 1.35rem;
  margin: 32px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.project-main h2:first-child { margin-top: 0; }
.project-main > p { color: var(--muted); font-size: 1.02rem; line-height: 1.75; }

.project-scope { display: flex; flex-direction: column; gap: 12px; }
.project-scope li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.95rem;
  color: var(--muted);
}
.project-scope svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--teal);
}

.tech-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-chips li {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(55, 200, 242, 0.3);
  background: rgba(55, 200, 242, 0.08);
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 500;
}

.project-aside .project-gallery {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gallery-fig {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.gallery-fig img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.gallery-fig figcaption {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.project-related { margin-top: 56px; }
.project-related h2 { font-size: 1.5rem; margin-bottom: 22px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 178, 36, 0.4);
  box-shadow: var(--shadow);
}
.related-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.related-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
}
.related-chip {
  align-self: flex-start;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #191105;
  background: var(--grad);
}
.related-body strong { font-family: var(--font-display); font-size: 0.98rem; line-height: 1.3; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-weight: 600;
  font-size: 0.92rem;
}
.back-link:hover { text-decoration: underline; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: linear-gradient(180deg, rgba(5, 8, 15, 0.74) 0%, rgba(10, 16, 27, 0.74) 100%); }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.about-copy p { color: var(--muted); font-size: 1.06rem; margin-bottom: 28px; }

.vision-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 178, 36, 0.07), rgba(55, 200, 242, 0.05) 60%);
  position: relative;
  overflow: hidden;
}
.vision-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--grad);
}
.vision-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--amber);
  background: rgba(255, 178, 36, 0.1);
  border: 1px solid rgba(255, 178, 36, 0.25);
}
.vision-icon svg { width: 22px; height: 22px; }
.vision-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.vision-card p { margin: 0; font-size: 0.96rem; color: var(--muted); }

.value-list { display: flex; flex-direction: column; gap: 16px; }

.value-card {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 178, 36, 0.35);
  box-shadow: var(--shadow);
}
.value-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(55, 200, 242, 0.09);
  border: 1px solid rgba(55, 200, 242, 0.22);
}
.value-icon svg { width: 21px; height: 21px; }
.value-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.value-card p { font-size: 0.93rem; color: var(--muted); margin: 0; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: rgba(10, 16, 27, 0.72); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(255, 178, 36, 0.4); box-shadow: var(--shadow); }
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--amber);
  background: rgba(255, 178, 36, 0.1);
  border: 1px solid rgba(255, 178, 36, 0.22);
  margin-bottom: 22px;
  transition: transform 0.3s ease;
}
.service-card:hover .service-icon { transform: scale(1.06) rotate(-3deg); }
.service-icon svg { width: 26px; height: 26px; }

.service-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.96rem; flex: 1; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--amber);
}
.card-link svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.card-link:hover svg { transform: translateX(5px); }

/* scope panel */
.scope-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 30px clamp(24px, 4vw, 44px);
}
.scope-title { font-size: 1.1rem; margin-bottom: 20px; color: var(--text); }
.scope-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
}
.scope-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; color: var(--muted); }
.scope-list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--teal);
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.products { background: linear-gradient(180deg, rgba(10, 16, 27, 0.72) 0%, rgba(5, 8, 15, 0.72) 100%); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  position: relative;
  padding: 14px 14px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(55, 200, 242, 0.4); box-shadow: var(--shadow); }

.product-img {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #16233c, #0d1524);
  margin-bottom: 18px;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img img { transform: scale(1.06); }

.product-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #06121a;
  background: rgba(55, 200, 242, 0.92);
  backdrop-filter: blur(4px);
}
.product-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.product-card p { font-size: 0.88rem; color: var(--muted); margin-bottom: 18px; min-height: 2.7em; }

.price { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-bottom: 20px; }
.price s { color: var(--muted-2); font-size: 0.9rem; }
.price strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--amber);
}

.products-note { margin-top: 30px; text-align: center; font-size: 0.85rem; color: var(--muted-2); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: rgba(10, 16, 27, 0.72); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 14px; }

.info-card {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.info-card:hover { border-color: rgba(255, 178, 36, 0.35); transform: translateX(4px); }

.info-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: rgba(45, 212, 191, 0.09);
  border: 1px solid rgba(45, 212, 191, 0.22);
}
.info-icon svg { width: 20px; height: 20px; }
.info-card h3 { font-size: 0.95rem; margin-bottom: 3px; }
.info-card p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.info-link { font-size: 0.92rem; color: var(--cyan); word-break: break-all; }
.info-link:hover { text-decoration: underline; }

/* form */
.contact-form {
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.field label em { color: var(--amber); font-style: normal; }

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 178, 36, 0.15);
}
.field textarea { resize: vertical; min-height: 120px; }

.form-submit { width: 100%; }
.form-status { margin-top: 14px; font-size: 0.9rem; min-height: 1.4em; text-align: center; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #ff7a6e; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); background: rgba(5, 8, 15, 0.8); padding-top: 60px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin: 18px 0; max-width: 300px; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.footer-social a:hover { color: var(--amber); border-color: var(--amber); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }

.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h3 {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}
.footer-col a, .footer-col p { font-size: 0.9rem; color: var(--muted); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--amber); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  font-size: 0.82rem;
  color: var(--muted-2);
}

/* back to top */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--amber);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 90;
  box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--amber); }
.to-top svg { width: 20px; height: 20px; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: none; }

.service-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.service-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.service-card.reveal:nth-child(4) { transition-delay: 0.24s; }
.product-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.product-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.product-card.reveal:nth-child(4) { transition-delay: 0.24s; }
.value-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.value-card.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; margin-inline: auto; }
  .hero-badge { margin-inline: auto; }
  .hero-art { order: -1; }
  .tower { width: min(280px, 60vw); }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .project-layout { grid-template-columns: 1fr; }
  .project-aside .project-gallery { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 6vw 26px;
    background: rgba(5, 8, 15, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.35s ease;
    z-index: 99;
  }
  body.nav-open .nav-links { transform: translateY(0); }
  .nav-links a { padding: 0.85rem 1rem; font-size: 1.05rem; }
  .nav-links a.active::after { display: none; }

  .nav-burger { display: flex; }
  .nav-cta { display: none; }

  .hero { min-height: auto; }
  .hero-title { font-size: clamp(2.1rem, 8vw, 3rem); }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .brand-logo { height: 34px; }

  .scope-list { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .proj-row { flex-direction: column; align-items: flex-start; }
  .proj-meta { flex-direction: row; align-items: center; }
  .staff-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .proj-tabs { flex-direction: column; }
  .proj-tab { text-align: center; }
  .btn-lg { width: 100%; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

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