/* ============================================================
   About page — section-specific styles
   ============================================================ */

/* Reuse common .section-head and word-reveal pattern */
.section-head {
  max-width: 760px;
  text-align: left;
}
.section-head .eyebrow { display: inline-block; margin-bottom: var(--space-3); }
.section-head h2 { margin-bottom: var(--space-3); }
.section-head .lead { color: var(--ink-muted); }

/* Word-reveal (shared with home) */
[data-split] .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
[data-split].is-revealed .word { opacity: 1; transform: translateY(0); }

/* ============================================================
   SECTION 2 — HERO (centered + constellation)
   ============================================================ */

.about-hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + var(--space-9));
  padding-bottom: var(--space-9);
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.about-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, var(--lavender) 0%, transparent 60%);
}

.constellation {
  width: 100%;
  height: 100%;
  opacity: 0.7;
}
.constellation-dots circle {
  fill: var(--accent);
  opacity: 0.3;
  animation: dot-glow 4s ease-in-out infinite;
}
@keyframes dot-glow {
  0%, 100% { opacity: 0.2; r: 2; }
  50%      { opacity: 0.8; r: 3.5; }
}
.constellation-lines line {
  stroke: var(--accent);
  stroke-opacity: 0;
  stroke-width: 1;
  animation: line-flash 6s ease-in-out infinite;
}
@keyframes line-flash {
  0%, 100% { stroke-opacity: 0; }
  50%      { stroke-opacity: 0.25; }
}

.about-hero-inner {
  max-width: 980px;
  margin-inline: auto;
}
.about-hero-chip {
  margin-bottom: var(--space-5);
}
.about-hero-headline {
  font-size: var(--fs-120);
  font-weight: 800;
  letter-spacing: var(--ls-tighter);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-5);
}
.about-hero-sub {
  margin-inline: auto;
  margin-bottom: var(--space-7);
  max-width: 64ch;
  color: var(--ink-muted);
}
.about-hero-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   SECTION 3 — COMPANY STORY (editorial magazine)
   ============================================================ */

.story-section { background: var(--surface-1); }

.story-split {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 880px) {
  .story-split { grid-template-columns: 1fr; gap: var(--space-6); }
}

.story-side {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-5));
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
@media (max-width: 880px) {
  .story-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .story-side .story-fact { flex: 1 1 140px; }
}

.story-fact {
  border-left: 2px solid var(--accent);
  padding-left: var(--space-4);
}
.story-fact .eyebrow {
  display: block;
  margin-bottom: 4px;
}
.story-fact p {
  font-family: var(--font-display);
  font-size: var(--fs-18);
  font-weight: 600;
  color: var(--ink);
  line-height: var(--lh-snug);
}
.story-fact strong { color: var(--ink); font-weight: 700; }

.story-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  font-size: var(--fs-20);
  line-height: var(--lh-relaxed);
  color: var(--ink-muted);
  max-width: 64ch;
}
.story-body strong { color: var(--ink); font-weight: 600; }

.story-quote {
  font-family: var(--font-display);
  font-size: var(--fs-36);
  font-weight: 600;
  font-style: italic;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-snug);
  color: var(--ink);
  padding: var(--space-5) 0;
  border-block: 1px solid var(--ink-hair);
  max-width: none;
}

/* ============================================================
   SECTION 4 — STATS BENTO
   ============================================================ */

.stats-section { background: var(--bg); }
.stats-bento {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
}
@media (max-width: 880px) { .stats-bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .stats-bento { grid-template-columns: 1fr; } }

.stats-bento .bento-cell {
  align-items: flex-start;
  justify-content: center;
  min-height: 0;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: var(--ls-tighter);
  line-height: 1;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat-num em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}
.stat-num-text { font-size: clamp(32px, 3.4vw, 48px); }
.stat-label {
  font-size: var(--fs-16);
  color: var(--ink-muted);
  margin-top: var(--space-2);
  line-height: var(--lh-normal);
}

/* ============================================================
   SECTION 5 — JOURNEY TIMELINE 2014→2026 ★ centerpiece
   ============================================================ */

.timeline-section {
  background: var(--surface-1);
  position: relative;
}

.timeline-head {
  padding-block: var(--space-9) var(--space-6);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.timeline-progress {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.tp-label {
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  letter-spacing: var(--ls-wide);
  color: var(--ink-muted);
  text-transform: uppercase;
}
.tp-label em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
  font-size: var(--fs-16);
}
.tp-label-end { color: var(--ink-faint); }
.tp-bar {
  width: 220px;
  height: 4px;
  background: var(--ink-hair);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.tp-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-coral));
  border-radius: inherit;
  transition: width 200ms linear;
}

