/*!
 * About page (/about-us) — loaded only on that page, after base.css and
 * site.css, and built from their tokens and components (.landing-hero,
 * .eyebrow, .landing-title, .portrait, .quote-band, .cta-band, .deco).
 *
 *  hero ........ copy, key facts, stack of real newspaper pages
 *  intro ....... who we are + the four things that shaped Lokadarshan
 *  journey ..... sticky progress rail, spine, milestones, interlude, finale
 *  visuals ..... nameplate, editions map, handover, digital, platforms
 *  awards ...... recognition grid on navy
 *  viewer ...... larger images in a <dialog>
 *
 * Journey states come from js/about.js on .about-journey.is-enhanced
 * (data-state = future | next | active | past). Without JS every milestone
 * is shown in full.
 */

/* Gold buttons: the shared .btn--gold (white on #b8862f) is 3.2:1, below
   WCAG AA for text; on this page they use navy text instead (4.9:1). */
.about .btn--gold {
  --btn-fg: var(--c-navy);
}

.about .btn--gold:hover {
  --btn-bg: #f1d49b;
  --btn-bd: #f1d49b;
}

/* =========================================================================
   Hero
   ========================================================================= */
.about-hero {
  padding-top: var(--s-6);
}

.about-hero .breadcrumbs,
.about-hero .breadcrumbs [aria-current="page"] {
  color: rgb(255 255 255 / 0.7);
}

.about-hero .breadcrumbs a:hover {
  color: #fff;
}

/* Top-aligned so the copy cannot jump when the web fonts swap in. */
.about-hero__grid {
  display: grid;
  gap: var(--s-12);
  align-items: start;
  margin-top: var(--s-8);
}

@media (min-width: 960px) {
  .about-hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: var(--s-16);
  }
}

.about-hero__title {
  max-width: 17ch;
  margin-top: var(--s-5);
  color: #fff;
  font-size: clamp(2.25rem, 1.25rem + 3.6vw, 4rem);
  font-weight: var(--w-black);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.about-hero__text {
  max-width: 58ch;
  margin-top: var(--s-5);
  font-family: var(--f-read);
  font-size: var(--t-md);
  line-height: 1.9;
}

.about-hero__text em {
  color: #f1d49b;
  font-style: normal;
  font-weight: 600;
}

.about-hero__visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 26rem;
}

.about-hero__caption {
  margin-top: var(--s-6);
  text-align: center;
  color: rgb(255 255 255 / 0.6);
  font-size: var(--t-sm);
}

/* A stack of three real pages; tilts use the individual `rotate`/`translate`
   properties so they compose with the parallax transform set by site.js. */
.paper-stack {
  position: relative;
  width: min(68vw, 22rem);
  margin-inline: auto;
}

.paper-stack__page {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: var(--r-xs);
  background: #fff;
  box-shadow: var(--sh-3);
}

.paper-stack__page--back {
  rotate: -9deg;
  translate: -15% 3%;
  opacity: 0.5;
  filter: grayscale(0.4) brightness(0.9);
}

.paper-stack__page--mid {
  rotate: 7deg;
  translate: 13% 0;
  opacity: 0.72;
}

.paper-stack__front {
  position: relative;
  margin: 0;
  rotate: -1.5deg;
  transition: rotate var(--d-slow) var(--ease-out);
}

.paper-stack__front img {
  width: 100%;
  border-radius: var(--r-xs);
  background: #fff;
  box-shadow: 0 34px 60px -22px rgb(0 0 0 / 0.65), 0 0 0 1px rgb(255 255 255 / 0.15);
}

.about-hero__visual:hover .paper-stack__front,
.paper-stack__front:focus-within {
  rotate: 0deg;
}

.seal {
  position: absolute;
  left: -1.5rem;
  bottom: 14%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 6rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f1d49b;
  color: var(--c-navy);
  line-height: 1;
  text-align: center;
  rotate: -10deg;
  box-shadow: 0 14px 30px -10px rgb(0 0 0 / 0.55), inset 0 0 0 4px var(--c-gold), inset 0 0 0 6px #f1d49b, inset 0 0 0 7px rgb(143 102 32 / 0.5);
}

.seal small {
  font-size: var(--t-2xs);
  font-weight: var(--w-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.seal b {
  margin-top: 0.2rem;
  font-size: 1.6rem;
  font-weight: var(--w-black);
  font-variant-numeric: tabular-nums;
}

/* "View page" / "View larger" — only offered once about.js can open the viewer */
.zoom-btn {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 1;
  display: none;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.95rem;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: var(--r-pill);
  background: rgb(20 33 61 / 0.85);
  color: #fff;
  font-size: var(--t-xs);
  font-weight: var(--w-semi);
  box-shadow: var(--sh-2);
  transition: background-color var(--d-fast) var(--ease-out), transform var(--d-fast) var(--ease-out);
}

.js .zoom-btn {
  display: inline-flex;
}

.zoom-btn:hover,
.zoom-btn:focus-visible {
  background: var(--c-brand);
}

.zoom-btn:active {
  transform: translateY(1px);
}

/* key facts */
.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--r-xl);
  background: rgb(255 255 255 / 0.12);
}

@media (min-width: 768px) {
  .hero-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hero-facts__item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: var(--s-2);
  padding: var(--s-5) var(--s-6);
  background: rgb(20 33 61 / 0.92);
}

.hero-facts dd {
  margin: 0;
  color: #fff;
  font-size: var(--t-3xl);
  font-weight: var(--w-black);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero-facts dd::after {
  content: "";
  display: block;
  width: 1.75rem;
  height: 3px;
  margin-top: var(--s-3);
  border-radius: 3px;
  background: var(--c-gold);
}

.hero-facts dt {
  color: rgb(255 255 255 / 0.75);
  font-size: var(--t-sm);
  line-height: 1.45;
}

/* =========================================================================
   Who we are
   ========================================================================= */
.about-intro__grid {
  display: grid;
  gap: var(--s-12);
  align-items: center;
}

@media (min-width: 960px) {
  .about-intro__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: var(--s-16);
  }
}

