/* ─── DESIGN TOKENS — DARK (default) ────────────────────── */
:root {
  --gold:       #B8965A;
  --gold-light: #D4AF76;
  --gold-dim:   #7A5F35;
  --gold-glow:  rgba(184,150,90,0.18);
  --ink:        #0A0A0B;
  --ink-2:      #111114;
  --ink-3:      #18181C;
  --ink-4:      #222228;
  --ink-5:      #2C2C35;
  --frost:      #E8E6E0;
  --frost-dim:  #9A9890;
  --line:       rgba(184,150,90,0.18);
  --line-dim:   rgba(255,255,255,0.06);
  --nav-h:      68px;
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
  /* Theme meta */
  --nav-bg:     rgba(10,10,11,0.78);
  --nav-bg-scrolled: rgba(10,10,11,0.96);
  --mobile-nav-bg: var(--ink-2);
  --grid-line:  rgba(184,150,90,0.025);
  --hero-stat-bg: rgba(24,24,28,0.7);
}

/* ─── LIGHT MODE TOKENS ──────────────────────────────────── */
[data-theme="light"] {
  --gold:       #9E7A3A;
  --gold-light: #B8965A;
  --gold-dim:   #7A5F35;
  --gold-glow:  rgba(158,122,58,0.15);
  --ink:        #F4F1EC;
  --ink-2:      #EBE8E2;
  --ink-3:      #E2DED7;
  --ink-4:      #D6D2CA;
  --ink-5:      #CAC7BE;
  --frost:      #1A1714;
  --frost-dim:  #5C5850;
  --line:       rgba(158,122,58,0.22);
  --line-dim:   rgba(0,0,0,0.08);
  --nav-bg:     rgba(244,241,236,0.84);
  --nav-bg-scrolled: rgba(244,241,236,0.98);
  --mobile-nav-bg: #EBE8E2;
  --grid-line:  rgba(158,122,58,0.04);
  --hero-stat-bg: rgba(226,222,215,0.8);
}

/* ─── SMOOTH THEME TRANSITION ────────────────────────────── */
body, nav, .service-card, .why-card, footer, .contact-form,
.contact-info, .infra-visual, .infra-diagram, .testimonial-card,
.faq-item, .mobile-nav, .about-visual, .feature-item,
.whyus-banner, .architect-wrapper, .arch-node, .step-content,
.trust-num-item, section {
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease;
}

/* ─── THEME TOGGLE BUTTON ────────────────────────────────── */
.theme-toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--gold);
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
}
.theme-toggle svg { transition: transform 0.4s ease, opacity 0.3s ease; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--ink);
  color: var(--frost);
  overflow-x: hidden;
  line-height: 1.6;
}
h1,h2,h3,h4,h5,.font-display { font-family: 'Syne', sans-serif; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--ink-2); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

/* ─── GRID TEXTURE ───────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  transition: opacity 0.35s ease;
}

/* ─── UTILITIES ──────────────────────────────────────────── */
section { position: relative; z-index: 1; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }
.section-pad { padding: 80px 0; }
.section-label {
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 0.875rem;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before { content: ''; width: 28px; height: 1px; background: var(--gold); flex-shrink: 0; }
.section-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05;
  letter-spacing: -0.02em; color: var(--frost);
}
.section-title em { font-style: normal; color: var(--gold); }

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.18s; }
.reveal-delay-3 { transition-delay: 0.28s; }
.reveal-delay-4 { transition-delay: 0.38s; }

