/* ==========================================================================
   Specally — site styles
   ========================================================================== */

:root {
  /* Brand palette (matches the whitepaper) */
  --ink: #0A2D35;
  --deep: #0B3A44;
  --deep-2: #072830;
  --teal-800: #0D5561;
  --teal-700: #0F6D78;
  --teal: #12808C;
  --teal-400: #2AA9B4;
  --mint: #A2F4F2;
  --mint-300: #86E3D2;
  --mint-100: #DDF3EF;
  --mint-50: #EFF8F6;

  /* Neutrals */
  --text: #34494F;
  --muted: #5E7378;
  --line: #E0EBEA;
  --bg: #FFFFFF;
  --bg-soft: #F5F9F9;
  --on-dark: #E2F4F4;
  --on-dark-muted: rgba(226, 244, 244, .74);

  --grad-brand: linear-gradient(90deg, var(--teal) 0%, var(--mint-300) 100%);
  --grad-text: linear-gradient(92deg, #A2F4F2 0%, #86E3D2 45%, #4FC3CF 100%);
  --viridis: linear-gradient(90deg, #440154, #482878, #3E4A89, #31688E, #26828E, #1F9E89, #35B779, #6DCD59, #B4DE2C, #FDE725);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(10, 45, 53, .05), 0 2px 6px rgba(10, 45, 53, .04);
  --shadow-md: 0 22px 44px -22px rgba(10, 45, 53, .24);
  --shadow-lg: 0 40px 80px -30px rgba(2, 22, 27, .6);

  --nav-h: 76px;
  --container: 1200px;
  --gutter: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font-display: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
button { font: inherit; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

section[id] { scroll-margin-top: calc(var(--nav-h) - 1px); }

:focus-visible {
  outline: 2px solid var(--teal-400);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px; left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--mint);
  color: var(--deep-2);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --nav-h: 68px; }
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-sm { height: 42px; padding: 0 18px; font-size: .9rem; }

.btn-mint {
  background: var(--mint);
  color: var(--deep-2);
  box-shadow: 0 12px 32px -12px rgba(162, 244, 242, .6);
}
.btn-mint:hover { background: #BDF8F6; transform: translateY(-1px); }

.btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .04);
}
.btn-outline-light:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); }

.btn-teal {
  background: var(--deep);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(11, 58, 68, .8);
}
.btn-teal:hover { background: var(--teal-800); transform: translateY(-1px); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, box-shadow .3s, backdrop-filter .3s;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: auto; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: .07em;
  color: #fff;
  transition: color .3s;
}

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .78);
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-links a.is-active { color: #fff; }
.nav-links a.is-active::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 1px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--mint);
  transform: translateX(-50%);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-cta {
  background: var(--mint);
  color: var(--deep-2);
}
.nav-cta:hover { background: #BDF8F6; }

.nav.is-scrolled,
.nav.menu-open {
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(10, 45, 53, .5);
}
.nav.is-scrolled .brand-name,
.nav.menu-open .brand-name { color: var(--ink); }
.nav.is-scrolled .nav-links a { color: var(--muted); }
.nav.is-scrolled .nav-links a:hover { color: var(--ink); background: var(--mint-50); }
.nav.is-scrolled .nav-links a.is-active { color: var(--teal-700); }
.nav.is-scrolled .nav-links a.is-active::after { background: var(--teal); }
.nav.is-scrolled .nav-cta,
.nav.menu-open .nav-cta { background: var(--deep); color: #fff; }
.nav.is-scrolled .nav-cta:hover { background: var(--teal-800); }

.menu-btn {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
}
.menu-btn span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .25s var(--ease), opacity .2s, background-color .3s;
}
.menu-btn span:nth-child(1) { top: 14px; }
.menu-btn span:nth-child(2) { top: 20px; }
.menu-btn span:nth-child(3) { top: 26px; }
.nav.is-scrolled .menu-btn,
.nav.menu-open .menu-btn { border-color: var(--line); background: #fff; }
.nav.is-scrolled .menu-btn span,
.nav.menu-open .menu-btn span { background: var(--ink); }
.nav.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: calc(var(--nav-h) + 8px);
  left: var(--gutter); right: var(--gutter);
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--ink);
}
.mobile-menu a:not(.btn):hover { background: var(--mint-50); }
.mobile-menu .btn { margin-top: 8px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 480px) {
  .nav-cta { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--nav-h) + 72px) 0 176px;
  color: #fff;
  background: var(--deep-2);
}

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 560px at 82% 18%, rgba(42, 169, 180, .34), transparent 62%),
    radial-gradient(720px 520px at 0% 100%, rgba(134, 227, 210, .12), transparent 62%),
    linear-gradient(160deg, #062329 0%, #0B3A44 52%, #0D5561 100%);
}

