/* ==========================================================================
   Spatium Offgrid — Design Tokens
   ========================================================================== */
:root {
  --bg: #06120F;
  --bg-alt: #081B16;
  --surface: #0D2620;
  --surface-2: #10312A;
  --border: rgba(255, 255, 255, 0.08);
  --text: #EAF6F1;
  --text-muted: #9FBBB2;
  --brand: #1FD1A5;
  --brand-dark: #0E7C66;
  --brand-rgb: 31, 209, 165;
  --accent: #FFB648;
  --accent-rgb: 255, 182, 72;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(var(--brand-rgb), 0.25);
  --ff-heading: "Space Grotesk", sans-serif;
  --ff-body: "Inter", sans-serif;
  --container: 1200px;
}

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

/* scroll-behavior intentionally omitted — Lenis handles smooth scrolling.
   Having both native smooth-scroll and Lenis active causes conflicting,
   sluggish scroll motion. */

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--ff-heading); font-weight: 600; line-height: 1.15; }

.text-accent { color: var(--brand); }

/* ==========================================================================
   Custom cursor + scroll progress
   ========================================================================== */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 18px; height: 18px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s, border-color .2s;
  display: none;
}
@media (min-width: 900px) { .cursor-dot { display: block; } }
.cursor-dot.grow { width: 46px; height: 46px; background: rgba(var(--brand-rgb), .25); }

.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  z-index: 10000;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, color .3s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #04140F;
  box-shadow: 0 10px 30px -8px rgba(var(--brand-rgb), .55);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -8px rgba(var(--brand-rgb), .7); }
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,.02);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-3px); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: padding .35s ease, background .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 14px 0;
  background: rgba(6, 18, 15, 0.75);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.25rem;
}
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #04140F;
  font-size: 1rem;
}
.logo-accent { color: var(--brand); font-weight: 500; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color .25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0%; height: 2px;
  background: var(--brand);
  transition: width .3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  z-index: 1201;
}
.nav-toggle span {
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform-origin: center;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: 1150;
}
.nav-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  will-change: transform;
}
.orb-1 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(var(--brand-rgb), .5), transparent 70%); top: -120px; right: -80px; }
.orb-2 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(var(--accent-rgb), .35), transparent 70%); bottom: -100px; left: -60px; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black 40%, transparent 90%);
}

/* ------------------------------------------------------------------ */
/* Hero lightning — jagged bolts travelling to-and-fro behind the text */
/* ------------------------------------------------------------------ */
.hero-lightning {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .65;
  mix-blend-mode: screen;
}
.bolt-path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bolt-1 {
  stroke: var(--brand);
  stroke-dasharray: 26 900;
  animation: boltFlow 5.5s linear infinite alternate;
}
.bolt-2 {
  stroke: var(--accent);
  stroke-dasharray: 18 900;
  opacity: .75;
  animation: boltFlow 7s linear infinite alternate-reverse;
}
.bolt-3 {
  stroke: #ffffff;
  stroke-dasharray: 14 900;
  opacity: .5;
  animation: boltFlow 4.2s linear infinite alternate;
}
@keyframes boltFlow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -1300; }
}

/* ------------------------------------------------------------------ */
/* Hero lightning sweep — slow electric arc across the bottom edge     */
/* ------------------------------------------------------------------ */
.hero-lightning-strip {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 26%;
  min-height: 160px;
  max-height: 260px;
  overflow: hidden;
  mask-image: linear-gradient(to top, black 55%, transparent 100%);
}
.hero-lightning-sweep {
  position: absolute;
  inset: 0;
  width: 130%;
  height: 100%;
  left: -15%;
  mix-blend-mode: screen;
  animation: boltSweep 16s ease-in-out infinite alternate;
}

.bolt-glow, .bolt-core {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bolt-glow {
  stroke: #3FA9FF;
  stroke-width: 6;
  opacity: .55;
}
.bolt-core {
  stroke: #DFF3FF;
  stroke-width: 1.4;
  opacity: .9;
}
.bolt-glow-2, .bolt-core-2 { opacity: .4; }

.bolt-glow-1, .bolt-core-1 {
  stroke-dasharray: 140 1500;
  animation: boltDash 6.5s linear infinite alternate;
}
.bolt-glow-2, .bolt-core-2 {
  stroke-dasharray: 110 1500;
  animation: boltDash 8s linear infinite alternate-reverse;
}

/* flicker gives the bolt an authentic electric shimmer */
.bolt-glow-1 { animation-name: boltDash, boltFlicker; animation-duration: 6.5s, 2.6s; }
.bolt-core-1 { animation-name: boltDash, boltFlicker; animation-duration: 6.5s, 2.6s; }
.bolt-glow-2 { animation-name: boltDash, boltFlicker; animation-duration: 8s, 3.1s; }
.bolt-core-2 { animation-name: boltDash, boltFlicker; animation-duration: 8s, 3.1s; }

@keyframes boltDash {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -1500; }
}
@keyframes boltFlicker {
  0%, 100% { opacity: .85; }
  38%      { opacity: .4; }
  42%      { opacity: 1; }
  70%      { opacity: .55; }
}
@keyframes boltSweep {
  0%   { transform: translateX(-4%); }
  100% { transform: translateX(4%); }
}

