.nth-story,
.nth-story * {
  box-sizing: border-box;
}

.nth-story {
  --nth-paper: #f7f2e8;
  --nth-paper-deep: #eee7da;
  --nth-white: #fffdf8;
  --nth-ink: #111713;
  --nth-copy: #33413a;
  --nth-muted: #6b766f;
  --nth-yellow: #d5a400;
  --nth-yellow-soft: #f1d66d;
  --nth-turquoise: #3eb7b5;
  --nth-turquoise-deep: #138b8b;
  --nth-turquoise-soft: #d9efeb;
  --nth-line: rgba(17, 23, 19, 0.16);
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: clip;
  background: var(--nth-paper);
  color: var(--nth-copy);
  font-family: "Poppins", "Avenir Next", Avenir, Montserrat, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  text-align: left;
}

.nth-story a,
.nth-story a:hover,
.nth-story a:focus {
  color: inherit;
  text-decoration: none;
}

.nth-story h1,
.nth-story h2,
.nth-story h3,
.nth-story p,
.nth-story figure,
.nth-story blockquote {
  margin: 0;
}

.nth-story img {
  max-width: 100%;
}

.nth-shell {
  width: min(1380px, calc(100% - 96px));
  margin: 0 auto;
}

.nth-kicker,
.nth-chapter__date,
.nth-side-story__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--nth-turquoise-deep);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nth-kicker::before,
.nth-chapter__date::before {
  width: 32px;
  height: 3px;
  background: var(--nth-yellow);
  content: "";
}

.nth-hero {
  position: relative;
  background:
    radial-gradient(circle at 8% 18%, rgba(62, 183, 181, 0.09) 0 10%, transparent 11%),
    linear-gradient(180deg, var(--nth-white), var(--nth-paper));
}

/* Sur cette page uniquement, l'en-tête transparent d'Astra reprend la barre
   pleine largeur et les couleurs utilisées sur la page Blog. */
body.ast-theme-transparent-header .site-header .ast-primary-header-bar {
  background-color: #171c1a !important;
}

body.ast-theme-transparent-header .site-header {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  background-color: #171c1a !important;
}

body.ast-theme-transparent-header .site-header .ast-main-header-wrap,
body.ast-theme-transparent-header .site-header .main-header-bar-wrap {
  background-color: #171c1a !important;
}

body.ast-theme-transparent-header .nth-story .nth-hero::after {
  display: none !important;
  content: none !important;
}

body.ast-theme-transparent-header .site-header .main-header-menu > .menu-item > .menu-link {
  color: rgba(255, 255, 255, 0.64) !important;
}

body.ast-theme-transparent-header .site-header .main-header-menu > .current-menu-item > .menu-link,
body.ast-theme-transparent-header .site-header .main-header-menu > .menu-item > .menu-link:hover,
body.ast-theme-transparent-header .site-header .main-header-menu > .menu-item > .menu-link:focus {
  color: #ffffff !important;
}

.nth-hero__grid {
  min-height: 780px;
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
  padding-block: clamp(66px, 7vw, 110px);
}

.nth-hero__copy {
  position: relative;
  z-index: 2;
  padding-left: clamp(0px, 2vw, 32px);
}

.nth-hero h1,
.nth-chapter h2,
.nth-closing h2 {
  color: var(--nth-ink);
  font-family: "Bebas Neue", "Oswald", "Arial Narrow", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.86;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
  text-transform: uppercase;
}

.nth-hero h1 {
  margin: 26px 0 31px;
  font-size: clamp(6.4rem, 10vw, 10.4rem);
}

.nth-hero h1 em {
  color: var(--nth-yellow);
  font-style: normal;
}

.nth-hero__copy > p {
  max-width: 590px;
  font-size: clamp(1rem, 1.2vw, 1.14rem);
  line-height: 1.75;
}

.nth-hero__copy .nth-hero__lead {
  margin-top: 18px;
  color: var(--nth-ink);
  font-weight: 600;
}

