/* Google Fonts loaded via <link> in HTML for performance */

/* ==========================================================================
   Design Tokens
   ========================================================================== */

:root {
  /* Primary */
  --color-primary: #0D145F;
  --color-primary-hover: #15219D;
  --color-onyx: #131416;
  /* Accent */
  --color-accent: #FABC20;
  --color-accent-hover: #e5aa10;
  /* Secondary */
  --color-secondary: #9C90E6;
  --color-secondary-hover: #8578d4;
  --color-papaya: #FFEFD5;
  /* Surfaces */
  --color-surface: #fff;
  --color-surface-muted: #F3F4FA;
  --color-border: #e5e5e5;
  --color-border-light: #eee;
  /* Text (Onyx gradient scale) */
  --color-text: #3B3E44;
  --color-text-strong: #131416;
  --color-text-muted: #6B7180;
  --color-text-faint: #ADB1B8;
  /* Fonts */
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Crimson Pro', Georgia, serif;
}

/* ==========================================================================
   1. Reset & Base
   ========================================================================== */

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

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

body {
  font-family: var(--font-body);
  background: var(--color-surface);
  color: var(--color-text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 150ms;
}

a:hover {
  text-decoration: underline;
}

/* Focus-visible for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

::selection {
  background: var(--color-primary);
  color: #fff;
}

/* ==========================================================================
   2. Typography
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text-strong);
  line-height: 1.2;
  word-spacing: 0.05em;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

p {
  color: var(--color-text);
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.subtitle-meta {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .subtitle-meta { display: none; }
}

.stage-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25em 0.8em;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   3. Layout
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* ==========================================================================
   4. Navigation
   ========================================================================== */

/* Fix 5: Beta banner with dismiss */
.beta-banner {
  background: var(--color-primary);
  color: rgba(255,255,255,0.85);
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.25rem 2.5rem;
  position: relative;
}

.beta-banner-close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.25rem;
  transition: color 150ms;
}

.beta-banner-close:hover {
  color: #fff;
}

/* Fix 3: Navy page header variant */
.page-header--navy {
  background: var(--color-primary);
  color: #fff;
}

.page-header--navy h1 {
  color: #fff;
}

.page-header--navy .subtitle {
  color: rgba(255,255,255,0.75);
}

.page-header--navy .subtitle-meta {
  color: rgba(255,255,255,0.5);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: 0 1.5rem;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

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

.nav-logo:hover {
  text-decoration: none;
  opacity: 0.8;
}

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

.nav-links a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 150ms;
}

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

.nav-give {
  color: var(--color-accent) !important;
  font-weight: 600;
  padding: 0.35rem 1.1rem;
  border: 1.5px solid var(--color-accent);
  border-radius: 6px;
  text-decoration: none;
  transition: background 150ms, color 150ms;
}

.nav-give:hover {
  background: var(--color-accent);
  color: var(--color-onyx) !important;
  text-decoration: none !important;
}

.nav-links a.active {
  border-bottom: 2px solid var(--color-primary);
  color: var(--color-primary);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 6px;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(13, 20, 95, 0.06);
  outline: none;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--color-primary);
  border-radius: 2px;
  margin: 0;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ==========================================================================
   5. Cards
   ========================================================================== */

/* Modal form layout */
.modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 480px) {
  .modal-row { grid-template-columns: 1fr; }
}

.btn-small {
  font-size: 0.8125rem;
  padding: 0.4rem 1rem;
  min-height: 64px;
}

.btn-large {
  font-size: 1rem;
  padding: 1rem 2.5rem;
  min-height: 54px;
  letter-spacing: 0.01em;
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   7. Stage Badges — colored pills
   ========================================================================== */

.stage-in-progress {
  background: #FFEFD5;
  color: #8a6d00;
}

.stage-live {
  background: #E8F5E9;
  color: #1B5E20;
}

/* ==========================================================================
   8. Buttons
   ========================================================================== */

.btn-primary,
.btn-secondary,
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 150ms, color 150ms, border-color 150ms, transform 150ms;
  text-decoration: none;
  min-height: 44px;
  padding: 0.6rem 1.4rem;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-onyx);
  border-color: var(--color-accent);
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(250,188,32,0.3);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

.btn-pill {
  font-size: 0.75rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  min-height: auto;
  background: #f0f0f0;
  color: var(--color-text);
  border-color: #ddd;
}

.btn-pill:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  text-decoration: none;
}

/* ==========================================================================
   9. Forms
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="number"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: border-color 150ms;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #bbb;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary);
}

input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.modal textarea {
  min-height: 48px;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #666;
  margin-bottom: 0.4rem;
}

label abbr {
  text-decoration: underline dotted #aaa;
  text-underline-offset: 3px;
  cursor: help;
  color: #444;
}

/* Range slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #e8e8e8;
  border-radius: 4px;
  outline: none;
  border: none;
  padding: 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* ==========================================================================
   10. Modal
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms, visibility 200ms;
}

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

.modal {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  transform: translateY(12px) scale(0.98);
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #999;
  font-size: 1.5rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #333;
}

.submit-followup {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text);
}

.submit-action {
  margin-top: 0.5rem;
}

/* ==========================================================================
   11. Toast
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-strong);
  min-width: 260px;
  max-width: 400px;
  transform: translateX(120%);
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 16px 40px rgba(0,0,0,0.12);
}

.toast.show {
  transform: translateX(0);
}

.toast--success {
  border-left: 4px solid #2e7d32;
  color: #333;
}

.toast--error {
  border-left: 4px solid #d32f2f;
  color: #333;
}

/* ==========================================================================
   12. Tabs (see .tab-bar / .tab-btn in section 24)
   ========================================================================== */

/* ==========================================================================
   15. Footer (see .site-footer in section 27)
   ========================================================================== */

/* ==========================================================================
   16. Detail Pages
   ========================================================================== */

/* Fix 6: Detail header more presence */
.detail-header {
  padding-top: 3rem;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--color-accent);
  padding-left: 1.5rem;
}

.detail-header h1 {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: var(--color-text-strong);
}

.detail-header .stage-badge {
  display: inline-block;
  margin-bottom: 1rem;
}

.detail-description {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 700px;
}

.open-full-btn {
  display: inline-block;
  margin: 1rem 0;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.85rem;
  border-radius: 8px;
  transition: background 150ms;
}

.open-full-btn:hover {
  background: var(--color-primary-hover);
  text-decoration: none;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 1rem 0;
}

.detail-actions .open-full-btn {
  margin: 0;
}

.detail-scroll-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 150ms;
}

.detail-scroll-link:hover {
  color: var(--color-secondary-hover);
  text-decoration: underline;
}

#demo {
  scroll-margin-top: 72px;
}

.detail-tab-panel {
  display: none;
  border: 1px solid #e5e5e5;
  border-top: none;
  padding: 0;
  min-height: 500px;
  background: #fff;
  border-radius: 0 0 12px 12px;
}

