/* ============================================================
   THE CARTOGRAPHY CO. — "THE NIGHT ATLAS"
   A cinematic, after-dark editorial world.
   Deep ink sky · warm cream type · one ember accent.
   ============================================================ */

:root {
  /* The night palette */
  --night:       #0B1016;   /* the sky — page background */
  --night-soft:  #111922;   /* panels, cards */
  --night-line:  rgba(242, 235, 220, 0.12);
  --night-line-soft: rgba(242, 235, 220, 0.07);

  --cream:       #F2EBDC;   /* primary type */
  --cream-60:    rgba(242, 235, 220, 0.62);
  --cream-40:    rgba(242, 235, 220, 0.40);

  --ember:       #D97A50;   /* the one accent — a campfire at distance */
  --ember-soft:  rgba(217, 122, 80, 0.16);
  --ember-glow:  rgba(217, 122, 80, 0.45);

  /* The mark keeps its original brand colors, always */
  --mark-navy:   #1B2A3A;
  --mark-cream:  #F4EDDF;

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Inter", -apple-system, sans-serif;
  --mono:  "JetBrains Mono", "SF Mono", monospace;

  --measure: 34em;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--night);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ember); color: var(--night); }

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

a { color: inherit; text-decoration: none; }

/* ---- Film grain over everything ------------------------------ */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 3%); }
  40% { transform: translate(3%, -2%); }
  60% { transform: translate(-3%, -3%); }
  80% { transform: translate(2%, 2%); }
}

/* ---- Typography helpers -------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ember);
}

.eyebrow--dim { color: var(--cream-40); }

h1, h2, h3 { font-family: var(--serif); font-weight: 480; line-height: 1.04; letter-spacing: -0.015em; }

.display-xl {
  font-size: clamp(3rem, 9.5vw, 8.5rem);
  font-variation-settings: "opsz" 144;
}
.display-lg {
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  font-variation-settings: "opsz" 144;
}
.display-md {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-variation-settings: "opsz" 72;
}

.standfirst {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 360;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.45;
  color: var(--cream-60);
}

.body-copy { color: var(--cream-60); max-width: var(--measure); }
.body-copy strong { color: var(--cream); font-weight: 560; }

.hairline { border: 0; border-top: 1px solid var(--night-line); }

/* ---- The mark ------------------------------------------------- */
.mark {
  width: 44px;
  height: 44px;
  background: var(--mark-navy);
  display: grid;
  place-items: center;
  flex: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--mark-cream);
  line-height: 1;
  border: 1px solid rgba(244, 237, 223, 0.14);
}

/* ---- Navigation ----------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem var(--gutter);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
.nav.is-scrolled {
  background: rgba(11, 16, 22, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--night-line-soft);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.nav__wordmark {
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 560;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav__links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav__link {
  font-family: var(--mono);
  white-space: nowrap;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-60);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}
.nav__link:hover { color: var(--cream); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--cream); }

.btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--night);
  background: var(--cream);
  padding: 0.95rem 1.7rem;
  border: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.35s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ember);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn span { position: relative; z-index: 1; }
.btn:hover { color: var(--night); }

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--night-line);
}
.btn--ghost:hover { border-color: var(--ember); }
.btn--sm { padding: 0.7rem 1.2rem; font-size: 0.66rem; }

/* ---- Hero ------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(3rem, 7vh, 5.5rem);
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  /* fallback if the photo never loads */
  background:
    radial-gradient(120% 90% at 70% 10%, #1d2c3c 0%, transparent 60%),
    radial-gradient(80% 60% at 20% 90%, #2a1d18 0%, transparent 55%),
    var(--night);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease;
  transform: scale(1.06);
  animation: hero-drift 18s ease-out forwards;
}
.hero__media img.is-loaded { opacity: 0.78; }
@keyframes hero-drift { to { transform: scale(1); } }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--night) 4%, rgba(11,16,22,0.55) 38%, rgba(11,16,22,0.25) 65%, rgba(11,16,22,0.55) 100%);
}

.hero__coords {
  position: absolute;
  top: 50%;
  right: var(--gutter);
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  color: var(--cream-40);
  white-space: nowrap;
}

.hero__title {
  max-width: 11em;
  margin-top: 1.4rem;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.hero__title .line span {
  display: block;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease-out) forwards;
}
.hero__title .line:nth-child(2) span { animation-delay: 0.12s; }
.hero__title .line:nth-child(3) span { animation-delay: 0.24s; }
@keyframes rise { to { transform: translateY(0); } }