.hero-inner { position: relative; z-index: 1; max-width: 760px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero-title .line { display: block; overflow: hidden; }

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 34px;
}

.hero-cta { display: flex; gap: 16px; margin-bottom: 44px; flex-wrap: wrap; }

.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.badge i { color: var(--brand); }

/* ------------------------------------------------------------------ */
/* Power flow — animated electricity travelling between nodes          */
/* ------------------------------------------------------------------ */
.power-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 480px;
  margin: 0 auto 56px;
}

.power-node {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(var(--brand-rgb), .1);
  border: 1px solid rgba(var(--brand-rgb), .35);
  color: var(--brand);
  font-size: 1.05rem;
  animation: nodeFlicker 2.6s ease-in-out infinite;
}
.power-node:nth-child(3) { animation-delay: .4s; }
.power-node:last-child { animation-delay: .8s; }

@keyframes nodeFlicker {
  0%, 100% { box-shadow: 0 0 0 rgba(var(--brand-rgb), 0); color: var(--brand); }
  45%      { box-shadow: 0 0 18px 4px rgba(var(--brand-rgb), .55); color: #fff; }
  55%      { box-shadow: 0 0 4px 1px rgba(var(--brand-rgb), .25); color: var(--brand); }
}

.power-line {
  position: relative;
  flex: 1;
  height: 2px;
  min-width: 40px;
  margin: 0 10px;
  background: linear-gradient(90deg, rgba(var(--brand-rgb), .25), rgba(var(--accent-rgb), .25));
  border-radius: 2px;
  overflow: hidden;
}

.power-pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px 3px rgba(var(--brand-rgb), .8);
  transform: translate(-50%, -50%);
  animation: flowToFro 2.6s ease-in-out infinite;
}
.pulse-b { animation-delay: .5s; background: var(--accent); box-shadow: 0 0 10px 3px rgba(var(--accent-rgb), .8); }
.pulse-c { animation-delay: 1.1s; }
.pulse-d { animation-delay: .3s; background: var(--accent); box-shadow: 0 0 10px 3px rgba(var(--accent-rgb), .8); }
.pulse-e { animation-delay: 1.4s; }

@keyframes flowToFro {
  0%   { left: 0%;   opacity: 0; }
  8%   { opacity: 1; }
  50%  { left: 100%; opacity: 1; }
  58%  { opacity: 0; }
  59%  { left: 100%; opacity: 0; }
  67%  { opacity: 1; }
  100% { left: 0%;   opacity: 1; }
}

