/* ==========================================================================
   AI-Suplex Labs — Design System & Stylesheet
   Single Source of Truth
   ========================================================================== */

:root {
  /* Colour Tokens */
  --navy: #1a2947;        /* Primary brand */
  --navy-800: #15223a;    /* Dark navy surface / CTA band */
  --gold: #b8862e;        /* Accent / CTA */
  --gold-600: #a1761f;    /* Hover / active CTA */
  --ink: #16181d;         /* High-contrast body text */
  --muted: #5b6472;       /* Secondary / label text */
  --line: #e3e6ea;        /* Structural borders */
  --bg: #ffffff;          /* Canvas background */
  --surface: #f6f7f9;     /* Secondary container background */
  --ok: #177a4b;          /* Status green */

  /* Typography Tokens */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-1: 0.875rem;       /* 14px */
  --fs-2: 1rem;           /* 16px */
  --fs-3: 1.125rem;       /* 18px */
  --fs-4: 1.375rem;       /* 22px */
  --fs-5: 1.75rem;        /* 28px */
  --fs-6: 2.25rem;        /* 36px */
  --fs-7: 3rem;           /* 48px */
  --lh-tight: 1.15;
  --lh-body: 1.65;

  /* Spacing Scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;
  --s-8: 96px;

  /* Shape & Elevation */
  --radius: 10px;
  --maxw: 1120px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.05);
  --shadow-header: 0 4px 16px rgba(22, 24, 29, 0.06);
}

/* ==========================================================================
   CSS Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font);
  font-size: var(--fs-2);
  line-height: var(--lh-body);
  color: var(--ink);
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Accessible Focus Styles */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-3);
  background-color: var(--navy-800);
  color: #ffffff;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius);
  font-size: var(--fs-1);
  font-weight: 600;
  z-index: 10000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--s-3);
}

/* ==========================================================================
   Structural Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--s-3);
  padding-right: var(--s-3);
}

@media (min-width: 640px) {
  .container {
    padding-left: var(--s-4);
    padding-right: var(--s-4);
  }
}

.section {
  padding-top: var(--s-6);
  padding-bottom: var(--s-6);
}

@media (min-width: 900px) {
  .section {
    padding-top: var(--s-7);
    padding-bottom: var(--s-7);
  }
}

.section--surface {
  background-color: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header {
  margin-bottom: var(--s-5);
}

.section-header__title {
  font-size: var(--fs-5);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--navy-800);
  letter-spacing: -0.02em;
}

@media (min-width: 900px) {
  .section-header__title {
    font-size: var(--fs-6);
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}

.header.has-shadow {
  box-shadow: var(--shadow-header);
}

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

.nav__brand {
  font-size: var(--fs-3);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  white-space: nowrap;
}

.nav__brand:hover {
  color: var(--navy-800);
}

.nav__logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
}

/* Checkbox toggle for fallback zero-JS mobile navigation */
.nav__checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--navy);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
}

.nav__toggle-icon,
.nav__toggle-icon::before,
.nav__toggle-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__toggle-icon {
  position: relative;
}

.nav__toggle-icon::before,
.nav__toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav__toggle-icon::before {
  top: -6px;
}

.nav__toggle-icon::after {
  bottom: -6px;
}

