:root {
  --bg: #f0f2f5;
  --fg: #1a1a2e;
  --invert-bg: #1e3a5f;
  --invert-fg: #ffffff;
  --accent: #1e3a5f;
  --accent-light: #2a5298;
  --grid: min(1120px, 92vw);
  --ink: #0d1b2a;
  --section-gap: clamp(4rem, 10vh, 7rem);
  /* Modern design tokens */
  --card-bg: #ffffff;
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.10);
  --radius: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  /* Responsive tokens */
  --logo-size: clamp(36px, 4.8vw, 52px);
  --logo-size-footer: clamp(40px, 5.5vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
  width: 100%;
}

/* Layering so the fixed parallax sits behind content */
body {
  position: relative;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

/* Top progress bar */
.progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 100;
}

.invert {
  background: var(--invert-bg);
  color: var(--invert-fg);
}

.sr-only {
  position: absolute;
  left: -9999px;
}

.block {
  display: inline-block;
}

.container {
  width: var(--grid);
  margin-inline: auto;
  max-width: 100%;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  box-shadow: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-header .container {
  width: 100%;
  max-width: none;
  padding-inline: clamp(0.75rem, 4vw, 2rem);
}

.site-header.hide {
  transform: translateY(-100%);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: inherit;
  transition: opacity .2s ease;
}

.brand:hover {
  opacity: 0.8;
}

.brand-logo {
  height: var(--logo-size);
  width: auto;
  object-fit: contain;
  display: inline-block;
}

.brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  letter-spacing: .02em;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.nav-list a {
  text-decoration: none;
  color: inherit;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.2s ease;
  position: relative;
}

.nav-list a:hover {
  opacity: 1;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width 0.3s ease;
}

.nav-list a:hover::after {
  width: 100%;
}

.actions {
  display: flex;
  gap: .6rem;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: .7rem 1.3rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  font-weight: 600;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

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

.btn-solid {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-xs);
}

.btn-outline {
  background: var(--card-bg);
  color: var(--accent);
  border-color: rgba(30, 58, 95, 0.2);
}

.invert .btn-solid {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}

.invert .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile nav - Clean hamburger menu */
.nav-burger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  z-index: 150;
  position: relative;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  transition: opacity .2s ease;
}

.nav-burger:hover {
  opacity: 0.7;
}

.nav-burger:active {
  opacity: 0.5;
}

.burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  transition: all .25s ease-in-out;
  border-radius: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.burger-line:nth-child(1) {
  top: 12px;
}

.burger-line:nth-child(2) {
  top: 19px;
}

.burger-line:nth-child(3) {
  top: 26px;
}

.nav-burger.active .burger-line:nth-child(1) {
  top: 19px;
  transform: translateX(-50%) rotate(45deg);
}

.nav-burger.active .burger-line:nth-child(2) {
  opacity: 0;
}

.nav-burger.active .burger-line:nth-child(3) {
  top: 19px;
  transform: translateX(-50%) rotate(-45deg);
}

body.menu-open .nav-burger {
  opacity: 0;
  pointer-events: none;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Blur main content when menu is open */
body.menu-open main,
body.menu-open footer {
  filter: blur(3px);
  transition: filter .3s ease;
}

body.menu-open {
  overflow: hidden;
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  z-index: 120;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  visibility: hidden;
  padding: 0;
  margin: 0;
}

.nav-drawer.active {
  transform: translateX(0);
  visibility: visible;
}

/* Ensure drawer is completely hidden on desktop */
@media (min-width: 861px) {
  .nav-drawer {
    display: none !important;
  }

  .nav-overlay {
    display: none !important;
  }
}

.nav-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--card-bg);
  flex-shrink: 0;
  min-height: 80px;
  width: 100%;
  margin: 0;
}

.drawer-brand {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.nav-close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: .5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, opacity .2s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-close:hover,
.nav-close:active {
  transform: rotate(90deg);
  opacity: 0.7;
}

.nav-close:focus {
  outline: none;
}

.nav-close svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}

.nav-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  width: 100%;
}

.nav-drawer-list li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  width: 100%;
  display: block;
}

.nav-drawer-list li:first-child {
  border-top: none;
}

.nav-drawer-list li:last-child {
  border-bottom: none;
}

.nav-drawer-link {
  display: block;
  text-decoration: none;
  color: var(--fg);
  padding: 1.3rem 1.5rem 1.3rem 1.5rem;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  transition: all .2s ease;
  background: transparent;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  text-indent: 0;
}

.nav-drawer-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.nav-drawer-link:hover,
.nav-drawer-link:active {
  background: #f8f8f8;
  color: var(--accent);
}

.nav-drawer-link:hover::before,
.nav-drawer-link:active::before {
  transform: scaleX(1);
}

.drawer-cta {
  margin-top: auto;
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--card-bg);
  width: 100%;
}

