/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
:root {
  --color-navy: #001332;
  --color-navy-mid: #1c2f47;
  --color-navy-light: #273e5b;
  --color-navy-text: #223852;
  --color-blue-muted: #2e496b;
  --color-blue-gray: #657fa1;
  --color-blue-border: #a0b4cd;
  --color-orange: #ce4801;
  --color-orange-light: #ff6f23;
  --color-white: #fff;
  --color-bg-light: #f1f7ff;
  --font-family: 'Nunito', sans-serif;
  --container-max: 1280px;
  --section-padding: 80px;
  --radius: 10px;
  --shadow-card: 4px 4px 8px rgb(0 0 0 / 35%);
  --shadow-soft: 0 4px 4px rgb(0 0 0 / 25%);

  /* Type scale */
  --text-sm: 0.875rem;   /* 14px - tags, captions only */
  --text-base: 1rem;     /* 16px - body, descriptions, bios, quotes */
  --text-lg: 1.25rem;    /* 20px - card headings, emphasized text */
  --text-xl: 1.5rem;     /* 24px - names, service labels */

  /* Line heights */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;

  /* Story editorial system */
  --font-display: 'DM Serif Display', georgia, serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --text-display: clamp(2rem, 4vw, 3.25rem);
  --text-narrative: 1.125rem;
  --leading-narrative: 1.75;
  --story-bg-warm: #faf8f5;
  --story-text-secondary: #4a6282;
  --story-border-subtle: #d4dde8;
  --story-narrow: 720px;
  --story-section-padding: 120px;

  /* V3 thread accent colors */
  --color-thread-consulting: #5b9ab5;
  --color-thread-build: #7b9a6b;
  --color-thread-open: #b08a5b;
  --color-cream: #faf9f7;
  --color-warm-gray: #f0eeea;
  --color-navy-deep: #001a3d;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-navy);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-orange);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  z-index: 1000;
  font-weight: 700;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 2px;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.1s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--filled {
  background: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-orange);
}

.btn--filled:hover {
  background: transparent;
  color: var(--color-orange);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}

.btn--white:hover {
  background: transparent;
  color: var(--color-white);
}

.btn--navy {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.btn--navy:hover {
  background: transparent;
  color: var(--color-navy);
}

.btn--outlined-white {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outlined-white:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

.btn--outlined-navy {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn--outlined-navy:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn--outlined-muted {
  background: transparent;
  color: var(--color-blue-gray);
  border-color: var(--color-blue-border);
  width: fit-content;
}

.btn--outlined-muted:hover {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.btn--shadow {
  box-shadow: var(--shadow-soft);
}

.btn--icon img {
  flex-shrink: 0;
}

.btn--nav {
  padding: 0.6rem 1rem;
}

.btn--submit {
  font-size: var(--text-lg);
  padding: 0.8rem 2rem;
  min-width: 209px;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: rgb(0 19 50 / 95%);
  box-shadow: 0 2px 10px rgb(0 0 0 / 30%);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  flex-shrink: 0;
}

.logo {
  width: 175px;
  height: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--color-white);
  font-weight: 700;
  font-size: var(--text-base);
  padding: 0.25rem 0;
}

.nav-link:hover {
  opacity: 0.8;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  z-index: 110;
}

.hamburger-line {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 632px;
  display: flex;
  align-items: center;
  background: #00143b;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  right: 0;
  top: 0;
  width: 80%;
  height: 100%;
  object-fit: cover;
}

.hero-bg-video {
  position: absolute;
  right: 0;
  top: 0;
  width: 80%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.hero--video-active .hero-bg-video {
  opacity: 1;
}

.hero--video-active .hero-bg-img--fallback {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-video {
    display: none !important;
  }

  .hero--video-active .hero-bg-img--fallback {
    display: block;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 3rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: var(--leading-tight);
  margin-bottom: 3rem;
}

.hero-also {
  color: var(--color-white);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: 0.25rem;
}

.hero-subtitle {
  color: var(--color-white);
  font-weight: 500;
  font-size: clamp(var(--text-lg), 2.2vw, var(--text-xl));
  line-height: var(--leading-normal);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-ctas .btn {
  font-size: var(--text-lg);
  padding: 0.8rem 1.5rem;
}

/* ==========================================================================
   AI in Education
   ========================================================================== */
.ai-education {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: var(--color-white);
  overflow: hidden;
}

/* Background image — full width, centered vertically */
.ai-education-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  overflow: hidden;
}

.ai-education-bg-img {
  width: 100%;
  height: auto;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .ai-project-card {
    transition: none;
  }

  .beyond-ai-card,
  .beyond-ai-video {
    transition: none;
  }
}

/* Statement block — editorial pull-quote treatment */
.ai-statement {
  max-width: 800px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.ai-statement-accent {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-orange);
  margin: 0 auto 2rem;
  border-radius: 2px;
}

.ai-statement-text {
  font-size: clamp(1.375rem, 2.8vw, 1.75rem);
  font-weight: 400;
  color: var(--color-navy);
  line-height: 1.65;
  text-wrap: pretty;
}

.ai-education-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.ai-education-title {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.ai-capability-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.ai-capability-tags li {
  background: transparent;
  color: var(--color-navy);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--color-blue-border);
  transition: background 0.2s, border-color 0.2s;
}

.ai-capability-tags li:hover {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

/* AI Project Showcase */
.ai-project-showcase {
  max-width: 970px;
  margin: 0 auto 3rem;
}

.ai-project-card {
  background: var(--color-white);
  border: 1px solid var(--color-blue-border);
  border-radius: var(--radius);
  padding: 2rem;
  color: var(--color-navy);
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

.ai-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgb(0 19 50 / 12%);
}

.ai-project-card--featured {
  border-left: 4px solid var(--color-orange);
  margin-bottom: 1.5rem;
}

.ai-project-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.ai-project-tag {
  display: inline-block;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.ai-project-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}

.ai-project-client {
  font-size: var(--text-sm);
  color: var(--color-blue-gray);
  margin-bottom: 0.75rem;
}

.ai-project-desc {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-blue-muted);
}

.ai-project-also {
  text-align: center;
  color: var(--color-blue-gray);
  font-size: var(--text-base);
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Beyond AI — Full-Stack Services
   ========================================================================== */
.beyond-ai {
  background: var(--color-navy);
  padding: clamp(3rem, 6vw, var(--section-padding)) 0;
}

.beyond-ai-content {
  text-align: center;
}

.beyond-ai-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: var(--leading-tight);
  margin-bottom: 1rem;
}

.beyond-ai-subtitle {
  font-size: var(--text-lg);
  color: var(--color-blue-border);
  margin-bottom: 3rem;
}

.beyond-ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.beyond-ai-video {
  grid-row: 1 / -1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 10%);
  box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.beyond-ai-video:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgb(0 0 0 / 30%);
}

.beyond-ai-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.beyond-ai-card {
  background: var(--color-navy-mid);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.beyond-ai-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgb(0 0 0 / 25%);
}

.beyond-ai-card-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.beyond-ai-card-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.beyond-ai-card-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.beyond-ai-card-desc {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-blue-border);
}

.beyond-ai-ctas {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Impact
   ========================================================================== */
.impact {
  position: relative;
  min-height: 749px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.impact-bg {
  position: absolute;
  inset: 0;
}

.impact-bg-img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  will-change: transform;
}

.impact-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.impact-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: var(--leading-tight);
  text-shadow: 0 4px 10px rgb(0 0 0 / 75%);
  margin-bottom: 3rem;
}

.impact-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.impact-buttons .btn {
  font-size: var(--text-lg);
  padding: 0.8rem 1.5rem;
  min-width: 312px;
}

/* ==========================================================================
   Solutions
   ========================================================================== */
.solutions {
  position: relative;
  padding: clamp(3rem, 6vw, var(--section-padding)) 0;
  overflow: hidden;
}

.solutions-bg {
  position: absolute;
  inset: 0;
}

.solutions-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solutions-content {
  position: relative;
  z-index: 1;
}

.solutions-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.solution-card {
  background: rgb(255 255 255 / 77%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.5rem;
}

.solution-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-navy);
  line-height: var(--leading-normal);
  text-shadow: 0 0 15px white;
  margin-bottom: 1rem;
}

.solution-card p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-navy);
  margin-bottom: 1.5rem;
}

.solution-link {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-navy);
  text-decoration: underline;
}

.solution-link:hover {
  color: var(--color-orange);
}

/* ==========================================================================
   Client Stories
   ========================================================================== */
.client-stories {
  background: var(--color-bg-light);
  padding: clamp(3rem, 6vw, var(--section-padding)) 0;
  text-align: center;
}

.client-stories-title {
  font-size: clamp(2rem, 3.9vw, 3rem);
  font-weight: 500;
  line-height: var(--leading-tight);
  margin-bottom: 1.5rem;
}

.client-stories-subtitle {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  font-weight: 500;
  line-height: var(--leading-normal);
  max-width: 807px;
  margin: 0 auto 3rem;
}

.stories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  text-align: left;
}

.story-card {
  background: rgb(255 255 255 / 77%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Top area: two-column layout (left: logo+tags, right: description+button) */
.story-card-top {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 1.25rem;
  padding: 1.75rem 1.75rem 0;
}

.story-left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.story-right {
  display: flex;
  flex-direction: column;
}

.story-logo {
  margin-bottom: 0.5rem;
}

.story-logo img {
  max-height: 55px;
  width: auto;
}

.story-description {
  font-size: var(--text-base);
  color: var(--color-navy);
  line-height: var(--leading-relaxed);
  margin-bottom: 1.25rem;
}

.story-tags {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.story-tag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.story-tag img {
  width: 20px;
  height: auto;
  flex-shrink: 0;
}

.story-tag span {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-navy);
}

.story-tag strong {
  display: block;
  font-size: var(--text-sm);
}

.story-divider {
  border: none;
  border-top: 1px solid var(--color-blue-border);
  margin: 1rem 1.75rem 0;
}

/* Bottom area: photo flush left/bottom with head above divider + testimonial */
.story-bottom {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 1.25rem;
  padding: 0 1.75rem;
  align-items: end;
  flex: 1;
}

.story-author-photo-wrapper {
  align-self: end;
  margin-top: -3rem;
  margin-left: -1.75rem;
  margin-bottom: -1px;
  line-height: 0;
}

.story-author-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0 0 0 var(--radius);
}

.story-testimonial {
  padding: 1rem 0 1.75rem;
}

.story-quote {
  margin-bottom: 0.75rem;
}

.story-quote p {
  font-style: italic;
  font-size: var(--text-base);
  color: var(--color-blue-muted);
  line-height: var(--leading-relaxed);
}

.story-author-info {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-blue-muted);
}

.story-author-info strong {
  font-size: var(--text-base);
  display: block;
  color: var(--color-blue-muted);
}

.story-author-info span {
  display: block;
}

.stories-cta {
  margin-top: 1rem;
}

/* ==========================================================================
   Section Separator
   ========================================================================== */
.section-separator {
  height: 234px;
  overflow: hidden;
}

.separator-img {
  width: 100%;
  height: 200%;
  object-fit: cover;
  will-change: transform;
}

/* ==========================================================================
   Leadership
   ========================================================================== */
.leadership {
  position: relative;
  background: var(--color-navy);
  padding: clamp(3rem, 6vw, var(--section-padding)) 0;
  overflow: hidden;
}

.leadership-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.leadership-bg-img {
  position: absolute;
  right: 0;
  top: 0;
  width: 60%;
  height: auto;
  opacity: 0.2;
}

.leadership-map-img {
  position: absolute;
  right: 5%;
  bottom: 10%;
  width: 45%;
  height: auto;
}

.leadership-content {
  position: relative;
  z-index: 1;
}

.leadership-title {
  font-size: clamp(2rem, 3.9vw, 3rem);
  font-weight: 500;
  color: var(--color-white);
  line-height: var(--leading-tight);
  text-align: center;
  margin-bottom: 3rem;
}

.directors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.director-card {
  text-align: left;
}

.director-photo-wrapper {
  margin-bottom: -2rem;
  position: relative;
  z-index: 2;
}

.director-photo {
  width: 230px;
  height: 228px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: 0 auto;
}

.director-info {
  background: var(--color-navy-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 3rem 1.25rem 1.5rem;
}

.director-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-orange-light);
  line-height: var(--leading-tight);
  margin-bottom: 0.25rem;
  text-align: center;
}

.director-card--link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s;
}

.director-card--link:hover {
  transform: translateY(-4px);
  text-align: center;
}

.director-role {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.75rem;
  text-align: center;
}

.director-bio {
  font-size: var(--text-base);
  color: var(--color-white);
  line-height: var(--leading-relaxed);
  text-align: left;
}

.leadership-description {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  font-weight: 500;
  color: var(--color-white);
  line-height: var(--leading-normal);
  max-width: 528px;
  margin-bottom: 2rem;
}

.leadership-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.leadership-ctas .btn {
  font-size: var(--text-lg);
  padding: 0.8rem 1.5rem;
}

/* ==========================================================================
   Our Team Page — Staff Grid
   ========================================================================== */
.staff-section {
  background: var(--color-white);
  padding: clamp(3rem, 6vw, var(--section-padding)) 0;
}

.staff-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.staff-section-title {
  font-size: clamp(2rem, 3.9vw, 3rem);
  font-weight: 500;
  color: var(--color-navy);
  line-height: var(--leading-tight);
  margin-bottom: 1rem;
}

.staff-section-subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  color: var(--color-blue-muted);
  line-height: var(--leading-relaxed);
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}

.staff-card {
  text-align: center;
}

.staff-photo-wrapper {
  margin-bottom: -1.5rem;
  position: relative;
  z-index: 2;
}

.staff-photo {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

.staff-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  margin: 0 auto -1.5rem;
  position: relative;
  z-index: 2;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #d8e6f5, #a4bdd4);
  box-shadow: var(--shadow-card);
  color: var(--color-white);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.staff-info {
  background: var(--color-bg-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2.25rem 1rem 1.25rem;
}

.staff-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}

.staff-role {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-blue-muted);
  line-height: var(--leading-normal);
  margin-bottom: 0.5rem;
}

.staff-bio {
  font-size: var(--text-sm);
  color: var(--color-blue-muted);
  line-height: var(--leading-relaxed);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  padding: clamp(3rem, 6vw, var(--section-padding)) 0;
  background: var(--color-white);
}

.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-title {
  font-size: clamp(2rem, 3.9vw, 3rem);
  font-weight: 500;
  line-height: var(--leading-tight);
  margin-bottom: 0.5rem;
}

.contact-subtitle {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  font-weight: 500;
  line-height: var(--leading-normal);
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.form-group {
  width: 100%;
  max-width: 510px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1.0625rem;
  border: 1px solid var(--color-blue-border);
  border-radius: var(--radius);
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-navy);
  background: var(--color-white);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-blue-gray);
}

.form-textarea {
  min-height: 246px;
  resize: vertical;
}

