/* The same yellow world, with a scroll-drawn thread joining each chapter. */
[data-scroll-journey] {
  position: relative;
  isolation: isolate;
}
.journey-thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: visible;
  pointer-events: none;
}
.journey-track,
.journey-ink {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.journey-track {
  stroke: #8b7929;
  stroke-opacity: 0.12;
  stroke-width: 7;
}
.journey-ink {
  stroke: #8b7929;
  stroke-width: 7;
}
.journey-node circle {
  fill: #fff7ce;
  stroke: #8b7929;
  stroke-width: 1.5;
}
.journey-node text {
  fill: #534918;
  font: 650 11px var(--body);
}
.journey-node.is-reached circle {
  fill: #8b7929;
}
.journey-node.is-reached text {
  fill: #fff9df;
}
.journey-reveal {
  transition:
    opacity 0.4s ease,
    translate 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.journey-reveal.is-pending {
  opacity: 0;
  translate: 0 20px;
}
.journey-reveal:focus-within {
  opacity: 1;
  translate: 0 0;
}
.ink-word {
  display: inline-block;
  white-space: nowrap;
}
.ink-letter {
  opacity: 0.24;
}

/* The homepage tells three compact stories beside a steady introduction. */
.home-work {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: 9%;
  padding-block: 120px 110px;
}
.home-work-heading {
  position: sticky;
  top: 145px;
  display: block;
  margin: 0;
  padding-block: 20px;
}
.home-work-heading h2 {
  font-size: clamp(42px, 4.1vw, 60px);
  font-weight: 650;
  line-height: 1.03;
  letter-spacing: -0.04em;
  margin-top: 24px;
}
.home-work-intro {
  font-size: 17px;
  margin: 28px 0 30px;
  max-width: 29ch;
}
.home-work-heading .glass-button-wrap {
  display: inline-block;
  margin-top: 32px;
}
.home-story-index {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 70px;
  font: 600 13px var(--body);
}
.home-story-index i {
  display: block;
  width: 90px;
  height: 2px;
  background: #17191025;
  position: relative;
}
.home-story-index i:after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(var(--home-progress, 0.333));
  transform-origin: left;
  transition: transform 0.45s;
}
.home-story-active {
  font-size: 12px;
  margin-top: 10px;
  opacity: 0.7;
}
.home-work-stories {
  display: grid;
  gap: 100px;
  padding-top: 12px;
}
.home-story {
  position: relative;
}
.home-story > a {
  display: block;
}
.home-story-art {
  aspect-ratio: 1.22;
  position: relative;
  border: 7px solid #fff7ce;
  border-radius: 22px;
  background: #fff7ce;
  overflow: hidden;
  box-shadow: 0 18px 45px #6654001c;
  transform: rotate(var(--scene-tilt, 0deg));
  transition: transform 0.5s;
}
.home-story:nth-child(odd) {
  --scene-tilt: -2deg;
}
.home-story:nth-child(even) {
  --scene-tilt: 2deg;
}
.home-story-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(var(--image-drift, 0px)) scale(1.12);
}
.home-story-label {
  position: absolute;
  left: 18px;
  top: 18px;
  background: #fff8d5;
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
}
.home-story-screen {
  position: absolute;
  left: 17%;
  bottom: 8%;
  width: 78%;
  border: 7px solid #fff8d5;
  border-top: 0;
  background: #fff8d5;
  border-radius: 9px;
  transform: rotate(-6deg);
  box-shadow: 0 14px 35px #17191030;
  transition: transform 0.5s var(--ease);
}
.home-story-screen .window-dots {
  padding: 7px 0;
}
.home-story-screen img {
  width: 100%;
  aspect-ratio: 1.77;
  object-fit: cover;
}
.home-story:nth-child(2) .home-story-screen {
  left: 9%;
  width: 78%;
  transform: rotate(5deg);
}
.home-story:hover .home-story-screen {
  transform: rotate(0) translateY(-5px);
}
.home-story-sticker {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 110px;
  height: 110px;
  background: var(--yellow);
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  font: 750 25px/0.95 var(--display);
  letter-spacing: -0.05em;
  transform: rotate(12deg);
  box-shadow: 3px 4px 0 #17191020;
}
.home-story-copy {
  padding: 30px 7px 0;
}
.home-story-copy .work-kicker {
  font-size: 10px;
}
.home-story h3 {
  font-size: clamp(31px, 3vw, 42px);
  line-height: 1.07;
  letter-spacing: -0.045em;
  margin: 12px 0 18px;
  max-width: 23ch;
}
.home-story-copy > p {
  font-size: 16px;
  max-width: 42ch;
}