.hero-cells {
  position: absolute;
  right: -6%; bottom: -12%;
  width: min(1100px, 78%);
  opacity: .32;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 25% 35%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 25% 35%, #000 10%, transparent 75%);
}

.beam {
  position: absolute;
  left: -20%;
  width: 140%;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(162, 244, 242, .5) 50%, transparent 90%);
  transform: rotate(-24deg);
}
.beam-1 { top: 46%; }
.beam-2 { top: 88%; opacity: .5; }

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  gap: 72px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border: 1px solid rgba(162, 244, 242, .26);
  border-radius: 999px;
  background: rgba(162, 244, 242, .07);
  color: var(--mint);
  font-size: .86rem;
  font-weight: 500;
  transition: background-color .2s, border-color .2s;
}
.pill:hover { background: rgba(162, 244, 242, .12); border-color: rgba(162, 244, 242, .45); }

.pill-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
}
.pill-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--mint);
  animation: ping 2.4s var(--ease) infinite;
}

@keyframes ping {
  0% { transform: scale(1); opacity: .7; }
  80%, 100% { transform: scale(3); opacity: 0; }
}

.hero h1 {
  margin: 26px 0 24px;
  color: #fff;
  font-size: clamp(2.4rem, 4.7vw, 4.2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

@media (max-width: 420px) {
  .hero h1 br { display: none; }
}

.hero-lead {
  max-width: 560px;
  color: var(--on-dark-muted);
  font-size: clamp(1.04rem, 1.35vw, 1.17rem);
  line-height: 1.7;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 36px;
  color: var(--on-dark-muted);
  font-size: .9rem;
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--mint); flex: none; }

/* ---------- Insight viewer ---------- */

.hero-visual { position: relative; }

.viewer {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 6px 12px;
  font-size: .82rem;
}
.viewer-title { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 600; }

.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(162, 244, 242, .16), 0 0 12px rgba(162, 244, 242, .8);
}

.viewer-stage {
  position: relative;
  aspect-ratio: 596 / 446;
  overflow: hidden;
  border-radius: 14px;
  background: #1a1a1a;
}

.layer {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
}
.layer.is-prev { opacity: 1; z-index: 1; }
.layer.is-active { opacity: 1; z-index: 2; }
.layer.is-revealing { animation: wipe 1.2s var(--ease) both; }

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

.scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  z-index: 3;
  height: 2px;
  background: var(--mint);
  box-shadow: 0 0 16px 3px rgba(162, 244, 242, .65);
  opacity: 0;
  pointer-events: none;
}
.scan.is-running { animation: scanline 1.2s var(--ease) both; }