/* ══════════════════════════════════════════════════════════
   NAV — glassmorphism
══════════════════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  backdrop-filter: blur(20px) saturate(1.6);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease, box-shadow var(--transition), border-color 0.35s ease;
}
nav.scrolled { background: var(--nav-bg-scrolled); box-shadow: 0 4px 40px rgba(0,0,0,0.18); }
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.25rem; height: var(--nav-h);
}
.logo-mark { display: flex; align-items: center; gap: 11px; }
.logo-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  transform: rotate(45deg); transition: background var(--transition);
}
.logo-mark:hover .logo-icon { background: var(--gold-glow); }
.logo-icon span { transform: rotate(-45deg); font-family: 'Syne', sans-serif; font-weight: 800; font-size: 13px; color: var(--gold); }
.logo-text { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: 0.04em; }
.logo-sub { font-size: 10px; letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase; font-weight: 400; }
.nav-links { display: none; align-items: center; gap: 2.25rem; }
.nav-links a {
  font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--frost-dim); font-weight: 500;
  transition: color var(--transition); position: relative; padding-bottom: 3px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 100%; height: 1px;
  background: var(--gold); transition: right var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }
.nav-links a.active::after,
.nav-links a:hover::after { right: 0; }
.nav-cta {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 11px !important; letter-spacing: 0.14em !important;
  color: var(--gold) !important; border: 1px solid var(--gold);
  padding: 8px 20px !important; position: relative; overflow: hidden;
  transition: color var(--transition) !important;
}
.nav-cta::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition); z-index: -1;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { color: var(--ink) !important; }
.nav-cta:hover::before { transform: scaleX(1); }
.hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; }
.hamburger span { width: 22px; height: 1.5px; background: var(--frost); display: block; transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-nav {
  max-height: 0; overflow: hidden;
  background: var(--ink-2); border-top: 1px solid transparent;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), border-color 0.3s;
}
.mobile-nav.open { max-height: 400px; border-top-color: var(--line); }
.mobile-nav a {
  display: block; padding: 0.9rem 1.25rem;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--frost-dim); border-bottom: 1px solid var(--line-dim);
  font-family: 'Syne', sans-serif; font-weight: 600;
  transition: color var(--transition), padding-left var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a.active { color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════════════════════════ */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  position: relative; z-index: 1;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(184,150,90,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(184,150,90,0.03) 0%, transparent 50%);
}
.page-hero-label {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 10px;
}
.page-hero-label::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
.page-hero-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.97; letter-spacing: -0.03em; color: var(--frost);
  margin-bottom: 1.25rem;
}
.page-hero-title em { font-style: normal; color: var(--gold); }
.page-hero-desc {
  font-size: clamp(14px, 2vw, 16px); color: var(--frost-dim);
  max-width: 500px; font-weight: 300; line-height: 1.75;
}