.drawer-cta .btn {
  width: 100%;
  text-align: center;
  display: block;
  padding: 1.2rem 1rem;
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

@media (max-width: 860px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    position: relative;
  }

  .nav {
    display: none !important;
  }

  .header-right {
    justify-content: flex-end;
  }

  .actions,
  .header-cta {
    display: none !important;
  }

  .nav-burger {
    display: flex !important;
  }
}

@media (max-width: 480px) {
  .brand-name {
    display: none;
  }

  .header-inner {
    padding: 0.75rem 0;
  }

  .nav-burger {
    width: 36px;
    height: 36px;
  }

  .burger-line {
    width: 20px;
  }

  .burger-line:nth-child(1) {
    top: 11px;
  }

  .burger-line:nth-child(2) {
    top: 17px;
  }

  .burger-line:nth-child(3) {
    top: 23px;
  }

  .nav-burger.active .burger-line:nth-child(1) {
    top: 17px;
    transform: translateX(-50%) rotate(45deg);
  }

  .nav-burger.active .burger-line:nth-child(3) {
    top: 17px;
    transform: translateX(-50%) rotate(-45deg);
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  padding: 14vh 0 10vh;
}

.hero-content {
  max-width: 680px;
}

.hero-content--center {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.hero-accent {
  display: block;
  width: 48px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1.2rem;
}

.hero-content--center .hero-accent {
  margin-inline: auto;
}

.hero-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .78rem;
  opacity: .7;
  margin-bottom: .6rem;
}

.hero-desc {
  font-size: clamp(1.02rem, 1.1vw + .6rem, 1.25rem);
  max-width: 50ch;
  color: var(--fg);
  opacity: 0.7;
  line-height: 1.6;
}

.hero-content--center .hero-desc {
  max-width: 55ch;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 1.8rem;
}

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

.hero-actions .btn {
  border-radius: 999px;
  padding-inline: 1.4rem;
}

.hero-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: .01em;
  font-size: clamp(2.8rem, 5.4vw + 1rem, 4.6rem);
  margin: .6rem 0 1.1rem;
}

/* Bands & Sections */
.band {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 1.5rem 0;
}

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

.band-item {
  padding: 1.2rem;
  text-align: center;
}

.badge {
  display: inline-block;
  border: 1.5px solid currentColor;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .8rem;
  letter-spacing: .08em;
}

.section {
  padding: var(--section-gap) 0;
  overflow: hidden;
}

.section-card>.container {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem;
}

.section.invert>.container {
  padding: 3rem;
}

/* Remove bottom gap under the pinned work scroller */
.stories.section {
  padding-bottom: 0;
}

.section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 2.8vw + 1rem, 3rem);
  margin: 0 0 .8rem;
}