.detail-tab-panel.active {
  display: block;
}

.detail-tab-panel iframe {
  width: 100%;
  height: 600px;
  border: none;
}

@media (max-width: 768px) {
  .detail-tab-panel iframe {
    height: 400px;
  }
}

/* ==========================================================================
   Crossings Rules
   ========================================================================== */

.crossings-rules {
  padding-top: 3rem;
  padding-bottom: 3rem;
  max-width: 720px;
}

.crossings-rules h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.crossings-rules h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-strong);
}

.crossings-rules h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--color-text-strong);
}

.crossings-rules > p {
  color: var(--color-text);
  line-height: 1.6;
}

.crossings-rules ol {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
  color: var(--color-text);
  line-height: 1.8;
}

.rules-block {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface-muted);
  border-radius: 10px;
}

.rules-block p {
  color: var(--color-text);
  line-height: 1.6;
  font-size: 0.9rem;
}

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

.suit-card {
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--color-border-light);
  background: var(--color-surface);
}

.suit-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.35rem;
}

.suit-spades .suit-icon { color: #333; }
.suit-hearts .suit-icon { color: #e74c3c; }
.suit-diamonds .suit-icon { color: #e74c3c; }
.suit-clubs .suit-icon { color: #333; }

.suit-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.suit-subtitle {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.suit-card p {
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.5;
  margin: 0;
}

.crossings-cta {
  margin-top: 2.5rem;
  text-align: center;
}

@media (max-width: 480px) {
  .crossings-suits {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ISM Primer Content
   ========================================================================== */

.primer-content {
  padding-top: 3rem;
  padding-bottom: 3rem;
  max-width: 720px;
}

.primer-content h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.primer-content > p {
  color: var(--color-text);
  line-height: 1.6;
}

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

.primer-thumb {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transition: border-color 200ms, box-shadow 200ms;
}

.primer-thumb:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 2px 8px rgba(156,144,230,0.12), 0 6px 20px rgba(0,0,0,0.06);
  text-decoration: none;
}

.primer-thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: var(--color-surface-muted);
}

.primer-thumb span {
  display: block;
  padding: 0.5rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-strong);
  text-align: center;
}

@media (max-width: 768px) {
  .primer-thumbs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .primer-thumbs { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

.primer-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-strong);
}

.primer-audiences {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.primer-audience {
  padding: 1.25rem;
  border: 1px solid var(--color-border-light);
  border-radius: 10px;
}

.primer-audience strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-bottom: 0.1rem;
}

.primer-audience span {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.primer-audience p {
  font-size: 0.82rem;
  color: var(--color-text);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 480px) {
  .primer-audiences {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Global Atlas Steps
   ========================================================================== */

.atlas-steps {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.atlas-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--color-surface-muted);
  border-radius: 10px;
}

.atlas-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
}

.atlas-step h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--color-text-strong);
}

.atlas-step p {
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   17. Page Header
   ========================================================================== */

.page-header {
  padding: 3rem 0 2rem;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   17. Form Groups
   ========================================================================== */

.form-group {
  margin-bottom: 1rem;
}

.modal .form-group {
  margin-bottom: 0.5rem;
}

.modal .form-group:nth-child(5) {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-light);
}

/* Form attribution note */
.form-note {
  font-size: 0.78rem;
  color: #999;
  text-align: center;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.form-note a {
  color: #999;
  text-decoration: underline;
  text-decoration-color: rgba(153,153,153,0.4);
}

.form-note a:hover {
  color: var(--color-text);
}

.submit-feedback .form-note {
  margin-top: 1rem;
}

/* ==========================================================================
   18. Utilities
   ========================================================================== */

.hidden {
  display: none !important;
}

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

.text-muted {
  color: #999;
}

/* ==========================================================================
   Keyframes
   ========================================================================== */

@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes pulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; } 50% { transform: translate(-50%, -50%) scale(1.06); opacity: 1; } }

/* Hero entrance — stagger children */
.hero-entrance > *:nth-child(1) { animation: fadeInUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.1s both; }
.hero-entrance > *:nth-child(2) { animation: fadeInUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.35s both; }
.hero-entrance > *:nth-child(3) { animation: fadeInUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.55s both; }
.hero-entrance > *:nth-child(4) { animation: fadeInUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.75s both; }
.hero-entrance > *:nth-child(5) { animation: fadeInUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.85s both; }

/* Video play button pulse */
.video-play-btn { animation: pulse 2.5s ease infinite; }

/* ==========================================================================
   Scroll Progress Bar
   ========================================================================== */

.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 200; pointer-events: none; }
.scroll-progress-bar { height: 100%; background: linear-gradient(90deg, var(--color-primary), var(--color-secondary)); transform-origin: left; transform: scaleX(0); will-change: transform; }

/* ==========================================================================
   Nav Scroll State
   ========================================================================== */

.nav-inner { transition: height 200ms ease; }
.nav-logo-img { transition: height 200ms ease; }
.nav--scrolled { box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.nav--scrolled .nav-inner { height: 56px; }
.nav--scrolled .nav-logo-img { height: 37px; }

/* ==========================================================================
   Micro-Interactions
   ========================================================================== */

/* Button press */
.btn-secondary:active { transform: scale(0.97); transition: transform 50ms ease; }

/* Card hover — shadow only, no lift */
.featured-card:hover, .vision-card:hover, .advisor-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }

/* Form focus glow */
input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 3px rgba(13,20,95,0.08); }

/* Anchor scroll offset */
section[id], [id].connect-section { scroll-margin-top: 80px; }

/* Contrast bars animate from 0 */
.contrast-bar { width: 0; transition: width 0.3s cubic-bezier(0.16,1,0.3,1); }
.reveal--visible .contrast-bar--bad { width: 85%; }
.reveal--visible .contrast-bar--good { width: 14%; }

/* Proto card tab transition */
.proto-card--exiting { opacity: 0; transform: translateY(8px); transition: opacity 0.25s ease, transform 0.25s ease; }

/* Section separators */
.page-section + .page-section::before { content: ''; display: block; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--color-border), transparent); }

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .scroll-progress { display: none; }
  .reveal, .reveal--left, .reveal--right, .reveal--scale, .reveal--blur {
    opacity: 1; transform: none; filter: none;
  }
}

/* ==========================================================================
   Responsive — Tablet (768px)
   ========================================================================== */