.nav__menu-wrapper {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.nav__link {
  font-size: var(--fs-1);
  font-weight: 500;
  color: var(--muted);
  padding: var(--s-1) 0;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav__link:hover {
  color: var(--navy);
}

.nav__link[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 2px solid var(--gold);
}

/* Projects Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  cursor: pointer;
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav__dropdown-icon {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  padding: var(--s-2) 0;
  z-index: 1000;
}

.nav__dropdown-item a {
  display: block;
  padding: var(--s-2) var(--s-4);
  font-size: var(--fs-1);
  color: var(--ink);
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav__dropdown-item a:hover {
  background-color: var(--surface);
  color: var(--navy);
}

/* Hover & Focus dropdown triggers for desktop */
@media (min-width: 900px) {
  .nav__dropdown:hover .nav__dropdown-menu,
  .nav__dropdown:focus-within .nav__dropdown-menu {
    display: block;
  }

  .nav__dropdown:hover .nav__dropdown-icon,
  .nav__dropdown:focus-within .nav__dropdown-icon {
    transform: rotate(180deg);
  }
}

.nav__actions {
  display: flex;
  align-items: center;
}

/* Mobile Nav Drawer (< 900px) */
@media (max-width: 899px) {
  .nav__toggle {
    display: inline-flex;
  }

  .nav__menu-wrapper {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background-color: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: var(--s-4);
    gap: var(--s-4);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease, visibility 0.25s ease;
  }

  /* When checkbox is checked (No-JS fallback) OR enhanced with .is-open class */
  .nav__checkbox:checked ~ .nav__menu-wrapper,
  .nav__menu-wrapper.is-open {
    max-height: 80vh;
    visibility: visible;
    opacity: 1;
    overflow-y: auto;
  }

  .nav__checkbox:checked + .nav__toggle .nav__toggle-icon {
    background-color: transparent;
  }

  .nav__checkbox:checked + .nav__toggle .nav__toggle-icon::before {
    transform: translateY(6px) rotate(45deg);
  }

  .nav__checkbox:checked + .nav__toggle .nav__toggle-icon::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-3);
    width: 100%;
  }

  .nav__link {
    width: 100%;
    padding: var(--s-2) 0;
    font-size: var(--fs-2);
  }

  .nav__dropdown {
    width: 100%;
  }

  .nav__dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--line);
    border-radius: 0;
    margin-top: var(--s-1);
    margin-left: var(--s-2);
    padding-left: var(--s-2);
  }

  .nav__dropdown-item a {
    padding: var(--s-2) var(--s-2);
  }

  .nav__actions {
    width: 100%;
    padding-top: var(--s-2);
    border-top: 1px solid var(--line);
  }

  .nav__actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  font-size: var(--fs-1);
  font-weight: 600;
  border-radius: var(--radius);
  text-align: center;
  white-space: nowrap;
  min-height: 44px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background-color: var(--gold);
  color: #ffffff;
  border: 1px solid var(--gold-600);
}

.btn--primary:hover {
  background-color: var(--gold-600);
}

.btn--ghost {
  background-color: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  border-color: var(--navy);
  background-color: var(--surface);
}

/* ==========================================================================
   Hero Component (Antigravity-inspired Terminal Experience)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--s-7);
  padding-bottom: var(--s-7);
  background-color: var(--navy-800);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 900px) {
  .hero {
    padding-top: var(--s-8);
    padding-bottom: var(--s-8);
  }
}

/* Background Layers (Google Antigravity-style slow ambient drift) */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  will-change: transform;
}

.hero__glow--navy {
  bottom: -20%;
  left: -15%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(29, 49, 87, 0.8) 0%, rgba(21, 34, 58, 0.4) 60%, transparent 80%);
  animation: driftNavy 20s ease-in-out infinite alternate;
}

.hero__glow--gold {
  top: -15%;
  right: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(184, 134, 46, 0.18) 0%, rgba(184, 134, 46, 0.04) 50%, transparent 70%);
  animation: driftGold 15s ease-in-out infinite alternate;
}

.hero__grid-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
  pointer-events: none;
}

.hero__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.02) 0px,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
}

@keyframes driftNavy {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(60px, -40px) scale(1.08);
  }
  100% {
    transform: translate(20px, 30px) scale(1.02);
  }
}

@keyframes driftGold {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-50px, 40px) scale(1.1);
  }
  100% {
    transform: translate(-80px, -20px) scale(0.95);
  }
}

.hero__container {
  position: relative;
  z-index: 2;
}

.hero__inner {
  max-width: 860px;
}

.hero__badge-wrap {
  margin-bottom: var(--s-3);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.badge--terminal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(184, 134, 46, 0.12);
  border: 1px solid rgba(184, 134, 46, 0.35);
  color: #f3d492;
  font-family: var(--font);
  font-size: var(--fs-1);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  border-radius: 9999px;
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  display: inline-block;
}

.hero__title {
  font-size: var(--fs-6);
  line-height: var(--lh-tight);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-4);
}

@media (min-width: 640px) {
  .hero__title {
    font-size: var(--fs-7);
  }
}

.hero__title-text {
  display: inline;
}

.hero__char {
  display: inline;
  transition: opacity 0.05s ease;
}