/* Mission */
.checks {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.checks li {
  padding-left: 1.4rem;
  position: relative;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-family: "IBM Plex Mono", monospace;
  color: var(--accent);
  font-weight: 700;
}

.cta-row {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}

.about-features .feat {
  background: var(--card-bg);
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

/* Impact */
.impact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.impact-image {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.impact-image img {
  width: 100%;
  height: clamp(200px, 40vw, 420px);
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stat {
  padding: 1.8rem 1.2rem;
  text-align: center;
}

.stat-num {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(2rem, 3vw + 1rem, 3.4rem);
  line-height: .9;
}

.stat-label {
  font-size: .9rem;
  opacity: .75;
}

/* Programs */
.programs-head {
  display: grid;
  gap: .5rem;
  margin-bottom: 1.2rem;
}

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

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

.card {
  background: var(--card-bg);
  padding: 1.5rem;
  display: grid;
  gap: .5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card-media {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  filter: grayscale(100%);
}

.card-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 1.6rem;
  margin: 0;
}

.card-link {
  display: inline-block;
  align-self: start;
  text-decoration: none;
  font-weight: 600;
  padding: .6rem 1rem;
  border: 1.5px solid rgba(30, 58, 95, 0.15);
  border-radius: var(--radius-xs);
  transition: transform .08s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

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

/* Light cards: outline style */
.card:not(.invert) .card-link {
  background: transparent;
  color: inherit;
}

/* Dark cards: solid contrast button */
.card.invert .card-link {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}

.card.invert {
  background: var(--invert-bg);
  color: var(--invert-fg);
}

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

/* Stories / Carousel */
.carousel-section {
  overflow: hidden;
  position: relative;
  z-index: 2;
  background: #ffffff;
}

.stories-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 5;
}

.stories-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

.stories {
  overflow: hidden;
  position: relative;
  z-index: 2;
  background: #ffffff;
}

.stories::before {
  content: "MOVOR";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(8rem, 20vw, 18rem);
  color: #f5f5f5;
  letter-spacing: 0.1em;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.stories::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, #f8f8f8 2px, #f8f8f8 3px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, #f8f8f8 2px, #f8f8f8 3px);
  background-size: 40px 40px;
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  z-index: 5;
}

.carousel-track-container {
  overflow: hidden;
  flex: 1;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.carousel-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  z-index: 10;
  box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
  background: #fff;
  color: var(--accent);
  transform: scale(1.1);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-btn:disabled:hover {
  transform: none;
  background: var(--accent);
  color: #fff;
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0;
  position: relative;
  z-index: 5;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(30, 58, 95, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.carousel-dot.active {
  background: var(--accent);
}

.carousel-dot:hover {
  transform: scale(1.2);
}

.stories-intro {
  position: sticky;
  top: 5.5rem;
  align-self: start;
}

.stories-dots {
  list-style: none;
  display: flex;
  gap: .4rem;
  padding: .6rem 0 0;
  margin: 0;
}

.stories-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(30, 58, 95, 0.2);
  cursor: pointer;
}

.stories-dots button[aria-current="true"] {
  background: var(--accent);
  color: #fff;
}

.story-viewport {
  position: relative;
  overflow: hidden;
}

.story-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #0001;
}

.story-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transform-origin: left;
}

.story-list {
  display: flex;
  gap: 1rem;
  will-change: transform;
}

.story-spacer {
  flex: 0 0 calc(65vw - 1rem);
}

.story {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story-media {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  filter: grayscale(100%);
  margin-bottom: .8rem;
}

.story-logo-container {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-sm);
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  padding: 2rem;
}

.story.invert .story-logo-container {
  background: #1a1a1a;
}

.story-logo {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  filter: grayscale(0);
}

.story blockquote {
  margin: 0 0 .6rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
}

.story figcaption {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: .05em;
  font-size: .85rem;
}

.story figcaption a {
  color: inherit;
  text-decoration: underline;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.story figcaption a:hover {
  opacity: 1;
}

/* Panels sized for horizontal track */
.story {
  min-width: clamp(260px, 60vw, 520px);
}

.carousel-slide.story {
  min-width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.story.active {
  box-shadow: 0 0 0 2px var(--accent), var(--shadow-md);
}

.brand-story {
  display: grid;
  place-items: center;
}

.brand-story .brand-fill {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(2rem, 10vw, 6rem);
  letter-spacing: .08em;
}

.brand-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--invert-bg);
  color: var(--invert-fg);
  opacity: 0;
  transform: scale(0.96);
  z-index: 1;
  pointer-events: none;
  will-change: transform, opacity;
}

.brand-overlay-text {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(3rem, 14vw, 12rem);
  letter-spacing: .08em;
}

/* Always-visible parallax layer behind Work -> Contact */
.bridge-parallax {
  position: fixed;
  inset: 0 0 auto 0;
  height: 100vh;
  width: 100%;
  background-image: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center 0%;
  background-attachment: fixed;
  /* fallback */
  filter: grayscale(100%) blur(6px) brightness(0.85);
  will-change: filter;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  /* toggled via JS within range */
  transition: opacity .3s ease;
}

.bridge-parallax::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.bridge-parallax.is-visible {
  opacity: 1;
}

.work-bg {
  height: clamp(300px, 60vh, 600px);
  width: 100%;
  background-image: url('https://images.unsplash.com/photo-1487058792275-0ad4aaf24ca7?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center 0%;
  background-attachment: fixed;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  filter: grayscale(100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* visible by default so no blank gap under pinned work */
}

.work-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.work-bg-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.work-bg-content {
  color: white;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.work-bg-subtext {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin: 0 0 2.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.5;
}

.work-bg-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
}

.work-bg-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
}

.feature-icon {
  width: clamp(2.5rem, 5vw, 3.5rem);
  height: clamp(2.5rem, 5vw, 3.5rem);
  stroke: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  flex-shrink: 0;
}

.feature-label {
  color: white;
  font-weight: 600;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
}


/* CTA */
.section.cta.invert {
  border-radius: var(--radius);
  margin-inline: 4%;
  box-shadow: var(--shadow-lg);
}

.cta-inner {
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}

.cta-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 2vw + 1rem, 3rem);
  margin: 0;
}

.cta-actions {
  display: flex;
  gap: .6rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
/* Footer */
.site-footer {
  padding: 4rem 0 2.5rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  margin-top: var(--section-gap);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3rem;
}

.foot-brand .brand-logo {
  height: var(--logo-size-footer);
  width: auto;
  object-fit: contain;
  display: inline-block;
  margin-bottom: 1rem;
}

.foot-brand .foot-tagline {
  font-size: 0.95rem;
  opacity: 0.6;
  max-width: 28ch;
  line-height: 1.5;
  margin: 0;
}

.foot-col-title {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.45;
  margin: 0 0 1rem;
}

.foot-nav {
  display: grid;
  gap: .5rem;
}

.foot-nav a {
  text-decoration: none;
  color: inherit;
  opacity: 0.7;
  transition: opacity .2s ease;
  font-size: 0.95rem;
}

.foot-nav a:hover {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.foot-copy {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.45;
}

.foot-legal {
  display: flex;
  gap: 1.5rem;
}

.foot-legal a {
  text-decoration: none;
  color: inherit;
  opacity: 0.45;
  font-size: 0.85rem;
  transition: opacity .2s ease;
}

.foot-legal a:hover {
  opacity: 0.8;
}

/* Responsiveness */
@media (max-width: 1200px) {
  .program-cards-four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .hero {
    padding: 10vh 0 8vh;
  }

  .hero-content,
  .hero-content--center {
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(2.2rem, 5vw + 0.5rem, 3.2rem);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

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

  .cta-row {
    flex-direction: column;
  }

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

  .program-cards,
  .program-cards-four,
  .program-cards-three {
    grid-template-columns: 1fr;
  }

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

  .story-list {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: .75rem;
    text-align: center;
  }

  /* Section spacing */
  .section {
    padding: 6vh 0;
  }

  .section-card>.container {
    padding: 2rem 1.5rem;
  }

  /* CTA rounded section */
  .section.cta.invert {
    margin-inline: 2%;
    border-radius: var(--radius-md);
  }

  /* Process steps stack */
  .process .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    width: min(90vw, var(--grid));
  }

  .hero {
    padding: 8vh 0 6vh;
  }

  .hero-title {
    font-size: clamp(1.9rem, 6vw, 2.6rem);
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-label {
    font-size: .72rem;
  }

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

  .about-features {
    grid-template-columns: 1fr;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .process .process-steps {
    grid-template-columns: 1fr;
  }

  /* CTA section mobile */
  .section.cta.invert {
    margin-inline: 0;
    border-radius: 0;
  }

  .cta-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Cards tighter on mobile */
  .card {
    padding: 1.2rem;
    border-radius: var(--radius-md);
  }

  .card-title {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  /* Carousel mobile layout */
  .carousel-section {
    position: relative;
    z-index: 10;
  }

  .carousel-section .container {
    position: relative;
    z-index: 10;
  }

  .carousel-container {
    gap: 0.5rem;
    z-index: 10;
    position: relative;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    z-index: 10;
    flex-shrink: 0;
  }

  .carousel-btn svg {
    width: 18px;
    height: 18px;
  }

  .carousel-track-container {
    z-index: 10;
    position: relative;
  }

  .carousel-slide.story {
    max-width: 100%;
    z-index: 10;
    padding: 1.2rem;
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .carousel-slide.story.invert {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-md);
  }

  .carousel-slide.story.invert .story-logo-container {
    background: #1a1a1a;
  }

  .carousel-slide.story blockquote,
  .carousel-slide.story figcaption {
    color: inherit;
  }

  .carousel-slide.story figcaption a {
    color: inherit;
  }

  .story-logo-container {
    height: 150px;
    padding: 1.5rem;
    position: relative;
    z-index: 10;
  }

  .story blockquote {
    font-size: 1rem;
    line-height: 1.2;
    color: var(--accent);
  }

  .story.invert blockquote {
    color: #fff;
  }

  .story figcaption {
    font-size: 0.75rem;
    color: var(--accent);
  }

  .story.invert figcaption {
    color: #fff;
  }

  .brand-story.invert .brand-fill {
    color: #fff;
  }

  .stories-header {
    z-index: 10;
    margin-bottom: 2rem;
    position: relative;
  }

  .stories-header p {
    font-size: 0.9rem;
  }

  .carousel-dots {
    z-index: 10;
    padding: 1.5rem 0 1rem;
    position: relative;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }

  .brand-overlay {
    z-index: 1 !important;
  }

  .stories::before {
    z-index: 1 !important;
  }

  .bridge-parallax {
    z-index: 0 !important;
  }

  .work-bg {
    z-index: 0 !important;
  }

  /* Stories mobile layout */
  .stories-intro {
    position: static;
    margin-bottom: 1.5rem;
  }

  .story-viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .story {
    min-width: 85vw;
    scroll-snap-align: start;
  }

  /* Work-bg mobile adjustments */
  .work-bg {
    height: auto;
    min-height: clamp(500px, 80vh, 700px);
    padding: 4rem 0;
  }

  .work-bg-inner {
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
  }

  .work-bg-content {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 0;
  }

  .work-bg-subtext {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin: 0;
    line-height: 1.5;
  }

  .work-bg-features {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 1rem;
  }

  .work-bg-feature {
    gap: 1rem;
  }

  .feature-icon {
    width: 3rem;
    height: 3rem;
  }

  .feature-label {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(94vw, var(--grid));
  }

  .hero {
    padding: 6vh 0 5vh;
  }

  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .hero-accent {
    width: 36px;
    height: 3px;
  }

  .section-card>.container {
    padding: 1.5rem 1rem;
  }

  .section {
    padding: 4vh 0;
  }

  .about-features .feat {
    padding: 1rem;
  }

  .about-features .feat h3 {
    font-size: 1.05rem;
  }

  .cta-inner {
    padding: 0;
  }

  .process .step {
    padding: 1rem;
  }

  .process .step::before {
    font-size: 2.5rem;
  }

  /* Even smaller carousel on tiny screens */
  .carousel-section {
    z-index: 10;
  }

  .carousel-section .container {
    z-index: 10;
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
    z-index: 10;
  }

  .carousel-btn svg {
    width: 16px;
    height: 16px;
  }

  .carousel-slide.story {
    z-index: 10;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .carousel-slide.story.invert {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-md);
  }

  .story-logo-container {
    height: 120px;
    padding: 1rem;
    z-index: 10;
  }

  .story blockquote {
    font-size: 0.9rem;
    color: var(--accent);
  }

  .story.invert blockquote {
    color: #fff;
  }

  .story figcaption {
    font-size: 0.7rem;
    color: var(--accent);
  }

  .story.invert figcaption {
    color: #fff;
  }

  .brand-overlay {
    z-index: 1 !important;
  }

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

  /* Simplify decorative elements */
  .stories::before {
    font-size: clamp(4rem, 15vw, 8rem);
  }

  /* Story cards */
  .story {
    min-width: 90vw;
    padding: 1rem;
  }

  /* Improve touch targets */
  .btn {
    min-height: 44px;
  }

  /* Work-bg small mobile adjustments */
  .work-bg {
    padding: 3rem 0;
    min-height: clamp(450px, 75vh, 600px);
  }

  .work-bg-inner {
    padding: 0 1rem;
    gap: 1.5rem;
  }

  .work-bg-content {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.25;
  }

  .work-bg-subtext {
    font-size: 0.95rem;
  }

  .work-bg-features {
    gap: 2rem;
    margin-top: 0.5rem;
  }

  .feature-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .feature-label {
    font-size: 0.9rem;
  }
}

/* Mobile device optimizations */
body.mobile-device {
  /* Disable expensive effects */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* Optimize header for mobile */
body.mobile-device .site-header {
  backdrop-filter: none;
  background: var(--card-bg);
}

body.mobile-device .nav-drawer {
  -webkit-overflow-scrolling: touch;
}

body.mobile-device * {
  /* Hardware acceleration for better performance */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Simplify parallax on mobile */
body.mobile-device .bridge-parallax {
  position: absolute !important;
  background-attachment: scroll !important;
  filter: grayscale(100%) blur(2px) brightness(0.85) !important;
  will-change: auto;
}

body.mobile-device .work-bg {
  background-attachment: scroll !important;
}

/* Simplify work section on mobile - no pinning */
body.mobile-device .stories {
  position: relative !important;
  height: auto !important;
}

/* Ensure smooth scrolling on mobile */
body.mobile-device .story-viewport {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Reduce motion for better performance */
body.mobile-device .card-media,
body.mobile-device .story-media {
  transition: none !important;
  transform: none !important;
}

/* Optimize images on mobile */
body.mobile-device img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Remove complex filters on mobile */
body.mobile-device .cta-inner {
  filter: none !important;
}

/* Simplify transitions on mobile */
body.mobile-device * {
  transition-duration: 0.2s !important;
}

body.mobile-device .btn,
body.mobile-device a {
  transition-duration: 0.15s !important;
}

/* Bridge section */
.process .process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.process .step {
  background: var(--card-bg);
  padding: 1.2rem;
  position: relative;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.process .step h3 {
  margin: 0 0 .4rem;
  font-family: "Playfair Display", Georgia, serif;
}

.process .step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -.1rem;
  right: .8rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.08;
}

@media (max-width: 980px) {
  .process .process-steps {
    grid-template-columns: 1fr;
  }
}

.bridge {
  position: relative;
  z-index: 3;
}

.bridge-grid {
  display: grid;
  gap: 1rem;
  align-items: center;
  grid-template-columns: 1.1fr 1fr;
}

.bridge-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  margin: 0;
  font-size: clamp(1.8rem, 2.4vw + 1rem, 2.8rem);
  display: grid;
  gap: .4rem;
}

.bridge-roller {
  display: inline-grid;
  overflow: hidden;
  height: 1.2em;
  vertical-align: bottom;
}

.bridge-roller-inner {
  position: relative;
  height: 1.2em;
}

.bridge-roller-inner span {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-block;
  opacity: 0;
  transform: translateY(30%);
}

.bridge-copy {
  margin: .2rem 0 0;
  opacity: .85;
}

.bridge-collage {
  position: relative;
  height: clamp(220px, 40vw, 360px);
}

.bridge-collage .shot {
  position: absolute;
  object-fit: cover;
  filter: grayscale(100%);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.bridge-collage .shot-a {
  inset: 0 40% 30% 0;
}

.bridge-collage .shot-b {
  inset: 20% 0 0 50%;
}

.bridge-collage .shot-c {
  inset: 55% 20% 0 5%;
}

.bridge-collage img {
  width: 100%;
  height: 100%;
}

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

/* Subtle focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* Page Loader */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-container {
  --uib-size: 60px;
  --uib-color: black;
  --uib-speed: 1.5s;
  --uib-dot-size: calc(var(--uib-size) * 0.1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: calc(var(--uib-size) * 0.64);
  width: calc(var(--uib-size) * 0.64);
}

@keyframes jump {

  0%,
  100% {
    transform: translateY(120%);
  }

  50% {
    transform: translateY(-120%);
  }
}

.loader-container .dot {
  --uib-d1: -0.48;
  --uib-d2: -0.4;
  --uib-d3: -0.32;
  --uib-d4: -0.24;
  --uib-d5: -0.16;
  --uib-d6: -0.08;
  --uib-d7: -0;
  position: absolute;
  bottom: calc(var(--uib-bottom) + var(--uib-dot-size) / 2);
  right: calc(var(--uib-right) + var(--uib-dot-size) / 2);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: var(--uib-dot-size);
  width: var(--uib-dot-size);
  animation: jump var(--uib-speed) ease-in-out infinite;
  opacity: var(--uib-scale);
  will-change: transform;
  backface-visibility: hidden;
}

.loader-container .dot::before {
  content: '';
  height: 100%;
  width: 100%;
  background-color: var(--uib-color);
  border-radius: 50%;
  transform: scale(var(--uib-scale));
  transition: background-color 0.3s ease;
}

.loader-container .dot:nth-child(1) {
  --uib-bottom: 24%;
  --uib-right: -35%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d1));
}

.loader-container .dot:nth-child(2) {
  --uib-bottom: 16%;
  --uib-right: -6%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d2));
}

.loader-container .dot:nth-child(3) {
  --uib-bottom: 8%;
  --uib-right: 23%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d3));
}

.loader-container .dot:nth-child(4) {
  --uib-bottom: -1%;
  --uib-right: 51%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d4));
}

.loader-container .dot:nth-child(5) {
  --uib-bottom: 38%;
  --uib-right: -17.5%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d2));
}

.loader-container .dot:nth-child(6) {
  --uib-bottom: 30%;
  --uib-right: 10%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d3));
}

