/* ==========================================================
   Atlas AI Governance — Dark Luxe Authority
   Manrope + DM Sans · Premium conversion-focused
   ========================================================== */

:root {
  --bg:       #F5F2EC;
  --bg-alt:   #E8E3DA;
  --ink:      #1A1C22;
  --ink-2:    #3D4048;
  --ink-3:    #6B6E78;
  --accent:   #14B8A6;
  --accent-dk:#0D9488;
  --accent-glow: rgba(20,184,166,.15);
  --gold:     #D4A853;
  --gold-dk:  #BF8F2F;
  --dark:     #080C14;
  --dark-2:   #0E1420;
  --dark-3:   #151C2C;
  --rule:     #D6D2CA;
  --white:    #FFFFFF;
  --on-dark:  #D4D0C8;
  --on-dark-2:rgba(212,208,200,.55);
  --glass:    rgba(255,255,255,.04);
  --glass-border: rgba(255,255,255,.08);
  --display:  'Manrope', system-ui, sans-serif;
  --body:     'DM Sans', system-ui, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}
body {
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }
::selection { background: var(--accent-glow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }


/* ==========================================================
   SCROLL PROGRESS BAR
   ========================================================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  z-index: 200;
  transition: width .1s linear;
  pointer-events: none;
}


/* ---- Skip ---- */
.skip-link {
  position: absolute; top: -60px; left: 1rem;
  background: var(--accent); color: var(--dark);
  padding: .5rem 1rem; font-size: .875rem;
  border-radius: 0 0 4px 4px; z-index: 200;
  text-decoration: none; transition: top .2s;
  font-weight: 600;
}
.skip-link:focus { top: 0; }


/* ---- Layout ---- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }

.label {
  font-family: var(--body);
  font-size: .8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--ink-3); margin-bottom: 3rem;
}

.section-intro { max-width: 680px; margin-bottom: 3rem; }
.section-intro h2 { margin-bottom: 1.25rem; }
.section-intro p { color: var(--ink-2); }

.two-col {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem; align-items: start;
}


/* ---- Typography ---- */
h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.01em;
  font-style: normal;
}

h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.005em;
}


/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--body);
  font-size: .9375rem; font-weight: 600;
  letter-spacing: .02em;
  padding: 1rem 2.125rem;
  border: none; border-radius: 6px;
  cursor: pointer; text-decoration: none;
  transition: all .35s cubic-bezier(.16,1,.3,1);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dk) 100%);
  color: var(--white);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(20,184,166,.35), 0 0 0 1px rgba(20,184,166,.2);
}
.btn-primary:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn-outline {
  background: transparent;
  color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.3);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.5);
  color: var(--white);
  transform: translateY(-2px);
}
.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.btn-full { width: 100%; justify-content: center; }
.btn-arrow { transition: transform .35s cubic-bezier(.16,1,.3,1); font-size: 1.1em; }
.btn:hover .btn-arrow { transform: translateX(5px); }

/* Shimmer effect on hero CTA */
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  transition: none;
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { left: -100%; }
  50% { left: 150%; }
}


/* ==========================================================
   NAV — Glassmorphism
   ========================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav.scrolled {
  background: rgba(245,242,236,.8);
  border-bottom-color: var(--rule);
  box-shadow: 0 1px 20px rgba(0,0,0,.06);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 2rem;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--accent);
  transition: color .3s;
}
.nav-logo:hover { color: var(--accent-dk); }
.logo-mark { flex-shrink: 0; }
.logo-text {
  font-family: var(--body);
  font-size: .95rem; font-weight: 600;
  letter-spacing: .2em; color: var(--ink);
  transition: color .3s;
}
.logo-sub { font-weight: 400; color: var(--ink-2); transition: color .3s; }

.nav-links {
  display: flex; align-items: center; gap: 2rem;
}

.nav-link {
  font-size: .875rem; font-weight: 400;
  color: var(--ink-2); text-decoration: none;
  position: relative;
  transition: color .25s;
}
/* Animated underline from center */
.nav-link::after {
  content: ''; position: absolute;
  bottom: -3px; left: 50%; width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0) translateX(-50%); transform-origin: center;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1) translateX(-50%); }

