@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&display=swap');

:root {
  --ink: #132a44;
  --ink-soft: #2f4e6d;
  --paper: #f7f4ee;
  --white: #ffffff;
  --accent: #ff5a52;
  --line: rgba(19, 42, 68, 0.16);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  line-height: 1.55;
}

img,
video {
  display: block;
  max-width: 100%;
}

/* =========================================
   HERO
   ========================================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero__video,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__video {
  object-fit: cover;
}

.hero__shade {
  background:
    linear-gradient(
      90deg,
      rgba(5, 18, 33, 0.78),
      rgba(5, 18, 33, 0.48) 48%,
      rgba(5, 18, 33, 0.18)
    );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(90%, var(--max-width));
  padding: 8rem 0 4rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.eyebrow.dark {
  color: var(--ink-soft);
}

h1,
h2 {
  font-family: "Source Serif 4", serif;
  line-height: 0.98;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  letter-spacing: -0.055em;
}

h1 span {
  display: block;
  color: #dcecff;
}

.dek {
  max-width: 650px;
  margin: 2rem 0 0;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
}

.scroll-cue {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 3rem;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.credit {
  position: absolute;
  right: 1rem;
  bottom: 0.75rem;
  z-index: 1;
  margin: 0;
  font-size: 0.7rem;
  opacity: 0.78;
}

/* =========================================
   INTRO
   ========================================= */

.prose {
  width: min(88%, 720px);
  margin-inline: auto;
}

.intro {
  padding: 7rem 0;
  font-family: "Source Serif 4", serif;
  font-size: clamp(1.35rem, 2.7vw, 2rem);
}

.intro p {
  margin: 0 0 1.5rem;
}

/* =========================================
   SHIP SCROLLYTELLING
   ========================================= */

.scrolly {
  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(390px, 0.85fr);
  gap: 4vw;
  width: min(94%, 1320px);
  margin: 0 auto;
}