.hero__cursor {
  display: none;
  color: var(--gold);
  font-weight: 700;
  margin-left: 2px;
  line-height: 1;
  vertical-align: baseline;
  user-select: none;
  transition: opacity 0.4s ease;
}

.hero__cursor.is-typing {
  display: inline-block;
  opacity: 1;
}

.hero__cursor.is-blinking {
  display: inline-block;
  animation: cursorBlink 0.55s step-end infinite;
}

.hero__cursor.is-faded {
  animation: none;
  opacity: 0;
}

@keyframes cursorBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.hero__lead {
  font-size: var(--fs-3);
  line-height: var(--lh-body);
  color: #cbd5e1;
  margin-bottom: var(--s-5);
  max-width: 760px;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

@media (min-width: 640px) {
  .hero__lead {
    font-size: var(--fs-4);
  }
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero .btn--ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.04);
}

.hero .btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Progressive enhancement animation states (only active when JS sets .hero--animating) */
.hero--animating .hero__badge-wrap,
.hero--animating .hero__lead,
.hero--animating .hero__cta-group {
  opacity: 0;
  transform: translateY(12px);
}

.hero.hero--reveal-badge .hero__badge-wrap {
  opacity: 1;
  transform: translateY(0);
}

.hero.hero--reveal-lead .hero__lead {
  opacity: 1;
  transform: translateY(0);
}

.hero.hero--reveal-cta .hero__cta-group {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  .hero__glow--navy,
  .hero__glow--gold {
    animation: none;
    transform: none;
  }

  .hero__cursor {
    display: none !important;
    animation: none !important;
  }

  .hero__badge-wrap,
  .hero__lead,
  .hero__cta-group {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero__char {
    opacity: 1 !important;
  }
}

/* ==========================================================================
   Proof Strip
   ========================================================================== */
.proof-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-color: var(--surface);
  padding: var(--s-3) 0;
}

.proof-strip__text {
  font-size: var(--fs-1);
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Cards & Card Grid
   ========================================================================== */
.card__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}

@media (min-width: 640px) {
  .card__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-5);
  }
}

/* Modifier: 2-column card grid for desktop */
@media (min-width: 768px) {
  .card__grid--2up {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: #cbd3dc;
}

.card__avatar-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 280px;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  margin-bottom: var(--s-4);
  background-color: var(--surface);
  border: 1px solid var(--line);
  position: relative;
}

.card__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.3s ease;
}

.card:hover .card__avatar-img {
  transform: scale(1.03);
}

.card__header {
  margin-bottom: var(--s-3);
}

.card__badge {
  margin-bottom: var(--s-2);
}

.card__title {
  font-size: var(--fs-4);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--navy-800);
}

.card__body {
  font-size: var(--fs-2);
  line-height: var(--lh-body);
  color: var(--muted);
  margin-bottom: var(--s-4);
  flex-grow: 1;
}

.card__footer {
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}

.card__link {
  font-size: var(--fs-1);
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card__link:hover {
  color: var(--gold-600);
  text-decoration: underline;
}

/* Badge component */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-1);
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 9999px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  color: var(--navy);
  line-height: 1.4;
  white-space: nowrap;
}

.badge--ok {
  color: var(--ok);
  background-color: rgba(23, 122, 75, 0.08);
  border-color: rgba(23, 122, 75, 0.25);
}

/* ==========================================================================
   Approach / Open-Core Section
   ========================================================================== */
.approach-block {
  max-width: 800px;
}

.approach-quote {
  font-size: var(--fs-5);
  font-weight: 700;
  color: var(--navy-800);
  line-height: var(--lh-tight);
  margin-bottom: var(--s-3);
  letter-spacing: -0.02em;
}

.approach-text {
  font-size: var(--fs-3);
  line-height: var(--lh-body);
  color: var(--muted);
}

/* ==========================================================================
   CTA Band
   ========================================================================== */
.cta-band {
  background-color: var(--navy-800);
  color: #ffffff;
  padding: var(--s-7) 0;
}

.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
}

@media (min-width: 640px) {
  .cta-band__inner {
    flex-direction: row;
    align-items: center;
  }
}

.cta-band__title {
  font-size: var(--fs-5);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: #ffffff;
}

@media (min-width: 900px) {
  .cta-band__title {
    font-size: var(--fs-6);
  }
}

/* ==========================================================================
   Prose (Long-form & Legal typography)
   ========================================================================== */