.contact-note {
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-navy);
  margin-top: 0.5rem;
}

.form-status {
  min-height: 1.5rem;
}

.form-status.success {
  color: #2e7d32;
  font-weight: 600;
}

.form-status.error {
  color: #c62828;
  font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-blue-muted);
  padding: 3.5rem 0 0;
  color: var(--color-white);
  font-size: var(--text-base);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-white);
}

.footer-logo {
  flex-shrink: 0;
}

.footer-logo-text {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.footer-tagline {
  color: var(--color-blue-border);
  font-size: var(--text-sm);
}

.footer-nav {
  display: flex;
  gap: 3rem;
}

.footer-heading {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-blue-border);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--color-white);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-orange-light);
}

.footer-connect {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-navy-light);
  color: var(--color-white);
  transition: background 0.2s;
}

.footer-social-link:hover {
  background: var(--color-orange);
}

.footer-cta {
  align-self: flex-start;
}

.btn--sm {
  padding: 0.5rem 1.5rem;
  font-size: var(--text-sm);
}

.footer-bottom {
  border-top: 1px solid var(--color-blue-gray);
  padding: 1.25rem 0;
  font-size: var(--text-sm);
  color: var(--color-blue-border);
}

/* ==========================================================================
   Our Impact Page — Hero
   ========================================================================== */
.impact-hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background: var(--color-white);
}

.impact-hero-bg {
  position: absolute;
  right: 10%;
  bottom: -10%;
  overflow: hidden;
  z-index:1;
  width: 27%;
}

.impact-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.impact-hero--projects .impact-hero-bg {
  width: 40%;
  bottom: -5%;
}

.impact-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 15%;
  padding-bottom: 5%;
}

.impact-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: var(--leading-tight);
  margin-bottom: 1.5rem;
  width: 70%;
}

.impact-hero-subtitle {
  font-size: clamp(var(--text-lg), 2.2vw, 1.75rem);
  font-weight: 500;
  color: var(--color-navy);
  line-height: var(--leading-normal);
  max-width: 560px;
  margin-bottom: 2rem;
}

/* ==========================================================================
   Our Impact Page — Shared Section Styles
   ========================================================================== */
.impact-section {
  position: relative;
  min-height: 742px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.impact-section-content {
  position: relative;
  z-index: 1;
}

.impact-section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: var(--leading-tight);
  margin-bottom: 1rem;
}

.impact-section-title--white {
  color: var(--color-white);
}

.impact-section-text {
  font-size: clamp(var(--text-lg), 2.2vw, 1.75rem);
  font-weight: 500;
  color: var(--color-navy);
  line-height: var(--leading-normal);
  max-width: 560px;
  margin-bottom: 2rem;
}

.impact-section-text--white {
  color: var(--color-white);
}

/* ==========================================================================
   Our Impact Page — Open Source
   ========================================================================== */
.impact-opensource {
  background: var(--color-blue-gray);
}

.impact-opensource-watermark {
  position: absolute;
  right: -5%;
  top: -5%;
  width: 85vh;
  opacity: 0.19;
  pointer-events: none;
}

.impact-opensource-watermark-img {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Our Impact Page — Knowledge Sharing
   ========================================================================== */
.impact-knowledge {
  background: #ffebdb;
}

.impact-knowledge-bg {
  position: absolute;
  right: 0;
  top: 0;
  width: 78%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.impact-knowledge-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: darken;
}

/* ==========================================================================
   Our Impact Page — Standards
   ========================================================================== */
.impact-standards {
  background: var(--color-white);
}

.impact-standards-bg {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 67%;
  overflow: hidden;
  pointer-events: none;
}

.impact-standards-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: darken;
}

/* ==========================================================================
   Our Impact Page — AI
   ========================================================================== */
.impact-ai {
  background: var(--color-navy);
  min-height: 808px;
}

.impact-ai-bg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.impact-ai-bg-img {
  width: 100%;
  height: auto;
}

.impact-ai-content {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Active nav link */
.nav-link--active {
  background: var(--color-bg-light);
  color: var(--color-navy) !important;
  padding: 0.4rem 0.75rem;
  border-radius: 7px;
}

/* ==========================================================================
   Solutions Page — Hero
   ========================================================================== */
.solutions-hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background: var(--color-white);
  overflow: hidden;
}

.solutions-hero-bg {
  position: absolute;
  right: 10%;
  bottom: 0%;
  width: auto;
  height: 550px;
  overflow: hidden;
  pointer-events: none;
}

.solutions-hero-bg-img {
  width: auto;
  height: 550px;
  object-fit: cover;
}

.solutions-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 15%;
  padding-bottom: 5%;
}

.solutions-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: var(--leading-tight);
  margin-bottom: 1.5rem;
}

.solutions-hero-subtitle {
  font-size: clamp(var(--text-lg), 2.2vw, 1.75rem);
  font-weight: 500;
  color: var(--color-navy);
  line-height: var(--leading-normal);
  max-width: 560px;
  margin-bottom: 2rem;
}

/* ==========================================================================
   Solutions Page — Shared Section Styles
   ========================================================================== */
.sol-section {
  position: relative;
  min-height: 742px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.sol-section-content {
  position: relative;
  z-index: 1;
}

.sol-section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: var(--leading-tight);
  margin-bottom: 1rem;
  max-width: 804px;
}

.sol-section-title--white {
  color: var(--color-white);
}

.sol-section-text {
  font-size: clamp(var(--text-lg), 2.2vw, 1.75rem);
  font-weight: 500;
  color: var(--color-navy);
  line-height: var(--leading-normal);
  max-width: 560px;
  margin-bottom: 2rem;
}

.sol-section-text--white {
  color: var(--color-white);
}

/* ==========================================================================
   Solutions Page — Product Development
   ========================================================================== */
.sol-product {
  background: #ffebdb;
}

.sol-watermark {
  position: absolute;
  right: 0;
  top: 0;
  width: 57%;
  height: 100%;
  opacity: 0.2;
  pointer-events: none;
  overflow: hidden;
}

.sol-watermark-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sol-logos {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.sol-logo-img {
  width: 122px;
  height: 122px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ==========================================================================
   Solutions Page — Curriculum
   ========================================================================== */
.sol-curriculum {
  background: var(--color-blue-gray);
}

/* ==========================================================================
   Solutions Page — Systems Integration
   ========================================================================== */
.sol-integration {
  background: #ffebdb;
}

/* ==========================================================================
   Solutions Page — Data and Analytics
   ========================================================================== */
.sol-data {
  background: var(--color-navy);
}

/* ==========================================================================
   Solutions Page — AI Content Generation
   ========================================================================== */
.sol-ai {
  background: var(--color-navy);
  min-height: 808px;
}

.sol-ai-bg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.sol-ai-bg-img {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Work With Us Page — Hero
   ========================================================================== */
.wwu-hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background: var(--color-white);
  overflow: hidden;
}

.wwu-hero-bg {
  position: absolute;
  right: -5%;
  top: -5%;
  width: 55%;
  height: 110%;
  overflow: hidden;
  pointer-events: none;
}

.our-team-hero-bg {
  position: absolute;
  right: 0;
  top: -5%;
  width: 55%;
  height: 110%;
  overflow: hidden;
  pointer-events: none;
}

.wwu-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  mix-blend-mode: multiply;
}

.wwu-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 15%;
  padding-bottom: 5%;
}

.wwu-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: var(--leading-tight);
  margin-bottom: 1.5rem;
}

.wwu-hero-subtitle {
  font-size: clamp(var(--text-lg), 2.2vw, 1.75rem);
  font-weight: 500;
  color: var(--color-navy);
  line-height: var(--leading-normal);
  max-width: 560px;
  margin-bottom: 2rem;
}

/* ==========================================================================
   Work With Us Page — Shared Section Styles
   ========================================================================== */
.wwu-section {
  position: relative;
  min-height: 742px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.wwu-section-content {
  position: relative;
  z-index: 1;
}

.wwu-section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: var(--leading-tight);
  margin-bottom: 1.5rem;
  max-width: 804px;
}

.wwu-section-title--white {
  color: var(--color-white);
}

.wwu-section-text {
  font-size: clamp(var(--text-lg), 2.2vw, 1.75rem);
  font-weight: 500;
  color: var(--color-navy);
  line-height: var(--leading-normal);
  max-width: 660px;
}

.wwu-section-text--white {
  color: var(--color-white);
}

/* ==========================================================================
   Work With Us Page — We Help Organizations
   ========================================================================== */
.wwu-help {
  background: #ffebdb;
}

.wwu-help-bg {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  overflow: hidden;
  pointer-events: none;
}

.wwu-help-bg-img {
  width: 100%;
  height: auto;
  mix-blend-mode: darken;
}

.wwu-bullet-list {
  list-style: none;
  padding: 0;
  max-width: 700px;
}

.wwu-bullet-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1.25rem;
  font-size: clamp(var(--text-base), 1.5vw, var(--text-lg));
  line-height: var(--leading-relaxed);
  color: var(--color-navy);
}

.wwu-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 10px;
  background: var(--color-orange);
  border-radius: 50%;
}

.wwu-bullet-list li:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Work With Us Page — Who We Work With
   ========================================================================== */
.wwu-who {
  background: var(--color-blue-gray);
}

.wwu-who .wwu-section-title {
  white-space: nowrap;
}

.wwu-who-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.wwu-who-left .wwu-section-text {
  margin-bottom: 0;
}

.wwu-audience-list {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.wwu-audience-item {
  background: rgb(255 255 255 / 15%);
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
}

.wwu-audience-label {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-white);
  line-height: var(--leading-normal);
}

.wwu-who-right {
  background: rgb(255 255 255 / 8%);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.wwu-client-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 2.5rem;
  place-items: center;
}

.wwu-client-logo {
  width: 160px;
  height: 50px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.65;
  transition: opacity 0.2s;
}

.wwu-client-logo:hover {
  opacity: 1;
}

/* Square/compact logos need more width to fill visual space */
.wwu-client-logo--square {
  width: 130px;
  height: 65px;
}

/* Ultra-wide logos need more width room */
.wwu-client-logo--wide {
  width: 190px;
}

/* ==========================================================================
   Work With Us Page — How We Work
   ========================================================================== */
.wwu-how {
  background: var(--color-white);
}

.wwu-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.wwu-method {
  background: var(--color-bg-light);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.wwu-method-label {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-navy);
  line-height: var(--leading-normal);
  margin-bottom: 0.75rem;
}

.wwu-method-text {
  font-size: var(--text-base);
  color: var(--color-navy);
  line-height: var(--leading-relaxed);
}

.wwu-probono {
  font-style: italic;
}

/* ==========================================================================
   Work With Us Page — Client Quote
   ========================================================================== */
.wwu-quote {
  background: var(--color-navy);
  min-height: 450px;
}

.wwu-quote--light {
  background: var(--color-bg-light);
}

.wwu-quote-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.wwu-testimonial-card {
  background: rgb(255 255 255 / 77%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: end;
}

.wwu-testimonial-photo {
  align-self: end;
  line-height: 0;
}

.wwu-testimonial-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.wwu-testimonial-text {
  padding: 2.5rem 2.5rem 2.5rem 1.5rem;
}

.wwu-testimonial-text .story-quote {
  margin-bottom: 1rem;
}

.wwu-testimonial-text .story-quote p {
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-blue-muted);
  line-height: var(--leading-relaxed);
}

.wwu-testimonial-text .story-author-info {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-blue-muted);
}

.wwu-testimonial-text .story-author-info strong {
  font-size: var(--text-base);
  display: block;
  color: var(--color-navy);
}

.wwu-blockquote p {
  font-size: clamp(var(--text-xl), 3vw, 2.25rem);
  font-weight: 500;
  color: var(--color-white);
  line-height: var(--leading-normal);
  margin-bottom: 1.5rem;
}

.wwu-quote-attribution {
  font-size: var(--text-lg);
  color: var(--color-blue-border);
  font-style: normal;
}

.wwu-quote-attribution cite {
  font-style: normal;
}

/* ==========================================================================
   Work With Us Page — Closing CTA
   ========================================================================== */
.wwu-cta {
  background: var(--color-navy);
  min-height: 808px;
}

.wwu-cta-bg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.wwu-cta-bg-img {
  width: 100%;
  height: auto;
}

.wwu-cta-content {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* ==========================================================================
   Responsive: 1024px
   ========================================================================== */
@media (width <= 1024px) {
  :root {
    --section-padding: 60px;
  }

  .directors-grid {
    gap: 1.5rem;
  }

  .staff-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.5rem;
  }

  .director-photo {
    width: 180px;
    height: 178px;
  }

  .impact-buttons .btn {
    min-width: auto;
  }

  .impact-hero {
    min-height: auto;
  }

  .impact-hero-figure {
    display: none;
  }

  .impact-section {
    min-height: 550px;
  }

  .impact-ai {
    min-height: 600px;
  }

  .solutions-hero {
    min-height: auto;
  }

  .sol-section {
    min-height: 550px;
  }

  .sol-ai {
    min-height: 600px;
  }

  .sol-logo-img {
    width: 100px;
    height: 100px;
  }

  .wwu-hero {
    min-height: auto;
  }

  .wwu-section {
    min-height: 550px;
  }

  .wwu-quote {
    min-height: 400px;
  }

  .wwu-cta {
    min-height: 600px;
  }
}

/* ==========================================================================
   Responsive: 768px
   ========================================================================== */
