/* Thimble · /about/ page-only styles
   Additions and overrides on top of components.css + home.css.
   Loaded conditionally by inc/enqueue.php when is_page('about'). */

/* ===== SCROLL PROGRESS BAR (top of page) ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 110;
  background: transparent;
  pointer-events: none;
}
.scroll-progress__fill {
  height: 100%;
  width: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.12s linear;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
}

/* ===== HERO H1 word-by-word reveal ===== */
.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: heroWord 0.9s var(--ease) forwards;
}
.hero__title .word + .word { margin-left: 0.32em; }
@keyframes heroWord {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__sub {
  opacity: 0;
  animation: heroWord 0.9s var(--ease) forwards;
  animation-delay: 0.55s;
}
.hero__meta {
  opacity: 0;
  animation: heroWord 0.9s var(--ease) forwards;
  animation-delay: 0.75s;
}
@media (prefers-reduced-motion: reduce) {
  .hero__title .word,
  .hero__sub,
  .hero__meta {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* About hero rows hug content — no 1fr stretch, no full-viewport min-height,
   so the CTA sits naturally below the heading + description.
   Targeted via :has() so this only applies to the about hero, not other
   pages that share the .hero class. */
.hero:has(.hero__meta--about) {
  min-height: auto;
  grid-template-rows: auto auto auto;
  gap: 24px;
  padding-bottom: 56px;
}

/* ============================================================
   PINNED EDITORIAL PLATE (mirrors the Join page hero plate).
   Self-contained here so the Join styles stay untouched; the
   parallax scrub JS in thimble.js is generic (guards on
   .hero-plate-scroll) and drives this with no JS changes.
   ============================================================ */
.hero-plate-scroll {
  position: relative;
  height: 160vh;                     /* 100vh pin + 60vh runway */
}
.hero-plate-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 var(--gutter);
}
.hero-plate {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  --plate-scale: 1.06;
  --plate-ty: 15px;
}
.hero-plate__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 62vh;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bone-2);
  transform: translateY(var(--plate-ty)) scale(var(--plate-scale));
  transform-origin: center center;
  will-change: transform;
  box-shadow: 0 40px 80px rgba(10, 10, 10, 0.12);
}
.hero-plate__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-plate__cap {
  position: absolute;
  left: 28px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  margin: 0;
}
.hero-plate__cap .mono { color: var(--sand); }
.hero-plate__cap > * + *::before {
  content: "·";
  margin-right: 14px;
  color: rgba(255, 255, 255, 0.55);
}
/* Mobile: drop the pin + parallax, render the image inline. */
@media (max-width: 760px) {
  .hero-plate-scroll { height: auto; }
  .hero-plate-pin { position: static; height: auto; padding: 8px var(--gutter) 0; }
  .hero-plate__frame {
    transform: none;
    max-height: none;
    aspect-ratio: 4 / 3;
  }
  .hero-plate__cap { left: 14px; bottom: 12px; font-size: 10px; gap: 8px; }
  .hero-plate__cap > * + *::before { margin-right: 8px; }
}

/* About-specific hero meta layout: just the CTA. The base .hero__meta has a
   border-top hairline; explicitly clear it so there's no line between the
   description and the CTA. */
.hero__meta--about {
  display: flex;
  padding-top: 12px;
  padding-bottom: 32px;
  border-top: 0;
  max-width: 1400px;
}

/* ===== MISSION callouts (relocated from hero meta) ===== */
.mission-callout {
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  margin-top: 24px;
}
.mission-callout:first-child {
  padding-top: 0;
  border-top: 0;
  margin-top: 0;
}
.mission-callout .label { display: block; margin-bottom: 14px; }
.mission-callout p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  margin: 0;
  max-width: 54ch;
}

/* ============================================================
   §02 STEP-BY-STEP — horizontal scroll-pinned timeline
   ============================================================ */
