/* ============================================
   Nerval AI - Main Stylesheet
   Dark theme inspired by NVIDIA.com
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #777777;
  --accent: #699bb8;
  --accent-deep: #2628ab;
  --accent-gradient: linear-gradient(135deg, #2628ab 0%, #699bb8 100%);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(105, 155, 184, 0.4);
  --nav-height: 72px;
  --content-max-width: 1280px;
  --content-reading-width: 800px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-primary);
}

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: background var(--transition-medium);
}

.nav-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Navigation --- */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(12px);
  z-index: 999;
  padding: 2rem;
}

.nav-mobile.open {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-mobile a {
  color: var(--text-secondary);
  font-size: 1.25rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.nav-mobile a:hover {
  color: var(--text-primary);
}

/* --- Hero Carousel --- */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  max-height: 900px;
  margin-top: var(--nav-height);
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Globe canvas sits behind slides */
.hero canvas[aria-hidden] {
  z-index: 0;
}

/* Ken Burns zoom — driven by JS requestAnimationFrame for glitch-free
   continuous motion.  No CSS transition needed; JS sets transform directly. */
.hero-slide[data-slide="1"] .hero-slide-bg,
.hero-slide[data-slide="2"] .hero-slide-bg,
.hero-slide[data-slide="4"] .hero-slide-bg {
  will-change: transform;
}

/* Slide 2 (Palefò): anchor image 20% from top so faces + some body visible */
.hero-slide[data-slide="1"] .hero-slide-bg {
  background-position: center 20%;
}

/* Slide 5 (Where We're Headed): anchor near top so faces stay visible */
.hero-slide[data-slide="4"] .hero-slide-bg {
  background-position: center 20%;
}

/* Slide 3 (NVIDIA): light overlay — landscape vibrant, nodes glow on top */
.hero-slide[data-slide="2"] .hero-slide-bg::after {
  background: linear-gradient(
    to bottom,
    rgba(5, 10, 20, 0.30) 0%,
    rgba(5, 10, 20, 0.25) 40%,
    rgba(5, 10, 20, 0.35) 70%,
    rgba(5, 10, 20, 0.45) 100%
  );
}

/* Slide 4 (Infrastructure): video background — near-full brightness */
.hero-slide-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

.hero-slide[data-slide="3"] .hero-slide-video-overlay::after {
  background: linear-gradient(
    to bottom,
    rgba(5, 10, 20, 0.15) 0%,
    rgba(5, 10, 20, 0.10) 40%,
    rgba(5, 10, 20, 0.20) 70%,
    rgba(5, 10, 20, 0.30) 100%
  );
}

/* Slide 5 (Where We're Headed): lighter overlay so photo pops */
.hero-slide[data-slide="4"] .hero-slide-bg::after {
  background: linear-gradient(
    to bottom,
    rgba(5, 10, 20, 0.25) 0%,
    rgba(5, 10, 20, 0.20) 40%,
    rgba(5, 10, 20, 0.30) 70%,
    rgba(5, 10, 20, 0.40) 100%
  );
}

/* Slide 1 (Mission): transparent bg so globe animation shows through */
.hero-slide[data-slide="0"] .hero-slide-bg::after {
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.25) 0%,
    rgba(10, 10, 10, 0.1) 50%,
    rgba(10, 10, 10, 0.05) 100%
  );
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.55) 0%,
    rgba(10, 10, 10, 0.35) 50%,
    rgba(10, 10, 10, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 4rem;
  width: 100%;
}

.hero-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--text-primary);
  max-width: 700px;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--accent-gradient);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 4px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-cta:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(38, 40, 171, 0.3);
}

.hero-cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.hero-cta:hover svg {
  transform: translateX(3px);
}

/* Carousel Navigation */
.carousel-controls {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--transition-fast), width var(--transition-fast);
  padding: 0;
}

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

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.15);
}

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

/* --- Feature Cards Section --- */
.features-section {
  padding: 5rem 2rem;
  background: var(--bg-primary);
}

.features-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 3rem;
}

.features-header h2 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.features-header p {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.feature-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.feature-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--bg-card), transparent);
}

.feature-card-body {
  padding: 1.25rem 1.5rem;
}

.feature-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.feature-card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.feature-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Detail Page Hero Banner --- */
.page-hero {
  position: relative;
  width: 100%;
  height: 40vh;
  min-height: 300px;
  max-height: 500px;
  margin-top: var(--nav-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-secondary);
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.7) 0%,
    rgba(10, 10, 10, 0.85) 100%
  );
}