@media (width <= 768px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-navy);
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    z-index: 105;
  }

  .main-nav.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .nav-link {
    font-size: var(--text-lg);
  }

  .hero {
    min-height: auto;
    padding: 8rem 0 3rem;
  }

  .hero-bg-img {
    width: 100%;
  }

  .hero-bg-video {
    width: 100%;
  }

  .ai-project-row {
    grid-template-columns: 1fr;
  }

  .beyond-ai-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .beyond-ai-video {
    grid-row: auto;
    max-height: 360px;
  }

  .beyond-ai-video video {
    max-height: 360px;
  }

  .solutions-cards {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .stories-grid {
    grid-template-columns: 1fr;
  }

  .story-card-top,
  .story-bottom {
    grid-template-columns: 1fr;
  }

  .story-bottom {
    padding: 0;
  }

  .story-author-photo-wrapper {
    margin-top: 1rem;
    order: 1;
    padding: 0 1.75rem;
  }

  .story-author-photo {
    width: 140px;
    border-radius: 0;
  }

  .story-testimonial {
    order: 0;
    padding: 1rem 1.75rem;
  }

  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }

  .staff-photo,
  .staff-initials {
    width: 120px;
    height: 120px;
    font-size: 2rem;
  }

  .directors-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto 3rem;
  }

  .impact {
    min-height: 500px;
  }

  .section-separator {
    height: 150px;
  }

  .impact-hero {
    min-height: auto;
  }

  .impact-hero-bg {
    width: 60%;
    opacity: 0.5;
  }

  .impact-hero-figure {
    display: none;
  }

  .impact-hero-title {
    width: 100%;
  }

  .impact-section {
    min-height: 500px;
  }

  .impact-knowledge-bg {
    width: 100%;
    opacity: 0.4;
  }

  .impact-standards-bg {
    width: 100%;
    opacity: 0.4;
  }

  .impact-ai {
    min-height: 500px;
  }

  .solutions-hero {
    min-height: auto;
  }

  .solutions-hero-bg {
    width: 100%;
    opacity: 0.3;
  }

  .sol-section {
    min-height: 400px;
  }

  .sol-logos {
    flex-wrap: wrap;
  }

  .sol-logo-img {
    width: 80px;
    height: 80px;
  }

  .sol-ai {
    min-height: 500px;
  }

  .wwu-hero {
    min-height: auto;
    padding: 8rem 0 3rem;
  }

  .wwu-section {
    min-height: 400px;
  }

  .wwu-hero-bg {
    width: 100%;
    opacity: 0.3;
  }

  .wwu-help-bg {
    width: 100%;
    opacity: 0.3;
  }

  .wwu-who .wwu-section-title {
    white-space: normal;
  }

  .wwu-who-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .wwu-client-logos {
    grid-template-columns: repeat(3, 1fr);
  }

  .wwu-methods {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .wwu-quote {
    min-height: 350px;
  }

  .wwu-testimonial-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .wwu-testimonial-photo {
    order: -1;
    max-width: 200px;
    margin: 1.5rem auto 0;
  }

  .wwu-testimonial-text {
    padding: 1.5rem 2rem 2rem;
  }

  .wwu-cta {
    min-height: 500px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-logo-link {
    justify-content: center;
  }

  .footer-nav {
    justify-content: center;
    gap: 2.5rem;
  }

  .footer-connect {
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-cta {
    align-self: center;
  }

  .footer-bottom {
    text-align: center;
  }
}

/* ==========================================================================
   Get Started (Lead Generation) Page
   ========================================================================== */
.v3-page-hero.lead-hero,
.lead-hero {
  background: var(--color-white);
  text-align: center;
  min-height: unset;
  padding: 8rem 0 1.5rem;
}

.lead-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.lead-split {
  padding: 1rem 0 var(--section-padding);
  background: var(--color-white);
}

.lead-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr);
  gap: 3.5rem;
  align-items: start;
  max-width: 1240px;
}

.lead-split-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.lead-split-head {
  margin-bottom: 1.25rem;
}

.lead-split-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 0.5rem;
}

.lead-split-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  color: var(--color-navy);
  line-height: 1.15;
  margin: 0 0 0.4rem;
  text-align: left;
}

.lead-split-subtitle {
  color: var(--color-blue-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  text-align: left;
}

.lead-split-card {
  background: transparent;
}

.lead-split-card--form {
  display: flex;
  flex-direction: column;
}

.lead-split-form .contact-form {
  align-items: stretch;
  flex: 1;
  gap: 0.875rem;
  margin-top: 14px;
}

@media (width <= 960px) {
  .lead-split-form .contact-form {
    margin-top: 0;
  }
}

.lead-split-form .form-group {
  max-width: none;
  width: 100%;
}

.lead-split-form .form-input,
.lead-split-form .form-textarea {
  background: #f8fafd;
}

.lead-split-form .form-textarea {
  min-height: 180px;
}

.lead-split-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.25rem;
}

.lead-split-form-actions .contact-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-blue-muted);
}

.lead-split-form .btn--submit {
  margin: 0;
}

.lead-calendar-embed iframe {
  border-radius: calc(var(--radius) - 4px);
}

@media (width <= 960px) {
  .lead-split-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.lead-calendar-embed {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-white);
}

.lead-calendar-embed iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: 0;
}

.lead-form {
  padding: var(--section-padding) 0;
  background: var(--color-navy);
}

.lead-form-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.lead-form-title {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.9vw, 3rem);
  font-weight: 400;
  line-height: var(--leading-tight);
  margin-bottom: 0.5rem;
}

.lead-form-subtitle {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  font-weight: 500;
  color: var(--color-blue-border);
  line-height: var(--leading-normal);
  margin-bottom: 2rem;
}

.lead-form .form-input,
.lead-form .form-textarea {
  background: var(--color-white);
  border-color: var(--color-blue-border);
}

.lead-form .contact-note {
  color: var(--color-blue-border);
}

@media (width <= 768px) {
  .lead-hero {
    padding: 8rem 0 3rem;
  }

  .lead-calendar-embed iframe {
    height: 500px;
  }
}

@media (width <= 480px) {
  .lead-calendar-embed iframe {
    height: 450px;
  }
}

/* ==========================================================================
   Work With Us (Engage) Page
   ========================================================================== */

/* Hero */
.engage-hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background: var(--color-white);
  overflow: hidden;
}

.engage-hero-bg {
  position: absolute;
  right: -5%;
  top: -5%;
  width: 55%;
  height: 110%;
  overflow: hidden;
  pointer-events: none;
}

.engage-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  mix-blend-mode: multiply;
}

.engage-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 15%;
  padding-bottom: 5%;
}

.engage-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: var(--leading-tight);
  margin-bottom: 1.5rem;
}

.engage-hero-subtitle {
  font-size: clamp(var(--text-lg), 2.2vw, 1.75rem);
  font-weight: 500;
  color: var(--color-navy);
  line-height: var(--leading-normal);
  max-width: 560px;
  margin-bottom: 2rem;
}

/* Shared section */
.engage-section {
  position: relative;
  padding: var(--section-padding) 0;
  overflow: hidden;
}

.engage-section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: var(--leading-tight);
  margin-bottom: 2rem;
}

.engage-section-title--white {
  color: var(--color-white);
}

/* Tabs */
.engage-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.engage-tabs::-webkit-scrollbar {
  display: none;
}

.engage-tab {
  padding: 0.75rem 1.5rem;
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-blue-muted);
  background: var(--color-bg-light);
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.engage-tab:hover {
  color: var(--color-navy);
  background: var(--color-white);
  border-color: var(--color-blue-border);
}

.engage-tab--active {
  color: var(--color-white);
  background: var(--color-navy);
  border-color: var(--color-navy);
}

.engage-tab--active:hover {
  color: var(--color-white);
  background: var(--color-navy);
  border-color: var(--color-navy);
}

/* Tab panels */
.engage-tab-panel {
  display: none;
}

.engage-tab-panel--active {
  display: block;
}

/* Tier grid */
.engage-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

/* Tier card */
.engage-tier-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--color-orange);
}

.engage-tier-name {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}

.engage-tier-tagline {
  font-size: var(--text-base);
  color: var(--color-navy);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.engage-tier-price {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-navy-text);
  border-left: 3px solid var(--color-orange);
  padding: 0.25rem 0 0 0.75rem;
  margin-bottom: 0;
}

.engage-tier-price span {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-blue-gray);
}

.engage-tier-price--custom {
  color: var(--color-navy-text);
}

.engage-tier-probono {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-blue-muted);
  border-left: 3px solid var(--color-orange);
  padding: 0.25rem 0 0.25rem 0.75rem;
  margin-bottom: 1.5rem;
  line-height: var(--leading-normal);
}

.engage-tier-includes-heading {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.engage-tier-list {
  list-style: none;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.engage-tier-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: var(--text-base);
  color: var(--color-navy-text);
  line-height: var(--leading-relaxed);
  margin-bottom: 0.5rem;
}

.engage-tier-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--color-orange);
  border-radius: 50%;
}

.engage-tier-best-for {
  font-size: var(--text-sm);
  color: var(--color-blue-gray);
  margin-bottom: 1.5rem;
}

.engage-tier-scope {
  font-size: var(--text-sm);
  color: var(--color-blue-gray);
  margin-bottom: 1.5rem;
  line-height: var(--leading-relaxed);
  border-top: 1px solid var(--color-blue-border);
  padding-top: 1rem;
}

.engage-tier-scope strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}

.engage-tier-card .btn {
  margin-top: auto;
  text-align: center;
}

/* Sub-tabs (fractional leadership roles) */
.engage-subtabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.engage-subtabs::-webkit-scrollbar {
  display: none;
}

.engage-subtab {
  padding: 0.5rem 1.25rem;
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-blue-muted);
  background: transparent;
  border: 1.5px solid var(--color-blue-border);
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.engage-subtab:hover {
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.engage-subtab--active {
  color: var(--color-white);
  background: var(--color-navy-mid);
  border-color: var(--color-navy-mid);
}

.engage-subtab--active:hover {
  color: var(--color-white);
  background: var(--color-navy-mid);
  border-color: var(--color-navy-mid);
}

.engage-subtab-panel {
  display: none;
}

.engage-subtab-panel--active {
  display: block;
}

/* Packages section background */
.engage-packages {
  background: var(--color-bg-light);
}

/* What Sets Us Apart */
.engage-diff {
  background: #fef5ee;
}

.engage-diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.engage-diff-item {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.engage-diff-label {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.engage-diff-text {
  font-size: var(--text-base);
  color: var(--color-navy-text);
  line-height: var(--leading-relaxed);
}

/* How It Works */
.engage-process {
  background: var(--color-navy);
}

.engage-process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.engage-step {
  text-align: center;
}

.engage-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-orange);
  color: var(--color-white);
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: 1rem;
}

.engage-step-label {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.engage-step-text {
  font-size: var(--text-base);
  color: var(--color-blue-border);
  line-height: var(--leading-normal);
}

/* Closing CTA */
.engage-cta {
  background: var(--color-navy);
  min-height: 500px;
  display: flex;
  align-items: center;
}

.engage-cta-bg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  pointer-events: none;
}

.engage-cta-bg-img {
  width: 100%;
  height: auto;
}

.engage-cta-content {
  position: relative;
  z-index: 1;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.engage-cta-content .engage-section-title {
  max-width: 700px;
}

/* ==========================================================================
   Responsive: 1024px — Engage Page
   ========================================================================== */
@media (width <= 1024px) {
  .engage-tiers-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .engage-diff-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .engage-process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .engage-hero {
    min-height: auto;
  }
}

/* ==========================================================================
   Responsive: 768px — Engage Page
   ========================================================================== */
@media (width <= 768px) {
  .engage-hero {
    min-height: auto;
    padding: 8rem 0 3rem;
  }

  .engage-hero-bg {
    width: 100%;
    opacity: 0.3;
  }

  .engage-diff-grid {
    grid-template-columns: 1fr;
  }

  .engage-process-steps {
    grid-template-columns: 1fr;
  }

  .engage-cta {
    min-height: 400px;
  }
}

/* ==========================================================================
   Director Bio Pages
   ========================================================================== */
.bio-hero {
  position: relative;
  background: var(--color-navy);
  padding: 10rem 0 4rem;
  text-align: center;
  overflow: hidden;
}

.bio-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bio-hero-bg img {
  position: absolute;
  right: 0;
  top: 0;
  width: 60%;
  height: auto;
  opacity: 0.2;
}

.bio-back {
  margin-bottom: 2rem;
}

.bio-back a {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-orange);
  text-decoration: none;
}

.bio-back a:hover {
  text-decoration: underline;
}

.bio-photo-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.bio-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}

.bio-photo-dog {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s;
}

.bio-photo-wrapper:hover .bio-photo {
  opacity: 0;
}

.bio-photo-wrapper:hover .bio-photo-dog {
  opacity: 1;
}

.bio-name {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: var(--leading-tight);
  margin-bottom: 0.5rem;
}

.bio-role {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-blue-border);
}

.bio-content {
  padding: var(--section-padding) 0;
}

.bio-body {
  max-width: 740px;
  margin: 0 auto;
}

.bio-body p {
  font-size: clamp(var(--text-base), 1.5vw, 1.125rem);
  color: var(--color-navy-text);
  line-height: var(--leading-relaxed);
  margin-bottom: 1.5rem;
}

.bio-body p:last-child {
  margin-bottom: 0;
}

@media (width <= 768px) {
  .bio-hero {
    padding: 8rem 0 3rem;
  }

  .bio-photo-wrapper {
    width: 160px;
    height: 160px;
  }
}

/* ==========================================================================
   Responsive: 480px
   ========================================================================== */
@media (width <= 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-ctas,
  .leadership-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn,
  .leadership-ctas .btn {
    width: 100%;
  }

  .impact {
    min-height: 400px;
  }

  .impact-buttons .btn {
    min-width: auto;
    width: 100%;
  }

  .beyond-ai-ctas {
    flex-direction: column;
  }

  .beyond-ai-ctas .btn {
    width: 100%;
  }
}

/* ==========================================================================
   AI Page
   ========================================================================== */

/* Hero */
.ai-page-hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background: var(--color-navy);
  overflow: hidden;
}

.ai-page-hero-bg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 0;
}

.ai-page-hero-bg-img {
  width: 100%;
  height: auto;
}

.ai-page-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 10%;
  max-width: 700px;
}

.ai-page-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: var(--leading-tight);
  margin-bottom: 1.5rem;
}

