/* ============================================================
   About page — loaded after site.css, scoped under body.site .page-about.
   Presentation only: the milestones become an orbit rail, the values an
   editorial numbered index beside a sticky heading, "three lines" a navy
   panel with the orbit echoed, the testimonial a ruled pull quote.
   Motion: decorative only (nothing is hidden for it), CSS only, and only
   when main.js has run (html.js) and reduced motion is not requested.
   ============================================================ */

/* ---------- Hero ---------- */
/* breadcrumb link: a 44px-tall hit area without moving the layout */
body.site .page-about .crumbs a { display: inline-block; padding-block: 13px; margin-block: -13px; }

/* milestones on an orbit rail */
body.site .page-about .side-card .tl-row { position: relative; display: grid; grid-template-columns: 20px auto minmax(0, 1fr); column-gap: 16px; align-items: baseline; padding: 18px 0; }
/* (rows are divs between .sc-title and .sc-note, so :first/last-of-type miss them; use sibling tests) */
body.site .page-about .side-card .sc-title + .tl-row { padding-top: 4px; }
body.site .page-about .side-card .tl-row:not(:has(+ .tl-row)) { padding-bottom: 4px; }
/* the node: a ring with a teal core, sitting on the rail */
body.site .page-about .side-card .tl-row::before { content: ""; align-self: start; margin-top: .35em; width: 14px; height: 14px; justify-self: center; border-radius: 50%; border: 1px solid rgba(94, 224, 196, .55); background: radial-gradient(circle, var(--teal) 0 3px, var(--navy) 3.5px); position: relative; z-index: 1; }
/* the rail: from this node down to the next */
body.site .page-about .side-card .tl-row:has(+ .tl-row)::after { content: ""; position: absolute; left: 9.5px; top: calc(18px + .35em + 14px); bottom: calc(-1 * (.35em + 4px)); width: 1px; background: linear-gradient(180deg, rgba(94, 224, 196, .5), rgba(180, 196, 221, .2)); }
body.site .page-about .side-card .sc-title + .tl-row::after { top: calc(4px + .35em + 14px); }
body.site .page-about .side-card .tl-row:not(:has(+ .tl-row))::before { background: radial-gradient(circle, var(--teal-soft) 0 3.5px, var(--navy) 4px); border-color: var(--teal-soft); box-shadow: 0 0 0 5px rgba(94, 224, 196, .08); }
body.site .page-about .side-card .tl-row { border-bottom-color: transparent; }
body.site .page-about .side-card .sc-text { color: var(--on); }
body.site .page-about .side-card .tag-line { margin-top: 6px; color: var(--on-2); }
body.site .page-about .side-card .sc-note { color: var(--on-2); }

/* ---------- Values: sticky heading left, numbered ruled rows right ---------- */
body.site .page-about .values-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; }
body.site .page-about .values-layout > .section-head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; padding-top: 28px; border-top: 2px solid var(--navy); }
body.site .page-about .values-layout > .section-head h2 { max-width: 9em; }
body.site .page-about .values-list { counter-reset: value; border-top-color: var(--hair-strong); }
body.site .page-about .values-list > .card {
  counter-increment: value;
  grid-template-columns: 3.25rem 44px minmax(0, 1fr); grid-template-areas: "num icon title" "num icon text";
  gap: 6px 22px; align-items: start; padding: 32px 0;
  transition: background-color .25s;
}
body.site .page-about .values-list > .card::before {
  content: counter(value, decimal-leading-zero);
  content: counter(value, decimal-leading-zero) / "";
  grid-area: num; padding-top: 4px; font: 500 .8rem/1 var(--mono); letter-spacing: .12em; color: var(--teal-deep);
}
body.site .page-about .values-list > .card > .icon-chip { grid-area: icon; }
body.site .page-about .values-list > .card > h3 { grid-area: title; align-self: start; padding-top: 2px; font-size: 1.35rem; }
body.site .page-about .values-list > .card > p { grid-area: text; max-width: 34em; }

