.story-page { background: #f5f4ee; }
.story-hero {
  position: relative;
  display: grid;
  isolation: isolate;
  align-items: end;
  min-height: clamp(460px, calc(100svh - 132px), 820px);
  background: #282826;
}
.story-hero-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
}
.story-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #171716ed, transparent 57%);
}
.story-hero-copy {
  padding-block: clamp(26px, 5vw, 66px);
  position: relative;
  z-index: 1;
  color: white;
  pointer-events: none;
}
.story-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: var(--photo-position, center);
}
.story-hero h1, .story-origin h2 {
  margin: 0;
  font: 650 clamp(44px, 6vw, 98px)/1.17 StartDisplay,sans-serif;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.story-hero h1 span { color: var(--y); }
.story-origin {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.2fr);
  gap: clamp(24px, 6vw, 90px);
  padding-block: clamp(36px, 8vw, 105px);
}
.story-origin h2 { font-size: clamp(34px, 5vw, 70px); }
.story-origin p:not(.team-kicker) { max-width: 55ch; margin: 0 0 20px; font-size: clamp(16px,1.6vw,20px); line-height: 1.65; }
.story-origin .team-kicker {
  margin: 0 0 12px;
  color: var(--y);
  font: 650 clamp(36px, 5vw, 62px)/1 StartDisplay, sans-serif;
  letter-spacing: .015em;
}
.story-today { background: #eae8df; }
.story-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) {
  .story-origin { grid-template-columns: minmax(0, 1fr); }
  .story-hero { min-height: 0; aspect-ratio: 4 / 3; }
  .story-hero-photo { object-position: 47% 12%; }
  .story-hero-copy { padding-block: 20px; }
  .story-hero h1 { font-size: clamp(36px, 10vw, 60px); }
}

.story-years {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  justify-items: center;
  align-items: center;
  padding: clamp(24px, 4vw, 50px) 3% clamp(36px, 5vw, 66px);
}
.story-years::before {
  content: "";
  position: absolute;
  inset-inline: 12.4%;
  top: calc(clamp(24px, 4vw, 50px) + clamp(22px, 3vw, 32px));
  height: 1px;
  background: #f9d34261;
}
.story-years a {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: clamp(44px, 6vw, 64px);
  padding-inline: clamp(5px, 1.1vw, 16px);
  background: #222220;
  font: 600 clamp(18px, 3.5vw, 42px)/1 StartDisplay, sans-serif;
}
.story-years .story-year-present { color: var(--y); }
.story-year-present span {
  position: absolute;
  top: 100%;
  font-size: 12px;
  line-height: 1.3;
}
.story-years a:is(:hover,:focus-visible) {
  color: var(--c);
  background: var(--y);
}
.story-year-present:is(:hover,:focus-visible) span { color: var(--y); }
.story-timeline .story-origin {
  scroll-margin-top: 142px;
}
.story-timeline .story-origin h2 { font-size: clamp(32px, 4.3vw, 62px); }
.story-article-link {
  display: inline-flex;
  gap: .7em;
  align-items: center;
  min-height: 44px;
  font: 550 17px/1.25 StartDisplay,sans-serif;
  text-decoration: underline;
  text-decoration-color: #b28700;
  text-underline-offset: .28em;
}
.story-photo-space {
  aspect-ratio: 16 / 8;
  margin-block: 22px 12px;
  border: 1px solid #d7d3c8;
  background: #edeae1;
}

.story-chapter {
  align-items: center;
  row-gap: clamp(24px, 4vw, 48px);
}
.story-chapter-intro h2 { margin-block-end: 20px; }
.story-chapter-intro p:last-child { margin-bottom: 0; }
.story-gallery { grid-column: 1 / -1; min-width: 0; }
.story-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.story-gallery-head h3 {
  margin: 0;
  font: 550 clamp(19px, 2.1vw, 28px)/1.2 StartDisplay,sans-serif;
  text-transform: uppercase;
}
.story-gallery .project-controls { display: flex; gap: 6px; flex: none; }
.story-gallery-track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #ffffff45 transparent;
  padding-bottom: 8px;
  cursor: grab;
}
.story-gallery-track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.story-gallery-track:focus-visible { outline: 2px solid var(--y); outline-offset: 4px; }
@media (max-width: 760px) {
  .story-timeline .story-origin { scroll-margin-top: 94px; }
  .story-gallery-track { grid-auto-columns: 86%; gap: 12px; }
}

.story-photo-link {
  display: block;
  min-width: 0;
  cursor: zoom-in;
}
.story-photo-link:focus-visible {
  outline: 2px solid var(--y);
  outline-offset: -2px;
}
.story-gallery-track .story-photo-link {
  scroll-snap-align: start;
}

.story-years-fixed[hidden] { display: none; }
@media (min-width: 761px) {
  .story-years-fixed {
    position: fixed;
    inset-inline: 0;
    z-index: 12;
    background: #222220;
    padding-block: 2px;
    border-bottom: 1px solid #f9d34255;
  }
  .story-years-fixed::before { top: 50%; }
  .story-years-fixed a { font-size: 19px; min-height: 44px; color: white; }
  .story-years-fixed a[aria-current] { color: var(--y); box-shadow: inset 0 -2px var(--y); }
  .story-years-fixed a:is(:hover,:focus-visible) { color: var(--c); }
  .story-years-fixed .story-year-present span { display: none; }
  html:has(.story-page) { scroll-padding-top: 0; }
  .story-page { --year-bar-height: 49px; }
  .story-years-fixed { height: var(--year-bar-height); box-sizing: border-box; }
  .story-timeline .story-origin {
    scroll-margin-top: calc(var(--story-header-height, 132px) + var(--year-bar-height) + 1px);
  }
  .story-chapter {
    --intro-space: max(220px, calc(100svh - var(--story-header-height, 132px) - var(--year-bar-height) - 1px));
    padding-top: 0;
    grid-template-rows: minmax(var(--intro-space), auto) auto;
  }
  .story-chapter > .story-photo { max-height: calc(var(--intro-space) - 32px); }
  .story-timeline .story-origin:last-child {
    min-height: calc(100svh - var(--story-header-height, 132px) - var(--year-bar-height));
    box-sizing: border-box;
  }
}
