:root {
  --night: #05070a;
  --night-soft: #10161c;
  --ink: #161819;
  --paper: #f4f1eb;
  --muted: #77756f;
  --accent: #f36f56;
  --gold: #d3a56b;
  --line: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "DM Sans", sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, video { display: block; max-width: 100%; }

.globe-page { background: var(--night); color: #f7f6f2; overflow: hidden; }
.globe-shell { position: relative; min-height: 100svh; overflow: hidden; background: radial-gradient(circle at 66% 47%, #111b23 0, #070a0e 42%, #040608 72%); }
.globe-shell::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(4,6,8,.82) 0%, transparent 42%, transparent 100%), linear-gradient(0deg, rgba(4,6,8,.5), transparent 25%); }
.topbar { position: fixed; z-index: 20; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 28px 38px; font-size: 11px; letter-spacing: .18em; }
.brand, .trip-brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; font-weight: 600; }
.brand-mark { width: 14px; height: 14px; border: 1px solid currentColor; border-radius: 50%; position: relative; display: inline-block; }
.brand-mark::after { content: ""; position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); top: -1px; right: 0; }
.trip-counter { margin: 0; color: rgba(255,255,255,.55); }
.globe-copy { position: absolute; z-index: 10; left: 7vw; top: 50%; transform: translateY(-58%); max-width: 430px; pointer-events: none; }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: 10px; font-weight: 600; letter-spacing: .22em; }
.globe-copy h1 { font-family: "Manrope", sans-serif; font-size: clamp(42px, 5vw, 76px); line-height: .99; letter-spacing: -.055em; font-weight: 400; margin: 0; }
.globe-intro { max-width: 320px; margin: 25px 0 0; color: rgba(255,255,255,.48); font-size: 14px; line-height: 1.55; }
.globe-canvas { position: absolute; z-index: 1; inset: 0 0 0 28vw; cursor: grab; }
.globe-canvas:active { cursor: grabbing; }
.globe-canvas canvas { width: 100%; height: 100%; }
.marker-layer { position: absolute; z-index: 7; inset: 0; pointer-events: none; }
.map-marker { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); pointer-events: auto; color: #fff; text-decoration: none; text-align: center; display: grid; gap: 4px; transition: opacity .2s, scale .2s; filter: drop-shadow(0 2px 10px rgba(0,0,0,.7)); }
.map-marker::before { content: ""; width: 6px; height: 6px; margin: 0 auto 3px; background: var(--accent); border: 2px solid rgba(255,255,255,.8); border-radius: 50%; box-shadow: 0 0 0 4px rgba(243,111,86,.12); }
.map-marker strong { font-size: 12px; font-weight: 600; }
.map-marker span { font-size: 9px; letter-spacing: .12em; color: rgba(255,255,255,.65); }
.map-marker.is-hidden { opacity: 0; pointer-events: none; }
.map-marker.is-focused { scale: 1.25; }
.search-wrap { position: fixed; z-index: 25; left: 50%; bottom: 28px; transform: translateX(-50%); width: min(390px, calc(100% - 36px)); }
.search-box { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(13,17,21,.76); backdrop-filter: blur(18px); border-radius: 4px; }
.search-icon { width: 13px; height: 13px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; position: relative; }
.search-icon::after { content: ""; width: 5px; border-top: 1px solid rgba(255,255,255,.7); position: absolute; right: -4px; bottom: -2px; transform: rotate(45deg); }
.search-box input { flex: 1; min-width: 0; color: #fff; border: 0; outline: 0; background: transparent; font-size: 12px; }
.search-box input::placeholder { color: rgba(255,255,255,.44); }
.search-box kbd { color: rgba(255,255,255,.38); border: 1px solid rgba(255,255,255,.1); padding: 3px 5px; border-radius: 3px; font-size: 9px; }
.search-results { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); border: 1px solid rgba(255,255,255,.12); border-radius: 4px; overflow: hidden; background: rgba(9,12,15,.96); backdrop-filter: blur(20px); }
.search-results button { width: 100%; border: 0; border-bottom: 1px solid rgba(255,255,255,.08); background: transparent; color: #fff; padding: 13px 15px; display: flex; justify-content: space-between; align-items: center; text-align: left; cursor: pointer; }
.search-results button:hover { background: rgba(255,255,255,.06); }
.search-results button span { display: grid; gap: 2px; font-size: 10px; color: rgba(255,255,255,.48); }
.search-results button strong { font-size: 12px; color: #fff; }
.search-results time, .search-results p { font-size: 10px; color: rgba(255,255,255,.45); }
.search-results p { padding: 14px; margin: 0; }
.globe-hint { position: fixed; z-index: 10; right: 38px; bottom: 38px; display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.34); font-size: 9px; letter-spacing: .15em; }
.drag-icon { font-size: 14px; }

.trip-page { background: var(--paper); color: var(--ink); }
.trip-nav { height: 62px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(20px, 4vw, 64px); border-bottom: 1px solid rgba(22,24,25,.14); font-size: 11px; letter-spacing: .12em; }
.trip-nav a { color: inherit; text-decoration: none; }
.back-link { display: flex; align-items: center; gap: 10px; }
.back-link span { font-size: 18px; }
.trip-brand { font-size: 10px; }
.share-button { justify-self: end; background: none; border: 0; cursor: pointer; color: inherit; font-size: 10px; letter-spacing: .1em; }
.trip-hero { min-height: 238px; padding: 38px clamp(20px, 8vw, 130px) 34px; display: flex; justify-content: space-between; align-items: end; border-bottom: 1px solid rgba(22,24,25,.14); background: radial-gradient(circle at 70% 25%, rgba(211,165,107,.13), transparent 34%); }
.trip-hero h1 { margin: 0; font-family: "Manrope", sans-serif; font-weight: 400; font-size: clamp(58px, 8vw, 112px); letter-spacing: -.075em; line-height: .82; }
.trip-hero h1 span { color: var(--accent); }
.trip-hero > div > p:last-child { max-width: 470px; margin: 22px 0 0; color: var(--muted); line-height: 1.5; font-size: 13px; }
.trip-stamp { width: 78px; height: 78px; border: 1px solid rgba(22,24,25,.25); border-radius: 50%; display: grid; place-content: center; text-align: center; transform: rotate(8deg); }
.trip-stamp strong { font-family: "Manrope", sans-serif; font-weight: 400; font-size: 23px; }
.trip-stamp span { font-size: 8px; letter-spacing: .15em; }
.stories-section, .gallery-section { padding-left: clamp(20px, 8vw, 130px); padding-right: clamp(20px, 8vw, 130px); }
.stories-section { padding-top: 22px; padding-bottom: 22px; display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 28px; border-bottom: 1px solid rgba(22,24,25,.14); }
.gallery-section { padding-top: 30px; padding-bottom: 70px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font: 400 clamp(26px, 3vw, 42px)/1 "Manrope", sans-serif; letter-spacing: -.04em; }
.stories-section .section-heading { display: block; margin: 0; }
.section-heading p { margin: 7px 0 0; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.stories-row { display: flex; gap: clamp(18px, 3vw, 42px); overflow-x: auto; padding: 2px; scrollbar-width: none; }
.story { flex: 0 0 auto; width: 64px; border: 0; padding: 0; background: none; display: grid; gap: 7px; justify-items: center; cursor: pointer; color: inherit; font-size: 10px; }
.story-ring { width: 58px; height: 58px; padding: 3px; border: 1px solid var(--accent); border-radius: 50%; transition: transform .25s; }
.story:hover .story-ring { transform: scale(1.05); }
.story img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; filter: saturate(.8); }
.gallery-heading { border-bottom: 1px solid rgba(22,24,25,.14); padding-bottom: 17px; }
.gallery-count { font: 400 30px/1 "Manrope", sans-serif; color: rgba(22,24,25,.28); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.gallery-item { position: relative; aspect-ratio: 1; overflow: hidden; border: 0; padding: 0; background: #ddd; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .4s; filter: saturate(.78) contrast(1.03); }
.gallery-item:hover img { transform: scale(1.035); filter: saturate(1); }
.video-badge { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: 48px; height: 48px; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(0,0,0,.22); backdrop-filter: blur(6px); font-size: 13px; padding-left: 3px; }
.item-index { position: absolute; bottom: 12px; left: 14px; color: #fff; font-size: 9px; letter-spacing: .14em; text-shadow: 0 1px 8px #000; }
.trip-footer { min-height: 220px; padding: 50px clamp(20px, 8vw, 130px); background: var(--ink); color: #fff; display: flex; justify-content: space-between; align-items: end; }
.trip-footer a { color: #fff; text-decoration: none; font: 400 clamp(28px, 4vw, 50px)/1 "Manrope", sans-serif; letter-spacing: -.04em; }
.trip-footer p { color: rgba(255,255,255,.38); font-size: 9px; letter-spacing: .18em; }
.viewer { width: 100vw; max-width: none; height: 100svh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5,7,9,.97); color: #fff; overflow: hidden; }
.viewer::backdrop { background: #050709; }
.viewer[open] { display: grid; grid-template-columns: 80px 1fr 80px; grid-template-rows: 70px 1fr 110px; }
.viewer > header { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; }
.viewer > header p { font-size: 10px; letter-spacing: .18em; color: rgba(255,255,255,.55); }
.viewer-close { color: #fff; background: none; border: 0; font-size: 36px; font-weight: 200; cursor: pointer; }
.viewer-stage { display: grid; place-items: center; min-width: 0; min-height: 0; }
.viewer-stage img, .viewer-stage video { max-height: calc(100svh - 200px); max-width: 100%; object-fit: contain; }
.viewer-arrow { background: none; border: 0; color: rgba(255,255,255,.65); cursor: pointer; font-size: 22px; }
.viewer > footer { grid-column: 1 / -1; padding: 18px max(28px, 12vw); display: grid; grid-template-columns: 160px minmax(0, 600px); gap: 30px; align-content: start; }
.viewer > footer p { margin: 0; font-size: 12px; line-height: 1.5; }
#viewer-date { color: var(--gold); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.viewer-progress { display: none; }
.viewer.story-mode .viewer-progress { position: fixed; z-index: 3; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; }
.viewer-progress span { height: 2px; flex: 1; background: rgba(255,255,255,.24); }
.viewer-progress span.active { background: #fff; }
.not-found { min-height: 100svh; display: grid; place-content: center; text-align: center; }

@media (max-width: 760px) {
  .topbar { padding: 22px 18px; }
  .trip-counter { display: none; }
  .globe-copy { top: 105px; left: 20px; right: 20px; transform: none; }
  .globe-copy h1 { font-size: 38px; }
  .globe-intro { display: none; }
  .globe-canvas { inset: 13vh -32vw -3vh -32vw; }
  .globe-shell::after { background: linear-gradient(180deg, rgba(4,6,8,.85) 0%, transparent 36%, transparent 73%, rgba(4,6,8,.62) 100%); }
  .map-marker strong { font-size: 11px; }
  .globe-hint { display: none; }
  .search-wrap { bottom: 18px; }
  .search-box kbd { display: none; }
  .trip-nav { grid-template-columns: 1fr 1fr; height: 64px; }
  .trip-brand { display: none; }
  .trip-hero { min-height: 220px; padding-top: 36px; padding-bottom: 30px; }
  .trip-hero h1 { font-size: clamp(56px, 19vw, 82px); }
  .trip-stamp { display: none; }
  .trip-hero > div > p:last-child { margin-top: 20px; }
  .stories-section { padding-top: 18px; padding-bottom: 18px; display: block; }
  .stories-section .section-heading { display: none; }
  .gallery-section { padding-top: 24px; padding-bottom: 50px; }
  .section-heading { margin-bottom: 18px; }
  .story { width: 58px; }
  .story-ring { width: 52px; height: 52px; }
  .gallery-grid { gap: 2px; }
  .item-index { display: none; }
  .video-badge { width: 36px; height: 36px; font-size: 10px; }
  .trip-footer { min-height: 180px; display: block; }
  .trip-footer p { margin-top: 50px; }
  .viewer[open] { grid-template-columns: 44px 1fr 44px; grid-template-rows: 58px 1fr 125px; }
  .viewer > header { padding: 0 16px; }
  .viewer-stage img, .viewer-stage video { max-height: calc(100svh - 185px); }
  .viewer > footer { padding: 16px 20px; display: block; }
  #viewer-date { margin-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
