/* ==========================================================================
   MullerTech & Innovations — Shared Design System
   One stylesheet powers every page. Sections are ordered:
   1. Design tokens (colors, type, spacing, shadow, radius)
   2. Reset / base element styles
   3. Layout utilities
   4. Typography helpers
   5. Buttons
   6. Header / navigation
   7. Footer
   8. Cards & tags
   9. Hero patterns
   10. Stats strip
   11. Modals & forms
   12. Scroll-reveal animation
   13. Page-specific building blocks reused across project pages
   14. Responsive breakpoints
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand palette */
  --navy-900: #0c1f3f;
  --navy-800: #102a52;
  --navy-700: #14345f;
  --blue-700: #1455b8;
  --blue-500: #1e6fd9;
  --sky-300: #7fb8f5;
  --sky-100: #e4f0fd;
  --off-white: #f7f9fc;
  --white: #ffffff;

  /* Text */
  --text-primary: #101826;
  --text-secondary: #4a5568;
  --text-muted: #7c8aa0;
  --text-on-dark: #eef3fb;
  --text-on-dark-muted: #a7b7d3;

  /* Borders / surfaces */
  --border-subtle: #e3e8f0;
  --border-strong: #c6d2e3;
  --surface-raised: #ffffff;

  /* Status */
  --success: #1c8a5b;
  --error: #c73838;

  /* Type */
  --font-heading: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --fs-h1: clamp(2.4rem, 1.8rem + 2.6vw, 4.2rem);
  --fs-h2: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem);
  --fs-h3: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Spacing scale */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Shape / elevation */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(12, 31, 63, 0.06);
  --shadow-md: 0 12px 32px rgba(12, 31, 63, 0.1);
  --shadow-lg: 0 24px 60px rgba(12, 31, 63, 0.18);
  --shadow-glow: 0 0 0 1px rgba(30, 111, 217, 0.14), 0 20px 48px rgba(20, 85, 184, 0.18);

  --container-w: 1180px;
  --transition-fast: 160ms ease;
  --transition-base: 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

ul,
ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 var(--space-sm);
}

button {
  font-family: inherit;
}

/* Visible, accessible focus state everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--sky-300);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy-900);
  color: var(--white);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  z-index: 999;
}

.skip-link:focus {
  left: var(--space-sm);
  top: var(--space-sm);
}

/* ---------- 3. Layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-2xl);
}

.section--tight {
  padding-block: var(--space-xl);
}

.section--navy {
  background: var(--navy-900);
  color: var(--text-on-dark);
}

.section--navy h1,
.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section--sky {
  background: linear-gradient(180deg, var(--sky-100) 0%, var(--off-white) 100%);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

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

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.stack {
  display: flex;
  flex-direction: column;
}

.cluster {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: var(--space-sm);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--blue-500);
  display: inline-block;
}

.section--navy .eyebrow,
.hero-dark .eyebrow {
  color: var(--sky-300);
}

.section--navy .eyebrow::before,
.hero-dark .eyebrow::before {
  background: var(--sky-300);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--text-secondary);
  max-width: 62ch;
}

/* .lead sets its own (light-background) color, which otherwise beats any
   color inherited from a dark ancestor — every dark hero variant needs an
   explicit override here, not just .section--navy. */
.section--navy .lead,
.hero .lead,
.page-hero .lead,
.project-hero .lead {
  color: var(--text-on-dark-muted);
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-inline: auto;
}

.header-block {
  max-width: 720px;
  margin-bottom: var(--space-xl);
}

.header-block.text-center {
  margin-inline: auto;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  box-shadow: 0 26px 54px rgba(20, 85, 184, 0.32);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: var(--blue-500);
  color: var(--blue-700);
}

.btn-outline:hover {
  background: var(--sky-100);
}

.btn-ghost {
  background: transparent;
  color: var(--blue-700);
  padding-inline: 0.4rem;
}

.btn-ghost:hover {
  color: var(--blue-500);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

.btn .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn.is-loading .spinner {
  display: inline-block;
}

.btn.is-loading .btn-label {
  opacity: 0.85;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- 6. Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 252, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--transition-fast);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-xs);
  gap: var(--space-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy-900);
}

.brand img {
  width: 38px;
  height: 38px;
}