.about-intro__lead {
  max-width: 50ch;
  margin-top: var(--s-5);
  padding-inline-start: var(--s-5);
  border-inline-start: 3px solid var(--c-brand);
  color: var(--c-ink);
  font-size: var(--t-xl);
  font-weight: var(--w-semi);
  line-height: 1.5;
}

.about-intro__prose {
  display: grid;
  gap: var(--s-4);
  max-width: 64ch;
  margin-top: var(--s-6);
  color: var(--c-ink-2);
  font-family: var(--f-read);
  line-height: 1.95;
}

.about-intro__prose strong {
  color: var(--c-ink);
  font-weight: 600;
}

.about-intro__portrait {
  width: 100%;
  max-width: 24rem;
}

.about-pillars {
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
}

.about-pillars__title {
  font-size: var(--t-2xl);
  font-weight: var(--w-black);
}

.about-pillars__grid {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-6);
}

@media (min-width: 640px) {
  .about-pillars__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .about-pillars__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-6);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  background: var(--c-paper);
  transition: background-color var(--d-base) var(--ease-out), border-color var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out);
}

.motion-ok .pillar[data-reveal] {
  transition:
    opacity var(--d-slow) var(--ease-out) var(--reveal-delay, 0ms),
    transform var(--d-slow) var(--ease-out) var(--reveal-delay, 0ms),
    background-color var(--d-base) var(--ease-out),
    border-color var(--d-base) var(--ease-out),
    box-shadow var(--d-base) var(--ease-out);
}

.pillar:hover {
  border-color: var(--c-brand-line);
  background: var(--c-surface);
  box-shadow: var(--sh-2);
}

.pillar:hover .icon-chip {
  transform: rotate(-6deg) scale(1.06);
}

.pillar__title {
  margin-top: var(--s-1);
  font-size: var(--t-xl);
}

.pillar__text {
  flex: 1;
  color: var(--c-muted);
  font-family: var(--f-read);
  font-size: var(--t-sm);
  line-height: 1.85;
}

.pillar__years {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding-top: var(--s-3);
  border-top: 1px dashed var(--c-line-2);
  color: var(--c-muted);
  font-size: var(--t-xs);
}

.pillar__years span {
  margin-inline-end: 0.2rem;
  font-weight: var(--w-semi);
}

.pillar__years a {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0 0.65rem;
  border-radius: var(--r-pill);
  background: var(--c-navy-tint);
  color: var(--c-navy-2);
  font-weight: var(--w-bold);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: background-color var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out);
}

.pillar__years a:hover,
.pillar__years a:focus-visible {
  background: var(--c-brand);
  color: #fff;
}

/* =========================================================================
   Journey — rail
   ========================================================================= */
.about-journey__head {
  text-align: center;
}

.about-journey__head .landing-lead {
  margin-inline: auto;
}

/* The site navbar scrolls away with the header, so the rail sticks to the
   very top of the viewport. */
.journey-rail {
  position: sticky;
  top: 0;
  z-index: calc(var(--z-sticky) - 1);
  margin-top: var(--s-8);
  border-block: 1px solid var(--c-line);
  background: rgb(243 244 247 / 0.94);
}

@supports (backdrop-filter: blur(8px)) {
  .journey-rail {
    background: rgb(243 244 247 / 0.82);
    backdrop-filter: saturate(1.5) blur(12px);
    -webkit-backdrop-filter: saturate(1.5) blur(12px);
  }
}

.journey-rail__inner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.journey-rail__count {
  flex: none;
  display: none;
  align-items: baseline;
  gap: 0.25rem;
  color: var(--c-muted);
  font-size: var(--t-xs);
  font-weight: var(--w-semi);
  font-variant-numeric: tabular-nums;
}

.is-enhanced .journey-rail__count {
  display: flex;
}

.journey-rail__count b {
  color: var(--c-brand);
  font-size: var(--t-lg);
  font-weight: var(--w-black);
}

.journey-rail__scroller {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent);
}

.journey-rail__scroller::-webkit-scrollbar {
  display: none;
}

.journey-rail__track {
  position: relative;
  width: max-content;
  margin-inline: auto;
  padding-inline: 0.75rem;
}

.journey-rail__list {
  position: relative;
  z-index: 1;
  display: flex;
}

.journey-rail__list li {
  flex: none;
  width: 4.25rem;
}

.journey-rail__line {
  position: absolute;
  top: calc(0.6rem + 0.35rem - 1px);
  left: calc(0.75rem + 2.125rem);
  right: calc(0.75rem + 2.125rem);
  height: 2px;
  background: var(--c-line-2);
}

.journey-rail__line span {
  display: none;
  height: 100%;
  background: linear-gradient(90deg, var(--c-navy-3), var(--c-brand));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--d-slow) var(--ease-out);
}

.is-enhanced .journey-rail__line span {
  display: block;
}

.journey-rail__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0 0.45rem;
  border-radius: var(--r-sm);
  color: var(--c-muted);
  font-size: var(--t-xs);
  font-weight: var(--w-semi);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-decoration: none;
  transition: color var(--d-fast) var(--ease-out);
}

.journey-rail__dot {
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid var(--c-line-2);
  border-radius: 50%;
  background: var(--c-paper);
  transition: background-color var(--d-base) var(--ease-out), border-color var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out);
}

.journey-rail__link:hover {
  color: var(--c-ink);
}

.journey-rail__link:hover .journey-rail__dot {
  border-color: var(--c-brand);
}