.timeline-pin {
  height: 100vh;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(241,244,255,0.6) 0%, transparent 70%);
}

.timeline-line {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  width: 100%;
  height: 4px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}
.tl-base { stroke: var(--ink-hair); stroke-width: 1.5; }
.tl-fill {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  pathLength: 1;
  filter: drop-shadow(0 0 4px rgba(79,70,229,0.4));
}

.timeline-track {
  display: flex;
  height: 100%;
  width: max-content;
  align-items: center;
  position: relative;
  z-index: 1;
  will-change: transform;
}

.t-step {
  position: relative;
  width: 480px;
  flex-shrink: 0;
  height: 100%;
  padding: 0 var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.t-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px; height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border-radius: var(--radius-pill);
  background: var(--surface-1);
  border: 3px solid var(--ink-hair);
  z-index: 2;
  transition: all 600ms var(--ease-out);
}
.t-step.is-active .t-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(79,70,229,0.15), 0 0 24px rgba(79,70,229,0.5);
  transform: scale(1.15);
}

.t-dot-current {
  animation: t-dot-pulse 2s ease-in-out infinite;
}
@keyframes t-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79,70,229,0.4), 0 0 24px rgba(79,70,229,0.5); }
  50%      { box-shadow: 0 0 0 14px rgba(79,70,229,0), 0 0 32px rgba(79,70,229,0.7); }
}

.t-card {
  position: relative;
  padding: var(--space-5);
  background: rgba(255,255,255,0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--ink-hair);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2);
  max-width: 380px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.pos-top .t-card { margin-bottom: var(--space-7); transform: translateY(-30px); }
.pos-bot .t-card { margin-top: var(--space-7); transform: translateY(30px); }

.t-step.is-active .t-card {
  opacity: 1;
  transform: translateY(0);
}

/* Connector line from card to dot */
.t-card::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 1px;
  height: var(--space-7);
  background: linear-gradient(180deg, var(--accent), transparent);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
}
.pos-top .t-card::after { bottom: calc(-1 * var(--space-7)); }
.pos-bot .t-card::after { top: calc(-1 * var(--space-7)); background: linear-gradient(0deg, var(--accent), transparent); }
.t-step.is-active .t-card::after { opacity: 0.6; }

.t-year {
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  letter-spacing: var(--ls-wide);
  color: var(--accent);
  font-weight: 600;
}
.t-title {
  font-family: var(--font-display);
  font-size: var(--fs-22);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-snug);
  margin-block: var(--space-2) var(--space-3);
  color: var(--ink);
}
.t-card p {
  font-size: var(--fs-14);
  line-height: var(--lh-normal);
  color: var(--ink-muted);
}

.t-card-current {
  background: linear-gradient(135deg, var(--lavender), var(--peach));
  border-color: var(--accent);
}
.t-now-badge {
  display: inline-block;
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
}

/* Mobile fallback for timeline: vertical, no scroll-jacking */
@media (max-width: 880px) {
  .timeline-pin {
    height: auto;
    overflow: visible;
    padding-block: var(--space-6);
  }
  .timeline-line { display: none; }
  .timeline-track {
    flex-direction: column;
    width: 100%;
    transform: none !important;
    gap: var(--space-5);
  }
  .t-step {
    width: 100%;
    height: auto;
    padding: 0;
  }
  .pos-top, .pos-bot {
    flex-direction: column;
  }
  .t-card {
    opacity: 1 !important;
    transform: none !important;
    margin: 0 !important;
    max-width: none;
  }
  .t-card::after { display: none; }
  .t-dot {
    position: static;
    margin: 0 0 var(--space-3);
    width: 12px; height: 12px;
    border-color: var(--accent);
    background: var(--accent);
  }
  .timeline-progress { display: none; }
}

/* ============================================================
   SECTION 6 — VISION & MISSION (50/50 split type block)
   ============================================================ */

.vm-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 60vh;
}
@media (max-width: 880px) { .vm-section { grid-template-columns: 1fr; } }

.vm-half {
  padding: var(--space-9) clamp(24px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
}
.vm-half::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.6), transparent 50%);
  pointer-events: none;
}
.vm-vision  { background: var(--lavender); }
.vm-mission { background: var(--peach); }

