/* Kumo Travel — "Postcards from Above the Clouds" layer (branch
   design/quieter-postcards). Loaded after site.css on the pages it has been
   applied to so far (index.html, features/index.html). It keeps the
   destination-per-page idea and quiets everything layered on top of it:
   - the scene owns the first viewport (one headline, one line, one pair of
     actions), and the text sits on clear sky instead of over the illustration
   - one postmark per page (place + coordinates) replaces the eyebrow labels
   - clouds part once on load and settle at the edges, clear of the copy;
     the flight paths, planes and seasonal leaves stay as they were
   - no particles over body copy
   - below the hero, the destination carries on as calm colour bands from
     its own palette rather than scattered critters. */

/* Postmark text sizes are SVG user units (they scale with the stamp's own
   width), so they were NOT multiplied when the site's zoom was removed. */
/* ── Postmark: the page's travel signature ─────────────────────────────── */
/* A real cancellation stamp: wavy bars trailing into a double-ringed
   date-stamp, place and coordinates set around the ring, ink slightly worn
   (SVG filter in the markup). Cream ink, rotated as if struck by hand. */

.postmark {
  position: absolute;
  top: 0;
  right: -14.4px;
  z-index: 2;
  width: 396px;
  height: auto;
  transform: rotate(-7deg);
  transform-origin: 80% 50%;
  pointer-events: none;
  overflow: visible;
  color: var(--cream);
  opacity: 1;
}
.postmark .pm-waves path { stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.postmark .pm-ring { fill: none; stroke: currentColor; stroke-width: 3; }
.postmark .pm-ring-inner { stroke-width: 2; }
.postmark text { fill: currentColor; font-family: "Poppins", sans-serif; }
.postmark .pm-arc { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; }
.postmark .pm-arc-small { font-size: 9px; font-weight: 600; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.postmark .pm-center { font-size: 15px; font-weight: 700; letter-spacing: 0.18em; }
.postmark .pm-center-small { font-size: 8.5px; font-weight: 600; letter-spacing: 0.22em; }
@media (max-width: 900px) {
  .postmark { display: none; }
}

/* ── Homepage hero (Mt Fuji) ───────────────────────────────────────────── */

/* The scene keeps site.css's own sky and Fuji illustration untouched. The
   copy is split so the mountain stays in view: headline and one line in the
   sky above it, the sentence and actions beside the phone, and the right
   side left open for Fuji and the pagoda. The type is inked dark, as if
   printed on the postcard: white could not clear contrast on the painted
   sky without hiding Fuji. Faint cream washes that fade to nothing before
   their own edges lift the busiest patches behind the text. */

.postcard-hero-copy {
  position: relative;
  z-index: 1;
  padding-top: 76.8px;
  padding-bottom: 9.6px;
  text-align: center;
}
.postcard-hero-copy::before {
  content: "";
  position: absolute;
  inset: 28.8px 8% -14.4px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 251, 248, 0.62), rgba(255, 251, 248, 0.34) 64%, rgba(255, 251, 248, 0));
  pointer-events: none;
}
.postcard-hero .mega-heading {
  margin: 0 0 14.4px;
  padding: 0;
  color: #0f2f45;
  text-shadow: none;
}
/* Home: the H1 wraps the tagline and the line under it (SEO, 2026-10-07).
   Undo the global h1 type so each span keeps the look it had as h1/p. */
.hero-title { margin: 0; font-weight: 400; line-height: 1.55; letter-spacing: normal; }
.hero-title > span { display: block; }
.hero-title .mega-heading { line-height: 0.94; }
.postcard-sub {
  margin: 0 0 48px;
  font-size: clamp(21.6px, 2.4vw, 28.8px);
  /* 700, not 600: hero-rose measured 4.4:1 where the sky behind it is
     darkest on phones (audit 2026-11-01). At bold weight this size is WCAG
     "large text" (3:1), and the line holds up better over the illustration. */
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--hero-rose);
}

.postcard-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 0 var(--pad);
}
.postcard-stage > img { grid-column: 2; }
.postcard-cta {
  grid-column: 1;
  justify-self: start;
  position: relative;
  max-width: 432px;
  padding: 33.6px 9.6px;
}
.postcard-cta::before {
  content: "";
  position: absolute;
  inset: -48px -72px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 251, 248, 0.84), rgba(255, 251, 248, 0.6) 62%, rgba(255, 251, 248, 0));
  pointer-events: none;
}
.postcard-lead {
  margin: 0 0 26.4px;
  font-size: 19.2px;
  font-weight: 500;
  line-height: 1.6;
  color: #1d2a33;
}
.postcard-cta .hero-actions { margin-bottom: 14.4px; }
.postcard-note {
  margin: 0;
  font-size: 15.6px;
  font-weight: 600;
  color: #24485c;
}

@media (max-width: 900px) {
  /* Clear of the flight path above it rather than pulled up over it. */
  .postcard-stage { grid-template-columns: 1fr; gap: 9.6px; margin-top: 24px; }
  .postcard-stage > img { grid-column: 1; grid-row: 2; justify-self: center; }
  .postcard-cta { grid-column: 1; grid-row: 1; justify-self: center; text-align: center; padding-top: 0; }
  .postcard-cta .hero-actions { justify-content: center; }
}

