/* ==========================================================================
   Allied Insurance, ABOUT page stylesheet (Pass 1)
   Layered AFTER styles.css (the locked design system). Adds ONLY the devices
   this page needs: page-hero variant, mission/vision SmoothTabs (CSS-only),
   the regulated stat band, the core-values promise-list, and the board roster.
   Reuses shared tokens + classes (.split, .headline, .beat, .btn, .container).
   No new colors, radii held to {4px, 6px, 9999px}. No card shadows.
   ========================================================================== */

/* shared eyebrow (small uppercase gold kicker) */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ==========================================================================
   PAGE HERO  (variant: shorter dark band, static warm image, CSS fade-in)
   Distinct from the home hero (that is a full-bleed ~100vh video field).
   ========================================================================== */
.page-hero {
  position: relative;
  min-height: clamp(440px, 64vh, 640px);
  display: flex;
  align-items: center;
  background: var(--brand-dark);
  overflow: hidden;
}
.page-hero__media {
  position: absolute;
  inset: 0;
  background: var(--brand-dark) url("../img/webp/about-hero.webp") center/cover no-repeat;
  opacity: 1;
  animation: pageHeroFade 0.9s ease both;
}
@keyframes pageHeroFade { from { opacity: 0; } to { opacity: 1; } }
/* warm cinematic grade into the green-gold world + left-legibility scrim */
.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(31, 33, 18, 0.92) 0%, rgba(31, 33, 18, 0.62) 46%, rgba(31, 33, 18, 0.34) 100%),
    linear-gradient(180deg, rgba(31, 33, 18, 0.20) 0%, rgba(31, 33, 18, 0.15) 55%, rgba(73, 111, 54, 0.50) 100%),
    radial-gradient(120% 90% at 88% 14%, rgba(217, 138, 43, 0.18) 0%, rgba(217, 138, 43, 0) 55%);
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 150px var(--gutter) 92px;
}
.page-hero__eyebrow { color: var(--accent-soft); }
.page-hero h1 {
  font-size: var(--h1-desktop);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 15ch;
}
.page-hero h1 .beat-gold { color: var(--accent-soft); display: block; }
.page-hero h1 .beat-cream { color: var(--on-dark); display: block; }
.page-hero__sub {
  color: var(--on-dark-70);
  font-size: 18px;
  line-height: 1.6;
  max-width: 52ch;
  margin-top: 24px;
}

/* ==========================================================================
   WHO IS ALLIED  (split text + image, light)
   ========================================================================== */
.about-who { background: var(--surface); padding-block: var(--section-pad); }
.about-who .col-media { min-height: 500px; }
.about-who .col-media img { min-height: 500px; }
.about-who .col-text { max-width: 46ch; }
.about-who .section-body p { margin-top: 18px; }

/* ==========================================================================
   MISSION / VISION  (SmoothTabs, CSS-only radio/label, component 071)
   ========================================================================== */
.mv { background: var(--canvas); padding-block: var(--section-pad); }
.mv-head { max-width: 30ch; margin-bottom: 44px; }

.smoothtabs { position: relative; }
.smoothtabs .tab-radio {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.tabs-nav {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  margin-bottom: 40px;
}
.tab-label {
  display: inline-flex;
  align-items: center;
  padding: 11px 26px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-70);
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.tab-label:hover { color: var(--ink); }
/* active tab (radio checked -> its label) */
#tab-mission:checked ~ .tabs-nav .tab-label[for="tab-mission"],
#tab-vision:checked ~ .tabs-nav .tab-label[for="tab-vision"] {
  background: var(--brand-green);
  color: var(--on-dark);
}
/* keyboard focus ring on the active label control */
.tab-radio:focus-visible ~ .tabs-nav .tab-label[for="tab-mission"],
.tab-radio:focus-visible ~ .tabs-nav .tab-label[for="tab-vision"] {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tab-panels { position: relative; }
.tab-panel { display: none; }
#tab-mission:checked ~ .tab-panels .panel-mission,
#tab-vision:checked ~ .tab-panels .panel-vision {
  display: block;
  animation: tabFade .4s ease;
}
@keyframes tabFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.mv-statement {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 22ch;
}
.mv-statement .lead { color: var(--brand-green); }
.mv-kicker {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

/* ==========================================================================
   REGULATED  (dark trust band, "Regulated." two-beat + stat row)
   ========================================================================== */
.regulated {
  background: var(--brand-dark);
  color: var(--on-dark);
  padding-block: var(--section-pad);
}
.reg-head { max-width: 30ch; }
.reg-head .beat-1 { color: var(--accent-soft); }
.reg-head .beat-2 { color: var(--on-dark); }
.reg-lead { color: var(--on-dark-70); margin-top: 18px; max-width: 52ch; }
.reg-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}
.reg-stat { border-top: 1px solid rgba(254, 252, 246, 0.16); padding-top: 24px; }
.reg-stat .num {
  font-size: clamp(38px, 5.4vw, 60px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent-soft);
}
.reg-stat .lbl { color: var(--on-dark-70); font-size: 15.5px; margin-top: 12px; max-width: 26ch; }