/* ══════════════════════════════════════════════════════════
   HERO (home only)
══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100svh; position: relative; z-index: 1;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 60px) 1.25rem 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 70% at 60% 50%, rgba(184,150,90,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(184,150,90,0.04) 0%, transparent 55%);
}
.hero-orb {
  position: absolute; right: -10%; top: 20%;
  width: min(500px, 80vw); aspect-ratio: 1;
  background: radial-gradient(ellipse at center, rgba(184,150,90,0.07) 0%, transparent 70%);
  border-radius: 50%;
  animation: orb-pulse 8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes orb-pulse {
  from { transform: scale(1) translateY(0); opacity: 0.6; }
  to   { transform: scale(1.15) translateY(-30px); opacity: 1; }
}
.hero-content { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; width: 100%; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 1.5rem;
  opacity: 0; animation: fade-up 0.7s ease 0.1s forwards;
}
.hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--gold); }
.hero-heading {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(2.8rem, 9vw, 7.5rem);
  line-height: 0.94; letter-spacing: -0.03em;
  color: var(--frost); margin-bottom: 1.5rem;
  opacity: 0; animation: fade-up 0.7s ease 0.25s forwards;
}
.hero-heading em { font-style: normal; color: var(--gold); }
.hero-desc {
  font-size: clamp(15px, 2.5vw, 17px); line-height: 1.75; color: var(--frost-dim);
  max-width: 520px; margin-bottom: 2.5rem; font-weight: 300;
  opacity: 0; animation: fade-up 0.7s ease 0.4s forwards;
}
.hero-actions {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  opacity: 0; animation: fade-up 0.7s ease 0.55s forwards;
}
.hero-stats { display: none; flex-direction: column; gap: 2px; }
.stat-card {
  background: rgba(24,24,28,0.7); backdrop-filter: blur(12px);
  border: 1px solid var(--line); padding: 1.5rem 2rem; min-width: 190px;
  transition: border-color var(--transition);
}
.stat-card:hover { border-color: var(--gold); }
.stat-num { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 2.4rem; color: var(--gold); line-height: 1; }
.stat-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--frost-dim); margin-top: 4px; }

/* ─── Buttons ──────────────────────────────────────────── */
.btn-primary {
  display: inline-block; position: relative; overflow: hidden;
  background: var(--gold); color: var(--ink);
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 15px 34px; transition: all var(--transition);
}
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s;
}
.btn-primary:hover { background: var(--gold-light); }
.btn-primary:hover::after { left: 150%; }
.btn-ghost {
  color: var(--frost-dim); font-size: 12px; letter-spacing: 0.09em;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; transition: color var(--transition); font-family: 'Syne', sans-serif;
}
.btn-ghost:hover { color: var(--frost); }
.btn-ghost-arrow { width: 32px; height: 1px; background: currentColor; position: relative; transition: width var(--transition); }
.btn-ghost-arrow::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px; border-top: 1px solid currentColor;
  border-right: 1px solid currentColor; transform: rotate(45deg);
}
.btn-ghost:hover .btn-ghost-arrow { width: 48px; }
.btn-dark {
  display: inline-block; position: relative; overflow: hidden;
  background: var(--ink); color: var(--gold);
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 15px 34px; border: 1px solid var(--gold);
  transition: all var(--transition); white-space: nowrap;
}
.btn-dark:hover { background: var(--gold); color: var(--ink); }
.btn-outline {
  display: inline-block;
  border: 1px solid var(--gold); color: var(--gold);
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 13px 30px; transition: all var(--transition);
}
.btn-outline:hover { background: var(--gold); color: var(--ink); }