.loader-container .dot:nth-child(7) {
  --uib-bottom: 22%;
  --uib-right: 39%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d4));
}

.loader-container .dot:nth-child(8) {
  --uib-bottom: 14%;
  --uib-right: 67%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d5));
}

.loader-container .dot:nth-child(9) {
  --uib-bottom: 53%;
  --uib-right: -0.8%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d3));
}

.loader-container .dot:nth-child(10) {
  --uib-bottom: 44.5%;
  --uib-right: 27%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d4));
}

.loader-container .dot:nth-child(11) {
  --uib-bottom: 36%;
  --uib-right: 55.7%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d5));
}

.loader-container .dot:nth-child(12) {
  --uib-bottom: 28.7%;
  --uib-right: 84.3%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d6));
}

.loader-container .dot:nth-child(13) {
  --uib-bottom: 66.8%;
  --uib-right: 15%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d4));
}

.loader-container .dot:nth-child(14) {
  --uib-bottom: 58.8%;
  --uib-right: 43%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d5));
}

.loader-container .dot:nth-child(15) {
  --uib-bottom: 50%;
  --uib-right: 72%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d6));
}

.loader-container .dot:nth-child(16) {
  --uib-bottom: 42%;
  --uib-right: 100%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d7));
}

.loader-container .dot:nth-child(3) {
  --uib-scale: 0.98;
}

