/* ============================================================
   Atlantis Billing Services — Design System
   Ambulance / EMS Billing · Houston, TX
   Ocean-navy base · aqua→teal gradients · EMS red accent
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Base surfaces (deep ocean navy) */
  --bg-900: #04090f;
  --bg-800: #060e18;
  --bg-700: #0a1626;
  --surface: #0c1b2e;
  --surface-2: #0f2238;
  --surface-glass: rgba(16, 36, 58, 0.55);
  --line: rgba(120, 180, 220, 0.14);
  --line-strong: rgba(120, 180, 220, 0.28);

  /* Brand — Atlantis aqua/teal */
  --aqua: #22d3ee;
  --teal: #2dd4bf;
  --sky: #38bdf8;
  --deep: #0ea5e9;
  --violet: #8b7bf7;

  /* EMS "life" accent */
  --ems: #ff4d5e;
  --ems-soft: #ff7a86;

  /* Text */
  --text: #eaf4fb;
  --text-soft: #c2d4e4;
  --text-muted: #8aa2b8;
  --text-faint: #627a91;

  /* Gradients */
  --grad-brand: linear-gradient(120deg, var(--aqua) 0%, var(--sky) 45%, var(--violet) 100%);
  --grad-brand-2: linear-gradient(120deg, var(--teal) 0%, var(--aqua) 55%, var(--sky) 100%);
  --grad-ems: linear-gradient(120deg, var(--ems) 0%, #ff8a5b 100%);
  --grad-text: linear-gradient(100deg, #8ff0ff 0%, #5bc8ff 40%, #b9a7ff 100%);

  /* Effects */
  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 0 1px var(--line), 0 30px 80px -40px rgba(34, 211, 238, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 76px;

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--font-body);
  background: var(--bg-900);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- Ambient background ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(800px 600px at 0% 20%, rgba(139, 123, 247, 0.10), transparent 55%),
    radial-gradient(700px 700px at 60% 110%, rgba(45, 212, 191, 0.10), transparent 60%),
    var(--bg-900);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 40%, transparent 100%);
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(70px, 9vw, 130px); position: relative; }
.section--tight { padding-block: clamp(50px, 6vw, 90px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--aqua);
  padding: 7px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: rgba(34, 211, 238, 0.06);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--aqua); box-shadow: 0 0 10px var(--aqua);
}
.eyebrow--ems { color: var(--ems-soft); border-color: rgba(255, 77, 94, 0.3); background: rgba(255, 77, 94, 0.06); }
.eyebrow--ems::before { background: var(--ems); box-shadow: 0 0 10px var(--ems); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
.h-section { font-size: clamp(1.9rem, 4vw, 3rem); margin-top: 18px; }
.lead { color: var(--text-soft); font-size: clamp(1rem, 1.4vw, 1.18rem); max-width: 62ch; }
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 14px 26px; border-radius: 100px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary {
  background: var(--grad-brand); color: #04121c;
  box-shadow: 0 14px 34px -12px rgba(56, 189, 248, 0.6);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -12px rgba(56, 189, 248, 0.75); }
.btn--ems {
  background: var(--grad-ems); color: #fff;
  box-shadow: 0 14px 34px -12px rgba(255, 77, 94, 0.6);
}
.btn--ems:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -12px rgba(255, 77, 94, 0.75); }
.btn--ghost {
  background: rgba(255,255,255,0.03); color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--aqua); background: rgba(34,211,238,0.08); }
.btn--lg { padding: 17px 34px; font-size: 1rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  color: var(--aqua);
}
.text-link svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.text-link:hover svg { transform: translateX(5px); }

