/* The prototype shares the Results typography, paper and public footer. */
.about-edition main {
  --about-story-blue: #2248bf;
  --about-story-deep-blue: #19399c;
  --about-story-orange: #e94e2e;
  --about-story-yellow: #ffc934;
  --about-story-line: #d5cfc3;
}
.about-story-shell {
  width: min(calc(100% - 104px), 1280px);
  margin-inline: auto;
}
.about-story-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
  gap: clamp(38px, 6vw, 94px);
  align-items: center;
  padding-block: 72px 47px;
  border-bottom: 1px solid var(--about-story-line);
}
.about-story-hero-copy { padding-block: 12px 32px; }
.about-edition main .about-story-hero .eyebrow {
  margin: 0 0 23px;
  color: var(--about-story-blue);
}
.about-edition main .about-story-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(3rem, 6.65vw, 6.55rem);
  line-height: .96;
  letter-spacing: -.054em;
  text-wrap: initial;
}
.about-story-hero h1 > *, .about-story-judging h2 > *,
.about-story-recognition-intro h2 > * { display: block; }
.about-story-hero h1 em {
  color: var(--about-story-blue);
  font-weight: inherit;
}
.about-story-hero .lead {
  max-width: 46ch;
  margin-bottom: 26px;
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  line-height: 1.73;
}
.about-story-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 24px; }
.about-story-button, .about-story-text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
}
.about-edition main .about-story-button {
  padding: 10px 15px;
  color: #fff;
  background: var(--about-story-blue);
}
.about-story-text-link { text-decoration: underline; text-underline-offset: .32em; }

.about-story-poster { position: relative; min-width: 0; margin: 0; }
.about-story-artwork {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1 / 1.13;
  background: var(--about-story-yellow);
}
.about-story-portrait {
  position: absolute;
  inset: 0 13px 13px 0;
  overflow: hidden;
  outline: 1px solid #302c24;
  outline-offset: -1px;
  background: #ffefc6;
}
.about-story-portrait img {
  position: absolute;
  inset: -18% auto auto -118.5%;
  width: 218.5%;
  max-width: none;
  height: auto;
}
.about-story-spark {
  background: var(--about-story-yellow);
  clip-path: polygon(50% 0, 60% 33%, 91% 13%, 75% 44%, 100% 56%, 68% 63%, 77% 96%, 50% 77%, 23% 96%, 32% 63%, 0 56%, 25% 44%, 9% 13%, 40% 33%);
  position: absolute;
  z-index: 1;
  top: -22px;
  right: -20px;
  width: clamp(50px, 6vw, 90px);
  aspect-ratio: 1;
  transform: rotate(-13deg);
}
.about-story-practice { padding-block: clamp(40px, 6vw, 76px) clamp(62px, 8vw, 112px); }
.about-story-mission {
  max-width: 800px;
  margin: 0 0 clamp(38px, 6vw, 70px);
  font: 500 clamp(1.42rem, 2.35vw, 2.2rem)/1.43 Newsreader, Georgia, serif;
}
.about-story-reading-grid, .about-story-background {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 5vw, 76px);
}
.about-story-reading-grid article, .about-story-edition {
  padding-top: 22px;
  border-top: 1px solid var(--about-story-line);
}
.about-edition main :is(.about-story-reading-grid, .about-story-background) h2 {
  margin-bottom: 13px;
  font-size: clamp(1.85rem, 3.7vw, 3rem);
  line-height: 1.08;
}
.about-story-reading-grid p, .about-story-edition > p {
  max-width: 63ch;
  color: var(--muted);
  line-height: 1.78;
}
.about-story-reading-grid p:last-child, .about-story-edition p:last-child { margin-bottom: 0; }

