.story { background: var(--paper); }
.story-overview { background: var(--stone); }
.story-premium { background: var(--navy); color: white; }
.story-inner {
  display: grid;
  justify-items: start;
  gap: clamp(16px, 2.8vh, 30px);
  padding-block: clamp(54px, 9vh, 100px);
}
.story-heading {
  font-size: clamp(30px, 4vw, 61px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.045em;
}
.story-marker .story-heading { margin-top: 9px; }
.story-body { width: 100%; }
.story-link { margin: 0; }
.story-premium .eyebrow, .story-premium .story-link span { color: var(--gold); }
.overview-intro > p + p, .overview-heading > p, .location-story-copy > p, .premium-story-copy h3 + p {
  margin-top: 10px;
  color: var(--muted);
}
.story-overview-art, .location-story-photo, .premium-story-art {
  position: relative;
  overflow: hidden;
  background: #dce5e6;
}
.story-overview-art img, .location-story-photo img, .premium-story-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-overview-art figcaption, .location-story-photo figcaption {
  position: absolute;
  inset: auto 0 0 auto;
  padding: 5px 10px;
  background: var(--navy);
  color: white;
  font-size: 12px;
}
.story-overview-art { aspect-ratio: 1.65; }
.story :is(picture, noscript) { display: block; height: 100%; }
.story-overview-art img { object-position: center 66%; }
.overview-story-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px clamp(12px, 2vw, 34px);
  font-size: 15px;
}
.overview-story-facts dt { font-weight: 700; }
.overview-story-facts dd { margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line); color: var(--muted); }
.overview-summary { display: grid; gap: 20px; }
.location-story-photo { aspect-ratio: 1.35; }
.location-story-photo img { object-position: center 62%; }
.location-story-copy h3, .premium-story-copy h3 {
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.04em;
}
.location-story-copy .location-topics { margin-top: 16px; }
.premium-story-art { aspect-ratio: 1.45; }
.premium-story-art img { object-position: center 54%; }
.premium-story[data-scene="school"] img { object-position: center 49%; }
.premium-story[data-scene="market"] img { object-position: center 51%; }
.premium-story[data-scene="transit"] img { object-position: center 48%; }
.story-concept { font-size: 13px; color: #e5ecf2; }
.premium-story-copy { padding-top: 16px; }
.premium-story-copy h3 { margin-top: 8px; }
.premium-story-copy h3 + p { color: #e5ecf2; }
.story-overview .story-body, .story-location .story-body, .premium-stories { display: grid; gap: 24px; }
@media (min-width: 761px) {
  .story-overview .story-body { grid-template-columns: 2fr 3fr; align-items: center; }
  .story-overview-art { grid-area: 1 / 2 / span 2; }
  .story-location .story-body { grid-template-columns: 3fr 2fr; align-items: center; }
  .story-location .location-slot { grid-row: span 2; }
  .premium-stories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.scroll-stories .story {
  min-height: calc(100svh + var(--travel));
}
.scroll-stories .story-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  isolation: isolate;
  overflow: clip;
}
.scroll-stories .story-overview {
  --overview-frame: 100svh;
  --overview-side: max(var(--side), calc((100% - 1320px) / 2));
  --pan-ratio: 1;
  --pan-rest: -17%;
  min-height: calc(var(--overview-frame) + var(--travel));
}
@supports (height: 100dvh) {
  .scroll-stories .story-overview { --overview-frame: 100dvh; }
}
.scroll-stories .story-overview .story-stage { height: var(--overview-frame); }
.scroll-stories .home-contact { min-height: 100svh; display: grid; align-items: center; }
.scroll-stories .story-inner { display: block; padding-block: 0; }
.scroll-stories .story-body { display: block; }
.scroll-stories .story-marker, .scroll-stories .story-link { position: absolute; z-index: 3; }
.scroll-stories .story-link { bottom: 5svh; }
.story-overview.has-summary { --crop: 1; --retreat: 1; --arrival: 1; }
.story-location.has-context { --split: 1; }
.story-location.has-photo { --exit: 1; --copy-shift: 1; --copy-shift-mobile: 1; --photo: 1; }
.scroll-stories :is(.story-overview, .story-premium) { background: var(--navy); color: white; }
.scroll-stories :is(.story-overview, .story-premium) :is(.eyebrow, .story-link span) { color: var(--gold); }
.scroll-stories :is(.story-overview-art, .premium-story-art) {
  position: absolute; inset: 0; z-index: 0; aspect-ratio: auto; background: var(--navy);
}
.scroll-stories :is(.story-overview, .story-premium) .story-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.scroll-stories .story-overview .story-stage::after {
  background: radial-gradient(ellipse 54% 40% at 26% 50%, #4b4e5466, transparent 85%);
}
.story-overview.has-summary .story-stage::after {
  background: radial-gradient(ellipse 41% 32% at 24% 45%, #4b4e5466, #4b4e5433 48%, #4b4e5412 75%, #4b4e5400);
}
.scroll-stories .story-overview .story-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse 42% 34% at 70% 53%, #4b4e546b, #4b4e543b 50%, #4b4e5414 76%, #4b4e5400);
}
.scroll-stories .story-overview.has-summary .story-stage::before { opacity: 1; }
.scroll-stories .story-overview.is-panning .story-stage::before { transition: opacity 480ms ease; }
.scroll-stories .story-overview .story-marker { top: 7svh; }
.scroll-stories .story-overview :is(.story-marker, .overview-heading, .story-link) { text-shadow: 0 1px 5px #111923d9; }
.scroll-stories .story-overview-art { z-index: auto; }
.scroll-stories .story-overview-art img {
  position: absolute;
  top: 0;
  left: 50%;
  width: max(100%, calc(var(--overview-frame) * 2.15 * var(--pan-ratio)));
  max-width: none;
  height: auto;
  /* Y percentages are relative to the rendered, uncropped source. */
  transform: translate(-50%, -43%);
}
.scroll-stories .story-overview.has-summary .story-overview-art img { transform: translate(-50%, var(--pan-rest)); }
.scroll-stories .story-overview.is-panning .story-overview-art img {
  transition: transform 800ms cubic-bezier(.42,0,.25,1);
}
.scroll-stories .story-overview-art figcaption { right: var(--side); bottom: calc(5svh + 60px); z-index: 2; }
.scroll-stories .overview-intro, .scroll-stories .overview-summary {
  position: absolute;
  z-index: 2;
  top: 37%;
}
.scroll-stories .overview-intro {
  left: var(--overview-side);
  width: calc(48% - var(--overview-side));
  translate: 0 28px;
  text-shadow: 0 1px 14px #07172590;
}
.scroll-stories .story-overview.has-summary .overview-intro { translate: 0 0; }
.scroll-stories .story-overview.is-panning .overview-intro { transition: translate 800ms cubic-bezier(.42,0,.25,1); }
.scroll-stories .overview-intro .story-heading { font-size: clamp(30px, 3.65vw, 68px); }
.scroll-stories .overview-summary {
  inset-inline: 52% var(--overview-side);
  gap: clamp(17px, 3vh, 30px);
}
.scroll-stories .overview-summary > *,
.scroll-stories .story-overview .story-link { visibility: hidden; opacity: 0; }
.scroll-stories .overview-summary > * { translate: 0 18px; }
.scroll-stories .story-overview.has-summary :is(.overview-summary > *, .story-link),
.scroll-stories .story-overview .story-link:focus { visibility: visible; opacity: 1; }
.scroll-stories .story-overview.has-summary .overview-summary > * { translate: 0 0; }
.scroll-stories .story-overview.is-panning .overview-summary > * {
  transition: visibility 0s 230ms, opacity 230ms ease, translate 230ms ease;
}
.scroll-stories .story-overview.is-panning.has-summary .overview-summary > * {
  --reveal-delay: 420ms;
  transition: visibility 0s var(--reveal-delay), opacity 650ms ease-out var(--reveal-delay),
    translate 650ms ease-out var(--reveal-delay);
}
.scroll-stories .story-overview.is-panning.has-summary .overview-story-facts { --reveal-delay: 550ms; }
.scroll-stories .story-overview.is-panning.has-summary .story-link:not(:focus) {
  transition: visibility 0s 720ms, opacity 350ms ease-out 720ms;
}
.scroll-stories :is(.overview-heading, .overview-intro) > p { color: white; }
.scroll-stories .overview-story-facts { text-shadow: 0 1px 5px #111923d9; }
.scroll-stories .story-overview.has-summary :is(.story-marker, .overview-intro, .overview-heading, .overview-story-facts, .story-link) {
  text-shadow: 0 1px 3px #35373b99;
}
.scroll-stories .overview-story-facts dd { border-color: #ffffff85; color: white; }
@media (min-width: 1200px) {
  .scroll-stories .overview-story-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.scroll-stories .story-location {
  --location-slide: 640ms cubic-bezier(.22,.68,.26,1);
}
.scroll-stories .story-location .story-stage { background: linear-gradient(125deg, #f8faf8, #eaf0ee); }
.scroll-stories .story-location .story-marker { top: 6svh; }
.scroll-stories .story-location .location-slot {
  position: absolute;
  inset: 19% auto 13% 8%;
  width: calc(84% - 34% * var(--split, 0));
  transform: translateX(calc(-4vw * var(--split, 0) - 59vw * var(--exit, 0)));
  container-type: inline-size;
  transition: transform var(--location-slide), width var(--location-slide), height var(--location-slide), visibility 0s 640ms;
}
.story-location .location-slot { position: relative; overflow: hidden; background: #e6eeec; }
.story-location .home-location-map { display: block; width: 100%; height: auto; }
.story-location .location-slot figcaption {
  position: absolute; z-index: 1; bottom: 12px; right: 12px; padding: 4px 9px;
  background: #112c3be8; color: white; font-size: 12px;
}
@property --map-progress {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
.scroll-stories .story-location .location-slot { position: absolute; container-type: size; }
.scroll-stories .story-location .home-location-map {
  /* Frame the project pin together with the circular inset on the 1706 × 922 source. */
  --map-progress: var(--split, 0);
  --map-ratio: calc(1706 / 922);
  --map-fit: min(100cqw, 100cqh * var(--map-ratio));
  --map-cover: max(100cqw, 100cqh * var(--map-ratio));
  --map-width: calc(var(--map-fit) * (1 - var(--map-progress)) + var(--map-cover) * 1.48 * var(--map-progress));
  --map-height: calc(var(--map-width) / var(--map-ratio));
  position: absolute;
  width: var(--map-width);
  max-width: none;
  height: var(--map-height);
  left: calc(50cqw - var(--map-width) * (.5 + (1090 / 1706 - .5) * var(--map-progress)));
  top: calc(50cqh - var(--map-height) * (.5 + (505 / 922 - .5) * var(--map-progress)));
  transition: --map-progress var(--location-slide);
}
@media (min-width: 761px) {
  .scroll-stories .story-location {
    --map-overview-width: min(88vw, 125.822svh);
    --map-overview-edge: calc((100% - var(--map-overview-width)) / 2);
  }
  .scroll-stories .story-location :is(.story-marker, .location-story-actions) {
    left: max(var(--side), calc((100% - 1320px) / 2));
    transition: left var(--location-slide);
  }
  .scroll-stories .story-location:not(.has-context) :is(.story-marker, .location-story-actions) {
    left: var(--map-overview-edge);
  }
  .scroll-stories .story-location .location-slot {
    left: calc(50% - 21% * var(--split, 0));
    width: calc(var(--map-overview-width) * (1 - var(--split, 0)) + 50% * var(--split, 0));
    transform: translateX(calc(-50% - 60vw * var(--exit, 0)));
    transition: left var(--location-slide), width var(--location-slide), transform var(--location-slide), visibility 0s 640ms;
  }
}
.scroll-stories .story-location.map-exited .location-slot { visibility: hidden; }
.scroll-stories .location-story-copy {
  position: absolute; z-index: 2; top: 53%; left: 59%; width: min(33%, 430px);
  transform: translateY(-50%); visibility: hidden; opacity: 0; translate: 20px 0;
  transition: left var(--location-slide), transform var(--location-slide), translate var(--location-slide), opacity 350ms ease, visibility 0s 350ms;
}
.scroll-stories .story-location.has-context .location-story-copy {
  visibility: visible; opacity: 1; translate: 0 0;
  transition: left var(--location-slide), transform var(--location-slide), translate 470ms ease-out 100ms, opacity 350ms ease 100ms, visibility 0s;
}
.scroll-stories .location-story-photo {
  position: absolute; inset: 14% 0 10% auto; width: 49%; aspect-ratio: auto; visibility: hidden;
  transform: translateX(calc(100% * (1 - var(--photo, 0))));
  transition: transform 520ms ease, clip-path 520ms ease, visibility 0s 520ms;
}
.scroll-stories .story-location.has-photo .location-story-photo { visibility: visible; transition-delay: 0s; }
.scroll-stories .location-story-photo img { transform: scale(calc(1.09 - .09 * var(--photo, 0))); }
@media (min-width: 761px) {
  .scroll-stories .story-location.has-photo .location-story-copy { left: max(var(--side), calc((100% - 1320px) / 2)); }
  .scroll-stories .location-story-photo { inset-block: 9% 8%; width: 55%; }
  .scroll-stories .location-story-photo figcaption { right: auto; left: 0; }
}
.scroll-stories .story-premium .story-marker { top: 50%; transform: translateY(-50%); }
.scroll-stories .story-premium .story-heading { font-size: clamp(42px, 6vw, 100px); font-weight: 780; }
.scroll-stories .story-premium .story-stage::after {
  background: linear-gradient(90deg, #091824ce, #09182430 48%, #091824de), linear-gradient(0deg, #081624c9, transparent 30%);
}
.scroll-stories .story-concept { position: absolute; z-index: 3; left: var(--side); bottom: calc(5svh + 52px); }
.scroll-stories .premium-story-copy {
  position: absolute; z-index: 3; inset: 50% max(var(--side), calc((100% - 1320px) / 2)) auto auto;
  width: min(34%, 480px); padding: 0; transform: translateY(-50%);
}
.scroll-stories .premium-story-art {
  opacity: 1; transform: translateX(0) scale(1);
  transition: opacity 640ms ease, transform 640ms cubic-bezier(.22,.7,.24,1), visibility 0s;
}
.scroll-stories .premium-story:not(.is-current) .premium-story-art {
  visibility: hidden; opacity: 0; transform: translateX(calc(var(--scene-direction, 1) * 5%)) scale(1.06);
  transition-delay: 0s, 0s, 640ms;
}
.scroll-stories .premium-story:not(.is-current) .premium-story-copy { visibility: hidden; }
.scroll-stories .premium-story.is-current .premium-story-copy { animation: premium-copy-entry 480ms 100ms ease-out both; }
@keyframes premium-copy-entry { from { opacity: 0; translate: 18px 0; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 760px) {
  .scroll-stories .story-link { bottom: 4svh; max-width: calc(100% - var(--side) * 2); }
  .scroll-stories .story-overview.has-summary .story-stage::after {
    background: radial-gradient(ellipse 105% 19% at 16% 32%, #4b4e5466, #4b4e5433 52%, #4b4e5400);
  }
  .scroll-stories .story-overview .story-stage::before {
    background: radial-gradient(ellipse 102% 32% at 36% 60%, #4b4e546e, #4b4e5440 54%, #4b4e5414 82%, #4b4e5400);
  }
  .scroll-stories .story-overview .story-marker { top: 7%; }
  .scroll-stories .story-overview-art figcaption { bottom: calc(2.5svh + 53px); }
  .scroll-stories .overview-intro { top: 25%; width: calc(100% - 2 * var(--side)); }
  .scroll-stories .overview-summary {
    inset: 44% var(--side) auto;
    gap: 12px;
  }
  .scroll-stories .overview-story-facts { font-size: 14px; row-gap: 9px; }
  .scroll-stories .overview-story-facts dd { margin-top: 3px; padding-top: 3px; }
  .scroll-stories .story-location .story-marker { top: 4.5%; }
  .scroll-stories .story-location .location-slot {
    inset: calc(20% - 5% * var(--split, 0)) auto auto var(--side);
    width: calc(100% - 2 * var(--side));
    height: calc(46% - 16% * var(--split, 0));
    transform: translateY(calc(-68svh * var(--exit, 0)));
    container-type: size;
    transition: top var(--location-slide), height var(--location-slide), transform var(--location-slide), visibility 0s 640ms;
  }
  .scroll-stories .story-location .home-location-map { --map-progress: 1; }
  .scroll-stories .location-story-copy {
    top: 50%;
    left: var(--side);
    width: calc(100% - var(--side) * 2);
    transform: translateY(calc(-33svh * var(--copy-shift-mobile, 0)));
  }
  .scroll-stories .location-story-copy .location-topics { margin-top: 10px; font-size: 14px; }
  .scroll-stories .story-location:not(.has-context) .location-story-copy { translate: 0 18px; }
  .scroll-stories .location-story-copy .location-topics > div { padding-block: 7px; }
  .scroll-stories .location-story-photo {
    inset: 45% 0 12% auto;
    width: 91%;
    transform: none;
    clip-path: inset(calc(100% * (1 - var(--photo, 0))) 0 0);
  }
  .scroll-stories .story-location .story-link { bottom: 3%; }
  .scroll-stories .story-premium .story-marker { top: 13%; transform: none; }
  .scroll-stories .premium-story-copy { inset: auto var(--side) 19% var(--side); width: auto; transform: none; }
  .scroll-stories .story-concept { bottom: 11%; }
  .scroll-stories .story-premium .story-stage::after {
    background: linear-gradient(180deg, #081624df, #08162412 39%, #08162425 47%, #081624ee 90%);
  }
}