/* ---------- Header / Nav ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(5, 12, 22, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
  height: 66px;
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: 0.02em;
  color: var(--text);
}
.brand__sub {
  font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--aqua);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 14px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 500; color: var(--text-soft);
  transition: color 0.25s, background 0.25s;
}
.nav__link:hover, .nav__item:hover > .nav__link { color: var(--text); background: rgba(255,255,255,0.04); }
.nav__link .chev { width: 14px; height: 14px; opacity: 0.6; transition: transform 0.3s; }
.nav__item:hover .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(10px);
  min-width: 290px; padding: 10px;
  background: rgba(10, 22, 38, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
  display: grid; gap: 2px;
}
.nav__item:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 13px; border-radius: 10px;
  font-size: 0.88rem; color: var(--text-soft); transition: background 0.2s, color 0.2s;
}
.dropdown a span { font-size: 0.74rem; color: var(--text-muted); }
.dropdown a:hover { background: rgba(34,211,238,0.08); color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-cta { padding: 11px 20px; font-size: 0.88rem; }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(4, 9, 15, 0.97); backdrop-filter: blur(14px);
  padding: calc(var(--nav-h) + 20px) var(--gutter) 40px;
  overflow-y: auto;
  transform: translateY(-100%); transition: transform 0.5s var(--ease);
  display: flex; flex-direction: column; gap: 6px;
}
body.menu-open .mobile-nav { transform: translateY(0); }
.mobile-nav a { padding: 14px 6px; font-family: var(--font-display); font-size: 1.1rem; border-bottom: 1px solid var(--line); color: var(--text-soft); }
.mobile-nav a:hover { color: var(--aqua); }
.mobile-nav .m-group-label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--aqua); margin-top: 18px; padding: 6px; }
.mobile-nav .m-sub { padding-left: 20px; font-size: 0.98rem; }
.mobile-nav .btn { margin-top: 22px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(50px, 8vw, 90px)); padding-bottom: clamp(60px, 8vw, 110px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.hero__title {
  font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -0.03em;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__sub { margin-top: 26px; font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--text-soft); max-width: 54ch; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero__trust li { display: flex; align-items: center; gap: 9px; font-size: 0.88rem; color: var(--text-muted); }
.hero__trust svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; }

/* Hero visual — animated "claim" dashboard card */
.hero__visual { position: relative; }
.hero-card {
  position: relative; border-radius: var(--radius-lg); padding: 26px;
  background: linear-gradient(160deg, rgba(16,36,58,0.9), rgba(8,18,30,0.9));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 1px;
  background: var(--grad-brand); opacity: 0.5;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.hero-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.hero-card__badge { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.hero-card__dot { display: flex; gap: 6px; }
.hero-card__dot i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.hero-card__dot i:first-child { background: var(--ems); }
.hero-ring { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.ring { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring__track { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 11; }
.ring__fill { fill: none; stroke: url(#ringGrad); stroke-width: 11; stroke-linecap: round; stroke-dasharray: 326; stroke-dashoffset: 326; transition: stroke-dashoffset 1.6s var(--ease); }
.ring.in .ring__fill { stroke-dashoffset: 130; }
.ring__label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring__num { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--text); }
.ring__cap { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.hero-ring__meta p { font-size: 0.82rem; color: var(--text-muted); }
.hero-ring__meta strong { font-family: var(--font-display); font-size: 1.02rem; color: var(--text); display: block; }
.hero-bars { display: grid; gap: 11px; }
.hero-bar { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 12px; }
.hero-bar span { font-size: 0.74rem; color: var(--text-muted); }
.hero-bar__track { height: 8px; border-radius: 6px; background: rgba(255,255,255,0.06); overflow: hidden; }
.hero-bar__fill { height: 100%; border-radius: 6px; background: var(--grad-brand-2); width: 0; transition: width 1.4s var(--ease); }
.hero-float {
  position: absolute; right: -14px; bottom: -18px;
  display: flex; align-items: center; gap: 11px;
  padding: 13px 17px; border-radius: 14px;
  background: rgba(10,22,38,0.94); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); animation: floaty 5s ease-in-out infinite;
}
.hero-float svg { width: 26px; height: 26px; color: var(--teal); }
.hero-float b { font-family: var(--font-display); display: block; font-size: 0.95rem; }
.hero-float small { font-size: 0.72rem; color: var(--text-muted); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Marquee / logos strip ---------- */
.strip { border-block: 1px solid var(--line); padding-block: 22px; }
.strip__inner { display: flex; align-items: center; gap: clamp(26px, 5vw, 60px); flex-wrap: wrap; justify-content: center; }
.strip__item { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-family: var(--font-display); font-size: 0.86rem; letter-spacing: 0.04em; }
.strip__item svg { width: 20px; height: 20px; color: var(--teal); }

/* ---------- Pillars (Insight / Clarity / Strategy) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  position: relative; padding: 30px 26px; border-radius: var(--radius);
  background: var(--surface-glass); border: 1px solid var(--line);
  overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.pillar::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.pillar:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-glow); }
.pillar:hover::after { transform: scaleX(1); }
.pillar__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(140deg, rgba(34,211,238,0.18), rgba(139,123,247,0.14));
  border: 1px solid var(--line-strong);
}
.pillar__icon svg { width: 26px; height: 26px; color: var(--aqua); }
.pillar h3 { font-size: 1.3rem; margin-bottom: 10px; }
.pillar p { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.split--rev .split__media { order: -1; }
.about-panel {
  position: relative; border-radius: var(--radius-lg); padding: 38px 34px;
  background: linear-gradient(160deg, rgba(16,36,58,0.85), rgba(8,18,30,0.8));
  border: 1px solid var(--line-strong); box-shadow: var(--shadow); overflow: hidden;
}
.about-panel::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(34,211,238,0.25), transparent 70%); top: -80px; right: -60px; filter: blur(10px); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; position: relative; }
.about-stat { padding: 18px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); }
.about-stat b { font-family: var(--font-display); font-size: 1.8rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-stat span { display: block; font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- Services grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 30px 26px; border-radius: var(--radius);
  background: var(--surface-glass); border: 1px solid var(--line);
  overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.svc-card__glow { position: absolute; width: 200px; height: 200px; border-radius: 50%; top: -90px; right: -70px; background: radial-gradient(circle, rgba(34,211,238,0.22), transparent 70%); opacity: 0; transition: opacity 0.5s var(--ease); }
.svc-card:hover { transform: translateY(-7px); border-color: var(--line-strong); box-shadow: var(--shadow-glow); }
.svc-card:hover .svc-card__glow { opacity: 1; }
.svc-card__icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(140deg, rgba(34,211,238,0.16), rgba(139,123,247,0.12)); border: 1px solid var(--line-strong); }
.svc-card__icon svg { width: 27px; height: 27px; color: var(--aqua); }
.svc-card h3 { font-size: 1.22rem; }
.svc-card p { color: var(--text-muted); font-size: 0.94rem; flex-grow: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.72rem; font-weight: 500; padding: 6px 12px; border-radius: 100px;
  border: 1px solid var(--line-strong); color: var(--text-soft); background: rgba(255,255,255,0.02);
}
.tag--ems { color: var(--ems-soft); border-color: rgba(255,77,94,0.3); }
.svc-card .text-link { margin-top: 4px; }

/* ---------- Storyboard (scroll-pinned) ---------- */
.storyboard { position: relative; }
.storyboard__track { position: relative; }
.storyboard__stage {
  position: sticky; top: 0; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(80px, 12vh, 130px) 40px;
}
.storyboard__intro { max-width: 720px; margin-bottom: 30px; }
.storyboard__viewport { position: relative; min-height: min(460px, 60vh); }
.story-card {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 54px); align-items: center;
  opacity: 0; transform: translateY(40px) scale(0.98); pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.story-card.active { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.story-card__num { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 700; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.85; }
.story-card__step { font-family: var(--font-display); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--aqua); margin: 16px 0 10px; }
.story-card h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 14px; }
.story-card p { color: var(--text-soft); font-size: 1.02rem; max-width: 46ch; }
.story-visual {
  position: relative; border-radius: var(--radius-lg); padding: 30px; min-height: 300px;
  background: linear-gradient(160deg, rgba(16,36,58,0.85), rgba(8,18,30,0.85));
  border: 1px solid var(--line-strong); box-shadow: var(--shadow); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.story-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 260px at 70% 20%, rgba(34,211,238,0.2), transparent 60%); }
.story-visual svg { width: 100%; max-width: 320px; height: auto; position: relative; z-index: 1; }

.storyboard__controls { display: flex; align-items: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.story-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.story-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 500;
  padding: 9px 15px; border-radius: 100px;
  border: 1px solid var(--line-strong); color: var(--text-muted);
  transition: all 0.3s var(--ease);
}
.story-chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.story-chip.active { color: var(--text); border-color: var(--aqua); background: rgba(34,211,238,0.1); }
.story-chip.active i { opacity: 1; background: var(--aqua); box-shadow: 0 0 8px var(--aqua); }
.story-nav { display: flex; gap: 8px; }
.story-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--text-soft); transition: all 0.3s var(--ease); }
.story-nav button:hover { border-color: var(--aqua); color: var(--text); background: rgba(34,211,238,0.08); }
.story-nav button svg { width: 18px; height: 18px; }
.story-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.story-progress__bar { height: 100%; width: 0; background: var(--grad-brand); transition: width 0.2s linear; }

/* ---------- Zoom storyboard (scroll-pinned camera) ---------- */
.zoomboard { position: relative; }
.zoomboard__track { position: relative; height: 620vh; }
.zoomboard__stage {
  position: sticky; top: 0; height: 100vh; min-height: 620px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--nav-h) + 14px) var(--gutter) 22px;
}
.zoomboard__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.zoomboard__bg img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.1;
  transform: scale(1); transform-origin: center; will-change: transform;
}
.zoomboard__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 50% 48%, transparent, rgba(4, 9, 15, 0.7)),
    linear-gradient(180deg, var(--bg-900) 0%, transparent 26%, transparent 70%, var(--bg-900) 100%);
}
/* Depth rings for the tunnel feel */
.zoomboard__rings { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; pointer-events: none; }
.zoomboard__rings span {
  position: absolute; border-radius: 50%; border: 1px solid rgba(120, 180, 220, 0.12);
  width: 420px; height: 420px; animation: ringPulse 7s var(--ease) infinite;
}
.zoomboard__rings span:nth-child(2) { width: 680px; height: 680px; animation-delay: 1.4s; opacity: 0.7; }
.zoomboard__rings span:nth-child(3) { width: 980px; height: 980px; animation-delay: 2.8s; opacity: 0.5; }
.zoomboard__rings span:nth-child(4) { width: 1320px; height: 1320px; animation-delay: 4.2s; opacity: 0.3; }
@keyframes ringPulse { 0%,100% { transform: scale(0.96); opacity: inherit; } 50% { transform: scale(1.04); } }