.journey-rail__link.is-past {
  color: var(--c-ink-2);
}

.journey-rail__link.is-past .journey-rail__dot {
  border-color: var(--c-navy-3);
  background: var(--c-navy-3);
}

.journey-rail__link[aria-current="true"] {
  color: var(--c-brand);
  font-weight: var(--w-black);
}

.journey-rail__link[aria-current="true"] .journey-rail__dot {
  border-color: var(--c-brand);
  background: var(--c-brand);
  box-shadow: 0 0 0 4px rgb(200 0 122 / 0.18);
  transform: scale(1.25);
}

/* current year next to the counter: phones only (wide screens show every year) */
.journey-rail__current {
  display: none;
}

/* Phones: every milestone fits as an evenly spaced dot (no sideways
   scrolling, no years cut off at the edges); the current year is spelled
   out beside the counter. Year labels stay available to screen readers. */
@media (max-width: 767px) {
  /* counter + year on their own line so the dots get the full width
     (each tap target stays at least 24px wide, even at 320px) */
  .is-enhanced .journey-rail__inner {
    flex-wrap: wrap;
    row-gap: 0;
  }

  .is-enhanced .journey-rail__count {
    flex-basis: 100%;
    padding-top: 0.45rem;
  }

  .is-enhanced .journey-rail__current {
    display: inline;
    margin-inline-start: 0.6rem;
    padding-inline-start: 0.6rem;
    border-inline-start: 1px solid var(--c-line-2);
    color: var(--c-ink);
    font-size: var(--t-lg);
    font-style: normal;
    font-weight: var(--w-black);
  }

  .is-enhanced .journey-rail__scroller {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .is-enhanced .journey-rail__track {
    width: 100%;
    padding-inline: 0;
  }

  .is-enhanced .journey-rail__list li {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  .is-enhanced .journey-rail__link {
    padding-block: 0.6rem 0.75rem;
  }

  .is-enhanced .journey-rail__year {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .is-enhanced .journey-rail__line {
    top: calc(0.6rem + 0.35rem - 1px);
    left: calc(100% / (var(--n, 11) * 2));
    right: calc(100% / (var(--n, 11) * 2));
  }
}

/* =========================================================================
   Journey — timeline (mobile first: spine on the left)
   ========================================================================= */
.journey {
  --spine-x: 1.25rem;
  position: relative;
  margin-top: var(--s-10);
}

.journey__track {
  position: absolute;
  top: 2rem;
  bottom: 0;
  left: var(--spine-x);
  width: 3px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--c-line-2);
}

.journey__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(var(--c-navy-3), var(--c-brand) 55%, var(--c-gold));
  transform: scaleY(1);
  transform-origin: top;
}

.has-js-spine .journey__fill {
  transform: scaleY(0);
}

/* The spine fills to the middle of the viewport (scroll-driven where the
   browser supports it; js/about.js covers the rest). */
@keyframes journey-fill {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .motion-ok .journey__track {
      view-timeline: --journey block;
    }

    .motion-ok .journey__fill {
      animation: journey-fill linear both;
      animation-timeline: --journey;
      animation-range: cover 50vh cover calc(100% - 50vh);
    }
  }
}

.journey__list {
  position: relative;
  display: grid;
}

.milestone {
  position: relative;
  display: grid;
  grid-template-columns: calc(var(--spine-x) * 2) minmax(0, 1fr);
  column-gap: var(--s-4);
  row-gap: var(--s-5);
  padding-block: var(--s-6) var(--s-10);
  scroll-margin-top: 0.5rem; /* html's scroll-padding-top already clears the rail */
  outline: none;
}

.milestone__node {
  --node: 1.25rem;
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  margin-top: 1.6rem;
  border: 3px solid var(--c-navy-3);
  border-radius: 50%;
  background: var(--c-paper);
  box-shadow: 0 0 0 5px var(--c-paper);
  transition: border-color var(--d-base) var(--ease-out), background-color var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out);
}

.milestone__node > span {
  width: 40%;
  height: 40%;
  border-radius: 50%;
  background: var(--c-navy-3);
  transition: background-color var(--d-base) var(--ease-out);
}

.milestone__card {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding: clamp(1.25rem, 1rem + 1vw, 1.85rem);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  box-shadow: var(--sh-1);
  transition: border-color var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out);
}

.motion-ok .milestone__card[data-reveal] {
  transition:
    opacity var(--d-slow) var(--ease-out) var(--reveal-delay, 0ms),
    transform var(--d-slow) var(--ease-out) var(--reveal-delay, 0ms),
    border-color var(--d-base) var(--ease-out),
    box-shadow var(--d-base) var(--ease-out);
}

/* Cards slide out from the spine on wide screens (data-reveal points toward
   it); on narrow screens they rise instead, so a not-yet-revealed card can
   never sit past the viewport edge. */
@media (max-width: 959px) {
  .motion-ok .milestone__card[data-reveal] {
    --rx: 0;
    --ry: var(--reveal-distance);
  }
}

.milestone__card::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  bottom: 1.25rem;
  left: -1px;
  width: 3px;
  border-radius: 3px;
  background: var(--c-brand);
  opacity: 0;
  transition: opacity var(--d-base) var(--ease-out);
}

.milestone__card:hover {
  border-color: var(--c-brand-line);
  box-shadow: var(--sh-2);
}

.milestone:focus-visible .milestone__card {
  box-shadow: var(--sh-focus), var(--sh-2);
}

.milestone__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
}

