/* ═══════════════════════════════════════════════════
   SCIA IMPACT FUND — styles.css
   Shared across all pages
═══════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --white:     #ffffff;
  --off-white: rgba(255,255,255,0.82);
  --mid:       rgba(255,255,255,0.45);
  --dim:       rgba(255,255,255,0.22);
  --ghost:     rgba(255,255,255,0.08);
  --border:    rgba(255,255,255,0.07);
}

html { background: #000; overflow-x: hidden; }

body {
  background: #000;
  color: var(--white);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); }

/* ─── PROGRESS BAR ─── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 1px;
  width: 0%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0.9) 100%);
  z-index: 100;
  transition: width 0.1s linear;
}

/* ─── NOISE TEXTURE ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.018;
  pointer-events: none;
  z-index: 0;
}

/* ─── CURSOR ─── */
.cursor-dot {
  position: fixed;
  width: 4px; height: 4px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}
.cursor-ring {
  position: fixed;
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

/* ─── NAVBAR ─── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  padding: 22px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.5s cubic-bezier(0.16,1,0.3,1),
              background 0.5s ease,
              border-color 0.5s ease,
              backdrop-filter 0.5s ease;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  padding: 14px 56px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: var(--border);
}
@media (max-width: 768px) {
  #navbar { padding: 20px 24px; }
  #navbar.scrolled { padding: 14px 24px; }
}

/* Brand */
.nav-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}
.nav-brand-main {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: #fff;
}
.nav-brand-sub {
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

/* Scroll-activated logo mark in navbar */
.nav-logo-mark {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
  flex-shrink: 0;
}
#navbar.scrolled .nav-logo-mark {
  opacity: 1;
  transform: scale(1);
}

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 36px; }

.nav-link {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  position: relative;
  transition: color 0.3s ease;
  text-decoration: none;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: rgba(255,255,255,0.5);
  transition: width 0.35s cubic-bezier(0.16,1,0.3,1);
}
.nav-link:hover { color: rgba(255,255,255,0.75); }
.nav-link:hover::after { width: 100%; }

/* Active page indicator */
.nav-link.active {
  color: rgba(255,255,255,0.72);
}
.nav-link.active::after {
  width: 100%;
  background: rgba(255,255,255,0.35);
}

/* ─── HERO ─── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#hero-bg-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}
#hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 120px 24px 100px;
  max-width: 900px;
  margin: 0 auto;
}

/* Logo */
#logo-wrap {
  margin-bottom: 56px;
  will-change: transform;
}
#logo-svg {
  width: clamp(130px, 17vw, 185px);
  height: auto;
  display: block;
}
#logo-glow-layer {
  animation: breathe 4.5s ease-in-out infinite;
  transform-origin: center;
}
@keyframes breathe {
  0%, 100% {
    filter: drop-shadow(0 0 14px rgba(255,255,255,0.28))
            drop-shadow(0 0 35px rgba(255,255,255,0.10));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 28px rgba(255,255,255,0.55))
            drop-shadow(0 0 70px rgba(255,255,255,0.22))
            drop-shadow(0 0 120px rgba(255,255,255,0.08));
    transform: scale(1.025);
  }
}
#logo-rays {
  animation: slow-spin 90s linear infinite;
  transform-origin: center;
}
@keyframes slow-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Hero text */
.hero-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 28px;
}
.hero-rule {
  width: 32px; height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 0 auto 36px;
}
#hero-h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.6rem, 6.8vw, 5.8rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 0;
}
#hero-h1 em {
  font-style: italic;
  color: rgba(255,255,255,0.62);
}
.hero-sub {
  margin-top: 28px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
  line-height: 1.7;
  max-width: 520px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 52px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Scroll indicator */
#scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
#scroll-indicator span {
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
}
.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.25), transparent);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 15px 42px;
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.72);
  background: transparent;
  text-decoration: none;
  transition: color 0.35s ease, background 0.35s ease, border-color 0.35s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.04);
  transform: translateX(-101%);
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
}
.btn-primary:hover {
  color: #000;
  background: #fff;
  border-color: #fff;
  transform: translateY(-1px);
}
.btn-primary:hover::before { transform: translateX(0); }

.btn-ghost {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 15px 42px;
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.28);
  background: transparent;
  text-decoration: none;
  transition: color 0.35s ease, border-color 0.35s ease, transform 0.2s ease;
  cursor: pointer;
}
.btn-ghost:hover {
  color: rgba(255,255,255,0.65);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: 180px 0 110px;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .page-hero { padding: 130px 0 80px; }
}

/* ─── SECTIONS ─── */
section {
  padding: 130px 0;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  section { padding: 88px 0; }
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 56px;
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
}