.ai-page-hero-subtitle {
  font-size: clamp(var(--text-lg), 2.2vw, 1.75rem);
  font-weight: 500;
  color: var(--color-white);
  line-height: var(--leading-normal);
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Section title */
.ai-page-section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.ai-page-section-title--white {
  color: var(--color-white);
}

/* Philosophy */
.ai-page-philosophy {
  padding: var(--section-padding) 0;
  background: var(--color-white);
}

.ai-page-philosophy-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.ai-page-philosophy-lead {
  font-size: clamp(1.375rem, 2.8vw, 1.75rem);
  font-weight: 400;
  color: var(--color-navy);
  line-height: var(--leading-normal);
  margin-bottom: 1.5rem;
}

.ai-page-philosophy-body {
  font-size: var(--text-base);
  color: var(--color-blue-muted);
  line-height: var(--leading-relaxed);
}

/* Capabilities */
.ai-page-capabilities {
  padding: var(--section-padding) 0;
  background: var(--color-bg-light);
}

.ai-page-capabilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.ai-page-capability-card {
  background: var(--color-white);
  border: 1px solid var(--color-blue-border);
  border-radius: var(--radius);
  padding: 2rem;
}

.ai-page-capability-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.ai-page-capability-desc {
  font-size: var(--text-base);
  color: var(--color-blue-muted);
  line-height: var(--leading-relaxed);
}

/* Projects */
.ai-page-projects {
  padding: var(--section-padding) 0;
  background: var(--color-white);
}

.ai-page-project-featured {
  grid-column: 1 / -1;
}

.ai-page-projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Resources */
.ai-page-resources {
  padding: var(--section-padding) 0;
  background: var(--color-bg-light);
}

.ai-page-resources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.ai-page-resources-heading {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 1.5rem;
}

.ai-page-resources-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ai-page-resource-link {
  font-size: var(--text-base);
  color: var(--color-orange);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.ai-page-resource-link:hover {
  color: var(--color-orange-light);
}

/* Closing CTA */
.ai-page-cta {
  position: relative;
  background: var(--color-navy);
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ai-page-cta-bg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 0;
}

.ai-page-cta-bg-img {
  width: 100%;
  height: auto;
}

.ai-page-cta-content {
  position: relative;
  z-index: 1;
  padding-top: 5rem;
  padding-bottom: 5rem;
  text-align: center;
}

.ai-page-cta-content .ai-page-section-title {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* AI Page Responsive — 768px */
@media (width <= 768px) {
  .ai-page-hero {
    min-height: auto;
    padding: 8rem 0 3rem;
  }

  .ai-page-capabilities-grid {
    grid-template-columns: 1fr;
  }

  .ai-page-projects-grid {
    grid-template-columns: 1fr;
  }

  .ai-page-resources-grid {
    grid-template-columns: 1fr;
  }

  .ai-page-cta {
    min-height: 400px;
  }
}

/* AI Page Responsive — 480px */
@media (width <= 480px) {
  .ai-page-hero {
    padding: 7rem 0 2.5rem;
  }

  .ai-page-hero-content {
    padding-top: 0;
  }

  .ai-page-philosophy {
    padding: 3rem 0;
  }

  .ai-page-capabilities,
  .ai-page-projects,
  .ai-page-resources {
    padding: 3rem 0;
  }

  .ai-page-cta {
    min-height: 300px;
  }
}

/* ==========================================================================
   Story Editorial System
   Reusable long-form storytelling design system.
   Use .story-* classes for any editorial narrative page.
   ========================================================================== */

/* --- Story Hero --- */
.story-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-navy);
  overflow: hidden;
}

.story-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.story-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.story-hero-bg-img {
      position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: auto;
    opacity: 0.2;
}

.story-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

.story-hero-back {
  display: inline-block;
  color: var(--color-orange);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 2.5rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.story-hero-back:hover {
  opacity: 0.8;
}

.story-hero-wordmark {
  display: block;
  max-width: 180px;
  margin: 0 auto 2.5rem;
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
}

.story-hero-wordmark-text {
  display: block;
  margin: 0 auto 2.5rem;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.story-hero-title {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 400;
  color: var(--color-white);
  line-height: var(--leading-tight);
  margin-bottom: 1.5rem;
}

.story-hero-subtitle {
  font-size: var(--text-narrative);
  font-weight: 300;
  color: rgb(255 255 255 / 85%);
  line-height: var(--leading-narrative);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.story-hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 3rem;
  max-width: 600px;
}

.story-hero-tag {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgb(255 255 255 / 85%);
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  letter-spacing: 0.02em;
}

.story-hero-scroll {
  display: block;
  color: rgb(255 255 255 / 60%);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: story-scroll-hint 2s ease-in-out infinite;
}

.story-hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 32px;
  background: rgb(255 255 255 / 40%);
  margin: 0.75rem auto 0;
  opacity: 0.4;
}

@keyframes story-scroll-hint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* --- Story Sections --- */
.story-section {
  padding: var(--story-section-padding) 1.5rem;
}

.story-section--warm {
  background: var(--story-bg-warm);
}

.story-section--light {
  background: var(--color-bg-light);
}

.story-section--dark {
  background: var(--color-navy);
  color: var(--color-white);
}

.story-section--dark .story-section-title {
  color: var(--color-white);
}

/* --- Story Narrow Container --- */
.story-narrow {
  max-width: var(--story-narrow);
  margin: 0 auto;
}

/* --- Story Section Titles --- */
.story-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  color: var(--color-navy);
  line-height: var(--leading-tight);
  margin-bottom: 2rem;
}

/* --- Story Narrative Text --- */
.story-text {
  font-size: var(--text-narrative);
  line-height: var(--leading-narrative);
  color: var(--color-navy-text);
  margin-bottom: 1.5rem;
}

.story-text:last-child {
  margin-bottom: 0;
}

.story-section--dark .story-text {
  color: rgba(255 255 255 / 85%);
}

.story-text--emphasis {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--story-border-subtle);
}

.story-section--dark .story-text--emphasis {
  border-top-color: rgba(255 255 255 / 15%);
}

/* --- Story Beat (section-ending tagline) --- */
.story-beat {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--story-text-secondary);
  letter-spacing: 0.02em;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--story-border-subtle);
}

/* --- Pull Quotes --- */
.story-pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-navy);
  border-left: 4px solid var(--color-orange);
  padding: 1rem 0 1rem 1.5rem;
  margin: 3rem 0 3rem -1rem;
  max-width: calc(var(--story-narrow) + 2rem);
  position: relative;
}

.story-pull-quote p {
  margin: 0;
}

.story-section--light .story-pull-quote {
  color: var(--color-navy);
}

/* --- Story Callout Box --- */
.story-callout {
  background: rgba(0 0 0 / 3%);
  border: 1px solid var(--story-border-subtle);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-navy-text);
}

.story-callout strong {
  display: block;
  font-size: var(--text-lg);
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.story-section--warm .story-callout {
  background: rgba(255 255 255 / 60%);
}

/* --- Dark section overrides for quote/callout/references --- */
.story-section--dark .story-pull-quote,
.story-section--dark .story-pull-quote p {
  color: rgba(255 255 255 / 92%);
}

.story-section--dark .story-pull-quote cite {
  color: rgba(255 255 255 / 70%);
}

.story-section--dark .story-callout {
  background: rgba(255 255 255 / 6%);
  border-color: rgba(255 255 255 / 12%);
  color: rgba(255 255 255 / 85%);
}

.story-section--dark .story-callout strong {
  color: var(--color-white);
}

.story-section--dark .story-text strong,
.story-section--dark .story-text em {
  color: var(--color-white);
}

.story-section--dark .story-text ul,
.story-section--dark .story-text ol,
.story-section--dark ul.story-text,
.story-section--dark ol.story-text {
  color: rgba(255 255 255 / 85%);
}

/* --- Technical Cards (dark variant) --- */
.story-tech-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 3rem auto 0;
}

.story-tech-card {
  background: var(--color-navy-mid);
  border: 1px solid rgba(255 255 255 / 8%);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
}

.story-tech-card-label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.story-tech-card-text {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: rgba(255 255 255 / 75%);
}

/* --- Doorknocking Diagram --- */
.story-diagram {
  max-width: 700px;
  margin: 3.5rem auto;
  padding: 2.5rem 0;
}

.story-diagram-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
}

.story-diagram-node {
  flex: 0 0 auto;
  background: var(--color-navy-mid);
  border: 2px solid var(--color-blue-gray);
  border-radius: var(--radius);
  padding: 1.25rem 1.75rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.story-diagram-node-label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-white);
  white-space: nowrap;
}

.story-diagram-node-sub {
  font-size: 1rem;
  color: var(--color-blue-gray);
  margin-top: 0.25rem;
}

.story-diagram-node--sender {
  animation: story-knock-pulse 8s ease-in-out infinite;
}

@keyframes story-knock-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(206 72 1 / 0%);
    border-color: var(--color-blue-gray);
  }

  10%,
  20% {
    box-shadow: 0 0 0 12px rgba(206 72 1 / 20%);
    border-color: var(--color-orange);
  }

  30% {
    box-shadow: 0 0 0 0 rgba(206 72 1 / 0%);
    border-color: var(--color-blue-gray);
  }
}

.story-diagram-connector {
  flex: 1;
  height: 2px;
  min-width: 60px;
  max-width: 200px;
  position: relative;
  overflow: visible;
}

.story-diagram-connector-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-blue-gray);
  animation: story-connect-flow 8s ease-in-out infinite;
}

@keyframes story-connect-flow {
  0%,
  25% {
    background: var(--color-blue-gray);
    opacity: 0.3;
  }

  35% {
    background: var(--color-blue-gray);
    opacity: 0.6;
  }

  50%,
  90% {
    background: var(--color-orange);
    opacity: 1;
  }

  100% {
    background: var(--color-blue-gray);
    opacity: 0.3;
  }
}

.story-diagram-steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.story-diagram-step {
  text-align: center;
  font-size: 1rem;
  color: var(--color-blue-gray);
  opacity: 0;
  animation: story-step-appear 8s ease-in-out infinite;
}

.story-diagram-step:nth-child(1) { animation-delay: 0.5s; }
.story-diagram-step:nth-child(2) { animation-delay: 2s; }
.story-diagram-step:nth-child(3) { animation-delay: 3.5s; }
.story-diagram-step:nth-child(4) { animation-delay: 5s; }

@keyframes story-step-appear {
  0%,
  5% {
    opacity: 0;
    transform: translateY(4px);
  }

  15%,
  85% {
    opacity: 1;
    transform: translateY(0);
  }

  95%,
  100% {
    opacity: 0;
    transform: translateY(4px);
  }
}

.story-diagram-step-icon {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  display: block;
}

/* --- Stat Callouts --- */
.story-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.story-stat {
  text-align: center;
}

.story-stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--color-orange);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.story-stat-label {
  font-size: var(--text-sm);
  color: var(--story-text-secondary);
  line-height: var(--leading-normal);
}

/* --- Timeline --- */
.story-timeline {
  position: relative;
  margin: 3rem 0 1rem;
  padding-left: 2rem;
}

.story-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--story-border-subtle);
}

.story-timeline-item {
  position: relative;
  padding-bottom: 1.75rem;
  padding-left: 1.5rem;
}

.story-timeline-item:last-child {
  padding-bottom: 0;
}

.story-timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-orange);
  border: 2px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--story-border-subtle);
}

.story-timeline-date {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-orange);
  letter-spacing: 0.02em;
}

.story-timeline-desc {
  font-size: var(--text-base);
  color: var(--color-navy-text);
  line-height: var(--leading-relaxed);
  margin-top: 0.25rem;
}

/* --- Founder Reflection --- */
.story-founder {
  padding: var(--story-section-padding) 1.5rem;
  background: var(--story-bg-warm);
  border-top: 8px solid var(--color-orange);
}

.story-founder-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
}

.story-founder-photo-col {
  text-align: center;
}

.story-founder-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.25rem;
}

.story-founder-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}

.story-founder-role {
  font-size: var(--text-sm);
  color: var(--story-text-secondary);
  line-height: var(--leading-relaxed);
}

.story-founder-quote {
  font-size: var(--text-lg);
  line-height: var(--leading-narrative);
  color: var(--color-navy-text);
  font-style: italic;
  position: relative;
  padding-top: 0.5rem;
}

.story-founder-quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--color-orange);
  position: absolute;
  top: -0.75rem;
  left: -0.25rem;
  line-height: 1;
  opacity: 0.3;
}

/* --- Story CTA --- */
.story-cta {
  position: relative;
  background: var(--color-navy);
  padding: var(--story-section-padding) 1.5rem;
  text-align: center;
  overflow: hidden;
}

.story-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255 255 255 / 3%) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.story-cta-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.story-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  color: var(--color-white);
  line-height: var(--leading-tight);
  margin-bottom: 1rem;
}

.story-cta-text {
  font-size: var(--text-narrative);
  color: var(--color-blue-gray);
  margin-bottom: 2rem;
}

/* --- Footnote References --- */
.story-ref {
  font-size: 0.7em;
  vertical-align: super;
  line-height: 0;
  color: var(--color-orange);
  text-decoration: none;
  font-weight: 700;
  margin-left: 1px;
}

.story-ref:hover {
  text-decoration: underline;
}

.story-section--dark .story-ref {
  color: var(--color-orange);
}

.story-references {
  max-width: var(--story-narrow);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--story-border-subtle);
}

.story-references-title {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--story-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.story-references ol {
  list-style: none;
  counter-reset: ref-counter;
  padding: 0;
  margin: 0;
}

.story-references li {
  counter-increment: ref-counter;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--story-text-secondary);
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.story-references li::before {
  content: counter(ref-counter);
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--color-orange);
  font-size: 1rem;
}

.story-references a {
  color: var(--story-text-secondary);
  text-decoration-color: var(--story-border-subtle);
  text-underline-offset: 2px;
  word-break: break-all;
}

.story-references a:hover {
  color: var(--color-navy);
  text-decoration-color: var(--color-orange);
}

/* --- Scroll Animations --- */
.story-section,
.story-founder {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.story-section.story-visible,
.story-founder.story-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Story Responsive — Tablet --- */
@media (width <= 768px) {
  .story-hero {
    min-height: 85vh;
  }

  .story-hero-content {
    padding: 5rem 1.5rem 3rem;
  }

  .story-section {
    padding: 80px 1.5rem;
  }

  .story-tech-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .story-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-founder-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .story-founder-quote::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .story-founder {
    padding: 80px 1.5rem;
  }

  .story-cta {
    padding: 80px 1.5rem;
  }

  .story-diagram-flow {
    flex-direction: column;
    gap: 0;
  }

  .story-diagram-connector {
    width: 2px;
    height: 40px;
    min-width: unset;
    max-width: unset;
  }

  .story-diagram-connector-line {
    width: 2px;
    height: 100%;
    right: unset;
  }

  .story-diagram-steps {
    flex-direction: column;
    gap: 0.75rem;
  }

  .story-pull-quote {
    margin-left: 0;
  }
}

/* --- Story Responsive — Mobile --- */
@media (width <= 480px) {
  .story-hero {
    min-height: 80vh;
  }

  .story-hero-wordmark {
    max-width: 120px;
  }

  .story-hero-subtitle {
    font-size: var(--text-base);
  }

  .story-hero-tag {
    font-size: 1rem;
    padding: 0.25rem 0.75rem;
  }

  .story-section {
    padding: 60px 1rem;
  }

  .story-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .story-founder-photo {
    width: 140px;
    height: 140px;
  }

  .story-founder-quote {
    font-size: var(--text-base);
  }

  .story-callout {
    padding: 1.25rem;
  }

  .story-timeline {
    padding-left: 1.5rem;
  }

  .story-timeline-item {
    padding-left: 1rem;
  }
}

/* --- Publishing Pipeline Diagram (fan-out variant) --- */
.story-pipeline {
  max-width: 800px;
  margin: 3.5rem auto;
  padding: 2.5rem 1rem;
}

.story-pipeline-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.story-pipeline-source,
.story-pipeline-hub,
.story-pipeline-output {
  flex: 0 0 auto;
  background: var(--color-navy-mid);
  border: 2px solid var(--color-blue-gray);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.story-pipeline-hub {
  border-color: var(--color-orange);
  background: rgba(206 72 1 / 15%);
}

.story-pipeline-node-label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-white);
  white-space: nowrap;
}

.story-pipeline-node-sub {
  font-size: 1rem;
  color: var(--color-blue-gray);
  margin-top: 0.25rem;
}

.story-pipeline-hub .story-pipeline-node-label {
  color: var(--color-orange);
}

.story-pipeline-arrow {
  flex: 0 0 40px;
  height: 2px;
  background: var(--color-blue-gray);
  position: relative;
}