/* Palefò page hero: anchor faces near top, lighten overlay to match landing page */
.page-hero--palefo .page-hero-bg {
  background-position: center 20%;
}
.page-hero--palefo .page-hero-bg::after {
  background: linear-gradient(
    to bottom,
    rgba(5, 10, 20, 0.25) 0%,
    rgba(5, 10, 20, 0.20) 40%,
    rgba(5, 10, 20, 0.30) 70%,
    rgba(5, 10, 20, 0.40) 100%
  );
}
.page-hero--palefo .page-hero-content p {
  color: #fff;
}

/* Palefò logo with paintbrush underlay */
.palefo-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -1.8rem auto 0rem;
  max-width: 456px;
  width: 72%;
}
.palefo-logo-wrap .palefo-underlay {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(1) saturate(0.7);
  opacity: 0.95;
}
.palefo-logo-wrap .palefo-logo {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 264px;
  width: 78%;
  height: auto;
}

/* NVIDIA Inception page hero: anchor from top, bright overlay */
.page-hero--nvidia .page-hero-bg {
  background-position: center 20%;
}
.page-hero--nvidia .page-hero-bg::after {
  background: linear-gradient(
    to bottom,
    rgba(5, 10, 20, 0.15) 0%,
    rgba(5, 10, 20, 0.10) 40%,
    rgba(5, 10, 20, 0.20) 70%,
    rgba(5, 10, 20, 0.35) 100%
  );
}
.page-hero--nvidia .page-hero-content p {
  color: #fff;
}

/* Infrastructure page hero: split layout — text left, diagram right */
.page-hero--infra {
  align-items: flex-start;
  padding-top: 5rem;
}
.page-hero--infra .page-hero-bg::after {
  background: none;
}
.page-hero-content--split {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}
.page-hero-text {
  flex: 1;
  min-width: 0;
}
.page-hero-diagram {
  flex: 0 0 50%;
  max-width: 50%;
}
.page-hero-diagram img {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.page-hero-diagram img:hover {
  transform: scale(1.2);
}
@media (max-width: 768px) {
  .page-hero-content--split {
    flex-direction: column;
    gap: 1.5rem;
  }
  .page-hero-diagram {
    flex: none;
    max-width: 90%;
  }
}

/* Globe canvas / static snapshot in mission hero */
.page-hero canvas[aria-hidden],
.page-hero img[aria-hidden] {
  z-index: 0;
}

/* Lighten mission hero overlay so static globe shows through */
.page-hero--mission .page-hero-bg::after {
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.3) 0%,
    rgba(10, 10, 10, 0.45) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 4rem;
  width: 100%;
}

.page-hero-content h1 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.page-hero-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* --- Detail Page Content --- */
.page-content {
  padding: 4rem 0;
  background: var(--bg-primary);
}

.page-content-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 4rem;
}

