/* =========================================================
   ABOUT PAGE — additional styles
   ========================================================= */

/* --- MISSION HERO --- */
.mission-hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  text-align: center;
}

.mission-inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
}

.mission-headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.875rem, 3.6vw, 3.25rem);
  line-height: 1.18;
  color: var(--forest);
  letter-spacing: -0.02em;
  margin-top: 18px;
}

.mission-pause {
  display: block;
  margin-top: 22px;
  font-style: italic;
  color: var(--teal);
}

/* --- FOUNDER INTRO --- */
.founder-intro {
  padding: clamp(56px, 7vw, 90px) 0 clamp(72px, 9vw, 110px);
}

.founder-intro-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: center;
}

.founder-intro-photo {
  position: relative;
  max-width: 460px;
}

.founder-intro-photo img {
  border-radius: 20px;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 0 50px 100px -20px rgba(28, 58, 46, 0.25);
}

.founder-intro-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  padding: 20px 26px;
  background: rgba(255,255,255,0.88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: 0 24px 50px -16px rgba(28, 58, 46, 0.20);
}

.founder-intro-badge-label {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 6px;
}

.founder-intro-badge-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--forest);
  letter-spacing: -0.01em;
}

.founder-intro-content h2 {
  margin-bottom: 22px;
}

@media (max-width: 980px) {
  .founder-intro-grid { grid-template-columns: 1fr; gap: 80px; }
  .founder-intro-photo { margin: 0 auto; }
}

/* --- TIMELINE --- */
.timeline {
  padding: clamp(56px, 7vw, 90px) 0 clamp(72px, 9vw, 110px);
}

.timeline-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 72px;
}

.timeline-heading .eyebrow { display: inline-flex; justify-content: center; }

.timeline-track {
  display: flex;
  flex-direction: column;
  gap: 60px;
  position: relative;
}

/* Vertical line through the middle */
.timeline-track::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--paper-3) 8%, var(--paper-3) 92%, transparent);
  z-index: 0;
}

.chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.chapter.reverse { direction: rtl; }
.chapter.reverse > * { direction: ltr; }

.chapter-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.chapter-marker {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 24px;
  background: rgba(255,255,255,0.78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: 0 12px 28px -10px rgba(28, 58, 46, 0.12);
  z-index: 2;
}

.chapter-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--teal);
  letter-spacing: 0.04em;
}

.chapter-year {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
}

.chapter-illus {
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chapter-illus svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 32px rgba(28, 58, 46, 0.08));
}

/* ========== CHAPTER ILLUSTRATION ANIMATIONS ========== */