@media (max-width: 768px) {
  /* Nav → hamburger */
  .nav {
    padding: 0 1rem;
    /* Remove backdrop-filter so .nav-links (fixed) positions against viewport */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.98);
  }

  .nav-inner {
    height: 68px;
  }

  .nav-logo-img {
    height: 34px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    height: calc(100vh - 68px);
    height: calc(100dvh - 68px);
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 1.5rem 1.25rem 2rem;
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1), visibility 280ms;
    z-index: 99;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(13, 20, 95, 0.08);
  }

  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
  }

  .nav-links a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--color-primary);
    min-height: 56px;
    display: flex;
    align-items: center;
    padding: 0 0.25rem;
    border-bottom: 1px solid var(--color-border);
    transition: color 150ms, padding-left 180ms;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a:hover,
  .nav-links a:active {
    color: var(--color-accent);
    padding-left: 0.75rem;
  }

  .nav-links a.active {
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links .nav-give {
    margin-top: 1rem;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--color-accent);
    border-radius: 8px;
    background: var(--color-accent);
    color: var(--color-onyx) !important;
    border-bottom: 2px solid var(--color-accent);
  }

  .nav-links .nav-give:hover,
  .nav-links .nav-give:active {
    padding-left: 1.5rem;
    background: #ffd45a;
  }

  /* Prevent body scroll when menu open */
  body.nav-open {
    overflow: hidden;
  }

  /* Modal */
  .modal {
    padding: 1.5rem;
    border-radius: 8px;
  }

  /* Toast — slide up on mobile */
  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
    transform: translateY(120%);
  }
  .toast.show {
    transform: translateY(0);
  }

}

/* ==========================================================================
   Responsive — Small phone (480px)
   ========================================================================== */

@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  h1 {
    font-size: 1.625rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .container {
    padding: 0 1rem;
  }

  .nav {
    padding: 0 0.75rem;
  }

  .nav-inner {
    height: 64px;
  }

  .nav-logo-img {
    height: 28px;
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .btn-pill {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }

  .tabs {
    gap: 0;
  }

  .tab {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
  }
}

/* ==========================================================================
   19. Index Page — Page Sections
   ========================================================================== */

.page-section {
  padding: 4.5rem 0;
  scroll-margin-top: 72px;
}

.build-public {
  margin-top: 2.5rem;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  font-style: italic;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.social-proof {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-accent);
  border-radius: 0 8px 8px 0;
}

.social-proof p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
  font-style: italic;
}

.trust-framework {
  margin: 4rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

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

.trust-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.trust-item strong {
  display: block;
  margin: 0.5rem 0 0.25rem;
  font-size: 0.95rem;
}

.trust-item p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
}

@media (max-width: 768px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.published-in {
  margin-top: 3rem;
}

.published-covers {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.published-covers img {
  height: 200px;
  width: 140px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 200ms;
}

.published-covers img:hover {
  transform: translateY(-4px);
}

@media (max-width: 480px) {
  .published-covers img { height: 120px; width: 84px; }
  .published-covers { gap: 0.75rem; }
}

.about-video {
  margin-top: 3rem;
}

.about-video h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1.25rem;
}

.about-video .hero-video {
  max-width: 560px;
}

.team-bios {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.team-bio-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.team-bio {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.team-bio strong {
  color: var(--color-text-strong);
}

.next-gen-label {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-text-faint);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.next-gen-names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Experience Banner */
.experience-banner {
  margin: 3rem 0 1rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
  overflow: hidden;
}

.experience-banner .sh--center {
  margin-bottom: 2rem;
}

.logo-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  justify-content: center;
}

.logo-wall img {
  height: 37px;
  width: auto;
  max-width: 115px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.45);
  transition: filter 0.2s ease;
}

.logo-wall img:hover {
  filter: grayscale(0%) opacity(1);
}

.page-section--muted {
  background: var(--color-surface-muted); /* Mist #F3F4FA */
}

/* Hero overrides for index */
.hero {
  padding: 4.5rem 0 0;
  text-align: left;
  background: linear-gradient(135deg, var(--color-surface-muted) 0%, #f5f3ff 40%, #fff7ed 70%, var(--color-surface) 100%);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
}

.hero > .container:first-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: flex-start;
  padding-bottom: 2rem;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hero-cta-row {
  text-align: left;
  padding: 2rem 0 2.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.4rem);
  letter-spacing: -0.01em;
  word-spacing: 0.04em;
  line-height: 1.08;
  margin-bottom: 0.5rem;
  max-width: 720px;
  color: var(--color-text-strong);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 560px;
  margin-bottom: 2rem;
  letter-spacing: 0.005em;
}

.hero-video {
  width: 100%;
}

.hero-cta {
  margin-top: 2rem;
  display: inline-flex;
}

.hero-identity {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-text-faint);
  max-width: 480px;
  line-height: 1.5;
}

.hero-video {
  max-width: 680px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: none;
  box-shadow:
    0 4px 8px rgba(0,0,0,0.04),
    0 12px 24px rgba(0,0,0,0.06);
}

.hero-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 900px) {
  .hero > .container:first-child {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .hero-left,
  .hero-right {
    width: 100%;
  }

  .hero-right {
    align-items: flex-start;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .hero-lead {
    max-width: 34rem;
    margin-bottom: 0;
  }

  .hero-video {
    max-width: 560px;
  }

  .hero-cta-row {
    padding-top: 0.75rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 2.75rem;
  }

  .hero > .container:first-child {
    gap: 1.25rem;
    padding-bottom: 1rem;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 13vw, 3.2rem);
    line-height: 0.96;
    max-width: 7ch;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.55;
    max-width: 22rem;
  }

  .hero-video {
    max-width: 100%;
    border-radius: 10px;
  }

  .hero-cta-row {
    padding: 0.5rem 0 1.5rem;
  }

  .hero-cta {
    width: 100%;
    justify-content: center;
    margin-top: 0;
  }
}

/* Section Headers */
.sh {
  margin-bottom: 1.5rem;
}

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

.sh--center p {
  margin: 0 auto;
}

.sh-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.sh h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.01em;
  color: var(--color-text-strong);
  margin-bottom: 0.6rem;
}

.sh p {
  color: var(--color-text-muted);
  max-width: 480px;
  font-size: 1.05rem;
  line-height: 1.6;
}


/* ==========================================================================
   20. Prototype Cards (horizontal layout)
   ========================================================================== */

/* Tool Matcher Cards */
.tool-matcher {
  margin: 2rem 0;
}

.matcher-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.matcher-card {
  padding: 1.25rem;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  border-left: 4px solid var(--color-secondary);
  transition: all 150ms ease;
}

.matcher-card:hover {
  border-left-color: var(--color-primary);
  background: #f9f8ff;
  transform: translateY(-2px);
}

.matcher-card strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-text-strong);
  margin-bottom: 0.5rem;
}

.matcher-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

.matcher-card a {
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .matcher-options {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .matcher-card {
    padding: 1rem;
  }
}

.proto-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.proto-card {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.proto-card:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 2px 8px rgba(156,144,230,0.10), 0 8px 24px rgba(0,0,0,0.05);
}

.proto-thumb {
  width: 110px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--color-surface-muted);
}

