:root {
  --red: #e13c44;
  --red-dark: #b02d34;
  --black: #0d0d0d;
  --white: #ffffff;
  --grey: #f4f4f4;
  --muted: #6f6f74;
  --muted-dark: rgba(255, 255, 255, 0.68);
  --line: rgba(255, 255, 255, 0.1);
  --line-dark: rgba(0, 0, 0, 0.08);
  --card-dark: #171717;
  --card-dark-2: #202020;
  --font-display: "Archivo", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --shadow-soft: 0 30px 90px rgba(0, 0, 0, 0.14);
  --shadow-red: 0 0 40px rgba(225, 60, 68, 0.22);
  --radius: 18px;
  --radius-lg: 28px;
  --container: min(1180px, calc(100vw - 40px));
  --nav-height: 82px;
  --transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

body.js-ready .reveal:not(.in-view) {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--black);
  transition: var(--transition);
}

.dark-section input,
.dark-section textarea {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--white);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(225, 60, 68, 0.12);
}

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

::selection {
  background: var(--red);
  color: var(--white);
}

.site-shell {
  position: relative;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(225, 60, 68, 0.14), transparent 26%),
    radial-gradient(circle at 82% 24%, rgba(225, 60, 68, 0.08), transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%);
  pointer-events: none;
  z-index: -2;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  position: relative;
  overflow: clip;
}

.section-inner {
  padding: 92px 0;
  position: relative;
  z-index: 1;
}

.dark-section {
  background: var(--black);
  color: var(--white);
}

.dark-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Ccircle cx='12' cy='18' r='1'/%3E%3Ccircle cx='78' cy='24' r='1'/%3E%3Ccircle cx='105' cy='67' r='1'/%3E%3Ccircle cx='34' cy='104' r='1'/%3E%3Ccircle cx='120' cy='123' r='1'/%3E%3Ccircle cx='66' cy='92' r='1'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

.light-section {
  background: var(--white);
  color: var(--black);
}

.light-grid {
  background-image: radial-gradient(circle at 1px 1px, rgba(225, 60, 68, 0.12) 1px, transparent 0);
  background-size: 28px 28px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 13, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.site-nav.scrolled {
  border-bottom-color: rgba(225, 60, 68, 0.34);
}

.nav-inner {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand img {
  height: 52px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  position: relative;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.78);
}

.light-nav .nav-links a {
  color: rgba(0, 0, 0, 0.68);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-links .btn::after {
  display: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white);
}

.light-nav .nav-links a:hover,
.light-nav .nav-links a[aria-current="page"] {
  color: var(--black);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  align-items: center;
  justify-content: center;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: var(--transition);
}

.menu-toggle span {
  transform: translateY(0);
}

.menu-toggle::before {
  transform: translateY(-6px);
}

.menu-toggle::after {
  transform: translateY(6px);
}

.menu-toggle.open span {
  opacity: 0;
}

.menu-toggle.open::before {
  transform: rotate(45deg);
}

.menu-toggle.open::after {
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--red);
  color: var(--white);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 45;
  display: flex;
  align-items: center;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu .container {
  display: grid;
  gap: 18px;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 4.4rem);
  letter-spacing: -0.06em;
  text-transform: uppercase;
  transform: translateX(24px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.mobile-menu.open a {
  transform: translateX(0);
  opacity: 1;
}

.mobile-menu.open a:nth-child(2) { transition-delay: 0.06s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.12s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.18s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.24s; }
.mobile-menu.open a:nth-child(6) { transition-delay: 0.30s; }

.page-hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy .hero-title {
  max-width: 8.4ch;
}

.hero-lead {
  max-width: 56ch;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-proof span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(225, 60, 68, 0.8);
}

.hero-visual {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.hero-orbit,
.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  border: 2px solid rgba(225, 60, 68, 0.22);
  border-radius: 34px;
}

.hero-orbit {
  width: 360px;
  height: 360px;
  transform: rotate(18deg);
  border-color: rgba(225, 60, 68, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 0 80px rgba(225, 60, 68, 0.12);
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  inset: 26px;
}

.hero-orbit::after {
  inset: 56px;
  border-style: dashed;
  opacity: 0.6;
}

.hero-grid-dots {
  position: absolute;
  inset: 40px 20px 20px 80px;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.09) 1px, transparent 0);
  background-size: 18px 18px;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 90%);
}

.hero-stack {
  position: relative;
  width: min(100%, 510px);
  height: 100%;
}

.hero-card {
  position: absolute;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 4px solid var(--red);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.hero-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  line-height: 1.06;
  text-wrap: balance;
}

.hero-card p {
  margin-top: 10px;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
}

.hero-card.primary {
  top: 122px;
  left: 0;
  width: 310px;
}

.hero-card.secondary {
  top: 34px;
  right: 8px;
  width: 250px;
}

.hero-card.metric {
  right: 0;
  bottom: 62px;
  width: 280px;
}