.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-500);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2xs);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-links > li {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  padding: var(--space-2xs) var(--space-3xs);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--blue-500);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

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

.nav-link[aria-current="page"] {
  color: var(--blue-700);
}

.nav-caret {
  width: 10px;
  height: 10px;
  transition: transform var(--transition-fast);
}

.has-dropdown[data-open="true"] .nav-caret {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  padding: var(--space-2xs);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

.has-dropdown[data-open="true"] .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.dropdown a span {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dropdown a:hover {
  background: var(--sky-100);
  color: var(--blue-700);
}

.nav-cta {
  margin-left: var(--space-2xs);
}

/* ---------- 7. Footer ---------- */
.site-footer {
  position: relative;
  background: var(--navy-900);
  color: var(--text-on-dark-muted);
  padding-block: var(--space-xl) var(--space-lg);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-700), var(--sky-300), var(--blue-700));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand {
  color: var(--white);
}

.footer-tagline {
  margin-top: var(--space-sm);
  max-width: 32ch;
  font-size: var(--fs-small);
}

.footer-heading {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.footer-links li {
  margin-bottom: var(--space-2xs);
}

.footer-links a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text-on-dark-muted);
  transition: color var(--transition-fast);
}

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

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-xs);
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer-contact li svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke-width: 1.6;
  color: var(--sky-300);
  opacity: 0.85;
}

.footer-contact a {
  text-decoration: none;
  color: var(--text-on-dark-muted);
  transition: color var(--transition-fast);
}

.footer-contact a:hover {
  color: var(--sky-300);
}

.footer-social {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.footer-social a:hover {
  background: rgba(127, 184, 245, 0.16);
  border-color: var(--sky-300);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: var(--text-on-dark);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  font-size: 0.82rem;
}

.footer-bottom a {
  text-decoration: none;
  color: var(--text-on-dark-muted);
}

.footer-bottom a:hover {
  color: var(--sky-300);
}

/* ---------- 8. Cards & tags ---------- */
.card {
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--sky-100);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: var(--space-2xs);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--sky-100);
  color: var(--blue-700);
  border: 1px solid rgba(20, 85, 184, 0.16);
}

.section--navy .tag,
.hero-dark .tag {
  background: rgba(127, 184, 245, 0.12);
  color: var(--sky-300);
  border-color: rgba(127, 184, 245, 0.3);
}

.badge-soon {
  background: rgba(124, 138, 160, 0.14);
  color: var(--text-muted);
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--success);
  margin-top: 2px;
}

/* ---------- 9. Hero patterns ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--text-on-dark);
  background: radial-gradient(1200px 640px at 82% -10%, rgba(30, 111, 217, 0.45), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, #0d2650 55%, var(--navy-800) 100%);
  overflow: hidden;
  padding-block: var(--space-2xl) var(--space-xl);
}

.hero-dark {
  color: var(--text-on-dark);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 70% 30%, black, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero h1 {
  color: var(--white);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.scroll-cue {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xs);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  text-decoration: none;
  z-index: 1;
}

.scroll-cue svg {
  width: 18px;
  height: 18px;
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* Abstract BIM/AI graphic — pure CSS/SVG, no imagery dependency */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
}

.hero-visual .node-frame {
  position: absolute;
  inset: 0;
}

.hero-visual .plane {
  position: absolute;
  border: 1px solid rgba(127, 184, 245, 0.35);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(30, 111, 217, 0.18), rgba(127, 184, 245, 0.05));
  backdrop-filter: blur(2px);
}

.hero-visual .plane--1 {
  width: 78%;
  height: 62%;
  top: 6%;
  left: 4%;
  transform: rotate(-6deg);
  animation: float-slow 7s ease-in-out infinite;
}

.hero-visual .plane--2 {
  width: 60%;
  height: 50%;
  bottom: 6%;
  right: 2%;
  transform: rotate(9deg);
  animation: float-slow 8s ease-in-out infinite reverse;
}

.hero-visual .plane--3 {
  width: 42%;
  height: 42%;
  top: 30%;
  right: 18%;
  transform: rotate(-3deg);
  border-color: rgba(255, 255, 255, 0.25);
  animation: float-slow 6s ease-in-out infinite;
}

