/* The company story: timeline, five-year figures and archive film.
   Every value comes from fr-system.css. */
.fa-history-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; gap: 40px var(--pz-col-gap); }
.fa-history-evidence { display: grid; gap: 28px; min-width: 0; }
/* Five-year figures: quiet rows, label on the left, figure on the right */
.fa-balance .fa-balance-period { margin-bottom: 8px; color: var(--pz-muted); }
.fa-balance h3 { max-width: 24ch; }
.fa-balance-figures { margin-top: 20px; }
.fa-balance-figures > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 14px; border-top: 1px solid var(--pz-line); }
.fa-balance-figures dt { color: var(--pz-muted); }
.fa-balance-figures dd { font-size: var(--pz-fs-h3); font-weight: var(--pz-fw-bold); line-height: 1.2; letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.fa-balance-note { padding-top: 14px; }
/* Archive film: a small still and a link */
.fa-archive-film { min-width: 0; }
.fa-archive-film a { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.fa-archive-film img { flex: none; width: clamp(5.5rem, 10vw, 9rem); height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--pz-r-sm); background: var(--pz-ink); }
.fa-archive-film a > span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: var(--pz-fs-small); font-weight: var(--pz-fw-semi); }
.fa-archive-film i { display: block; width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid var(--pz-red); }
.fa-archive-film a:hover > span { text-decoration: underline; text-underline-offset: .2em; }

.fa-history-events { --fa-date: 6rem; --fa-rail-gap: clamp(18px, 1.8vw, 28px); --fa-rail-x: calc(var(--fa-date) + var(--fa-rail-gap)); --fa-pin-y: .7rem; list-style: none; padding: 0; }
.fa-milestone { position: relative; display: grid; grid-template-columns: var(--fa-date) minmax(0, 1fr); column-gap: calc(var(--fa-rail-gap) * 2); padding-bottom: clamp(28px, 3vw, 44px); }
.fa-milestone:last-child { padding-bottom: 0; }
.fa-milestone-date { color: var(--pz-red-ink); font-size: var(--pz-fs-small); font-weight: var(--pz-fw-semi); line-height: 1.6; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fa-milestone-rail { position: absolute; inset-inline-start: var(--fa-rail-x); top: var(--fa-pin-y); width: 2px; height: 100%; background: var(--pz-red); transform: translateX(-50%); }
.fa-milestone-rail::before { content: ""; position: absolute; z-index: 1; top: 0; left: 50%; width: 10px; height: 10px; border-radius: var(--pz-r-pill); background: var(--pz-red); box-shadow: 0 0 0 3px var(--pz-white); transform: translate(-50%, -50%); }
.fa-milestone:has(+ .is-planned) .fa-milestone-rail { background: repeating-linear-gradient(to bottom, var(--pz-line-strong) 0 4px, transparent 4px 9px); }
.fa-milestone:last-child .fa-milestone-rail { height: 0; }
.fa-milestone.is-planned .fa-milestone-rail::before { border: 2px solid var(--pz-line-strong); background: var(--pz-white); }
.fa-milestone.is-planned .fa-milestone-date { color: var(--pz-muted); }
.fa-history-events h3 { font-size: var(--pz-fs-h4); line-height: 1.3; letter-spacing: -.02em; }
.fa-history-events li p { max-width: 52ch; margin-top: 6px; color: var(--pz-muted); }

@media screen and (prefers-reduced-motion: no-preference) {
  @supports (view-timeline-inset: 44% 56%) and (animation-timeline: view()) {
    .fa-milestone { view-timeline: --fa-milestone block; view-timeline-inset: 44% 56%; }
    .fa-milestone:has(+ .fa-milestone:not(.is-planned)) .fa-milestone-rail { background: var(--pz-line); }
    .fa-milestone:has(+ .fa-milestone:not(.is-planned)) .fa-milestone-rail::after { content: ""; position: absolute; inset: 0; background: var(--pz-red); transform-origin: top; animation: fa-trace linear both; animation-timeline: --fa-milestone; }
    @keyframes fa-trace { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  }
}
@media (max-width: 1050px) {
  .fa-history-events { --fa-rail-x: .45rem; --fa-pin-y: .68rem; }
  .fa-milestone { display: block; padding-inline-start: 2rem; }
  .fa-milestone-date { display: block; margin-bottom: 4px; text-align: start; }
}
@media (max-width: 899px) {
  .fa-history-body { grid-template-columns: minmax(0, 1fr); }
}