.hero-card.metric strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.hero-card.floating {
  animation: floatCard 6s ease-in-out infinite;
}

.hero-card.secondary.floating {
  animation-delay: 0.5s;
}

.hero-card.metric.floating {
  animation-delay: 1s;
}

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

.hero-grid,
.two-col,
.split-grid,
.feature-grid,
.logo-grid,
.stats-grid,
.footer-grid {
  display: grid;
  gap: 28px;
}

.hero-grid,
.split-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.system-grid {
  grid-template-columns: minmax(240px, 0.74fr) minmax(0, 1.26fr);
  align-items: start;
}

.offer-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
  gap: 42px;
  align-items: start;
}

.offer-copy {
  position: sticky;
  top: calc(var(--nav-height) + 28px);
  display: grid;
  align-content: start;
}

.offer-cards {
  align-self: start;
}

.offer-card {
  min-height: 250px;
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,249,249,0.96));
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--red);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.offer-card .card-title {
  font-size: clamp(1.12rem, 1.2vw, 1.42rem);
}

.offer-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 72px rgba(225, 60, 68, 0.12);
}

.feature-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.feature-grid.four {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.logo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

.hero-title,
.section-title,
.card-title,
.stat-number,
.mega-number {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.06em;
}

.hero-title {
  font-size: clamp(2.9rem, 8vw, 6.2rem);
  line-height: 0.92;
  max-width: 9ch;
}

.hero-title.compact {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.96;
  max-width: 11ch;
}

.section-title {
  font-size: clamp(1.8rem, 3.8vw, 3.35rem);
  line-height: 0.98;
  max-width: 12ch;
}

.section-title.wide {
  max-width: 16ch;
}

.lede,
.body-copy,
.list-copy li,
.timeline-note,
.footer-copy {
  line-height: 1.78;
  opacity: 0.8;
}

.lede {
  font-size: 1rem;
  max-width: 58ch;
  margin-top: 22px;
}

.actions,
.inline-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.actions {
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  background: rgba(255, 255, 255, 0.02);
}

.light-section .btn-secondary {
  border-color: rgba(0, 0, 0, 0.14);
  color: var(--black);
  background: transparent;
}

.capsule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(225, 60, 68, 0.24);
  background: rgba(225, 60, 68, 0.08);
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 600;
}

.panel,
.card,
.timeline-card,
.quote-card,
.spotlight-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.panel {
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-soft);
}

.light-section .panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(245,245,245,0.9));
  border: 1px solid rgba(0,0,0,0.08);
}

.contrast-card {
  background: linear-gradient(180deg, #ffffff, #fff0f1);
  border-color: rgba(225, 60, 68, 0.2);
  box-shadow: 0 28px 70px rgba(225, 60, 68, 0.12);
}

.contrast-card .body-copy,
.contrast-card .list-copy li {
  opacity: 0.94;
}

.contrast-card .kicker {
  color: var(--red-dark);
}

.model-focus {
  background:
    radial-gradient(circle at 86% 14%, rgba(225, 60, 68, 0.18), transparent 26%),
    linear-gradient(180deg, #111111 0%, #050505 100%);
  border: 1px solid rgba(225, 60, 68, 0.28);
  border-left: 6px solid var(--red);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.32),
    0 18px 50px rgba(225, 60, 68, 0.14);
  transform: translateY(-10px) scale(1.015);
}

.light-section .card.model-focus {
  background: #050505 !important;
  border: 1px solid rgba(225, 60, 68, 0.28) !important;
  border-left: 6px solid var(--red) !important;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.32),
    0 18px 50px rgba(225, 60, 68, 0.14) !important;
}

.model-focus::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 22%),
    linear-gradient(90deg, rgba(225,60,68,0.08), transparent 30%);
  pointer-events: none;
}

.model-focus .eyebrow,
.model-focus .kicker {
  color: #ff5a62;
}

.model-focus .eyebrow::before {
  background: currentColor;
}

.model-focus .body-copy {
  font-size: 1.08rem;
  line-height: 1.72;
  font-weight: 500;
}

.model-focus .body-copy,
.model-focus .list-copy li {
  color: rgba(255,255,255,0.92);
  opacity: 1;
}

.light-section .card.model-focus .body-copy,
.light-section .card.model-focus .list-copy li,
.light-section .card.model-focus .card-title,
.light-section .card.model-focus p,
.light-section .card.model-focus strong {
  color: rgba(255,255,255,0.92) !important;
}

.light-section .card.model-focus .eyebrow,
.light-section .card.model-focus .kicker {
  color: #ff5a62 !important;
}

.light-section .card.model-focus .eyebrow::before {
  background: currentColor !important;
}

.model-focus .list-copy li {
  border-top-color: rgba(255,255,255,0.1);
  font-weight: 600;
}

