/*
 * About page — product-driven scroll story
 * Green brand palette (not cosmic blue/gold). Reveal mechanics only.
 * Default HTML is fully visible; JS adds .about-reveal / gates.
 */

:root {
  --ink: #0c1f1a;
  --ink-deep: #061f1a;
  --muted: #4a635c;
  --brand: #0f453d;
  --accent: #10b981;
  --accent-bright: #34d399;
  --mint: #6ee7b7;
  --line: #d5e5df;
  --soft: #eef6f3;
  --cream: #f4faf7;
  --white: #ffffff;
  --about-reveal-travel: 32px;
  --about-reveal-ms: 320ms;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(16, 185, 129, 0.12), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(15, 69, 61, 0.1), transparent 50%),
    var(--cream);
  line-height: 1.65;
}

a { color: #0b6b58; }
a:focus-visible,
.btn:focus-visible,
.oss-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}

/* —— Header —— */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav {
  max-width: 1120px;
  margin: auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav strong {
  font-size: 19px;
  font-family: Fraunces, Georgia, serif;
}

.nav strong a {
  color: inherit;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.nav-links a {
  text-decoration: none;
  font-weight: 650;
  color: var(--brand);
}

.wrap {
  max-width: 1120px;
  margin: auto;
  padding-inline: 20px;
}

section.about-section {
  padding: 72px 0;
}

h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--ink);
}

h3 {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1.15rem;
  margin: 0 0 8px;
  color: var(--brand);
}

.intro {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 11px 18px;
  background: var(--accent-bright);
  color: #06261f;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(6, 38, 31, 0.18);
}

.btn.secondary {
  background: transparent;
  color: #fff;
  border-color: #81b9aa;
}

.btn.dark {
  background: var(--brand);
  color: #fff;
}

/* —— Hero —— */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  padding: 96px 0 88px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(16, 185, 129, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(52, 211, 153, 0.15), transparent 50%),
    linear-gradient(155deg, #041612 0%, #0a2e28 42%, #0f453d 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(110, 231, 183, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 183, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, #000 20%, transparent 75%);
  animation: about-grid-drift 28s linear infinite;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mint);
  opacity: 0.45;
  animation: about-particle-float 12s ease-in-out infinite;
}

.hero-particles span:nth-child(1) { left: 12%; top: 22%; animation-delay: 0s; }
.hero-particles span:nth-child(2) { left: 28%; top: 68%; width: 3px; height: 3px; animation-delay: -2s; }
.hero-particles span:nth-child(3) { left: 48%; top: 18%; animation-delay: -4s; opacity: 0.3; }
.hero-particles span:nth-child(4) { left: 62%; top: 55%; width: 5px; height: 5px; animation-delay: -1s; }
.hero-particles span:nth-child(5) { left: 78%; top: 30%; animation-delay: -6s; }
.hero-particles span:nth-child(6) { left: 88%; top: 72%; width: 3px; height: 3px; animation-delay: -3s; }
.hero-particles span:nth-child(7) { left: 35%; top: 40%; animation-delay: -5s; opacity: 0.25; }
.hero-particles span:nth-child(8) { left: 70%; top: 14%; animation-delay: -7s; }

.hero-orbit {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orbit em {
  position: absolute;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(110, 231, 183, 0.28);
  white-space: nowrap;
  animation: about-orbit-drift 22s ease-in-out infinite;
}

.hero-orbit em:nth-child(1) { left: 2%; top: 10%; animation-delay: 0s; }
.hero-orbit em:nth-child(2) { right: 2%; top: 14%; animation-delay: -4s; }
.hero-orbit em:nth-child(3) { left: 3%; bottom: 8%; animation-delay: -8s; }
.hero-orbit em:nth-child(4) { right: 3%; bottom: 6%; animation-delay: -12s; }
.hero-orbit em:nth-child(5) { right: 8%; top: 42%; animation-delay: -2s; }

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 900px;
  margin: 0 0 16px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.08;
  font-weight: 700;
}

.hero-lead {
  max-width: 720px;
  color: #d5ebe5;
  font-size: 18px;
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
  color: rgba(110, 231, 183, 0.75);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.scroll-cue svg {
  width: 22px;
  height: 22px;
  animation: about-chevron-bounce 1.8s ease-in-out infinite;
}

@keyframes about-grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px; }
}