/* ---------- Story: prose left, a navy "three lines" panel right ---------- */
body.site .page-about .story-split { align-items: center; }
body.site .page-about .story-copy .story-first { margin-top: 16px; }
body.site .page-about .story-copy p { max-width: 34em; }
body.site .page-about .story-actions { margin-top: 28px; }
body.site .page-about .split > .lines-card { overflow: hidden; isolation: isolate; background: var(--navy); border-color: var(--navy-3); color: var(--on-2); box-shadow: 0 24px 60px rgba(4, 20, 47, .18); padding: clamp(28px, 3.4vw, 40px); }
body.site .page-about .lines-card h3 { color: #fff; font-size: 1.35rem; margin-bottom: 20px; max-width: 12em; }
/* the orbit echoed: two rings and a node in the corner */
body.site .page-about .lines-rings { position: absolute; z-index: -1; right: -60px; top: -100px; width: 170px; height: 170px; border-radius: 50%; border: 1px solid rgba(94, 224, 196, .3); box-shadow: 0 0 0 24px rgba(94, 224, 196, .04), 0 0 0 25px rgba(180, 196, 221, .14); pointer-events: none; }
body.site .page-about .lines-rings::after { content: ""; position: absolute; left: 14px; bottom: 30px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-soft); }
body.site .page-about .lines-card .mini-list li { padding: 15px 0; border-bottom-color: var(--line); color: #fff; font-weight: 600; font-size: 1.02rem; }
body.site .page-about .lines-card .mini-list li:first-child { padding-top: 4px; }
body.site .page-about .lines-card .mini-list li > span:first-child { display: inline-flex; align-items: center; gap: 12px; }
body.site .page-about .lines-card .mini-list li > span:first-child::before { content: ""; flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--teal-soft); }
body.site .page-about .lines-card .mini-list .tag { color: var(--teal-soft); font-weight: 400; }
body.site .page-about .lines-card .lines-note { margin-top: 20px; padding-top: 16px; border-top: 1px dashed rgba(255, 255, 255, .18); font-size: var(--text-sm); color: var(--on-2); }

/* ---------- Testimonial: a ruled pull quote ---------- */
body.site .page-about .testimonial .quote-card { position: relative; max-width: 920px; margin-inline: auto; padding: clamp(32px, 4vw, 48px) 0; border-block: 1px solid var(--hair-strong); }
body.site .page-about .testimonial .quote-card .mark { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--hair-strong); outline: 1px solid var(--hair); outline-offset: 8px; font-size: 3.4rem; line-height: 1; padding-top: 22px; color: var(--teal-deep); align-self: start; }
body.site .page-about .testimonial .quote-card { gap: 0 36px; }
body.site .page-about .testimonial .quote-card blockquote p { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.7rem); }
body.site .page-about .testimonial .quote-card footer { margin-top: 22px; padding-left: 16px; border-left: 2px solid var(--teal); color: var(--ink-2); }

/* ---------- Motion: decorative, never hides content ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js body.site .page-about .side-card .tl-row:not(:has(+ .tl-row))::before { animation: about-halo 3.6s ease-in-out infinite; }
  .js body.site .page-about .lines-rings { animation: about-drift 18s ease-in-out infinite alternate; }
  .js body.site .page-about .values-list > .card:hover > .icon-chip { border-color: var(--teal-deep); }
  body.site .page-about .values-list > .card > .icon-chip { transition: border-color .25s; }
}
@keyframes about-halo { 0%, 100% { box-shadow: 0 0 0 5px rgba(94, 224, 196, .08); } 50% { box-shadow: 0 0 0 9px rgba(94, 224, 196, .14); } }
@keyframes about-drift { to { transform: translate(-14px, 12px); } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  body.site .page-about .values-layout { grid-template-columns: minmax(0, 1fr); }
  body.site .page-about .values-layout > .section-head { position: static; margin-bottom: 32px; }
  body.site .page-about .values-layout > .section-head h2 { max-width: none; }
  body.site .page-about .story-split { align-items: start; }
}
@media (max-width: 760px) {
  body.site .page-about .values-list > .card { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "icon num" "icon title" "icon text"; gap: 6px 18px; padding: 26px 0; }
  body.site .page-about .values-list > .card::before { padding-top: 0; }
  body.site .page-about .values-list > .card > h3 { padding-top: 0; font-size: 1.2rem; }
}
@media (max-width: 640px) {
  body.site .page-about .testimonial .quote-card { gap: 0; }
  body.site .page-about .testimonial .quote-card .mark { width: 52px; height: 52px; font-size: 2.8rem; padding-top: 18px; margin: 0 0 22px 9px; } /* 9px keeps the offset outline ring inside the gutter */
  body.site .page-about .lines-rings { right: -80px; top: -115px; }
  body.site .page-about .side-card .tl-row { grid-template-columns: 20px minmax(0, 1fr); row-gap: 8px; }
  body.site .page-about .side-card .tl-row .tl-year { justify-self: start; }
  body.site .page-about .side-card .tl-row .sc-text { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  body.site .page-about *, body.site .page-about *::before, body.site .page-about *::after { animation: none !important; transition: none !important; }
}