/* Nav on dark hero */
.nav:not(.scrolled) .nav-logo { color: var(--white); }
.nav:not(.scrolled) .logo-text { color: rgba(255,255,255,.9); }
.nav:not(.scrolled) .logo-sub { color: rgba(255,255,255,.5); }
.nav:not(.scrolled) .nav-link { color: rgba(255,255,255,.7); }
.nav:not(.scrolled) .nav-link:hover { color: var(--white); }
.nav:not(.scrolled) .nav-link::after { background: var(--white); }
.nav:not(.scrolled) .ham-line { background: var(--white); }

.nav-cta {
  font-family: var(--body);
  font-size: .8125rem; font-weight: 600;
  letter-spacing: .04em; color: var(--white);
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  border-radius: 6px;
  padding: .55rem 1.25rem;
  text-decoration: none; display: flex; align-items: center; gap: .4rem;
  transition: all .3s cubic-bezier(.16,1,.3,1);
}
.nav-cta:hover {
  box-shadow: 0 4px 16px rgba(20,184,166,.3);
  transform: translateY(-1px);
}
.nav-arrow { font-size: 1.1em; transition: transform .3s cubic-bezier(.16,1,.3,1); }
.nav-cta:hover .nav-arrow { transform: translateX(3px); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer; padding: 6px;
  z-index: 101;
}
.ham-line {
  display: block;
  width: 100%; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .3s;
}
.nav-hamburger.open .ham-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open .ham-line:nth-child(2) { opacity: 0; }
.nav-hamburger.open .ham-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Panel — lives outside <nav> to avoid iOS stacking bugs */
.nav-mobile {
  display: none;
}

@media (max-width: 768px) {
  .nav-mobile.open {
    display: flex;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 150;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 2rem;
  }
}
.nav-mobile-link {
  display: block;
  width: 100%;
  max-width: 320px;
  text-align: center;
  padding: 1.25rem 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color .2s;
}
.nav-mobile-link:first-child {
  border-top: 1px solid var(--rule);
}
.nav-mobile-link:hover {
  color: var(--accent);
}
.nav-mobile-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 2rem;
  padding: .875rem 2rem;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dk) 100%);
  border-radius: 6px;
  text-decoration: none;
  transition: box-shadow .3s, transform .3s;
}
.nav-mobile-cta:hover {
  box-shadow: 0 8px 30px rgba(20,184,166,.35);
  transform: translateY(-2px);
}


/* ==========================================================
   HERO — Slideshow background with overlay
   ========================================================== */
.hero {
  padding: 10rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
}
/* Dark overlay on top of slideshow */
.hero-slideshow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,12,20,.82) 0%, rgba(8,12,20,.88) 60%, rgba(8,12,20,.95) 100%);
  z-index: 1;
}

.hero > .container { position: relative; z-index: 2; }
.hero-content { max-width: 740px; position: relative; z-index: 2; }

.hero-geo {
  position: absolute;
  right: -2rem; top: 50%; transform: translateY(-55%);
  width: 340px; height: 340px;
  color: var(--accent);
  pointer-events: none;
  animation: geoSpin 60s linear infinite;
  opacity: .5;
}

@keyframes geoSpin {
  from { transform: translateY(-55%) rotate(0deg); }
  to   { transform: translateY(-55%) rotate(360deg); }
}

/* Hero text clip-path reveal */
.hero-line {
  display: inline-block;
  clip-path: inset(100% 0 0 0);
  animation: clipReveal .8s cubic-bezier(.16,1,.3,1) both;
}
.hero-line:nth-child(3) {
  animation-delay: .15s;
}

@keyframes clipReveal {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.hero-headline {
  font-family: var(--display);
  font-size: clamp(2.75rem, 5.5vw, 4.75rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.015em;
  color: var(--white);
}

.hero-rule {
  width: 52px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  margin: 2rem 0 2.25rem;
  transform-origin: left;
  animation: drawLine .7s cubic-bezier(.16,1,.3,1) .4s both;
}

.hero-body {
  max-width: 560px;
  animation: fadeUp .6s ease-out .6s both;
}
.hero-body p {
  font-size: 1.125rem; line-height: 1.8;
  color: rgba(255,255,255,.85); margin-bottom: 2.25rem;
}
.hero-diff {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: 1.5rem;
  margin-bottom: 0;
  letter-spacing: .01em;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes drawLine {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: scaleX(1); }
}


/* ==========================================================
   INLINE QUICK CTA
   ========================================================== */
.section-quickcta {
  padding: 3.5rem 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.section-quickcta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(20,184,166,.08) 0%, transparent 60%);
  pointer-events: none;
}
.quickcta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
  z-index: 1;
}
.quickcta-text h3 {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.quickcta-text p {
  color: var(--on-dark);
  font-size: .9375rem;
  opacity: .7;
  max-width: 420px;
}
.quickcta-form {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
}
.quickcta-form input[type="email"] {
  width: 280px;
  padding: .875rem 1.25rem;
  font-family: var(--body);
  font-size: .9375rem;
  color: var(--white);
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: 6px;
  transition: border-color .3s, box-shadow .3s, background .3s;
  -webkit-appearance: none;
}
.quickcta-form input[type="email"]::placeholder {
  color: rgba(255,255,255,.4);
}
.quickcta-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,.12);
  box-shadow: 0 0 0 4px rgba(20,184,166,.15);
}
.quickcta-ok p {
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .quickcta-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .quickcta-text p { max-width: none; }
  .quickcta-form {
    flex-direction: column;
    width: 100%;
  }
  .quickcta-form input[type="email"] { width: 100%; }
}


