/* ==========================================================================
   Sanctuary v2, page-scoped styles: about.html. Loads AFTER styles.css and
   only extends it; the locked foundation is never overridden destructively.
   Every value traces to design/brands/sanctuary.md (the kit) or to a locked
   value already in styles.css. Inner pages are CALM: static world-light,
   no world flips, no pinned stacks (kit: the signature is home only).
   House rule: no em or en dashes anywhere in this file.
   ========================================================================== */

/* ---- Page hero: calm centered stack (system vocabulary from the home hero) ---- */
.page-hero {
  padding: 96px 48px 64px;   /* kit: section pads {76, 96, 128}; page gutter 48 (locked styles.css) */
  text-align: center;
}
.page-eyebrow {
  font-size: 24px;           /* locked system: hero eyebrow 24px (styles.css .hero-eyebrow) */
  font-weight: 400;
  opacity: .82;              /* locked system: eyebrow sits quieter than the h1 */
}
.page-h1 {
  font-size: 80px;           /* kit: hero h1 80px (ref typeScale) */
  line-height: 1.1;          /* kit: ref h1 88px at 80 = 1.1 */
  letter-spacing: -2px;      /* kit: ref h1 letter-spacing -2px */
  font-weight: 400;          /* kit: hierarchy by SIZE at weight 400 */
  max-width: 1000px;         /* derived: holds the tagline to two lines, inside the ref 1344 content box */
  margin: 20px auto 0;
}
.page-lead {
  max-width: 760px;          /* derived: calm lead measure inside the ref 1344 content box */
  margin: 32px auto 0;       /* kit: spacing base 16, two steps */
  font-size: 20px;           /* derived: one step over body 16 (locked sheet-row 20 is the same step) */
  line-height: 1.6;
}

/* ---- Fact chips: locked .chip vocabulary, real facts only ---- */
.fact-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;                 /* locked system: nav-right gap 12 (styles.css) */
  padding: 0 48px 76px;      /* kit: page gutter 48; section pad 76 */
}

/* ---- Backing statement: quiet centered band (home disclosure vocabulary) ---- */
.backing {
  padding: 76px 48px;        /* kit: section pad 76 */
  display: flex;
  justify-content: center;
}
.backing p {
  max-width: 900px;          /* derived: ref measured line length ~1060 max; kept narrower for calm */
  text-align: center;
  font-size: 26px;           /* locked system: card caption scale 26 (styles.css .card-cap) */
  line-height: 1.4;          /* derived: caption leading step (locked .card-cap 1.3, opened slightly for a full band) */
}

/* ---- Shared section frame ---- */
.vm, .values, .team {
  padding: 76px 48px 0;      /* kit: section pad 76; page gutter 48 */
}
.vm .display, .values .display, .team .display {
  margin-bottom: 48px;       /* kit: footer card pad 48 reused as the head-to-grid step */
}

/* ---- Vision and mission cards ---- */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;                 /* locked system: card gap 32 (styles.css .track) */
  max-width: 1344px;         /* kit: ref widest content box 1344 */
  margin: 0 auto;
}
.vm-card {
  border-radius: 32px;       /* kit: cards flat filled, radius 32, border NONE, shadow NONE */
  padding: 48px;             /* locked system: footer card pad 48 */
  display: flex;
  flex-direction: column;
  gap: 24px;                 /* kit: radius scale member 24 reused as the label-to-text step */
  min-height: 300px;         /* derived: holds the two cards level, about half a ref card height 571 */
}
.vm-label {
  font-size: 16px;           /* kit: body 16 */
  color: var(--muted-ink);   /* locked system: muted labels (styles.css .col-head) */
}
.vm-text {
  font-size: 32px;           /* locked system: mobile display step 32 reused as card display type */
  line-height: 1.3;          /* locked system: caption leading (styles.css .card-cap) */
  letter-spacing: -0.8px;    /* locked system: mobile display tracking (styles.css) */
  max-width: 520px;          /* derived: keeps the statement to a calm measure inside the card */
}

/* ---- Values grid ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;                 /* locked system: card gap 32 */
  max-width: 1344px;         /* kit: ref widest content box 1344 */
  margin: 0 auto;
}
.value-card {
  border-radius: 32px;       /* kit: card radius 32, no border, no shadow */
  padding: 40px 32px;        /* derived: card caption pad 32 (locked .card-cap), opened at the top */
  display: flex;
  flex-direction: column;
  gap: 16px;                 /* kit: spacing base 16 */
}
.value-card h3 {
  font-size: 24px;           /* locked system: eyebrow scale 24 reused as card head; weight stays 400 */
  font-weight: 400;
  letter-spacing: -0.5px;    /* derived: light display tracking at the 24 step */
}
.value-card p {
  font-size: 16px;           /* kit: body 16 */
  line-height: 1.5;          /* locked system: body leading (styles.css body) */
}