/* Spacious chapters replace the narrow article column. */
.story-hero {
  padding: 50px 0 70px;
}
.story-hero h1 {
  max-width: 1120px;
  font-size: clamp(58px, 7.6vw, 110px);
  line-height: 1.01;
}
.story-hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  margin-top: 28px;
}
.story-hero-bottom .story-intro {
  margin: 0;
  max-width: 560px !important;
}
.story-tags {
  justify-content: flex-end;
  max-width: 400px;
}
.story-tags span {
  background: #fff6bb;
}
.story-cover {
  height: clamp(400px, 68vh, 720px);
  border: 8px solid #fff6bb;
  border-radius: 24px;
  margin-bottom: 50px;
  box-shadow: 0 20px 60px #66540018;
}
.story-cover > img {
  transform: translateY(var(--image-drift, 0px)) scale(1.12);
}
.cover-seal {
  position: absolute;
  right: 30px;
  bottom: 30px;
  width: 140px;
  height: 140px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(12deg);
  font-size: 18px;
  line-height: 1.05;
  box-shadow: 4px 5px 0 #17191022;
}
.cover-seal span {
  font-size: 40px;
  margin-top: 6px;
}
.story-layout {
  display: block;
  padding: 0;
}
.story-aside {
  position: sticky;
  top: 99px;
  z-index: 8;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 35px;
  padding: 8px;
  gap: 6px;
  background: #fff8d9ef;
  border: 1px solid #17191015;
  border-radius: 40px;
  backdrop-filter: blur(16px);
  box-shadow: 0 5px 20px #66540010;
}
.story-aside a {
  padding: 11px 16px;
  border: 0;
  font-size: 13px;
  border-radius: 30px;
  white-space: nowrap;
  transition: background 0.3s;
}
.story-aside a span {
  opacity: 0.55;
  font-size: 10px;
  margin-right: 7px;
}
.story-aside a[aria-current] {
  background: var(--yellow);
  font-weight: 700;
}
.story-section {
  position: relative;
  padding: 95px 0;
  scroll-margin-top: 105px;
}
.story-section + .story-section {
  padding-top: 110px;
  border: 0;
}
.chapter-heading h2 {
  font-size: clamp(48px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 24px 0 28px;
  max-width: 14ch;
}
.story-challenge,
.story-approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 12%;
}
.chapter-copy p,
.chapter-heading > p {
  font-size: 20px;
  line-height: 1.6;
  max-width: 42ch;
}