.zoomboard__intro { position: relative; z-index: 3; text-align: center; max-width: 720px; margin: 0 auto; flex: 0 0 auto; }
.zoomboard__intro .h-section { margin-top: 14px; }
.zoomboard__hint { color: var(--text-muted); font-size: 0.95rem; margin-top: 12px; }

.zoomboard__scene {
  position: relative; z-index: 2; flex: 1 1 auto;
  width: 100%; max-width: 1020px; margin: 8px auto;
  perspective: 1500px; transform-style: preserve-3d;
}
.zoom-card {
  position: absolute; top: 50%; left: 50%; width: min(940px, 96%);
  transform: translate(-50%, -50%) scale(0.6); opacity: 0;
  transform-origin: center center; will-change: transform, opacity, filter;
  border-radius: var(--radius-lg); padding: clamp(22px, 2.8vw, 36px);
  background: linear-gradient(160deg, rgba(15, 32, 53, 0.95), rgba(7, 16, 27, 0.96));
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-glow);
}
.zoom-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--grad-brand); opacity: 0.45;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.zoom-card__badge { display: flex; align-items: center; gap: 15px; margin-bottom: 16px; }
.zoom-card__num {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.zoom-card__step {
  font-family: var(--font-display); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--aqua); display: inline-flex; align-items: center; gap: 9px;
}
.zoom-card__step::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 9px var(--aqua); }
.zoom-card__body { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(18px, 3vw, 40px); align-items: center; }
.zoom-card h3 { font-size: clamp(1.4rem, 2.6vw, 2.15rem); margin-bottom: 12px; }
.zoom-card__main > p { color: var(--text-soft); font-size: 1rem; }
.zoom-card__points { display: grid; gap: 10px; margin-top: 16px; }
.zoom-card__points li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.92rem; color: var(--text-soft); }
.zoom-card__points svg { width: 20px; height: 20px; color: var(--teal); flex-shrink: 0; margin-top: 1px; }
.zoom-card__tags { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.zoom-card__visual {
  position: relative; border-radius: var(--radius); padding: 16px; min-height: 190px;
  background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.zoom-card__visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px 200px at 65% 25%, rgba(34, 211, 238, 0.18), transparent 60%); }