@keyframes scanline {
  0% { top: 0; opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.corner {
  position: absolute;
  z-index: 4;
  width: 18px; height: 18px;
  border: 0 solid rgba(162, 244, 242, .85);
}
.corner-tl { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 4px; }
.corner-tr { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 4px; }
.corner-bl { bottom: 12px; left: 12px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 4px; }
.corner-br { bottom: 12px; right: 12px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 4px; }

.stage-label {
  position: absolute;
  top: 18px; left: 40px;
  z-index: 4;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(7, 40, 48, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .01em;
}

.ramp-wrap {
  position: absolute;
  right: 40px; bottom: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(7, 40, 48, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, .85);
  font-size: .68rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s, transform .4s var(--ease);
}
.ramp { width: 72px; height: 6px; border-radius: 6px; background: var(--viridis); }
.viewer.is-map .ramp-wrap { opacity: 1; transform: none; }

.viewer-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 12px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(0, 0, 0, .2);
}

.viewer-tab {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(226, 244, 244, .68);
  font-size: .84rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.viewer-tab:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.viewer-tab[aria-pressed="true"] {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.viewer-tab sub { font-size: .7em; line-height: 0; }

.swatch { width: 10px; height: 10px; flex: none; border-radius: 3px; }
.swatch-rgb { background: linear-gradient(135deg, #6E4126, #C79B7E 60%, #EAD7D0); }
.swatch-map { background: linear-gradient(135deg, #440154, #26828E 50%, #FDE725); }

.tab-progress {
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--mint);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
}
.viewer.is-playing .viewer-tab[aria-pressed="true"] .tab-progress {
  opacity: .85;
  animation: progress 4.2s linear forwards;
}
.viewer.is-paused .tab-progress,
.viewer.is-offscreen .tab-progress { animation-play-state: paused !important; }

@keyframes progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.viewer-caption {
  min-height: 1.5em;
  padding: 12px 6px 2px;
  color: rgba(226, 244, 244, .62);
  font-size: .8rem;
  line-height: 1.5;
}

.float-chip {
  position: absolute;
  left: -36px; bottom: 112px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 48px -20px rgba(2, 22, 27, .55);
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.35;
  animation: float 6s ease-in-out infinite;
}
.float-chip strong { display: block; color: var(--ink); font-size: .88rem; font-weight: 600; }
.float-chip-icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-400));
  color: #fff;
}
.float-chip-icon svg { width: 20px; height: 20px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 1180px) {
  .float-chip { display: none; }
}

@media (max-width: 1024px) {
  .hero { padding-top: calc(var(--nav-h) + 56px); }
  .hero-layout { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { max-width: 680px; }
  .hero-visual { max-width: 620px; }
}

@media (max-width: 520px) {
  .viewer { padding: 10px; border-radius: 20px; }
  .viewer-tab { font-size: .76rem; gap: 6px; }
  .viewer-tab .swatch { display: none; }
  .stage-label { left: 34px; top: 16px; font-size: .68rem; }
  .ramp-wrap { right: 34px; bottom: 16px; }
  .hero-ctas .btn { flex: 1 1 auto; }
}

/* ---------- Key benefits ---------- */

.pillars { position: relative; z-index: 2; margin-top: -100px; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.pillar { display: flex; align-items: flex-start; gap: 16px; padding: 30px 32px; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar h2 { margin-bottom: 4px; font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }
.pillar p { color: var(--muted); font-size: .92rem; line-height: 1.55; }

.pillar-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border: 1px solid var(--mint-100);
  border-radius: 12px;
  background: var(--mint-50);
  color: var(--teal);
}
.pillar-icon svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { padding: 24px; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */

.section { padding: 120px 0; }
.section-soft { background: var(--bg-soft); }

@media (max-width: 760px) {
  .section { padding: 84px 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--teal);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 4px;
  border-radius: 4px;
  background: var(--grad-brand);
}
.eyebrow-light { color: var(--mint); }
.eyebrow-light::before { background: linear-gradient(90deg, var(--mint), rgba(162, 244, 242, .3)); }

.section-head { margin-bottom: 56px; }
.section-head h2 {
  margin-top: 16px;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.section-head .lead { margin-top: 18px; max-width: 620px; color: var(--muted); font-size: 1.12rem; }

.section-head.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 20px 64px;
}
.section-head.split .lead { margin-top: 0; }

@media (max-width: 860px) {
  .section-head { margin-bottom: 40px; }
  .section-head.split { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */

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

.card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-4px); border-color: #CBE3DF; box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 10px; font-size: 1.22rem; font-weight: 600; }
.card p { color: var(--muted); }

.card-index {
  position: absolute;
  top: 30px; right: 30px;
  color: #A7BEC0;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
}

.card-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px; height: 52px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-400));
  box-shadow: 0 12px 22px -12px rgba(18, 128, 140, .7);
  color: #fff;
}
.card-icon svg { width: 24px; height: 24px; }
.card-icon-sm { width: 46px; height: 46px; margin: 0; border-radius: 12px; }
.card-icon-sm svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .cards-3 { grid-template-columns: 1fr; }
}

/* ---------- How it works ---------- */

.how {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 2fr);
  gap: 56px;
  margin-top: 72px;
  padding: 56px;
  border-radius: 28px;
  background:
    radial-gradient(640px 320px at 100% 0%, rgba(42, 169, 180, .32), transparent 70%),
    radial-gradient(480px 300px at 0% 100%, rgba(134, 227, 210, .1), transparent 70%),
    var(--deep);
  color: var(--on-dark);
}
.how-intro h3 {
  margin: 16px 0 14px;
  color: #fff;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 600;
  line-height: 1.2;
}
.how-intro p { color: var(--on-dark-muted); font-size: .98rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-self: center; }
.step { position: relative; }
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px; left: 60px; right: -20px;
  height: 1px;
  background: linear-gradient(90deg, rgba(162, 244, 242, .6), rgba(162, 244, 242, .08));
}
.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(162, 244, 242, .12);
  color: var(--deep-2);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
}
.step h4 { margin-bottom: 8px; color: #fff; font-size: 1.06rem; font-weight: 600; }
.step p { color: var(--on-dark-muted); font-size: .93rem; line-height: 1.6; }

@media (max-width: 1024px) {
  .how { grid-template-columns: 1fr; gap: 40px; padding: 40px; }
}
@media (max-width: 680px) {
  .how { padding: 32px 24px; border-radius: 22px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { padding-left: 60px; }
  .step-num { position: absolute; top: 0; left: 0; }
  .step:not(:last-child)::after {
    top: 52px; bottom: -22px; left: 20px; right: auto;
    width: 1px; height: auto;
    background: linear-gradient(180deg, rgba(162, 244, 242, .6), rgba(162, 244, 242, .08));
  }
}

/* ---------- Solutions ---------- */

.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.stage {
  position: relative;
  overflow: hidden;
  padding: 32px 32px 40px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.stage:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stage-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.stage-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--mint-100);
  border-radius: 12px;
  background: var(--mint-50);
  color: var(--teal);
}
.stage-icon svg { width: 22px; height: 22px; }
.stage-num {
  color: var(--teal);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.stage h3 { margin-bottom: 10px; font-size: 1.22rem; font-weight: 600; }
.stage p { color: var(--muted); }

.stage-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--mint-50);
}
.stage-bar::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress, 100%);
  background: var(--grad-brand);
}