/* ---- Management team: monogram tiles, typography on pastel fills ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;                 /* locked system: card gap 32 */
  max-width: 1344px;         /* kit: ref widest content box 1344 */
  margin: 0 auto;
}
.team-card {
  border-radius: 32px;       /* kit: card radius 32, no border, no shadow */
  padding: 32px;             /* locked system: card pad 32 (styles.css .card-cap) */
  display: flex;
  flex-direction: column;
  min-height: 340px;         /* derived: tile proportion near the ref card ratio, calmer height */
}
.monogram {
  font-size: 96px;           /* locked system: display scale 96 (styles.css .display) as pure typography */
  font-weight: 400;          /* kit: hierarchy by SIZE at weight 400 */
  letter-spacing: -2.4px;    /* locked system: display tracking (styles.css .display) */
  line-height: 1;
  text-align: center;
  margin: 40px 0 56px;       /* derived: centers the monogram in the tile's upper field */
}
.team-name {
  font-size: 20px;           /* locked system: sheet-row scale 20 */
  margin-top: auto;
}
.team-title {
  font-size: 16px;           /* kit: body 16 */
  color: var(--muted-ink);   /* locked system: muted labels */
  margin-top: 4px;           /* kit: radius scale member 4 as the tightest step */
}
.governance {
  max-width: 780px;          /* derived: calm closing measure, narrower than the grid */
  margin: 64px auto 0;       /* derived: grid-to-line step, two 32 gaps */
  text-align: center;
  font-size: 16px;           /* kit: body 16 */
  line-height: 1.75;         /* locked system: disclosure leading (styles.css .disclosure p) */
}

/* ---- Closing CTA: calm centered stack, primary red pill ---- */
.page-cta {
  padding: 128px 48px;       /* kit: section pad 128 */
  text-align: center;
}
.page-cta .display { margin-bottom: 48px; } /* kit: head-to-action step 48 */
.pill-red {
  background: var(--accent-cta); /* kit: primary pill = accent-cta with white text, 5.86:1 AA */
  color: #FFFFFF;
}
.pill-red:hover {
  background: #AE1217;       /* kit: accent-cta hover state */
  opacity: 1;
}

/* ---- Mobile (locked breakpoint 820; kit: mobile gutter 20, h1 28) ---- */
@media (max-width: 1100px) {
  .values-grid, .team-grid { grid-template-columns: repeat(2, 1fr); } /* derived: two-up before the single column, keeps cards wide enough */
}
@media (max-width: 820px) {
  .page-hero { padding: 56px 20px 40px; } /* kit: mobile gutter 20 (locked mobile pattern) */
  .page-eyebrow { font-size: 16px; }      /* locked system: mobile eyebrow 16 */
  .page-h1 {
    font-size: 28px;         /* kit: mobile h1 28px */
    letter-spacing: -0.7px;  /* locked system: mobile h1 tracking fingerprint, rounded */
  }
  .page-lead { font-size: 16px; margin-top: 20px; } /* kit: body 16 */
  .fact-band { padding: 0 20px 48px; }
  .backing { padding: 48px 20px; }
  .backing p { font-size: 20px; }         /* locked system: sheet-row scale 20 */
  .vm, .values, .team { padding: 48px 20px 0; }
  .vm .display, .values .display, .team .display { margin-bottom: 32px; }
  .vm-grid, .values-grid, .team-grid { grid-template-columns: 1fr; gap: 16px; } /* kit: spacing base 16 on mobile */
  .vm-card { padding: 32px 24px; min-height: 0; }
  .vm-text { font-size: 24px; }           /* locked system: eyebrow scale 24 */
  .team-card { min-height: 0; }
  .monogram { font-size: 64px; letter-spacing: -1.6px; margin: 24px 0 48px; } /* locked system: footer input display 64; tracking scaled with size */
  .governance { margin-top: 48px; }
  .page-cta { padding: 76px 20px; }       /* kit: section pad 76 on mobile */
  .page-cta .display { margin-bottom: 32px; }
}

/* ==========================================================================
   Inner-page revamp (2026-07-11, Thomas verdict: inner pages alive, facts real).
   Catalog components re-tokened to the kit; every effect is JS-gated
   progressive enhancement, so no JS and reduced motion keep the calm page.
   ========================================================================== */

/* ---- catalog 016 AnimatedNumber: numeral slots (JS locks min-width pre-count, no chip jitter) ---- */
.count {
  display: inline-block;
  text-align: center;
  font-variant-numeric: tabular-nums; /* engineering: digits hold width while the spring rolls */
}

/* ---- Staggered scroll reveals (JS adds .pre-reveal only to elements still below the fold;
        no-JS never hides anything, and the whole effect lives behind no-preference) ---- */
@media (prefers-reduced-motion: no-preference) {
  .pre-reveal {
    opacity: 0;
    transform: translateY(26px);   /* derived: one step over the 16 base, calm rise */
  }
  .pre-reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity .65s var(--ease-house), transform .65s var(--ease-house); /* kit: primary house curve */
  }
}