/* ==========================================================================
   CORE VALUES  (promise-list device, split: text left / numbered list right)
   ========================================================================== */
.values { background: var(--canvas); padding-block: var(--section-pad); }
.values .split { align-items: start; }
.values .col-text { max-width: 38ch; padding-top: 6px; }
.values-title { font-size: 22px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.values-list { list-style: none; margin: 0; padding: 0; }
.values-list li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 4px;
  border-top: 1px solid var(--line);
}
.values-list li:last-child { border-bottom: 1px solid var(--line); }
.values-list .idx {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  min-width: 28px;
  font-variant-numeric: tabular-nums;
}
.values-list .val { font-size: 19px; font-weight: 600; color: var(--ink); }

/* ==========================================================================
   BOARD OF DIRECTORS  (monogram tiles, NO photos, NO invented titles)
   ========================================================================== */
.board { background: var(--surface); padding-block: var(--section-pad); }
.board-head { max-width: 34ch; margin-bottom: 48px; }
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.board-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  transition: border-color .2s ease, transform .2s ease;
}
.board-card:hover { border-color: var(--accent-soft); transform: translateY(-2px); }
.board-mono {
  flex: 0 0 auto;
  width: 60px; height: 60px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: radial-gradient(120% 120% at 30% 20%, #5c8446 0%, #496f36 60%, #3c5c2c 100%);
  color: var(--on-dark);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.board-card:nth-child(3n-1) .board-mono {
  background: radial-gradient(120% 120% at 30% 20%, var(--accent-soft) 0%, var(--accent) 62%, var(--accent-deep) 100%);
}
.board-name { font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.2; }

/* ==========================================================================
   CTA "why allied"  (reuses .cta-support from styles.css; nothing to add)
   ========================================================================== */

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .page-hero__inner { padding: 128px var(--gutter) 72px; }
  .about-who .split .col-media { order: 2; min-height: 420px; }
  .about-who .split .col-text { order: 1; }
  .about-who .col-media img { min-height: 420px; }
  .reg-stats { gap: 28px; }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .values .col-text { max-width: none; }
}

@media (max-width: 560px) {
  .page-hero h1 { font-size: var(--h1-mobile); }
  .reg-stats { grid-template-columns: 1fr; gap: 22px; }
  .reg-stat { padding-top: 18px; }
  .tabs-nav { display: flex; width: 100%; }
  .tab-label { flex: 1; justify-content: center; padding: 12px 10px; }
  .board-grid { grid-template-columns: 1fr; }
  .board-card { padding: 20px; gap: 16px; }
  .board-mono { width: 52px; height: 52px; font-size: 18px; }
  .board-name { overflow-wrap: anywhere; }
}

/* ==========================================================================
   PASS-2 FACELIFT, about-page catalog components (layered on the composition)
   Page-specific only; shared component CSS lives in styles.css. Radii held to
   {4,6,14 (card),9999}. Every motion path defaults to the revealed state so
   no-JS + reduced-motion show full content; about.js arms then reveals.
   ========================================================================== */

/* ---- 204 Lottie accents (section motifs) -------------------------------- */
.who-lottie { margin-bottom: 22px; }
.values-lottie { margin-bottom: 20px; }

/* ==========================================================================
   173 Simple Timeline (the Allied story): vertical scroll-reveal
   Dual-mode component's vertical layout: connecting line + glowing line-fill,
   dots that expand and pulse as each event enters, event text lifts in.
   ========================================================================== */
.story { background: var(--surface); padding-block: var(--section-pad); }
.story-head { max-width: 34ch; margin-bottom: 56px; }

.al-timeline-wrap { position: relative; max-width: 780px; }
.al-timeline { position: relative; list-style: none; margin: 0; padding: 0; max-width: 780px; }

/* connecting line + glowing progressive fill to the active event */
.al-tl-line {
  position: absolute; left: 11px; top: 6px; bottom: 6px; width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, transparent 0%, var(--line) 9%, var(--line) 91%, transparent 100%);
}
.al-tl-fill {
  position: absolute; left: 0; top: 0; width: 100%; height: 0; border-radius: 4px;
  background: linear-gradient(180deg, var(--brand-green), var(--accent-soft));
  box-shadow: 0 0 12px rgba(175, 95, 5, .5);
  transition: height .6s cubic-bezier(.4, 0, .2, 1);
}