@media (max-width: 960px) {
  .stages { grid-template-columns: 1fr; }
}

.audience {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 32px 72px;
  margin-top: 104px;
}
.audience-intro h3,
.compare-copy h3 {
  margin-bottom: 16px;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.audience-intro p,
.compare-copy > p { color: var(--muted); font-size: 1.04rem; }

.audience-list { display: grid; gap: 14px; }
.audience-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: border-color .3s, box-shadow .3s;
}
.audience-item:hover { border-color: #CBE3DF; box-shadow: var(--shadow-sm); }
.audience-item h4 { margin-bottom: 4px; font-size: 1.04rem; font-weight: 600; }
.audience-item p { color: var(--muted); font-size: .94rem; line-height: 1.55; }

.compare {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 40px 72px;
  margin-top: 104px;
}
.compare-copy h3 { margin-top: 16px; }

.callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--deep);
  color: var(--on-dark);
  font-size: .95rem;
  line-height: 1.6;
}
.callout svg { width: 24px; height: 24px; flex: none; margin-top: 1px; color: var(--mint); }
.callout strong { color: var(--mint-300); font-weight: 600; }

.table-card {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: .94rem;
}
.compare-table th,
.compare-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table thead th {
  border-bottom: 2px solid var(--deep);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.compare-table tbody th { color: var(--text); font-weight: 500; }
.compare-table tbody th small { display: block; color: var(--muted); font-size: .82rem; font-weight: 400; }
.compare-table td { color: var(--muted); }
.compare-table .col-hl { background: var(--mint-50); color: var(--teal-700); font-weight: 600; }
.compare-table thead .col-hl { color: var(--teal-700); }
.compare-table .no { color: #94A6A9; }

.yes { display: inline-flex; align-items: center; gap: 8px; }
.yes::before {
  content: '';
  width: 18px; height: 18px;
  flex: none;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat,
    var(--teal);
}

@media (max-width: 960px) {
  .audience,
  .compare { grid-template-columns: 1fr; margin-top: 80px; }
}
@media (max-width: 560px) {
  .compare-table { min-width: 0; font-size: .84rem; }
  .compare-table th,
  .compare-table td { padding: 14px 12px; }
  .compare-table thead th { font-size: .78rem; }
  .yes { gap: 6px; }
  .yes::before { width: 16px; height: 16px; background-size: 10px, auto; }
}

/* ---------- Vision ---------- */

.vision {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 136px 0;
  background: var(--deep-2);
  color: #fff;
  text-align: center;
}
.vision-bg { position: absolute; inset: 0; z-index: -1; }
.vision-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(42, 169, 180, .3), transparent 70%),
    linear-gradient(180deg, #072830 0%, #0B3A44 100%);
}
.vision-bg img {
  position: absolute;
  left: 50%; bottom: -30%;
  width: min(1400px, 140%);
  max-width: none;
  opacity: .22;
  mix-blend-mode: screen;
  transform: translateX(-50%);
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
}
.vision-inner { max-width: 1000px; }
.vision h2 {
  margin: 22px auto 24px;
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.8rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.vision p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--on-dark-muted);
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
}