/* ==========================================================
   STICKY FLOATING CTA
   ========================================================== */
.sticky-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .875rem 1.75rem;
  font-family: var(--body);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--white);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dk) 100%);
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(20,184,166,.3), 0 2px 8px rgba(0,0,0,.15);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .4s, transform .4s, box-shadow .3s, background .3s;
}
.sticky-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-cta:hover {
  box-shadow: 0 12px 40px rgba(20,184,166,.4), 0 4px 12px rgba(0,0,0,.2);
  transform: translateY(-2px);
}
.sticky-cta .btn-arrow {
  transition: transform .3s;
}
.sticky-cta:hover .btn-arrow {
  transform: translateX(4px);
}

/* Lock scroll when menu open */
html.menu-open,
html.menu-open body {
  overflow: hidden;
  touch-action: none;
  -webkit-overflow-scrolling: none;
}

/* Hide sticky CTA when nav menu is open */
html.menu-open .sticky-cta {
  opacity: 0;
  pointer-events: none;
}

/* Hide when near the contact section (JS adds .near-contact) */
.sticky-cta.near-contact {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

@media (max-width: 480px) {
  .sticky-cta {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: .75rem 1.5rem;
    font-size: .8125rem;
  }
}


/* ==========================================================
   IMAGE BAND (between Quick CTA and Services)
   ========================================================== */
.image-band {
  position: relative;
  height: 360px;
  overflow: hidden;
}
.image-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.4) brightness(.6) contrast(1.1);
  transition: transform 8s ease-out;
}
.image-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    var(--bg) 0%,
    transparent 15%,
    transparent 85%,
    var(--bg-alt) 100%
  );
  pointer-events: none;
}


/* ==========================================================
   STATS — Rich dark gradient with grain
   ========================================================== */
.section-stats {
  background: var(--dark);
  padding: 4.25rem 0;
  position: relative;
  overflow: hidden;
}
/* Radial gradient mesh */
.section-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(20,184,166,.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(212,168,83,.06) 0%, transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 80%, rgba(20,184,166,.04) 0%, transparent 60%);
  pointer-events: none;
}
/* Noise/grain texture */
.section-stats::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  pointer-events: none;
}

.section-stats .container { position: relative; z-index: 1; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem; text-align: center;
}
.stat {
  position: relative;
}
.stat-num {
  display: block;
  font-family: var(--display);
  font-size: clamp(3.5rem, 7vw, 5.25rem);
  font-weight: 800; line-height: 1;
  color: var(--gold); margin-bottom: .75rem;
  transition: filter 1s ease-out, text-shadow 1s ease-out;
}
/* Blur-in effect — starts blurred, JS removes this class */
.stat-num.blur-in {
  filter: blur(8px);
}
/* Glow pulse after count */
.stat-num.glow {
  text-shadow: 0 0 30px rgba(212,168,83,.3), 0 0 60px rgba(212,168,83,.15);
}
.stat-desc {
  display: block; font-size: .9375rem;
  color: var(--on-dark); opacity: .8;
  letter-spacing: .02em;
  font-weight: 500;
}
.stat.reveal:nth-child(2) { transition-delay: .15s; }
.stat.reveal:nth-child(3) { transition-delay: .30s; }


/* ==========================================================
   URGENCY
   ========================================================== */
.section-urgency {
  border-top: 1px solid var(--rule);
  /* Subtle paper texture */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  background-color: var(--bg);
}