.prose {
  max-width: 72ch;
  line-height: var(--lh-body);
  color: var(--ink);
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--navy-800);
  line-height: var(--lh-tight);
  font-weight: 700;
  margin-top: var(--s-5);
  margin-bottom: var(--s-3);
}

.prose h1 { font-size: var(--fs-6); }
.prose h2 { font-size: var(--fs-5); }
.prose h3 { font-size: var(--fs-4); }
.prose h4 { font-size: var(--fs-3); }

.prose p {
  margin-bottom: var(--s-4);
}

.prose ul, .prose ol {
  margin-bottom: var(--s-4);
  padding-left: var(--s-4);
}

.prose li {
  margin-bottom: var(--s-1);
}

.prose a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--gold-600);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-5) 0;
  font-size: var(--fs-1);
}

.prose th, .prose td {
  border: 1px solid var(--line);
  padding: var(--s-2) var(--s-3);
  text-align: left;
}

.prose th {
  background-color: var(--surface);
  font-weight: 600;
  color: var(--navy);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--surface);
  border-top: 1px solid var(--line);
  padding-top: var(--s-7);
  padding-bottom: var(--s-5);
  margin-top: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--s-6);
  }
}

.footer__brand {
  font-size: var(--fs-3);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--s-2);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}

.footer__logo {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  flex-shrink: 0;
  display: block;
}

.footer__tagline {
  font-size: var(--fs-1);
  color: var(--muted);
  line-height: var(--lh-body);
  max-width: 280px;
}

.footer__heading {
  font-size: var(--fs-1);
  font-weight: 600;
  color: var(--navy-800);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--s-3);
}

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.footer__list li,
.footer__list a,
.footer__address {
  font-size: var(--fs-1);
  color: var(--muted);
  font-style: normal;
  line-height: var(--lh-body);
}

.footer__list a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: var(--s-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.footer__copyright {
  font-size: var(--fs-1);
  color: var(--muted);
}

/* ==========================================================================
   Scroll-Driven & Scroll-Triggered Animations
   ========================================================================== */

/* 1. Header Scroll Progress Indicator */
.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, #e8d5a8 100%);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.08s linear;
  pointer-events: none;
  z-index: 10;
}

/* 2. Scroll Reveal Animations */
/* Only animate when JS is active and reduced-motion is not requested */
html.js-enabled:not(.prefers-reduced-motion) [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

html.js-enabled:not(.prefers-reduced-motion) [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reveal style variants */
html.js-enabled:not(.prefers-reduced-motion) [data-reveal="fade"] {
  transform: none;
}

html.js-enabled:not(.prefers-reduced-motion) [data-reveal="scale"] {
  transform: scale(0.96) translateY(14px);
}

html.js-enabled:not(.prefers-reduced-motion) [data-reveal="scale"].is-revealed {
  transform: scale(1) translateY(0);
}

/* Staggered reveals for grouped items */
html.js-enabled:not(.prefers-reduced-motion) [data-reveal-group] > [data-reveal]:nth-child(1) {
  transition-delay: 0.04s;
}
html.js-enabled:not(.prefers-reduced-motion) [data-reveal-group] > [data-reveal]:nth-child(2) {
  transition-delay: 0.14s;
}
html.js-enabled:not(.prefers-reduced-motion) [data-reveal-group] > [data-reveal]:nth-child(3) {
  transition-delay: 0.24s;
}
html.js-enabled:not(.prefers-reduced-motion) [data-reveal-group] > [data-reveal]:nth-child(4) {
  transition-delay: 0.34s;
}

/* Custom delay utilities */
html.js-enabled:not(.prefers-reduced-motion) [data-reveal-delay="100"] {
  transition-delay: 0.1s;
}
html.js-enabled:not(.prefers-reduced-motion) [data-reveal-delay="200"] {
  transition-delay: 0.2s;
}
html.js-enabled:not(.prefers-reduced-motion) [data-reveal-delay="300"] {
  transition-delay: 0.3s;
}

/* Refined interactive card lift */
.card {
  transition:
    border-color 0.25s ease,
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(22, 24, 29, 0.08);
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress {
    display: none !important;
  }

  [data-reveal],
  [data-reveal].is-revealed {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .card:hover {
    transform: none !important;
  }
}