/* Chapter 1: Compass — needle slowly rotates */
.chapter-illus .compass-needle {
  transform-origin: 120px 120px;
  animation: compass-wander 14s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.chapter-illus .compass-ring {
  transform-origin: 120px 120px;
  animation: compass-ring-spin 60s linear infinite;
}
@keyframes compass-wander {
  0%, 100% { transform: rotate(-12deg); }
  25%      { transform: rotate(8deg); }
  50%      { transform: rotate(-4deg); }
  75%      { transform: rotate(14deg); }
}
@keyframes compass-ring-spin {
  to { transform: rotate(360deg); }
}

/* Chapter 2: Math floor — signals flowing in from left */
.chapter-illus .signal-line {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: signal-flow 4s ease-in-out infinite;
}
.chapter-illus .signal-line:nth-of-type(1) { animation-delay: 0s; }
.chapter-illus .signal-line:nth-of-type(2) { animation-delay: 0.4s; }
.chapter-illus .signal-line:nth-of-type(3) { animation-delay: 0.8s; }
.chapter-illus .signal-line:nth-of-type(4) { animation-delay: 1.2s; }
@keyframes signal-flow {
  0%   { stroke-dashoffset: 220; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { stroke-dashoffset: -220; opacity: 0; }
}
.chapter-illus .signal-out {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: signal-out-flow 4s ease-in-out infinite;
}
.chapter-illus .signal-out:nth-of-type(5) { animation-delay: 1.4s; }
.chapter-illus .signal-out:nth-of-type(6) { animation-delay: 1.8s; }
.chapter-illus .signal-out:nth-of-type(7) { animation-delay: 2.2s; }
@keyframes signal-out-flow {
  0%, 30% { stroke-dashoffset: 100; opacity: 0; }
  50%     { opacity: 1; }
  80%     { stroke-dashoffset: 0; opacity: 1; }
  100%    { stroke-dashoffset: -100; opacity: 0; }
}
.chapter-illus .signal-hub {
  transform-origin: 120px 120px;
  animation: signal-hub-pulse 2.4s ease-out infinite;
}
@keyframes signal-hub-pulse {
  0%   { transform: scale(1); opacity: 1; }
  60%  { transform: scale(1.18); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

/* Chapter 3: Network — nodes pulse one at a time, lines glow on a cycle */
.chapter-illus .net-node {
  transform-origin: center;
  animation: net-pulse 5s ease-in-out infinite;
}
.chapter-illus .net-node-1 { animation-delay: 0s; transform-origin: 120px 60px; }
.chapter-illus .net-node-2 { animation-delay: 0.6s; transform-origin: 170px 100px; }
.chapter-illus .net-node-3 { animation-delay: 1.2s; transform-origin: 160px 160px; }
.chapter-illus .net-node-4 { animation-delay: 1.8s; transform-origin: 100px 170px; }
.chapter-illus .net-node-5 { animation-delay: 2.4s; transform-origin: 70px 110px; }
@keyframes net-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%      { transform: scale(1.6); opacity: 1; }
}
.chapter-illus .net-center {
  transform-origin: 120px 120px;
  animation: net-center-pulse 3s ease-out infinite;
}
@keyframes net-center-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(0.92); }
}
.chapter-illus .net-center-ring {
  transform-origin: 120px 120px;
  animation: net-ring-expand 3s ease-out infinite;
}
@keyframes net-ring-expand {
  0%   { opacity: 0.6; r: 14; }
  100% { opacity: 0; r: 38; }
}

/* Chapter 4: Door opening — light beams flicker */
.chapter-illus .light-beam {
  animation: light-flicker 3.5s ease-in-out infinite;
  transform-origin: 180px 120px;
}
.chapter-illus .light-beam:nth-of-type(1) { animation-delay: 0s; }
.chapter-illus .light-beam:nth-of-type(2) { animation-delay: 0.2s; }
.chapter-illus .light-beam:nth-of-type(3) { animation-delay: 0.4s; }
.chapter-illus .light-beam:nth-of-type(4) { animation-delay: 0.6s; }
@keyframes light-flicker {
  0%, 100% { opacity: 0.3; transform: translateX(0) scale(1); }
  50%      { opacity: 0.9; transform: translateX(3px) scale(1.04); }
}

/* Chapter 5: Sentinel shield — rays orbit and glow */
.chapter-illus .shield-ray {
  transform-origin: 120px 120px;
  animation: shield-ray-spin 14s linear infinite, shield-ray-glow 3s ease-in-out infinite;
}
@keyframes shield-ray-spin {
  to { transform: rotate(360deg); }
}
@keyframes shield-ray-glow {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.85; }
}
.chapter-illus .shield-mark {
  animation: shield-breathe 5s ease-in-out infinite;
  transform-origin: 120px 120px;
}
@keyframes shield-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.025); }
}

@media (prefers-reduced-motion: reduce) {
  .chapter-illus * { animation: none !important; }
}

.chapter-content h3 {
  font-size: clamp(1.625rem, 2.6vw, 2rem);
  margin-bottom: 18px;
  letter-spacing: -0.015em;
}

.chapter-content p {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--ink-2);
}

.chapter-content p:last-child {
  margin-bottom: 0;
}

.chapter-content em {
  font-style: italic;
  color: var(--teal);
}

@media (max-width: 980px) {
  .timeline-track::before { left: 32px; }
  .chapter,
  .chapter.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    direction: ltr;
    padding-left: 0;
  }
  .chapter.reverse > * { direction: ltr; }
  .chapter-side { flex-direction: row; justify-content: flex-start; align-self: flex-start; }
  .chapter-illus { width: 140px; height: 140px; }
}

/* --- PHILOSOPHY --- */
.philosophy {
  padding: clamp(72px, 9vw, 110px) 0;
}

.philosophy .section-heading { text-align: center; margin-left: auto; margin-right: auto; }
.philosophy .section-heading .eyebrow { display: flex; justify-content: center; }

.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.belief {
  position: relative;
  padding: 40px 36px 36px;
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.belief:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -24px rgba(28, 58, 46, 0.18);
}

.belief-mark {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.875rem;
  color: var(--teal);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  line-height: 1;
}

.belief h3 {
  font-size: 1.375rem;
  margin-bottom: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.belief p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-2);
}

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