.scroll-cue {
  position: absolute;
  bottom: 34px; left: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: .08em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.scroll-cue-line {
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, var(--brand), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: "";
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--text);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue { 0% { top: -100%; } 100% { top: 100%; } }

/* ==========================================================================
   Section shared
   ========================================================================== */
section { position: relative; padding: 120px 0; }
.section-head { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 10px 0 14px; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; }
.section-head.light .eyebrow, .section-head.light h2 { color: #fff; }
.section-head.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  text-align: left;
  max-width: none;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head.split .section-sub { max-width: 540px; }

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  padding: 34px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--brand-rgb), .4);
  background: var(--surface-2);
}
.service-index {
  position: absolute;
  top: 20px; right: 26px;
  font-family: var(--ff-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(255,255,255,.06);
}
.service-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(var(--brand-rgb), .12);
  color: var(--brand);
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats {
  background: linear-gradient(135deg, var(--brand-dark), #06342A 60%, var(--bg-alt));
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-card {
  padding: 30px 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}
.stat-value {
  display: block;
  font-family: var(--ff-heading);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent);
}
.stat-label { display: block; font-weight: 600; margin-top: 6px; }
.stat-detail { display: block; font-size: 0.85rem; color: rgba(255,255,255,.65); margin-top: 4px; }

/* ==========================================================================
   Projects
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .35s ease, box-shadow .35s ease;
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.project-media {
  height: 180px;
  background:
    radial-gradient(circle at 30% 30%, rgba(var(--brand-rgb), .35), transparent 60%),
    linear-gradient(135deg, #0F3128, #0A211B);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.project-tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  border: 1px solid rgba(var(--brand-rgb), .3);
}
.project-body { padding: 26px; }
.project-meta {
  display: flex;
  gap: 28px;
  margin-bottom: 16px;
}
.project-meta strong { display: block; font-family: var(--ff-heading); font-size: 1.2rem; }
.project-meta span { font-size: 0.78rem; color: var(--text-muted); }
.project-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.project-location i { color: var(--brand); }
.project-body h3 { font-size: 1.15rem; margin-bottom: 10px; }
.project-body p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }

.link-arrow {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap .25s ease;
}
.link-arrow:hover { gap: 12px; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  padding: 34px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}
.quote-icon { color: rgba(var(--brand-rgb), .35); font-size: 1.6rem; margin-bottom: 14px; }
.testimonial-card p { color: var(--text-muted); margin-bottom: 22px; font-size: 0.98rem; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #04140F;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.testimonial-author strong { display: block; font-size: 0.92rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--text-muted); }

/* ==========================================================================
   Insights / Blog
   ========================================================================== */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.insight-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .35s ease, box-shadow .35s ease;
}
.insight-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.insight-media {
  height: 150px;
  background: linear-gradient(135deg, #0F3128, #0A211B);
  display: flex; align-items: flex-end; padding: 16px;
}
.insight-tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), .15);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(var(--accent-rgb), .3);
}
.insight-body { padding: 24px; }
.insight-meta {
  display: flex; gap: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.insight-body h3 { font-size: 1.08rem; margin-bottom: 10px; }
.insight-body p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
  background: radial-gradient(circle at 50% 0%, rgba(var(--brand-rgb), .18), transparent 60%), var(--bg-alt);
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 12px 0 18px; }
.cta-actions { display: flex; justify-content: center; gap: 18px; margin: 32px 0; flex-wrap: wrap; }
.cta-badges {
  display: flex; justify-content: center; gap: 26px; flex-wrap: wrap;
  font-size: 0.88rem; color: var(--text-muted);
}
.cta-badges i { color: var(--brand); margin-right: 6px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--bg-alt); padding-top: 90px; border-top: 1px solid var(--border); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1.3fr;
  gap: 40px;
  padding-bottom: 60px;
}
.footer-brand, .footer-col {
  min-width: 0; /* prevent grid items overflowing their track (grid "blowout") */
}
.footer-brand p { color: var(--text-muted); margin: 16px 0 20px; font-size: 0.92rem; max-width: 300px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.social-links a:hover { background: var(--brand); color: #04140F; border-color: var(--brand); transform: translateY(-3px); }

.footer-col h3 { font-size: 1rem; margin-bottom: 20px; }
.footer-col a, .footer-col p {
  display: block;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--brand); }
.footer-col p i { color: var(--brand); margin-right: 8px; width: 16px; }

.newsletter-form { display: flex; gap: 8px; margin-top: 6px; }
.newsletter-form input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-size: 0.9rem;
}
.newsletter-form input:focus { outline: none; border-color: var(--brand); }
.newsletter-form button {
  width: 46px;
  border-radius: 10px;
  background: var(--brand);
  color: #04140F;
  display: grid; place-items: center;
  transition: background .2s ease;
}
.newsletter-form button:hover { background: var(--accent); }
.form-msg { color: var(--brand); font-size: 0.82rem; margin-top: 10px; min-height: 1em; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.legal-links { display: flex; gap: 22px; }
.legal-links a:hover { color: var(--brand); }

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: #04140F;
  display: grid; place-items: center;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .3s ease;
  z-index: 900;
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--accent); }

/* ==========================================================================
   Reveal animation base state (GSAP controlled)
   ========================================================================== */
[data-reveal], .reveal-up { opacity: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .services-grid, .projects-grid, .testimonial-track, .insights-grid, .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(240px, 68vw);
    background: var(--bg-alt);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 26px;
    padding: 40px 32px;
    transform: translateX(100%);
    transition: transform .4s ease;
    border-left: 1px solid var(--border);
    z-index: 1200;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }

  .services-grid, .projects-grid, .testimonial-track, .insights-grid, .stats-grid {
    grid-template-columns: 1fr;
  }
  .section-head.split { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
}