.page-content h2 {
  color: var(--text-primary);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-content p {
  margin-bottom: 1.25rem;
}

.page-content ul {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.page-content ul li {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 0.75rem;
}

.page-content ul li::before {
  content: '';
  position: absolute;
  left: -0.75rem;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.page-content .highlight-box {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 6px 6px 0;
}

.page-content .highlight-box p {
  color: var(--text-primary);
  font-size: 1.125rem;
  margin-bottom: 0;
}

/* --- Video Break (clickable thumbnail → inline player) --- */
.video-break {
  text-align: center;
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.video-break-title {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.video-break-thumb {
  position: relative;
  display: inline-block;
  cursor: pointer;
  max-width: 420px;
  width: 80%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-break-thumb:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 30px rgba(105, 155, 184, 0.25);
}
.video-break-thumb img {
  display: block;
  width: 100%;
  height: auto;
}
.video-break-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(105, 155, 184, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  transition: background 0.3s ease;
}
.video-break-thumb:hover .video-break-play {
  background: rgba(105, 155, 184, 1);
}

/* Inline video player (expands in place) */
.video-break-player {
  display: none;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.video-break-player video {
  display: block;
  width: 100%;
  height: auto;
}
.video-break.playing .video-break-thumb {
  display: none;
}
.video-break.playing .video-break-player {
  display: block;
}

/* --- Mission Page: Hero Photos (side-by-side) --- */
.mission-photos {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2.5rem 0 2.5rem;
}

.mission-photo {
  display: block;
  width: 320px;
  max-width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

@media (max-width: 767px) {
  .mission-photos {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .mission-photo {
    width: 300px;
    height: 300px;
  }
}

/* --- Mission Page: Sector Cards --- */
.mission-sector-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 2.5rem;
}

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

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

.mission-sector-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-sector-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 180, 255, 0.08);
}

.mission-sector-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.mission-sector-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.mission-sector-card-body h3 {
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.mission-sector-card-body p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.mission-sector-card-body p:last-child {
  margin-bottom: 0;
}

.mission-sector-card-body ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 0;
}

.mission-sector-card-body ul li {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 0.35rem;
}

.mission-sector-card-body ul li::before {
  content: none;
}

@media (max-width: 767px) {
  .mission-sector-grid--2col,
  .mission-sector-grid--3col {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .mission-sector-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Our Story Section --- */
.story-section {
  background: #ffffff;
  position: relative;
}

.story-body {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 5rem 4rem;
}

.story-photos {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.story-photo {
  display: block;
  width: 320px;
  max-width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.story-body h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #111111;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.story-body .story-subtitle {
  font-size: 1.125rem;
  color: #666666;
  font-weight: 400;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e8e8e8;
}

.story-body h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 3rem;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid #2628ab;
}

.story-body h3:first-of-type {
  margin-top: 0;
}

.story-body p {
  color: #444444;
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.story-body .story-lead {
  font-size: 1.25rem;
  color: #222222;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.story-body ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.story-body ul li {
  color: #444444;
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 0.75rem;
}

.story-body ul li::before {
  content: '';
  position: absolute;
  left: -0.75rem;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background: #2628ab;
  border-radius: 50%;
}

.story-body ol {
  margin-bottom: 1.5rem;
  padding-left: 0;
  counter-reset: story-counter;
}

.story-body ol li {
  color: #444444;
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  padding-left: 2.5rem;
  position: relative;
  counter-increment: story-counter;
}

.story-body ol li::before {
  content: counter(story-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-body ol li strong {
  color: #1a1a1a;
}

.story-body .story-callout {
  background: #f5f7fa;
  border-left: 4px solid #2628ab;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  border-radius: 0 8px 8px 0;
}

.story-body .story-callout p {
  color: #222222;
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 0;
}

.story-body .story-closing {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e8e8e8;
}

.story-body .story-closing p {
  font-size: 1.1875rem;
  color: #1a1a1a;
  font-weight: 500;
  line-height: 1.7;
}

/* --- Team Page --- */
.team-section {
  padding: 4rem 0;
  background: var(--bg-primary);
}

.team-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 4rem;
}

.team-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.team-intro p {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem 2rem;
}

.team-grid .team-card {
  flex: 0 0 calc(33.333% - 1.334rem);
}

.team-grid .team-card:nth-child(1),
.team-grid .team-card:nth-child(2) {
  flex: 0 0 calc(50% - 1rem);
}

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

.team-card-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--border-subtle);
  transition: border-color var(--transition-fast);
}

.team-card:hover .team-card-photo {
  border-color: var(--accent);
}

.team-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.team-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: inline-block;
}

.team-card-bio {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 340px;
  margin: 0 auto;
}

@media (max-width: 1199px) {
  .team-grid .team-card {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 767px) {
  .team-section {
    padding: 3rem 0;
  }

  .team-inner {
    padding: 0 1.5rem;
  }

  .team-grid .team-card {
    flex: 0 0 100%;
  }

  .team-grid {
    gap: 2.5rem;
  }

  .team-card-photo {
    width: 180px;
    height: 180px;
  }
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo img {
  height: 24px;
  width: auto;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

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

.footer-copy {
  width: 100%;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 1rem;
}

.footer-copy p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 1199px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    height: 65vh;
    min-height: 420px;
  }

  .hero-content {
    padding: 0 1.5rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .features-section {
    padding: 3rem 1rem;
  }

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

  .page-hero {
    height: 35vh;
    min-height: 250px;
  }

  .page-hero-content {
    padding: 0 1.5rem;
  }

  .page-content {
    padding: 2.5rem 0;
  }

  .page-content-inner {
    padding: 0 1.5rem;
  }

  .story-body {
    padding: 3rem 1.5rem;
  }

  .story-photos {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .story-photo {
    width: 300px;
    height: 300px;
  }

  .story-body h3 {
    margin-top: 2rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

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

  .carousel-controls {
    bottom: 1rem;
  }
}

/* --- Utility Classes --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
