.travel-story {
  --atlas-gold: #e8cca1;
  --atlas-ink: #f8efe4;
  --atlas-black: #0b0a0b;
  --atlas-exit: clamp(72px, 11vw, 160px);
  background: linear-gradient(to bottom, var(--bg), var(--atlas-black) 120px);
  border-top: 1px solid #e8cca12a;
  padding: clamp(52px, 7vw, 96px) max(6%, calc((100% - 1260px) / 2));
  padding-bottom: var(--atlas-exit);
}

.travel-story + .bundle-offer {
  max-width: none;
  margin-top: 0;
  padding-inline: max(6%, calc((100% - 1260px) / 2));
  background: linear-gradient(to bottom, #0b0a0b, var(--bg));
  border-bottom: 0;
}

.atlas-intro {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
  gap: 24px 60px;
  margin-bottom: clamp(28px, 4.5vw, 60px);
}

.atlas-intro h2 {
  color: var(--atlas-ink);
  font: clamp(39px, 5.8vw, 80px)/1.04 var(--serif);
  letter-spacing: -.035em;
  margin: 16px 0 0;
}

.atlas-intro .eyebrow, .atlas-intro h2 em { color: var(--atlas-gold); }
.atlas-intro > p { max-width: 360px; color: #c7bdb2; font-size: 15px; line-height: 1.8; }

[data-travel-heading] > span, [data-travel-heading] > em {
  display: block;
}

.hero-copy h1 .heading-accent { color: var(--gold); }

.hero-bundle {
  display: inline-flex;
  margin: 19px 0 0;
  padding: 8px 13px;
  border: 1px solid #dfc99e59;
  border-radius: 4px;
  background: #dfc99e12;
  color: #f4deb1;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.hero-bundle:not([hidden]) + .hero-actions { margin-top: 16px; }

@media (min-width: 1001px) {
  .hero:has(.hero-world) .hero-copy { padding-top: clamp(58px, 7svh, 95px); }
}

@media (prefers-reduced-motion: no-preference) {
  [data-travel-heading] {
    --title-shift: 16px;
  }
  [data-travel-heading] > :first-child:not(:only-child) {
    transform: translateY(calc(var(--title-progress, 0) * var(--title-shift) * .35));
  }
  [data-travel-heading] > :last-child {
    transform: translateY(calc(var(--title-progress, 0) * var(--title-shift)));
  }
}

.atlas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}

.atlas-stage {
  display: none;
  --atlas-accent: #e8a570;
  --atlas-panel: #17110f;
  position: sticky;
  top: 105px;
  min-width: 0;
  z-index: 1;
  background-color: var(--atlas-panel);
  transition: background-color .65s ease;
  border: 1px solid #e8cca13b;
  border-radius: 12px;
  box-shadow: 0 24px 55px #0007;
}

.atlas-ready .atlas-stage { display: block; }
.atlas-stage[data-stop="1"] { --atlas-accent: #f0a650; --atlas-panel: #1e1410; }
.atlas-stage[data-stop="2"] { --atlas-accent: #8ecae4; --atlas-panel: #10191d; }

.atlas-visual {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  height: min(61svh, 560px);
  min-height: 315px;
  border-radius: 11px 11px 0 0;
  background:
    repeating-linear-gradient(0deg, #e8cca109 0 1px, transparent 1px 33px),
    repeating-linear-gradient(90deg, #e8cca109 0 1px, transparent 1px 33px);
}

.atlas-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-color: var(--atlas-accent);
  mask-image: radial-gradient(ellipse at 65% 58%, #000, transparent 72%);
  opacity: .26;
  transition: background-color .65s ease;
}

.atlas-coordinates {
  position: absolute;
  top: 13px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--atlas-gold);
  font: 10px/1.3 monospace;
  letter-spacing: .09em;
  z-index: 4;
}

.atlas-globe {
  position: absolute;
  width: min(82%, 53svh);
  aspect-ratio: 1;
  top: 50%;
  left: 40%;
  transform: translate(-50%, -50%);
  display: grid;
  isolation: isolate;
}

.atlas-globe::before {
  content: "";
  position: absolute;
  inset: -3%;
  border: 1px dashed #e8cca14c;
  border-radius: 50%;
  transform: rotate(-27deg) scaleY(.9);
}

.atlas-globe canvas, .atlas-globe img, .atlas-route {
  display: block;
  grid-area: 1 / 1;
  width: 100%;
  aspect-ratio: 1;
}

.atlas-globe img {
  height: auto;
  object-fit: contain;
  border-radius: 50%;
}

.atlas-route { z-index: 1; overflow: visible; }
.atlas-route path { stroke: var(--atlas-accent); stroke-width: .5; stroke-dasharray: 1.6 1.5; }
.atlas-route circle { fill: var(--atlas-gold); stroke: #171b14; stroke-width: .6; }
.atlas-route .atlas-ring { fill: none; stroke: var(--atlas-accent); }

.atlas-pack, .hero-pack[data-pack="alpine"] {
  --pack-shape: polygon(22.5% 11% , 66% 11%, 67% 38%, 63% 38%, 64% 46%, 60.5% 80%, 28% 80%, 26% 44%, 26.5% 38%, 22.4% 38%);
}

.atlas-pack {
  --label-edge: 38%;
  --fill-edge: 38%;
  position: absolute;
  width: min(76%, 56svh);
  aspect-ratio: 3 / 4;
  top: 54%;
  left: 73%;
  transform: translate(-50%, -50%) rotate(6deg) scale(.93);
  opacity: 0;
  transition: opacity .38s ease, transform .65s cubic-bezier(.18,.8,.22,1);
  z-index: 2;
  filter: drop-shadow(11px 16px 13px #000a);
}

.atlas-pack[data-pack="spice"], .hero-pack[data-pack="spice"], .atlas-pack[data-pack="aegean"] {
  --pack-shape: polygon(21.5% 11.7%, 64% 11.7%, 64.4% 39.3%, 61% 39.3%, 62% 45%, 58.4% 81.2%, 26% 81.2%, 24.3% 45%, 24.8% 39.3%, 21.4% 39.3%);
  --label-edge: 39.3%;
}

.atlas-pack[data-pack="aegean"], .hero-pack[data-pack="aegean"] { --pack-shape: polygon(22% 11.8%, 64% 11.8%, 64.4% 39.3%, 61% 39.3%, 62.2% 46%, 58.6% 81.2%, 26% 81.2%, 24.4% 46%, 24.8% 39.3%, 21.6% 39.3%); }
.atlas-pack.is-active { opacity: 1; transform: translate(-50%, -50%) rotate(-7deg) scale(1); z-index: 3; }
.atlas-pack-face { position: absolute; inset: 0; clip-path: var(--pack-shape); background: linear-gradient(100deg, #f6ecd12b, #52604a70 41%, #171c16b8 77%, #f6ecd145); }
.atlas-pack-face img {
  display: block;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0 var(--label-edge), transparent var(--label-edge) var(--fill-edge), #000 var(--fill-edge));
  mask-image: linear-gradient(to bottom, #000 0 var(--label-edge), transparent var(--label-edge) var(--fill-edge), #000 var(--fill-edge));
}
.atlas-pack-face::after {
  position: absolute;
  content: "";
  top: var(--fill-edge);
  left: 23%;
  width: 44%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff1ca, transparent);
  box-shadow: 0 0 12px 2px #ffca7470;
  opacity: var(--fill-highlight, 0);
}

.atlas-stops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #e8cca12a; }
.atlas-stops a {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 7px 5px 10px;
  font-size: 12px;
  text-align: center;
  color: #d1d2c3;
  overflow-wrap: anywhere;
}
.atlas-stops a + a { border-left: 1px solid #e8cca12a; }
.atlas-stops a[aria-current="location"], .atlas-stops a:hover { background: #e8cca112; color: #f6ddae; }
.atlas-stops a:first-child { border-bottom-left-radius: 11px; }
.atlas-stops a:last-child { border-bottom-right-radius: 11px; }
.atlas-stops b { color: var(--atlas-gold); font: 10px monospace; }
.atlas-stops a::after {
  content: "";
  position: absolute;
  inset: auto 9px 3px;
  height: 2px;
  background: var(--atlas-accent);
  transform: scaleX(var(--stop-progress, 0));
  transform-origin: left;
}

.atlas-chapters {
  --atlas-runout: 0px;
  position: relative;
  display: grid;
  gap: clamp(16px, 2.5vw, 32px);
}

.atlas-ready .atlas-chapters {
  --atlas-runout: min(31svh, 260px);
  padding: 0 0 var(--atlas-runout) 24px;
}

.atlas-ready .atlas-chapters::before, .atlas-ready .atlas-chapters::after {
  content: "";
  position: absolute;
  inset: 32px auto calc(var(--atlas-runout) + 32px) 3px;
  width: 2px;
  background: #ead0a43b;
}

.atlas-ready .atlas-chapters::after {
  background: linear-gradient(#e9ae8b, #ffba73 53%, #9cd7eb);
  transform-origin: top;
  transform: scaleY(var(--route-progress, 0));
}

.atlas-chapter {
  --chapter-color: #edb092;
  --chapter-wash: #261815;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  min-width: 0;
  padding: clamp(22px, 4vw, 50px);
  border: 1px solid #ffffff24;
  border-top-color: var(--chapter-color);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--chapter-wash), #141213 75%);
}

.atlas-chapter[data-product="spice"] { --chapter-color: #ffbc81; --chapter-wash: #281b13; }
.atlas-chapter[data-product="aegean"] { --chapter-color: #a5daee; --chapter-wash: #13232a; }
.atlas-ready .atlas-chapter { min-height: max(380px, 65svh); }
.atlas-ready .atlas-chapter::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 27px;
  left: -26px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--atlas-black);
  border-radius: 50%;
  background: var(--chapter-color);
}
.atlas-chapter .eyebrow { display: flex; align-items: center; gap: 10px; color: var(--chapter-color); font-weight: 700; text-transform: uppercase; }
.atlas-chapter .eyebrow span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 11px/1 monospace;
}
.atlas-chapter h3 { color: var(--atlas-ink); font: clamp(49px, 5.8vw, 84px)/1 var(--serif); letter-spacing: -.045em; margin: 18px 0 15px; overflow-wrap: anywhere; }
.atlas-chapter p:not(.eyebrow) { max-width: 370px; margin: 0 0 24px; color: #d9d1c8; font-size: 15px; line-height: 1.75; }
.atlas-chapter .atlas-shop-link { color: #1b1410; background: var(--chapter-color); border-color: var(--chapter-color); min-height: 47px; border-radius: 4px; }
.atlas-chapter .atlas-shop-link:hover { filter: brightness(1.15); }
.atlas-chapter a:focus-visible { outline: 2px solid var(--chapter-color); outline-offset: 4px; }

.atlas-chapter:has(.atlas-shop-link:is(:hover, :focus-visible)) h3 {
  color: #BFA040;
}

@property --title-gold {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

@supports (background-clip: text) and (color: color-mix(in srgb, white, black)) {
  .atlas-chapter h3,
  .atlas-chapter:has(.atlas-shop-link:is(:hover, :focus-visible)) h3 {
    background-image: linear-gradient(155deg,
      color-mix(in srgb, #E9CC68 var(--title-gold), var(--atlas-ink)) 8%,
      color-mix(in srgb, #BFA040 var(--title-gold), var(--atlas-ink)) 52%,
      color-mix(in srgb, #917523 var(--title-gold), var(--atlas-ink)) 96%);
    background-clip: text;
    color: transparent;
  }
  .atlas-chapter h3 { --title-gold: 0%; }
  .atlas-chapter:has(.atlas-shop-link:is(:hover, :focus-visible)) h3 { --title-gold: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .atlas-chapter h3 { transition: color .35s ease, --title-gold .55s cubic-bezier(.22, .68, .25, 1); }
  .atlas-chapter .atlas-shop-link { transition: translate .2s ease, filter .2s ease, box-shadow .2s ease; }
  .atlas-chapter .atlas-shop-link:is(:hover, :focus-visible) { box-shadow: 0 7px 18px #0004; }
}

.atlas-inline {
  --inline-glow: #583a2e;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  height: clamp(188px, 49vw, 290px);
  margin: 3px 0 20px;
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 42% 52%, var(--inline-glow), transparent 68%),
    repeating-linear-gradient(90deg, #e8cca110 0 1px, transparent 1px 24px),
    #110e10;
}

[data-product="spice"] > .atlas-inline { --inline-glow: #654125; }
[data-product="aegean"] > .atlas-inline { --inline-glow: #264654; }

.atlas-inline::before {
  content: "";
  position: absolute;
  inset: 15% 12%;
  border: 1px dashed #e8cca15e;
  border-radius: 50%;
  transform: rotate(-22deg);
}

.atlas-inline-earth {
  position: absolute;
  width: auto;
  height: 82%;
  aspect-ratio: 1;
  top: 50%;
  left: 39%;
  transform: translate(-50%, -50%) rotate(var(--earth-tilt, 0deg));
  border-radius: 50%;
}

.atlas-inline .atlas-pack { width: auto; height: 126%; left: 72%; top: 52%; }
.atlas-ready .atlas-inline { display: none; }

.travel-story:not(.atlas-ready) .atlas-layout { display: block; }
.travel-story:not(.atlas-ready) .atlas-chapters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.travel-story:not(.atlas-ready) .atlas-chapter { justify-content: start; }
.travel-story:not(.atlas-ready) .atlas-intro > p { display: none; }

@media (max-width: 900px), (max-height: 560px) {
  .atlas-ready .atlas-stage { display: none; }
  .atlas-ready .atlas-inline { display: block; }
  .atlas-layout, .atlas-intro { display: block; max-width: 620px; margin-inline: auto; }
  .atlas-intro h2 { font-size: clamp(30px, 9.2vw, 62px); overflow-wrap: anywhere; }
  .atlas-intro > p { margin-top: 16px; }
  .atlas-ready .atlas-chapter { min-height: 0; }
  .atlas-ready .atlas-chapters { --atlas-runout: 0px; padding-left: 17px; }
  .atlas-ready .atlas-chapter::before { left: -19px; }
  .atlas-chapter h3 { font-size: clamp(46px, 12vw, 64px); margin: 11px 0 12px; }
  .atlas-chapter p:not(.eyebrow) { font-size: 14px; margin-bottom: 19px; }
  .travel-story:not(.atlas-ready) .atlas-chapters { grid-template-columns: 1fr; }
  .atlas-chapter .atlas-shop-link { width: 100%; justify-content: center; }
}

@media (max-width: 760px) {
  [data-travel-heading] { --title-shift: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-stage, .atlas-glow { transition: none; }
}