.al-tl-item {
  position: relative; padding: 0 0 46px 56px;
  transition: opacity .6s cubic-bezier(.4, 0, .2, 1), transform .6s cubic-bezier(.4, 0, .2, 1);
}
.al-tl-item:last-child { padding-bottom: 4px; }

/* dot: centered on the 4px line (center x = 13px) */
.al-tl-dot {
  position: absolute; left: -1px; top: 2px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-green); border: 4px solid var(--surface);
  box-shadow: 0 0 0 3px var(--line), 0 0 26px rgba(73, 111, 54, .5), 0 0 52px rgba(175, 95, 5, .28);
  transform: scale(1);
  transition: transform .6s cubic-bezier(.4, 0, .2, 1), background-color .6s ease, box-shadow .6s ease;
}
.al-tl-date {
  display: block; font-size: 14px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
}
.al-tl-title { font-size: 21px; font-weight: 600; color: var(--ink); margin-top: 8px; }
.al-tl-desc {
  font-size: 16px; color: var(--ink-70); margin-top: 8px; max-width: 52ch;
  max-height: 240px; overflow: hidden;
  transition: max-height .6s cubic-bezier(.4, 0, .2, 1), opacity .6s ease;
}

/* armed (JS present, not yet in view): dim + collapse; is-in restores + pulses */
/* pre-reveal: slide + collapse the description only. No opacity dim on the item,
   which would drop the gold date and title below AA text contrast (axe serious). */
.al-timeline.is-armed .al-tl-item:not(.is-in) { transform: translateX(-16px); }
.al-timeline.is-armed .al-tl-item:not(.is-in) .al-tl-dot {
  background: var(--line); box-shadow: 0 0 0 3px var(--line); transform: scale(.72);
}
.al-timeline.is-armed .al-tl-item:not(.is-in) .al-tl-desc { max-height: 0; opacity: 0; }
.al-tl-item.is-in .al-tl-dot { animation: alTlPulse 2.4s ease-in-out infinite .5s; }
@keyframes alTlPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* ==========================================================================
   190 Glow Counter Cards (regulated trust row): rolling numbers + glow ring
   ========================================================================== */
.regulated { position: relative; overflow: hidden; }
.regulated .container { position: relative; z-index: 2; }