.milestone__num {
  color: var(--c-muted);
  font-size: var(--t-xs);
  font-weight: var(--w-bold);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.milestone__year {
  color: var(--c-brand);
  font-size: var(--t-3xl);
  font-weight: var(--w-black);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.milestone__tag {
  padding: 0.1rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--c-gold-tint);
  color: var(--c-gold-deep);
  font-size: var(--t-xs);
  font-weight: var(--w-semi);
}

.milestone__title {
  margin-top: var(--s-3);
  font-size: var(--t-2xl);
  font-weight: var(--w-black);
}

.milestone__text {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-3);
  color: var(--c-ink-2);
  font-family: var(--f-read);
  line-height: 1.9;
}

.milestone__text strong {
  color: var(--c-ink);
  font-weight: 600;
}

.milestone__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: var(--s-4);
}

.milestone__facts li {
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--c-navy-tint);
  color: var(--c-navy-2);
  font-size: var(--t-xs);
  font-weight: var(--w-semi);
}

.milestone__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-5);
}

.milestone__media {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  transition: filter var(--d-slow) var(--ease-out), opacity var(--d-slow) var(--ease-out);
}

.milestone__bigyear {
  display: none;
}

/* interlude (1996–2008) and finale */
.journey-interlude,
.journey-finale {
  position: relative;
  display: grid;
  grid-template-columns: calc(var(--spine-x) * 2) minmax(0, 1fr);
  column-gap: var(--s-4);
}

.journey-interlude {
  padding-block: 0 var(--s-10);
}

.journey-interlude__node {
  grid-column: 1;
  justify-self: center;
  width: 1rem;
  height: 1rem;
  margin-top: 1.6rem;
  border: 3px solid var(--c-paper);
  background: var(--c-gold);
  box-shadow: 0 0 0 2px var(--c-gold);
  rotate: 45deg;
}

.journey-interlude__card {
  grid-column: 2;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(28rem 14rem at 100% 0%, rgb(232 0 138 / 0.25), transparent 60%),
    var(--c-navy);
  color: rgb(255 255 255 / 0.85);
  box-shadow: var(--sh-3);
}

.journey-interlude__period {
  color: #f1d49b;
  font-size: var(--t-sm);
  font-weight: var(--w-bold);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.journey-interlude__title {
  margin-top: var(--s-1);
  color: #fff;
  font-size: var(--t-2xl);
  font-weight: var(--w-black);
}

.journey-interlude__text {
  max-width: 60ch;
  margin-top: var(--s-3);
  font-family: var(--f-read);
  line-height: 1.9;
}

.journey-interlude__editions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-5);
}

.journey-interlude__editions li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.07);
  color: #fff;
  font-size: var(--t-sm);
  font-weight: var(--w-semi);
}

.journey-interlude__editions li.is-main {
  border-color: var(--c-brand);
  background: var(--c-brand);
}

.journey-finale {
  padding-top: var(--s-4);
}

/* hides the spine below the closing star */
.journey-finale::before {
  content: "";
  position: absolute;
  top: calc(var(--s-4) + 2.75rem);
  bottom: 0;
  left: 0;
  width: calc(var(--spine-x) * 2);
  background: var(--c-paper);
}

.journey-finale__node {
  position: relative;
  grid-column: 1;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--c-gold);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 0 0 6px var(--c-paper), 0 0 0 8px rgb(184 134 47 / 0.3);
}

.journey-finale__quote {
  position: relative;
  grid-column: 2;
  overflow: hidden;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  box-shadow: var(--sh-2);
}

.journey-finale__quote::before {
  content: "\201C";
  position: absolute;
  top: -0.15em;
  right: 0.2em;
  color: var(--c-gold);
  font-family: Georgia, serif;
  font-size: 9rem;
  line-height: 1;
  opacity: 0.18;
}

.journey-finale__title {
  font-size: var(--t-2xl);
  font-weight: var(--w-black);
}

.journey-finale__quote p {
  max-width: 62ch;
  margin-top: var(--s-3);
  color: var(--c-ink-2);
  font-family: var(--f-read);
  font-size: var(--t-md);
  line-height: 1.85;
}

@media (min-width: 960px) {
  .journey-finale__quote p {
    font-size: var(--t-lg);
  }
}

/* =========================================================================
   Journey — wide screens: centred spine, alternating sides
   ========================================================================= */
@media (min-width: 960px) {
  .journey {
    --spine-x: 50%;
  }

  .milestone {
    grid-template-columns: minmax(0, 1fr) 6rem minmax(0, 1fr);
    column-gap: 0;
    align-items: start;
    padding-block: var(--s-8) var(--s-16);
  }

  .milestone__node {
    --node: 1.5rem;
    grid-column: 2;
    margin-top: 1.95rem;
  }

  .milestone--a .milestone__media { grid-column: 1; grid-row: 1; }
  .milestone--a .milestone__card { grid-column: 3; grid-row: 1; }
  .milestone--b .milestone__card { grid-column: 1; grid-row: 1; }
  .milestone--b .milestone__media { grid-column: 3; grid-row: 1; }

  /* connector from the card to the spine */
  .milestone__card::after {
    content: "";
    position: absolute;
    top: 2.7rem;
    width: 3rem;
    height: 2px;
    background: var(--c-line-2);
    transition: background-color var(--d-base) var(--ease-out);
  }

  .milestone--a .milestone__card::after { right: 100%; }
  .milestone--b .milestone__card::after { left: 100%; }

  .milestone--b .milestone__card::before {
    left: auto;
    right: -1px;
  }

  .milestone__year {
    font-size: var(--t-xl);
  }

  /* the full year sits above the visual — nothing overlaps it */
  .milestone__bigyear {
    position: relative;
    z-index: 0;
    display: block;
    margin-bottom: var(--s-3);
    background: linear-gradient(115deg, var(--c-navy) 10%, var(--c-brand) 90%) no-repeat bottom / 100% 0%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--c-line-2);
    font-size: clamp(4.5rem, 1.5rem + 5vw, 7.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    transition: background-size 900ms var(--ease-out), -webkit-text-stroke-color var(--d-slow) var(--ease-out), opacity var(--d-slow) var(--ease-out);
  }

  .milestone--a .milestone__media {
    padding-inline-end: var(--s-6);
    text-align: right;
  }

  .milestone--b .milestone__media {
    padding-inline-start: var(--s-6);
  }

  .milestone .mv {
    text-align: start;
  }

  /* without JS (or before the first update) every year is filled */
  .about-journey:not(.is-enhanced) .milestone__bigyear {
    background-size: 100% 100%;
    -webkit-text-stroke-color: transparent;
  }

  .journey-interlude,
  .journey-finale {
    grid-template-columns: minmax(0, 1fr) 6rem minmax(0, 1fr);
    column-gap: 0;
  }

  .journey-interlude {
    padding-bottom: var(--s-16);
  }

  .journey-interlude__node {
    display: none;
  }

  .journey-interlude__card {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 44rem);
    text-align: center;
  }

  .journey-interlude__text {
    margin-inline: auto;
  }

  .journey-interlude__editions {
    justify-content: center;
  }

  .journey-finale::before {
    display: none;
  }

  .journey-finale__node {
    grid-column: 2;
    grid-row: 1;
    z-index: 2;
  }

  .journey-finale__quote {
    z-index: 1;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    width: min(100%, 48rem);
    margin-top: calc(var(--s-4) * -1);
    text-align: center;
  }

  .journey-finale__quote p {
    margin-inline: auto;
  }
}