.hero__title em {
  font-style: italic;
  font-weight: 380;
  color: var(--ember);
}

.hero__sub {
  margin-top: 2rem;
  max-width: 30em;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.55s forwards;
}
.hero__cta {
  margin-top: 2.4rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.75s forwards;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  right: var(--gutter);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--cream-40);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--cream-40), transparent);
  animation: drop 2.2s ease-in-out infinite;
}
@keyframes drop {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- Sections -------------------------------------------------- */
.section {
  padding: clamp(4.5rem, 10vh, 8.5rem) var(--gutter);
  position: relative;
}
.section__head {
  display: flex;
  align-items: baseline;
  gap: 1.6rem;
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.section__head .rule {
  flex: 1;
  height: 1px;
  background: var(--night-line);
}
.section__no {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--cream-40);
  letter-spacing: 0.2em;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---- Manifesto ------------------------------------------------- */
.manifesto {
  max-width: 56rem;
  margin: 0 auto;
  text-align: left;
}
.manifesto p.lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  line-height: 1.32;
  font-variation-settings: "opsz" 50;
}
.manifesto p.lede em { font-style: italic; color: var(--ember); font-weight: 380; }
.manifesto .dropcap::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 3.4em;
  line-height: 0.82;
  padding-right: 0.12em;
  color: var(--ember);
  font-weight: 560;
}

/* ---- Journeys (card row) --------------------------------------- */
.journeys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.journey {
  position: relative;
  aspect-ratio: 3 / 4.1;
  overflow: hidden;
  background: var(--night-soft);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem;
  isolation: isolate;
  border: 1px solid var(--night-line-soft);
}
.journey:nth-child(2) { transform: translateY(2.75rem); }
.journey img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transform: scale(1.01);
  transition: transform 1.2s var(--ease-out), opacity 0.6s ease;
}
.journey::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(11,16,22,0.92) 0%, rgba(11,16,22,0.1) 55%);
}
.journey:hover img { transform: scale(1.07); opacity: 0.8; }
.journey__tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.7rem;
}
.journey h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); margin-bottom: 0.5rem; }
.journey p { font-size: 0.88rem; color: var(--cream-60); max-width: 24em; }

/* ---- Process --------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}
.step { border-top: 1px solid var(--night-line); padding-top: 1.6rem; position: relative; }
.step__no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 3.4rem;
  font-weight: 300;
  color: var(--ember);
  line-height: 1;
  display: block;
  margin-bottom: 1.2rem;
}
.step h3 { font-size: 1.45rem; margin-bottom: 0.8rem; }
.step p { color: var(--cream-60); font-size: 0.92rem; }
.step ul {
  margin-top: 1.1rem;
  list-style: none;
}
.step li {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--cream-60);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--night-line-soft);
}
.step li::before { content: "—  "; color: var(--ember); }

/* ---- Credibility band ------------------------------------------ */
.cred {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.cred__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    radial-gradient(90% 80% at 30% 20%, #21303f 0%, transparent 65%),
    var(--night-soft);
  border: 1px solid var(--night-line-soft);
}
.cred__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.cred__media figcaption {
  position: absolute;
  bottom: 1rem;
  left: 1.2rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: var(--cream-60);
  text-transform: uppercase;
}
.stat {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  line-height: 1;
  font-variation-settings: "opsz" 144;
  color: var(--cream);
}
.stat sup { font-size: 0.4em; color: var(--ember); }
.stat-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cream-40);
  margin-top: 0.8rem;
  margin-bottom: 2rem;
}

/* ---- Marquee ---------------------------------------------------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--night-line);
  border-bottom: 1px solid var(--night-line);
  padding: 1.1rem 0;
  white-space: nowrap;
}
.marquee__track {
  display: inline-block;
  animation: marquee 46s linear infinite;
}
.marquee span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cream-40);
  padding: 0 2.2rem;
}
.marquee span i { font-style: normal; color: var(--ember); padding-right: 2.2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Atlas teaser ----------------------------------------------- */
.atlas-teaser {
  text-align: center;
  padding-top: clamp(5rem, 12vh, 9rem);
  padding-bottom: clamp(5rem, 12vh, 9rem);
  position: relative;
  overflow: hidden;
}
.atlas-teaser::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -42vw;
  width: 84vw;
  height: 84vw;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 18%, rgba(217,122,80,0.13) 0%, rgba(17,25,34,0.9) 42%, var(--night) 72%);
  border: 1px solid var(--night-line-soft);
  pointer-events: none;
}
.atlas-teaser > * { position: relative; }