img.proto-thumb[src="lausanne.webp"] {
  object-fit: contain;
  padding: 6px;
}

.proto-emoji {
  width: 110px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  background: var(--color-surface-muted);
  border-radius: 8px;
  border: 1px solid var(--color-border-light);
}

.proto-info {
  min-width: 0;
}

.proto-name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-strong);
  margin-bottom: 0.15rem;
}

.proto-name-link {
  text-decoration: none;
  color: var(--color-text-strong);
}

.proto-name-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.proto-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.proto-meta .stage-badge {
  margin-bottom: 0;
}

.proto-tagline {
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.4;
  margin: 0.5rem 0 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.proto-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin: 0.35rem 0 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.proto-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  align-items: center;
}

.proto-link {
  background: none;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 150ms, color 150ms;
}

.proto-link:hover {
  background: var(--color-primary);
  color: #fff;
}

.type-tag {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface-muted);
  padding: 0.15em 0.55em;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.build-time {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--color-text-faint);
  letter-spacing: 0.02em;
}

.review-count {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--color-text-faint);
}

.proto-reviewed {
  font-size: 0.7rem;
  font-weight: 600;
  color: #2e7d32;
}

/* ==========================================================================
   21. Manifesto / Principles
   ========================================================================== */

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto;
}

.principle:nth-child(3) {
  grid-column: 1 / -1;
  max-width: 50%;
  margin: 0 auto;
}

.principle {
  padding: 1.5rem;
  min-width: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
}

.principle-num {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.principle h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-strong);
}

.principle p {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
}

@media (max-width: 980px) {
  .principles {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .principle:nth-child(3) {
    grid-column: auto;
    max-width: none;
    width: 100%;
  }
}

/* ==========================================================================
   22. Connect Section
   ========================================================================== */

.connect-section {
  background: var(--color-primary);
  color: var(--color-surface);
  padding: 4.5rem 0;
  scroll-margin-top: 72px;
  text-align: center;
}

.connect-section .sh {
  text-align: center;
  margin-bottom: 1.5rem;
}

.connect-section .sh h2 {
  color: var(--color-surface);
  margin-bottom: 0.75rem;
}

.connect-section .sh p {
  color: rgba(255,255,255,0.80);
  max-width: 420px;
  margin: 0 auto;
}

.connect-section .btn-primary {
  margin-top: 0.5rem;
  background: var(--color-accent);
  color: var(--color-onyx);
  border-color: var(--color-accent);
}

.connect-section .btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

/* Connect form on dark background */
.connect-form-wrap {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
  font-size: 0.875rem;
}

.connect-form-wrap .form-group {
  margin-bottom: 0.6rem;
}

.connect-form-wrap label {
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.connect-form-wrap input,
.connect-form-wrap select,
.connect-form-wrap textarea {
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
}

.connect-form-wrap textarea {
  min-height: 60px;
}

.connect-form-wrap .checkbox-group {
  gap: 0.3rem;
}

.connect-form-wrap .checkbox-label {
  font-size: 0.8rem;
}

.connect-form-wrap .modal-row {
  margin-bottom: 0.6rem;
}

.connect-form-wrap label {
  color: rgba(255,255,255,0.85);
}

.connect-form-wrap input[type="text"],
.connect-form-wrap input[type="email"],
.connect-form-wrap select,
.connect-form-wrap textarea {
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff;
}

.connect-form-wrap input::placeholder,
.connect-form-wrap textarea::placeholder {
  color: rgba(255,255,255,0.45);
}

.connect-form-wrap input:focus,
.connect-form-wrap select:focus,
.connect-form-wrap textarea:focus {
  border-color: var(--color-accent);
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 0 3px rgba(250, 188, 32, 0.15);
}

.connect-form-wrap select {
  background: rgba(255,255,255,0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 1rem center;
}

.connect-form-wrap select option {
  background: #fff;
  color: #333;
}

.connect-form-wrap .checkbox-label {
  color: rgba(255,255,255,0.85);
}

.connect-form-wrap .checkbox-label:hover {
  opacity: 0.85;
}

.connect-form-wrap .checkbox-label input[type="checkbox"] {
  accent-color: var(--color-accent);
}

.form-actions-center {
  text-align: center;
  margin-top: 0.5rem;
}

.connect-form-wrap .submit-feedback h3 {
  color: #fff;
}

.connect-form-wrap .submit-feedback p {
  color: rgba(255,255,255,0.7);
}

/* ==========================================================================
   Scholarship Page
   ========================================================================== */

.scholarship-hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.scholarship-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.scholarship-card {
  padding: 2rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  text-align: center;
}

.scholarship-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: var(--color-surface-muted);
  border-radius: 12px;
  color: var(--color-primary);
}

.scholarship-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-strong);
}

.scholarship-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.scholarship-eligibility {
  max-width: 560px;
  margin: 0 auto;
}

.scholarship-eligibility ul {
  list-style: none;
  padding: 0;
}

.scholarship-eligibility li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.85rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text);
}

.scholarship-eligibility li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

.scholarship-form-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.scholarship-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.scholarship-form-wrap .form-group {
  margin-bottom: 1rem;
}

.scholarship-form-wrap label {
  font-size: 0.875rem;
  color: var(--color-text);
}

.scholarship-form-wrap .submit-feedback {
  text-align: center;
  padding: 3rem 1rem;
}

.scholarship-form-wrap .submit-feedback h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.scholarship-form-wrap .submit-feedback p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.fellow-content {
  max-width: 720px;
  margin: 0 auto;
}

.fellow-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-text-strong);
  margin-bottom: 0.6rem;
}

.fellow-headline,
.fellow-philosophy,
.fellow-sprint,
.fellow-who,
.fellow-apply {
  margin-bottom: 2.5rem;
}

.fellow-headline h3 {
  font-size: 1.4rem;
  text-align: center;
}

.fellow-headline p,
.fellow-philosophy p,
.fellow-apply p {
  color: var(--color-text);
  line-height: 1.65;
}

.fellow-motto {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-top: 0.75rem;
  font-weight: 700;
}

.fellow-steps {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

.fellow-steps li {
  margin-bottom: 0.4rem;
  color: var(--color-text);
  line-height: 1.55;
}

.fellow-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .scholarship-cards {
    grid-template-columns: 1fr !important;
    max-width: 400px;
  }
  .scholarship-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   24. Prototype Tab Bar
   ========================================================================== */

/* Fix 4: Bold tab bar */
.tab-bar {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--color-border);
}

.tab-btn {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.65rem 1.5rem 0.65rem 0;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 150ms, border-color 150ms;
  margin-bottom: -2px;
  min-height: 44px;
}

.tab-btn:hover {
  color: var(--color-text-strong);
  background: transparent;
  border-bottom-color: var(--color-border);
}

.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