.timeline-pin {
  position: relative;
  height: 340vh;
  background: var(--ink);
  color: var(--bone);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.timeline-pin__viewport {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 120px var(--gutter) 80px;
}
.timeline-pin__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 40px;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto 60px;
}
.timeline-pin__head .section-num {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.55);
}
.timeline-pin__head .section-title {
  font-size: clamp(36px, 5vw, 80px);
  margin: 0;
  color: var(--bone);
}
.timeline-pin__head .section-title em { color: var(--sand); }
.timeline-pin__progress {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 200px;
}
.timeline-pin__counter {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.timeline-pin__counter-current {
  color: var(--bone);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.02em;
  font-family: var(--ff-sans);
}
.timeline-pin__dots { display: flex; gap: 8px; }
.timeline-pin__dot {
  width: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.4s var(--ease);
}
.timeline-pin__dot.is-active { background: var(--bone); }
.timeline-pin__track-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.timeline-pin__track {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  display: flex;
  gap: 40px;
  padding-right: var(--gutter);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
.timeline-card {
  flex: 0 0 min(640px, 80vw);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 28px;
  padding: 40px 44px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  min-height: 100%;
}
.timeline-card__year {
  font-family: var(--ff-sans);
  font-size: clamp(72px, 9vw, 128px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--bone);
}
.timeline-card__eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.timeline-card__h {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--bone);
}
.timeline-card__p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 40ch;
}
/* Collapse the pinned horizontal track on mobile + reduced motion.
   Tablet + smaller desktops keep the pin (matches JS breakpoint at 761px). */
@media (prefers-reduced-motion: reduce), (max-width: 760px) {
  .timeline-pin { height: auto; }
  .timeline-pin__viewport {
    position: static;
    height: auto;
    padding: 100px var(--gutter) 80px;
  }
  .timeline-pin__head { grid-template-columns: 1fr; gap: 24px; align-items: flex-start; }
  .timeline-pin__progress { align-items: flex-start; }
  .timeline-pin__track-wrap { overflow: visible; }
  .timeline-pin__track {
    position: static;
    flex-direction: column;
    gap: 24px;
    padding-right: 0;
    transform: none !important;
  }
  .timeline-card {
    flex: 0 0 auto;
    min-height: unset;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
  }
  .timeline-pin__dots,
  .timeline-pin__counter { visibility: hidden; pointer-events: none; }
}

@media (max-width: 760px) {
  .timeline-pin__viewport { padding: 80px var(--gutter) 60px; }
  .timeline-card { padding: 32px 28px; gap: 20px; }
  .timeline-card__year { font-size: clamp(56px, 14vw, 96px); }
  .timeline-card__h { font-size: clamp(22px, 5.6vw, 28px); }
  .timeline-card__p { font-size: 15px; max-width: none; }
}

/* ============================================================
   §03 OLD WAY vs NEW WAY — editorial comparison table
   ============================================================ */
.compare {
  padding: 160px 0 140px;
  border-top: 1px solid var(--rule);
}
.compare__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}
.compare-table {
  position: relative;
  border-top: 1px solid var(--rule);
  margin-top: 40px;
}
.compare-table__head,
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.compare-table__head .compare-cell {
  padding: 28px 36px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 14px;
}
.compare-table__head .compare-cell--old { color: var(--fg-soft); background: var(--bg-alt); }
.compare-table__head .compare-cell--new { color: var(--fg); background: var(--bg); }
.compare-cell {
  padding: 36px 36px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 150px;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.compare-cell--old {
  border-right: 1px solid var(--rule);
  background: var(--bg-alt);
  opacity: 0;
  transform: translateX(-24px);
}
.compare-cell--new {
  background: var(--bg);
  opacity: 0;
  transform: translateX(24px);
}
.compare-row.is-in .compare-cell--old,
.compare-row.is-in .compare-cell--new {
  opacity: 1;
  transform: translateX(0);
}
.compare-cell__head { display: flex; align-items: center; gap: 12px; }
.compare-cell__label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.compare-cell__body {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.45;
  color: var(--fg);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.compare-cell--old .compare-cell__body { color: var(--fg-soft); }

/* X / check icons */
.compare-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}
.compare-table__head .compare-icon { width: 22px; height: 22px; }
.compare-icon--x { color: var(--fg-soft); opacity: 0.7; }
.compare-icon--check { color: var(--ink); }

.compare-table__vs {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: var(--rule);
  height: 100%;
  pointer-events: none;
}
.compare-table__vs::before {
  content: "VS";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  padding: 4px 8px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-soft);
}
@media (prefers-reduced-motion: reduce) {
  .compare-cell--old, .compare-cell--new {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   §04 STATS — count-up numerals
   ============================================================ */
.stats { padding: 160px 0 140px; }
.stats__inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
/* Section-head inside .stats__inner: align flush-left with the grid below
   instead of being centered at 1100px. */
.stats .section-head {
  max-width: none;
  margin: 0 0 60px;
  padding: 0;
}
.stats__grid {
  display: grid;
  /* One equal column per rendered stat (the rating stat hides itself when the
     review API has no aggregate), so there is never an empty slot. */
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 60px 36px 56px;
  border-right: 1px solid var(--rule);
  min-height: 300px;
}
.stat:last-child { border-right: 0; }
.stat__value {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: clamp(72px, 10vw, 160px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.88;
  color: var(--fg);
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.stat__unit {
  font-family: var(--ff-mono);
  font-size: 0.22em;
  letter-spacing: 0.08em;
  color: var(--fg-soft);
  font-weight: 500;
  text-transform: uppercase;
  align-self: flex-start;
  padding-top: 0.6em;
}
.stat__label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-top: auto;
}
.stat__note {
  font-size: 13px;
  color: var(--fg-soft);
  line-height: 1.45;
  max-width: 28ch;
}

/* ============================================================
   §05 NETWORK — constellation of city pills
   ============================================================ */
.network {
  padding: 160px 0 140px;
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}
.network__inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.network__l .section-num {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 24px;
  display: block;
}
.network__l h2 {
  font-size: clamp(40px, 5.6vw, 88px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--bone);
  margin-bottom: 24px;
}
.network__l h2 em { color: var(--sand); }
.network__l p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 42ch;
  margin-bottom: 16px;
}
.network__l .mono {
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-top: 8px;
}
.network-cities {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 480px;
  align-content: center;
}
.network-city {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.02);
  transform: translate3d(0, 0, 0);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
  will-change: transform;
}
.network-city::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sand);
}
.network-city:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--bone);
}
/* Linked pills (a.network-city) — keyboard focus affordance. */
a.network-city:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
}
.network-city--accent {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--bone);
}
/* Metro list — clean, auto-responsive multi-column list of real service areas.
   `column-width` flows into as many columns as fit (3 on the desktop right rail,
   2 on tablet, 1 on mobile) with no per-breakpoint rules. On-brand: sand accent
   dot + the site's type on the dark network section. */