.section-urgency .two-col-left h2 {
  position: sticky; top: 100px;
}

.section-urgency .two-col-right p {
  color: var(--ink-2); margin-bottom: 1.25rem;
}
.section-urgency .two-col-right p:last-child { margin-bottom: 0; }

.urgency-callout {
  margin-top: 2rem;
  padding: 1.75rem 2rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
}
.urgency-callout p {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 0;
}
.urgency-callout .callout-proof {
  margin-top: .75rem;
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink-2);
}


/* ==========================================================
   HOW IT WORKS
   ========================================================== */
.section-how {
  background-color: var(--bg);
}
.how-heading { margin-bottom: 3rem; }
.how-timeline {
  font-size: 1.0625rem;
  color: var(--accent-dk);
  font-weight: 600;
  margin-top: -.5rem;
  margin-bottom: 2.5rem;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.how-step {
  position: relative;
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--rule);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.how-step::after { display: none; }

.how-num {
  display: block;
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.how-step h3 { margin-bottom: .75rem; }

.how-step p {
  font-size: .9375rem;
  line-height: 1.75;
  color: var(--ink-2);
}

.how-step.reveal:nth-child(2) { transition-delay: .1s; }
.how-step.reveal:nth-child(3) { transition-delay: .2s; }

.how-cta { margin-top: 3rem; }

@media (max-width: 768px) {
  .how-grid { grid-template-columns: 1fr; gap: 2rem; }
  .how-step::after { display: none; }
}


/* ==========================================================
   SERVICES (42001) — 3D Tilt Cards
   ========================================================== */
.section-services {
  background: var(--bg-alt);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  perspective: 1000px;
}

.card-service {
  background: var(--white);
  padding: 2rem 2rem 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--rule);
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(.16,1,.3,1),
              box-shadow .4s cubic-bezier(.16,1,.3,1),
              border-color .3s;
}

/* Animated accent line at top */
.card-accent {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dk));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.card-service:hover .card-accent {
  transform: scaleX(1);
}

.card-num {
  display: block; font-family: var(--body);
  font-size: .8rem; font-weight: 500;
  color: var(--gold); letter-spacing: .1em;
  margin-bottom: 1.25rem;
}
.card-service h3 { margin-bottom: .875rem; }
.card-service p { font-size: .9375rem; line-height: 1.75; color: var(--ink-2); }

.card-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: .875rem; font-weight: 500;
  color: var(--accent); text-decoration: none;
  transition: color .2s, transform .2s;
}
.card-link:hover { color: var(--gold-dk); transform: translateX(3px); }

.card-service.reveal:nth-child(2) { transition-delay: .1s; }
.card-service.reveal:nth-child(3) { transition-delay: .2s; }

@media (hover: hover) {
  .card-service:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,.1), 0 0 0 1px rgba(20,184,166,.1);
  }
}


/* ==========================================================
   BEYOND 42001 — 3D Tilt Cards
   ========================================================== */
.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  perspective: 1000px;
}
.card-capability {
  padding: 1.75rem 2rem;
  border-left: 3px solid var(--gold);
  border-top: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--white);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
  transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(.16,1,.3,1),
              box-shadow .4s cubic-bezier(.16,1,.3,1),
              border-color .3s;
}
.card-capability h3 { margin-bottom: .75rem; }
.card-capability p { font-size: .9375rem; line-height: 1.7; color: var(--ink-2); }

.card-capability.reveal:nth-child(2) { transition-delay: .08s; }
.card-capability.reveal:nth-child(3) { transition-delay: .16s; }
.card-capability.reveal:nth-child(4) { transition-delay: .24s; }

@media (hover: hover) {
  .card-capability:hover {
    box-shadow: 0 16px 32px rgba(0,0,0,.08);
    border-left-color: var(--accent);
  }
}


/* ==========================================================
   FRAMEWORKS
   ========================================================== */
.section-frameworks {
  background: var(--bg-alt);
  padding: 5.5rem 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
}

.fw-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem; align-items: start;
}

.fw-left h2 { margin-bottom: 1.25rem; }
.fw-sub { color: var(--ink-2); }

.fw-right { display: flex; flex-direction: column; gap: 2rem; }

.fw-group-name {
  display: block; font-size: .75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--ink-3); margin-bottom: .875rem;
}

.pills { display: flex; flex-wrap: wrap; gap: .5rem; }