.model-focus:hover {
  transform: translateY(-14px) scale(1.018);
  border-color: rgba(225, 60, 68, 0.42);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.38),
    0 24px 64px rgba(225, 60, 68, 0.18);
}

.card,
.timeline-card,
.quote-card,
.spotlight-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.light-section .card,
.light-section .timeline-card,
.light-section .quote-card,
.light-section .spotlight-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
}

.card:hover,
.timeline-card:hover,
.quote-card:hover,
.spotlight-card:hover {
  transform: translateY(-8px);
  border-color: rgba(225, 60, 68, 0.4);
  box-shadow: var(--shadow-red);
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(225,60,68,0.18), transparent 34%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.spotlight-card:hover::after {
  opacity: 1;
}

.card-title {
  font-size: clamp(1rem, 1.2vw, 1.42rem);
  line-height: 1.08;
  margin-bottom: 6px;
  max-width: 100%;
  text-wrap: balance;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.panel .card,
.panel .spotlight-card {
  padding: 22px 24px;
  border-radius: 24px;
}

.panel .card-title {
  font-size: clamp(0.98rem, 1vw, 1.24rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.kicker {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
  font-weight: 700;
}

.rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
  margin: 12px 0;
}

.list-copy {
  list-style: none;
  display: grid;
  gap: 12px;
}

.list-copy li {
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.light-section .list-copy li {
  border-top-color: rgba(0,0,0,0.08);
}

.stat-block {
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.light-section .stat-block {
  background: rgba(244, 244, 244, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.88;
  display: block;
  margin-bottom: 12px;
  letter-spacing: -0.08em;
  white-space: nowrap;
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hero-stats .stat-block {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border-left: 4px solid var(--red);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.hero-stats .stat-block::after {
  content: "";
  position: absolute;
  inset: auto -30% -50% auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(225, 60, 68, 0.18), transparent 72%);
  pointer-events: none;
}

.hero-stats .stat-block span {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.82);
}

.hero-stats .stat-number {
  position: relative;
  z-index: 1;
}

.mega-number {
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 0.86;
  color: rgba(0, 0, 0, 0.06);
}

.slash {
  position: absolute;
  width: 140px;
  height: 3px;
  background: var(--red);
  transform: rotate(-48deg);
  top: 44%;
  left: 4%;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--red), rgba(225, 60, 68, 0.12));
}

.timeline-card {
  margin-left: 44px;
  min-height: 0;
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 8px rgba(225, 60, 68, 0.12);
}

.timeline-week {
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.timeline-note {
  margin-top: 12px;
  font-style: italic;
  color: var(--red);
  opacity: 1;
}

.marquee {
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: var(--red);
  color: var(--white);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  min-width: max-content;
  gap: 32px;
  padding: 14px 0;
  animation: marquee 20s linear infinite;
  font-family: var(--font-display);
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-rail {
  display: flex;
  gap: 18px;
  overflow: hidden;
}

.logo-track {
  display: flex;
  gap: 18px;
  min-width: max-content;
  animation: marquee 24s linear infinite;
}

.logo-pill {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.08);
  min-width: 200px;
  height: 116px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.logo-pill img {
  max-height: 64px;
  max-width: 178px;
  width: auto;
  object-fit: contain;
  filter: saturate(0.9);
}

.logo-pill.logo-large {
  min-width: 228px;
  height: 126px;
}

.logo-pill.logo-large img {
  max-height: 72px;
  max-width: 190px;
}

.logo-pill.logo-edii img {
  max-height: 82px;
  max-width: 210px;
}

.logo-pill.logo-sih {
  background: #ffffff;
}

.logo-pill.logo-sih img {
  max-height: 86px;
  max-width: 204px;
  mix-blend-mode: multiply;
}

.logo-pill.logo-prince img {
  max-height: 88px;
  max-width: 208px;
}

.logo-pill.text-mark {
  font-family: var(--font-display);
  font-size: 0.84rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--black);
  text-align: center;
  padding: 18px 14px;
  line-height: 1.1;
}

.module-card .card-title,
.feature-grid.four .card .card-title {
  font-size: clamp(0.96rem, 1vw, 1.18rem);
  line-height: 1.1;
}

.module-card {
  min-height: 180px;
}

.nebulaa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-self: start;
}

.nebulaa-card {
  min-height: 196px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 26px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff, #faf8f8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 60px rgba(17, 17, 17, 0.08);
}

.nebulaa-card .module-no {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nebulaa-card .card-title {
  font-size: clamp(1.02rem, 1.05vw, 1.28rem);
  line-height: 1.08;
  margin-bottom: 0;
}

.nebulaa-card .body-copy {
  opacity: 0.86;
  line-height: 1.62;
}

.institution-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.institution-logo-grid .logo-pill {
  min-width: 0;
  height: 126px;
}

.brand-section {
  display: grid;
  gap: 28px;
}

.brand-section .logo-track {
  animation-duration: 30s;
  gap: 80px;
  align-items: center;
}

/* Strategic partnerships: card-less rail, uniform monochrome logos */
.brand-section .logo-rail {
  gap: 80px;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.brand-section .logo-rail .logo-pill {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  min-width: 0;
  height: 100px;
}

/* simple wordmarks: balanced by a shared cap height */
.brand-section .logo-rail .logo-pill img {
  max-height: 60px;
  max-width: 300px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  mix-blend-mode: normal;
  opacity: 0.82;
  transition: opacity 0.25s ease;
}

.brand-section .logo-rail .logo-pill:hover img {
  opacity: 1;
}

/* stacked logos (icon + multi-line text) need more height to stay legible */
.brand-section .logo-rail .logo-pill.logo-edii img {
  max-height: 84px;
  max-width: 400px;
}

.brand-section .logo-rail .logo-pill.logo-sih img {
  max-height: 88px;
  max-width: 240px;
}

.tech-intro {
  display: grid;
  gap: 10px;
  max-width: 56ch;
  margin-bottom: 16px;
}

.tech-heading {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 2.2rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.tech-subcopy {
  margin: 0;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.tech-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 300px;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
}

.tech-card-kicker {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tech-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.6vw, 1.65rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.tech-card-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 104px;
  padding: 0;
  background: transparent;
  border: none;
}

.tech-card-logo-wrap-light {
  background: transparent;
  border: none;
}

.tech-card-logo {
  width: auto;
  max-width: 200px;
  height: auto;
  object-fit: contain;
}

.tech-card-logo-nebulaa {
  max-height: 140px;
  max-width: 260px;
  filter: none;
}

.tech-card-logo-pragmr {
  max-height: 56px;
}

/* Animated flowing background paths (yellow + white) behind tech partnerships */
.tech-paths-wrap {
  position: relative;
}

.tech-paths-bg {
  position: absolute;
  inset: -40px -16px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.tech-paths-bg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.tech-paths-bg path {
  fill: none;
}

.tech-paths-content {
  position: relative;
  z-index: 1;
}

.tech-paths-wrap .tech-card {
  background: rgba(16, 14, 16, 0.6);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

@keyframes pathflow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -1; }
}

/* Liquid-glass treatment for CTA buttons (keeps existing colours) */
.liquid-glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, filter 0.3s ease;
  box-shadow:
    inset 1px 1px 1px -0.5px rgba(255, 255, 255, 0.5),
    inset -1px -1px 1px -0.5px rgba(255, 255, 255, 0.4),
    inset 0 0 6px 4px rgba(255, 255, 255, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.28),
    0 0 12px rgba(255, 255, 255, 0.08);
}

.liquid-glass:hover {
  transform: scale(1.05);
  filter: brightness(1.06);
}

.liquid-glass:active {
  transform: scale(0.98);
}

/* SVG refraction layer — visible through translucent/outline buttons */
.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  -webkit-backdrop-filter: url("#liquid-glass");
  backdrop-filter: url("#liquid-glass");
}

/* glass sheen on top */
.liquid-glass::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  pointer-events: none;
}

/* Consultation form modal */
.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.consult-modal[hidden] { display: none; }

.consult-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.consult-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: #141214;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: consultIn 0.25s ease;
}

@keyframes consultIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.consult-x {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}

.consult-x:hover { color: #fff; }

.consult-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin: 6px 0;
}

.consult-sub {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.consult-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.consult-field label {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.consult-field input,
.consult-field textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.consult-field textarea {
  resize: vertical;
  min-height: 76px;
}

.consult-field input:focus,
.consult-field textarea:focus {
  outline: none;
  border-color: var(--red);
}

.consult-submit {
  width: 100%;
  margin-top: 8px;
  cursor: pointer;
}

.consult-status {
  margin-top: 12px;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.consult-status.ok { color: #5fd08a; }
.consult-status.err { color: #ff8087; }

body.consult-open { overflow: hidden; }

.tech-card-copy {
  max-width: 34ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
}

.tech-card-note {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.94rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.56);
}

.tech-card-copy {
  color: rgba(13,13,13,0.72);
}

.tech-card-title {
  color: var(--white);
}

.tech-card-copy {
  color: rgba(255,255,255,0.76);
}

.photo-mosaic {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  margin-top: 28px;
}

.photo-stack {
  display: grid;
  gap: 18px;
}

.photo-card {
  position: relative;
  min-height: 240px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-soft);
}

.light-section .photo-card {
  border-color: rgba(0,0,0,0.08);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-card figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(13,13,13,0.72);
  color: var(--white);
  font-size: 0.92rem;
  backdrop-filter: blur(10px);
}

.section-gap {
  margin-bottom: 72px;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-soft);
  background: #111;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.team-showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.team-slideshow {
  position: relative;
  min-height: 520px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-soft);
  background: #111;
}

.slide-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,13,13,0.66);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.slide-arrow:hover {
  background: rgba(225, 60, 68, 0.92);
  border-color: rgba(225, 60, 68, 0.92);
  transform: scale(1.04);
}

.slide-arrow span {
  font-size: 1.8rem;
  line-height: 1;
  transform: translateY(-1px);
}

.slide-arrow-prev {
  left: 18px;
}

.slide-arrow-next {
  right: 18px;
}

.team-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.team-slide.active {
  opacity: 1;
}

.team-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-slide figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(13,13,13,0.72);
  backdrop-filter: blur(12px);
}

.team-slide strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.dot-nav {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.dot-nav button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  transition: var(--transition);
}

.dot-nav button.active {
  width: 28px;
  background: var(--red);
}

.media-rail {
  display: grid;
  gap: 18px;
}

.case-study-rail {
  display: grid;
  gap: 22px;
  padding: 28px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(225, 60, 68, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-soft);
}

.case-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.case-metrics .stat-block {
  min-height: 168px;
  border-radius: 26px;
  box-shadow: none;
  justify-content: space-between;
}

.case-metrics .stat-number {
  font-size: clamp(2rem, 3vw, 3rem);
  white-space: normal;
}

.case-metric-primary {
  background:
    radial-gradient(circle at top right, rgba(225, 60, 68, 0.2), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
}

.case-metric-wide {
  grid-column: 1 / -1;
  min-height: 150px;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}

.case-metric-wide .stat-number {
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
}

.case-slideshow-shell {
  display: grid;
  gap: 16px;
}

.case-slideshow {
  min-height: 430px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 70px rgba(0,0,0,0.24);
}

.case-slideshow .team-slide figcaption {
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px 18px;
  background: rgba(13,13,13,0.78);
}

.case-slideshow .slide-arrow {
  top: auto;
  bottom: 102px;
  margin-top: 0;
}

.case-dots {
  justify-content: center;
  margin-top: 0;
}

/* Nebulaa cosmic hero background */
.cosmos-hero {
  background: transparent !important; /* let the fixed 3D canvas show through */
}
.cosmos-hero::before {
  display: none; /* hide the dot texture so the 3D scene shows cleanly */
}
.cosmos-hero .panel {
  background: linear-gradient(180deg, rgba(10,10,12,0.62), rgba(10,10,12,0.48));
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-color: rgba(255,255,255,0.12);
}
.cosmos-hero .panel .card,
.cosmos-hero .panel .spotlight-card {
  background: rgba(12,12,14,0.5);
}
.cosmos-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  display: block;
  pointer-events: none;
}
.cosmos-stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-repeat: repeat;
  background-size: 520px 520px;
  background-image:
    radial-gradient(1.4px 1.4px at 8% 14%, rgba(255,255,255,0.9), transparent 60%),
    radial-gradient(1.2px 1.2px at 22% 39%, rgba(255,231,170,0.8), transparent 60%),
    radial-gradient(1px 1px at 35% 8%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1.3px 1.3px at 48% 62%, rgba(255,255,255,0.85), transparent 60%),
    radial-gradient(1px 1px at 61% 27%, rgba(255,231,170,0.7), transparent 60%),
    radial-gradient(1.4px 1.4px at 73% 73%, rgba(255,255,255,0.9), transparent 60%),
    radial-gradient(1px 1px at 86% 18%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1.2px 1.2px at 92% 52%, rgba(255,231,170,0.8), transparent 60%),
    radial-gradient(1px 1px at 14% 78%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1.3px 1.3px at 30% 88%, rgba(255,255,255,0.8), transparent 60%),
    radial-gradient(1px 1px at 54% 94%, rgba(255,231,170,0.7), transparent 60%),
    radial-gradient(1.2px 1.2px at 68% 6%, rgba(255,255,255,0.8), transparent 60%),
    radial-gradient(1px 1px at 80% 90%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1.4px 1.4px at 96% 80%, rgba(255,255,255,0.85), transparent 60%),
    radial-gradient(1px 1px at 4% 50%, rgba(255,231,170,0.7), transparent 60%),
    radial-gradient(1.2px 1.2px at 44% 22%, rgba(255,255,255,0.8), transparent 60%);
  animation: cosmosTwinkle 5.5s ease-in-out infinite alternate;
}
@keyframes cosmosTwinkle { 0% { opacity: 0.55; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cosmos-stars { animation: none; } }
.cosmos-scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 78% at 19% 48%, rgba(0,0,0,0.82), rgba(0,0,0,0.4) 52%, rgba(0,0,0,0) 72%),
    linear-gradient(180deg, rgba(13,13,13,0.5) 0%, rgba(13,13,13,0) 26%, rgba(13,13,13,0) 70%, rgba(13,13,13,0.6) 100%);
}