.zoom-card__visual svg { width: 100%; max-width: 290px; height: auto; position: relative; z-index: 1; }

.zoomboard__hud { position: relative; z-index: 4; flex: 0 0 auto; width: 100%; max-width: 1020px; margin: 0 auto; }
.zoomboard__hud .storyboard__controls { margin-top: 16px; }
.zoom-progress { height: 3px; background: rgba(255, 255, 255, 0.08); border-radius: 3px; overflow: hidden; }
.zoom-progress__bar { display: block; height: 100%; width: 20%; background: var(--grad-brand); transition: width 0.15s linear; }

/* Mobile fallback: stack the cards, no pin/zoom */
@media (max-width: 720px) {
  .zoomboard__track { height: auto; }
  .zoomboard__stage { position: static; height: auto; min-height: 0; display: block; padding: 70px 0 44px; overflow: visible; }
  .zoomboard__rings { display: none; }
  .zoomboard__bg { position: absolute; }
  .zoomboard__scene { perspective: none; margin-top: 26px; }
  .zoom-card {
    position: relative; top: auto; left: auto; width: 100%; margin-bottom: 18px;
    transform: none !important; opacity: 1 !important; filter: none !important;
  }
  .zoom-card__body { grid-template-columns: 1fr; }
  .zoom-card__visual { order: -1; min-height: 160px; }
  .zoomboard__hud { position: sticky; bottom: 0; background: linear-gradient(0deg, var(--bg-900) 60%, transparent); padding: 14px 0 6px; }
}