.section-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ─── OVERLINE ─── */
.overline {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  margin-bottom: 16px;
  display: block;
}
.rule-sm {
  width: 28px; height: 1px;
  background: rgba(255,255,255,0.18);
  margin-top: 4px;
}

/* ─── DISPLAY HEADINGS ─── */
.display-lg {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.2rem, 4.5vw, 3.9rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: #fff;
}
.display-lg em {
  font-style: italic;
  color: rgba(255,255,255,0.6);
}
.display-xl {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: #fff;
}
.display-xl em {
  font-style: italic;
  color: rgba(255,255,255,0.6);
}

/* ─── BODY TEXT ─── */
.body-lg {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  font-weight: 300;
  line-height: 1.95;
  color: rgba(255,255,255,0.52);
  letter-spacing: 0.01em;
}
.body-md {
  font-size: clamp(0.85rem, 1.1vw, 0.97rem);
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.01em;
}
.body-sm {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.82;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.01em;
}

/* ─── DIVIDERS ─── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  margin: 0 56px;
}
@media (max-width: 768px) {
  .divider { margin: 0 24px; }
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.95s cubic-bezier(0.16,1,0.3,1),
              transform 0.95s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.36s; }
.d5 { transition-delay: 0.48s; }

.line-draw {
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(0.16,1,0.3,1);
}
.line-draw.in { transform: scaleX(1); }

/* ─── HERO INIT STATE ─── */
.hero-init {
  opacity: 0;
  transform: translateY(20px);
}

/* ─── STATS CARDS ─── */
.stats-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0;
}
@media (max-width: 640px) {
  .stats-card-grid { grid-template-columns: 1fr; }
}
.stats-card {
  padding: 56px 40px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  position: relative;
  transition: background 0.4s ease;
}
.stats-card:last-child { border-right: none; }
.stats-card:hover { background: rgba(255,255,255,0.012); }
@media (max-width: 640px) {
  .stats-card { border-right: none; padding: 40px 0; }
}
.stats-card-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.8rem, 4.5vw, 3.8rem);
  font-weight: 400;
  color: #fff;
  line-height: 1;
  margin-bottom: 10px;
}
.stats-card-label {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  margin-bottom: 14px;
}

/* Legacy stat-block (kept for compatibility) */
.stat-block {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.stat-block + .stat-block { border-left: 1px solid var(--border); padding-left: 40px; }
@media (max-width: 640px) {
  .stat-block + .stat-block { border-left: none; padding-left: 0; border-top: 1px solid var(--border); }
}
.stat-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 400;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 10px;
}

/* ─── DUAL MANDATE COLUMNS ─── */
.mandate-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  margin-top: 64px;
}
@media (max-width: 768px) {
  .mandate-grid { grid-template-columns: 1fr; gap: 48px; }
}
.mandate-col { padding: 0 52px 0 0; }
.mandate-col:last-child { padding: 0 0 0 52px; }
@media (max-width: 768px) {
  .mandate-col, .mandate-col:last-child { padding: 0; }
}
.mandate-divider {
  background: var(--border);
  width: 1px;
}
@media (max-width: 768px) { .mandate-divider { display: none; } }
.mandate-col-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 32px;
  display: block;
}
.mandate-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mandate-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  font-weight: 300;
  color: rgba(255,255,255,0.48);
  line-height: 1.75;
}
.mandate-list li::before {
  content: '—';
  color: rgba(255,255,255,0.2);
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.9em;
}

/* ─── CTA STRIP ─── */
.cta-strip {
  padding: 130px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-strip-eyebrow {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
  margin-bottom: 28px;
  display: block;
}
.cta-strip-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
  line-height: 1.1;
}
.cta-strip-sub {
  font-size: clamp(0.85rem, 1.2vw, 0.97rem);
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  margin-bottom: 48px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.9;
}

/* ─── PILLARS ─── */
.pillar {
  border-top: 1px solid var(--border);
  padding: 36px 0 36px 28px;
  border-left: 1px solid transparent;
  position: relative;
  transition: border-left-color 0.4s ease, background 0.4s ease;
}
.pillar::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.18);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.pillar:hover::before { transform: scaleY(1); }
.pillar:hover { background: rgba(255,255,255,0.013); }
.pillar-num {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ghost);
  margin-bottom: 12px;
}
.pillar-title {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

/* Pillar 2x2 grid (strategy page) */
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 64px;
}
@media (max-width: 768px) {
  .pillar-grid { grid-template-columns: 1fr; }
}
.pillar-card {
  background: #000;
  padding: 56px 52px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
}
.pillar-card:hover { background: rgba(255,255,255,0.015); }
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.2), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1);
}
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-card-num {
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ghost);
  margin-bottom: 20px;
  display: block;
}
.pillar-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  margin-bottom: 18px;
  line-height: 1.2;
}