/* Nebulaa intro loader — three lights swirl in and assemble into the logo */
body.neb-locked { overflow: hidden; }
.neb-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(60,38,4,0.55), transparent 70%),
    #050403;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.neb-intro.done { opacity: 0; visibility: hidden; pointer-events: none; }
.neb-intro-stage {
  position: relative;
  width: 300px;
  height: 300px;
}
.neb-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffaf0 0%, #ffe27a 32%, #fccc24 56%, rgba(252,204,36,0) 76%);
  box-shadow: 0 0 26px 8px rgba(252,204,36,0.55);
  opacity: 0;
}
.neb-orb-a { animation: nebOrbA 1.9s cubic-bezier(0.5,0,0.2,1) forwards; }
.neb-orb-b { animation: nebOrbB 1.9s cubic-bezier(0.5,0,0.2,1) forwards; }
.neb-orb-c { animation: nebOrbC 1.9s cubic-bezier(0.5,0,0.2,1) forwards; }
@keyframes nebOrbA { /* clockwise */
  0%   { transform: rotate(0deg)   translateX(140px) scale(0.6); opacity: 0; }
  12%  { opacity: 1; }
  78%  { transform: rotate(450deg) translateX(40px)  scale(1);   opacity: 1; }
  100% { transform: rotate(540deg) translateX(0)     scale(0.4); opacity: 0; }
}
@keyframes nebOrbB { /* counter-clockwise */
  0%   { transform: rotate(120deg)  translateX(140px) scale(0.6); opacity: 0; }
  12%  { opacity: 1; }
  78%  { transform: rotate(-330deg) translateX(40px)  scale(1);   opacity: 1; }
  100% { transform: rotate(-420deg) translateX(0)     scale(0.4); opacity: 0; }
}
@keyframes nebOrbC { /* clockwise, offset */
  0%   { transform: rotate(240deg) translateX(140px) scale(0.6); opacity: 0; }
  12%  { opacity: 1; }
  78%  { transform: rotate(690deg) translateX(40px)  scale(1);   opacity: 1; }
  100% { transform: rotate(780deg) translateX(0)     scale(0.4); opacity: 0; }
}
.neb-intro-flash {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffaf0 0%, rgba(252,204,36,0.6) 40%, rgba(252,204,36,0) 72%);
  opacity: 0;
  animation: nebFlash 0.7s ease-out 1.65s forwards;
}
@keyframes nebFlash {
  0%   { opacity: 0; transform: scale(0.2); }
  40%  { opacity: 1; transform: scale(2.6); }
  100% { opacity: 0; transform: scale(4.5); }
}
.neb-intro-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: auto;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  filter: drop-shadow(0 0 26px rgba(252,204,36,0.55));
  animation: nebLogoIn 1s cubic-bezier(0.34,1.56,0.64,1) 1.75s forwards;
}
@keyframes nebLogoIn {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.5)  rotate(-30deg); }
  60%  { opacity: 1; transform: translate(-50%, -50%) scale(1.06) rotate(4deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1)    rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .neb-intro { display: none; }
}