/* ─── TICKER ────────────────────────────────────────────── */
.ticker { background: var(--gold); overflow: hidden; padding: 11px 0; position: relative; z-index: 1; }
.ticker-track { display: flex; gap: 3.5rem; white-space: nowrap; animation: ticker 28s linear infinite; width: max-content; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink);
  display: inline-flex; align-items: center; gap: 1.25rem; flex-shrink: 0;
}
.ticker-dot { width: 4px; height: 4px; background: var(--ink-4); border-radius: 50%; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ══════════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════════ */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.about-visual {
  position: relative; aspect-ratio: 4/3; background: var(--ink-3);
  border: 1px solid var(--line); overflow: hidden;
}
.about-visual::before {
  content: ''; position: absolute; top: -16px; left: -16px; right: 16px; bottom: 16px;
  border: 1px solid var(--line); z-index: 0; pointer-events: none;
}
.about-circuit { position: absolute; inset: 0; overflow: hidden; opacity: 0.35; }
.circuit-line { position: absolute; background: var(--gold-dim); }
.about-badge {
  position: absolute; bottom: -16px; right: -16px;
  background: var(--gold); padding: 1.25rem;
  width: 120px; height: 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; z-index: 2;
}
.badge-num { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 2.2rem; color: var(--ink); line-height: 1; }
.badge-text { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.about-text p { color: var(--frost-dim); line-height: 1.8; font-size: 15px; font-weight: 300; margin-bottom: 1.25rem; }
.feature-list { margin: 1.75rem 0; display: flex; flex-direction: column; gap: 0.875rem; }
.feature-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 0.875rem 1rem; background: var(--ink-3);
  border-left: 2px solid var(--gold); transition: background var(--transition);
}
.feature-item:hover { background: var(--ink-4); }
.feature-icon { color: var(--gold); font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.feature-text { font-size: 14px; color: var(--frost-dim); line-height: 1.6; }
.feature-text strong { color: var(--frost); font-weight: 500; }

/* ══════════════════════════════════════════════════════════
   SERVICES
══════════════════════════════════════════════════════════ */
.services-bg { background: var(--ink-2); }
.services-intro { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3.5rem; }
.services-desc { color: var(--frost-dim); font-size: 15px; line-height: 1.8; font-weight: 300; }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); }
.service-card {
  background: var(--ink-2); padding: 2rem 1.75rem;
  transition: background var(--transition); cursor: default;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle 220px at var(--mx,50%) var(--my,50%), rgba(184,150,90,0.07) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.service-card:hover { background: var(--ink-3); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { opacity: 1; }
.service-num { font-family: 'Syne', sans-serif; font-size: 10px; letter-spacing: 0.2em; color: var(--gold-dim); margin-bottom: 1.25rem; font-weight: 700; }
.service-icon-wrap {
  width: 44px; height: 44px; border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; color: var(--gold); font-size: 20px;
  transition: border-color var(--transition), background var(--transition), filter var(--transition);
}
.service-card:hover .service-icon-wrap { border-color: var(--gold); background: var(--gold-glow); filter: drop-shadow(0 0 8px rgba(184,150,90,0.35)); }
.service-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px; color: var(--frost); margin-bottom: 0.6rem; letter-spacing: 0.01em; }
.service-desc { font-size: 13px; color: var(--frost-dim); line-height: 1.65; font-weight: 300; }

/* ══════════════════════════════════════════════════════════
   INFRASTRUCTURE
══════════════════════════════════════════════════════════ */
.infra-grid { display: grid; grid-template-columns: 1fr; gap: 3.5rem; align-items: start; }
.infra-list { display: flex; flex-direction: column; }
.infra-item {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.25rem 0; border-bottom: 1px solid var(--line-dim);
  transition: padding-left var(--transition);
}
.infra-item:first-child { padding-top: 0; }
.infra-item:last-child { border: none; }
.infra-item:hover { padding-left: 0.5rem; }
.infra-step { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.8rem; color: var(--ink-5); flex-shrink: 0; line-height: 1.1; width: 44px; transition: color var(--transition); }
.infra-item:hover .infra-step { color: var(--gold-dim); }
.infra-body h4 { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 14px; color: var(--frost); margin-bottom: 0.4rem; }
.infra-body p { font-size: 13px; color: var(--frost-dim); line-height: 1.65; font-weight: 300; }
.infra-visual { background: var(--ink-3); border: 1px solid var(--line); padding: 2rem 1.5rem; position: relative; }
.infra-diagram { display: flex; flex-direction: column; gap: 1px; }
.diagram-row { display: flex; align-items: stretch; gap: 1px; }
.diagram-cell {
  flex: 1; padding: 1rem 0.75rem; background: var(--ink-4);
  font-size: 11px; letter-spacing: 0.05em; color: var(--frost-dim);
  text-align: center; font-family: 'Syne', sans-serif; font-weight: 500;
  transition: background var(--transition), color var(--transition);
  cursor: default; display: flex; align-items: center; justify-content: center; text-transform: uppercase;
}
.diagram-cell.gold { background: rgba(184,150,90,0.1); color: var(--gold-light); border: 1px solid rgba(184,150,90,0.18); }
.diagram-cell:hover { background: var(--ink-5); color: var(--frost); }
.diagram-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.875rem; font-family: 'Syne', sans-serif; font-weight: 700; }
.diagram-connector { display: flex; justify-content: center; padding: 4px 0; color: var(--gold-dim); font-size: 16px; }