.tab-count {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  padding: 0.1em 0.55em;
  margin-left: 0.4em;
  vertical-align: middle;
  line-height: 1.6;
}

.tab-btn.active .tab-count {
  background: var(--color-accent);
  color: var(--color-onyx);
}

/* ==========================================================================
   25. Vote Buttons (review modal)
   ========================================================================== */

.vote-row {
  display: flex;
  gap: 0.5rem;
}

.vote-btn {
  font-size: 1.1rem;
  padding: 0.3rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface-muted);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 200ms ease;
  opacity: 0.6;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.vote-emoji {
  font-size: 1.2em;
  line-height: 1;
}

.vote-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vote-btn:hover {
  opacity: 0.9;
  border-color: var(--color-border);
  background: var(--color-surface);
}

.vote-btn.selected {
  opacity: 1;
  transform: scale(1.05);
  color: var(--color-text-strong);
  font-weight: 600;
}

.vote-btn.selected[data-vote="up"] {
  border-color: #2e7d32;
  background: #e8f5e9;
}

.vote-btn.selected[data-vote="down"] {
  border-color: #d32f2f;
  background: #ffebee;
}

.vote-btn.selected[data-vote="continue"] {
  border-color: #2e7d32;
  background: #e8f5e9;
}

.vote-btn.selected[data-vote="stop"] {
  border-color: #d32f2f;
  background: #ffebee;
}

/* ==========================================================================
   26. Lab Notes Page
   ========================================================================== */

.changelog-entry { margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--color-border-light); }
.changelog-date { font-family: var(--font-body); font-size: 0.8rem; color: var(--color-text-faint); letter-spacing: 0.03em; margin-bottom: 0.5rem; }
.changelog-title { font-size: 1.4rem; border-left: 3px solid var(--color-primary); padding-left: 1rem; margin-bottom: 1.5rem; }
.changelog-body h3 { font-family: var(--font-body); font-size: 0.75rem; color: var(--color-text-faint); text-transform: uppercase; letter-spacing: 0.06em; margin: 2rem 0 0.75rem; font-weight: 600; }
.changelog-body ul { list-style: none; padding: 0; }
.changelog-body li { padding: 0.4rem 0; padding-left: 1.25rem; position: relative; color: var(--color-text); font-size: 0.95rem; }
.changelog-body li::before { content: ''; position: absolute; left: 0; top: 0.65rem; width: 4px; height: 4px; background: #ccc; border-radius: 50%; }
.process-note { border: 1px solid var(--color-border); border-radius: 12px; padding: 2rem; margin-top: 4rem; background: var(--color-surface-muted); }
.process-note h3 { font-family: var(--font-body); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; color: var(--color-text-faint); }
.process-note p { color: var(--color-text); line-height: 1.8; }

/* ==========================================================================
   26b. Connect Page
   ========================================================================== */

.connect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.connect-card { border: 1px solid var(--color-border-light); border-radius: 12px; padding: 2rem; background: var(--color-surface-muted); }
.connect-card h2 { font-size: 1.1rem; letter-spacing: -0.01em; margin-bottom: 1.5rem; color: var(--color-text-strong); }
.contact-list { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; flex-direction: column; gap: 0.25rem; }
.contact-label { font-family: var(--font-body); font-size: 0.7rem; color: var(--color-text-faint); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.contact-value { color: var(--color-primary); text-decoration: none; font-size: 1rem; }
.contact-value:hover { text-decoration: underline; }
.connect-cta-btn { margin-top: 1rem; }
@media (max-width: 768px) { .connect-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   27. Index Page Utilities
   ========================================================================== */

/* Video lightbox */
.video-lightbox {
  width: 90vw;
  max-width: 560px;
  position: relative;
}

.video-lightbox .modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: #fff;
  font-size: 2rem;
}

.video-lightbox .modal-close:hover {
  color: #ccc;
}

.video-lightbox-content {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.video-lightbox-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* View lightbox (websites) */
.view-lightbox {
  width: 92vw;
  max-width: 1100px;
  height: 90vh;
  position: relative;
}

.view-lightbox .modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: #fff;
  font-size: 2rem;
}

.view-lightbox .modal-close:hover {
  color: #ccc;
}

.view-lightbox-content {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.view-lightbox-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Thumbnail button reset */
.proto-thumb-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
  width: 100%;
  overflow: hidden;
}


/* Name button reset */
button.proto-name-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

button.proto-name-link:hover {
  color: var(--color-primary);
}

.modal-desc { margin-bottom: 0.5rem; font-size: 0.85rem; }
.checkbox-group { display: flex; flex-direction: column; gap: 0.5rem; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--color-text); cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--color-primary); cursor: pointer; }
/* ==========================================================================
   27. Site Footer (index)
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--color-border-light);
  padding: 3rem 0 2.5rem;
  margin-top: 0;
  background: var(--color-surface);
  text-align: center;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.footer-nav a {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--color-text-strong);
}

.site-footer .container p {
  font-size: 0.8rem;
  color: var(--color-text-faint);
  margin: 0.25rem 0;
}

.site-footer .container p a {
  color: var(--color-text-muted);
}

.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1rem 0 0.25rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 37px;
  border-radius: 6px;
  color: var(--color-text-muted);
  transition: color 0.15s, background 0.15s;
}

.footer-social a:hover {
  color: var(--color-text-strong);
  background: var(--color-border-light);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-legal {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: var(--color-text-faint);
}

/* ==========================================================================
   27c. Partners Section
   ========================================================================== */

#partners {
  padding: 3.5rem 0;
  border-top: 1px solid var(--color-border-light);
}

/* Locations */
.about-locations {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border-light);
}

.locations-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.5rem;
  background: var(--color-primary);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}

/* Foundation / Institutional Background */
.foundation {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border-light);
}

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

.foundation-col {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--color-border-light);
}

.foundation-category {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
}

.foundation-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.foundation-col li {
  font-size: 0.85rem;
  color: var(--color-text);
  padding: 0.35rem 0;
  line-height: 1.4;
}

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

/* Advisors */
.advisors {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border-light);
}

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

.advisor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0.5rem;
  background: var(--color-surface);
  border-radius: 10px;
  border: 1px solid var(--color-border-light);
  gap: 0.25rem;
}

.advisor-card strong {
  font-size: 0.9rem;
  color: var(--color-text-strong);
  display: block;
}

.advisor-card span {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  display: block;
}

@media (max-width: 768px) {
  .advisors-grid { grid-template-columns: repeat(2, 1fr); }
  .locations-row { gap: 0.5rem; }
  .location-pill { font-size: 0.8rem; padding: 0.5rem 1rem; }
}

.partners-logos {
  max-width: 800px;
  margin: 2rem auto 0;
  text-align: center;
  overflow: hidden;
  padding: 2rem 2.5rem;
  background: var(--color-surface-muted);
  border-radius: 16px;
  border: 1px solid var(--color-border-light);
}