/* Nebulaa stacking glass cards */
.stack-section {
  overflow: visible; /* allow position: sticky (default .section overflow:clip breaks it) */
  background: transparent !important; /* let the cosmic canvas show through the whole scroll */
}
.stack-section::before {
  display: none; /* drop the dot texture so the 3D scene shows cleanly */
}
.stack-scroll {
  margin-top: 42px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-bottom: 16vh;
}
.stack-card {
  position: sticky;
  top: calc(var(--nav-height) + 56px + var(--i, 0) * 26px);
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 40px 44px;
  min-height: 230px;
  border-radius: 28px;
  background: linear-gradient(150deg, rgba(255,255,255,0.1), rgba(255,255,255,0.025) 60%);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 34px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.16);
  overflow: hidden;
  will-change: transform;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.stack-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 100% at 100% 0%, rgba(252,204,36,0.16), transparent 46%);
}
.stack-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(252,204,36,0.6);
  flex: 0 0 auto;
}
.stack-body {
  display: grid;
  gap: 12px;
}
.stack-card .card-title {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}
.stack-card .body-copy {
  color: var(--muted-dark);
  max-width: 60ch;
}
@media (max-width: 640px) {
  .stack-card { flex-direction: column; gap: 14px; padding: 30px 26px; min-height: 200px; }
  .stack-card { top: calc(var(--nav-height) + 24px + var(--i, 0) * 18px); }
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.resource-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.resource-card .inline-actions {
  margin-top: 4px;
}

.blog-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.blog-card {
  min-height: 440px;
  gap: 18px;
  padding: 34px 32px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(225, 60, 68, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
  border: 1px solid rgba(225, 60, 68, 0.12);
  box-shadow: 0 24px 70px rgba(17, 17, 17, 0.08);
}

.blog-card .article-meta {
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.blog-card .article-meta span:last-child {
  font-size: 0.94rem;
  color: rgba(13,13,13,0.54);
}

.blog-card .card-title {
  font-size: clamp(1.42rem, 2vw, 2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 11ch;
}

.blog-card .body-copy {
  font-size: 1.02rem;
  line-height: 1.8;
  color: rgba(13,13,13,0.78);
  opacity: 1;
  max-width: 30ch;
}

.blog-card .inline-actions {
  margin-top: auto;
  padding-top: 10px;
}

.blog-card .btn-secondary {
  min-height: 58px;
  padding: 0 26px;
  border-color: rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.7);
  font-size: 0.98rem;
}

.blog-card:hover {
  transform: translateY(-10px);
  border-color: rgba(225, 60, 68, 0.22);
  box-shadow:
    0 34px 84px rgba(225, 60, 68, 0.12),
    0 18px 44px rgba(17,17,17,0.08);
}

.resource-stack {
  display: grid;
  gap: 28px;
}

.resource-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.resource-kpi {
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.light-section .resource-kpi {
  background: rgba(244,244,244,0.8);
  border-color: rgba(0,0,0,0.08);
}

.resource-kpi strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: 8px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--muted);
}

.dark-section .article-meta {
  color: rgba(255,255,255,0.62);
}

.article-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(225, 60, 68, 0.08);
  border: 1px solid rgba(225, 60, 68, 0.18);
  color: var(--red);
  font-weight: 600;
}

.article-page .page-hero .section-inner {
  padding-bottom: 56px;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 42px;
  align-items: start;
}

.article-prose {
  display: grid;
  gap: 28px;
}

.article-prose .card {
  gap: 14px;
}

.article-prose h2,
.article-prose h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.article-prose h2 {
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
}

.article-prose h3 {
  font-size: clamp(1.08rem, 1.4vw, 1.34rem);
}

.article-prose p,
.article-prose li {
  line-height: 1.8;
  color: rgba(0,0,0,0.78);
}

.dark-section .article-prose p,
.dark-section .article-prose li {
  color: rgba(255,255,255,0.76);
}

.article-prose ul,
.article-prose ol {
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.article-aside {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  display: grid;
  gap: 18px;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.tool-main {
  display: grid;
  gap: 24px;
}

.tool-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 30px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.tool-steps {
  display: grid;
  gap: 12px;
}

.tool-step {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(244,244,244,0.9);
  border: 1px solid rgba(0,0,0,0.06);
}

.tool-step strong {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.metric-card {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff7f8, #fff);
  border: 1px solid rgba(225, 60, 68, 0.16);
}

.metric-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 8px;
}

.tool-output h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin: 14px 0 8px;
  font-size: 1rem;
}

.tool-output p {
  margin-top: 8px;
}

.tool-output code {
  font-family: var(--font-body);
  font-size: 0.96rem;
}

.mini-toc {
  display: grid;
  gap: 12px;
}

.mini-toc a {
  color: inherit;
  opacity: 0.72;
}

.mini-toc a:hover {
  opacity: 1;
  color: var(--red);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.tool-card {
  display: grid;
  gap: 18px;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 18px 54px rgba(0,0,0,0.06);
}

.tool-card .kicker {
  margin-bottom: 0;
}

.tool-form {
  display: grid;
  gap: 14px;
}

.tool-form.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-form .full {
  grid-column: 1 / -1;
}

.field-copy {
  display: grid;
  gap: 6px;
}

.field-copy span {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(0,0,0,0.74);
}

.field-copy small {
  color: var(--muted);
  font-size: 0.8rem;
}

.tool-output {
  min-height: 180px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff7f8, #fff);
  border: 1px solid rgba(225, 60, 68, 0.16);
  color: var(--black);
  white-space: pre-wrap;
  line-height: 1.7;
}

.tool-output strong {
  display: inline;
}

.tool-output ul {
  margin-top: 10px;
  padding-left: 18px;
}

.tool-output li + li {
  margin-top: 8px;
}

.tool-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.note-box {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.light-section .note-box {
  background: rgba(244,244,244,0.85);
  border-color: rgba(0,0,0,0.08);
}

.eyebrow-light {
  color: rgba(255,255,255,0.92);
}

.eyebrow-light::before {
  background: rgba(255,255,255,0.92);
}

.footer-lead {
  margin-bottom: 96px;
}

.quote-card {
  border-left: 4px solid var(--red);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.pill {
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(225, 60, 68, 0.2);
  background: rgba(225, 60, 68, 0.06);
  color: inherit;
}

.stack {
  display: grid;
  gap: 16px;
}

.split-grid.narrow-visual {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: start;
}

.faq-item {
  border-top: 1px solid rgba(0,0,0,0.08);
}

.faq-button {
  width: 100%;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  text-align: left;
  color: inherit;
}

.faq-button span:last-child {
  color: var(--red);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-button span:last-child {
  transform: rotate(45deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-panel-inner {
  padding: 0 0 24px 18px;
  border-left: 2px solid var(--red);
  opacity: 0.76;
}

.reveal {
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.footer {
  position: relative;
  margin-top: clamp(28px, 5vw, 56px);
  border-top: 2px solid rgba(225, 60, 68, 0.6);
}

.footer .section-inner {
  padding-top: 104px;
}

.footer-grid {
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  margin-top: 88px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer h4 {
  margin-bottom: 14px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  margin-top: 14px;
  max-width: 34ch;
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.62);
}

@media (max-width: 1024px) {
  .hero-grid,
  .split-grid,
  .two-col,
  .offer-layout,
  .system-grid,
  .feature-grid.three,
  .feature-grid.four,
  .nebulaa-grid,
  .photo-mosaic,
  .team-showcase,
  .tech-grid,
  .resource-grid,
  .logo-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    min-height: 540px;
  }

  .case-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-card.primary {
    width: 270px;
  }

  .hero-card.metric,
  .hero-card.secondary {
    width: 230px;
  }
}

@media (max-width: 820px) {
  body.js-ready .reveal:not(.in-view) {
    opacity: 1;
    transform: none;
  }

  .nav-links,
  .site-nav .btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    position: relative;
  }

  .section-inner {
    padding: 72px 0;
  }

  .footer .section-inner {
    padding-top: 72px;
  }

  .footer-grid {
    margin-top: 56px;
    padding-top: 30px;
  }

  .hero-grid,
  .split-grid,
  .two-col,
  .offer-layout,
  .system-grid,
  .feature-grid.three,
  .feature-grid.four,
  .nebulaa-grid,
  .photo-mosaic,
  .team-showcase,
  .tech-grid,
  .resource-grid,
  .logo-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .institution-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-study-rail {
    padding: 22px;
  }

  .case-metrics {
    grid-template-columns: 1fr;
  }

  .case-metric-wide {
    grid-column: auto;
  }

  .article-shell,
  .tool-layout,
  .tool-grid,
  .tool-form.two-col {
    grid-template-columns: 1fr;
  }

  .offer-copy {
    position: static;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }

  .logo-pill,
  .institution-logo-grid .logo-pill {
    height: 104px;
  }

  .photo-card {
    min-height: 220px;
  }

  .team-slideshow {
    min-height: 420px;
  }

  .page-hero {
    min-height: auto;
    padding-top: 10px;
  }

  .hero-title {
    font-size: clamp(2.15rem, 9vw, 3.35rem);
    max-width: 6.6ch;
  }

  .section-title {
    font-size: clamp(1.8rem, 9vw, 2.7rem);
  }

  .hero-copy .hero-title {
    max-width: 6.2ch;
  }

  .hero-proof {
    gap: 12px;
    font-size: 0.9rem;
  }

  .hero-visual {
    display: none;
  }

  .hero-orbit {
    width: 250px;
    height: 250px;
  }

  .hero-grid-dots {
    inset: 30px 0 0 30px;
  }

  .hero-card {
    padding: 18px;
    border-radius: 20px;
  }

  .hero-card h3 {
    font-size: 1.2rem;
  }

  .hero-card p {
    font-size: 0.92rem;
  }

  .hero-card.primary {
    top: 96px;
    left: 0;
    width: 210px;
  }

  .hero-card.secondary {
    top: 26px;
    right: 0;
    width: 176px;
  }

  .hero-card.metric {
    right: 8px;
    bottom: 18px;
    width: 190px;
  }

  .hero-card.metric strong {
    font-size: 2.2rem;
  }

  .timeline-card {
    margin-left: 34px;
  }

  .btn,
  .actions .btn {
    width: 100%;
  }
}

/* ===== Shared: photo carousel + scroll-tilt + institutional logo marquee ===== */
.scroll-tilt { perspective: 1000px; margin-top: 20px; }
.photo-carousel { position: relative; margin: 34px auto 0; max-width: 920px; border-radius: 28px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.18); transform-origin: center center; will-change: transform; }
.pc-track { display: flex; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.pc-slide { min-width: 100%; position: relative; margin: 0; }
.pc-slide img { width: 100%; height: auto; display: block; }
.pc-slide figcaption { position: absolute; left: 18px; bottom: 18px; max-width: 70%; background: rgba(0,0,0,.6); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 1rem; }
.pc-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(0,0,0,.45); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; transition: background .2s; }
.pc-btn:hover { background: rgba(0,0,0,.8); }
.pc-prev { left: 16px; } .pc-next { right: 16px; }
.pc-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.pc-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; transition: all .25s; }
.pc-dot.active { background: #fff; width: 24px; border-radius: 6px; }

.inst-rail { gap: 0; margin-top: 30px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.inst-rail .logo-track { gap: 0; align-items: center; animation-duration: 36s; min-width: max-content; }
.inst-rail .logo-pill { background: transparent; border: 0; box-shadow: none; padding: 0; margin-right: 72px; min-width: 0; height: 104px; border-radius: 0; }
.inst-rail .logo-pill img { max-height: 92px; max-width: 260px; width: auto; object-fit: contain; filter: none; }
