/* ============================================================
   landing/about.css — R2 About page, page-specific styles only.
   Mission/Vision visual block, Values card-grid, a shared
   .cg-timeline component (used by the founder-arc and the
   roadmap), and structured strategy cards + key-idea callout.
   Every color/font/spacing value below is a var(--...) token
   already defined in styles.css / site-extend.css. Those files
   are frozen; nothing here overrides them, only adds to them.
   ============================================================ */

/* ---------------------------------------------------------------
   #purpose: lead-in, Mission/Vision cards, Values card-grid
   --------------------------------------------------------------- */
#purpose .section-lead { margin-bottom: 6px; }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.mv-card {
  padding: 28px 30px; background: var(--bg-soft); border: 1px solid var(--hair);
  border-radius: 18px; transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.mv-card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -24px rgba(81,69,168,0.26); }
.mv-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--hair);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.mv-kicker { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--violet); margin-bottom: 10px; }
.mv-card p { font-size: 15px; color: var(--ink-2); line-height: 1.65; margin: 0; }

.values-heading {
  font-family: var(--f-display); font-size: var(--fs-h5); font-weight: 500; color: var(--ink);
  margin: 52px 0 20px; letter-spacing: -0.01em;
}

/* card title style shared by Mission/Vision cards, Values cards,
   and Strategy cards, regardless of heading level (h3 or h4). */
.cg-card-title { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 10px; line-height: 1.3; }
.mv-card .cg-card-title { font-size: var(--fs-h5); margin-bottom: 12px; }
.value-card .cg-card-title, .strategy-card .cg-card-title { font-size: 16.5px; }
.dark .cg-card-title { color: var(--on-night-1); }

.value-card, .strategy-card {
  padding: 24px 24px 26px; background: var(--surface); border: 1px solid var(--hair); border-radius: 16px;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.value-card:hover, .strategy-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(81,69,168,0.24); }
.value-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.value-card p, .strategy-card p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; }

.values-more { margin-top: 22px; }
.values-more a { font-size: 14.5px; font-weight: 500; color: var(--violet); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.values-more a:hover { text-decoration: underline; }
.values-more .arr { transition: transform var(--dur-fast) var(--ease); }
.values-more a:hover .arr { transform: translateX(3px); }

.dark .value-card, .dark .strategy-card { background: rgba(255,255,255,0.04); border-color: rgba(180,166,232,0.2); }
.dark .value-card p, .dark .strategy-card p { color: var(--on-night-2); }
.dark .value-icon { background: rgba(255,255,255,0.06); }

@media (max-width: 720px) {
  .mv-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------------------------------------------------------------
   #story: refined story card + founder-arc timeline
   --------------------------------------------------------------- */
#story .story-card { position: relative; border-left: 3px solid var(--violet); overflow: hidden; }
#story .story-card::before {
  content: '\201C'; position: absolute; top: -8px; left: 22px; font-family: var(--f-serif);
  font-size: 72px; line-height: 1; color: var(--violet-300); opacity: 0.4; pointer-events: none;
}
#story .story-card .story-text { position: relative; }
#story .story-card .story-text:first-of-type { margin-top: 12px; }

.founder-arc { margin-top: 56px; }
.founder-arc-head { margin-bottom: 8px; }
.founder-arc-head h3 {
  font-family: var(--f-display); font-size: var(--fs-h4); font-weight: 500; letter-spacing: -0.01em;
  color: var(--ink); margin: 8px 0 0;
}

/* ---------------------------------------------------------------
   Shared timeline: founder-arc (--steps:4) and #roadmap (--steps:3).
   Semantic <ol>/<li> steps with a decorative connector line; no
   essential information lives in the connector, so it is purely
   decorative (::before is never exposed to assistive tech).
   --------------------------------------------------------------- */
.cg-timeline {
  list-style: none; margin: 34px 0 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(var(--steps, 3), 1fr); gap: 30px 26px;
}
.cg-timeline::before {
  content: ''; position: absolute; top: 19px;
  left: calc(50% / var(--steps, 3)); right: calc(50% / var(--steps, 3)); height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--violet) 35%, var(--azure) 68%, var(--teal));
  opacity: 0.4; z-index: 0;
}
.cg-timeline-step { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.cts-node {
  width: 40px; height: 40px; border-radius: 50%; background: var(--surface);
  border: 2px solid var(--hair); box-shadow: 0 0 0 6px var(--bg);
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
}
.foundation .cts-node { box-shadow: 0 0 0 6px var(--bg-soft); }
.cts-kicker {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--violet); display: block;
}
.cts-title { font-family: var(--f-display); font-size: 16.5px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); margin: 0; line-height: 1.35; }
.cg-timeline-step p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; max-width: 32ch; }

@media (max-width: 860px) {
  .cg-timeline { grid-template-columns: 1fr; gap: 30px; }
  .cg-timeline::before {
    left: 19px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--coral), var(--violet) 35%, var(--azure) 68%, var(--teal));
  }
  .cg-timeline-step { padding-left: 58px; }
  .cts-node { position: absolute; left: 0; top: 0; margin-bottom: 0; }
  .cg-timeline-step p { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mv-card, .value-card, .strategy-card { transition: none !important; }
}

/* ---------------------------------------------------------------
   #strategy: structured cards + key-idea callout (dark section;
   .key-idea and .card-grid already ship dark-mode rules upstream)
   --------------------------------------------------------------- */
.strategy-grid { margin-top: 40px; }