/* =========================================================================
   Journey — states (set by js/about.js)
   ========================================================================= */
.is-enhanced .milestone__node {
  cursor: pointer;
  border-color: var(--c-line-2);
}

.is-enhanced .milestone__node > span {
  background: transparent;
}

.is-enhanced .milestone[data-state="next"] .milestone__node {
  border-color: var(--c-subtle);
}

.is-enhanced .milestone[data-state="past"] .milestone__node {
  border-color: var(--c-navy-3);
}

.is-enhanced .milestone[data-state="past"] .milestone__node > span {
  background: var(--c-navy-3);
}

.is-enhanced .milestone[data-state="active"] .milestone__node {
  border-color: var(--c-brand);
  background: var(--c-brand);
  transform: scale(1.3);
}

.is-enhanced .milestone[data-state="active"] .milestone__node > span {
  background: #fff;
}

/* soft pulse around the current node */
.is-enhanced .milestone__node::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--c-brand);
  opacity: 0;
}

.motion-ok .is-enhanced .milestone[data-state="active"] .milestone__node::after {
  animation: node-pulse 2.2s var(--ease-out) infinite;
}

@keyframes node-pulse {
  0% { opacity: 0.55; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.9); }
}

.is-enhanced .milestone[data-state="active"] .milestone__card {
  border-color: var(--c-brand-line);
  box-shadow: 0 26px 50px -28px rgb(200 0 122 / 0.45), var(--sh-2);
}

.is-enhanced .milestone[data-state="active"] .milestone__card::before {
  opacity: 1;
}

.is-enhanced .milestone[data-state="active"] .milestone__card::after,
.is-enhanced .milestone[data-state="past"] .milestone__card::after {
  background: var(--c-navy-3);
}

.is-enhanced .milestone[data-state="active"] .milestone__card::after {
  background: var(--c-brand);
}

/* visuals: upcoming ones wait in greyscale, the current one is in full
   colour, earlier ones stay visible but quieter */
.is-enhanced .milestone[data-state="future"] .milestone__media {
  opacity: 0.55;
  filter: grayscale(0.9);
}

.is-enhanced .milestone[data-state="next"] .milestone__media {
  opacity: 0.8;
  filter: grayscale(0.55);
}

.is-enhanced .milestone[data-state="past"] .milestone__media {
  opacity: 0.88;
  filter: grayscale(0.3);
}

@media (min-width: 960px) {
  .is-enhanced .milestone[data-state="active"] .milestone__bigyear,
  .is-enhanced .milestone[data-state="past"] .milestone__bigyear {
    background-size: 100% 100%;
    -webkit-text-stroke-color: transparent;
  }

  .is-enhanced .milestone[data-state="past"] .milestone__bigyear {
    opacity: 0.4;
  }
}

/* =========================================================================
   Milestone visuals
   ========================================================================= */
.mv {
  position: relative;
  z-index: 1;
  margin: 0;
}

/* Image-style wipe. The clip goes on the children, not on the observed
   figure: IntersectionObserver treats a fully clipped target as not
   intersecting, so it would never be revealed. The clip is widened so
   shadows and tilted pages are not cut off. */
.motion-ok .mv[data-reveal="image"] {
  clip-path: none;
}

.motion-ok .mv[data-reveal="image"] > * {
  clip-path: inset(-4rem -4rem 100% -4rem);
  transition: clip-path 900ms var(--ease-out);
}

.motion-ok .mv[data-reveal="image"].is-revealed > * {
  clip-path: inset(-4rem);
}

.mv__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--sh-2);
}

.mv__frame img {
  width: 100%;
}

.mv__caption {
  margin-top: var(--s-3);
  color: var(--c-muted);
  font-size: var(--t-xs);
  line-height: 1.6;
}

.mv__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--r-pill);
  background: rgb(20 33 61 / 0.82);
  color: #fff;
  font-size: var(--t-2xs);
  font-weight: var(--w-semi);
  letter-spacing: 0.03em;
}

/* photo: settles from a slight zoom when its milestone becomes current */
.mv--photo .mv__frame img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.motion-ok .is-enhanced .mv--photo .mv__frame img {
  transform: scale(1.06);
  transition: transform 1.6s var(--ease-out);
}