.story-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 0;
  padding: 25px 15px;
}
.story-step {
  border: 1px solid #17191018;
  background: #fff6c7;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 12px 28px #66540012;
  transform: rotate(-2deg);
}
.story-step:nth-child(even) {
  transform: rotate(2deg);
  margin-left: 24px;
}
.step-number {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid #17191050;
  border-radius: 50%;
  font-size: 12px;
  margin-bottom: 24px;
}
.story-step h3 {
  font-size: 29px;
  margin-bottom: 13px;
}
.story-step p {
  font-size: 17px;
}
.story-details > .chapter-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 75px;
}
.story-details > .chapter-heading h2 {
  margin-inline: auto;
}
.story-details .story-source {
  max-width: 60ch !important;
  margin-inline: auto;
  font-size: 14px !important;
}
.story-gallery {
  gap: 95px;
  margin-top: 0;
}
.story-gallery .story-figure {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: center;
  gap: 8%;
  padding-block: 30px;
}
.story-gallery .story-figure > video,
.story-gallery .story-figure > button {
  grid-column: 2;
  grid-row: 1;
  border: 7px solid #fff7ce;
  border-radius: 16px;
  box-shadow: 0 14px 40px #6654001c;
  padding: 0;
}
.story-gallery .story-figure figcaption {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}
.figure-number {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.story-gallery .story-figure figcaption strong {
  font: 700 clamp(29px, 3.1vw, 42px)/1.08 var(--display);
  letter-spacing: -0.045em;
  margin-bottom: 20px;
}
.story-gallery .story-figure:nth-child(even) {
  grid-template-columns: 1.3fr 0.7fr;
}
.story-gallery .story-figure:nth-child(even) > video,
.story-gallery .story-figure:nth-child(even) > button {
  grid-column: 1;
}
.story-gallery .story-figure:nth-child(even) figcaption {
  grid-column: 2;
}
.story-gallery .video-still {
  margin-top: 24px;
  font-size: 13px;
}
.story-outcome > .chapter-heading {
  text-align: center;
}
.story-outcome > .chapter-heading h2 {
  margin-inline: auto;
}
.story-impact {
  text-align: center;
  border: 1px solid #17191018;
  border-radius: 24px;
  padding: 70px 45px;
  margin: 45px 0;
}
.story-impact b.impact-stat {
  font-size: clamp(100px, 16vw, 220px);
}
.story-impact b.impact-phrase {
  font-size: clamp(44px, 6.5vw, 90px);
}
.story-impact > p {
  font-size: 24px;
  margin: 20px auto;
}
.story-impact > small {
  margin: 20px auto 0;
  font-size: 13px;
}
.story-outcome > .story-figure {
  max-width: 900px;
  margin: 50px auto;
}
.story-quote {
  font-size: clamp(36px, 4.5vw, 64px);
  padding: 60px 0;
  text-align: center;
  max-width: 900px;
  margin: 50px auto;
  border: 0;
}
.story-next {
  margin: 50px 0 100px;
  padding: 35px 45px;
  gap: 60px;
}
.story-next h2 {
  font-size: clamp(32px, 3.8vw, 50px);
  max-width: 22ch;
}
.story-next-image {
  flex: 0 0 220px;
  height: 180px;
  border: 6px solid #fffcdf;
  border-radius: 15px;
  overflow: hidden;
  transform: rotate(5deg);
}
.story-next-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-page .work-feature,
.work-page .work-results,
.work-page .work-library {
  position: relative;
}

@media (max-width: 980px) {
  .home-work {
    gap: 7%;
    grid-template-columns: 0.85fr 1.15fr;
  }
  .home-work-heading h2 {
    font-size: 45px;
  }
  .home-work-intro {
    font-size: 16px;
  }
  .home-story-copy > p {
    font-size: 15px;
  }
  .home-story h3 {
    font-size: 32px;
  }
  .home-story-label {
    font-size: 10px;
    left: 10px;
    top: 10px;
  }
  .home-story-screen {
    border-width: 4px;
  }
  .story-challenge,
  .story-approach {
    gap: 7%;
  }
  .chapter-heading h2 {
    font-size: 51px;
  }
  .chapter-copy p,
  .chapter-heading > p {
    font-size: 18px;
  }
  .story-step {
    padding: 25px;
  }
  .story-gallery .story-figure {
    gap: 5%;
  }
  .story-gallery .story-figure figcaption {
    font-size: 16px;
  }
  .story-gallery .story-figure figcaption strong {
    font-size: 31px;
  }
  .story-hero-bottom {
    display: block;
  }
  .story-tags {
    max-width: none;
    justify-content: flex-start;
    margin-top: 25px;
  }
}
@media (max-width: 720px) {
  .journey-ink,
  .journey-track {
    stroke-width: 4.5;
  }
  .home-work {
    display: block;
    padding-block: 65px;
  }
  .home-work-heading {
    position: relative;
    top: auto;
    padding: 0 0 55px;
  }
  .home-work-heading h2 {
    font-size: 50px;
  }
  .home-work-intro {
    margin: 24px 0;
    max-width: 30ch;
  }
  .home-story-index,
  .home-story-active {
    display: none;
  }
  .home-work-stories {
    gap: 65px;
    padding-inline: 5px;
  }
  .home-story-art {
    border-width: 5px;
    border-radius: 18px;
  }
  .home-story-copy {
    padding: 25px 3px 0;
  }
  .home-story-copy .work-kicker {
    font-size: 9px;
  }
  .home-story h3 {
    font-size: 32px;
  }
  .home-story-sticker {
    width: 90px;
    height: 90px;
    font-size: 23px;
  }
  .story-hero {
    padding: 32px 0 45px;
  }
  .story-hero h1 {
    font-size: clamp(43px, 10.5vw, 68px);
  }
  .story-hero-bottom {
    margin-top: 24px;
  }
  .story-cover {
    height: 380px;
    border-width: 5px;
    border-radius: 18px;
  }
  .cover-seal {
    width: 105px;
    height: 105px;
    right: 18px;
    bottom: 20px;
    font-size: 14px;
  }
  .cover-seal span {
    font-size: 28px;
  }
  .story-aside {
    top: 82px;
    width: 100%;
    gap: 0;
    padding: 6px 3px;
    border-radius: 14px;
    margin-bottom: 20px;
  }
  .story-aside a {
    font-size: 10px;
    padding: 10px 7px;
    border: 0;
    border-radius: 10px;
  }
  .story-aside a span {
    display: block;
    font-size: 9px;
    margin: 0 0 4px;
  }
  .story-challenge,
  .story-approach {
    display: block;
  }
  .story-section,
  .story-section + .story-section {
    padding: 55px 5px;
    scroll-margin-top: 70px;
  }
  .chapter-heading h2 {
    font-size: 46px;
    max-width: 13ch;
  }
  .chapter-copy p,
  .chapter-heading > p {
    font-size: 18px;
  }
  .story-steps {
    margin-top: 30px;
    padding: 15px 4px;
  }
  .story-step {
    padding: 26px;
  }
  .story-step h3 {
    font-size: 28px;
  }
  .story-details > .chapter-heading {
    text-align: left;
    margin-bottom: 40px;
  }
  .story-details > .chapter-heading h2 {
    margin-inline: 0;
  }
  .story-gallery {
    gap: 50px;
  }
  .story-gallery .story-figure,
  .story-gallery .story-figure:nth-child(even) {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0;
    align-items: stretch;
  }
  .story-gallery .story-figure figcaption {
    order: -1;
  }
  .story-gallery .story-figure figcaption strong {
    font-size: 31px;
    max-width: 22ch;
  }
  .figure-number {
    margin-bottom: 14px;
  }
  .story-gallery .story-figure > video,
  .story-gallery .story-figure > button {
    border-width: 5px;
    border-radius: 12px;
  }
  .story-impact {
    padding: 40px 22px;
    border-radius: 18px;
  }
  .story-impact > p {
    font-size: 20px;
  }
  .story-impact b.impact-phrase {
    font-size: clamp(30px, 8vw, 50px);
    overflow-wrap: anywhere;
  }
  .story-quote {
    font-size: 34px;
    padding: 25px 5px;
  }
  .story-next {
    padding: 28px;
    margin: 30px 0 65px;
    flex-direction: column-reverse;
    align-items: start;
    gap: 24px;
  }
  .story-next-image {
    flex-basis: auto;
    width: 150px;
    height: 115px;
  }
  .story-next h2 {
    font-size: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ink-letter {
    opacity: 1 !important;
  }
  .journey-reveal,
  .journey-reveal.is-pending {
    opacity: 1;
    translate: none;
    transition: none;
  }
  .home-story-photo,
  .story-cover > img {
    transform: none;
  }
  .home-story-art,
  .home-story-screen,
  .home-story-index i:after {
    transition: none;
  }
  .journey-tip {
    display: none;
  }
}
