/* ============================================================
   Script Assessment and Plans (sa-ap.com)
   Re-imagined design system
   ============================================================ */

:root {
  --teal: #14a3cf;
  --teal-bright: #2cc5ee;
  --teal-deep: #0b7396;
  --navy: #071721;
  --navy-2: #0c2230;
  --navy-3: #11303f;
  --ink: #16323f;
  --slate: #51697a;
  --mist: #f3f8fa;
  --white: #ffffff;
  --line: rgba(20, 163, 207, 0.18);
  --glow: rgba(44, 197, 238, 0.45);
  --radius: 18px;
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

::selection { background: var(--teal); color: #fff; }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    background 0.3s, color 0.3s;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary {
  background: linear-gradient(120deg, var(--teal) 0%, var(--teal-bright) 100%);
  color: #fff;
  box-shadow: 0 8px 28px -8px var(--glow);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, var(--teal-bright), var(--teal));
  opacity: 0;
  transition: opacity 0.35s;
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 38px -8px var(--glow); }
.btn-primary:hover::after { opacity: 1; }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: var(--teal-bright);
  color: var(--teal-bright);
  transform: translateY(-3px);
}

.btn-dark {
  background: var(--navy-2);
  color: #fff;
}
.btn-dark:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(7, 23, 33, 0.55); }

.btn .arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* Pulsing play dot on the video button */
.play-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  position: relative;
  flex-shrink: 0;
}
.play-dot::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  animation: pulse-ring 2s var(--ease-out) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ------------------------------------------------------------
   Navbar
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: padding 0.4s var(--ease-out);
}

/* The glass background lives on a pseudo-element: backdrop-filter on
   .nav itself would make it the containing block for the fixed-position
   mobile menu, which breaks the menu once .scrolled is applied. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 23, 33, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(44, 197, 238, 0.12);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.nav.scrolled { padding: 0.6rem 0; }
.nav.scrolled::before { opacity: 1; }

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

.nav-logo {
  display: flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  box-shadow: 0 6px 22px -10px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s var(--ease-out);
}
.nav-logo:hover { transform: scale(1.04); }
.nav-logo img { height: 34px; width: auto; }

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

.nav-links a:not(.btn) {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-size: 0.98rem;
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav-links a:not(.btn):hover,
.nav-links a.active { color: #fff; }
.nav-links a:not(.btn):hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-links .btn { padding: 0.6rem 1.5rem; font-size: 0.95rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.nav-toggle span {
  width: 26px; height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ------------------------------------------------------------
   Hero (dark, aurora + ECG)
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(120% 120% at 70% 10%, var(--navy-3) 0%, var(--navy-2) 45%, var(--navy) 100%);
  color: #fff;
  overflow: hidden;
  padding: 9rem 0 7rem;
}

/* faint grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(44, 197, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 197, 238, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 75%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
  will-change: transform;
}
.orb-1 {
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(20, 163, 207, 0.55), transparent 70%);
  top: -160px; right: -120px;
  animation: drift 14s ease-in-out infinite alternate;
}
.orb-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(11, 115, 150, 0.5), transparent 70%);
  bottom: -140px; left: -120px;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
.orb-3 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(44, 197, 238, 0.35), transparent 70%);
  top: 40%; left: 38%;
  animation: drift 11s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.12); }
}

/* ECG heartbeat line */
.ecg {
  position: absolute;
  left: 0;
  bottom: 14%;
  width: 100%;
  height: 120px;
  opacity: 0.5;
  pointer-events: none;
}
.ecg path {
  fill: none;
  stroke: var(--teal-bright);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px var(--glow));
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: ecg-draw 5.5s linear infinite;
}
@keyframes ecg-draw {
  0% { stroke-dashoffset: 1400; opacity: 0; }
  8% { opacity: 1; }
  62% { stroke-dashoffset: 0; opacity: 1; }
  82% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -1400; opacity: 0; }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}

/* rotating typed word */
.rotator {
  color: var(--teal-bright);
  background: linear-gradient(90deg, var(--teal-bright), #7fe3ff, var(--teal-bright));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  to { background-position: 200% center; }
}
.caret {
  display: inline-block;
  width: 3px;
  height: 0.95em;
  margin-left: 4px;
  vertical-align: -0.12em;
  background: var(--teal-bright);
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 34rem;
  margin-bottom: 2.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}
.hero-badge svg { flex-shrink: 0; }

/* hero illustration */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual .frame {
  position: relative;
  padding: 1.4rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(44, 197, 238, 0.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  animation: float 7s ease-in-out infinite;
}
.hero-visual img {
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  background: #fff;
  padding: 1.2rem;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-18px) rotate(0.4deg); }
}

/* floating chips around the hero image */
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(12, 34, 48, 0.92);
  border: 1px solid rgba(44, 197, 238, 0.3);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 10px #3ddc97; }