@keyframes about-particle-float {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.35; }
  50% { transform: translate3d(0, -18px, 0); opacity: 0.7; }
}

@keyframes about-orbit-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(8px, -10px, 0); }
}

@keyframes about-chevron-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* —— Timeline —— */
.story-section {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.timeline-track {
  position: relative;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-track::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
}

.timeline-progress {
  position: absolute;
  left: 15px;
  top: 8px;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, var(--accent), var(--brand));
  border-radius: 2px;
  z-index: 1;
  transition: height 0.35s ease;
  pointer-events: none;
}

.timeline-beat {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding: 18px 0 18px 0;
  align-items: start;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  margin: 4px 0 0 9px;
  border-radius: 50%;
  background: var(--line);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--line);
  z-index: 2;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.timeline-beat.is-lit .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 0 12px rgba(16, 185, 129, 0.45);
  transform: scale(1.15);
}

.timeline-year {
  display: block;
  font-weight: 800;
  color: var(--brand);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.timeline-text {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
}

@media (min-width: 768px) {
  .timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 28px;
  }

  .timeline-track::before {
    left: 0;
    right: 0;
    top: 20px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .timeline-progress {
    left: 0;
    top: 20px;
    width: 0;
    height: 2px;
    transition: width 0.35s ease;
  }

  .timeline-beat {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 0;
  }

  .timeline-dot {
    margin: 0 0 16px 0;
  }
}

/* —— Product flow scrollytelling —— */
.flow-section {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(16, 185, 129, 0.08), transparent 60%),
    var(--cream);
}

.flow-layout {
  display: grid;
  gap: 28px;
}

.flow-diagram {
  position: relative;
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(12, 49, 40, 0.06);
}

.flow-svg {
  width: 100%;
  height: auto;
  display: block;
}

.flow-node {
  transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Dim inactive nodes only when scroll story JS is active */
.about-story .flow-node {
  opacity: 0.45;
  filter: grayscale(0.2);
}

.about-story .flow-node.is-active,
.flow-node.is-active {
  opacity: 1;
  filter: none;
}

.flow-node-shape {
  transition: transform 0.3s ease, stroke-width 0.3s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.flow-node.is-active .flow-node-shape {
  transform: scale(1.06);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.55));
}

.flow-edge {
  stroke: var(--line);
  stroke-width: 2;
  fill: none;
  transition: stroke 0.3s ease, opacity 0.3s ease;
  opacity: 0.5;
}

.flow-edge.is-active {
  stroke: var(--accent);
  opacity: 1;
}

.flow-caption-panel {
  display: grid;
  gap: 16px;
}

.flow-step {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.flow-step.is-active {
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.2), 0 12px 28px rgba(12, 49, 40, 0.08);
}

.flow-step h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.flow-step-index {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--soft);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
}

.flow-step.is-active .flow-step-index {
  background: var(--accent);
  color: #06261f;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
}

.flow-step a {
  font-weight: 700;
}