.partners-logos img {
  width: 100%;
  height: auto;
  opacity: 0.85;
  transition: opacity 300ms;
}

.partners-logos:hover img {
  opacity: 1;
}

/* ==========================================================================
   28a. Impact Strip
   ========================================================================== */

.impact-strip {
  padding: 3rem 0;
  background: var(--color-primary);
  color: #fff;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.impact-num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.impact-stat:first-child .impact-num {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.impact-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 480px) {
  .impact-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .impact-num { font-size: 1.75rem; }
}

/* ==========================================================================
   28a2. Pipeline (index.html: "The Pipeline")
   ========================================================================== */

.pipeline-visual {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
  margin: 3rem 0 2rem;
}

.pipeline-stage {
  flex: 1 1 140px;
  min-width: 120px;
  max-width: 200px;
  padding: 1.5rem 1rem;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(13, 20, 95, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.pipeline-stage:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(13, 20, 95, 0.08);
}

.pipeline-stage-num {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.pipeline-stage-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
}

.pipeline-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  font-size: 1.5rem;
  color: var(--color-accent);
  font-weight: 700;
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .pipeline-visual {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .pipeline-stage {
    max-width: 100%;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
  }
  .pipeline-stage-num {
    font-size: 1.75rem;
  }
  .pipeline-stage-label {
    font-size: 0.85rem;
  }
  .pipeline-arrow {
    transform: rotate(90deg);
    padding: 0.15rem 0;
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   28b. Vision Section
   ========================================================================== */

.vision-section {
  background: var(--color-surface-muted);
  border-top: 1px solid var(--color-border-light);
}

.vision-framing {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.vision-card {
  padding: 2rem;
  background: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--color-border-light);
  border-top: 3px solid var(--color-border-light);
  transition: border-color 200ms, box-shadow 200ms;
}

.vision-card:nth-child(1) { border-top-color: var(--color-accent); }
.vision-card:nth-child(2) { border-top-color: var(--color-secondary); }
.vision-card:nth-child(3) { border-top-color: var(--color-primary); }

.vision-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.vision-year {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}

.vision-card p {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.65;
  margin: 0;
}

.vision-cta {
  text-align: center;
  margin-top: 3rem;
}

.vision-bridge {
  font-size: 1.1rem;
  color: var(--color-text);
  max-width: 520px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
  font-style: italic;
}

.testimonials-bridge {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto 2rem;
}

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

.testimonial {
  margin: 0;
  padding: 2rem 2rem 1.5rem;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 3px solid var(--color-accent);
  border-radius: 0 12px 12px 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.testimonial::before {
  content: "\201C";
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-accent);
  opacity: 0.2;
  position: absolute;
  top: 0.25rem;
  left: 0.75rem;
  line-height: 1;
  z-index: 0;
}

.testimonial p {
  font-size: 1rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.7;
  position: relative;
  z-index: 1;
  margin: 0;
}

.testimonial cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 600;
  color: var(--color-text-strong);
}

.vision-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.gift-anchors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem auto 1.5rem;
  max-width: 720px;
}

.gift-anchor {
  font-size: 0.9rem;
  color: var(--color-text);
  text-align: center;
  padding: 1.5rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  transition: border-color 200ms, box-shadow 200ms;
}

.gift-anchor:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 12px rgba(250,188,32,0.15);
}

.gift-anchor strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.vision-cta-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.vision-cta-note a {
  color: var(--color-text-muted);
  text-decoration: underline;
}

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

/* ==========================================================================
   28c. Contrast Section ("Same Campus, Two Realities")
   ========================================================================== */

.contrast-section {
  background: var(--color-surface);
}

.contrast-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  margin-top: 2.5rem;
  align-items: stretch;
}

.contrast-col {
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}

.contrast-col--without {
  background: #fafafa;
  border: 1px solid var(--color-border-light);
}

.contrast-col--with {
  background: #f0f0ff;
  border: 1px solid #DCD8F6;
}

.contrast-header {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-border-light);
}

.contrast-col--without .contrast-header {
  color: var(--color-text-muted);
}

.contrast-col--with .contrast-header {
  color: var(--color-primary);
  border-bottom-color: var(--color-secondary);
}

.contrast-row {
  margin-bottom: 1.25rem;
}

.contrast-row:last-child {
  margin-bottom: 0;
}

.contrast-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  margin-bottom: 0.2rem;
}

.contrast-value {
  font-size: 1.035rem;
  color: var(--color-text);
  line-height: 1.4;
}

.contrast-value--bad {
  font-weight: 700;
  color: #c0392b;
  font-size: 1.265rem;
}

.contrast-value--good {
  font-weight: 700;
  color: #2e7d32;
  font-size: 1.265rem;
}

.contrast-bar {
  display: block;
  height: 4px;
  border-radius: 2px;
  margin-top: 0.4rem;
}

.contrast-bar--bad {
  background: #c62828;
}

.contrast-bar--good {
  background: #2e7d32;
}

.contrast-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  min-height: 100%;
}

.contrast-divider-line {
  width: 1px;
  flex: 1;
  background: var(--color-border);
}

.contrast-divider-icon {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 0;
}

.contrast-footnote {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-style: italic;
}

@media (max-width: 768px) {
  .contrast-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .contrast-divider {
    flex-direction: row;
    padding: 0.5rem 0;
    min-height: auto;
  }
  .contrast-divider-line {
    width: auto;
    height: 1px;
    flex: 1;
  }
  .contrast-divider-icon {
    padding: 0 1rem;
  }
}

/* ==========================================================================
   28d. Impact Calculator
   ========================================================================== */

.impact-calc {
  margin-top: 3rem;
  padding: 2.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  text-align: center;
}

.impact-calc-header h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.impact-calc-header p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.impact-calc-slider {
  max-width: 480px;
  margin: 2rem auto;
}

.impact-calc-label {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-strong);
  margin-bottom: 0.75rem;
}

.impact-calc-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
}

.impact-calc-slider input[type="range"] {
  height: 10px;
  background: #e8e8e8;
  border-radius: 5px;
}

.impact-calc-slider input[type="range"]::-webkit-slider-thumb {
  width: 32px;
  height: 37px;
  background: var(--color-accent);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(250, 188, 32, 0.4);
}

.impact-calc-slider input[type="range"]::-moz-range-thumb {
  width: 32px;
  height: 37px;
  background: var(--color-accent);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(250, 188, 32, 0.4);
}

.impact-calc-range-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--color-text-faint);
  margin-top: 0.25rem;
}

.impact-calc-hint-desktop {
  display: block;
}

.impact-calc-hint-mobile {
  display: none;
}

.impact-calc-buttons {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem auto;
  max-width: 320px;
}

.impact-calc-btn {
  flex: 1;
  min-width: 80px;
  padding: 0.75rem 1rem;
  background: var(--color-surface-muted);
  border: 2px solid var(--color-border-light);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all 150ms;
  text-align: center;
}