.story-pipeline-arrow::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -4px;
  border: 5px solid transparent;
  border-left-color: var(--color-blue-gray);
}

.story-pipeline-arrow--active {
  background: var(--color-orange);
  animation: story-pipeline-pulse 3s ease-in-out infinite;
}

.story-pipeline-arrow--active::after {
  border-left-color: var(--color-orange);
}

@keyframes story-pipeline-pulse {
  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.story-pipeline-outputs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-left: -1px;
}

.story-pipeline-output {
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255 255 255 / 85%);
  border-color: rgba(255 255 255 / 12%);
  white-space: nowrap;
  opacity: 0;
  animation: story-pipeline-fan 4s ease-in-out infinite;
}

.story-pipeline-output:nth-child(1) { animation-delay: 0s; }
.story-pipeline-output:nth-child(2) { animation-delay: 0.3s; }
.story-pipeline-output:nth-child(3) { animation-delay: 0.6s; }
.story-pipeline-output:nth-child(4) { animation-delay: 0.9s; }
.story-pipeline-output:nth-child(5) { animation-delay: 1.2s; }

@keyframes story-pipeline-fan {
  0%,
  10% {
    opacity: 0;
    transform: translateX(-8px);
  }

  25%,
  85% {
    opacity: 1;
    transform: translateX(0);
  }

  95%,
  100% {
    opacity: 0;
    transform: translateX(-8px);
  }
}

.story-pipeline-fan-arrow {
  flex: 0 0 30px;
  position: relative;
}

.story-pipeline-fan-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.story-pipeline-fan-line {
  position: absolute;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--color-blue-gray);
  opacity: 0.4;
}

.story-pipeline-fan-line::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -3px;
  border: 4px solid transparent;
  border-left-color: var(--color-blue-gray);
}

@media (width <= 768px) {
  .story-pipeline-flow {
    flex-direction: column;
    gap: 0;
  }

  .story-pipeline-arrow {
    width: 2px;
    height: 30px;
    flex: 0 0 30px;
  }

  .story-pipeline-arrow::after {
    right: unset;
    top: unset;
    bottom: -1px;
    left: -4px;
    border: 5px solid transparent;
    border-top-color: var(--color-blue-gray);
    border-left-color: transparent;
  }

  .story-pipeline-arrow--active::after {
    border-top-color: var(--color-orange);
    border-left-color: transparent;
  }

  .story-pipeline-outputs {
    margin-left: 0;
    flex-flow: row wrap;
    justify-content: center;
    gap: 0.4rem;
  }

  .story-pipeline-fan-arrow {
    display: none;
  }
}

@media (width <= 480px) {
  .story-pipeline-output {
    font-size: 1rem;
    padding: 0.4rem 0.75rem;
  }
}

/* ==========================================================================
   Story Visual Mockups & Illustrations
   CSS-only interface mockups, diagrams, and visual breaks for story pages.
   ========================================================================== */

/* --- Browser Window Mockup --- */
.story-browser {
  max-width: 720px;
  margin: 3rem auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0 19 50 / 18%), 0 2px 8px rgba(0 19 50 / 8%);
}

.story-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-navy);
  padding: 0.75rem 1rem;
}

.story-browser-dots {
  display: flex;
  gap: 6px;
}

.story-browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255 255 255 / 15%);
}

.story-browser-dots span:first-child { background: #ff5f57; }
.story-browser-dots span:nth-child(2) { background: #febc2e; }
.story-browser-dots span:nth-child(3) { background: #28c840; }

.story-browser-url {
  flex: 1;
  background: rgba(255 255 255 / 8%);
  border-radius: 4px;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--color-blue-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-browser-body {
  background: #f8fafc;
  padding: 1.5rem;
  min-height: 280px;
}

/* --- Browser: LCMS Dashboard Mockup (OpenSciEd) --- */
.mockup-lcms {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  font-family: var(--font-body);
}

.mockup-lcms-sidebar {
  background: var(--color-navy);
  border-radius: 6px;
  padding: 1rem;
}

.mockup-lcms-sidebar-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.mockup-lcms-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  font-size: 1rem;
  color: rgba(255 255 255 / 60%);
  margin-bottom: 0.25rem;
}

.mockup-lcms-nav-item--active {
  background: rgba(206 72 1 / 15%);
  color: var(--color-orange);
}

.mockup-lcms-nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentcolor;
  opacity: 0.5;
}

.mockup-lcms-nav-item--active .mockup-lcms-nav-dot {
  opacity: 1;
}

.mockup-lcms-main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mockup-lcms-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-lcms-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
}

.mockup-lcms-badge {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  background: rgba(40 200 64 / 12%);
  color: #16a34a;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.mockup-lcms-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
}

.mockup-lcms-row-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.mockup-lcms-row-icon--doc {
  background: #e8f5e9;
  color: #2e7d32;
}

.mockup-lcms-row-icon--pdf {
  background: #fce4ec;
  color: #c62828;
}

.mockup-lcms-row-icon--lms {
  background: #e3f2fd;
  color: #1565c0;
}

.mockup-lcms-row-text {
  flex: 1;
  min-width: 0;
}

.mockup-lcms-row-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
}

.mockup-lcms-row-meta {
  font-size: 1rem;
  color: #94a3b8;
  margin-top: 1px;
}

.mockup-lcms-row-status {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: #e2e8f0;
  overflow: hidden;
  flex-shrink: 0;
}

.mockup-lcms-row-status-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--color-orange);
}

/* --- Browser: xTRA Interface Mockup (Credential Engine) --- */
.mockup-xtra {
  font-family: var(--font-body);
}

.mockup-xtra-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.mockup-xtra-toolbar-btn {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  background: var(--color-navy);
  color: white;
}

.mockup-xtra-toolbar-btn--outline {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid #cbd5e1;
}

.mockup-xtra-toolbar-spacer { flex: 1; }

.mockup-xtra-toolbar-status {
  font-size: 1rem;
  color: #16a34a;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mockup-xtra-toolbar-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
}

.mockup-xtra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.mockup-xtra-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.75rem;
}

.mockup-xtra-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.mockup-xtra-card-url {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.mockup-xtra-card-badge {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

.mockup-xtra-card-badge--done {
  background: rgba(40 200 64 / 12%);
  color: #16a34a;
}

.mockup-xtra-card-badge--running {
  background: rgba(206 72 1 / 12%);
  color: var(--color-orange);
}

.mockup-xtra-card-rows {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mockup-xtra-field {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
}

.mockup-xtra-field-key {
  color: #94a3b8;
}

.mockup-xtra-field-val {
  color: var(--color-navy);
  font-weight: 600;
}

/* --- Phone Mockup (Noggin) --- */
.story-phone {
  width: 240px;
  margin: 3rem auto;
  position: relative;
}

.story-phone-frame {
  background: #1a1a2e;
  border-radius: 28px;
  padding: 12px;
  box-shadow: 0 8px 40px rgba(0 0 0 / 25%), inset 0 0 0 2px rgba(255 255 255 / 8%);
}

.story-phone-notch {
  width: 80px;
  height: 20px;
  background: #1a1a2e;
  border-radius: 0 0 12px 12px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  margin-top: -12px;
  margin-bottom: -8px;
}

.story-phone-screen {
  background: #2a1f4e;
  border-radius: 18px;
  overflow: hidden;
  min-height: 380px;
  position: relative;
}

/* --- Phone: Noggin App Content --- */
.mockup-noggin {
  padding: 1rem;
  font-family: var(--font-body);
  color: white;
}

.mockup-noggin-greeting {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.mockup-noggin-sub {
  font-size: 1rem;
  color: rgba(255 255 255 / 60%);
  margin-bottom: 1rem;
}

.mockup-noggin-card {
  background: rgba(255 255 255 / 10%);
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  backdrop-filter: blur(8px);
}

.mockup-noggin-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fbbf24;
}

.mockup-noggin-activity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
}

.mockup-noggin-activity-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.mockup-noggin-activity-icon--video { background: rgba(255 100 100 / 30%); }
.mockup-noggin-activity-icon--game { background: rgba(100 200 255 / 30%); }
.mockup-noggin-activity-icon--story { background: rgba(100 255 150 / 30%); }

.mockup-noggin-activity-text {
  font-size: 1rem;
  color: rgba(255 255 255 / 85%);
}

.mockup-noggin-activity-text strong {
  display: block;
  font-size: 1rem;
  color: white;
}

.mockup-noggin-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.mockup-noggin-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255 255 255 / 15%);
  border-radius: 3px;
  overflow: hidden;
}

.mockup-noggin-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #f97316);
  border-radius: 3px;
  width: 65%;
}

.mockup-noggin-progress-text {
  font-size: 1rem;
  color: rgba(255 255 255 / 50%);
}

.mockup-noggin-nav {
  display: flex;
  justify-content: space-around;
  padding: 0.6rem 0;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255 255 255 / 10%);
}

.mockup-noggin-nav-item {
  text-align: center;
  font-size: 1rem;
  color: rgba(255 255 255 / 40%);
}

.mockup-noggin-nav-item--active {
  color: #fbbf24;
}

.mockup-noggin-nav-item span {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

/* --- Showcase Layout (text + visual side by side) --- */
.story-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 960px;
  margin: 3rem auto;
}

.story-showcase--reverse {
  direction: rtl;
}

.story-showcase--reverse > * {
  direction: ltr;
}

.story-showcase-text {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-navy-text);
}

.story-showcase-text h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.story-showcase-text p {
  margin-bottom: 0.75rem;
}

.story-showcase-text p:last-child {
  margin-bottom: 0;
}

.story-section--dark .story-showcase-text {
  color: rgba(255 255 255 / 85%);
}

.story-section--dark .story-showcase-text h3 {
  color: var(--color-white);
}

/* --- Platform Grid (Noggin multi-platform) --- */
.story-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  max-width: 640px;
  margin: 2.5rem auto;
}

.story-platform-item {
  text-align: center;
  padding: 1rem 0.5rem;
  background: rgba(255 255 255 / 6%);
  border: 1px solid rgba(255 255 255 / 10%);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.story-platform-item:hover {
  border-color: var(--color-orange);
}

.story-platform-icon {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  display: block;
}

.story-platform-name {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255 255 255 / 70%);
  letter-spacing: 0.02em;
}

/* --- Chat Mockup (ISTE) --- */
.story-chat {
  max-width: 480px;
  margin: 3rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0 19 50 / 15%);
}

.story-chat-header {
  background: var(--color-navy);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.story-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
  font-weight: 700;
}

.story-chat-header-text {
  flex: 1;
}

.story-chat-header-name {
  font-size: 1rem;
  font-weight: 700;
  color: white;
}

.story-chat-header-status {
  font-size: 1rem;
  color: #4ade80;
}

.story-chat-body {
  background: #f1f5f9;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 260px;
}

.story-chat-msg {
  max-width: 80%;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.5;
}

.story-chat-msg--user {
  align-self: flex-end;
  background: var(--color-navy);
  color: white;
  border-bottom-right-radius: 4px;
}

.story-chat-msg--bot {
  align-self: flex-start;
  background: white;
  color: var(--color-navy);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0 0 0 / 6%);
}

.story-chat-msg--bot strong {
  color: var(--color-orange);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.25rem;
}

.story-chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 0.6rem 0.85rem;
  background: white;
  border-radius: 12px;
  border-bottom-left-radius: 4px;
}

.story-chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  animation: story-chat-dot 1.4s ease-in-out infinite;
}

.story-chat-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.story-chat-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes story-chat-dot {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.story-chat-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 0.75rem 1rem;
  border-top: 1px solid #e2e8f0;
}

.story-chat-input-field {
  flex: 1;
  font-size: 1rem;
  color: #94a3b8;
}

.story-chat-input-send {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-chat-input-send svg {
  width: 14px;
  height: 14px;
  fill: white;
}

/* --- Terminal/Code Window Mockup --- */
.story-terminal {
  max-width: 640px;
  margin: 3rem auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0 0 0 / 20%);
}

.story-terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #1e293b;
  padding: 0.6rem 1rem;
}

.story-terminal-bar .story-browser-dots span:first-child { background: #ff5f57; }
.story-terminal-bar .story-browser-dots span:nth-child(2) { background: #febc2e; }
.story-terminal-bar .story-browser-dots span:nth-child(3) { background: #28c840; }

.story-terminal-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: #64748b;
}

.story-terminal-body {
  background: #0f172a;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.7;
  color: #94a3b8;
  min-height: 180px;
}

.story-terminal-line {
  margin-bottom: 0.25rem;
}

.story-terminal-prompt {
  color: #4ade80;
}

.story-terminal-cmd {
  color: #e2e8f0;
}

.story-terminal-comment {
  color: #475569;
}

.story-terminal-highlight {
  color: var(--color-orange);
}

.story-terminal-success {
  color: #4ade80;
}

/* --- Architecture Diagram (enhanced) --- */
.story-architecture {
  max-width: 700px;
  margin: 3rem auto;
  padding: 2rem;
  background: var(--color-navy);
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0 19 50 / 15%);
}

.story-architecture-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 1.5rem;
}

.story-architecture-layers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.story-architecture-layer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255 255 255 / 4%);
  border: 1px solid rgba(255 255 255 / 8%);
  border-radius: 6px;
  border-left: 3px solid var(--color-orange);
}

.story-architecture-layer-label {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-orange);
  min-width: 90px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.story-architecture-layer-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.story-architecture-item {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: rgba(255 255 255 / 70%);
  background: rgba(255 255 255 / 6%);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  white-space: nowrap;
}

/* --- Dashboard Mockup (SSDN Admin) --- */
.mockup-admin {
  font-family: var(--font-body);
}

.mockup-admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.mockup-admin-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
}

.mockup-admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1rem;
}

.mockup-admin-tab {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  color: #94a3b8;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.mockup-admin-tab--active {
  color: var(--color-navy);
  border-bottom-color: var(--color-orange);
}

.mockup-admin-table {
  width: 100%;
  border-collapse: collapse;
}