.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 100px;
  font-size: .875rem; font-weight: 500;
  color: var(--ink-2); background: var(--bg);
  white-space: nowrap;
  transition: all .3s cubic-bezier(.16,1,.3,1);
  cursor: default;
}

.pill-primary {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  font-weight: 600;
  animation: pillPulse 4s ease-in-out infinite;
}

@keyframes pillPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20,184,166,0); }
  50% { box-shadow: 0 0 0 3px rgba(20,184,166,.08); }
}

@media (hover: hover) {
  .pill:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(20,184,166,.15);
  }
  .pill-primary:hover {
    box-shadow: 0 4px 20px rgba(20,184,166,.25);
    transform: translateY(-3px);
    animation: none;
  }
}

.fw-more {
  margin-top: 1.5rem;
  font-size: .875rem;
  color: var(--ink-3);
}
.fw-more a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.fw-more a:hover {
  color: var(--accent-dk);
}

/* Overlap callout */
.fw-callout {
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: var(--bg);
  transition: box-shadow .3s;
}
.fw-callout:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.fw-callout p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
}
.fw-callout strong {
  color: var(--gold-dk);
  font-weight: 700;
}

/* Relationship diagram */
/* Interactive Diagram */
.fw-diagram {
  margin-top: 4rem;
  text-align: center;
}
.fw-diagram-label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--ink-3);
  margin-bottom: .5rem;
}
.fw-diagram-hint {
  font-size: .8125rem;
  color: var(--ink-3);
  margin-bottom: 2.5rem;
  opacity: .7;
}

.diagram-wrap {
  position: relative;
  max-width: 720px;
  width: 100%;
  height: 480px;
  margin: 0 auto;
  overflow: hidden;
}

/* SVG connection lines */
.dg-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.dg-line {
  transition: stroke .4s, stroke-width .4s, opacity .4s;
  stroke-dasharray: none;
}
.diagram-wrap.has-hover .dg-line {
  opacity: .15;
  stroke-width: 1;
}
.diagram-wrap.has-hover .dg-line.active {
  opacity: 1;
  stroke: var(--accent);
  stroke-width: 3;
}

/* Center node */
.dg-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 110px; height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dk) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 0 12px var(--accent-glow), 0 8px 32px rgba(20,184,166,.25);
  animation: centerPulse 3s ease-in-out infinite;
}
@keyframes centerPulse {
  0%, 100% { box-shadow: 0 0 0 12px var(--accent-glow), 0 8px 32px rgba(20,184,166,.25); }
  50% { box-shadow: 0 0 0 20px rgba(20,184,166,.08), 0 8px 40px rgba(20,184,166,.3); }
}
.dg-center-label {
  color: var(--white);
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

/* Outer nodes */
.dg-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  z-index: 3;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.dg-node:hover {
  transform: scale(1.1);
}
.dg-dot {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--rule);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  position: relative;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.dg-dot::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  transition: background .3s, transform .3s;
}
.dg-node:hover .dg-dot {
  border-color: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-glow), 0 4px 16px rgba(20,184,166,.2);
}
.dg-node:hover .dg-dot::after {
  background: var(--accent);
  transform: translate(-50%,-50%) scale(1.2);
}
.dg-name {
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  transition: color .3s;
}
.dg-node:hover .dg-name {
  color: var(--accent);
}

/* Tooltips */
.dg-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 240px;
  padding: 1rem 1.25rem;
  background: var(--dark);
  color: var(--on-dark);
  border-radius: 8px;
  font-size: .8125rem;
  line-height: 1.55;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s, transform .3s;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.dg-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--dark);
}
.dg-tooltip strong {
  display: block;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: .35rem;
  font-size: .875rem;
}
.dg-tooltip span {
  color: rgba(212,208,200,.8);
}
.dg-node:hover .dg-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(12px);
}

/* Left-side nodes — align tooltip to left edge */
.dg-node[style*="left:8%"] .dg-tooltip {
  left: 0;
  transform: translateX(0) translateY(8px);
}
.dg-node[style*="left:8%"]:hover .dg-tooltip {
  transform: translateX(0) translateY(12px);
}
.dg-node[style*="left:8%"] .dg-tooltip::before {
  left: 24px;
  transform: none;
}

/* Right-side nodes — align tooltip to right edge */
.dg-node[style*="right:8%"] .dg-tooltip {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(8px);
}
.dg-node[style*="right:8%"]:hover .dg-tooltip {
  transform: translateX(0) translateY(12px);
}
.dg-node[style*="right:8%"] .dg-tooltip::before {
  left: auto;
  right: 24px;
  transform: none;
}