/* ---- Big CTA ----------------------------------------------------- */
.cta-final {
  text-align: center;
  padding: clamp(6rem, 16vh, 11rem) var(--gutter);
}
.cta-final h2 { margin: 1.2rem 0 2.6rem; }
.cta-final h2 em { font-style: italic; font-weight: 360; color: var(--ember); }

/* ---- Footer ------------------------------------------------------ */
.footer {
  border-top: 1px solid var(--night-line);
  padding: 3.5rem var(--gutter) 2.5rem;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3.5rem;
}
.footer__brand { display: flex; align-items: center; gap: 1rem; }
.footer__contact { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__contact .eyebrow { letter-spacing: 0.24em; }
.footer__email {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--cream);
  align-self: flex-start;
  border-bottom: 1px solid var(--ember);
  padding-bottom: 0.1rem;
  transition: color 0.3s ease;
}
.footer__email:hover { color: var(--ember); }
.footer__meta a {
  color: var(--cream-60);
  border-bottom: 1px solid var(--night-line);
  transition: color 0.3s ease;
}
.footer__meta a:hover { color: var(--ember); }
.footer nav { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer nav a {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-60);
  transition: color 0.3s ease;
}
.footer nav a:hover { color: var(--ember); }
.footer__big {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 9vw, 8rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--night-soft);
  -webkit-text-stroke: 1px rgba(242,235,220,0.18);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
}
.footer__meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--cream-40);
  text-transform: uppercase;
}

/* ============================================================
   THE ATLAS (globe page)
   ============================================================ */
.atlas-page {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.85fr);
  padding-top: 76px;
}
.atlas-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70svh;
  overflow: hidden;
}
.atlas-stage canvas { cursor: grab; touch-action: none; }
.atlas-stage canvas:active { cursor: grabbing; }
.atlas-stage__halo {
  position: absolute;
  inset: 0;
  background: radial-gradient(45% 45% at 50% 50%, rgba(217,122,80,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.atlas-stage__hint {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-40);
  pointer-events: none;
}

.atlas-side {
  border-left: 1px solid var(--night-line);
  padding: clamp(1.6rem, 3vw, 2.8rem);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  max-height: calc(100svh - 76px);
}
.atlas-side::-webkit-scrollbar { width: 4px; }
.atlas-side::-webkit-scrollbar-thumb { background: var(--night-line); }

.atlas-side__intro h1 { margin: 0.9rem 0 1rem; }
.atlas-side__intro p { color: var(--cream-60); font-size: 0.92rem; max-width: 30em; }

.dest-list { margin-top: 2rem; list-style: none; }
.dest-list li {
  border-top: 1px solid var(--night-line-soft);
}
.dest-list button {
  width: 100%;
  background: none;
  border: 0;
  color: var(--cream-60);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.85rem 0.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.3s ease, padding-left 0.3s var(--ease-out);
}
.dest-list button:hover { color: var(--cream); padding-left: 0.7rem; }
.dest-list button .c { color: var(--cream-40); font-size: 0.6rem; letter-spacing: 0.1em; }
.dest-list li.is-active button { color: var(--ember); }

.atlas-side__contact {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--night-line-soft);
  font-size: 0.85rem;
  color: var(--cream-60);
}
.atlas-side__contact a { color: var(--cream); border-bottom: 1px solid var(--ember); transition: color 0.3s ease; }
.atlas-side__contact a:hover { color: var(--ember); }
.atlas-side__contact span {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-40);
}

/* Trip panel (slides over the side column content) */
.trip-panel { display: none; animation: fade-up 0.55s var(--ease-out); }
.trip-panel.is-open { display: block; }
.trip-panel__back {
  background: none;
  border: 0;
  color: var(--cream-40);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1.6rem;
  transition: color 0.3s ease;
}
.trip-panel__back:hover { color: var(--ember); }
.trip-panel figure {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin: 1.2rem 0 1.6rem;
  background: var(--night-soft);
  border: 1px solid var(--night-line-soft);
}
.trip-panel figure img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; }
.trip-panel h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: 0.4rem; }
.trip-panel .trip-meta {
  display: flex;
  gap: 1.6rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-40);
  margin-bottom: 1.4rem;
}
.trip-panel .trip-hook {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--cream-60);
  margin-bottom: 1.6rem;
}
.trip-days { list-style: none; margin-bottom: 1.8rem; }
.trip-days li {
  display: grid;
  grid-template-columns: 5.4rem 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--night-line-soft);
  font-size: 0.85rem;
  color: var(--cream-60);
}
.trip-days li b {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  padding-top: 0.2em;
}
.trip-move {
  border-left: 2px solid var(--ember);
  background: var(--ember-soft);
  padding: 1.1rem 1.3rem;
  margin-bottom: 2rem;
  font-size: 0.88rem;
  color: var(--cream-60);
}
.trip-move b {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.5rem;
}