.mockup-admin-table th {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.mockup-admin-table td {
  font-size: 1rem;
  color: var(--color-navy);
  padding: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.mockup-admin-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1rem;
  font-weight: 600;
}

.mockup-admin-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.mockup-admin-status--active { color: #16a34a; }
.mockup-admin-status--active::before { background: #16a34a; }

.mockup-admin-status--pending { color: #eab308; }
.mockup-admin-status--pending::before { background: #eab308; }

.mockup-admin-status--rejected { color: #dc2626; }
.mockup-admin-status--rejected::before { background: #dc2626; }

/* --- Credential Registry Mockup --- */
.mockup-registry {
  font-family: var(--font-body);
}

.mockup-registry-search {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mockup-registry-search-input {
  flex: 1;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  color: #94a3b8;
}

.mockup-registry-search-btn {
  background: var(--color-navy);
  color: white;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
}

.mockup-registry-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mockup-registry-filter {
  font-size: 1rem;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  background: #f1f5f9;
  color: #64748b;
}

.mockup-registry-filter--active {
  background: var(--color-navy);
  color: white;
}

.mockup-registry-results {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mockup-registry-result {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.75rem;
}

.mockup-registry-result-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}

.mockup-registry-result-provider {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.mockup-registry-result-tags {
  display: flex;
  gap: 0.3rem;
}

.mockup-registry-result-tag {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  background: rgba(206 72 1 / 8%);
  color: var(--color-orange);
}

/* --- Visual Break / Accent Strip --- */
.story-visual-break {
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.story-visual-break--navy {
  background: var(--color-navy);
}

.story-visual-break-label {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.story-visual-break-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: rgba(255 255 255 / 90%);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.4;
}

/* --- Responsive: Mockups --- */
@media (width <= 768px) {
  .mockup-lcms {
    grid-template-columns: 1fr;
  }

  .mockup-lcms-sidebar {
    display: none;
  }

  .mockup-xtra-grid {
    grid-template-columns: 1fr;
  }

  .story-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .story-showcase--reverse {
    direction: ltr;
  }

  .story-phone {
    width: 200px;
  }

  .story-platform-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .story-architecture-layer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .story-architecture-layer-label {
    min-width: unset;
  }

  .mockup-admin-table th:nth-child(3),
  .mockup-admin-table td:nth-child(3) {
    display: none;
  }
}

@media (width <= 480px) {
  .story-browser {
    margin: 2rem -0.5rem;
    border-radius: 8px;
  }

  .story-browser-body {
    padding: 1rem;
    min-height: 200px;
  }

  .story-chat {
    margin: 2rem -0.5rem;
    border-radius: 8px;
  }

  .story-terminal {
    margin: 2rem -0.5rem;
    border-radius: 6px;
  }

  .story-architecture {
    margin: 2rem -0.5rem;
    padding: 1.25rem;
    border-radius: 6px;
  }

  .story-platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-chat-typing span {
    animation: none;
    opacity: 0.4;
  }
}

/* ==========================================================================
   V3 Design System — Homepage & New Pages
   ========================================================================== */

/* ─── V3 Hero ─── */
.v3-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-navy);
  padding: 11.5rem 0 8.25rem;
}

.v3-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem;
}

.v3-hero-descriptor {
  font-size: .95rem;
  color: var(--color-blue-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  width: 100%;
  text-align: center;
  margin: 0;
}

.v3-hero-descriptor span {
  color: var(--color-blue-muted);
}

.v3-hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  color: #ffd0b3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-orange);
}

.v3-hero-eyebrow span {
  color: rgb(255 255 255 / 35%);
  margin: 0 0.4em;
}

.v3-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--color-white);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.v3-hero-sub {
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.v3-hero-ctas {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.btn--ghost-navy {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: var(--text-base);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn--ghost-navy:hover {
  border-color: #4a6a8d;
  color: #c0d0e0;
}

/* ─── V3 Proof Bar ─── */
.v3-proof-bar {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
  background: #001a3f;
  background-image: linear-gradient(180deg, #00112c 0%, #001a3f 100%);
  border-top: 1px solid rgb(255 255 255 / 6%);
  flex-wrap: wrap;
  column-gap: 4.5rem;
  row-gap: 2rem;
}

.v3-proof-item {
  text-align: center;
  position: relative;
  padding-top: 0.5rem;
}

.v3-proof-item::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-orange);
  margin: 0 auto 0.65rem;
  border-radius: 2px;
}

.v3-proof-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.v3-proof-label {
  font-size: 0.78rem;
  color: rgb(255 255 255 / 70%);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
}

/* ─── V3 Convictions ─── */
.v3-convictions {
  padding: 6.25rem 2rem;
  background: var(--color-cream);
}

.v3-convictions-inner {
  max-width: 920px;
  margin: 0 auto;
}

.v3-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--color-navy);
  line-height: 1.15;
  margin-bottom: 0.625rem;
}

.v3-section-sub {
  font-size: 1.1rem;
  color: #595959;
  margin-bottom: 3.5rem;
  max-width: 520px;
}

.v3-conv-rows {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 20px rgb(0 0 0 / 6%);
}

.v3-conv-row {
  display: grid;
  grid-template-columns: 130px 1fr 1fr;
  background: var(--color-white);
  min-height: 190px;
  border-bottom: 1px solid #f0ede8;
}

.v3-conv-row:last-child {
  border-bottom: none;
}

.v3-conv-num-col {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.v3-conv-row:nth-child(1) .v3-conv-num-col { background: #f4f8fc; }
.v3-conv-row:nth-child(2) .v3-conv-num-col { background: #fef5ef; }
.v3-conv-row:nth-child(3) .v3-conv-num-col { background: #f2f6f0; }
.v3-conv-row:nth-child(4) .v3-conv-num-col { background: #f7f3ed; }

.v3-conv-big-num {
  font-size: 4.5rem;
  font-weight: 900;
  color: rgb(0 19 50 / 4%);
  line-height: 1;
  position: relative;
  z-index: 1;
}

.v3-conv-icon {
  position: absolute;
  z-index: 2;
}

.v3-conv-row:nth-child(1) .v3-conv-icon { color: var(--color-thread-consulting); }
.v3-conv-row:nth-child(2) .v3-conv-icon { color: var(--color-orange); }
.v3-conv-row:nth-child(3) .v3-conv-icon { color: var(--color-thread-build); }
.v3-conv-row:nth-child(4) .v3-conv-icon { color: var(--color-thread-open); }

.v3-conv-belief-col {
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid #f0ede8;
}

.v3-conv-belief {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-navy);
  line-height: 1.3;
}

.v3-conv-proof-col {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.v3-conv-proof {
  font-size: 1rem;
  color: #6a6a78;
  line-height: 1.7;
}

.v3-conv-evidence {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-orange);
  margin-top: 0.625rem;
  display: block;
}

.v3-section-link {
  display: inline-block;
  margin-top: 2.5rem;
  color: var(--color-orange);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.v3-section-link:hover {
  border-bottom-color: var(--color-orange);
}

/* ─── V3 After Teaser ─── */
.v3-after {
  padding: 6.25rem 2rem;
  background: var(--color-warm-gray);
}

.v3-after-inner {
  max-width: 920px;
  margin: 0 auto;
}

.v3-story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.v3-story-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 12px rgb(0 0 0 / 4%);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.v3-story-card:hover {
  box-shadow: 0 8px 24px rgb(0 0 0 / 8%);
  transform: translateY(-2px);
}

.v3-story-duration {
  font-size: 0.875rem;
  font-weight: 700;
  color: #767676;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.875rem;
}

.v3-story-impact {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.v3-story-desc {
  font-size: 1rem;
  color: #6a6a78;
  line-height: 1.55;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.v3-story-link {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-orange);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
  align-self: flex-start;
}

.v3-story-link:hover {
  border-bottom-color: var(--color-orange);
}

/* ─── V3 CTA Section ─── */
.v3-cta {
  position: relative;
  overflow: hidden;
  padding: 6.25rem 2rem;
  background: var(--color-navy);
  background-image: url('../images/ai-bg.png');
  background-size: cover;
  background-position: center right;
  text-align: center;
}

.v3-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(0 19 50 / 62%);
  z-index: 0;
}

.v3-cta > * {
  position: relative;
  z-index: 1;
}

.v3-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--color-white);
  margin-bottom: 1rem;
}

.v3-cta p {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 2.25rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.v3-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.btn-caret {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 1.5em;
  line-height: 1;
  transform: translateY(-1px);
}

/* ─── V3 Responsive ─── */
@media (width <= 768px) {
  .v3-proof-bar {
    gap: 2rem;
  }

  .v3-conv-row {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
  }

  .v3-conv-num-col {
    grid-row: 1 / 3;
  }

  .v3-conv-belief-col {
    border-right: none;
    padding-bottom: 0.75rem;
  }

  .v3-conv-proof-col {
    padding-top: 0;
  }

  .v3-story-grid {
    grid-template-columns: 1fr;
  }
}

@media (width <= 480px) {
  .v3-conv-row {
    grid-template-columns: 1fr;
  }

  .v3-conv-num-col {
    grid-row: auto;
    min-height: 80px;
  }
}

/* ─── V3 Lead Hero (secondary pages) ─── */
.v3-lead-hero {
  background: var(--color-navy);
  padding: 5rem 0 4rem;
}

.v3-lead-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem;
}

.v3-lead-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.v3-lead-hero-sub {
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.65;
  max-width: 600px;
}

/* ─── V3 Conviction extensions (convictions 5-7 color cycling) ─── */
.v3-conv-row:nth-child(5) .v3-conv-num-col { background: #f4f8fc; }
.v3-conv-row:nth-child(6) .v3-conv-num-col { background: #fef5ef; }
.v3-conv-row:nth-child(7) .v3-conv-num-col { background: #f2f6f0; }

.v3-conv-row:nth-child(5) .v3-conv-icon { color: var(--color-thread-consulting); }
.v3-conv-row:nth-child(6) .v3-conv-icon { color: var(--color-orange); }
.v3-conv-row:nth-child(7) .v3-conv-icon { color: var(--color-thread-build); }

/* ─── V3 Mini Case Study block (inside conviction proof column) ─── */
.v3-conv-case {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  background: var(--color-cream);
  border-left: 3px solid var(--color-orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1rem;
  color: #5a5a68;
  line-height: 1.6;
}

.v3-conv-case a {
  color: var(--color-orange);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.v3-conv-case a:hover {
  border-bottom-color: var(--color-orange);
}

/* ─── V3 Failure Patterns section ─── */
.v3-failure {
  padding: 6.25rem 2rem;
  background: var(--color-navy);
}

.v3-failure-inner {
  max-width: 920px;
  margin: 0 auto;
}

.v3-failure h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.v3-failure-intro {
  font-size: 1rem;
  color: #5b7a9d;
  margin-bottom: 3rem;
  max-width: 520px;
}

.v3-failure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.v3-failure-card {
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.v3-failure-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.v3-failure-card p {
  font-size: 1rem;
  color: #fff;
  line-height: 1.65;
}

@media (width <= 768px) {
  .v3-failure-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── V3 Thread Sections (after.html) ─── */
.v3-thread {
  padding: 5rem 2rem;
}

.v3-thread:nth-child(even) {
  background: var(--color-warm-gray);
}

.v3-thread:nth-child(odd) {
  background: var(--color-cream);
}

.v3-thread-inner {
  max-width: 920px;
  margin: 0 auto;
}

.v3-thread-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid currentcolor;
}

.v3-thread-label--consulting { color: var(--color-thread-consulting); }
.v3-thread-label--innovate { color: var(--color-orange); }
.v3-thread-label--build { color: var(--color-thread-build); }
.v3-thread-label--opensource { color: var(--color-thread-open); }

/* Featured story card */
.v3-featured-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  box-shadow: 0 2px 16px rgb(0 0 0 / 5%);
  margin-bottom: 1.5rem;
}

.v3-featured-client {
  height: 36px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 1.25rem;
  display: block;
}

.v3-featured-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-navy);
  line-height: 1.25;
  margin-bottom: 0.875rem;
}

.v3-featured-desc {
  font-size: 1rem;
  color: #5a5a68;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.v3-featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.v3-tag {
  font-size: 1rem;
  font-weight: 700;
  color: #6a6a78;
  background: #f0ede8;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.v3-featured-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.v3-stat {
  border-left: 3px solid var(--color-orange);
  padding-left: 1rem;
}

.v3-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.v3-stat-label {
  font-size: 1rem;
  color: #888;
  line-height: 1.4;
}

.v3-featured-quote {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--color-cream);
  border-radius: var(--radius);
  font-style: italic;
  font-size: 1rem;
  color: #4a4a58;
  line-height: 1.65;
}

.v3-featured-quote cite {
  display: block;
  margin-top: 0.625rem;
  font-style: normal;
  font-size: 1rem;
  font-weight: 700;
  color: #888;
}

/* Secondary story cards grid */
.v3-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.v3-thread-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 1px 8px rgb(0 0 0 / 4%);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.v3-thread-card:hover {
  box-shadow: 0 6px 20px rgb(0 0 0 / 8%);
  transform: translateY(-2px);
}

.v3-thread-card-client {
  height: 28px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 1rem;
  display: block;
}

.v3-thread-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-navy);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.v3-thread-card p {
  font-size: 1rem;
  color: #6a6a78;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1rem;
}

/* Compact open-source cards */
.v3-compact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.v3-compact-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid #e8e5e0;
  display: flex;
  flex-direction: column;
}

.v3-compact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.v3-compact-card p {
  font-size: 1rem;
  color: #6a6a78;
  line-height: 1.55;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.v3-compact-link {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-orange);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  align-self: flex-start;
}

.v3-compact-link:hover {
  border-bottom-color: var(--color-orange);
}

/* after.html responsive */
@media (width <= 900px) {
  .v3-featured-card {
    grid-template-columns: 1fr;
  }
}

@media (width <= 768px) {
  .v3-cards-grid,
  .v3-compact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (width <= 480px) {
  .v3-cards-grid,
  .v3-compact-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── V3 Hero Video Overrides ─── */
.v3-hero .hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  right: unset;
  object-fit: cover;
}

.v3-hero .hero-bg-img--fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v3-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgb(0 19 50 / 88%) 45%, rgb(0 19 50 / 18%) 100%);
  z-index: 1;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .v3-hero .hero-bg-video {
    display: none !important;
  }
}

/* ─── V3 Illustration Break ─── */
.v3-illus {
  padding: 0;
  text-align: center;
}

.v3-illus-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.v3-illus-img {
  width: clamp(640px, 95vw, 1100px);
  height: auto;
  display: block;
  margin: -2vw auto -6rem;
  opacity: 0;
  transition: opacity 0.55s ease;
  will-change: transform;
}

.v3-illus-img.v3-illus--visible {
  opacity: 1;
}

.v3-illus-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.7rem);
  color: var(--color-navy);
  font-style: italic;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .v3-illus-img {
    opacity: 1;
    transition: none;
  }
}

@media (width <= 768px) {
  .v3-illus-img {
    width: 95vw;
    min-width: unset;
    margin-top: -3vw;
    margin-bottom: -2rem;
  }
}

/* ─── V3 Conviction Cards (flip) ─── */
.v3-conv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

/* Flip container — needs fixed height so the 3D effect has room */
.v3-conv-card {
  perspective: 1000px;
  height: 260px;
  cursor: pointer;
  border-radius: var(--radius);
}

.v3-conv-card:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 3px;
}

/* Inner wrapper rotates */
.v3-conv-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
  border-radius: var(--radius);
}

.v3-conv-card--flipped .v3-conv-card-inner {
  transform: rotateY(180deg);
}

@media (hover: hover) and (pointer: fine) {
  .v3-conv-card:hover .v3-conv-card-inner,
  .v3-conv-card:focus-visible .v3-conv-card-inner {
    transform: rotateY(180deg);
  }
}

/* Shared face styles */
.v3-conv-card-front,
.v3-conv-card-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  backface-visibility: hidden;
  overflow: hidden;
}

/* Front face */
.v3-conv-card-front {
  background: var(--color-navy);
  display: flex;
  align-items: flex-end;
  padding: 1.75rem 1.75rem 1.5rem;
}

.v3-conv-card-front:hover {
  filter: brightness(1.08);
}

/* Bold icon — decorative background element */
.v3-conv-bg-icon {
  position: absolute;
  bottom: -10px;
  right: -10px;
  color: rgb(255 255 255 / 9%);
  pointer-events: none;
  line-height: 0;
}

.v3-conv-bg-icon svg {
  width: 200px;
  height: 200px;
}

/* Belief text over the icon */
.v3-conv-card-front .v3-conv-belief {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-style: normal;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin: 0;
}

/* Flip hint */
.v3-conv-flip-hint {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgb(255 255 255 / 15%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(255 255 255 / 70%);
  transition: background 0.2s, color 0.2s;
  pointer-events: none;
}

.v3-conv-card:hover .v3-conv-flip-hint {
  background: rgb(255 255 255 / 25%);
  color: #fff;
}

/* Back face */
.v3-conv-card-back {
  background: var(--color-orange);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem 1.75rem 1.5rem;
}

.v3-conv-card-back .v3-conv-proof {
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.35;
  margin: 0 0 1rem;
  flex: 1;
}

.v3-conv-card-back .v3-conv-evidence {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

@media (width <= 768px) {
  .v3-conv-grid {
    grid-template-columns: 1fr;
  }

  .v3-conv-card {
    height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v3-conv-card-inner {
    transition: none;
  }
}

/* ─── V3 Story Card Logo ─── */
.v3-story-logo-wrap {
  margin-bottom: 1.25rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.v3-story-logo {
  max-width: 120px;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

/* ==========================================================================
   V3 Page Hero (shared: before.html, after.html, about.html)
   ========================================================================== */

/* ─── Shared Page Hero ─── */
.v3-page-hero {
  background: var(--color-white);
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 130px;
  overflow: hidden;
}

.v3-page-hero-content {
  text-align: center;
  padding: 2.5rem 2rem 0;
  max-width: 800px;
}

.v3-page-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--color-navy);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.v3-page-hero-content p {
  font-size: 1.15rem;
  color: var(--color-blue-muted);
  line-height: 1.65;
}

/* Override illustration margins when inside page hero */
.v3-page-hero .v3-illus {
  width: 100%;
}

.v3-page-hero .v3-illus-img {
  margin-top: 0;
  margin-bottom: -6rem;
  width: clamp(480px, 80vw, 860px);
}

@media (width <= 768px) {
  .v3-page-hero {
    padding-top: 100px;
  }

  .v3-page-hero .v3-illus-img {
    width: 90vw;
    min-width: unset;
    margin-bottom: -3rem;
  }
}

/* ─── Shared scroll-reveal utility ─── */
.v3-scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.v3-scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .v3-scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   V3 Before You Call Us page
   ========================================================================== */

/* ─── Conviction Sections ─── */
.v3-before-conv {
  padding: 5rem 2rem;
}

.v3-before-conv--dark {
  background: var(--color-navy);
}

.v3-before-conv--light {
  background: var(--color-bg-light);
}

.v3-before-conv-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 3rem;
  align-items: start;
}

.v3-before-conv-num-col {
  position: relative;
  padding-top: 0.5rem;
}

.v3-before-conv-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 10vw, 7.5rem);
  line-height: 1;
  opacity: 0.1;
  color: currentcolor;
  user-select: none;
}

.v3-before-conv--dark .v3-before-conv-num {
  color: var(--color-white);
}

.v3-before-conv--light .v3-before-conv-num {
  color: var(--color-navy);
}

.v3-before-conv-icon {
  position: absolute;
  top: 0.25rem;
  right: 0;
  opacity: 0.45;
  color: var(--color-orange);
}

.v3-before-conv-content {
  padding: 1rem 0;
}

.v3-before-conv-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.v3-before-conv--dark .v3-before-conv-quote {
  color: var(--color-white);
}

.v3-before-conv--light .v3-before-conv-quote {
  color: var(--color-navy);
}

.v3-before-conv-proof {
  font-size: 1rem;
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 0;
}

.v3-before-conv--dark .v3-before-conv-proof {
  color: #aec0d4;
}

.v3-before-conv--light .v3-before-conv-proof {
  color: var(--color-blue-muted);
}

.v3-before-conv-evidence {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-top: 0.85rem;
  color: var(--color-orange);
}

/* Case study callout card */
.v3-before-conv-case {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-orange);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.v3-before-conv--dark .v3-before-conv-case {
  background: rgb(255 255 255 / 6%);
}

.v3-before-conv--light .v3-before-conv-case {
  background: rgb(0 19 50 / 5%);
}

.v3-before-conv-case-logo {
  height: 30px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75;
}

.v3-before-conv--light .v3-before-conv-case-logo {
  filter: none;
  opacity: 1;
}

.v3-before-conv-case-text {
  flex: 1;
}

.v3-before-conv-case-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.v3-before-conv--dark .v3-before-conv-case-tagline {
  color: var(--color-white);
}

.v3-before-conv--light .v3-before-conv-case-tagline {
  color: var(--color-navy);
}

.v3-before-conv-case-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-orange);
}

.v3-before-conv-case-link:hover {
  text-decoration: underline;
}

/* ─── Parallax Image Breaks ─── */
.v3-before-divider {
  height: 300px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.v3-before-divider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(0 19 50 / 60%);
}

/* ─── Failure Patterns (dark interlude) ─── */
.v3-before-failures {
  background: #050a14;
  padding: 5.5rem 2rem;
}

.v3-before-failures-inner {
  max-width: 920px;
  margin: 0 auto;
}

.v3-before-failures h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.v3-before-failures-intro {
  font-size: 1rem;
  color: #5b7a9d;
  margin-bottom: 2.5rem;
}

.v3-before-fail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.v3-before-fail-card {
  position: relative;
  padding: 1.25rem 1.5rem;
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(255 255 255 / 8%);
  border-left: 3px solid var(--color-orange);
  border-radius: var(--radius);
  overflow: hidden;
}

.v3-before-fail-icon {
  color: var(--color-orange);
  display: block;
  margin-bottom: 0.6rem;
}

.v3-before-fail-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-white);
  line-height: 1.4;
}