/* Bottom nodes — show tooltip above */
.dg-node[style*="bottom:8%"] .dg-tooltip,
.dg-node[style*="bottom:0"] .dg-tooltip {
  top: auto;
  bottom: 100%;
  transform: translateX(-50%) translateY(-8px);
}
.dg-node[style*="bottom:8%"]:hover .dg-tooltip,
.dg-node[style*="bottom:0"]:hover .dg-tooltip {
  transform: translateX(-50%) translateY(-12px);
}
.dg-node[style*="bottom:8%"] .dg-tooltip::before,
.dg-node[style*="bottom:0"] .dg-tooltip::before {
  bottom: auto;
  top: 100%;
  border-bottom-color: transparent;
  border-top-color: var(--dark);
}

/* Bottom-left: show above, align left */
.dg-node[style*="bottom:8%"][style*="left:8%"] .dg-tooltip {
  left: 0;
  transform: translateX(0) translateY(-8px);
}
.dg-node[style*="bottom:8%"][style*="left:8%"]:hover .dg-tooltip {
  transform: translateX(0) translateY(-12px);
}
.dg-node[style*="bottom:8%"][style*="left:8%"] .dg-tooltip::before {
  left: 24px;
}

/* Bottom-right: show above, align right */
.dg-node[style*="bottom:8%"][style*="right:8%"] .dg-tooltip {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(-8px);
}
.dg-node[style*="bottom:8%"][style*="right:8%"]:hover .dg-tooltip {
  transform: translateX(0) translateY(-12px);
}
.dg-node[style*="bottom:8%"][style*="right:8%"] .dg-tooltip::before {
  left: auto;
  right: 24px;
}

@media (max-width: 768px) {
  .diagram-wrap { height: 400px; overflow: hidden; }
  .dg-center { width: 80px; height: 80px; }
  .dg-center-label { font-size: .85rem; }
  .dg-dot { width: 36px; height: 36px; }
  .dg-dot::after { width: 10px; height: 10px; }
  .dg-name { font-size: .8rem; }
  .dg-tooltip { width: 200px; font-size: .75rem; }
}
@media (max-width: 480px) {
  .diagram-wrap { height: 360px; }
  .dg-node { gap: .3rem; }
  .dg-tooltip { width: 160px; font-size: .7rem; padding: .75rem 1rem; }
  .fw-callout { padding: 1.25rem 1.5rem; }
}


/* ==========================================================
   CREDENTIALS (Dark) — Background image + glass cards
   ========================================================== */
.section-creds {
  background: var(--dark);
  position: relative;
  color: var(--on-dark);
  overflow: hidden;
}
/* Background image */
.creds-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.creds-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.5) brightness(.15) contrast(1.1);
}
.creds-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(8,12,20,.95) 0%, rgba(14,20,32,.88) 40%, rgba(21,28,44,.92) 100%),
    radial-gradient(ellipse 50% 50% at 30% 70%, rgba(20,184,166,.06) 0%, transparent 70%);
}
/* Noise overlay */
.section-creds::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  opacity: .3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  pointer-events: none;
}

.section-creds .container { position: relative; z-index: 2; }
.section-creds .label { color: rgba(255,255,255,.35); }

.creds-pos {
  max-width: 680px;
  margin-bottom: 2rem;
}
.creds-pos p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(255,255,255,.6);
  font-weight: 500;
  font-family: var(--display);
}

.creds-heading { color: var(--white); margin-bottom: 2.5rem; font-weight: 800; }

.creds-list { max-width: 740px; }
.creds-list li {
  display: flex; gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: .5rem;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 1rem; line-height: 1.65;
  color: rgba(255,255,255,.7);
  transition: all .3s cubic-bezier(.16,1,.3,1);
}
.creds-list li:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.12);
  transform: translateX(4px);
}
.cred-dot {
  display: block; width: 8px; height: 8px;
  background: var(--gold); flex-shrink: 0;
  margin-top: .55rem; border-radius: 2px;
}
.creds-list li.reveal:nth-child(2) { transition-delay: .06s; }
.creds-list li.reveal:nth-child(3) { transition-delay: .12s; }
.creds-list li.reveal:nth-child(4) { transition-delay: .18s; }

.creds-cta { margin-top: 3rem; }