/* ============================================================
   THE JOURNAL
   ============================================================ */
.journal-hero {
  padding: clamp(9rem, 20vh, 13rem) var(--gutter) clamp(3rem, 6vh, 5rem);
}
.journal-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.4rem;
  padding: 0 var(--gutter) clamp(5rem, 10vh, 8rem);
}
.post {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--night-line-soft);
  background: var(--night-soft);
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.5s var(--ease-out);
}
.post:hover { border-color: rgba(217,122,80,0.4); transform: translateY(-4px); }
.post--lead { grid-column: span 12; flex-direction: row; min-height: 420px; }
.post--half { grid-column: span 6; }
.post--third { grid-column: span 4; }
.post__media {
  overflow: hidden;
  background:
    radial-gradient(100% 100% at 20% 0%, #20303e 0%, transparent 70%),
    var(--night-soft);
  aspect-ratio: 16 / 10;
  flex: none;
}
.post--lead .post__media { width: 56%; aspect-ratio: auto; }
.post__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 1.1s var(--ease-out), opacity 0.5s ease;
}
.post:hover .post__media img { transform: scale(1.05); opacity: 0.95; }
.post__body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post--lead .post__body { justify-content: center; padding: clamp(1.8rem, 3.5vw, 3.2rem); }
.post__kicker {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.9rem;
}
.post h2, .post h3 { margin-bottom: 0.7rem; }
.post--lead h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); }
.post p { color: var(--cream-60); font-size: 0.9rem; max-width: 34em; }
.post__meta {
  margin-top: auto;
  padding-top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-40);
}

/* ---- Article page ------------------------------------------------ */
.article {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(9rem, 18vh, 12rem) var(--gutter) 4rem;
}
.article h1 { margin: 1rem 0 1.4rem; }
.article .standfirst { margin-bottom: 2.4rem; }
.article__meta {
  display: flex;
  gap: 2rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-40);
  padding: 1.1rem 0;
  border-top: 1px solid var(--night-line);
  border-bottom: 1px solid var(--night-line);
  margin-bottom: 2.6rem;
}
.article figure { margin: 2.4rem calc(-1 * clamp(0rem, 6vw, 6rem)) 1rem; }
.article figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article figcaption {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--cream-40);
  padding-top: 0.7rem;
  text-transform: uppercase;
}
.article p { color: var(--cream-60); margin-bottom: 1.4rem; font-size: 1.02rem; }
.article h2 { font-size: 1.7rem; margin: 2.6rem 0 1rem; }
.article .pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.45;
  color: var(--cream);
  border-left: 2px solid var(--ember);
  padding-left: 1.6rem;
  margin: 2.4rem 0;
}

/* ---- Responsive --------------------------------------------------- */
@media (max-width: 1020px) {
  .atlas-page { grid-template-columns: 1fr; }
  .atlas-side { border-left: 0; border-top: 1px solid var(--night-line); max-height: none; }
  .post--lead { flex-direction: column; }
  .post--lead .post__media { width: 100%; aspect-ratio: 16/9; }
}
@media (max-width: 860px) {
  .journeys { grid-template-columns: 1fr; }
  .journey:nth-child(2) { transform: none; }
  .journey { aspect-ratio: 16 / 10; }
  .process { grid-template-columns: 1fr; gap: 2.4rem; }
  .cred { grid-template-columns: 1fr; }
  .post--half, .post--third { grid-column: span 12; }
  .nav__links { gap: 1.2rem; }
  .hero__coords { display: none; }
}
@media (max-width: 880px) {
  .nav { gap: 1rem; }
  .nav .nav__wordmark { display: none; }  /* header only — the C mark still links home */
}
@media (max-width: 680px) {
  .nav__links { gap: 1rem; }
  .nav__link { font-size: 0.64rem; letter-spacing: 0.16em; }
  .btn--sm { padding: 0.6rem 0.9rem; font-size: 0.6rem; }
}
@media (max-width: 460px) {
  .nav__link[href$="index.html"]:not(.is-mobile-keep) { display: none; } /* mark covers Home */
}

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