.flow-semantic {
  margin: 28px 0 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.flow-semantic ol {
  margin: 8px 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.flow-semantic li { margin-bottom: 6px; }
.flow-semantic li:last-child { margin-bottom: 0; }

@media (min-width: 900px) {
  .flow-layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    gap: 36px;
  }

  .flow-diagram {
    position: sticky;
    top: 88px;
  }

  .flow-caption-panel {
    min-height: 140vh;
    align-content: start;
    gap: 48px;
    padding: 12px 0 80px;
  }

  .flow-step {
    min-height: 22vh;
  }
}

@media (max-width: 899px) {
  .flow-diagram {
    display: none;
  }

  .flow-caption-panel {
    gap: 14px;
  }
}

/* —— Two lanes —— */
.lanes-section {
  background: var(--white);
}

.lanes {
  display: grid;
  gap: 20px;
}

@media (min-width: 860px) {
  .lanes {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }
}

.lane {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px rgba(12, 49, 40, 0.05);
}

.lane-oss {
  background:
    linear-gradient(165deg, rgba(236, 253, 245, 0.9), rgba(255, 255, 255, 0.95));
}

.lane-enterprise {
  background:
    linear-gradient(165deg, rgba(15, 69, 61, 0.96), rgba(6, 31, 26, 0.98));
  color: #e8f5f1;
  border-color: transparent;
}

.lane-enterprise h3,
.lane-enterprise a {
  color: var(--mint);
}

.lane-enterprise p,
.lane-enterprise .module-list {
  color: #b8d9d0;
}

.lane-label {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.lane-enterprise .lane-label {
  color: var(--mint);
}

.oss-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.oss-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(255, 255, 255, 0.85);
  color: var(--brand);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.oss-chip:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(12, 49, 40, 0.1);
}

.oss-chip img,
.oss-chip svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cta-soft {
  margin: 14px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.lane-enterprise .cta-soft { color: #9ecfc3; }

.module-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-list li {
  padding: 6px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(110, 231, 183, 0.25);
  font-size: 0.85rem;
  font-weight: 650;
}

.secondary-cards {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

@media (min-width: 700px) {
  .secondary-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.secondary-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.secondary-card p {
  margin: 0;
  color: var(--muted);
}

.secondary-card a { font-weight: 700; }

/* —— Numbers band —— */
.numbers-band {
  padding: 40px 0;
  background: linear-gradient(90deg, #0a2e28, #0f453d 50%, #0a2e28);
  color: #fff;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: center;
}

@media (min-width: 700px) {
  .numbers-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .numbers-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-value {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--mint);
  line-height: 1.1;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: #b8d9d0;
}

/* —— Names —— */
.names-section {
  background: rgba(255, 255, 255, 0.7);
}

.name-grid {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}

@media (min-width: 700px) {
  .name-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .name-grid .name-item:last-child {
    grid-column: 1 / -1;
  }
}

.name-item {
  margin: 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.name-item dt {
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 4px;
}

.name-item dd {
  margin: 0;
  color: var(--muted);
}

/* —— FAQ —— */
.faq-section {
  background: var(--cream);
}

.faq-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-item {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

/* —— Contact —— */
.contact-section {
  background: var(--white);
}

.contact {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 780px) {
  .contact {
    grid-template-columns: 1.2fr 1fr;
  }
}

.contact-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px rgba(12, 49, 40, 0.06);
}

.contact-card address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.8;
}

.contact-meta {
  margin: 16px 0 0;
  color: var(--muted);
}

.map-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ca-map {
  width: 100%;
  max-height: 160px;
  border-radius: 12px;
  background: linear-gradient(160deg, #ecfdf5, #d1fae5);
  border: 1px solid var(--line);
  padding: 12px;
}

.ca-map .oc-pin {
  fill: var(--accent);
  animation: about-pin-pulse 2.4s ease-in-out infinite;
}

@keyframes about-pin-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.social-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.social-list a {
  font-weight: 650;
  text-decoration: none;
}

.social-list a:hover { text-decoration: underline; }

.note {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: #ecfdf5;
  border-radius: 0 12px 12px 0;
  color: var(--ink);
}

/* —— Footer —— */
.site-footer {
  padding: 32px 20px;
  background: var(--ink-deep);
  color: #cce7df;
}

.site-footer a { color: var(--mint); }

/* —— Reveal system (JS adds .about-story + .about-reveal) —— */
.about-story .about-reveal {
  opacity: 0;
  transform: translate3d(0, var(--about-reveal-travel), 0);
  transition:
    opacity var(--about-reveal-ms) ease var(--about-delay, 0ms),
    transform 0.38s cubic-bezier(0.16, 1, 0.3, 1) var(--about-delay, 0ms);
}

.about-story .is-about-visible .about-reveal {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.about-story .about-lane-modules .module-list li {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.28s ease var(--about-delay, 0ms),
    transform 0.28s ease var(--about-delay, 0ms);
}

.about-story .is-about-visible .about-lane-modules .module-list li {
  opacity: 1;
  transform: none;
}

/* —— Reduced motion —— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-grid,
  .hero-particles span,
  .hero-orbit em,
  .scroll-cue svg,
  .ca-map .oc-pin {
    animation: none !important;
  }

  .about-reveal,
  .about-lane-modules .module-list li,
  .flow-node,
  .flow-node-shape,
  .flow-edge,
  .timeline-dot,
  .timeline-progress,
  .btn,
  .oss-chip {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    filter: none !important;
  }

  .flow-node {
    opacity: 1;
  }
}

@media (max-width: 780px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero-orbit {
    display: none;
  }

  section.about-section {
    padding: 56px 0;
  }
}