.chip-1 { top: 6%; left: -4%; animation: float 6s ease-in-out infinite 0.5s; }
.chip-2 { bottom: 14%; right: -6%; animation: float 8s ease-in-out infinite 1.2s; }
.chip-3 { bottom: -4%; left: 8%; animation: float 7s ease-in-out infinite 2s; }

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.scroll-cue::before {
  content: "";
  width: 4px; height: 8px;
  border-radius: 4px;
  background: var(--teal-bright);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ------------------------------------------------------------
   Sections / shared
   ------------------------------------------------------------ */
.section { padding: 6.5rem 0; position: relative; }
.section.alt { background: var(--mist); }

.section-head {
  max-width: 46rem;
  margin: 0 auto 4rem;
  text-align: center;
}
.section-head.left { text-align: left; margin-inline: 0; }

.section-head .eyebrow { color: var(--teal-deep); justify-content: center; }
.section-head.left .eyebrow { justify-content: flex-start; }

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: 1rem;
}
.section-head p { color: var(--slate); font-size: 1.08rem; }

.text-gradient {
  background: linear-gradient(100deg, var(--teal-deep), var(--teal-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ------------------------------------------------------------
   Stats band
   ------------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.stat {
  text-align: center;
  padding: 2.6rem 1.5rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -32px rgba(11, 115, 150, 0.35);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.stat:hover { transform: translateY(-6px); box-shadow: 0 32px 60px -30px rgba(11, 115, 150, 0.45); }
.stat .num {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--teal-deep);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.stat .label { font-weight: 700; color: var(--ink); margin-bottom: 0.2rem; }
.stat .sub { font-size: 0.9rem; color: var(--slate); }

/* ------------------------------------------------------------
   Feature cards (tilt)
   ------------------------------------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 2.6rem 2.1rem;
  border: 1px solid var(--line);
  transition: transform 0.25s ease-out, box-shadow 0.4s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}

/* glow border that follows the cursor */
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
    var(--teal-bright), transparent 65%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { box-shadow: 0 36px 70px -36px rgba(11, 115, 150, 0.4); }

.card-icon {
  width: 76px; height: 76px;
  margin-bottom: 1.6rem;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, rgba(44, 197, 238, 0.18), rgba(20, 163, 207, 0.07));
  transform: translateZ(36px);
}
.card-icon img { width: 58px; height: 58px; object-fit: contain; }

.card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--ink);
  transform: translateZ(28px);
}
.card p { color: var(--slate); font-size: 1rem; transform: translateZ(18px); }

.card .card-num {
  position: absolute;
  top: 1.6rem; right: 1.8rem;
  font-size: 2.6rem;
  font-weight: 800;
  color: rgba(20, 163, 207, 0.1);
  line-height: 1;
}

/* ------------------------------------------------------------
   Split sections (creator, product)
   ------------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.split.reverse > .split-media { order: 2; }

.split-media { position: relative; }

.split-media .photo {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 40px 80px -36px rgba(7, 23, 33, 0.45);
}
.split-media .photo img { width: 100%; }

/* decorative ring behind photos */
.split-media::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(20, 163, 207, 0.35);
  top: -7%;
  left: -8%;
  animation: spin 40s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.split-media .accent-box {
  position: absolute;
  bottom: -22px;
  right: -18px;
  background: linear-gradient(125deg, var(--teal), var(--teal-bright));
  color: #fff;
  padding: 1.1rem 1.5rem;
  border-radius: 16px;
  font-weight: 800;
  box-shadow: 0 20px 44px -18px var(--glow);
  text-align: center;
  line-height: 1.3;
}
.accent-box .big { font-size: 1.7rem; display: block; letter-spacing: -0.02em; }
.accent-box small { font-weight: 600; font-size: 0.82rem; opacity: 0.9; }

.split-copy h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.3rem;
}
.split-copy p { color: var(--slate); margin-bottom: 1.2rem; font-size: 1.05rem; }
.split-copy .btn { margin-top: 0.8rem; }

.checklist { margin: 1.4rem 0 0.6rem; display: grid; gap: 0.85rem; }
.checklist li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  color: var(--ink);
  font-weight: 600;
}
.checklist .check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(20, 163, 207, 0.12);
  display: grid;
  place-items: center;
  margin-top: 2px;
}

/* ------------------------------------------------------------
   CTA band
   ------------------------------------------------------------ */