/* --- FOUNDER QUOTE --- */
.founder-quote {
  padding: clamp(56px, 7vw, 90px) 0;
}

.founder-quote-card {
  position: relative;
  padding: 56px 56px 48px;
  background: linear-gradient(135deg, rgba(168,213,197,0.20), rgba(255,255,255,0.6));
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  backdrop-filter: saturate(170%) blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  text-align: center;
  box-shadow: 0 36px 70px -24px rgba(28, 58, 46, 0.18);
}

.quote-mark {
  width: 44px;
  height: 44px;
  color: var(--teal);
  margin: 0 auto 24px;
  display: block;
}

.founder-quote blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  line-height: 1.4;
  color: var(--forest);
  margin: 0 auto 40px;
  letter-spacing: -0.015em;
  max-width: 840px;
}

.founder-quote cite {
  font-style: normal;
  display: block;
}

.founder-quote-author {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--forest);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.founder-quote-title {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
}

@media (max-width: 720px) {
  .founder-quote-card { padding: 40px 28px; }
}

/* --- HOW WE WORK --- */
.how-we-work {
  padding: clamp(72px, 9vw, 110px) 0;
}

.habits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.habit {
  padding: 36px 32px;
  background: rgba(255,255,255,0.7);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.habit:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -20px rgba(28, 58, 46, 0.16);
}

.habit-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--mint-3), var(--mint));
  display: flex; align-items: center; justify-content: center;
  color: var(--forest);
  margin-bottom: 24px;
}

.habit-icon svg { width: 28px; height: 28px; }

.habit h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--forest);
  margin-bottom: 14px;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

.habit p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-2);
}

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

/* --- TEAM STATS --- */
.team .section-heading .eyebrow { display: flex; justify-content: center; }

.team-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-stat {
  padding: 32px 28px;
  background: rgba(255,255,255,0.68);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.team-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -20px rgba(28, 58, 46, 0.18);
}

.team-stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--forest);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}

.team-stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 16px;
}

.team-stat p {
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.team-placeholder {
  margin-top: 48px;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-3);
  font-size: 0.9375rem;
}

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

/* --- PRINCIPLES --- */
.principles {
  padding: clamp(56px, 7vw, 90px) 0 clamp(72px, 9vw, 110px);
}

.principles .section-heading .eyebrow { display: flex; justify-content: center; }

.principles-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.principle {
  display: grid;
  grid-template-columns: 60px 80px 1fr;
  gap: 28px;
  align-items: flex-start;
  padding: 36px 36px;
  background: rgba(255,255,255,0.7);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.principle:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -20px rgba(28, 58, 46, 0.18);
}

.principle-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--teal);
  letter-spacing: 0.02em;
  padding-top: 4px;
}

.principle-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--mint-3), var(--mint));
  display: flex; align-items: center; justify-content: center;
  color: var(--forest);
  flex-shrink: 0;
}

.principle-icon svg { width: 32px; height: 32px; }

.principle-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.principle-content p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
}

@media (max-width: 720px) {
  .principle {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 24px;
  }
  .principle-icon { width: 48px; height: 48px; }
}

/* --- LOCATION --- */
.location { padding: clamp(72px, 9vw, 110px) 0; }

.location-shell {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: rgba(255,255,255,0.7);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 36px 70px -28px rgba(28, 58, 46, 0.18);
}

.location-text {
  padding: 56px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-text h2 { margin: 18px 0 22px; }

.location-text p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.location-meta {
  padding: 56px 56px;
  background: linear-gradient(135deg, rgba(168, 213, 197, 0.22), rgba(255, 255, 255, 0.55));
  border-left: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.location-meta-row { display: flex; flex-direction: column; gap: 8px; }

.location-meta-label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
}

.location-meta-value {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--forest);
  letter-spacing: -0.005em;
}

.location-meta-value a {
  color: var(--forest);
  border-bottom: 1px solid var(--mint);
  transition: border-color 0.2s var(--ease);
}

.location-meta-value a:hover { border-color: var(--forest); }

.location-meta-divider {
  height: 1px;
  background: rgba(28, 58, 46, 0.08);
}

@media (max-width: 880px) {
  .location-shell { grid-template-columns: 1fr; }
  .location-text { padding: 40px 32px 24px; }
  .location-meta {
    padding: 32px;
    border-left: none;
    border-top: 1px solid var(--glass-border);
  }
}