.network-metros {
  list-style: none;
  margin: 0;
  padding: 0;
  column-width: 250px;
  column-gap: 48px;
}
.network-metro {
  break-inside: avoid;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 15px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}
.network-metro::before {
  content: "";
  position: relative;
  top: 1px;
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sand);
}
.network-metro__link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.network-metro__link:hover {
  color: var(--bone);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.network-metro__link:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
}
.network__foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.link-inline--on-dark { color: rgba(255, 255, 255, 0.7); }
.link-inline--on-dark:hover { color: var(--bone); }

@media (prefers-reduced-motion: reduce), (max-width: 1100px) {
  .network-city { transform: none !important; }
}

/* ============================================================
   §06 PRINCIPLES — light variant of .quality
   ============================================================ */
.quality--light {
  background: var(--bg-alt);
  color: var(--fg);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.quality--light .section-num { color: var(--fg-soft); }
.quality--light h2 { color: var(--fg); }
.quality--light h2 em { color: var(--accent); }
.quality--light p { color: var(--fg); }
.quality--light .quality__r { border-color: var(--rule); }
.quality--light .quality-pt {
  border-right-color: var(--rule);
  border-bottom-color: var(--rule);
}
.quality--light .quality-pt__n { color: var(--fg-soft); }
.quality--light .quality-pt__h { color: var(--ink); }
.quality--light .quality-pt__p { color: var(--fg-soft); }

/* ============================================================
   §07 CTA BAND — photo background variant (shared with Join)
   ============================================================ */
.cta-band--has-image {
  padding: 200px var(--gutter);
  min-height: 560px;
}
.cta-band--has-image .cta-band__sub {
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
  filter: grayscale(0.15);
}
.cta-band__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.35) 50%, rgba(10,10,10,0.80) 100%),
    radial-gradient(ellipse at center, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.55) 100%);
  pointer-events: none;
}

/* ============================================================
   Responsive — shared
   ============================================================ */
@media (max-width: 1100px) {
  .compare-table__head,
  .compare-row { grid-template-columns: 1fr; }
  .compare-table__vs { display: none; }
  .compare-cell--old { border-right: 0; border-bottom: 1px solid var(--rule); }
  .compare-cell--new { background: var(--bg-alt); }
  .compare-table__head { display: none; }
  .compare-cell::before {
    content: attr(data-col-label);
    display: block;
    font-family: var(--ff-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fg-soft);
    margin-bottom: 6px;
  }
  .stats__grid { grid-auto-flow: row; grid-template-columns: 1fr; }
  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    min-height: auto;
  }
  .stat:last-child { border-bottom: 0; }
  .network__inner { grid-template-columns: 1fr; gap: 48px; }
  .network-cities { min-height: unset; }
}

@media (max-width: 760px) {
  .compare-cell { padding: 28px 24px; min-height: auto; }
  .quality--light .quality-pt { border-bottom: 1px solid var(--rule) !important; }
}