.loader-container .dot:nth-child(2),
.loader-container .dot:nth-child(8) {
  --uib-scale: 0.96;
}

.loader-container .dot:nth-child(1),
.loader-container .dot:nth-child(7) {
  --uib-scale: 0.94;
}

.loader-container .dot:nth-child(6),
.loader-container .dot:nth-child(12) {
  --uib-scale: 0.92;
}

.loader-container .dot:nth-child(5),
.loader-container .dot:nth-child(11) {
  --uib-scale: 0.9;
}

.loader-container .dot:nth-child(10),
.loader-container .dot:nth-child(16) {
  --uib-scale: 0.88;
}

.loader-container .dot:nth-child(9),
.loader-container .dot:nth-child(15) {
  --uib-scale: 0.86;
}

.loader-container .dot:nth-child(14) {
  --uib-scale: 0.84;
}

.loader-container .dot:nth-child(13) {
  --uib-scale: 0.82;
}

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: .4rem .6rem;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* Back to top button */
.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 110;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: var(--shadow-md);
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.to-top:focus {
  outline: 2px dashed #fff;
  outline-offset: 2px;
}

/* Services page specific styles */
.section-intro {
  max-width: 60ch;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.1rem;
  opacity: 0.85;
}

.services-detail .service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.services-detail .service-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.services-detail .service-block.invert {
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.services-detail .service-block-reverse {
  direction: rtl;
}

.services-detail .service-block-reverse>* {
  direction: ltr;
}

.services-detail .service-block .service-content {
  padding: 0;
}

.services-detail .service-block .service-visual {
  border-radius: 24px;
  overflow: hidden;
  height: 440px;
  background: #eee;
}

.services-detail .service-block .service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none;
  min-height: unset;
  max-height: unset;
  border-radius: 0;
}