.al-glow-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px;
}
.al-glow-card { position: relative; border-radius: 14px; }
.al-glow-ring {
  position: absolute; inset: 0; border-radius: 14px; padding: 2px; pointer-events: none; z-index: 0;
  color: var(--accent-soft);
  background: linear-gradient(90deg, var(--accent-soft), rgba(254, 252, 246, .06), var(--accent-soft));
  background-size: 220% 220%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: alGlowScroll 5s linear infinite;
  transition: box-shadow .25s ease;
}
.al-glow-body {
  position: relative; z-index: 1; border-radius: 14px; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 32px 22px;
  background: rgba(254, 252, 246, .04);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .2s cubic-bezier(.34, 1.08, .64, 1);
}
.al-glow-card:hover .al-glow-ring { box-shadow: 0 0 28px var(--accent-soft); }
.al-glow-card:hover .al-glow-body { transform: scale(1.01); }
.al-glow-num {
  font-size: clamp(38px, 5vw, 54px); font-weight: 700; line-height: 1;
  letter-spacing: -.02em; color: var(--accent-soft); font-variant-numeric: tabular-nums;
}
.al-glow-num--text { letter-spacing: .02em; }
.al-glow-title { font-size: 15px; font-weight: 600; color: var(--on-dark); margin-top: 14px; }
.al-glow-desc { font-size: 13.5px; color: var(--on-dark-70); margin-top: 6px; max-width: 24ch; }
@keyframes alGlowScroll { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

/* staggered entrance (armed by JS; no-JS shows cards immediately) */
.al-glow-grid.is-armed .al-glow-card { opacity: 0; transform: translateY(18px); }
.al-glow-grid.is-in .al-glow-card {
  opacity: 1; transform: none;
  transition: opacity .45s cubic-bezier(.34, 1.08, .64, 1), transform .45s cubic-bezier(.34, 1.08, .64, 1);
}
.al-glow-grid.is-in .al-glow-card:nth-child(2) { transition-delay: .12s; }
.al-glow-grid.is-in .al-glow-card:nth-child(3) { transition-delay: .24s; }

/* ==========================================================================
   303 CircularProgressBar (core-values ring): draws to complete on scroll-in
   Default (no-JS / reduced-motion) = the FINAL filled state; about.js arms it
   (empties) then reveals, matching this page's progressive-reveal contract.
   ========================================================================== */
.al-ring { position: relative; width: 118px; height: 118px; margin-top: 30px; }
.al-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.al-ring circle { fill: none; stroke-width: 8; }
.al-ring__track { stroke: var(--line); }
.al-ring__value {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 327;                 /* 2 * pi * 52 */
  stroke-dashoffset: 0;                  /* filled by default (no-JS shows complete) */
  transition: stroke-dashoffset 1.2s cubic-bezier(.4, 0, .2, 1);
}
.al-ring.is-armed .al-ring__value { stroke-dashoffset: 327; }
.al-ring.is-armed.is-in .al-ring__value { stroke-dashoffset: 0; }
.al-ring__center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.al-ring__num { font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--brand-green); font-variant-numeric: tabular-nums; }
.al-ring__lbl { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-70); }

/* ==========================================================================
   127 Flow Marquee (core values, seamless loop): distinct from the 091 ticker
   ========================================================================== */
.values-marquee {
  background: var(--brand-dark);
  overflow: hidden;
  border-top: 1px solid rgba(254, 252, 246, .10);
  border-bottom: 1px solid rgba(254, 252, 246, .10);
}
.vm-track { display: flex; align-items: center; width: max-content; animation: vmFlow 30s linear infinite; will-change: transform; }
.vm-item {
  font-size: clamp(24px, 3.4vw, 40px); font-weight: 600; letter-spacing: -.01em;
  color: var(--on-dark); padding: 24px 30px; white-space: nowrap;
}
.vm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes vmFlow { to { transform: translateX(-50%); } }

/* ==========================================================================
   011 / 029 / 062 Board roster as tilt cards (shared .tilt-card, board look kept)
   ========================================================================== */
.board-card.tilt-card {
  display: flex; align-items: center; gap: 20px; padding: 26px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
}
.board-card.tilt-card .board-name { transform: translateZ(20px); }
.board-card.tilt-card .board-mono { transform: translateZ(30px); }

/* ==========================================================================
   RESPONSIVE (Pass-2 additions)
   ========================================================================== */
@media (max-width: 980px) {
  .al-glow-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .al-glow-body { padding: 26px 14px; }
}
@media (max-width: 640px) {
  .al-glow-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .story-head { margin-bottom: 40px; }
  .al-tl-item { padding-left: 48px; }
  .al-tl-title { font-size: 19px; }
}

/* ==========================================================================
   REDUCED MOTION (page-level; global kill also lives in styles.css)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .page-hero__media { animation: none; opacity: 1; }
  #tab-mission:checked ~ .tab-panels .panel-mission,
  #tab-vision:checked ~ .tab-panels .panel-vision { animation: none; }
  .al-tl-fill { transition: none; }
  .al-tl-item.is-in .al-tl-dot { animation: none; }
  .al-glow-ring { animation: none; }
  .vm-track { animation: none !important; }
  .al-ring__value { transition: none !important; }
  .al-ring.is-armed .al-ring__value { stroke-dashoffset: 0; }
  .al-glow-grid.is-armed .al-glow-card { opacity: 1; transform: none; }
  .al-timeline.is-armed .al-tl-item:not(.is-in) { opacity: 1; transform: none; }
  .al-timeline.is-armed .al-tl-item:not(.is-in) .al-tl-desc { max-height: 240px; opacity: 1; }
  .al-timeline.is-armed .al-tl-item:not(.is-in) .al-tl-dot { background: var(--brand-green); transform: scale(1); }
}