/* ---------- Stats band ---------- */
.stats {
  position: relative; border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 60px);
  background: linear-gradient(130deg, rgba(14,30,50,0.9), rgba(8,18,30,0.9));
  border: 1px solid var(--line-strong); overflow: hidden;
}
.stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 10% 0%, rgba(34,211,238,0.14), transparent 60%), radial-gradient(500px 300px at 90% 100%, rgba(139,123,247,0.12), transparent 60%); }
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__num .suffix { -webkit-text-fill-color: var(--teal); }
.stat__label { margin-top: 10px; font-size: 0.88rem; color: var(--text-muted); letter-spacing: 0.02em; }
.stats__divider { position: relative; }

/* ---------- Testimonials ---------- */
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tst {
  position: relative; padding: 30px 28px; border-radius: var(--radius);
  background: var(--surface-glass); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.tst:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.tst__quote-mark { font-family: var(--font-display); font-size: 3.4rem; line-height: 0.5; color: var(--aqua); opacity: 0.4; height: 24px; }
.tst p { color: var(--text-soft); font-size: 0.98rem; font-style: italic; flex-grow: 1; }
.tst__by { display: flex; align-items: center; gap: 12px; }
.tst__avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #04121c; background: var(--grad-brand); }
.tst__by b { font-family: var(--font-display); font-size: 0.95rem; }
.tst__by span { display: block; font-size: 0.76rem; color: var(--text-muted); }
.tst__stars { display: flex; gap: 3px; }
.tst__stars svg { width: 15px; height: 15px; color: #ffcf5b; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  padding: clamp(44px, 6vw, 72px);
  background: linear-gradient(130deg, rgba(34,211,238,0.14), rgba(139,123,247,0.12)), var(--surface);
  border: 1px solid var(--line-strong);
  text-align: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 50% -20%, rgba(56,189,248,0.3), transparent 60%); }