.motion-ok .is-enhanced .milestone[data-state="active"] .mv--photo .mv__frame img,
.motion-ok .is-enhanced .milestone[data-state="past"] .mv--photo .mv__frame img {
  transform: none;
}

/* masthead: the nameplate on a white sheet */
.mv--masthead .mv__frame {
  padding: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
  border: 1px solid var(--c-line);
}

/* page: a printed sheet that straightens when current */
.mv--page .mv__frame {
  width: min(100%, 19rem);
  margin-inline: auto;
  border-radius: var(--r-xs);
  box-shadow: 0 30px 50px -24px rgb(20 33 61 / 0.5), 0 0 0 1px var(--c-line);
  rotate: 2.5deg;
  transition: rotate var(--d-slow) var(--ease-out);
}

.mv--page .mv__caption {
  text-align: center;
}

.is-enhanced .milestone[data-state="active"] .mv--page .mv__frame {
  rotate: 0deg;
}

/* nameplate (1956): typographic emblem — no photograph of Darshan exists */
.nameplate {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) var(--s-6);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 20% 10%, rgb(184 134 47 / 0.1), transparent 55%),
    #fbf7ee;
  color: #2b2622;
  text-align: center;
  box-shadow: var(--sh-2), inset 0 0 0 1px rgb(143 102 32 / 0.18);
}

.nameplate__kicker {
  padding-bottom: 0.45rem;
  border-bottom: 1px solid currentColor;
  color: var(--c-gold-deep);
  font-size: var(--t-xs);
  font-weight: var(--w-bold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.nameplate__name {
  color: var(--c-navy);
  font-size: clamp(3.25rem, 2.25rem + 3vw, 4.75rem);
  font-weight: 800;
  line-height: 1.2;
}

.nameplate__latin {
  color: var(--c-ink-2);
  font-family: var(--f-read);
  font-size: var(--t-lg);
  font-style: italic;
}

.nameplate__rule {
  width: 100%;
  height: 5px;
  margin-top: 0.4rem;
  border-block: 1px solid #2b2622;
}

.nameplate__note {
  color: var(--c-muted);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* editions map */
.emap {
  width: 100%;
  height: auto;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--sh-2);
  font-family: var(--f-ui);
}

.emap__grid {
  fill: var(--c-line-2);
}

.emap text {
  fill: var(--c-ink-2);
  font-size: 16px;
  font-weight: 600;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linejoin: round;
}

.emap .emap__sub {
  fill: var(--c-muted);
  font-size: 12.5px;
  font-weight: 500;
}

.emap__context circle {
  fill: var(--c-line-2);
}

.emap .emap__context text {
  fill: var(--c-subtle);
  font-size: 13px;
  font-weight: 500;
}

.emap__link {
  fill: none;
  stroke: var(--c-navy-3);
  stroke-width: 2;
  opacity: 0.45;
}

.emap__link.is-new {
  stroke: var(--c-brand);
  stroke-width: 2.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  opacity: 1;
}

.emap__route {
  fill: none;
  stroke: var(--c-brand);
  stroke-width: 2.5;
  stroke-dasharray: 7 6;
}

.emap__arrowhead {
  fill: var(--c-brand);
}

.emap__spoke {
  stroke: var(--c-gold);
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
}

.emap__district circle {
  fill: var(--c-gold);
  stroke: #fff;
  stroke-width: 2;
}

.emap .emap__district text {
  fill: var(--c-gold-deep);
  font-size: 14px;
}

.emap__dot {
  fill: var(--c-navy-3);
  stroke: #fff;
  stroke-width: 3;
}

.emap__town.is-main .emap__dot {
  fill: var(--c-navy);
}

.emap__town.is-new .emap__dot {
  fill: var(--c-brand);
}

.emap .emap__town.is-new text {
  fill: var(--c-brand-deep);
  font-weight: 700;
}

.emap__pulse {
  fill: none;
  stroke: var(--c-brand);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.emap__press rect {
  fill: var(--c-gold-tint);
  stroke: var(--c-gold);
  stroke-width: 1.5;
}

.emap .emap__press text {
  fill: var(--c-gold-deep);
  font-size: 12px;
  font-weight: 700;
  stroke: none;
}

/* the new link draws itself and the new town pulses when current */
.motion-ok .is-enhanced .emap__link.is-new {
  transition: stroke-dashoffset 1.3s var(--ease-in-out) 0.15s;
}

.motion-ok .is-enhanced .milestone:is([data-state="future"], [data-state="next"]) .emap__link.is-new {
  stroke-dashoffset: 1;
}

.motion-ok .is-enhanced .milestone[data-state="active"] .emap__pulse {
  animation: emap-pulse 2.2s var(--ease-out) 0.6s infinite;
}

.motion-ok .is-enhanced .milestone[data-state="active"] .emap__route {
  animation: emap-flow 1.1s linear infinite;
}

@keyframes emap-pulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.6); }
}

@keyframes emap-flow {
  to { stroke-dashoffset: -26; }
}

/* the map scales down with its column; keep labels readable on phones */
@media (max-width: 599px) {
  .emap text { font-size: 21px; }
  .emap .emap__sub { font-size: 16px; }
  .emap .emap__district text { font-size: 18px; }
  .emap .emap__context text { font-size: 16px; }
  .emap .emap__press text { font-size: 14px; }
}

.mv__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}

.mv__keys {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}

.key {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.key::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--c-navy-3);
}

.key--district::before {
  background: var(--c-gold);
}

.key--press::before {
  width: 1rem;
  height: 0.6rem;
  border: 1.5px solid var(--c-gold);
  border-radius: 1rem;
  background: var(--c-gold-tint);
}