@media (max-width: 760px) {
  .vision { padding: 96px 0; }
}

/* ---------- About & team ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center;
  gap: 48px 80px;
}
.about-copy h2 {
  margin: 16px 0 24px;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.about-copy p { color: var(--muted); font-size: 1.06rem; }
.about-copy p + p { margin-top: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--mint-100);
  border-radius: 999px;
  background: var(--mint-50);
  color: var(--teal-800);
  font-size: .88rem;
  font-weight: 500;
}
.chips svg { width: 15px; height: 15px; color: var(--teal); }

.stats {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.stat { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 18px; padding: 26px 28px; }
.stat + .stat { border-top: 1px solid var(--line); }
.stat dt {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat dd { color: var(--muted); font-size: .93rem; line-height: 1.5; }

.team-block { margin-top: 104px; }
.team-title {
  margin-bottom: 32px;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-align: center;
}

/* Flex rather than grid so an incomplete last row stays centred */
.team { --cols: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.team > li { flex: 0 1 calc((100% - (var(--cols) - 1) * 20px) / var(--cols)); }
.team-students { --cols: 4; }

.member {
  display: grid;
  grid-template-columns: 88px 1fr;
  /* Outer 1fr rows absorb spare height so the text stays tightly stacked and centred */
  grid-template-rows: 1fr auto auto auto 1fr;
  column-gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.member:hover { transform: translateY(-4px); border-color: #CBE3DF; box-shadow: var(--shadow-md); }
.member-photo { position: relative; grid-row: 1 / -1; align-self: center; width: 88px; }
.member-photo img,
.member-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--mint-300);
}
/* Initials stand in until a photo is available */
.member-avatar {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--mint-50), #D2F1EC);
  color: var(--teal-700);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.member-badge {
  position: absolute;
  left: 50%; bottom: -9px;
  padding: 2px 9px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--deep);
  color: var(--mint);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
  transform: translateX(-50%);
}
.member h4,
.member h5 { grid-area: 2 / 2; font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }
.member-title { grid-area: 3 / 2; margin-top: 4px; color: var(--teal); font-size: .8rem; font-weight: 600; }
.member-role { grid-area: 4 / 2; margin-top: 6px; color: var(--muted); font-size: .88rem; line-height: 1.5; }