.cta-band__inner { position: relative; max-width: 680px; margin-inline: auto; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.cta-band p { margin: 18px auto 32px; color: var(--text-soft); font-size: 1.08rem; max-width: 52ch; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--surface-glass); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.3s; }
.contact-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.contact-card__icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; background: linear-gradient(140deg, rgba(34,211,238,0.16), rgba(139,123,247,0.12)); border: 1px solid var(--line-strong); }
.contact-card__icon svg { width: 23px; height: 23px; color: var(--aqua); }
.contact-card h4 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.contact-card a, .contact-card p { font-family: var(--font-display); font-size: 1.02rem; color: var(--text); }
.contact-card a:hover { color: var(--aqua); }
.contact-card small { display: block; font-family: var(--font-body); font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }

.form-panel { padding: clamp(28px, 4vw, 40px); border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(16,36,58,0.85), rgba(8,18,30,0.8)); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 7px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line-strong); color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem; transition: border-color 0.25s, background 0.25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--aqua); background: rgba(34,211,238,0.05); }
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238aa2b8' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 14px; display: flex; gap: 8px; align-items: center; }
.form-note svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; }

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; padding-top: calc(var(--nav-h) + clamp(50px, 7vw, 80px)); padding-bottom: clamp(40px, 6vw, 70px); overflow: hidden; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--aqua); }
.breadcrumb svg { width: 14px; height: 14px; opacity: 0.5; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; }
.page-hero .lead { margin-top: 20px; }

/* ---------- Prose / interior content ---------- */
.prose p { color: var(--text-soft); margin-bottom: 18px; font-size: 1.02rem; }
.prose p:last-child { margin-bottom: 0; }
.feature-list { display: grid; gap: 14px; margin-top: 10px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--text-soft); }
.feature-list svg { width: 22px; height: 22px; color: var(--teal); flex-shrink: 0; margin-top: 2px; }