@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0) rotate(var(--rot, 0deg));
  }
  50% {
    transform: translateY(-14px) rotate(var(--rot, 0deg));
  }
}

.hero-visual .dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sky-300);
  box-shadow: 0 0 0 6px rgba(127, 184, 245, 0.15);
}

.hero-visual svg.connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: rgba(127, 184, 245, 0.45);
  stroke-width: 1.4;
  fill: none;
}

/* ---------- BIM4-style project hero (matches the BIM4 concept mockup) ---------- */
/* A dark, full hero split into: left column (copy + tags + two dark feature
   cards) and right column (a solid card with release badge, ring-style
   stats, and the three gated-action buttons). Reused as-is by any future
   project page that wants the same "research release" treatment. */
.project-hero {
  position: relative;
  color: var(--text-on-dark);
  background: radial-gradient(1100px 600px at 88% -10%, rgba(30, 111, 217, 0.4), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, #0d2650 55%, var(--navy-800) 100%);
  padding-block: calc(var(--space-2xl) + 1rem) var(--space-2xl);
  overflow: hidden;
}

.project-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 80% 15%, black, transparent 70%);
}

.project-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-2xl);
  align-items: start;
}

.project-hero h1 {
  color: var(--white);
}

.project-hero .tag-row {
  margin-top: var(--space-md);
  margin-bottom: var(--space-lg);
}

.hero-feature-list {
  display: grid;
  gap: var(--space-md);
}

.feature-callout--dark {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}

.feature-callout--dark .card-icon {
  background: rgba(127, 184, 245, 0.14);
  color: var(--sky-300);
  flex-shrink: 0;
}

.feature-callout--dark h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: var(--space-3xs);
}

.feature-callout--dark p {
  color: var(--text-on-dark-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* Right-column action card */
.hero-action-card {
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
}

.release-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-300);
  margin-bottom: var(--space-sm);
}

.release-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(28, 138, 91, 0.25);
}

.hero-action-card h3 {
  color: var(--white);
  margin-bottom: var(--space-2xs);
}

.hero-action-card > p {
  color: var(--text-on-dark-muted);
  font-size: 0.92rem;
  margin-bottom: var(--space-lg);
}

.stat-ring-group {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.stat-ring-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.stat-ring {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(var(--ring-color, var(--sky-300)) var(--ring-pct, 65%), rgba(255, 255, 255, 0.14) 0);
}

.stat-ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--navy-800);
}

.stat-ring-value {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}

.stat-ring-value .skeleton {
  width: 26px;
  height: 1.1em;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.22) 37%, rgba(255, 255, 255, 0.1) 63%);
  background-size: 400% 100%;
}

.stat-ring-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

.stat-ring-label span {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-on-dark-muted);
}

.hero-action-card .stat-note {
  text-align: left;
  color: var(--text-on-dark-muted);
  padding-top: 0;
  margin-bottom: var(--space-lg);
}

.hero-action-card .action-row {
  margin-top: 0;
  flex-direction: column;
  align-items: stretch;
}

.hero-action-card .action-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

/* Compact page hero used on interior/project pages */
.page-hero {
  position: relative;
  color: var(--text-on-dark);
  background: radial-gradient(900px 480px at 85% 0%, rgba(30, 111, 217, 0.4), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, #0d2650 60%, var(--navy-800) 100%);
  padding-block: calc(var(--space-2xl) + 1rem) var(--space-xl);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 80% 20%, black, transparent 70%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.page-hero h1 {
  color: var(--white);
}

.page-hero .tag-row {
  margin-top: var(--space-md);
}

/* ---------- 10. Stats strip ---------- */
.stats-strip {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  position: relative;
  z-index: 2;
  margin-top: calc(var(--space-2xl) * -1 + var(--space-md));
}

.stat {
  text-align: center;
  padding-inline: var(--space-sm);
  border-right: 1px solid var(--border-subtle);
}

.stat:last-child {
  border-right: none;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 1.5rem + 1vw, 2.6rem);
  color: var(--navy-900);
  font-weight: 700;
  display: block;
  min-height: 1.2em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.skeleton {
  display: inline-block;
  width: 64px;
  height: 1.6em;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--border-subtle) 25%, #eef2f8 37%, var(--border-subtle) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  vertical-align: middle;
}

@keyframes shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

.stats-strip--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 640px;
  margin-inline: auto;
}