.team-subtitle {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 56px 0 24px;
  color: var(--teal);
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.team-subtitle::before,
.team-subtitle::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.member-sm { grid-template-columns: 56px 1fr; column-gap: 16px; padding: 20px; }
.member-sm .member-photo { width: 56px; }
.member-sm .member-photo img,
.member-sm .member-avatar { width: 56px; height: 56px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--mint-300); }
.member-sm .member-avatar { font-size: 1rem; }
.member-sm h5 { font-size: .96rem; }
.member-sm .member-role { margin-top: 2px; font-size: .84rem; line-height: 1.45; }

@media (max-width: 1180px) {
  .team-students { --cols: 2; }
}
@media (max-width: 1024px) {
  .team { --cols: 2; }
}
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .team-block { margin-top: 80px; }
}
@media (max-width: 560px) {
  .team,
  .team-students { --cols: 1; gap: 12px; }
  .member { grid-template-columns: 72px 1fr; column-gap: 18px; padding: 18px 20px; }
  .member-photo { width: 72px; }
  .member-photo img,
  .member-avatar { width: 72px; height: 72px; font-size: 1.2rem; }
  .member-badge { font-size: .6rem; padding: 1px 7px; }
  .member-role { margin-top: 4px; }
  .member-sm { grid-template-columns: 56px 1fr; column-gap: 16px; padding: 16px 20px; }
  .member-sm .member-photo { width: 56px; }
  .member-sm .member-photo img,
  .member-sm .member-avatar { width: 56px; height: 56px; }
  .member-sm .member-avatar { font-size: 1rem; }
  .team-subtitle { margin-top: 40px; }
}

/* ---------- Contact ---------- */

.contact-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.contact-info {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: end;
  gap: 40px 72px;
  padding: 64px;
  background:
    radial-gradient(520px 320px at 100% 0%, rgba(42, 169, 180, .35), transparent 70%),
    linear-gradient(160deg, #072830 0%, #0B3A44 55%, #0D5561 100%);
  color: var(--on-dark);
}
.contact-info::after {
  content: '';
  position: absolute;
  right: -60px; bottom: -60px;
  z-index: -1;
  width: 260px; height: 260px;
  border: 1px solid rgba(162, 244, 242, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(162, 244, 242, .03), 0 0 0 80px rgba(162, 244, 242, .02);
}
.contact-info h2 {
  margin: 16px 0 16px;
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.contact-info p { max-width: 52ch; color: var(--on-dark-muted); font-size: 1.02rem; }

.contact-actions { display: grid; gap: 24px; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-weight: 600;
  transition: background-color .2s, border-color .2s;
}
.contact-line:hover { background: rgba(255, 255, 255, .09); border-color: rgba(162, 244, 242, .4); }
.contact-line small {
  display: block;
  color: var(--on-dark-muted);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.contact-line-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--deep-2);
}
.contact-line-icon svg { width: 20px; height: 20px; }

.contact-tagline {
  color: var(--mint) !important;
  font-family: var(--font-display);
  font-size: 1.1rem !important;
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 960px) {
  .contact-info { grid-template-columns: 1fr; align-items: start; padding: 40px; }
}
@media (max-width: 560px) {
  .contact-card { border-radius: 22px; }
  .contact-info { padding: 28px 20px; }
}

/* ---------- Funding ---------- */

.funding { padding: 56px 0; border-top: 1px solid var(--line); background: #fff; text-align: center; }
.funding-note { margin-bottom: 24px; color: var(--ink); font-size: 1rem; }
.funding img { width: 100%; max-width: 880px; margin: 0 auto; }

@media (max-width: 560px) {
  .funding { padding: 44px 0; }
  .funding-note { font-size: .9rem; }
}

/* ---------- Footer ---------- */

.footer { padding: 72px 0 32px; background: var(--deep-2); color: var(--on-dark-muted); font-size: .93rem; }

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-brand p { max-width: 360px; margin-top: 18px; line-height: 1.6; }
.footer-col { display: grid; align-content: start; gap: 10px; }
.footer-col h4 {
  margin-bottom: 6px;
  color: #fff;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer-col a { width: fit-content; transition: color .2s; }
.footer-col a:hover { color: var(--mint); }
.footer-bottom { padding-top: 28px; font-size: .85rem; color: rgba(226, 244, 244, .55); }

@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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