.service-badge {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  background: rgba(30, 58, 95, 0.08);
  color: var(--accent);
  margin-bottom: 1rem;
  border-radius: 999px;
}

.invert .service-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.service-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.03em;
  margin: 0 0 1.2rem;
  line-height: 1.1;
}

.service-description {
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.service-visual {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  min-height: 400px;
  max-height: 500px;
  border-radius: var(--radius-md);
}

.package-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.package-price {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.85;
}

.card.invert .package-header {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.card.invert .checks li::before {
  color: #fff;
}

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

@media (max-width: 1200px) {
  .program-cards-three {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1000px) {
  .services-detail .service-block {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
  }

  .services-detail .service-block-reverse {
    direction: ltr;
  }

  .services-detail .service-block .service-visual {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .services-detail .service-block {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
  }

  .services-detail .service-block .service-visual {
    height: 240px;
  }

  .service-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }
}

@media (max-width: 480px) {
  .services-detail .service-block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    gap: 1.5rem;
  }

  .services-detail .service-block .service-visual {
    height: 200px;
  }

  .service-badge {
    font-size: 0.78rem;
    padding: 0.3rem 0.7rem;
  }
}


.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-description {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.85;
}

.contact-details {
  margin-bottom: 3rem;
}

.contact-detail-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  background: var(--bg);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-detail-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(30, 58, 95, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.contact-detail-item h3 {
  margin: 0 0 0.25rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.contact-detail-item p {
  margin: 0;
  opacity: 0.75;
}


.contact-form-wrapper {
  background: transparent;
  padding: 0;
  position: relative;
  border-radius: 0;
  box-shadow: none;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

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

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.required {
  color: #e53e3e;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--bg);
  border-radius: 12px;
  color: var(--fg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
  background: var(--card-bg);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  font-weight: 400;
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.radio-label:hover {
  border-color: var(--accent);
  background: var(--card-bg);
  box-shadow: var(--shadow-xs);
}

.radio-label input[type="radio"] {
  margin: 0;
  cursor: pointer;
}

.radio-label input[type="radio"]:checked+span {
  font-weight: 600;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 400;
  font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.25rem;
  cursor: pointer;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.service-specific-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.service-specific-fields .form-group.full-width {
  grid-column: 1 / -1;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
  min-width: 200px;
  border-radius: 100px;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.7;
  font-family: "IBM Plex Mono", monospace;
}

.form-success {
  text-align: center;
  padding: 3rem 2rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: rgba(72, 187, 120, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #48bb78;
}

.success-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 3;
}

.form-success h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 2rem;
  margin: 0 0 1rem;
}

.form-success p {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 2rem;
}

.faq-section {
  background: transparent;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.faq-item {
  padding: 2rem;
  background: var(--bg);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.faq-item h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.faq-item p {
  margin: 0;
  line-height: 1.7;
  opacity: 0.75;
  font-size: 0.975rem;
}

@media (max-width: 1200px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .contact-form {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-specific-fields {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .contact-form-wrapper {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
  }

  .contact-grid {
    gap: 2rem;
  }

  .contact-detail-item {
    padding: 1.2rem;
  }

  .faq-item {
    padding: 1.5rem;
  }

  .faq-item h3 {
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  .contact-form-wrapper {
    padding: 1.5rem 1rem;
  }

  .contact-detail-item {
    padding: 1rem;
    gap: 0.75rem;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
  }

  .contact-icon svg {
    width: 20px;
    height: 20px;
  }

  .faq-item {
    padding: 1.2rem;
  }

  .faq-item h3 {
    font-size: 1.05rem;
  }
}

/* ── Scroll-reveal animations (no GSAP) ── */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Modern GSAP Hero block ── */
.hero--modern {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-color: var(--bg);
  padding: 15vh 0 10vh;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4vw;
}

.hero-label-wrap {
  overflow: hidden;
  margin-bottom: 2rem;
}

.hero--modern .hero-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 1;
  /* handled by GSAP */
}

.hero--modern .hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 7.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 3rem 0;
  max-width: 1200px;
}

.hero--modern .hero-title .line {
  display: block;
  overflow: hidden;
}

.hero--modern .hero-title .word {
  display: inline-block;
  will-change: transform, opacity;
}

.hero-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-end;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 3rem;
}

@media (max-width: 900px) {
  .hero-bottom-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.hero-desc-wrap {
  overflow: hidden;
}

.hero--modern .hero-desc {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--fg);
  opacity: 0.8;
  max-width: 600px;
  margin: 0;
}

.hero--modern .hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin: 0;
}

@media (max-width: 900px) {
  .hero--modern .hero-actions {
    justify-content: flex-start;
  }
}

.btn-oval {
  border-radius: 100px;
  padding: 1rem 2rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.btn-oval.btn-solid {
  background: var(--fg);
  color: #fff;
  border: 1px solid var(--fg);
}

.btn-oval.btn-solid:hover {
  background: #fff;
  color: var(--fg);
}

.btn-oval.btn-outline {
  border: 1px solid var(--fg);
  color: var(--fg);
  background: transparent;
}

.btn-oval.btn-outline:hover {
  background: var(--fg);
  color: #fff;
}



/* ── Modern Footer Redesign ── */
.site-footer {
  background: var(--fg);
  color: #fff;
  padding: 6rem 0 2rem;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.site-footer a:hover {
  opacity: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 4rem 0 2rem;
  }
}

.foot-brand h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}

.foot-col-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
  margin-bottom: 1.5rem;
}

.foot-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  opacity: 0.6;
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

/* ── Modern Homepage Sections ── */
.modern-card {
  border-radius: 40px;
  margin: 0 auto;
  max-width: 1400px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .modern-card {
    border-radius: 20px;
  }
}

.bg-white {
  background-color: var(--card-bg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.bg-dark {
  background-color: var(--fg);
  color: #fff;
}

.modern-card-inner {
  padding: 6rem 4vw;
}

@media (max-width: 900px) {
  .modern-card-inner {
    padding: 4rem 4vw;
  }
}

.modern-title-large {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.modern-desc-bold {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 2rem;
  max-width: 800px;
}

.modern-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
}

.modern-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.justify-center {
  justify-content: center;
}

.modern-about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 3rem;
}

@media (max-width: 900px) {
  .modern-about-features {
    grid-template-columns: 1fr;
  }
}

.feat-box {
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 2rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.feat-box:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.feat-box h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

.feat-box p {
  font-size: 0.975rem;
  line-height: 1.65;
  opacity: 0.75;
  margin: 0;
}

.modern-process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 900px) {
  .modern-process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .modern-process-steps {
    grid-template-columns: 1fr;
  }
}

.modern-step {
  position: relative;
}

.step-num {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 4rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.1;
  position: absolute;
  top: -2rem;
  right: 0;
  line-height: 1;
}

.modern-step h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.modern-programs-head {
  margin-bottom: 4rem;
}

.modern-program-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .modern-program-cards {
    grid-template-columns: 1fr;
  }
}

.modern-service-card {
  padding: 2.5rem;
  border-radius: 24px;
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.modern-service-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.invert-card {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.modern-service-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.modern-service-card p {
  margin-bottom: 2rem;
  flex-grow: 1;
  font-size: 1rem;
  line-height: 1.65;
  opacity: 0.8;
}

.modern-card-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  border: 1.5px solid var(--fg);
  color: var(--fg);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
  margin-top: auto;
}

.modern-card-link:hover {
  background: var(--fg);
  color: #fff;
}

.invert-card .modern-card-link {
  border-color: #fff;
  color: #fff;
}

.invert-card .modern-card-link:hover {
  background: #fff;
  color: var(--fg);
}

.invert-btn {
  background: #fff !important;
  color: var(--fg) !important;
  border-color: #fff !important;
}

.invert-btn:hover {
  background: var(--fg) !important;
  color: #fff !important;
}

.invert-btn-outline {
  border-color: #fff !important;
  color: #fff !important;
}

.invert-btn-outline:hover {
  background: #fff !important;
  color: var(--fg) !important;
}

/* ── Package Cards ── */
.pkg-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  padding: 2.5rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.pkg-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
  transform: translateY(-3px);
}

.pkg-card--invert {
  background: var(--fg);
  color: #fff;
  border-color: transparent;
}

.pkg-header {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pkg-card--invert .pkg-header {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.pkg-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  line-height: 1.2;
}

.pkg-price {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 1rem;
}

.pkg-desc {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.75;
  margin: 0;
}

.pkg-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.pkg-features li {
  padding-left: 1.4rem;
}

.pkg-card--invert .checks li::before {
  color: #fff;
}

.pkg-btn {
  display: block;
  text-align: center;
  padding: 0.9rem 1.5rem;
  border-radius: 100px;
  border: 1.5px solid var(--fg);
  color: var(--fg);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
  margin-top: auto;
}

.pkg-btn:hover {
  background: var(--fg);
  color: #fff;
}

.pkg-card--invert .pkg-btn {
  border-color: #fff;
  color: #fff;
}

.pkg-card--invert .pkg-btn:hover {
  background: #fff;
  color: var(--fg);
}

@media (max-width: 900px) {
  .modern-program-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}