.stat-note {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: var(--space-2xs);
}

/* ---------- 11. Modals & forms ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 31, 63, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-lg);
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition-base);
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--off-white);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.modal-close:hover {
  background: var(--sky-100);
  color: var(--blue-700);
}

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--sky-100);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.modal h3 {
  margin-bottom: var(--space-3xs);
}

.modal-subtext {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: var(--space-md);
}

.form-field {
  margin-bottom: var(--space-sm);
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-3xs);
  color: var(--text-primary);
}

.form-field .required {
  color: var(--error);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--off-white);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--blue-500);
  background: var(--white);
  outline: none;
}

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: var(--error);
  background: #fdf2f2;
}

.form-error {
  display: none;
  color: var(--error);
  font-size: 0.8rem;
  margin-top: var(--space-3xs);
}

.form-field.has-error .form-error {
  display: block;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--space-sm);
}

.form-footnote {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

.form-status {
  display: none;
  align-items: center;
  gap: var(--space-2xs);
  font-size: 0.85rem;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.form-status.is-visible {
  display: flex;
}

.form-status--error {
  background: #fdf2f2;
  color: var(--error);
}

/* Success state */
.modal-success {
  display: none;
  text-align: center;
  padding-block: var(--space-md);
}

.modal-success.is-visible {
  display: block;
  animation: pop-in 0.4s ease;
}

.modal-success .success-check {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(28, 138, 91, 0.12);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.modal-success .success-check svg {
  width: 34px;
  height: 34px;
}

@keyframes pop-in {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-form.is-hidden,
.modal-success.is-hidden {
  display: none;
}

/* ---------- 12. Scroll-reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-stagger > * {
  transition-delay: calc(var(--stagger-index, 0) * 90ms);
}

/* ---------- 13. Reused building blocks (project template, etc.) ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.feature-callout {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.feature-callout .card-icon {
  flex-shrink: 0;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.applications-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
}

.cta-band {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700) 55%, var(--blue-700));
  border-radius: var(--radius-lg);
  color: var(--white);
  padding: var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 20% 0%, rgba(127, 184, 245, 0.25), transparent 60%);
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2,
.cta-band h3 {
  color: var(--white);
}

.cta-band .lead {
  color: var(--text-on-dark-muted);
  margin-inline: auto;
}

.cta-band .hero-actions {
  justify-content: center;
}

.placeholder-note {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--off-white);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: var(--space-2xs) var(--space-sm);
  margin-bottom: var(--space-md);
}

/* Project preview cards (Home page) */
.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card .card-icon {
  margin-bottom: var(--space-md);
}

.project-card .project-status {
  margin-top: auto;
  padding-top: var(--space-md);
}

/* Impact / stats strip on Home */
.impact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.impact-strip .stat-value {
  color: var(--white);
  font-size: clamp(2rem, 1.6rem + 1.4vw, 3rem);
}

.impact-strip .stat-label {
  color: var(--text-on-dark-muted);
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .project-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 420px;
    margin-inline: auto;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: none;
  }

  .impact-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 84vw);
    background: var(--navy-900);
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--space-2xl)) var(--space-lg) var(--space-lg);
    gap: var(--space-lg);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
  }

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

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-xs);
  }

  .nav-link {
    color: var(--text-on-dark);
    padding-block: var(--space-xs);
  }

  .has-dropdown[data-open="true"] .dropdown,
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    width: 100%;
  }

  .has-dropdown[data-open="true"] .dropdown {
    display: flex;
    flex-direction: column;
  }

  .dropdown a {
    color: var(--text-on-dark);
  }

  .dropdown a span {
    color: var(--text-on-dark-muted);
  }

  .nav-cta {
    margin-left: 0;
  }

  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    grid-template-columns: 1fr 1fr;
    margin-top: var(--space-md);
  }

  .impact-strip {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid-2,
  .hero-action-card .action-row-split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-block: var(--space-2xl) var(--space-xl);
  }
}

@media (max-width: 480px) {
  .stats-strip,
  .impact-strip {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-block: var(--space-sm);
  }

  .stat:last-child {
    border-bottom: none;
  }
}