/* Clouds part once on load and settle at the edges, clear of the copy. */
.postcard-hero .hero-clouds .cloud {
  animation: cloud-part 2.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
.postcard-hero .hero-clouds .c1,
.postcard-hero .hero-clouds .c5 { --part-from: 31.2vw; }
.postcard-hero .hero-clouds .c4,
.postcard-hero .hero-clouds .c7,
.postcard-hero .hero-clouds .c10 { --part-from: -31.2vw; }
@keyframes cloud-part {
  from { transform: translateX(var(--part-from, 0)) scale(1.15); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .postcard-hero .hero-clouds .cloud { animation: none; }
}
/* On a phone there is no edge to settle at: every cloud lands on the copy. */
@media (max-width: 720px) {
  .postcard-hero .hero-clouds { display: none; }
}

/* ── Quiet cards: hairline-topped columns instead of emoji tiles ───────── */

.card-grid.quiet-cards { gap: 43.2px; }
.quiet-cards .card {
  background: transparent;
  border: 0;
  border-top: 1.2px solid rgba(51, 42, 49, 0.22);
  border-radius: 0;
  padding: 24px 2.4px 0;
}
.quiet-cards .card h3 { font-size: 21.6px; margin-bottom: 9.6px; }
.quiet-cards .card p { color: #4a3c44; font-size: 18px; line-height: 1.6; }

/* ── Subpage heroes: the wash takes each destination's own deepest tone ── */

body.subpage { --wash-rgb: 18, 60, 82; }         /* Socotra deep water */
body.theme-andes { --wash-rgb: 22, 48, 43; }     /* Andes cloud-forest green */
body.theme-bay { --wash-rgb: 12, 66, 78; }       /* Wineglass Bay ocean */

/* ── Features page (Socotra) ───────────────────────────────────────────── */

.postcard-page-hero .wrap { position: relative; }
.postcard-page-hero .postmark { top: -36px; right: 0; width: 300px; }
/* A soft deep-water wash behind the hero copy only, so the subtitle reads
   on the lagoon without a text-shadow halo. */
.postcard-page-hero {
  /* A top-down fade in the destination's deepest tone: dark under the nav,
     holding through the hero copy, then clearing to the scene (or the sky
     on plain pages). Replaced a centred radial wash on 2026-11-01, which
     read as a dark oval. */
  background: linear-gradient(
    to bottom,
    rgba(var(--wash-rgb), 0.86) 0,
    rgba(var(--wash-rgb), 0.82) calc(100% - 72px),
    rgba(var(--wash-rgb), 0) 100%
  );
}
.postcard-page-hero h1,
.postcard-page-hero p { text-shadow: none; }
/* Narrower measures keep the headline and paragraph clear of the postmark
   and its cancellation lines in the corner. */
.postcard-page-hero h1 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.postcard-page-hero p { max-width: 48ch; }

/* One direction only, no alternating bands: the page wades out of the sea
   in the hero, settles on the sand for the middle, and goes back out to deep
   water at the closing call to action. */
body.theme-socotra .feature-row { background: transparent; }
/* site.css's own Socotra stops for the first 520px (the nav gradient is
   anchored to the same y=0, so the seam under the nav is untouched), then a
   single slow drift from shallow lagoon up onto the sand. */
body.subpage.theme-socotra {
  background: linear-gradient(
    to bottom,
    var(--socotra-deep) 0,
    var(--socotra-sea) 216px,
    var(--socotra-lagoon) 432px,
    var(--socotra-shallows) 624px,
    #dff3ee 1080px,
    #eef7f2 22%,
    var(--cream) 40%,
    var(--cream) 100%
  );
}

/* The closing call to action wades out from the shore: sand-cream, shallow
   lagoon, then deep water, ending on the footer's own #123c52 so that join
   is seamless too. The copy is pushed down to sit on the deep part only
   (white on #1f6f95 and darker clears 5.6:1). */
body.theme-socotra .cta-banner.from-socotra {
  padding-top: 228px;
  background: linear-gradient(
    to bottom,
    var(--cream) 0,
    #d3efe9 9%,
    var(--socotra-shallows) 18%,
    #2f93a8 28%,
    var(--socotra-sea) 37%,
    var(--socotra-deep) 100%
  );
}

/* ── About page (Machu Picchu) ─────────────────────────────────────────── */

/* The Andes clouds stay on wide screens; on a phone they sit on the copy. */
/* Wide screens keep the two outer clouds; the two that drift behind the
   headline go. On a phone every cloud lands on the copy, so none stay. */
.andes-hero-scene .ac2,
.andes-hero-scene .ac3 { display: none; }
@media (max-width: 720px) {
  .andes-hero-scene { display: none; }
}

/* The closing call to action descends from the ruins' sandstone into the
   terraces' dark earth, ending on the footer's own #8a4a2b. The copy sits
   on the dark part only (white on #a35c33 and darker clears 5:1). */
body.theme-andes .cta-banner.from-stone {
  padding-top: 264px;
  background: linear-gradient(
    to bottom,
    var(--andes-sandstone) 0,
    var(--andes-clay) 16%,
    var(--andes-terracotta) 28%,
    #9a5531 40%,
    var(--andes-earth) 100%
  );
}


/* ── Homepage lower sections ───────────────────────────────────────────── */
/* "Yours, not sold to advertisers": full ink on the pink band (3.1:1 → ~7:1). */
body.home .feature-row.zone-3 .section-head p { color: var(--ink); }
body.home .feature-row.zone-3 { --link-color: var(--fuji-plum); }
/* Closing CTA: reach Sakura Rose early and push the copy onto it, so cream
   text reads (~5.4:1); ends on the footer's own start colour. */
body.home .cta-banner {
  padding-top: 180px;
  background: linear-gradient(to bottom, var(--pink-300) 0, #d06b91 16%, var(--pink-700) 32%, var(--pink-700) 100%);
}
/* Hero links sitting on a dark wash. */
.postcard-page-hero .text-link { color: var(--hero-link, var(--cream)); text-decoration: underline; }
body.theme-bay { --hero-link: var(--gold); }
body.home .cta-banner p { color: var(--cream); }