/* ---- catalog 007 Card Stack: the values deck (JS adds .deck; the grid above is the fallback) ---- */
.values-grid.deck {
  display: block;
  position: relative;
  max-width: 720px;          /* derived: one calm card measure inside the 1344 box */
  height: 400px;             /* derived: holds the longest value statement with air */
  margin: 40px auto 0;       /* derived: headroom for the -32px lift of depth-2 cards */
  touch-action: pan-y;       /* engineering: horizontal drag never steals vertical scroll */
}
.deck .value-card {
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 56px;        /* locked system: footer card pad 48, opened sideways */
  gap: 20px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
  /* catalog 007 spring {stiffness 170, damping 26} maps to the house curve at .5s */
  transition: transform .5s var(--ease-house), opacity .35s ease, filter .35s ease;
}
.deck .value-card.dragging { cursor: grabbing; transition: none; }
.deck .value-card h3 {
  font-size: 32px;           /* locked system: mobile display step 32 as deck display type */
  letter-spacing: -0.8px;
}
.deck .value-card p {
  font-size: 18px;           /* derived: one half-step over body 16 for the stage */
  line-height: 1.6;
  max-width: 540px;
}
.deck-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;                 /* kit: radius scale member 24 as the control step */
  margin-top: 40px;
}
.deck-dots { display: flex; gap: 8px; }
.deck-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);   /* kit: secondary fill */
  transition: background-color .3s ease, transform .3s ease;
}
.deck-dots span.on {
  background: var(--accent-cta); /* kit: primary accent-cta marks the live card */
  transform: scale(1.3);
}
.deck-hint {
  text-align: center;
  font-size: 14px;           /* locked system: legal-row scale 14 */
  color: var(--muted-ink);
  margin-top: 16px;          /* kit: spacing base 16 */
}

/* ---- catalog 011 Tilt Card: gentle tilt + cream sheen on the monogram tiles (JS drives the vars) ---- */
.team-card {
  position: relative;
  overflow: hidden;          /* the sheen respects the 32px card radius */
}
.team-card::after {
  /* catalog glare re-toned: cream sheen, never a shadow (kit: cards carry no shadow) */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: radial-gradient(circle at var(--glx, 50%) var(--gly, 50%), rgba(255, 253, 248, .40) 0%, rgba(255, 253, 248, 0) 70%);
  opacity: 0;
  transition: opacity .2s ease-out; /* catalog: easeOut .2s */
  pointer-events: none;
}
.team-card.tilting::after { opacity: 1; }

/* ---- catalog 013 Icon Slide In: pill CTA, arrow slides in + fill bubble blooms (pure CSS) ---- */
.pill-slide {
  position: relative;
  overflow: hidden;
}
.pill-slide .pill-label {
  position: relative;
  z-index: 2;
  transition: transform .5s cubic-bezier(.34, 1.08, .64, 1); /* catalog spring {bounce .1, .5s} */
}
.pill-slide .pill-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  margin-top: -7px;
  right: -20px;              /* catalog: icon parks offscreen right */
  opacity: 0;
  transition: right .5s cubic-bezier(.34, 1.08, .64, 1), opacity .35s ease;
}
.pill-slide::before {
  /* catalog fill bubble: a circle blooms from bottom center to flood the pill */
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -8px;
  width: 8px;
  height: 8px;
  border-radius: 96px;
  transform: translateX(-50%);
  background: var(--pill-bubble, rgba(89, 48, 50, .12));
  transition: width .5s cubic-bezier(.34, 1.08, .64, 1), height .5s cubic-bezier(.34, 1.08, .64, 1), bottom .5s cubic-bezier(.34, 1.08, .64, 1);
}
.pill-slide:hover::before,
.pill-slide:focus-visible::before {
  width: 130%;
  height: 240px;
  bottom: -70px;
}
.pill-slide:hover .pill-arrow,
.pill-slide:focus-visible .pill-arrow { right: 16px; opacity: 1; }
.pill-slide:hover .pill-label,
.pill-slide:focus-visible .pill-label { transform: translateX(-11px); }
.pill-red.pill-slide { --pill-bubble: #AE1217; }   /* kit: accent-cta hover state as the bloom */
.pill-red.pill-slide:hover { background: var(--accent-cta); } /* the bubble carries the hover, not the flat swap */

/* ---- Mobile for the revamp layer ---- */
@media (max-width: 820px) {
  .values-grid.deck { height: 430px; margin-top: 28px; } /* derived: narrow cards run longer lines */
  .deck .value-card { padding: 32px 24px; }
  .deck .value-card h3 { font-size: 24px; letter-spacing: -0.5px; } /* locked system: eyebrow scale 24 */
  .deck .value-card p { font-size: 16px; }
  .deck-controls { margin-top: 32px; }
}

/* ---- Reduced motion: kill every revamp effect (deck, tilt, reveals are JS-gated off;
        the pill states below snap instantly instead of animating) ---- */
@media (prefers-reduced-motion: reduce) {
  .pill-slide .pill-label,
  .pill-slide .pill-arrow,
  .pill-slide::before,
  .team-card::after,
  .deck-dots span,
  .count { transition: none; }
}