.nth-text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--nth-yellow);
  color: var(--nth-ink) !important;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nth-text-link span {
  color: var(--nth-turquoise-deep);
  font-size: 1.15rem;
  transition: transform 180ms ease;
}

.nth-text-link:hover span,
.nth-text-link:focus-visible span {
  transform: translateY(4px);
}

.nth-hero__visual {
  position: relative;
  z-index: 1;
  padding: 14px;
  background: var(--nth-white);
  box-shadow: 0 30px 80px rgba(38, 49, 42, 0.17);
  transform: rotate(1.25deg);
}

.nth-hero__visual::before {
  position: absolute;
  z-index: 2;
  top: -16px;
  left: 50%;
  width: 138px;
  height: 38px;
  background: rgba(213, 164, 0, 0.76);
  content: "";
  transform: translateX(-50%) rotate(-2deg);
}

.nth-hero__visual img {
  width: 100%;
  height: auto;
  display: block;
}

.nth-hero__visual figcaption,
.nth-photo figcaption {
  padding: 14px 5px 4px;
  color: var(--nth-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nth-hero__sun {
  position: absolute;
  z-index: -1;
  top: -70px;
  right: -80px;
  width: 230px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--nth-yellow-soft);
}

.nth-opening {
  border-block: 1px solid var(--nth-line);
  background: var(--nth-turquoise-soft);
}

.nth-opening__inner {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding-block: 52px;
}

.nth-opening p {
  max-width: 1000px;
  color: var(--nth-ink);
  font-family: "Bebas Neue", "Oswald", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(2.3rem, 4.1vw, 4.7rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.03;
  text-transform: uppercase;
}

.nth-opening strong {
  color: var(--nth-turquoise-deep);
  font-weight: 400;
}

.nth-opening__mark {
  flex: 0 0 auto;
  color: var(--nth-yellow);
  font-size: clamp(3.5rem, 7vw, 7rem);
  line-height: 1;
}

.nth-chapters {
  --nth-route-progress: 0;
  --nth-route-offset: 1;
  position: relative;
  background:
    linear-gradient(90deg, rgba(17, 23, 19, 0.022) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--nth-paper);
}

.nth-route {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 160px;
  pointer-events: none;
  transform: translateX(-50%);
}

.nth-route svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.nth-route path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.nth-route__base {
  stroke: rgba(19, 139, 139, 0.18);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.nth-route__progress {
  stroke: url(#nth-route-gradient);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
}

.nth-chapter {
  position: relative;
  border-bottom: 1px solid var(--nth-line);
}

.nth-chapter__grid {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  grid-template-areas: "visual marker content";
  gap: clamp(34px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(72px, 7vw, 110px);
}

.nth-chapter__marker {
  --nth-marker-shift: 0px;
  position: relative;
  z-index: 3;
  grid-area: marker;
  align-self: center;
  justify-self: center;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-top: 0;
  border: 3px solid var(--nth-paper);
  border-radius: 50%;
  background: var(--nth-turquoise);
  color: var(--nth-white);
  box-shadow: 0 0 0 2px var(--nth-turquoise);
  font-family: "Bebas Neue", "Oswald", "Arial Narrow", Impact, sans-serif;
  font-size: 1rem;
  line-height: 1;
  transform: translateX(var(--nth-marker-shift));
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.nth-chapter.is-current .nth-chapter__marker {
  background: var(--nth-yellow);
  box-shadow: 0 0 0 2px var(--nth-yellow), 0 0 0 10px rgba(213, 164, 0, 0.15);
  color: var(--nth-ink);
  transform: translateX(var(--nth-marker-shift)) scale(1.08);
}

.nth-chapter.is-passed .nth-chapter__marker {
  background: var(--nth-yellow);
  box-shadow: 0 0 0 2px var(--nth-yellow);
  color: var(--nth-ink);
}

.nth-chapter--meeting .nth-chapter__marker { --nth-marker-shift: -47px; }
.nth-chapter--asia .nth-chapter__marker { --nth-marker-shift: 23px; }
.nth-chapter--build .nth-chapter__marker { --nth-marker-shift: -28px; }
.nth-chapter--road .nth-chapter__marker { --nth-marker-shift: 33px; }
.nth-chapter--family .nth-chapter__marker { --nth-marker-shift: -36px; }
.nth-chapter--next .nth-chapter__marker { --nth-marker-shift: 14px; }

.nth-chapter__content {
  grid-area: content;
  min-width: 0;
  max-width: 650px;
}

.nth-chapter h2 {
  margin: 19px 0 31px;
  font-size: clamp(3.5rem, 5vw, 5.7rem);
}

.nth-chapter__content > p {
  max-width: 610px;
  font-size: clamp(0.98rem, 1.12vw, 1.08rem);
  line-height: 1.82;
  text-wrap: pretty;
}

.nth-chapter__content > p + p {
  margin-top: 20px;
}

.nth-chapter__content .nth-chapter__intro {
  position: relative;
  padding-left: 24px;
  border-left: 4px solid var(--nth-yellow);
  color: var(--nth-ink);
  font-size: clamp(1.08rem, 1.35vw, 1.28rem);
  font-weight: 600;
  line-height: 1.62;
}

.nth-photo {
  --nth-photo-x: 0px;
  --nth-photo-y: 0px;
  --nth-photo-rotate: 0deg;
  position: relative;
  grid-area: visual;
  min-width: 0;
  transform: translate(var(--nth-photo-x), var(--nth-photo-y)) rotate(var(--nth-photo-rotate));
}

.nth-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.nth-photo--polaroid,
.nth-photo--portrait {
  width: min(100%, 470px);
  padding: 13px 13px 0;
  background: var(--nth-white);
  box-shadow: 0 25px 70px rgba(38, 49, 42, 0.14);
}

.nth-photo--polaroid {
  --nth-photo-x: -8px;
  --nth-photo-y: 22px;
  --nth-photo-rotate: -2.2deg;
  justify-self: end;
  margin-inline: 0;
}

.nth-photo--polaroid figcaption {
  display: none;
}

.nth-photo--wide,
.nth-photo--road,
.nth-photo--family {
  padding: 11px;
  background: var(--nth-white);
  box-shadow: 0 25px 70px rgba(38, 49, 42, 0.13);
}

.nth-chapter blockquote {
  position: relative;
  max-width: 570px;
  margin: 30px 0;
  padding: 27px 30px 27px 40px;
  background: var(--nth-turquoise-soft);
  color: var(--nth-turquoise-deep);
  font-size: clamp(1.14rem, 1.5vw, 1.42rem);
  font-weight: 600;
  line-height: 1.55;
}

.nth-chapter blockquote::before {
  position: absolute;
  top: -22px;
  left: 14px;
  color: var(--nth-yellow);
  font-family: Georgia, serif;
  font-size: 4.8rem;
  line-height: 1;
  content: "“";
}

.nth-chapter--asia .nth-chapter__grid,
.nth-chapter--road .nth-chapter__grid,
.nth-chapter--family .nth-chapter__grid {
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  grid-template-areas: "content marker visual";
}

.nth-chapter--asia {
  background: rgba(255, 253, 248, 0.56);
}

.nth-chapter--asia .nth-photo {
  --nth-photo-x: 12px;
  --nth-photo-y: 42px;
  --nth-photo-rotate: 1.4deg;
  justify-self: start;
}

.nth-chapter--build .nth-photo {
  --nth-photo-x: -18px;
  --nth-photo-y: -12px;
  --nth-photo-rotate: -1.7deg;
  width: min(100%, 380px);
  justify-self: end;
}

.nth-chapter--meeting .nth-photo--polaroid {
  aspect-ratio: 0.91;
  overflow: hidden;
  padding: 0;
  background: var(--nth-white);
}

.nth-chapter--meeting .nth-photo--polaroid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.nth-chapter--build .nth-photo--portrait {
  aspect-ratio: 0.7;
  overflow: hidden;
  padding: 0;
  background: var(--nth-white);
}

.nth-chapter--build .nth-photo--portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transform: scale(1.55);
}

.nth-stat {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 32px 0;
  padding-block: 18px;
  border-block: 1px solid var(--nth-line);
}

.nth-stat strong {
  flex: 0 0 auto;
  color: var(--nth-yellow);
  font-family: "Bebas Neue", "Oswald", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(2.5rem, 4vw, 4.1rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.9;
  text-transform: uppercase;
}

.nth-stat span {
  max-width: 190px;
  color: var(--nth-ink);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
  text-transform: uppercase;
}

.nth-chapter__aside {
  margin-top: 27px !important;
  padding: 22px 25px;
  background: var(--nth-white);
  box-shadow: inset 5px 0 0 var(--nth-turquoise);
  color: var(--nth-ink);
  font-weight: 600;
}

.nth-chapter--road .nth-chapter__grid {
  grid-template-areas: "content marker visual";
  align-items: center;
}

.nth-chapter--road .nth-photo {
  --nth-photo-x: 16px;
  --nth-photo-y: 38px;
  --nth-photo-rotate: 1.1deg;
  justify-self: start;
}

.nth-road__note {
  margin-top: 28px !important;
  padding-top: 22px;
  border-top: 1px solid rgba(19, 139, 139, 0.28);
  font-size: 0.92rem !important;
}

.nth-road__note strong {
  display: block;
  margin-bottom: 7px;
  color: var(--nth-turquoise-deep);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nth-side-story {
  grid-area: side;
  width: min(100%, 1050px);
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  margin-top: 4px;
  padding: clamp(30px, 4vw, 56px);
  background: var(--nth-turquoise-soft);
}

.nth-side-story figure {
  padding: 10px;
  background: var(--nth-white);
  transform: rotate(-1.4deg);
}

.nth-side-story img {
  width: 100%;
  height: auto;
  display: block;
}

.nth-side-story h3 {
  margin: 13px 0 18px;
  color: var(--nth-ink);
  font-family: "Bebas Neue", "Oswald", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(2.3rem, 3.7vw, 4.2rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.98;
  text-transform: uppercase;
}

.nth-side-story p:last-child {
  max-width: 560px;
  line-height: 1.75;
}

.nth-chapter--family {
  background: #39afb0;
}

.nth-chapter--family .nth-chapter__marker {
  border-color: #39afb0;
}

.nth-chapter--family .nth-photo {
  --nth-photo-x: 18px;
  --nth-photo-y: -4px;
  --nth-photo-rotate: 1.5deg;
  width: 92%;
  justify-self: start;
}

.nth-chapter--family h2,
.nth-chapter--family .nth-chapter__content > p,
.nth-chapter--family .nth-chapter__content .nth-chapter__intro,
.nth-chapter--family .nth-chapter__date {
  color: var(--nth-white);
}

.nth-chapter--family .nth-chapter__date::before,
.nth-chapter--family .nth-chapter__content .nth-chapter__intro {
  border-color: var(--nth-yellow);
}

.nth-chapter--family .nth-chapter__date::before {
  background: var(--nth-yellow);
}

.nth-chapter--next .nth-chapter__grid {
  min-height: 670px;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  grid-template-areas: "visual marker content";
}

.nth-next__route {
  width: min(100%, 470px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  color: var(--nth-ink);
  font-family: "Bebas Neue", "Oswald", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
  margin-top: 38px;
}

.nth-photo--next {
  --nth-photo-x: -16px;
  --nth-photo-y: 26px;
  --nth-photo-rotate: -1.6deg;
  width: min(100%, 320px);
  justify-self: end;
  padding: 11px;
  background: var(--nth-white);
  box-shadow: 0 25px 70px rgba(38, 49, 42, 0.13);
}

.nth-photo--next img {
  width: 100%;
  height: auto;
}

.nth-doodle {
  position: absolute;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.nth-doodle svg {
  width: 100%;
  height: auto;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nth-doodle--stamp {
  bottom: 30px;
  left: -34px;
  width: 128px;
  color: var(--nth-turquoise-deep);
  opacity: 0.18;
  transform: rotate(-12deg);
}

.nth-doodle--mountains {
  right: 5px;
  bottom: 28px;
  width: 235px;
  color: var(--nth-turquoise-deep);
  opacity: 0.16;
}

.nth-doodle--footsteps {
  bottom: 46px;
  left: -4px;
  width: 92px;
  color: var(--nth-white);
  opacity: 0.27;
  transform: rotate(-7deg);
}

.nth-doodle--footsteps svg {
  fill: currentColor;
  stroke: none;
}

.nth-doodle--heart {
  right: 18px;
  bottom: 22px;
  width: 118px;
  color: var(--nth-turquoise);
  opacity: 0.42;
  transform: rotate(-5deg);
}

.nth-next__line {
  position: relative;
  height: 52px;
  border-bottom: 3px dashed var(--nth-turquoise);
  transform: translateY(-24px);
}

.nth-next__line::before,
.nth-next__line::after {
  position: absolute;
  bottom: -8px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--nth-yellow);
  border-radius: 50%;
  background: var(--nth-paper);
  content: "";
}

.nth-next__line::before { left: 0; }
.nth-next__line::after { right: 0; }

.nth-next__line i {
  position: absolute;
  top: 1px;
  left: 48%;
  color: var(--nth-yellow);
}

.nth-next__line i::before {
  font-family: Arial, sans-serif;
  font-size: 1.8rem;
  font-style: normal;
  content: "➜";
}

.nth-next__closing {
  margin-top: 34px !important;
  color: var(--nth-turquoise-deep) !important;
  font-size: clamp(1.25rem, 1.7vw, 1.55rem) !important;
  font-weight: 700;
  line-height: 1.5 !important;
}

.nth-closing {
  position: relative;
  overflow: hidden;
  background: var(--nth-yellow);
}

.nth-closing::before,
.nth-closing::after {
  position: absolute;
  border: 2px solid rgba(255, 253, 248, 0.45);
  border-radius: 50%;
  content: "";
}

.nth-closing::before {
  top: -170px;
  left: -120px;
  width: 410px;
  height: 410px;
}

.nth-closing::after {
  right: -90px;
  bottom: -220px;
  width: 470px;
  height: 470px;
}

.nth-closing__inner {
  position: relative;
  z-index: 1;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 80px;
  text-align: center;
}

.nth-closing .nth-kicker {
  color: var(--nth-ink);
}

.nth-closing .nth-kicker::before {
  background: var(--nth-turquoise-deep);
}

.nth-closing h2 {
  margin: 24px 0 25px;
  font-size: clamp(4.7rem, 8.5vw, 9rem);
}

.nth-closing__inner > p {
  max-width: 720px;
  color: var(--nth-ink);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.7;
}

.nth-closing__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 36px;
}

.nth-button {
  min-width: 286px;
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 17px 26px;
  border: 2px solid var(--nth-ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nth-button--primary {
  background: var(--nth-ink);
  color: var(--nth-white) !important;
}

.nth-button--secondary {
  background: var(--nth-white);
  color: var(--nth-ink) !important;
}

.nth-button svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.nth-button:hover,
.nth-button:focus-visible {
  transform: translateY(-3px);
}

.nth-button:hover svg,
.nth-button:focus-visible svg {
  transform: translateX(4px);
}

.nth-button:focus-visible,
.nth-text-link:focus-visible {
  outline: 3px solid var(--nth-turquoise-deep);
  outline-offset: 4px;
}

.nth-story.nth-ready [data-nth-reveal] .nth-photo,
.nth-story.nth-ready [data-nth-reveal] .nth-chapter__content,
.nth-story.nth-ready [data-nth-reveal] .nth-side-story,
.nth-story.nth-ready [data-nth-reveal] .nth-next__route,
.nth-story.nth-ready .nth-closing__inner {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 680ms cubic-bezier(0.22, 1, 0.36, 1), transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nth-story.nth-ready [data-nth-reveal] .nth-photo {
  transform: translate(var(--nth-photo-x), calc(var(--nth-photo-y) + 30px)) rotate(var(--nth-photo-rotate));
}

.nth-story.nth-ready [data-nth-reveal] .nth-chapter__content {
  transition-delay: 90ms;
}

.nth-story.nth-ready [data-nth-reveal].is-visible .nth-photo,
.nth-story.nth-ready [data-nth-reveal].is-visible .nth-chapter__content,
.nth-story.nth-ready [data-nth-reveal].is-visible .nth-side-story,
.nth-story.nth-ready [data-nth-reveal].is-visible .nth-next__route,
.nth-story.nth-ready .nth-closing.is-visible .nth-closing__inner {
  opacity: 1;
}

.nth-story.nth-ready [data-nth-reveal].is-visible .nth-photo {
  transform: translate(var(--nth-photo-x), var(--nth-photo-y)) rotate(var(--nth-photo-rotate));
}

.nth-story.nth-ready [data-nth-reveal].is-visible .nth-chapter__content,
.nth-story.nth-ready [data-nth-reveal].is-visible .nth-side-story,
.nth-story.nth-ready [data-nth-reveal].is-visible .nth-next__route,
.nth-story.nth-ready .nth-closing.is-visible .nth-closing__inner {
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .nth-shell {
    width: min(100% - 56px, 920px);
  }

  .nth-hero__grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .nth-hero__copy {
    max-width: 730px;
    padding-left: 0;
  }

  .nth-hero__visual {
    width: min(100%, 820px);
  }

  .nth-route {
    left: 43px;
    width: 2px;
    overflow: hidden;
    background: rgba(19, 139, 139, 0.18);
    transform: none;
  }

  .nth-route::before {
    width: 100%;
    height: calc(var(--nth-route-progress) * 100%);
    display: block;
    background: linear-gradient(180deg, var(--nth-turquoise), var(--nth-yellow));
    content: "";
  }

  .nth-route svg {
    display: none;
  }

  .nth-chapter__grid,
  .nth-chapter--asia .nth-chapter__grid,
  .nth-chapter--road .nth-chapter__grid,
  .nth-chapter--family .nth-chapter__grid,
  .nth-chapter--next .nth-chapter__grid {
    min-height: 0;
    grid-template-columns: 30px minmax(0, 1fr);
    grid-template-areas:
      "marker content"
      "marker visual";
    gap: 44px 34px;
    align-items: start;
  }

  .nth-chapter--road .nth-chapter__grid {
    grid-template-areas:
      "marker content"
      "marker visual"
      "marker side";
  }

  .nth-chapter--next .nth-chapter__grid {
    grid-template-areas:
      "marker content"
      "marker visual";
  }

  .nth-chapter__marker {
    --nth-marker-shift: 0px !important;
    grid-row: 1 / -1;
    width: 30px;
    height: 30px;
    font-size: 0.83rem;
  }

  .nth-chapter__content {
    max-width: 760px;
  }

  .nth-photo,
  .nth-photo--polaroid,
  .nth-photo--portrait {
    width: min(100%, 820px);
    margin: 0;
  }

  .nth-photo--next {
    width: min(100%, 430px);
  }

  .nth-side-story {
    width: min(100%, 820px);
  }

  .nth-next__route {
    width: min(100%, 620px);
  }
}

@media (max-width: 640px) {
  .nth-story {
    font-size: 15px;
  }

  .nth-shell {
    width: calc(100% - 36px);
  }

  .nth-hero__grid {
    gap: 46px;
    padding-block: 62px 74px;
  }

  .nth-hero h1 {
    margin-block: 20px 24px;
    font-size: clamp(5.25rem, 27vw, 7.5rem);
  }

  .nth-hero__copy > p {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .nth-text-link {
    margin-top: 28px;
    font-size: 0.76rem;
  }

  .nth-hero__visual {
    padding: 8px;
    transform: none;
  }

  .nth-hero__visual::before {
    top: -10px;
    width: 94px;
    height: 25px;
  }

  .nth-hero__visual figcaption {
    padding: 11px 3px 3px;
    font-size: 0.65rem;
  }

  .nth-hero__sun {
    top: -42px;
    right: -35px;
    width: 120px;
  }

  .nth-opening__inner {
    min-height: 190px;
    gap: 20px;
    padding-block: 43px;
  }

  .nth-opening p {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .nth-opening__mark {
    display: none;
  }

  .nth-route {
    left: 31px;
    width: 2px;
  }

  .nth-chapter__grid,
  .nth-chapter--asia .nth-chapter__grid,
  .nth-chapter--road .nth-chapter__grid,
  .nth-chapter--family .nth-chapter__grid,
  .nth-chapter--next .nth-chapter__grid {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 36px 15px;
    padding-block: 70px 78px;
  }

  .nth-chapter__marker {
    width: 26px;
    height: 26px;
    border-width: 2px;
    font-size: 0.72rem;
  }

  .nth-chapter h2 {
    margin: 16px 0 24px;
    font-size: clamp(3.55rem, 18vw, 5.1rem);
  }

  .nth-chapter__content > p {
    font-size: 0.94rem;
    line-height: 1.78;
  }

  .nth-chapter__content .nth-chapter__intro {
    padding-left: 17px;
    border-left-width: 3px;
    font-size: 1.03rem;
    line-height: 1.62;
  }

  .nth-chapter blockquote {
    margin-block: 26px;
    padding: 25px 18px 24px 27px;
    font-size: 1.08rem;
  }

  .nth-stat {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nth-stat strong {
    font-size: 3.3rem;
  }

  .nth-stat span {
    max-width: none;
  }

  .nth-chapter__aside {
    padding: 19px 18px;
  }

  .nth-photo--polaroid,
  .nth-photo--portrait,
  .nth-photo--wide,
  .nth-photo--road,
  .nth-photo--family {
    padding: 7px;
    transform: none;
  }

  .nth-photo--next {
    padding: 7px;
    transform: none;
  }

  .nth-photo {
    --nth-photo-x: 0px !important;
    --nth-photo-y: 0px !important;
    --nth-photo-rotate: 0deg !important;
  }

  .nth-doodle--stamp,
  .nth-doodle--mountains,
  .nth-doodle--footsteps,
  .nth-doodle--heart {
    width: 74px;
    opacity: 0.16;
  }

  .nth-side-story {
    grid-template-columns: 1fr;
    gap: 27px;
    padding: 22px;
  }

  .nth-side-story figure {
    width: min(100%, 330px);
    padding: 7px;
    transform: none;
  }

  .nth-side-story h3 {
    font-size: 2.75rem;
  }

  .nth-next__route {
    grid-template-columns: auto 1fr auto;
    gap: 9px;
    font-size: 1.65rem;
  }

  .nth-next__line {
    height: 44px;
    transform: translateY(-20px);
  }

  .nth-next__line i::before {
    font-size: 1.35rem;
  }

  .nth-closing__inner {
    min-height: 570px;
    padding-block: 74px;
  }

  .nth-closing h2 {
    margin-block: 22px;
    font-size: clamp(4.2rem, 22vw, 6.4rem);
  }

  .nth-closing__actions {
    width: 100%;
    flex-direction: column;
  }

  .nth-button {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nth-story *,
  .nth-story *::before,
  .nth-story *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .nth-route__progress {
    transition: none !important;
  }
}