/* handover (2005) */
.handover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--s-3);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border-radius: var(--r-lg);
  background:
    radial-gradient(22rem 12rem at 100% 0%, rgb(232 0 138 / 0.28), transparent 60%),
    linear-gradient(140deg, var(--c-navy), var(--c-navy-2));
  color: #fff;
  box-shadow: var(--sh-3);
}

.handover__person {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  text-align: center;
}

.handover__mono {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 0.25rem;
  border: 2px solid rgb(241 212 155 / 0.6);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.08);
  color: #f1d49b;
  font-size: var(--t-lg);
  font-weight: var(--w-black);
  letter-spacing: 0.04em;
}

.handover__person--next .handover__mono {
  border-color: var(--c-brand-bright);
  background: var(--c-brand);
  color: #fff;
}

.handover__name {
  font-weight: var(--w-bold);
  line-height: 1.3;
}

.handover__role {
  color: rgb(255 255 255 / 0.68);
  font-size: var(--t-xs);
}

.handover__pass {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  min-width: 3.5rem;
  color: #f1d49b;
}

.handover__line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgb(241 212 155 / 0.15), #f1d49b);
}

.handover__year {
  font-size: var(--t-xs);
  font-weight: var(--w-bold);
  font-variant-numeric: tabular-nums;
}

.handover__condition {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--s-3);
  padding: 0.6rem 1rem;
  border: 1px dashed rgb(241 212 155 / 0.5);
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.06);
  font-size: var(--t-sm);
  font-weight: var(--w-semi);
  text-align: center;
}

.handover__condition .fi {
  flex: none;
  color: #f1d49b;
}

@media (max-width: 479px) {
  .handover {
    gap: var(--s-2);
  }

  .handover__mono {
    width: 3.25rem;
    height: 3.25rem;
    font-size: var(--t-md);
  }

  .handover__name {
    font-size: var(--t-sm);
  }

  .handover__pass {
    min-width: 2.5rem;
  }

  .handover__condition {
    border-radius: var(--r-lg);
  }
}

/* digital (2021): browser + e-paper on a phone */
.digital {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34%;
}

.digital__browser {
  grid-column: 1 / -1;
  grid-row: 1;
  margin-inline-end: 9%;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
  box-shadow: var(--sh-3);
}

.digital__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-paper-2);
}

.digital__dots {
  display: inline-flex;
  gap: 0.3rem;
}

.digital__dots i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--c-line-2);
}

.digital__url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.1rem 0.65rem;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--c-muted);
  font-size: var(--t-2xs);
  white-space: nowrap;
}

.digital__labels {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding-inline-end: var(--s-3);
}

.digital__labels li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  color: var(--c-muted);
  font-size: var(--t-xs);
  line-height: 1.35;
}

.digital__labels b {
  display: block;
  color: var(--c-ink);
  font-size: var(--t-sm);
  overflow-wrap: anywhere;
}

.digital__phone {
  z-index: 1;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  justify-self: end;
  width: 100%;
  max-width: 10.5rem;
  margin-top: 3.25rem;
  padding: 0.4rem;
  border-radius: 1.35rem;
  background: var(--c-navy);
  box-shadow: var(--sh-3);
  rotate: 4deg;
}

.digital__phone img {
  width: 100%;
  aspect-ratio: 280 / 410;
  object-fit: cover;
  border-radius: 1rem;
}

/* platforms (2026) */
.platforms {
  display: grid;
  gap: var(--s-4);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 50% 0%, rgb(200 0 122 / 0.08), transparent 60%),
    var(--c-surface);
  box-shadow: var(--sh-2);
}

.platforms__hub {
  justify-self: center;
  width: 4.5rem;
  height: 4.5rem;
  overflow: hidden;
  border-radius: 1.15rem;
  box-shadow: var(--sh-2), 0 0 0 6px rgb(200 0 122 / 0.08);
}

.platforms__hub img {
  width: 100%;
  height: 100%;
}

.platforms__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
}

/* connectors from the hub to each platform */
.platforms__list::before,
.platforms__list::after {
  content: "";
  position: absolute;
  bottom: 100%;
  height: var(--s-4);
  border: 2px dashed var(--c-line-2);
  border-bottom: 0;
}

.platforms__list::before {
  left: 16.66%;
  right: 16.66%;
  border-radius: 10px 10px 0 0;
}

.platforms__list::after {
  left: 50%;
  border-width: 0 0 0 2px;
}

.platforms__item {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.35rem;
  padding: var(--s-4) var(--s-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-paper);
  text-align: center;
}

.platforms__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--pc, var(--c-navy));
  color: #fff;
  font-size: 1.2rem;
}

.platforms__item--ig { --pc: linear-gradient(45deg, #f9a03f, #d62976 50%, #962fbf); }
.platforms__item--yt { --pc: #d71e1e; }
.platforms__item--bi { --pc: linear-gradient(135deg, var(--c-navy), var(--c-brand)); }

.platforms__name {
  font-size: var(--t-sm);
  font-weight: var(--w-bold);
  line-height: 1.25;
}

.platforms__note {
  color: var(--c-brand);
  font-size: var(--t-2xs);
  font-weight: var(--w-semi);
}

.platforms__langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--t-xs);
}

.platforms__langs span {
  padding: 0.15rem 0.65rem;
  border-radius: var(--r-pill);
  background: var(--c-navy-tint);
  color: var(--c-navy-2);
  font-weight: var(--w-semi);
}

.platforms__langs em {
  color: var(--c-muted);
  font-style: normal;
}

/* =========================================================================
   Awards
   ========================================================================= */
.about-awards__head {
  max-width: 46rem;
}

/* One column on phones and tablets (photo cards put the photo beside the
   text from 560px); a bento grid from 1024px. */
.awards {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-8);
}

@media (min-width: 1024px) {
  .awards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .award--featured {
    grid-column: span 2;
  }

  .award--tall {
    grid-row: span 2;
  }

  .award--wide {
    grid-column: 1 / -1;
  }
}