.scrolly__graphic {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ship-stage {
  width: 100%;
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.ship-stage img {
  width: min(95%, 980px);
  max-height: none;
  object-fit: contain;
  transform: scale(1.65);
  transform-origin: center;
  filter:
    drop-shadow(
      0 16px 20px rgba(19, 42, 68, 0.12)
    );
  transition:
    opacity 260ms ease,
    transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ship-stage img.is-changing {
  opacity: 0;
  transform: translateY(12px) scale(1.58);
}

.ship-label {
  width: min(88%, 760px);
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 1.25rem;
  margin-top: 4rem;
}

.ship-label span {
  font-family: "Source Serif 4", serif;
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 700;
  line-height: 0.9;
}

.ship-label strong {
  max-width: 310px;
  text-align: left;
  font-size: 1rem;
  line-height: 1.3;
}

.scrolly__text {
  padding: 30vh 0;
}

.step {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.35;
  transition: opacity 240ms ease;
}

.step.is-active {
  opacity: 1;
}

.step__number {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.step h2 {
  max-width: 560px;
  margin: 0 0 1.25rem;
  font-size: clamp(3rem, 5vw, 5.4rem);
  letter-spacing: -0.04em;
}

.step p {
  max-width: 500px;
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.55;
}

/* =========================================
   CHANGING DATA STORY
   ========================================= */

.data-scrolly {
  width: min(95%, 1400px);
  margin: 5rem auto 0;
  display: grid;
  grid-template-columns:
    minmax(0, 1.32fr)
    minmax(360px, 0.68fr);
  gap: 5vw;
  border-top: 1px solid var(--line);
}

.data-scrolly__graphic {
  position: sticky;
  top: 0;
  height: 100svh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.8rem 0 2rem;
}

.chart-header {
  max-width: 780px;
  margin-bottom: 0.8rem;
}

.chart-header h2 {
  max-width: 720px;
  margin: 0 0 0.85rem;
  color: var(--ink);
  font-family: "Source Serif 4", serif;
  font-size: clamp(2.35rem, 3.35vw, 3.95rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.chart-header p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.5;
}

.chart-wrapper {
  position: relative;
  width: 100%;
  min-height: 470px;
  margin-top: 0.7rem;
}

.chart-metric-label {
  margin: 0 0 0.4rem;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

#changing-chart {
  display: block;
  width: 100%;
  height: 470px;
  overflow: visible;
}

.chart-note {
  max-width: 720px;
  margin: 0.15rem 0 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.4;
}

.data-scrolly__steps {
  padding: 34vh 0;
}

.data-step {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 2rem;
  opacity: 0.2;
  transform: translateY(18px);
  transition:
    opacity 350ms ease,
    transform 450ms ease;
}

.data-step.is-active {
  opacity: 1;
  transform: translateY(0);
}

.data-step h2 {
  max-width: 500px;
  margin: 0 0 1.1rem;
  color: var(--ink);
  font-family: "Source Serif 4", serif;
  font-size: clamp(2.7rem, 3.8vw, 4.4rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.data-step > p:not(.step__number) {
  max-width: 470px;
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.55;
}

.data-step__change {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  justify-content: start;
  column-gap: 0.45rem;
  margin-top: 1.35rem;
  color: var(--accent);
}

.data-step__arrow {
  grid-column: 1;
  grid-row: 1;
  font-family: "Inter", sans-serif;
  font-size: clamp(2rem, 2.6vw, 3rem);
  font-weight: 500;
  line-height: 1;
}

.data-step__stat {
  grid-column: 2;
  grid-row: 1;
  color: var(--accent);
  font-family: "Source Serif 4", serif;
  font-size: clamp(3.6rem, 4.6vw, 5.2rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.045em;
}

.data-step__caption {
  grid-column: 2;
  grid-row: 2;
  margin-top: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =========================================
   SVG CHART
   ========================================= */

.chart-axis {
  stroke: rgba(19, 42, 68, 0.07);
  stroke-width: 1;
}

.chart-baseline {
  stroke: rgba(19, 42, 68, 0.26);
  stroke-width: 1.4;
  stroke-dasharray: 5 6;
}

.chart-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-area {
  fill: rgba(139, 174, 207, 0.11);
}

.chart-dot {
  fill: var(--accent);
  stroke: var(--paper);
  stroke-width: 4;
}

.chart-year-label,
.chart-value-label,
.chart-index-label {
  font-family: "Inter", sans-serif;
}

.chart-year-label {
  fill: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.chart-value-label {
  fill: var(--ink);
  font-size: 14px;
  font-weight: 700;
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 5px;
  stroke-linejoin: round;
}

.chart-index-label {
  fill: var(--ink-soft);
  font-size: 10px;
}

.chart-label-group {
  opacity: 0;
  transform: translateY(6px);
  animation: chartLabelFade 500ms ease 500ms forwards;
}

.chart-value-bg {
  display: none;
}

@keyframes chartLabelFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   FLOURISH SHIP MIX SECTION
   ========================================= */

.ship-mix-section {
  width: min(92%, 1240px);
  margin: 0 auto;
  padding: 10rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.ship-mix-section__intro {
  max-width: 930px;
  margin-bottom: 4rem;
}

.ship-mix-section__intro h2 {
  max-width: 1020px;
  margin: 0;
  font-size: clamp(3.4rem, 6vw, 6.7rem);
  line-height: 0.96;
  letter-spacing: -0.052em;
}

.ship-mix-section__intro h2 span {
  display: block;
  color: #6b88a6;
}

.ship-mix-section__intro > p:last-child {
  max-width: 730px;
  margin: 2rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  line-height: 1.65;
}

.ship-mix-section__chart {
  width: min(100%, 820px);
  margin: 3.5rem auto 0;
}

.ship-mix-section__chart .flourish-embed {
  width: 100%;
  min-height: 0;
  margin-bottom: 0;
}

/* =========================================
   ACCESSIBILITY
   ========================================= */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================================
   SECTION REVEALS
   ========================================= */

.reveal-section {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 800ms ease,
    transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 800px) {
  .hero__shade {
    background: rgba(5, 18, 33, 0.56);
  }

  .hero__content {
    padding-top: 6rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .scrolly {
    display: block;
    width: 100%;
  }

  .scrolly__graphic {
    z-index: 2;
    height: 52svh;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .ship-stage {
    min-height: auto;
    height: 100%;
    width: 94%;
  }

  .ship-stage img {
    width: 96%;
    transform: scale(1.35);
  }

  .ship-stage img.is-changing {
    transform: translateY(8px) scale(1.29);
  }

  .ship-label {
    width: 88%;
    margin-top: 1rem;
  }

  .ship-label span {
    font-size: 2.3rem;
  }

  .ship-label strong {
    max-width: 180px;
    font-size: 0.76rem;
  }

  .scrolly__text {
    width: min(86%, 560px);
    margin: 0 auto;
    padding: 15vh 0;
  }

  .step {
    min-height: 80vh;
  }

  .step h2 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }


  .data-scrolly {
    display: block;
    width: 100%;
    margin-top: 2rem;
  }

  .data-scrolly__graphic {
    z-index: 3;
    height: 62svh;
    padding: 1.1rem 6%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .chart-header {
    margin-bottom: 0;
  }

  .chart-header .eyebrow {
    display: none;
  }

  .chart-header h2 {
    margin-bottom: 0.4rem;
    font-size: clamp(1.8rem, 7vw, 2.7rem);
  }

  .chart-header p:last-child {
    font-size: 0.76rem;
  }

  .chart-wrapper {
    min-height: 280px;
    margin-top: 0.5rem;
  }

  .chart-metric-label {
    font-size: 0.56rem;
  }

  #changing-chart {
    height: 285px;
  }

  .chart-note {
    font-size: 0.55rem;
  }

  .data-scrolly__steps {
    width: min(86%, 560px);
    margin: 0 auto;
    padding: 16vh 0;
  }

  .data-step {
    min-height: 86vh;
  }

  .data-step h2 {
    font-size: clamp(2.5rem, 10.5vw, 3.9rem);
  }

  .data-step__stat {
    font-size: clamp(3.5rem, 15vw, 5rem);
  }

  .ship-mix-section {
    width: min(88%, 650px);
    padding: 7rem 0 6rem;
  }

  .ship-mix-section__intro {
    margin-bottom: 2.5rem;
  }

  .ship-mix-section__intro h2 {
    font-size: clamp(3rem, 12vw, 4.8rem);
  }

  .ship-mix-section__intro h2 span {
    display: inline;
  }

  .ship-mix-section__intro > p:last-child {
    margin-top: 1.5rem;
    font-size: 1rem;
  }

  .ship-mix-section__chart {
    width: 100%;
  }

  .ship-mix-section__chart .flourish-embed {
    min-height: 460px;
  }
}

/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .data-step,
  .chart-label-group,
  .reveal-section,
  .ship-stage img {
    animation: none;
    transition: none;
  }

  .reveal-section {
    opacity: 1;
    transform: none;
  }
}

/* =========================================
   FULL-SCREEN MAP SCROLLYTELLING
   ========================================= */

.map-story {
  position: relative;
  width: 100%;
  min-height: 300svh;
  background: var(--paper);
}

.map-story__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
}

.map-story #map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-story__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(19, 42, 68, 0.12) 0%,
      rgba(19, 42, 68, 0.02) 48%,
      rgba(19, 42, 68, 0) 72%
    );
}

.map-overlay {
  position: absolute;
  z-index: 2;
  left: clamp(1.25rem, 5vw, 5rem);
  bottom: clamp(1.5rem, 5vh, 3.5rem);
  width: min(86%, 470px);
  padding: clamp(1.25rem, 2.2vw, 1.8rem);
  background: rgba(247, 244, 238, 0.94);
  border: 1px solid rgba(19, 42, 68, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(19, 42, 68, 0.14);
  backdrop-filter: blur(10px);
  transition:
    opacity 260ms ease,
    transform 320ms ease;
}

.map-overlay.is-changing {
  opacity: 0;
  transform: translateY(14px);
}

.map-overlay .eyebrow {
  color: var(--ink-soft);
}

.map-overlay h2 {
  max-width: 430px;
  margin: 0 0 0.9rem;
  font-family: "Source Serif 4", serif;
  font-size: clamp(2rem, 3.4vw, 3.65rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.map-overlay p:last-child {
  max-width: 430px;
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
}

.map-story__steps {
  position: relative;
  z-index: 3;
  margin-top: -100svh;
  pointer-events: none;
}

.map-step {
  width: 100%;
  min-height: 100svh;
}

.mapboxgl-ctrl-bottom-left,
.mapboxgl-ctrl-bottom-right {
  z-index: 4;
}

.mapboxgl-ctrl-attrib {
  font-size: 10px;
  opacity: 0.65;
}

@media (max-width: 800px) {
  .map-story {
    min-height: 300svh;
  }

  .map-overlay {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
    padding: 1.35rem;
    border-radius: 14px;
  }

  .map-overlay h2 {
    font-size: clamp(2.1rem, 10vw, 3.6rem);
  }

  .map-overlay p:last-child {
    font-size: 0.9rem;
  }

  .map-story__scrim {
    background:
      linear-gradient(
        0deg,
        rgba(19, 42, 68, 0.15),
        rgba(19, 42, 68, 0) 60%
      );
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-overlay {
    transition: none;
  }
}

/* =========================================
   MAP OVERLAY STATES
   ========================================= */

.map-overlay.is-compact {
  width: min(84%, 390px);
  padding: 1.15rem 1.3rem;
}

.map-overlay.is-compact .eyebrow,
.map-overlay.is-compact h2 {
  display: none;
}

.map-overlay.is-compact p:last-child {
  max-width: 350px;
  font-size: 0.98rem;
  line-height: 1.55;
}

.map-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
}

/* =========================================
   EDITORIAL MAP LABELS
   ========================================= */

.editorial-map-label {
  pointer-events: none;
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 360ms ease,
    transform 420ms ease;
}

.editorial-map-label.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.editorial-map-label--water {
  color: var(--ink);
  font-family: "Source Serif 4", serif;
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  font-style: italic;
  font-weight: 600;
  text-shadow:
    0 1px 0 var(--paper),
    1px 0 0 var(--paper),
    -1px 0 0 var(--paper),
    0 -1px 0 var(--paper);
}

.editorial-map-label--strait {
  margin-left: 0.72rem;
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 var(--paper),
    1px 0 0 var(--paper),
    -1px 0 0 var(--paper),
    0 -1px 0 var(--paper);
}

.editorial-map-label--city {
  margin-left: 0.7rem;
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  text-shadow:
    0 1px 0 var(--paper),
    1px 0 0 var(--paper),
    -1px 0 0 var(--paper),
    0 -1px 0 var(--paper);
}

.istanbul-map-dot {
  width: 9px;
  height: 9px;
  background: var(--accent);
  border: 2px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 2px 9px rgba(19, 42, 68, 0.22);
}

@media (max-width: 800px) {
  .map-overlay.is-compact {
    width: auto;
    padding: 1rem 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-map-label {
    transition: none;
  }
}

/* =========================================
   FINAL MAP SEQUENCE OVERRIDES
   ========================================= */

.map-overlay.is-compact {
  width: min(84%, 390px);
  padding: 1.05rem 1.2rem;
}

.map-overlay.is-compact .eyebrow,
.map-overlay.is-compact h2 {
  display: none;
}

.map-overlay.is-compact p:last-child {
  max-width: none;
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.94rem;
  line-height: 1.55;
}

.map-overlay.is-hidden {
  visibility: hidden;
  opacity: 0;
  transform: translateY(16px);
}

.map-overlay p,
.editorial-map-label {
  font-family: "Inter", sans-serif;
}

.editorial-map-label {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition:
    opacity 260ms ease,
    transform 320ms ease,
    visibility 0s linear 320ms;
}

.editorial-map-label.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 260ms ease,
    transform 320ms ease,
    visibility 0s;
}

.editorial-map-label--strait,
.editorial-map-label--city,
.editorial-map-label--regional {
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 700;
  text-shadow:
    0 1px 0 var(--paper),
    1px 0 0 var(--paper),
    -1px 0 0 var(--paper),
    0 -1px 0 var(--paper);
}

.editorial-map-label--strait {
  margin-left: 0.72rem;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.editorial-map-label--city {
  margin-left: 0.7rem;
  font-size: 1rem;
}

.editorial-map-label--regional {
  font-size: clamp(0.8rem, 1.1vw, 1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .map-overlay.is-compact {
    left: 1rem;
    right: 1rem;
    width: auto;
  }

  .editorial-map-label--regional {
    font-size: 0.72rem;
  }
}

/* =========================================
   MOBILE MAP POLISH
   ========================================= */

@media (max-width: 800px) {
  .map-story__sticky {
    height: 100dvh;
  }

  .map-overlay.is-compact {
    left: 1rem;
    right: 1rem;
    bottom: 1.25rem;
    width: auto;
    padding: 1rem 1.1rem;
    border-radius: 14px;
  }

  .map-overlay.is-compact p:last-child {
    font-size: 0.88rem;
    line-height: 1.48;
  }

  .editorial-map-label--regional {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  .mapboxgl-ctrl-bottom-left {
    bottom: 0.2rem;
  }

  .mapboxgl-ctrl-bottom-right {
    bottom: 0.2rem;
  }
}

.methodology{
    max-width:900px;
    margin:0 auto 6rem;
    padding:0 2rem;
}

.section-divider{
    border:0;
    border-top:1px solid #d8d4cc;
    margin:0 0 2.5rem;
}

.methodology-box{
    background:#fff;
    border-radius:18px;
    padding:2.5rem;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.methodology-box h2{
    margin:0 0 1.5rem;
    font-size:2rem;
    color:var(--ink);
}

.methodology-box p{
    max-width:65ch;
    line-height:1.75;
    color:#33455f;
}

.method-source{
    margin-top:2rem;
    font-size:.95rem;
    color:#68788f;
}

/* =========================================
   RESPONSIVE STABILITY OVERRIDES
   Keeps ship graphic, label and story copy
   inside narrow or short viewports.
   ========================================= */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.scrolly,
.scrolly__graphic,
.ship-stage,
.ship-label,
.scrolly__text,
.step {
  min-width: 0;
}

/* Tablet and narrow desktop */
@media (max-width: 980px) {
  .scrolly {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
    gap: 2rem;
    width: min(94%, 1100px);
  }

  .ship-stage img {
    transform: scale(1.28);
  }

  .ship-stage img.is-changing {
    transform: translateY(8px) scale(1.22);
  }

  .ship-label {
    width: min(92%, 680px);
    gap: 0.85rem;
    margin-top: 2rem;
  }

  .ship-label span {
    font-size: clamp(2.7rem, 5.8vw, 4.8rem);
  }

  .ship-label strong {
    max-width: 260px;
    font-size: 0.9rem;
  }

  .step h2 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
  }
}

/* Phones and very narrow browser windows */
@media (max-width: 800px) {
  .scrolly {
    display: block;
    width: 100%;
  }

  .scrolly__graphic {
    position: sticky;
    top: 0;
    z-index: 4;
    height: min(48dvh, 430px);
    min-height: 300px;
    overflow: hidden;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .ship-stage {
    width: 100%;
    height: 100%;
    min-height: 0;
    justify-content: space-between;
    padding: clamp(1rem, 3vh, 1.75rem) 1rem 0.9rem;
  }

  .ship-stage img {
  width: min(100%, 680px);
  height: auto;
  max-height: calc(100% - 78px);
  object-fit: contain;
  transform: scale(1.38);
  transform-origin: center center;
}

.ship-stage img.is-changing {
  transform: translateY(6px) scale(1.30);
}

  .ship-label {
    width: min(94%, 560px);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: 0.65rem;
    margin: 0 auto;
    padding-top: 0.45rem;
  }

  .ship-label span {
    min-width: 0;
    font-size: clamp(1.9rem, 8.5vw, 3rem);
    line-height: 0.9;
    white-space: nowrap;
  }

  .ship-label strong {
    min-width: 0;
    max-width: none;
    text-align: left;
    font-size: clamp(0.66rem, 2.7vw, 0.82rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .scrolly__text {
    width: min(88%, 560px);
    margin: 0 auto;
    padding: 8vh 0 10vh;
  }

  .step {
    min-height: 72dvh;
    padding: 4rem 0;
  }

  .step h2 {
    max-width: 100%;
    font-size: clamp(2.25rem, 10vw, 3.5rem);
    line-height: 1;
  }

  .step p {
    max-width: 100%;
    font-size: 1rem;
  }
}

/* Extra-narrow phones */
@media (max-width: 390px) {
  .scrolly__graphic {
    height: min(46dvh, 390px);
    min-height: 280px;
  }

  .ship-stage {
    padding-inline: 0.75rem;
  }

  .ship-stage img {
  width: 100%;
  max-height: calc(100% - 96px);
  transform: scale(1.32);
}

.ship-stage img.is-changing {
  transform: translateY(5px) scale(1.24);
}

  .ship-label {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.25rem;
    text-align: center;
  }

  .ship-label span,
  .ship-label strong {
    text-align: center;
  }

  .ship-label strong {
    max-width: 26ch;
  }

  .step {
    min-height: 68dvh;
  }
}

/* Short screens: laptops split-screen, landscape phones, browser windows */
@media (max-height: 760px) and (max-width: 900px) {
  .scrolly__graphic {
    height: 44dvh;
    min-height: 250px;
  }

  .ship-stage {
    padding-top: 0.75rem;
    padding-bottom: 0.65rem;
  }

  .ship-stage img {
  max-height: calc(100% - 66px);
  transform: scale(1.18);
}

.ship-stage img.is-changing {
  transform: translateY(4px) scale(1.12);
}

  .ship-label {
    margin-top: 0;
  }

  .scrolly__text {
    padding-top: 5vh;
  }

  .step {
    min-height: 64dvh;
    padding: 3rem 0;
  }

  .step h2 {
    font-size: clamp(2rem, 8vw, 3.1rem);
  }
}

/* Avoid automatic iOS text enlargement changing the layout */
@supports (-webkit-touch-callout: none) {
  html {
    -webkit-text-size-adjust: 100%;
  }
}

/* Regional Turkey and Bosphorus labels */

.editorial-map-label--country {
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: clamp(0.9rem, 1.35vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow:
    0 1px 0 var(--paper),
    1px 0 0 var(--paper),
    -1px 0 0 var(--paper),
    0 -1px 0 var(--paper);
}

.editorial-map-label--regional-strait {
  margin-left: 0.45rem;
  color: var(--accent);
  font-family: "Inter", sans-serif;
  font-size: clamp(0.58rem, 0.8vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow:
    0 1px 0 var(--paper),
    1px 0 0 var(--paper),
    -1px 0 0 var(--paper),
    0 -1px 0 var(--paper);
}

@media (max-width: 800px) {
  .editorial-map-label--country {
    font-size: 0.66rem;
    letter-spacing: 0.14em;
  }

  .editorial-map-label--regional-strait {
    margin-left: 0.25rem;
    font-size: 0.5rem;
    letter-spacing: 0.07em;
  }
}

.editorial-map-label--regional-strait {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #174a68;
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow:
    0 1px 0 var(--paper),
    1px 0 0 var(--paper),
    -1px 0 0 var(--paper),
    0 -1px 0 var(--paper);
}

.editorial-map-label--regional-strait::before {
  content: "";
  width: 22px;
  height: 2px;
  flex: 0 0 auto;
  background: #174a68;
}

@media (max-width: 800px) {
  .editorial-map-label--regional-strait {
    gap: 0.3rem;
    font-size: 0.5rem;
    letter-spacing: 0.07em;
  }

  .editorial-map-label--regional-strait::before {
    width: 14px;
    height: 1.5px;
  }
}

/* =========================================
   FINAL BOSPHORUS LABEL FIX
   ========================================= */

.editorial-map-label--strait {
  margin-left: 0.72rem;
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow:
    0 1px 0 var(--paper),
    1px 0 0 var(--paper),
    -1px 0 0 var(--paper),
    0 -1px 0 var(--paper);
}

.editorial-map-label--regional-strait {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.15rem;
  color: #174a68;
  font-family: "Inter", sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow:
    0 1px 0 var(--paper),
    1px 0 0 var(--paper),
    -1px 0 0 var(--paper),
    0 -1px 0 var(--paper);
}

.editorial-map-label--regional-strait::before {
  content: "";
  width: 18px;
  height: 2px;
  flex: 0 0 auto;
  background: #174a68;
}

@media (max-width: 800px) {
  .editorial-map-label--strait {
    margin-left: 0.45rem;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .editorial-map-label--regional-strait {
    gap: 0.25rem;
    margin-left: 0.05rem;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
  }

  .editorial-map-label--regional-strait::before {
    width: 12px;
    height: 1.5px;
  }
}