/* ══════════════════════════════════════════════════════════
   WHY US
══════════════════════════════════════════════════════════ */
.whyus-bg { background: var(--ink-2); }
.whyus-intro { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }
.whyus-intro-desc { color: var(--frost-dim); font-size: 15px; line-height: 1.8; font-weight: 300; }
.whyus-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); }
.why-card {
  background: var(--ink-2); padding: 2rem 1.75rem;
  transition: background var(--transition); position: relative; overflow: hidden;
}
.why-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle 200px at var(--mx,50%) var(--my,50%), rgba(184,150,90,0.06) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.why-card:hover { background: var(--ink-3); }
.why-card:hover::before { opacity: 1; }
.why-icon { font-size: 26px; margin-bottom: 1rem; transition: filter var(--transition); }
.why-card:hover .why-icon { filter: drop-shadow(0 0 8px rgba(184,150,90,0.4)); }
.why-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px; color: var(--frost); margin-bottom: 0.6rem; }
.why-desc { font-size: 13px; color: var(--frost-dim); line-height: 1.7; font-weight: 300; }
.whyus-banner {
  margin-top: 1px; background: var(--gold); padding: 3rem 2rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.banner-text { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(1.4rem, 4vw, 2.4rem); color: var(--ink); }
.banner-sub { font-size: 14px; color: rgba(10,10,11,0.65); margin-top: 0.4rem; font-weight: 400; }

/* Home page service preview teaser cards */
.service-teaser-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); margin-top: 3rem; }
.service-teaser-link {
  background: var(--ink-2); padding: 2rem 1.75rem;
  display: block; transition: background var(--transition);
  border-bottom: 2px solid transparent; transition: all var(--transition);
}
.service-teaser-link:hover { background: var(--ink-3); border-bottom-color: var(--gold); }
.service-teaser-link .service-name { margin-bottom: 0.4rem; }

/* Section CTA row */
.section-cta { margin-top: 2.5rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.contact-info h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 22px; color: var(--frost); margin-bottom: 0.875rem; }
.contact-info > p { color: var(--frost-dim); font-size: 14px; line-height: 1.8; font-weight: 300; margin-bottom: 2rem; }
.contact-detail { display: flex; align-items: center; gap: 1rem; padding: 0.875rem 0; border-bottom: 1px solid var(--line-dim); }
.contact-icon { color: var(--gold); font-size: 16px; width: 22px; flex-shrink: 0; }
.contact-val { font-size: 13px; color: var(--frost-dim); }
.contact-val strong { display: block; color: var(--frost); font-weight: 500; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1px; }
.contact-certs { margin-top: 2rem; padding: 1.5rem; background: var(--ink-3); border: 1px solid var(--line); }
.cert-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; font-family: 'Syne', sans-serif; font-weight: 700; }
.cert-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cert-tag { font-size: 11px; padding: 5px 11px; border: 1px solid var(--line); color: var(--frost-dim); font-family: 'Syne', sans-serif; font-weight: 600; letter-spacing: 0.05em; }
.contact-form { background: var(--ink-3); border: 1px solid var(--line); padding: 2rem 1.5rem; }
.form-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 17px; color: var(--frost); margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 0.875rem; }
.form-label { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--frost-dim); font-weight: 500; }
.form-input {
  background: var(--ink-4); border: 1px solid rgba(255,255,255,0.07);
  color: var(--frost); padding: 12px 14px; font-size: 14px;
  font-family: 'DM Sans', sans-serif; outline: none; width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,150,90,0.1); }