.award {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--r-xl);
  background: rgb(255 255 255 / 0.04);
  transition: background-color var(--d-base) var(--ease-out), border-color var(--d-base) var(--ease-out);
}

.award__body {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: var(--s-2);
  padding: var(--s-6);
}

/* Text-only cards: content centred (they stretch beside photo cards) and
   the year as a faint watermark in the empty top-right corner. */
.award:not(.award--photo) .award__body {
  height: 100%;
  align-content: center;
}

.award:not(.award--photo)::after {
  content: attr(data-year);
  position: absolute;
  top: -0.12em;
  right: -0.04em;
  color: rgb(241 212 155 / 0.07);
  font-size: 6.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* photos */
.award__photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #0c1426;
}

.award__photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform 900ms var(--ease-out);
}

.award--photo:hover .award__photo img {
  transform: scale(1.04);
}

.award__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgb(12 20 38 / 0.55));
  pointer-events: none;
}

@media (min-width: 560px) {
  .award--photo {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .award--photo .award__photo img {
    aspect-ratio: auto;
    min-height: 15rem;
  }

  .award--photo .award__photo::after {
    background: linear-gradient(90deg, transparent 60%, rgb(12 20 38 / 0.45));
  }

  .award--photo .award__body {
    align-content: center;
  }
}

@media (min-width: 1024px) {
  /* regular photo cards: photo on top */
  .award--photo:not(.award--featured) {
    grid-template-columns: none;
    grid-template-rows: auto 1fr;
  }

  .award--photo:not(.award--featured) .award__photo img {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .award--photo:not(.award--featured) .award__photo::after {
    background: linear-gradient(180deg, transparent 55%, rgb(12 20 38 / 0.55));
  }

  .award--tall {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .award--wide {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .award--wide .award__body {
    padding: var(--s-10);
  }
}

.motion-ok .award[data-reveal] {
  transition:
    opacity var(--d-slow) var(--ease-out) var(--reveal-delay, 0ms),
    transform var(--d-slow) var(--ease-out) var(--reveal-delay, 0ms),
    background-color var(--d-base) var(--ease-out),
    border-color var(--d-base) var(--ease-out);
}

.award:hover {
  border-color: rgb(241 212 155 / 0.4);
  background: rgb(255 255 255 / 0.07);
}

.award__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgb(241 212 155 / 0.12);
  color: #f1d49b;
  font-size: 1.2rem;
}

.award__year {
  margin-top: var(--s-2);
  color: #f1d49b;
  font-size: var(--t-3xl);
  font-weight: var(--w-black);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.award__title {
  font-size: var(--t-xl);
}

.award__text {
  color: rgb(255 255 255 / 0.74);
  font-family: var(--f-read);
  font-size: var(--t-sm);
  line-height: 1.85;
}

.award--featured {
  border-color: rgb(241 212 155 / 0.4);
  background:
    radial-gradient(26rem 14rem at 0% 0%, rgb(241 212 155 / 0.16), transparent 70%),
    rgb(255 255 255 / 0.05);
}

.award--featured .award__icon {
  width: 3.25rem;
  height: 3.25rem;
  background: var(--c-gold);
  color: #fff;
  box-shadow: 0 0 0 6px rgb(241 212 155 / 0.12);
}

.award--featured .award__title {
  font-size: var(--t-2xl);
}

.award--featured .award__year {
  font-size: var(--t-4xl);
}

.award--featured .award__text {
  max-width: 46ch;
  font-size: var(--t-md);
}

.about-legacy p {
  max-width: 62ch;
  margin-inline: auto;
  color: rgb(255 255 255 / 0.85);
  font-family: var(--f-read);
  font-size: var(--t-md);
  line-height: 1.85;
}

/* =========================================================================
   Image viewer
   ========================================================================= */
.viewer {
  width: min(96vw, 64rem);
  max-width: none;
  max-height: 94vh;
  max-height: 94dvh;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: var(--r-lg);
  background: #0c1426;
  color: #fff;
  box-shadow: var(--sh-3);
}

.viewer::backdrop {
  background: rgb(10 16 30 / 0.82);
  backdrop-filter: blur(3px);
}

.motion-ok .viewer[open] {
  animation: dialog-in 280ms var(--ease-out);
}

.viewer__close {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  height: 0;
}

.viewer__close .btn {
  --btn-bg: rgb(20 33 61 / 0.85);
  --btn-fg: #fff;
  --btn-bd: rgb(255 255 255 / 0.35);
  margin: 0.6rem;
}

.viewer__close .btn:hover {
  --btn-bg: var(--c-brand);
  --btn-bd: var(--c-brand);
}

.viewer__figure {
  margin: 0;
}

.viewer__figure img {
  width: 100%;
  height: auto;
  background: #fff;
}

.viewer__caption {
  padding: 0.75rem 1rem;
  color: rgb(255 255 255 / 0.8);
  font-size: var(--t-sm);
}

/* =========================================================================
   Reduced motion, print
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .paper-stack__front,
  .zoom-btn,
  .pillar,
  .pillar__years a,
  .journey-rail__link,
  .journey-rail__dot,
  .journey-rail__line span,
  .milestone__node,
  .milestone__node > span,
  .milestone__card,
  .milestone__card::before,
  .milestone__card::after,
  .milestone__media,
  .milestone__bigyear,
  .mv--page .mv__frame,
  .award,
  .award__photo img {
    transition: none;
  }

  .award--photo:hover .award__photo img {
    transform: none;
  }
}

@media print {
  .journey-rail,
  .zoom-btn,
  .journey__track {
    display: none !important;
  }

  .milestone__media {
    opacity: 1 !important;
    filter: none !important;
  }
}