/* ─── PHILOSOPHY QUOTE ─── */
.quote-section {
  padding: 130px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}
.quote-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.62);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 36px;
  letter-spacing: -0.01em;
}
.quote-attribution {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
}

/* ─── FUNCTION TAGS ─── */
.fn-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 9px 18px;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  cursor: default;
}
.fn-tag:hover {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.03);
}

/* ─── GOVERNANCE GRID ─── */
.gov-item {
  padding: 40px;
  border: 1px solid var(--border);
  transition: border-color 0.4s ease, background 0.4s ease;
}
.gov-item:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.018);
}

/* ─── TEAM GRID ─── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.team-member {
  background: #000;
  padding: 40px 32px;
  transition: background 0.35s ease;
}
.team-member:hover { background: rgba(255,255,255,0.018); }
.team-member-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.12rem;
  font-weight: 400;
  color: rgba(255,255,255,0.78);
  margin-bottom: 8px;
  line-height: 1.2;
}
.team-member-title {
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.5;
}

/* ─── ROLES SECTION ─── */
.roles-category { margin-bottom: 0; }
.roles-category-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 0 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.roles-category-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  white-space: nowrap;
}
.roles-category-line { flex: 1; height: 1px; background: rgba(255,255,255,0.05); }

.role-row {
  border-top: 1px solid rgba(255,255,255,0.055);
  cursor: pointer;
  position: relative;
  transition: background 0.4s cubic-bezier(0.16,1,0.3,1);
  overflow: hidden;
}
.role-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.role-row:hover { background: rgba(255,255,255,0.018); }
.role-row:hover::before { background: rgba(255,255,255,0.35); box-shadow: 1px 0 12px rgba(255,255,255,0.08); }
.role-row.open { background: rgba(255,255,255,0.022); }
.role-row.open::before { background: rgba(255,255,255,0.5); box-shadow: 1px 0 18px rgba(255,255,255,0.12); }

.role-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 28px;
  gap: 24px;
}
.role-row-left { display: flex; flex-direction: column; gap: 5px; }
.role-title {
  font-size: clamp(0.92rem, 1.4vw, 1.08rem);
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.005em;
  transition: color 0.3s ease;
}
.role-row:hover .role-title, .role-row.open .role-title { color: #fff; }
.role-type-tag {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
  transition: color 0.3s ease;
}
.role-row:hover .role-type-tag, .role-row.open .role-type-tag { color: rgba(255,255,255,0.45); }

.role-row-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.role-status {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
  display: none;
}
@media (min-width: 640px) { .role-status { display: block; } }

.role-toggle {
  width: 28px; height: 28px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.35s ease, background 0.35s ease;
  flex-shrink: 0;
}
.role-toggle svg { transition: transform 0.45s cubic-bezier(0.16,1,0.3,1); }
.role-row.open .role-toggle { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.06); }
.role-row.open .role-toggle svg { transform: rotate(45deg); }
.role-row:hover .role-toggle { border-color: rgba(255,255,255,0.22); }

.role-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.16,1,0.3,1);
}
.role-body.open { max-height: 400px; }

.role-body-inner {
  padding: 0 28px 32px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 640px) { .role-body-inner { grid-template-columns: 1fr; gap: 20px; } }

.role-description {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255,255,255,0.48);
}
.role-meta { display: flex; flex-direction: column; gap: 16px; }
.role-meta-item { display: flex; flex-direction: column; gap: 4px; }
.role-meta-label {
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
}
.role-meta-value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(255,255,255,0.42);
  line-height: 1.5;
}
.role-apply-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.role-apply-link:hover { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.5); }

/* Internship banner */
.intern-banner {
  border: 1px solid rgba(255,255,255,0.06);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.intern-dot {
  width: 5px; height: 5px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 3s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.8; }
}
.intern-banner-text {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
}

/* ─── RECRUITMENT ─── */
#recruitment { padding: 0 0 80px; }

.rec-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 52px 0 72px;
}
@media (max-width: 700px) { .rec-timeline { grid-template-columns: 1fr; } }

.rec-timeline::before {
  content: '';
  position: absolute;
  top: 11px;
  left: calc(12.5% + 4px);
  right: calc(12.5% + 4px);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 15%, rgba(255,255,255,0.1) 85%, transparent 100%);
  pointer-events: none;
}
@media (max-width: 700px) { .rec-timeline::before { display: none; } }