.form-input::placeholder { color: rgba(154,152,144,0.4); }
textarea.form-input { resize: vertical; min-height: 110px; }
select.form-input { cursor: pointer; appearance: none; }
.form-submit { width: 100%; cursor: pointer; border: none; font-size: 12px; letter-spacing: 0.15em; position: relative; overflow: hidden; }
.form-note { font-size: 11px; color: var(--frost-dim); margin-top: 0.875rem; text-align: center; opacity: 0.65; }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
footer { background: var(--ink-2); border-top: 1px solid var(--line); }
.footer-main { padding: 4rem 0 2.5rem; display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.footer-brand > p { font-size: 13px; color: var(--frost-dim); line-height: 1.8; margin: 1rem 0 1.5rem; font-weight: 300; max-width: 280px; }
.social-links { display: flex; gap: 0.6rem; }
.social-link { width: 34px; height: 34px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--frost-dim); transition: all var(--transition); }
.social-link:hover { border-color: var(--gold); color: var(--gold); }
.footer-heading { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 13px; color: var(--frost-dim); transition: color var(--transition), padding-left var(--transition); display: block; }
.footer-links a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-bottom { padding: 1.25rem 0; border-top: 1px solid var(--line-dim); display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.footer-copy { font-size: 12px; color: var(--frost-dim); }
.footer-cert { display: flex; align-items: center; gap: 1rem; }
.cert-badge { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dim); border: 1px solid var(--line); padding: 4px 10px; font-weight: 600; font-family: 'Syne', sans-serif; }

/* ══════════════════════════════════════════════════════════
   PAGE LOADER
══════════════════════════════════════════════════════════ */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.loaded { opacity: 0; visibility: hidden; }

.loader-ring {
  position: relative; width: 72px; height: 72px;
}
.loader-ring::before, .loader-ring::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%;
}
.loader-ring::before {
  border: 2px solid var(--line);
}
.loader-ring::after {
  border: 2px solid transparent;
  border-top-color: var(--gold);
  border-right-color: var(--gold-dim);
  animation: spin 0.9s cubic-bezier(0.5,0,0.5,1) infinite;
}
.loader-logo {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.loader-logo-box {
  width: 28px; height: 28px;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  transform: rotate(45deg);
}
.loader-logo-box span {
  transform: rotate(-45deg);
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 10px; color: var(--gold); line-height: 1;
}
.loader-text {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 11px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--frost-dim);
  opacity: 0; animation: fade-up 0.5s ease 0.2s forwards;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════
   SCROLL TO TOP BUTTON
══════════════════════════════════════════════════════════ */
#scrollTop {
  position: fixed; bottom: 2rem; right: 1.5rem; z-index: 300;
  width: 46px; height: 46px;
  background: var(--gold); color: var(--ink);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transform: rotate(45deg) translateY(20px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, background var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
#scrollTop.visible {
  opacity: 1; pointer-events: auto;
  transform: rotate(45deg) translateY(0);
}
#scrollTop:hover { background: var(--gold-light); }
#scrollTop svg { transform: rotate(-45deg); transition: transform 0.3s ease; }
#scrollTop:hover svg { transform: rotate(-45deg) translateY(-2px); }

/* ─── KEYFRAMES ─────────────────────────────────────────── */
@keyframes fade-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

/* ══════════════════════════════════════════════════════════
   MOBILE-FIRST BASE SAFETY RULES (all screens)
══════════════════════════════════════════════════════════ */

/* Prevent ANY content from being hidden by overflow on small screens */
.infra-diagram, .infra-visual { overflow-x: auto; }
.diagram-cell { min-width: 70px; font-size: 10px; padding: 0.75rem 0.5rem; }

/* Stats section — stacks vertically on mobile */
.stats-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0;
}
.stat-pill { text-align: center; }
.stat-big {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(184,150,90,0.2);
}
.stat-small { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--frost-dim); font-weight: 600; }

/* FAQ accordion — mobile safe */
.faq-grid { display: grid; gap: 1rem; }
.faq-item { background: var(--ink-2); border: 1px solid var(--line); border-radius: 0; overflow: hidden; transition: all 0.3s ease; }
.faq-item.active { border-color: var(--gold); }
.faq-q {
  padding: 1.25rem 1.5rem; display: flex; justify-content: space-between; align-items: flex-start;
  cursor: pointer; color: var(--frost); font-family: 'Syne', sans-serif;
  font-weight: 700; user-select: none; gap: 1rem; font-size: 14px; line-height: 1.4;
}
.faq-icon { color: var(--gold); transform: rotate(0deg); transition: transform 0.3s ease; flex-shrink: 0; margin-top: 2px; }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-a {
  padding: 0 1.5rem; max-height: 0; overflow: hidden;
  color: var(--frost-dim); line-height: 1.7; font-size: 14px;
  transition: all 0.3s ease; opacity: 0;
}
.faq-item.active .faq-a { padding-bottom: 1.5rem; max-height: 500px; opacity: 1; }