.v3-before-fail-lesson {
  position: absolute;
  inset: 0;
  background: rgb(206 72 1 / 94%);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: var(--color-white);
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
}

.v3-before-fail-card:hover .v3-before-fail-lesson,
.v3-before-fail-card:focus-within .v3-before-fail-lesson {
  opacity: 1;
}

/* ─── Responsive: before.html ─── */
@media (width <= 768px) {
  .v3-before-conv-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .v3-before-conv-num-col {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .v3-before-conv-num {
    font-size: 3rem;
  }

  .v3-before-conv-icon {
    position: static;
    opacity: 0.6;
  }

  .v3-before-divider {
    height: 200px;
    background-attachment: scroll;
  }

  .v3-before-fail-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   V3 When You Call Us page
   ========================================================================== */

/* ─── Conviction sections with large background icons ─── */
.v3-when-conv {
  position: relative;
  overflow: hidden;
  padding: 5rem 2rem;
}

.v3-when-conv--dark {
  background: var(--color-navy);
}

.v3-when-conv--light {
  background: var(--color-bg-light);
}

/* Large background icon — sits behind content as a graphic element */
.v3-when-conv-bg-icon {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(180px, 28vw, 360px);
  height: auto;
  pointer-events: none;
  user-select: none;
}

.v3-when-conv--dark .v3-when-conv-bg-icon {
  color: rgb(255 255 255 / 5%);
}

.v3-when-conv--light .v3-when-conv-bg-icon {
  color: rgb(0 19 50 / 5%);
}

/* Alternate icon position per section for visual variety */
.v3-when-conv:nth-child(odd) .v3-when-conv-bg-icon {
  right: auto;
  left: -4%;
}

/* Content */
.v3-when-conv-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.v3-when-conv-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.v3-when-conv--dark .v3-when-conv-quote {
  color: var(--color-white);
}

.v3-when-conv--light .v3-when-conv-quote {
  color: var(--color-navy);
}

.v3-when-conv-body {
  font-size: 1rem;
  line-height: 1.75;
  max-width: 640px;
}

.v3-when-conv--dark .v3-when-conv-body {
  color: #aec0d4;
}

.v3-when-conv--light .v3-when-conv-body {
  color: var(--color-blue-muted);
}

/* ─── Responsive: when.html convictions ─── */
@media (width <= 768px) {
  .v3-when-conv-bg-icon {
    width: 140px;
    opacity: 0.6;
  }
}

/* ─── Process section ─── */
.v3-when-process {
  background: var(--color-bg-light);
  padding: 5rem 2rem;
  text-align: center;
}

.v3-when-process h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--color-navy);
  margin-bottom: 2.5rem;
}

.v3-when-process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.v3-when-process-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}

.v3-when-process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-orange);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.v3-when-process-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.v3-when-process-card p {
  font-size: 0.95rem;
  color: var(--color-blue-muted);
  line-height: 1.6;
}