.vm-half .eyebrow {
  font-size: var(--fs-14);
}
.vm-quote {
  font-family: var(--font-display);
  font-size: var(--fs-36);
  font-weight: 600;
  font-style: italic;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-snug);
  color: var(--ink);
  max-width: 28ch;
  position: relative;
  z-index: 1;
}

/* ============================================================
   SECTION 7 — CORE VALUES (orbital cluster)
   ============================================================ */

.values-section { background: var(--surface-1); }

.orbital {
  position: relative;
  width: min(640px, 90vw);
  height: min(640px, 90vw);
  margin: var(--space-7) auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbital-rings-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.orbital-rings-deco span {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed var(--ink-hair);
}
.orbital-rings-deco span:nth-child(2) {
  inset: 28%;
  border-style: solid;
  border-color: var(--ink-hair);
}

.orbital-hub {
  position: relative;
  z-index: 2;
  width: 140px; height: 140px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-18);
  letter-spacing: var(--ls-tight);
  box-shadow: 0 12px 40px rgba(79,70,229,0.4);
}
.orbital-hub::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--accent);
  opacity: 0.3;
  animation: hub-pulse 3s ease-in-out infinite;
}
@keyframes hub-pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50%      { transform: scale(1.1); opacity: 0.05; }
}

.orbital-ring {
  position: absolute;
  inset: 0;
  animation: orbit-spin 60s linear infinite;
  transform-origin: center;
}
.orbital-ring:hover { animation-play-state: paused; }

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.orbital-chip {
  position: absolute;
  top: 50%; left: 50%;
  --radius: calc(min(640px, 90vw) * 0.42);
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translateY(calc(-1 * var(--radius)))
    rotate(calc(-1 * var(--angle)));
  padding: 10px 18px;
  background: var(--surface-1);
  border: 1px solid var(--ink-hair);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-16);
  color: var(--ink);
  white-space: nowrap;
  box-shadow: var(--shadow-2);
  transition: all var(--t-base) var(--ease-out);
}
.orbital-chip:hover {
  background: var(--lavender);
  border-color: var(--accent);
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translateY(calc(-1 * var(--radius)))
    rotate(calc(-1 * var(--angle)))
    scale(1.08);
}

/* Reduced-motion: stop rotation */
@media (prefers-reduced-motion: reduce) {
  .orbital-ring { animation: none; }
}

/* Mobile: collapse to grid */
@media (max-width: 700px) {
  .orbital { width: 100%; height: auto; aspect-ratio: auto; }
  .orbital-rings-deco { display: none; }
  .orbital-hub { width: 100%; height: 60px; border-radius: var(--radius-pill); margin-bottom: var(--space-5); }
  .orbital-ring { position: static; animation: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .orbital-chip {
    position: static;
    transform: none !important;
    text-align: center;
  }
}

/* ============================================================
   SECTION 8 — TECH PERSPECTIVE MARQUEE
   ============================================================ */

.tech-section { background: var(--bg); }

.tech-stage {
  margin-top: var(--space-6);
  perspective: 1200px;
  perspective-origin: 50% 50%;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.tech-row {
  overflow: hidden;
  margin-block: var(--space-3);
}
.tech-row-1 { transform: rotateX(8deg) translateZ(-10px); }
.tech-row-2 { transform: rotateX(-8deg) translateZ(-10px); }

.tech-track {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  width: max-content;
  animation: marquee-scroll 50s linear infinite;
}
.tech-row-2 .tech-track {
  animation-direction: reverse;
}
.tech-row:hover .tech-track { animation-play-state: paused; }

.tech-item {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  color: var(--ink-faint);
  white-space: nowrap;
  transition: color var(--t-base) var(--ease-out);
}
.tech-item:hover { color: var(--accent); }

/* ============================================================
   SECTION 9 — PHILOSOPHY BENTO
   ============================================================ */

.why-choose-section { background: var(--surface-1); }
.philosophy-bento {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(220px, auto);
}
@media (max-width: 880px) { .philosophy-bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .philosophy-bento { grid-template-columns: 1fr; } }

.phil-title {
  font-family: var(--font-display);
  font-size: var(--fs-22);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-snug);
  color: var(--ink);
}
.phil-body {
  color: var(--ink-muted);
  font-size: var(--fs-16);
  line-height: var(--lh-normal);
}

/* ============================================================
   SECTION 10 — Final CTA (same as home, slight variation)
   ============================================================ */
.about-cta-section { background: var(--bg); }