/* ==========================================================
   CASE STUDY
   ========================================================== */
.section-case {
  background: var(--bg-alt);
}

.case-grid {
  max-width: 740px;
}

.case-card {
  padding: 2.5rem 2.5rem 2rem;
  border-left: 3px solid var(--gold);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  background: var(--white);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
  transition: box-shadow .3s, transform .3s;
}
.case-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.case-card h3 {
  margin-bottom: .25rem;
}
.case-type {
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.case-card > p {
  font-size: .9375rem;
  line-height: 1.75;
  color: var(--ink-2);
}
.case-meta {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.case-stat-label {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-3);
  margin-bottom: .35rem;
}
.case-stat-value {
  font-size: .9375rem;
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 768px) {
  .case-grid { grid-template-columns: 1fr; }
  .case-card { padding: 2rem 1.75rem 1.75rem; }
}


/* ==========================================================
   FAQ — Smooth accordion with accent highlights
   ========================================================== */
.faq-heading { margin-bottom: 2.5rem; }

.faq-list { max-width: 740px; overflow-x: hidden; }

.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-item:first-child { border-top: 1px solid var(--rule); }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  padding: 1.25rem 1rem;
  margin: 0 -1rem;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  transition: color .3s, background-color .3s;
  width: calc(100% + 2rem);
}
.faq-q:hover { color: var(--accent); background: rgba(20,184,166,.04); }

.faq-icon {
  flex-shrink: 0;
  color: var(--ink-3);
  transition: transform .4s cubic-bezier(.16,1,.3,1), color .3s;
}
/* Rotate the whole icon to form X on open */
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}
.faq-v {
  transition: transform .4s cubic-bezier(.16,1,.3,1);
  transform-origin: center;
}
.faq-item.open .faq-v { transform: scaleY(1); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.22,1,.36,1), padding .5s cubic-bezier(.22,1,.36,1);
}
.faq-item.open .faq-a {
  max-height: 300px;
}
.faq-a p {
  padding-bottom: 1.5rem;
  font-size: .9375rem;
  line-height: 1.75;
  color: var(--ink-2);
}

.faq-item.reveal:nth-child(2) { transition-delay: .04s; }
.faq-item.reveal:nth-child(3) { transition-delay: .08s; }
.faq-item.reveal:nth-child(4) { transition-delay: .12s; }
.faq-item.reveal:nth-child(5) { transition-delay: .16s; }
.faq-item.reveal:nth-child(6) { transition-delay: .20s; }
.faq-item.reveal:nth-child(7) { transition-delay: .24s; }


/* ==========================================================
   FREE GUIDE (after stats, before urgency)
   ========================================================== */
.section-guide {
  padding: 3rem 0;
  background: var(--bg);
}
.guide-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 3rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
  position: relative;
}
.guide-badge {
  display: inline-block;
  padding: .35rem 1rem;
  font-family: var(--body);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--white);
  background: var(--accent);
  border-radius: 50px;
  margin-bottom: 1.25rem;
}
.guide-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: .75rem;
}
.guide-card > p {
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 1.5rem;
}
.guide-form {
  display: flex;
  gap: .75rem;
  justify-content: center;
  align-items: center;
}
.guide-form input[type="email"] {
  width: 280px;
  padding: .875rem 1.25rem;
  font-family: var(--body);
  font-size: .9375rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--rule);
  border-radius: 6px;
  transition: border-color .3s, box-shadow .3s;
  -webkit-appearance: none;
}
.guide-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.guide-card .lead-ok p {
  font-weight: 600;
  color: var(--accent);
  font-size: 1rem;
  margin-top: .5rem;
}

@media (max-width: 640px) {
  .guide-card { padding: 2rem 1.5rem; }
  .guide-form { flex-direction: column; }
  .guide-form input[type="email"] { width: 100%; }
}


/* ==========================================================
   CONTACT — Floating labels + accent glow inputs
   ========================================================== */
.section-contact {
  background: var(--bg-alt);
}

.contact-layout .two-col-left h2 { margin-bottom: 1.25rem; }
.contact-layout .two-col-left p { color: var(--ink-2); margin-bottom: 2rem; max-width: 360px; }

.contact-email {
  display: inline-block; font-weight: 500;
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .25s, color .25s;
}
.contact-email:hover { border-bottom-color: var(--accent); color: var(--accent-dk); }

.form { max-width: 520px; }