.cta-band {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: radial-gradient(130% 160% at 20% 0%, var(--navy-3), var(--navy) 80%);
  color: #fff;
  text-align: center;
  padding: 5rem 2rem;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(44, 197, 238, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 197, 238, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  z-index: -1;
}
.cta-band .orb { opacity: 0.4; }
.cta-band h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 36rem;
  margin: 0 auto 2.2rem;
  font-size: 1.1rem;
}
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand img {
  height: 40px; width: auto;
  background: #fff;
  padding: 6px 10px;
  border-radius: 10px;
}
.footer-brand p { margin-top: 1rem; max-width: 20rem; font-size: 0.95rem; }
.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a { transition: color 0.3s; font-size: 0.98rem; }
.footer-col a:hover { color: var(--teal-bright); }
.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.4);
}
.heart-line { display: inline-flex; align-items: center; gap: 0.4rem; }
.heart {
  display: inline-block;
  color: var(--teal-bright);
  animation: heartbeat 1.6s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.25); }
  28% { transform: scale(1); }
  42% { transform: scale(1.25); }
  56% { transform: scale(1); }
}

/* ------------------------------------------------------------
   Video modal
   ------------------------------------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 2rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s, visibility 0.35s;
}
.modal.open { visibility: visible; opacity: 1; }

.modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 18, 0.85);
  backdrop-filter: blur(8px);
}

/* Width is set on the wrap (not the box) so the 16:9 box has a real
   width to fill; it is capped so the video always fits the viewport. */
.modal-video-wrap {
  position: relative;
  width: 100%;
  max-width: min(1280px, calc((100vh - 10rem) * 16 / 9));
}

.modal-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(44, 197, 238, 0.25);
  transform: scale(0.92) translateY(16px);
  transition: transform 0.45s var(--ease-out);
}
.modal.open .modal-box { transform: scale(1) translateY(0); }
.modal-box iframe { width: 100%; height: 100%; border: 0; display: block; }

.modal-close {
  position: absolute;
  top: -3.2rem;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s, transform 0.3s;
}
.modal-close:hover { background: var(--teal); transform: rotate(90deg); }

/* ------------------------------------------------------------
   Sub-page hero
   ------------------------------------------------------------ */
.page-hero {
  position: relative;
  background: radial-gradient(130% 140% at 70% 0%, var(--navy-3) 0%, var(--navy-2) 50%, var(--navy) 100%);
  color: #fff;
  padding: 11rem 0 6rem;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(44, 197, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 197, 238, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 20%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 20%, black 30%, transparent 80%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 50rem;
  margin: 0 auto 1.4rem;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.12rem;
  max-width: 42rem;
  margin: 0 auto;
}
.page-hero .eyebrow { justify-content: center; }

/* ------------------------------------------------------------
   Timeline (about page)
   ------------------------------------------------------------ */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 2.4rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--teal-bright), var(--teal-deep));
  border-radius: 2px;
}
.timeline-item { position: relative; padding-bottom: 2.6rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.4rem;
  top: 6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--teal);
  box-shadow: 0 0 0 5px rgba(20, 163, 207, 0.15);
}
.timeline-item h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.4rem; }
.timeline-item p { color: var(--slate); }

/* ------------------------------------------------------------
   Quote / credential band
   ------------------------------------------------------------ */
.quote-band {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  box-shadow: 0 36px 70px -40px rgba(11, 115, 150, 0.4);
  overflow: hidden;
}
.quote-band::before {
  content: "“";
  position: absolute;
  top: -2.2rem;
  left: 1.6rem;
  font-size: 11rem;
  font-weight: 800;
  color: rgba(20, 163, 207, 0.1);
  line-height: 1;
  pointer-events: none;
}
.quote-band h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; }
.quote-band p { color: var(--slate); }
.quote-band img { width: 200px; }

/* ------------------------------------------------------------
   Reveal-on-scroll animations
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}
.reveal.from-left { transform: translateX(-48px); }
.reveal.from-right { transform: translateX(48px); }
.reveal.zoom { transform: scale(0.88); }
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* hero entrance (page load, not scroll) */
.enter {
  opacity: 0;
  transform: translateY(28px);
  animation: enter-up 1s var(--ease-out) forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes enter-up {
  to { opacity: 1; transform: none; }
}

/* No-JS fallback: never hide content when scripts don't run */
html.no-js .reveal,
html.no-js .enter {
  opacity: 1;
  transform: none;
  animation: none;
}

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

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 991px) {
  .hero { padding: 8rem 0 5rem; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-visual .frame { max-width: 540px; }
  .chip-1 { left: 0; }
  .chip-2 { right: 0; }
  .cards { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; }
  .split { grid-template-columns: 1fr; gap: 3rem; }
  .split.reverse > .split-media { order: 0; }
  .split-media { max-width: 480px; margin-inline: auto; }
  .stats { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .quote-band { grid-template-columns: 1fr; text-align: center; }
  .quote-band img { margin-inline: auto; }
  .scroll-cue { display: none; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(7, 23, 33, 0.97);
    backdrop-filter: blur(20px);
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease-out);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a:not(.btn) { font-size: 1.4rem; }
}

@media (max-width: 560px) {
  .section { padding: 4.5rem 0; }
  .hero h1 { font-size: 2.1rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .chip { display: none; }
  .quote-band { padding: 2.2rem 1.6rem; }
  .footer-grid { flex-direction: column; }
}