/* ─── Responsive: when.html ─── */
@media (width <= 768px) {
  .v3-when-process-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* ==========================================================================
   V3 After You Call Us page
   ========================================================================== */

/* ─── Search band ─── */
.v3-after-search {
  background: linear-gradient(180deg, #f1f7ff 0%, #e8f0fb 100%);
  border-top: 1px solid rgb(0 19 50 / 6%);
  border-bottom: 1px solid rgb(0 19 50 / 6%);
  padding: 2rem 1.5rem;
}

.v3-after-search-inner {
  max-width: 720px;
  margin: 0 auto;
}

.v3-after-search-bar {
  align-items: center;
  background: #fff;
  border: 1.5px solid rgb(0 19 50 / 12%);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgb(0 19 50 / 4%);
  display: flex;
  gap: 0.625rem;
  padding: 0.5rem 0.875rem 0.5rem 1.125rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.v3-after-search-bar:focus-within {
  border-color: var(--color-orange, #ce4801);
  box-shadow: 0 0 0 4px rgb(206 72 1 / 12%);
}

.v3-after-search-icon {
  color: rgb(0 19 50 / 50%);
  flex: none;
}

.v3-after-search-bar:focus-within .v3-after-search-icon {
  color: var(--color-orange, #ce4801);
}

.v3-after-search-input {
  background: transparent;
  border: 0;
  color: var(--color-navy, #001332);
  flex: 1;
  font: inherit;
  font-size: 1rem;
  min-width: 0;
  outline: none;
  padding: 0.5rem 0;
}

.v3-after-search-input::placeholder {
  color: rgb(0 19 50 / 45%);
}

/* Hide native search clear button (we use our own) */
.v3-after-search-input::-webkit-search-cancel-button {
  appearance: none;
}

.v3-after-search-clear {
  align-items: center;
  background: rgb(0 19 50 / 8%);
  border: 0;
  border-radius: 50%;
  color: var(--color-navy, #001332);
  cursor: pointer;
  display: flex;
  flex: none;
  height: 28px;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease;
  width: 28px;
}

.v3-after-search-clear:hover {
  background: rgb(0 19 50 / 16%);
}

.v3-after-search-meta {
  color: rgb(0 19 50 / 60%);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  min-height: 1.25rem;
  text-align: center;
}

.v3-after-search-meta strong {
  color: var(--color-navy, #001332);
}

.v3-after-search-empty {
  margin: 1.25rem auto 0;
  max-width: 480px;
  text-align: center;
}

.v3-after-search-empty-title {
  color: var(--color-navy, #001332);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.v3-after-search-empty-sub {
  color: rgb(0 19 50 / 65%);
  font-size: 0.95rem;
  margin: 0;
}

.v3-after-search-suggest {
  background: transparent;
  border: 0;
  border-bottom: 1px dashed currentcolor;
  color: var(--color-orange, #ce4801);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.v3-after-search-suggest:hover {
  color: var(--color-navy, #001332);
}

/* ─── Filter result states ─── */
/* When searching, hide page chrome that would visually fragment results */
body.v3-searching .v3-after-thread .v3-thread-label,
body.v3-searching .v3-after-divider,
body.v3-searching .v3-after-expander,
body.v3-searching .v3-after-open-intro {
  display: none;
}

/* When searching, reduce vertical padding between threads to feel like one grid */
body.v3-searching .v3-after-thread {
  padding-bottom: 1.25rem;
  padding-top: 1.25rem;
}

/* When searching, force overflow cards visible (filter overrides expander) */
body.v3-searching .v3-after-card--overflow {
  animation: none;
  display: flex;
}

/* Hide non-matching items */
.v3-search-hide {
  display: none !important;
}

/* Hide threads that have no visible matches */
.v3-thread-empty {
  display: none;
}

/* ─── Uniform result rows when searching ─────────────────────────────── */

/* All threads share the same light background while searching */
body.v3-searching .v3-after-thread,
body.v3-searching .v3-after-thread--dark,
body.v3-searching .v3-after-thread--light {
  background: var(--color-bg-light, #f1f7ff);
}

/* Stack featured + cards as a single column inside each thread */
body.v3-searching .v3-after-thread-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.v3-searching .v3-after-cards,
body.v3-searching .v3-after-open-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
}

/* Force scroll-reveal items visible while searching */
body.v3-searching .v3-scroll-reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* The uniform result row */
body.v3-searching .v3-after-card,
body.v3-searching .v3-after-open-card,
body.v3-searching .v3-after-featured {
  align-items: center;
  background: #fff !important;
  border: 1px solid rgb(0 19 50 / 10%) !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 2px rgb(0 19 50 / 4%);
  color: var(--color-navy, #001332) !important;
  cursor: pointer;
  display: flex !important;
  flex-direction: row !important;
  gap: 1rem;
  margin: 0 !important;
  padding: 0.875rem 1.125rem !important;
  text-align: left !important;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  animation: v3-search-pop 0.3s ease-out;
}

body.v3-searching .v3-after-card:focus-visible,
body.v3-searching .v3-after-open-card:focus-visible,
body.v3-searching .v3-after-featured:focus-visible {
  border-color: var(--color-orange, #ce4801) !important;
  box-shadow: 0 0 0 3px rgb(206 72 1 / 25%);
  outline: none;
}

body.v3-searching .v3-after-card:hover,
body.v3-searching .v3-after-open-card:hover,
body.v3-searching .v3-after-featured:hover {
  border-color: var(--color-orange, #ce4801) !important;
  transform: translateY(-1px);
}

/* Logos on the left, uniform size */
body.v3-searching .v3-after-card-logo,
body.v3-searching .v3-after-client-logo {
  background: #fff;
  border-radius: 8px;
  flex: none;
  height: 44px !important;
  margin: 0 !important;
  max-width: 88px;
  object-fit: contain;
  padding: 0 !important;
  width: auto !important;
}

/* Titles fill the middle */
body.v3-searching .v3-after-card-title,
body.v3-searching .v3-after-open-card h3 {
  color: var(--color-navy, #001332) !important;
  flex: 1;
  font-family: inherit;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.35;
  margin: 0 !important;
}

/* Featured blocks: use desc as title surrogate, hide noisy parts */
body.v3-searching .v3-after-featured .v3-after-quote,
body.v3-searching .v3-after-featured .v3-after-stats {
  display: none !important;
}

body.v3-searching .v3-after-featured .v3-after-desc {
  color: var(--color-navy, #001332) !important;
  flex: 1;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.35;
  margin: 0 !important;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Hide pills/badges in result mode for visual uniformity */
body.v3-searching .v3-after-card-badge,
body.v3-searching .v3-after-open-type {
  display: none !important;
}

/* Open-card description becomes secondary subtitle */
body.v3-searching .v3-after-open-card p {
  color: rgb(0 19 50 / 65%) !important;
  display: none;
}

/* Single "Read story" link on the right */
body.v3-searching .v3-after-story-link {
  background: none !important;
  color: var(--color-orange, #ce4801) !important;
  flex: none;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap;
}

@keyframes v3-search-pop {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  body.v3-searching .v3-after-card,
  body.v3-searching .v3-after-open-card,
  body.v3-searching .v3-after-featured {
    gap: 0.75rem;
    padding: 0.75rem 0.875rem !important;
  }

  body.v3-searching .v3-after-card-logo,
  body.v3-searching .v3-after-client-logo {
    height: 36px !important;
    max-width: 64px;
  }

  body.v3-searching .v3-after-story-link {
    font-size: 0.8125rem !important;
  }
}

/* Highlighted match text within cards */
.v3-search-mark {
  background: rgb(206 72 1 / 18%);
  border-radius: 2px;
  color: inherit;
  padding: 0 2px;
}

@media (prefers-reduced-motion: reduce) {
  body.v3-searching .v3-after-card,
  body.v3-searching .v3-after-open-card,
  body.v3-searching .v3-after-featured {
    animation: none;
  }
}

@media (max-width: 640px) {
  .v3-after-search {
    padding: 1.25rem 1rem;
  }

  .v3-after-search-input {
    font-size: 0.95rem;
  }
}

/* ─── Thread sections (override existing .v3-thread) ─── */
.v3-after-thread {
  padding: 5rem 2rem;
}

.v3-after-thread--dark {
  background: var(--color-navy);
}

.v3-after-thread--light {
  background: var(--color-bg-light);
}

.v3-after-thread-inner {
  max-width: 860px;
  margin: 0 auto;
}

/* Thread label sits at top */
.v3-after-thread .v3-thread-label {
  margin-bottom: 2.5rem;
}

/* ─── Featured card ─── */
.v3-after-featured {
  margin-bottom: 3rem;
}

.v3-after-client-logo {
  height: 36px;
  width: auto;
  display: block;
  margin-bottom: 1.5rem;
  object-fit: contain;
}

.v3-after-thread--dark .v3-after-client-logo {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.v3-after-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.4;
  padding-left: 1.5rem;
  border-left: 4px solid var(--color-orange);
  margin-bottom: 2rem;
}

.v3-after-thread--dark .v3-after-quote {
  color: var(--color-white);
}

.v3-after-thread--light .v3-after-quote {
  color: var(--color-navy);
}

.v3-after-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.75rem;
  letter-spacing: 0.03em;
}

.v3-after-thread--dark .v3-after-quote cite {
  color: #7a9ab8;
}

.v3-after-thread--light .v3-after-quote cite {
  color: var(--color-blue-gray);
}

/* Stat proof bar */
.v3-after-stats {
  display: flex;
  gap: 3rem;
  margin-bottom: 1.75rem;
}

.v3-after-stat {
  display: flex;
  flex-direction: column;
}

.v3-after-stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
  color: var(--color-orange);
}

.v3-after-stat-label {
  font-size: 0.85rem;
  margin-top: 0.35rem;
  max-width: 16ch;
  line-height: 1.35;
}

.v3-after-thread--dark .v3-after-stat-label {
  color: #7a9ab8;
}

.v3-after-thread--light .v3-after-stat-label {
  color: var(--color-blue-gray);
}

/* Description + link */
.v3-after-desc {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 0.75rem;
}

.v3-after-thread--dark .v3-after-desc {
  color: #aec0d4;
}

.v3-after-thread--light .v3-after-desc {
  color: var(--color-blue-muted);
}

.v3-after-story-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-orange);
}

.v3-after-story-link:hover {
  text-decoration: underline;
}

/* Featured-story read link rendered as a prominent button */
.v3-after-featured .v3-after-story-link {
  align-self: flex-start;
  background: var(--color-orange, #ce4801);
  border-radius: 999px;
  color: #fff;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  padding: 0.65rem 1.4rem;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 6px rgb(206 72 1 / 25%);
}

.v3-after-featured .v3-after-story-link:hover {
  background: #b03e01;
  box-shadow: 0 4px 12px rgb(206 72 1 / 35%);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Search mode: revert the featured link to a plain text link to fit the row */
body.v3-searching .v3-after-featured .v3-after-story-link {
  align-self: auto;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
}

/* ─── Labeled divider ─── */
.v3-after-divider {
  align-items: center;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.v3-after-divider::before,
.v3-after-divider::after {
  content: "";
  flex: 1;
  height: 1px;
}

.v3-after-thread--dark .v3-after-divider::before,
.v3-after-thread--dark .v3-after-divider::after {
  background: rgb(255 255 255 / 12%);
}

.v3-after-thread--light .v3-after-divider::before,
.v3-after-thread--light .v3-after-divider::after {
  background: #d8e4f2;
}

.v3-after-divider span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.v3-after-thread--dark .v3-after-divider span {
  color: rgb(255 255 255 / 40%);
}

.v3-after-thread--light .v3-after-divider span {
  color: var(--color-blue-gray);
}

/* ─── Secondary cards ─── */
.v3-after-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1rem;
}

.v3-after-card {
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
}

.v3-after-card--overflow {
  display: none;
}

.v3-after-card--overflow.is-revealed {
  display: flex;
  animation: v3-slide-down 0.25s ease-out;
}

@keyframes v3-slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .v3-after-card--overflow.is-revealed {
    animation: none;
  }
}

.v3-after-thread--light .v3-after-card {
  background: var(--color-white);
  border-color: #d8e4f2;
}

.v3-after-card-logo {
  height: 26px;
  object-fit: contain;
  object-position: left center;
  width: auto;
}

.v3-after-thread--dark .v3-after-card-logo {
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.v3-after-card-title {
  flex: 1;
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.35;
}

.v3-after-thread--dark .v3-after-card-title {
  color: var(--color-white);
}

.v3-after-thread--light .v3-after-card-title {
  color: var(--color-navy);
}

.v3-after-card-badge {
  align-self: flex-start;
  background: var(--color-orange);
  border-radius: 20px;
  color: var(--color-white);
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
}

/* Expander button */
.v3-after-expander {
  background: none;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 20px;
  color: rgb(255 255 255 / 70%);
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  padding: 0.5rem 1.25rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.v3-after-thread--light .v3-after-expander {
  border-color: var(--color-blue-border);
  color: var(--color-blue-gray);
}

.v3-after-expander:hover {
  background: rgb(255 255 255 / 8%);
  color: var(--color-white);
}

.v3-after-thread--light .v3-after-expander:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

/* ─── Open section cards ─── */
.v3-after-open-intro {
  color: var(--color-blue-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.v3-after-open-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.v3-after-open-card {
  background: var(--color-white);
  border: 1px solid #d8e4f2;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
}

.v3-after-open-card h3 {
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: 1rem;
}

.v3-after-open-card p {
  color: var(--color-blue-gray);
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
}

.v3-after-open-type {
  align-self: flex-start;
  border-radius: 4px;
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  text-transform: uppercase;
}

.v3-after-open-type--spec {
  background: #e8f0fb;
  color: #2d62c0;
}

.v3-after-open-type--code {
  background: #edf7ed;
  color: #2d7a2d;
}

.v3-after-open-type--data {
  background: #fef3e8;
  color: #b55a00;
}

/* ─── Responsive: after.html ─── */
@media (width <= 768px) {
  .v3-after-stats {
    flex-wrap: wrap;
    gap: 1.75rem;
  }

  .v3-after-cards {
    grid-template-columns: 1fr;
  }

  .v3-after-open-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (width <= 480px) {
  .v3-after-open-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   V3 Who We Are page
   ========================================================================== */

/* ─── Shared section title (about page) ─── */
.v3-about-section-title {
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 2.5rem;
  text-align: center;
}

.v3-about-section-title--light {
  color: var(--color-white);
}

/* ─── Mission Moment ─── */
.v3-about-mission {
  background: var(--color-navy);
  padding: 5.5rem 2rem;
}

.v3-about-mission-inner {
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
}

.v3-about-mission-quote {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 3rem;
}

.v3-about-mission-pillars {
  display: flex;
  gap: 3.5rem;
  justify-content: center;
}

.v3-about-mission-pillar {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.v3-about-mission-pillar-icon {
  color: #7a9ab8;
  display: block;
  height: 2.25rem;
  width: 2.25rem;
}

.v3-about-mission-pillar-icon svg {
  display: block;
  height: 100%;
  width: 100%;
}

.v3-about-mission-pillar-label {
  color: #7a9ab8;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

@media (width <= 600px) {
  .v3-about-mission-pillars {
    gap: 2rem;
  }
}

/* ─── Directors ─── */
.v3-about-directors {
  background: var(--color-bg-light);
  padding: 5rem 2rem;
}

.v3-about-directors-inner {
  margin: 0 auto;
  max-width: 920px;
}

.v3-about-directors-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
}

.v3-about-director {
  align-items: center;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  text-align: center;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.v3-about-director:hover {
  box-shadow: 0 6px 20px rgb(0 0 0 / 10%);
  transform: translateY(-2px);
}

.v3-about-director-photo-wrap {
  border-radius: 50%;
  flex-shrink: 0;
  height: 140px;
  margin-bottom: 1rem;
  overflow: hidden;
  width: 140px;
}

.v3-about-director-photo {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.v3-about-director-name {
  color: var(--color-navy);
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.v3-about-director-role {
  color: var(--color-orange);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.v3-about-director-bio {
  color: var(--color-blue-gray);
  display: block;
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (width <= 768px) {
  .v3-about-directors-grid {
    grid-template-columns: 1fr;
    margin: 0 auto;
    max-width: 400px;
  }
}

/* ─── Team section ─── */
.v3-about-team {
  background: var(--color-navy);
  overflow: hidden;
  padding: 5rem 2rem;
  position: relative;
}

.v3-about-team-map {
  height: auto;
  left: 50%;
  max-width: 900px;
  opacity: 0.06;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  user-select: none;
  width: 90%;
}

.v3-about-team-inner {
  margin: 0 auto;
  max-width: 1100px;
  position: relative;
  z-index: 1;
}

.v3-about-team-subtitle {
  color: #7a9ab8;
  font-size: 1rem;
  margin-bottom: 1rem;
  margin-top: -1.5rem;
  text-align: center;
}

.v3-about-team-flags {
  font-size: 1.6rem;
  letter-spacing: 0.4em;
  margin-bottom: 3rem;
  text-align: center;
}

/* Flip card grid */
.v3-about-flip-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
}

/* Flip card */
.v3-about-flip-card {
  border-radius: var(--radius);
  cursor: pointer;
  height: 270px;
  perspective: 900px;
}

.v3-about-flip-card:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 3px;
}

.v3-about-flip-card-inner {
  border-radius: var(--radius);
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.4, 0.2, 0.2, 1);
  width: 100%;
}

.v3-about-flip-card--flipped .v3-about-flip-card-inner {
  transform: rotateY(180deg);
}

.v3-about-flip-card-front,
.v3-about-flip-card-back {
  align-items: center;
  backface-visibility: hidden;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  overflow: hidden;
  padding: 0.75rem 0.5rem;
  position: absolute;
  text-align: center;
}

.v3-about-flip-card-front {
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 12%);
  gap: 0.4rem;
}

.v3-about-flip-card-front:hover {
  background: rgb(255 255 255 / 11%);
}

.v3-about-flip-card-back {
  background: var(--color-orange);
  gap: 0.5rem;
  padding: 1rem;
  transform: rotateY(180deg);
}

.v3-about-flip-photo-wrap {
  border-radius: 50%;
  flex-shrink: 0;
  height: 110px;
  overflow: hidden;
  width: 110px;
}

.v3-about-flip-photo {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* Initials placeholder */
.v3-about-flip-initials {
  align-items: center;
  background: var(--color-navy-mid);
  color: var(--color-white);
  display: flex;
  font-size: 1rem;
  font-weight: 700;
  justify-content: center;
}

.v3-about-flip-name {
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
}

.v3-about-flip-role {
  color: rgb(255 255 255 / 65%);
  font-size: 0.8rem;
  line-height: 1.2;
}

.v3-about-flip-name-back {
  color: var(--color-white);
  font-size: 0.925rem;
  font-weight: 700;
}

.v3-about-flip-bio {
  color: rgb(255 255 255 / 90%);
  font-size: 0.875rem;
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .v3-about-flip-card-inner {
    transition: none;
  }
}

@media (width <= 1024px) {
  .v3-about-flip-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (width <= 768px) {
  .v3-about-flip-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .v3-about-team-map {
    display: none;
  }
}

@media (width <= 480px) {
  .v3-about-flip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Contributions ─── */
.v3-about-contribs {
  background: var(--color-bg-light);
  padding: 5rem 2rem;
}

.v3-about-contribs-inner {
  margin: 0 auto;
  max-width: 860px;
}

.v3-about-contribs-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}

.v3-about-contrib-card {
  align-items: center;
  background: var(--color-white);
  border: 1px solid #d8e4f2;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.v3-about-contrib-card:hover {
  box-shadow: 0 6px 20px rgb(0 0 0 / 8%);
  transform: translateY(-2px);
}

.v3-about-contrib-icon {
  color: var(--color-navy);
  display: block;
  height: 2.25rem;
  width: 2.25rem;
}

.v3-about-contrib-icon svg {
  display: block;
  height: 100%;
  width: 100%;
}

.v3-about-contrib-card h3 {
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.v3-about-contrib-card p {
  color: var(--color-blue-gray);
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
}

.v3-about-contrib-link {
  color: var(--color-orange);
  font-size: 0.85rem;
  font-weight: 700;
}

.v3-about-contrib-link:hover {
  text-decoration: underline;
}

@media (width <= 768px) {
  .v3-about-contribs-grid {
    grid-template-columns: 1fr;
    margin: 0 auto;
    max-width: 380px;
  }
}