.rec-step {
  position: relative;
  padding: 0 24px 0 0;
  display: flex;
  flex-direction: column;
}
@media (max-width: 700px) {
  .rec-step { flex-direction: row; align-items: flex-start; gap: 20px; padding: 24px 0; border-top: 1px solid var(--border); }
  .rec-step:last-child { border-bottom: 1px solid var(--border); }
}

.rec-node {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: #000;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.rec-step:hover .rec-node { border-color: rgba(255,255,255,0.65); box-shadow: 0 0 14px rgba(255,255,255,0.2), 0 0 28px rgba(255,255,255,0.07); }
@media (max-width: 700px) { .rec-node { margin-bottom: 0; margin-top: 3px; } }

.rec-step-text { display: flex; flex-direction: column; gap: 6px; }
.rec-step-date {
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  transition: color 0.3s ease;
}
.rec-step:hover .rec-step-date { color: rgba(255,255,255,0.48); }
.rec-step-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 400;
  color: rgba(255,255,255,0.68);
  line-height: 1.35;
  transition: color 0.3s ease;
}
.rec-step:hover .rec-step-title { color: rgba(255,255,255,0.88); }

.rec-interview {
  border-top: 1px solid var(--border);
  padding: 34px 0 34px 28px;
  position: relative;
  transition: background 0.4s ease;
}
.rec-interview::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0);
  transition: background 0.45s cubic-bezier(0.16,1,0.3,1), box-shadow 0.45s ease;
}
.rec-interview:last-of-type { border-bottom: 1px solid var(--border); }
.rec-interview:hover { background: rgba(255,255,255,0.012); }
.rec-interview:hover::before { background: rgba(255,255,255,0.28); box-shadow: 1px 0 16px rgba(255,255,255,0.09); }

.rec-int-num {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.16);
  margin-bottom: 10px;
}
.rec-int-title { font-size: 1rem; font-weight: 500; color: rgba(255,255,255,0.8); letter-spacing: 0.01em; margin-bottom: 10px; }
.rec-int-body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  line-height: 1.85;
  max-width: 640px;
}

.rec-inclusion {
  margin-top: 48px;
  padding: 32px 36px;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, background 0.4s ease;
}
.rec-inclusion::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}
.rec-inclusion:hover { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.012); }
.rec-inclusion-label {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
  margin-bottom: 12px;
}
.rec-inclusion-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.42);
  line-height: 1.85;
}

.rec-carry {
  margin-top: 28px;
  padding: 28px 36px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: border-color 0.4s ease, background 0.4s ease;
}
.rec-carry:hover { border-color: rgba(255,255,255,0.09); background: rgba(255,255,255,0.01); }
.rec-carry-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  line-height: 1.85;
}

/* ─── MARQUEE ─── */
#founding { padding: 100px 0; position: relative; z-index: 1; overflow: hidden; }
#founding .container { margin-bottom: 56px; }

.marquee-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 32px 0;
}
.marquee-stage::before, .marquee-stage::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 180px;
  z-index: 3;
  pointer-events: none;
}
.marquee-stage::before { left: 0; background: linear-gradient(90deg, #000 0%, transparent 100%); }
.marquee-stage::after  { right: 0; background: linear-gradient(-90deg, #000 0%, transparent 100%); }

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-scroll 52s linear infinite;
  will-change: transform;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-item { display: flex; align-items: center; padding: 0 52px; flex-shrink: 0; }
.marquee-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: default;
  transition: opacity 0.4s ease;
}
.marquee-track:not(:hover) .marquee-wordmark { opacity: 0.65; }
.marquee-track:hover .marquee-wordmark { opacity: 0.2; }
.marquee-track:hover .marquee-wordmark:hover { opacity: 1; }
.marquee-wordmark:hover .marquee-wm-name {
  color: rgba(255,255,255,0.92);
  text-shadow: 0 0 18px rgba(255,255,255,0.38), 0 0 48px rgba(255,255,255,0.14);
}

.marquee-wm-name {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color 0.4s ease, text-shadow 0.4s ease;
  white-space: nowrap;
}
.marquee-wm-name.serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: none;
  color: rgba(255,255,255,0.6);
}

.marquee-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 48px;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}
.footer-social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-social-link:hover { color: rgba(255,255,255,0.58); }
.footer-social-link svg { opacity: 0.55; transition: opacity 0.3s ease; }
.footer-social-link:hover svg { opacity: 1; }

/* ─── MOBILE MENU ─── */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
#mobile-menu.open { opacity: 1; pointer-events: auto; }
#mobile-menu .nav-link { font-size: 0.7rem; color: var(--dim); }

/* ─── ALTERNATING SECTION BACKGROUND ─── */
.section-alt { background: rgba(255,255,255,0.018); }