.field {
  margin-bottom: 1.5rem;
  position: relative;
}
.field label {
  display: block; font-size: .8rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: .5rem;
  transition: color .3s;
}
.field:focus-within label {
  color: var(--accent);
}
.field input, .field textarea {
  width: 100%; padding: .875rem 1rem;
  font-family: var(--body); font-size: 1rem;
  color: var(--ink); background: var(--white);
  border: 1.5px solid var(--rule); border-radius: 6px;
  transition: border-color .3s, box-shadow .3s;
  -webkit-appearance: none;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.field textarea { resize: vertical; min-height: 100px; }

/* Submit button loading state */
.btn.is-loading {
  pointer-events: none;
  opacity: .7;
}
.btn.is-loading .btn-arrow {
  animation: spin .8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-ok { padding: 2rem; text-align: center; }
.form-ok p { font-family: var(--display); font-size: 1.2rem; font-weight: 600; color: var(--accent); }


/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: var(--dark);
  padding: 2.75rem 0;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}
.footer-row {
  display: flex; justify-content: space-between;
  align-items: center; font-size: .875rem;
}
.footer-copy { color: rgba(245,242,236,.8); font-weight: 500; }
.footer-info { color: rgba(245,242,236,.4); }
.footer-info a {
  color: rgba(245,242,236,.6); text-decoration: none;
  transition: color .2s;
}
.footer-info a:hover { color: rgba(245,242,236,.9); }
.footer-dot { margin: 0 .75rem; opacity: .4; }


/* ==========================================================
   REVEAL — More dramatic easing
   ========================================================== */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1),
              transform .8s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }


/* ==========================================================
   REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-headline, .hero-rule, .hero-body { animation: none; }
  .hero-line { clip-path: none; animation: none; }
  .card-service, .card-capability, .pill { transition: none !important; }
  .faq-a { transition: none; }
  .faq-v { transition: none; }
  .faq-icon { transition: none; }
  .ham-line { transition: none; }
  .hero-geo { animation: none; }
  .btn-shimmer::after { animation: none; display: none; }
  .pill-primary { animation: none; }
  .stat-num { filter: none !important; transition: none; }
  .stat-num.blur-in { filter: none; }
  .scroll-progress { display: none; }
  .card-accent { transform: scaleX(1); }
  .dg-center { animation: none; }
  .dg-node { transition: none; }
  .dg-dot, .dg-dot::after { transition: none; }
  .dg-tooltip { transition: none; }
  .dg-line { transition: none; }
  .sticky-cta { transition: none; }
}


/* ==========================================================
   RESPONSIVE 1024
   ========================================================== */
@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .cards-2 { gap: 1rem; }
  .hero { padding: 9rem 0 5rem; }
  .section { padding: 5rem 0; }
  .section-stats { padding: 3.5rem 0; }
  .section-frameworks { padding: 4.5rem 0; }
  .label { margin-bottom: 2.5rem; }
  .section-urgency .two-col-left h2 { position: static; }
  .contact-layout .two-col-left p { max-width: none; }
  .fw-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-geo { width: 240px; height: 240px; right: 0; opacity: .3; }
  .image-band { height: 280px; }
}

/* RESPONSIVE 768 */
@media (max-width: 768px) {
  .cards-3, .cards-2 { grid-template-columns: 1fr; gap: 1.25rem; }
  .stats-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { padding: 8rem 0 4rem; }
  .hero-content, .hero-body { max-width: none; }
  .section { padding: 4rem 0; }
  .section-stats { padding: 3rem 0; }
  .section-frameworks { padding: 4rem 0; }
  .label { margin-bottom: 2rem; }
  .section-intro, .fw-heading { margin-bottom: 2rem; }
  body { font-size: 1rem; }
  .image-band { height: 220px; }

  .nav-hamburger { display: flex; }
  .nav-links--desktop { display: none !important; }
  .hero-geo { display: none; }
}

/* RESPONSIVE 480 */
@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .nav-inner { padding: 0 1.25rem; }
  .logo-sub { font-size: .7rem; }
  .hero { padding: 7rem 0 3.5rem; }
  .hero-body p { font-size: 1rem; }
  .footer-row { flex-direction: column; gap: .75rem; text-align: center; }
  .btn { padding: .875rem 1.5rem; font-size: .875rem; }
  .pill { padding: .4rem .875rem; font-size: .8125rem; }
  .image-band { height: 180px; }
  .creds-list li { padding: 1rem; }
}