.about-story-judging {
  overflow: hidden;
  background: var(--about-story-deep-blue);
  scroll-margin-top: 90px;
}
.about-story-judging-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding-block: clamp(44px, 8vw, 102px);
}
.about-story-judging-copy { position: relative; z-index: 1; }
.about-edition main .about-story-judging .eyebrow { color: var(--about-story-yellow); margin-bottom: 19px; }
.about-edition main .about-story-judging h2 {
  margin: 0 0 17px;
  color: #fff7e9;
  font-size: clamp(3.25rem, 7.8vw, 7.15rem);
  line-height: .92;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.about-story-judging .lead { max-width: 40ch; margin: 0; color: #fff4e4; line-height: 1.65; }
.about-story-judging h2 em { color: var(--about-story-yellow); }
.about-story-judging-art {
  position: relative;
  width: min(100%, 500px);
  margin: 0 auto;
  overflow: hidden;
  outline: 1px solid #9cadd4;
  outline-offset: -1px;
}
.about-story-judging-art img { display: block; width: 100%; height: auto; }
.about-story-background { align-items: start; padding-block: clamp(55px, 8vw, 105px); }
.about-story-organiser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 22px;
  padding: clamp(21px, 3vw, 38px);
  background: #eaeedc;
  border-top: 1px solid #628142;
}
.about-edition main .about-story-organiser > h2 {
  grid-column: 1 / -1;
  margin: 0;
  text-wrap: wrap;
}
.about-story-organiser-copy p { color: #424b35; line-height: 1.7; }
.about-story-organiser-mark {
  position: relative;
  inset-block-start: clamp(-24px, -1.65vw, -12px);
  width: clamp(50px, 6vw, 83px);
  height: auto;
}

.about-story-recognition {
  padding-block: clamp(51px, 8vw, 100px);
  background: #f0ead9;
  border-block: 1px solid #d8cdb4;
}
.about-story-recognition-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr);
  gap: clamp(24px, 6vw, 84px);
  align-items: end;
  margin-bottom: clamp(30px, 5vw, 64px);
}
.about-edition main .about-story-recognition h2 {
  margin: 0;
  font-size: clamp(2.85rem, 6.65vw, 6.4rem);
  line-height: .95;
  letter-spacing: -.052em;
}
.about-story-recognition h2 em { color: #8c4227; }
.about-story-recognition-intro p { max-width: 35ch; color: #494a40; line-height: 1.7; }
.about-story-award-tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.about-story-award-tiers dd { margin: 0; font-size: .94rem; line-height: 1.65; }
.about-story-contributor {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 10px 30px;
  padding: 17px clamp(16px, 2.5vw, 32px);
  color: #283f50;
  background: #e6ece9;
  border: 1px solid #b0c4bd;
}
.about-story-contributor dt { font: 500 clamp(1.45rem, 3vw, 2.25rem)/1.15 Newsreader, Georgia, serif; }
.about-story-tier {
  min-width: 0;
  padding: clamp(17px, 2.6vw, 30px);
  color: var(--tier-ink);
  background: var(--tier-paper);
  border: 1px solid var(--tier-border);
  border-top: 3px solid var(--tier-line);
}
.about-story-tier dt { margin-bottom: 10px; font: 500 clamp(1.9rem, 3vw, 2.7rem)/1 Newsreader, Georgia, serif; }
.about-story-tier dt > span:last-child { display: block; }
.about-story-medal {
  display: grid;
  position: relative;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  margin-bottom: 23px;
  border-radius: 50%;
  border: 1px solid var(--tier-line);
  box-shadow: inset 0 0 0 4px var(--tier-card);
}
.about-story-medal::after {
  content: "";
  width: 20px;
  aspect-ratio: 1;
  background: currentColor;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.about-story-recognition-note { margin: 25px 0 0; color: #494a40; line-height: 1.65; }

/* Text stays in normal flow. Only the moving ink inside each mask is transformed. */
.about-story-ink {
  position: relative;
  display: inline-block;
}
.about-story-ink::after {
  content: "";
  position: absolute;
  inset: auto 0 .12em;
  border-bottom: 2px solid var(--about-story-blue);
  transform-origin: left;
}
.about-story-ink:nth-of-type(2)::after { border-color: var(--about-story-orange); }
.about-story-ink:nth-of-type(3)::after { border-color: var(--about-story-blue); }

@media (prefers-reduced-motion: no-preference) {
  .about-edition {
    --type-ease: cubic-bezier(.16, 1, .3, 1);
    --accent-ease: cubic-bezier(.22, .86, .24, 1);
    --copy-travel: 17px;
  }
  .about-edition main {
    --opening-type: 860ms;
    --type-stagger: 112ms;
  }

  .about-story-type-mask {
    clip-path: inset(-.21em -.45em -.19em);
  }
  .about-story-type-mask > span { display: inline-block; vertical-align: baseline; max-width: 100%; }

  /* The masthead starts in CSS so the first frame does not depend on JS. */
  main:not(:has(:target)) .about-story-hero[data-opening] {
    & .about-story-type-mask > span {
      animation: masthead-type var(--opening-type) var(--type-ease) backwards;
    }
    & h1 > em > span { animation-delay: var(--type-stagger); }
    & h1 > em > span + span { animation-delay: calc(var(--type-stagger) * 1.6); }
    & h1 > :last-child > span { animation-delay: calc(var(--type-stagger) * 2.25); }
    & .eyebrow { animation: margin-enter 600ms var(--type-ease) backwards; }
    & :is(.lead, .about-story-hero-actions a) { --entry-opacity: 0; }
    & .lead { animation: paragraph-enter 670ms var(--type-ease) 165ms backwards; }
    & .about-story-hero-actions a { animation: margin-enter 640ms var(--type-ease) 210ms backwards; }
    & .about-story-hero-actions a + a { animation-delay: 285ms; }
    & .about-story-portrait::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: var(--about-story-deep-blue);
      animation: portrait-sweep 820ms var(--accent-ease) both;
    }
    & .about-story-spark { animation: spark-settle 650ms var(--type-ease) 190ms backwards; }
  }

  /* Keep the paragraph readable throughout the underline sequence. */
  .about-story-mission.is-in-view { animation: paragraph-enter 720ms var(--type-ease) backwards; }
  .about-story-mission:not(.is-settled) .about-story-ink::after { transform: scaleX(0); }
  .about-story-mission:is(.is-in-view, .is-accenting) .about-story-ink::after {
    animation: rule-draw 560ms var(--accent-ease) both;
  }
  .about-story-mission:is(.is-in-view, .is-accenting) .about-story-ink:nth-of-type(2)::after { animation-delay: 125ms; }
  .about-story-mission:is(.is-in-view, .is-accenting) .about-story-ink:nth-of-type(3)::after { animation-delay: 250ms; }

  /* Titles register against their printed rule. Body blocks catch up in reading order. */
  [data-reveal="column"] { position: relative; }
  [data-reveal="column"].is-in-view::before {
    content: "";
    position: absolute;
    inset: -1px 0 auto;
    border-top: 2px solid var(--about-story-blue);
    pointer-events: none;
    transform-origin: left;
    animation: recognition-rule 850ms var(--accent-ease) both;
  }
  :is([data-reveal="column"], [data-reveal="organiser"]).is-in-view > h2 {
    clip-path: inset(-.21em -.45em -.19em);
  }
  :is([data-reveal="column"], [data-reveal="organiser"]).is-in-view > h2 > span {
    display: inline-block;
    animation: column-title 730ms var(--type-ease) backwards;
  }
  .about-story-reading-grid article:nth-child(2) { --column-tilt: -5deg; }
  [data-reveal="copy"].is-in-view { animation: paragraph-enter 630ms var(--type-ease) 75ms backwards; }
  [data-reveal="copy"].is-in-view + [data-reveal="copy"].is-in-view { animation-delay: 145ms; }
  .about-story-edition-dates time { display: inline-block; }
  .about-story-edition-dates.is-in-view time {
    animation: date-imprint 600ms var(--type-ease) 115ms backwards;
  }
  .about-story-edition-dates.is-in-view time:nth-of-type(2) { animation-delay: 175ms; }
  .about-story-organiser.is-in-view .about-story-organiser-copy p {
    animation: paragraph-enter 680ms var(--type-ease) 90ms backwards;
  }
  .about-story-organiser.is-in-view .about-story-organiser-mark {
    animation: logo-imprint 780ms var(--type-ease) 70ms backwards;
  }
  .about-story-organiser.is-in-view .about-story-text-link {
    animation: margin-enter 570ms var(--type-ease) 165ms backwards;
  }

  .about-story-judging-copy.is-in-view .about-story-type-mask > span {
    animation: judging-type 700ms var(--type-ease) backwards;
  }
  .about-story-judging-copy.is-in-view em > span {
    --judging-from: -.43em;
    animation-delay: 105ms;
  }
  .about-story-judging-copy.is-in-view em > span + span { animation-delay: 165ms; }
  .about-story-judging-copy.is-in-view .lead { animation: paragraph-enter 650ms var(--type-ease) 125ms backwards; }
  .about-story-judging-copy.is-in-view .eyebrow { animation: margin-enter 550ms var(--type-ease) backwards; }
  .about-story-judging-art.is-in-view img {
    animation: proof-align 900ms var(--type-ease) backwards;
  }
  .about-story-judging-art.is-in-view::after {
    content: "";
    position: absolute;
    inset: 0;
    border-right: 2px solid var(--about-story-yellow);
    pointer-events: none;
    animation: proof-pass 780ms var(--accent-ease) both;
  }

  .about-story-recognition h2 em { position: relative; }
  .about-story-recognition-intro.is-in-view h2 em::before {
    content: "";
    position: absolute;
    inset: auto auto .05em 0;
    width: min(100%, 6.4em);
    border-bottom: 2px solid #b18465;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: left;
    animation: recognition-rule 850ms var(--accent-ease) both;
  }
  .about-story-recognition-intro.is-in-view h2 em > span {
    animation: recognition-type 720ms var(--type-ease) 95ms backwards;
  }
  .about-story-recognition-intro.is-in-view h2 > span > span {
    animation: column-title 740ms var(--type-ease) backwards;
  }
  .about-story-recognition-intro.is-in-view p {
    animation: paragraph-enter 680ms var(--type-ease) 95ms backwards;
  }
  .about-story-recognition-intro.is-in-view a {
    animation: margin-enter 600ms var(--type-ease) 175ms backwards;
  }
  .about-story-contributor.is-in-view dt { animation: margin-enter 680ms var(--type-ease) backwards; }
  .about-story-contributor.is-in-view dd { animation: paragraph-enter 640ms var(--type-ease) 100ms backwards; }
  .about-story-tier.is-in-view dt > span:last-child {
    animation: tier-imprint 670ms var(--type-ease) var(--tier-delay, 0ms) backwards;
  }
  .about-story-tier.is-in-view .about-story-medal {
    animation: logo-imprint 760ms var(--type-ease) var(--tier-delay, 0ms) backwards;
  }
  .about-story-tier.is-in-view dd {
    animation: paragraph-enter 620ms var(--type-ease) calc(85ms + var(--tier-delay, 0ms)) backwards;
  }
  .about-story-tier:nth-child(3) { --tier-delay: 65ms; }
  .about-story-tier:nth-child(4) { --tier-delay: 130ms; }
  .about-story-tier:nth-child(5) { --tier-delay: 195ms; }

  /* The Results invitation and the next edition form the closing sequence. */
  :is([data-reveal="footer-results"], [data-reveal="footer-next"]).is-in-view h2 {
    animation: footer-title 810ms var(--type-ease) 55ms backwards;
  }
  :is([data-reveal="footer-results"], [data-reveal="footer-next"]).is-in-view .eyebrow {
    animation: margin-enter 580ms var(--type-ease) backwards;
  }
  :is([data-reveal="footer-results"], [data-reveal="footer-next"]).is-in-view :is(.btn, .next-edition-intro) {
    animation: paragraph-enter 630ms var(--type-ease) 125ms backwards;
  }
  [data-reveal="footer-next"].is-in-view .next-edition-date {
    animation: date-imprint 670ms var(--type-ease) 205ms backwards;
  }
  [data-reveal="footer-art"].is-in-view .campaign-artwork {
    animation: proof-align 880ms var(--type-ease) backwards;
  }
  [data-reveal="footer-meta"].is-in-view > * {
    animation: margin-enter 520ms var(--type-ease) backwards;
  }
  [data-reveal="footer-meta"].is-in-view > :nth-child(n+2) { animation-delay: 50ms; }
  [data-reveal="footer-meta"].is-in-view > :nth-child(n+4) { animation-delay: 95ms; }
  [data-reveal="footer-meta"].is-in-view > :nth-child(n+6) { animation-delay: 140ms; }

  .about-edition :is([data-opening], [data-reveal]) a:focus-visible { animation: none !important; }

  @keyframes masthead-type {
    from { transform: translate3d(-.36em, 1.04em, 0) skewY(7deg); opacity: 0; }
  }
  @keyframes paragraph-enter {
    from { transform: translate3d(0, var(--copy-travel), 0); opacity: var(--entry-opacity, .48); }
  }
  @keyframes margin-enter {
    from { transform: translate3d(-12px, 0, 0); opacity: var(--entry-opacity, .42); }
  }
  @keyframes column-title {
    from { transform: translate3d(0, .92em, 0) skewY(var(--column-tilt, 5deg)); opacity: .35; }
  }
  @keyframes date-imprint {
    from { transform: translate3d(0, .38em, 0) skewX(-12deg); opacity: .46; }
  }
  @keyframes logo-imprint {
    from { transform: translate3d(-8px, 12px, 0) rotate(-11deg) scale(.76); opacity: .3; }
  }
  @keyframes proof-align {
    from { transform: translate3d(-3.5%, 3%, 0) scale(1.105); opacity: .72; }
  }
  @keyframes proof-pass {
    from { transform: translateX(-100%); opacity: 0; }
    23% { opacity: .8; }
    to { transform: translateX(0); opacity: 0; }
  }
  @keyframes footer-title {
    from { transform: translate3d(-.28em, .52em, 0) skewX(-10deg); opacity: .32; }
  }
  @keyframes portrait-sweep {
    from { transform: translate3d(0, 0, 0) scaleX(.18); transform-origin: left; opacity: 1; }
    75% { opacity: .94; }
    to { transform: translate3d(100%, 0, 0) scaleX(.18); transform-origin: left; opacity: 0; }
  }
  @keyframes rule-draw { to { transform: scaleX(1); } }
  @keyframes judging-type {
    from { transform: translate3d(var(--judging-from, .32em), .69em, 0); opacity: .18; }
  }
  @keyframes spark-settle {
    from { transform: translate3d(12px, 9px, 0) rotate(-49deg) scale(.55); opacity: 0; }
  }
  @keyframes recognition-type {
    from { transform: translate3d(-.38em, .55em, 0) skewX(-8deg); opacity: .16; }
  }
  @keyframes recognition-rule {
    43% { transform: scaleX(1); transform-origin: left; }
    44% { transform: scaleX(1); transform-origin: right; }
    to { transform: scaleX(0); transform-origin: right; }
  }
  @keyframes tier-imprint {
    from { transform: translate3d(0, 11px, 0) scale(.97); transform-origin: left bottom; opacity: .68; }
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 900px) {
  .about-story-tier:nth-child(n) { --tier-delay: 0ms; }
  .about-story-tier:nth-child(odd) { --tier-delay: 70ms; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 640px) {
  .about-edition { --copy-travel: 10px; }
  .about-edition main { --opening-type: 630ms; --type-stagger: 70ms; }
  .about-story-hero[data-opening] .about-story-portrait::after { display: none; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 390px) {
  .about-story-tier:nth-child(n) { --tier-delay: 0ms; }
}

@media (max-width: 900px) {
  .about-story-shell { width: calc(100% - 48px); }
  .about-story-hero { padding-top: 52px; }
  .about-story-hero-actions { gap: 7px 18px; }
  .about-story-hero-copy { padding-bottom: 18px; }
  .about-story-award-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .about-story-shell { width: calc(100% - 42px); }
  .about-story-hero, .about-story-reading-grid, .about-story-background { grid-template-columns: 1fr; }
  .about-story-hero { padding-block: 37px 19px; gap: 25px; }
  .about-story-hero-copy { padding: 0; }
  .about-edition main .about-story-hero .eyebrow { margin-bottom: 15px; }
  .about-edition main .about-story-hero h1 { margin-bottom: 18px; font-size: clamp(2.85rem, 11.5vw, 4.5rem); }
  .about-story-hero .lead { margin-bottom: 16px; }
  .about-story-artwork { margin-inline: 8px; }
  .about-story-portrait { inset: 0 8px 8px 0; }
  .about-story-spark { right: -12px; top: -12px; }
  .about-story-judging-inner { grid-template-columns: 1fr; gap: 13px; }
  .about-story-judging-art { width: 100%; margin-top: 12px; }
  .about-story-background { gap: 42px; }
  .about-story-recognition-intro, .about-story-contributor { grid-template-columns: 1fr; }
  .about-story-award-tiers { gap: 9px; }
  .about-story-award-tiers dd { font-size: .9rem; }
}
@media (max-width: 390px) {
  .about-story-award-tiers { grid-template-columns: 1fr; }
}
