/* Story pages (e.g. /unitedxr). Builds on styles.css tokens. */
.story { background: var(--bg); }

/* Hero: dark field, the number as the headline */
.st-hero {
  min-height: 100svh; background: var(--dark); color: var(--on-dark);
  padding: 0 var(--m) 40px; display: grid; grid-template-rows: auto 1fr auto;
}
.st-hero .topnav a { color: var(--on-dark); }
.st-title {
  align-self: center; font: 700 clamp(120px, 26vw, 420px)/0.82 var(--display);
  letter-spacing: -0.06em; color: var(--accent); white-space: nowrap;
}
.st-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.st-title .line > span { display: inline-block; }
.st-title em { font-style: normal; color: var(--on-dark); }
.st-sub { display: block; margin-top: 28px; font: 600 var(--s-st)/1.2 var(--display); letter-spacing: -0.01em; color: var(--on-dark); white-space: normal; }
.st-cta { background: var(--accent); color: var(--ink) !important; padding: 10px 18px; border-radius: 999px; font-weight: 600; transition: background-color .2s; }
.st-cta:hover { background: var(--on-dark); }
.st-hero-foot { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
.st-lede { grid-column: 1 / 7; font-size: 20px; line-height: 1.45; }
.st-facts { grid-column: 8 / 13; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.st-facts span { background: var(--dark2); color: var(--on-dark); padding: 10px 16px; border-radius: 999px; font-size: var(--s-small); font-weight: 600; }

/* Chapters */
.st-chapter { padding: var(--gap) var(--m) 0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; }
.st-copy > p { margin-top: 20px; max-width: 52ch; font-size: 18px; }
.st-copy > h2 + p { margin-top: 28px; }
.st-link { display: inline-block; margin-top: 28px; font-weight: 600; color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: .2em; transition: color .2s; }
.st-link:hover { color: var(--accent); }
.st-shot { margin: 0; }
.st-shot a { display: block; overflow: hidden; background: var(--dark); }
.st-shot img { width: 100%; transition: transform .8s var(--ease); }
.st-shot a:hover img { transform: scale(1.03); }
.st-shot figcaption, .st-stage figcaption { margin-top: 12px; font-size: var(--s-small); color: var(--muted); }

.st-what .st-copy { grid-column: 1 / 6; }
.st-what .st-shot { grid-column: 6 / 13; }

.st-programme .st-stage { grid-column: 1 / 5; margin: 0; }
.st-stage img { width: 100%; aspect-ratio: 370 / 395; object-fit: cover; }
.st-programme .st-copy { grid-column: 6 / 13; }
.st-gets { margin-top: 24px; display: grid; gap: 4px; }
.st-gets li { background: var(--surface); padding: 16px 20px; font-weight: 500; }
.st-gets li::before { content: "→  "; color: var(--accent); font-weight: 700; }

/* The statement band */
.st-quote { margin-top: var(--gap); background: var(--accent); padding: 72px var(--m); }
.st-big { font: 600 clamp(24px, 2.5vw, 36px)/1.15 var(--display); letter-spacing: -0.02em; color: var(--ink); }

/* Why: four reasons in two columns, told apart by tone */
.st-why { align-items: start; }
.st-why h2 { grid-column: 1 / -1; margin-bottom: 48px; }
.st-reasons { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.st-reasons > div { background: var(--surface); padding: 40px; }
.st-reasons > div:nth-child(2), .st-reasons > div:nth-child(3) { background: var(--ground); }
.st-reasons h3 { font: 600 var(--s-st)/1.15 var(--display); letter-spacing: -0.015em; margin-bottom: 14px; }
.st-reasons p { max-width: 46ch; }
.st-reasons a { text-decoration-color: var(--accent); text-underline-offset: .15em; }

.st-archive { align-items: start; }
.st-archive .st-copy { grid-column: 1 / 5; position: sticky; top: 40px; }
.st-links { display: flex; flex-direction: column; align-items: flex-start; }
.st-links .st-link { margin-top: 16px; }
.st-links .st-link:first-child { margin-top: 28px; }
.st-pair { grid-column: 6 / 13; display: grid; gap: 40px; }

.st-means { align-items: start; }
.st-means h2 { grid-column: 1 / -1; margin-bottom: 40px; }
.st-means-grid { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.st-statement { font: 500 var(--s-st)/1.3 var(--display); max-width: 24ch; }
.st-means-grid p + p { margin-top: 16px; }
.st-means-grid .btn { margin-top: 32px; }

.st-next { margin-top: var(--gap); display: grid; grid-template-columns: 2fr 1fr; }
.st-next a { display: block; padding: 48px var(--m); background: var(--dark); color: var(--on-dark); text-decoration: none; font: 600 var(--s-st)/1.2 var(--display); transition: background-color .2s, color .2s; }
.st-next a + a { background: var(--dark2); }
.st-next a:hover, .st-next a:focus-visible { background: var(--accent); color: var(--ink); }
.st-next span { display: block; font: 600 var(--s-small)/1.4 var(--text); color: var(--on-dark-soft); margin-bottom: 10px; }
.st-next a:hover span { color: var(--ink); }

/* Motion */
.js .st-title .line > span { transform: translateY(105%); }
.js .st-hero-foot { opacity: 0; transform: translateY(20px); }
.ready .st-title .line > span { transform: none; transition: transform 1s var(--ease); }
.ready .st-hero-foot { opacity: 1; transform: none; transition: opacity .7s .5s, transform .7s .5s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .js .st-title .line > span, .js .st-hero-foot { transform: none !important; opacity: 1 !important; transition: none !important; }
}

@media (max-width: 1024px) {
  .st-lede, .st-facts { grid-column: 1 / -1; }
  .st-facts { justify-content: flex-start; margin-top: 24px; }
  .st-what .st-copy, .st-what .st-shot, .st-programme .st-copy, .st-archive .st-copy, .st-pair { grid-column: 1 / -1; }
  .st-what .st-shot, .st-pair { margin-top: 48px; }
  .st-programme .st-stage { grid-column: 1 / 7; margin-bottom: 48px; }
  .st-archive .st-copy { position: static; }
  .st-programme .st-copy { order: -1; margin-bottom: 48px; }
}
@media (max-width: 767px) {
  .st-chapter { display: flex; flex-direction: column; align-items: stretch; }
  .st-title { font-size: 31vw; }
  .st-lede { font-size: 17px; }
  .st-programme .st-stage { max-width: 260px; }
  .st-quote { padding: 88px var(--m); }
  .st-big { font-size: 24px; }
  .st-reasons, .st-means-grid { grid-template-columns: 1fr; }
  .st-reasons > div { padding: 28px 20px; }
  .st-means-grid { gap: 24px; }
  .st-next { grid-template-columns: 1fr; }
}

/* Shared story components: photo bands, timelines, project rows */
.st-title.st-word { white-space: normal; font-size: clamp(88px, 15vw, 240px); line-height: 0.86; }
.st-photo { margin: var(--gap) 0 0; position: relative; }
.st-photo img { width: 100%; height: min(78svh, 760px); object-fit: cover; }
.st-photo figcaption { padding: 12px var(--m) 0; font-size: var(--s-small); color: var(--muted); }

.st-timeline { grid-column: 6 / 13; display: grid; gap: 4px; }
.st-timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 24px; background: var(--surface); padding: 28px; }
.st-timeline li:nth-child(even) { background: var(--ground); }
.st-timeline b { font: 600 var(--s-st)/1.1 var(--display); color: #A84300; }
.st-timeline strong { display: block; font-weight: 600; margin-bottom: 6px; }

.st-projects { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.st-project { display: block; text-decoration: none; color: var(--ink); }
.st-project .frame { display: block; overflow: hidden; background: var(--dark); aspect-ratio: 16 / 10; }
.st-project img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.st-project:hover img { transform: scale(1.04); }
.st-project .frame.type { display: grid; place-items: center; background: var(--accent); font: 700 clamp(40px, 5vw, 72px)/1 var(--display); letter-spacing: -0.04em; color: var(--ink); }
.st-project h3 { margin-top: 16px; font: 600 var(--s-st)/1.15 var(--display); }
.st-project p { margin-top: 6px; color: var(--muted); }

.st-quote.dark { background: var(--dark); }
.st-quote.dark .st-big { color: var(--on-dark); max-width: 34ch; }
.st-quote cite { display: block; margin-top: 20px; font: 600 var(--s-small)/1.4 var(--text); font-style: normal; color: var(--on-dark-soft); }

.st-blocks { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 48px; }
.st-blocks > div { background: var(--surface); padding: 32px 28px 40px; }
.st-blocks > div:nth-child(even) { background: var(--ground); }
.st-blocks h3 { font: 600 var(--s-st)/1.15 var(--display); margin-bottom: 12px; }
.st-split { grid-column: 1 / -1; display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.st-split h2 { margin: 0; }
.st-split .st-copy > p:first-child { margin-top: 0; }

@media (max-width: 1024px) {
  .st-timeline { grid-column: 1 / -1; margin-top: 40px; }
  .st-projects { grid-template-columns: 1fr 1fr; }
  .st-blocks { grid-template-columns: 1fr 1fr; }
  .st-split { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 767px) {
  .st-title.st-word { font-size: 19vw; }
  .st-photo img { height: 56svh; }
  .st-timeline li { grid-template-columns: 1fr; gap: 8px; padding: 24px 20px; }
  .st-projects, .st-blocks { grid-template-columns: 1fr; }
}