/* "We are passionate" band */
.passion-band {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  padding: clamp(38px, 5vw, 60px);
  background: linear-gradient(130deg, rgba(14,30,50,0.92), rgba(8,18,30,0.92));
  border: 1px solid var(--line-strong);
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px; align-items: center;
}
.passion-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 85% 10%, rgba(34,211,238,0.16), transparent 60%); }
.passion-band > * { position: relative; }
.passion-band h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.passion-band p { color: var(--text-soft); margin-top: 16px; }
.passion-band__badges { display: flex; flex-direction: column; gap: 12px; }
.pb-badge { display: flex; align-items: center; gap: 13px; padding: 14px 18px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); }
.pb-badge svg { width: 24px; height: 24px; color: var(--aqua); flex-shrink: 0; }
.pb-badge b { font-family: var(--font-display); font-size: 0.98rem; display: block; }
.pb-badge span { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: clamp(50px, 6vw, 80px) 30px; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__about p { color: var(--text-muted); font-size: 0.92rem; margin-top: 18px; max-width: 34ch; }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--text-soft); transition: all 0.3s var(--ease); }
.footer__social a:hover { border-color: var(--aqua); color: var(--aqua); transform: translateY(-3px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__col h4 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 11px; }
.footer__col a { font-size: 0.9rem; color: var(--text-soft); transition: color 0.25s; }
.footer__col a:hover { color: var(--aqua); }
.footer__bottom { display: flex; justify-content: center; align-items: center; gap: 8px 14px; flex-wrap: wrap; text-align: center; margin-top: clamp(40px, 5vw, 60px); padding-top: 24px; border-top: 1px solid var(--line); }
.footer__sep { color: var(--text-faint); user-select: none; }
@media (max-width: 620px) { .footer__sep { display: none; } .footer__bottom { gap: 6px; } }
.footer__bottom p { font-size: 0.84rem; color: var(--text-muted); }
.footer__bottom a { color: var(--text-soft); }
.footer__bottom a:hover { color: var(--aqua); }

/* ---------- Real logo in brand ---------- */
.brand__logo-wrap {
  display: inline-flex; align-items: center;
  background: #ffffff; padding: 8px 13px; border-radius: 13px;
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.6);
  transition: height 0.4s var(--ease), padding 0.4s var(--ease);
}
.brand__logo { height: 34px; width: auto; display: block; transition: height 0.4s var(--ease); }
.header.scrolled .brand__logo { height: 29px; }
.footer .brand__logo { height: 36px; }

/* ---------- Photo fades ---------- */
.section > .container { position: relative; z-index: 1; }

.hero__photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__photo img {
  position: absolute; right: 0; top: 0; width: 72%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 48%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 48%);
}
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--bg-900) 0%, transparent 22%, transparent 58%, var(--bg-900) 100%),
    radial-gradient(70% 90% at 100% 45%, transparent, rgba(4, 9, 15, 0.45));
}
.hero .hero__grid { position: relative; z-index: 1; }

/* Generic faded section photo */
.section-photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.section-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0.1; }
.section-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg-900) 0%, transparent 30%, transparent 68%, var(--bg-900) 100%);
}

/* Faded photo banner inside the about panel */
.about-panel__media { position: relative; margin: -38px -34px 24px; height: 178px; overflow: hidden; }
.about-panel__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.about-panel__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 18, 30, 0.15) 0%, rgba(8, 18, 30, 0.55) 55%, rgba(12, 27, 46, 0.98) 100%);
}

/* Page-hero faded photo (interior pages) */
.page-hero__photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.page-hero__photo img {
  position: absolute; right: 0; top: 0; width: 80%; height: 100%;
  object-fit: cover; object-position: center; opacity: 0.22;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}
.page-hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg-900) 0%, transparent 30%, transparent 55%, var(--bg-900) 100%);
}
.page-hero .container { position: relative; z-index: 1; }

/* Storyboard + stats photo backgrounds */
.storyboard__stage { overflow: hidden; }
.storyboard__stage > .container { position: relative; z-index: 1; }
.storyboard__stage .section-photo img { opacity: 0.08; }
.stats > .stats__photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; }
.stats__photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0.12; }
.stats__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(14,30,50,0.92), rgba(8,18,30,0.86)); }
.stats .stats__grid { position: relative; z-index: 2; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: #04121c; box-shadow: 0 14px 30px -10px rgba(56,189,248,0.6); opacity: 0; visibility: hidden; transform: translateY(14px); transition: all 0.4s var(--ease); z-index: 90; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav, .nav-cta { display: none; }
  .burger { display: block; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; }
  .split, .contact-grid, .passion-band { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .pillars, .svc-grid, .tst-grid { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .story-card { grid-template-columns: 1fr; gap: 22px; }
  .story-visual { min-height: 220px; order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__about { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .pillars, .svc-grid, .tst-grid, .form-row, .about-stats { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .storyboard__stage { min-height: auto; padding-block: 90px 50px; }
  .story-card { position: relative; opacity: 1; transform: none; }
}