.impact-calc-btn:active,
.impact-calc-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-onyx);
  font-weight: 600;
}

.impact-calc-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.impact-calc-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-light);
}

.impact-calc-result-num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.impact-calc-result-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.3;
}

.impact-calc-note {
  margin-top: 1.25rem;
  font-size: 0.7rem;
  color: var(--color-text-faint);
  font-style: italic;
}

@media (max-width: 768px) {
  .impact-calc-hint-desktop {
    display: none;
  }
  .impact-calc-hint-mobile {
    display: block;
  }
  .impact-calc-slider {
    display: none;
  }
  .impact-calc-buttons {
    display: flex;
  }
}

@media (max-width: 480px) {
  .impact-calc {
    padding: 1.5rem;
  }
  .impact-calc-results {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .impact-calc-buttons {
    flex-direction: column;
    max-width: 100%;
  }
  .impact-calc-btn {
    min-width: unset;
    width: 100%;
  }
}

/* ==========================================================================
   28b. Scroll Reveal Animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Directional reveals */
.reveal--left { opacity: 0; transform: translateX(-32px); transition: opacity 0.25s cubic-bezier(0.16,1,0.3,1), transform 0.25s cubic-bezier(0.16,1,0.3,1); }
.reveal--right { opacity: 0; transform: translateX(32px); transition: opacity 0.25s cubic-bezier(0.16,1,0.3,1), transform 0.25s cubic-bezier(0.16,1,0.3,1); }
.reveal--scale { opacity: 0; transform: scale(0.92); transition: opacity 0.25s cubic-bezier(0.16,1,0.3,1), transform 0.25s cubic-bezier(0.16,1,0.3,1); }
.reveal--blur { opacity: 0; filter: blur(8px); transition: opacity 0.25s cubic-bezier(0.16,1,0.3,1), filter 0.25s cubic-bezier(0.16,1,0.3,1); }

.reveal--left.reveal--visible,
.reveal--right.reveal--visible,
.reveal--scale.reveal--visible,
.reveal--blur.reveal--visible { opacity: 1; transform: none; filter: none; }

/* Stagger children — works for all reveal variants */
.reveal-stagger > :nth-child(1) { transition-delay: 0s; }
.reveal-stagger > :nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > :nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > :nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger > :nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger > :nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger > :nth-child(7) { transition-delay: 0.48s; }
.reveal-stagger > :nth-child(8) { transition-delay: 0.56s; }
.reveal-stagger > :nth-child(9) { transition-delay: 0.64s; }
.reveal-stagger > :nth-child(10) { transition-delay: 0.72s; }

/* ==========================================================================
   29. Index Page Responsive Overrides
   ========================================================================== */

@media (max-width: 768px) {
  .hero { padding: 4rem 0 1.5rem; }
  .page-section { padding: 3rem 0; }
  .proto-card { grid-template-columns: 72px 1fr; gap: 0.75rem; padding: 0.75rem 1rem; }
  .proto-thumb, .proto-emoji { width: 72px; height: 56px; }
  .proto-actions { flex-direction: row; flex-wrap: wrap; grid-column: 1 / -1; }
  .principles { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-video { margin-top: 2rem; }
  .footer-nav { flex-wrap: wrap; gap: 1rem; }
  .footer-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .connect-section { padding: 3rem 0; }
  .vote-btn { font-size: 1.75rem; padding: 0.6rem 1.25rem; }

  /* Lightbox fullscreen on mobile */
  .view-lightbox {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
  }
  .view-lightbox-content { border-radius: 0; }

  /* Close buttons inside lightbox on mobile */
  .view-lightbox .modal-close,
  .video-lightbox .modal-close {
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    z-index: 10;
  }

  .modal-overlay { padding: 0.75rem; }
  #viewModal.modal-overlay { padding: 0; }

  /* Gift anchors stack on mobile */
  .gift-anchors { grid-template-columns: 1fr; gap: 0.75rem; max-width: 320px; margin-left: auto; margin-right: auto; }

  /* Impact calc slider touch target */
  .impact-calc-slider input[type="range"]::-webkit-slider-thumb { width: 44px; height: 44px; }
  .impact-calc-slider input[type="range"]::-moz-range-thumb { width: 44px; height: 44px; }
}

@media (max-width: 480px) {
  .proto-card { grid-template-columns: 1fr; text-align: center; }
  .proto-thumb, .proto-emoji { width: 100%; height: 160px; margin: 0; }
  .proto-info { text-align: left; }
  .proto-actions { justify-content: flex-start; }
  .hero-video { border-radius: 8px; }
  .sh { margin-bottom: 2rem; }
  .modal { padding: 1.25rem; max-height: 95vh; }
  .modal h2 { font-size: 1.25rem; padding-right: 2rem; }
  .vote-btn { font-size: 1.5rem; padding: 0.5rem 1rem; }
  .tab-bar { flex-wrap: wrap; }
  .modal-overlay { padding: 0; }
  #reviewModal.modal-overlay { padding: 0.5rem; }

  /* Bump small font sizes for mobile readability */
  .contrast-label,
  .type-tag,
  .build-time,
  .review-count,
  .impact-calc-range-labels span { font-size: 0.75rem; }
}

/* ==========================================================================
   30. Start Here Badge
   ========================================================================== */

.start-here-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-accent);
  color: var(--color-onyx);
  padding: 0.15em 0.6em;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ==========================================================================
   31. Contrast CTA
   ========================================================================== */

.contrast-cta {
  text-align: center;
  margin-top: 1.5rem;
}

/* ==========================================================================
   32. Impact Update Banner
   ========================================================================== */

.impact-update {
  padding: 0.75rem 0;
  background: var(--color-surface-muted);
  text-align: center;
  border-bottom: 1px solid var(--color-border-light);
}

.impact-update p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

.impact-update strong {
  color: var(--color-primary);
}

/* ==========================================================================
   33. Onboarding Guide
   ========================================================================== */

.onboarding-guide {
  padding: 3.5rem 0;
  background: var(--color-surface);
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.onboarding-step {
  text-align: center;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--color-border-light);
  background: var(--color-surface-muted);
  transition: all 200ms;
}

.onboarding-step:hover {
  border-color: var(--color-accent);
  background: #fffaf0;
  transform: translateY(-4px);
}

.onboarding-step-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  display: block;
}

.onboarding-step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-strong);
}

.onboarding-step p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .onboarding-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .onboarding-step-num {
    font-size: 1.75rem;
  }
  .onboarding-step h3 {
    font-size: 1rem;
  }
  .onboarding-step p {
    font-size: 0.85rem;
  }
}

@media (max-width: 640px) {
  .onboarding-guide {
    padding: 3rem 0;
  }

  .onboarding-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.75rem;
  }

  .onboarding-step {
    padding: 1.1rem 1rem;
  }
}