/* Service link cards — make them full-width on mobile by default */
.service-link-card { display: block; text-decoration: none; color: inherit; width: 100%; }
.service-link-card .service-card { height: auto !important; }

/* Whyus banner — column on mobile, prevent text overflow */
.whyus-banner {
  margin-top: 1px; background: var(--gold); padding: 2.5rem 1.5rem;
  display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start;
}
.banner-text {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(1.2rem, 5vw, 2.4rem); color: var(--ink);
  word-break: break-word;
}
.banner-sub { font-size: 14px; color: rgba(10,10,11,0.65); margin-top: 0.4rem; font-weight: 400; }

/* Section CTA — wrap on small screens */
.section-cta { margin-top: 2.5rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

/* Hero heading — safe floor so it never disappears */
.hero-heading { font-size: clamp(2.4rem, 9vw, 7.5rem); }

/* Page-hero title safe floor */
.page-hero-title { word-break: break-word; }

/* About badge stays within bounds on very small screens */
.about-visual { overflow: visible !important; }

/* ══════════════════════════════════════════════════════════
   BREAKPOINTS  — TABLET ≥640px
══════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .section-pad { padding: 96px 0; }
  .container { padding: 0 1.75rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-teaser-grid { grid-template-columns: repeat(2, 1fr); }
  .whyus-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .whyus-banner { flex-direction: row; align-items: center; justify-content: space-between; padding: 3rem 2rem; }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
  .about-badge { width: 130px; height: 130px; }
  .about-badge .badge-num { font-size: 2.4rem; }
  .stats-container { grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 4rem 0; }
  .faq-q { font-size: 15px; }
  .diagram-cell { font-size: 11px; padding: 1rem 0.75rem; min-width: unset; }
}

/* ══════════════════════════════════════════════════════════
   BREAKPOINTS — SMALL DESKTOP ≥900px
══════════════════════════════════════════════════════════ */
@media (min-width: 900px) {
  .section-pad { padding: 120px 0; }
  .container { padding: 0 2rem; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .about-visual { aspect-ratio: 4/5; }
  .services-intro { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .service-teaser-grid { grid-template-columns: repeat(3, 1fr); }
  .infra-grid { grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: center; }
  .whyus-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.4fr; gap: 5rem; }
  .contact-form { padding: 2.5rem; }
  .footer-main { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 4rem; }
  .whyus-banner { padding: 3.5rem 3rem; }
}

/* ══════════════════════════════════════════════════════════
   BREAKPOINTS — LARGE DESKTOP ≥1100px
══════════════════════════════════════════════════════════ */
@media (min-width: 1100px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
  .hero-stats {
    display: flex; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    opacity: 0; animation: fade-up 0.7s ease 0.7s forwards;
  }
  .contact-form { padding: 3rem; }
}

/* ══════════════════════════════════════════════════════════
   SMALL PHONE SAFETY — ≤400px
══════════════════════════════════════════════════════════ */
@media (max-width: 400px) {
  .hero-heading { font-size: 2.2rem; }
  .page-hero-title { font-size: 2rem; }
  .section-title { font-size: 1.8rem; }
  .whyus-banner { padding: 2rem 1.25rem; }
  .btn-primary, .btn-dark { padding: 13px 22px; font-size: 11px; }
  .contact-form { padding: 1.25rem 1rem; }
  .about-badge { width: 90px; height: 90px; bottom: -10px; right: -10px; }
  .badge-num { font-size: 1.6rem; }
  .badge-text { font-size: 9px; }
  .stat-big { font-size: 1.8rem; }
  .stats-container { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