@media (max-width: 480px) {
  .onboarding-step {
    padding: 1rem;
  }
}

/* ==========================================================================
   34. Video Placeholder (click-to-play)
   ========================================================================== */

.video-placeholder {
  width: 100%;
  height: 100%;
  background-color: transparent;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 150ms;
}

.video-placeholder:hover {
  opacity: 0.9;
}

.video-play-btn {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--color-primary);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  transition: transform 200ms, box-shadow 200ms;
  padding-left: 4px;
}

.video-placeholder:hover .video-play-btn {
  transform: scale(1.08);
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.4);
}

@media (max-width: 480px) {
  .video-play-btn { width: 56px; height: 56px; font-size: 1.4rem; }
}

/* ==========================================================================
   34. Coming Soon Hook
   ========================================================================== */

.coming-soon-hook {
  text-align: center;
  padding: 2rem 0;
  margin-top: 1rem;
}

.coming-soon-hook p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
}

.coming-soon-hook a {
  color: var(--color-primary);
  font-weight: 600;
}

/* ==========================================================================
   35. Featured Tool Cards (Landing Page)
   ========================================================================== */

/* About CTA card */
.about-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.about-cta-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.25rem 2.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 200ms, box-shadow 200ms;
}

.about-cta-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(13,20,95,0.08);
  text-decoration: none;
}

.about-cta-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.about-cta-action {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
}

.featured-tools-wrap {
  position: relative;
}

.featured-tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 0.25rem 0 1rem;
}

.featured-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transition: border-color 200ms, box-shadow 200ms;
  text-decoration: none;
  color: inherit;
  display: block;
  scroll-snap-align: start;
}

.featured-card:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 2px 8px rgba(156,144,230,0.10), 0 8px 24px rgba(0,0,0,0.05);
  text-decoration: none;
}

.featured-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-surface-muted);
}

.featured-card-body {
  padding: 1rem 1.25rem;
}

.featured-card-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.featured-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-nav {
  display: none;
}

.featured-nav:hover {
  color: var(--color-text-strong);
}

.featured-nav--prev { left: -18px; }
.featured-nav--next { right: -18px; }

.featured-nav[disabled] {
  opacity: 0;
  pointer-events: none;
}

.featured-tools-cta {
  text-align: center;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .featured-tools { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .featured-tools { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Credibility Strip (Editorial)
   ========================================================================== */

.cred-strip {
  background: var(--color-primary);
  padding: 1.25rem 0;
}

.cred-row {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  text-align: center;
}

.cred-item {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.cred-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

@media (max-width: 600px) {
  .cred-row { gap: 1.5rem; }
  .cred-item strong { font-size: 1.1rem; }
}

/* ==========================================================================
   Frontier Missions Section
   ========================================================================== */

.frontier-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, #fff 0%, #FDFCFA 100%);
  border-bottom: 1px solid #E8E4DD;
}

.pull-quote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--color-text-strong);
  border-left: 3px solid var(--color-accent);
  padding-left: 1.5rem;
  margin: 0 0 2.5rem;
}

.pull-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

.frontier-body {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 60ch;
}

.frontier-body strong {
  color: var(--color-primary);
  font-weight: 700;
}

.frontier-callout {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2.5rem;
  line-height: 1.3;
}

.frontier-quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #E8E4DD;
}

.voice-quote {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.6;
  color: #555;
  border: none;
  border-left: 2px solid var(--color-accent);
  padding: 0;
  padding-left: 1rem;
  margin: 0;
}

.voice-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-top: 0.75rem;
}

@media (max-width: 600px) {
  .frontier-quotes { grid-template-columns: 1fr; gap: 1.5rem; }
  .pull-quote { font-size: 1.1rem; }
}

/* ==========================================================================
   Three Metrics (Editorial)
   ========================================================================== */

.three-metrics-section {
  padding: 5rem 0;
}

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

.metric-item {
  text-align: center;
  padding: 2rem 1rem;
}

.metric-number {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-accent);
}

.metric-word {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
  margin-top: 0.25rem;
}

.metric-rule {
  width: 40px;
  height: 2px;
  background: var(--color-accent);
  margin: 1rem auto;
}

.metric-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 24ch;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .metrics-row { grid-template-columns: 1fr; gap: 1rem; }
  .metric-word { font-size: 2.2rem; }
  .metric-item { padding: 1rem; }
}

/* ==========================================================================
   Pipeline Flow (Editorial)
   ========================================================================== */

.pipeline-flow {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  margin: 3.5rem 0 2rem;
}

.pipeline-node {
  text-align: center;
  padding: 2rem 2.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  position: relative;
  flex: 1;
  max-width: 180px;
}

.pipeline-node-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.pipeline-node-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.pipeline-node-pct {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 0.5rem;
  opacity: 0.8;
}

.pipeline-connector {
  width: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pipeline-connector::after {
  content: '';
  width: 100%;
  height: 2px;
  background: var(--color-accent);
}

.pipeline-connector::before {
  content: '';
  position: absolute;
  right: 0;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--color-accent);
}

@media (max-width: 700px) {
  .pipeline-flow { flex-direction: column; align-items: center; }
  .pipeline-node { max-width: 100%; width: 200px; padding: 1.25rem; }
  .pipeline-node-num { font-size: 1.6rem; }
  .pipeline-connector { width: auto; height: 24px; min-width: auto; }
  .pipeline-connector::after { width: 2px; height: 100%; }
  .pipeline-connector::before {
    right: auto; bottom: 0; top: auto;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--color-accent);
  }
}

/* ==========================================================================
   Evidence Cards (Editorial)
   ========================================================================== */

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.evidence-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border-top: 3px solid var(--color-accent);
  position: relative;
}

.evidence-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(13, 20, 95, 0.06);
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  line-height: 1;
}

.evidence-card h3 {
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.evidence-card p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--color-text);
  line-height: 1.5;
}

/* ==========================================================================
   Certifications Strip
   ========================================================================== */

.certs-strip {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem 0;
  border-top: 1px solid #E8EAFF;
  border-bottom: 1px solid #E8EAFF;
}

.cert-badge {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
}

.cert-badge span {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-top: 0.15rem;
}

/* ==========================================================================
   Alumni Grid
   ========================================================================== */

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.alumni-card {
  background: var(--color-surface-muted);
  padding: 1.5rem;
  border-radius: 10px;
}

.alumni-card strong {
  display: block;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.alumni-card p {
  font-size: 0.9rem;
  color: var(--color-text);
  margin: 0;
}

/* ==========================================================================
   Board Grid
   ========================================================================== */

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.board-member {
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  background: var(--color-surface-muted);
  border-radius: 8px;
}

.board-member strong {
  display: block;
  color: var(--color-text-strong);
}

.board-member span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
