/* Vacance v2 · Concept 1 · Postcard · round 2: selling the dream.
   Instrument Serif for display (the accent words in its italic), Instrument Sans for body,
   Homemade Apple for handwritten notes, DM Mono for postmarks and labels.
   Bright everywhere: no dark scrims. Text that sits on a film sits on a cream card, like the back of a postcard. */
:root {
  --paper: #FFF6E8;
  --card: #FFFDF8;
  --ink: #0F3B40;
  --muted: #5B6F70;
  --accent: #FF5D5D;
  --sun: #FFB547;
  --sea: #19B5B8;
  --on-film: #FFFFFF;
  --display: "Instrument Serif", Georgia, serif;
  --body: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --hand: "Homemade Apple", "Bradley Hand", cursive;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --shadow-card: 0 24px 48px rgba(15, 59, 64, .18), 0 3px 8px rgba(15, 59, 64, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.mono { font-family: var(--mono); }
.hand { font-family: var(--hand); font-weight: 400; }
em { font-style: italic; color: var(--accent); }

/* ---------- intro: cream paper and the name ---------- */
.intro {
  position: fixed; inset: 0; z-index: 80; background: var(--paper);
  display: grid; place-content: center; text-align: center; pointer-events: none;
}
.intro__word { margin: 0; font-family: var(--display); font-style: italic; font-size: clamp(64px, 11vw, 168px); line-height: .9; color: var(--ink); letter-spacing: -.01em; }
.intro__hand { margin: 18px 0 0; font-family: var(--hand); font-size: clamp(18px, 1.7vw, 26px); color: var(--accent); transform: rotate(-3deg); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 22px var(--gutter); color: var(--on-film);
  transition: color .45s ease;
}
.nav::before {
  content: ""; position: absolute; inset: 0 0 -30px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(12, 52, 60, .28), rgba(12, 52, 60, 0)); transition: opacity .45s ease;
}
.nav.is-on-paper::before { opacity: 0; }
.brand { font-family: var(--display); font-size: 30px; font-style: italic; letter-spacing: -.01em; line-height: 1; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav__cta {
  font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 99px;
  background: var(--on-film); color: var(--ink); transition: background .45s ease, color .45s ease;
}
.nav.is-on-paper { color: var(--ink); }
.nav.is-on-paper .nav__cta { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) { .nav__links { display: none; } .nav__cta { margin-left: auto; } .nav { padding-top: 16px; padding-bottom: 16px; } }

/* ---------- shared type ---------- */
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.h2 {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(48px, 6.4vw, 104px); line-height: .95; letter-spacing: -.012em;
}
.h2 .w { display: inline-block; will-change: transform; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px; border-radius: 99px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 16px; border: 0; cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 93, 93, .32);
}
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: none; }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--glass { background: rgba(255, 255, 255, .22); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn.is-picked { background: var(--sea); box-shadow: 0 8px 22px rgba(25, 181, 184, .35); }

/* the back of a postcard: cream, a little rotated, where text sits over a film */
.paper-card .h2 { font-size: clamp(44px, 4.9vw, 82px); }
.paper-card {
  background: var(--card); color: var(--ink); padding: 30px 34px 32px; box-shadow: var(--shadow-card);
  position: relative;
}
.paper-card::after { /* the faint ruled line of a postcard back */
  content: ""; position: absolute; left: 34px; right: 34px; bottom: 18px; height: 1px; background: rgba(15, 59, 64, .1);
}

/* ---------- slot labels (hidden unless ?labels=1, Nov 22) ---------- */
.slot-label {
  position: absolute; top: 10px; left: 10px; z-index: 6; pointer-events: none;
  font: 500 10.5px/1 var(--mono); letter-spacing: .05em; white-space: nowrap;
  padding: 6px 8px 5px 18px; border-radius: 4px; background: rgba(15, 59, 64, .78); color: #FFF4E4;
}
.slot-label::before {
  content: ""; position: absolute; left: 7px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent);
}
.slot-label.is-real::before { background: #7BE0A6; }
.slot-label--screen { transform-origin: 0 0; }
.slot-label .s { display: none; }
html.no-labels .slot-label { display: none !important; }

/* ---------- the stage ---------- */
.trip { position: relative; height: 100vh; height: 100svh; }
.stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper); }

/* the screen: the hero film and one canvas for every scrubbed film */
.screen { position: absolute; inset: 0; z-index: 2; transform-origin: 50% 50%; will-change: transform; }
.screen__clip { position: absolute; inset: 0; overflow: hidden; background: #BFE6EA; }
.screen__canvas, .screen__hero { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.screen__hero { object-fit: cover; }
/* no CSS filter on the film or its plate: the canvas that takes over draws the same pixels, so the hand-off matches */
/* the 2K end plate: placed by JS (it starts lined up to the film's last frame, then settles to its own framing) */
.screen__plate { position: absolute; left: 0; top: 0; display: block; opacity: 0; transform-origin: 0 0; pointer-events: none; will-change: transform, opacity; }
.screen__shadow { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.screen__edge { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; z-index: 4; }
/* a light veil only under the hero's words: a soft lagoon tint at the very bottom and a breath of sky blue at the top, never a dark scrim */
.screen__veil {
  position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0;
  background:
    radial-gradient(ellipse 26% 14% at 30% 32%, rgba(22, 92, 160, .30), rgba(22, 92, 160, 0) 75%),
    linear-gradient(to bottom, rgba(16, 84, 150, .30) 0%, rgba(16, 84, 150, .16) 38%, rgba(16, 84, 150, 0) 58%);
}

/* every overlay sits on the stage; a layer only takes clicks while it's live */
.layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; visibility: hidden; }
.layer.is-live button { pointer-events: auto; }

/* ---------- 01 arrival ---------- */
.hero-note {
  position: absolute; z-index: 3; left: 50%; top: 74%; margin: 0; transform: translateX(-50%) rotate(-4deg);
  font-size: clamp(22px, 2.3vw, 36px); color: var(--ink); white-space: nowrap; pointer-events: none;
}
/* the words are one block in the sky of the last frame: headline, lede, button. The stamp sits top right of it, like on a postcard. */
.hero {
  position: absolute; z-index: 3; inset: 0; padding: 11vh var(--gutter) 9vh;
  display: flex; flex-direction: column; justify-content: center; pointer-events: none;
  color: var(--on-film); text-shadow: 0 2px 34px rgba(8, 60, 90, .32);
}
.hero a { pointer-events: auto; }
.hero__eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 18px; }
.hero__title {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(56px, 7.2vw, 128px); line-height: 1; letter-spacing: -.02em;
}
/* each line rises out of its own mask, so no in-between frame shows words over words */
.hero__line { display: block; overflow: hidden; padding: 0 .12em .14em; margin: 0 -.12em -.14em; }
.hero__line-in { display: block; will-change: transform; }
.hero__line--i { font-style: italic; }
.ph-br { display: none; }
/* a lighter coral: brighter than the sky, so it reads instead of buzzing against the blue */
.hero__title em { color: #FF9583; text-shadow: 0 2px 16px rgba(10, 45, 90, .28), 0 1px 2px rgba(110, 30, 20, .2); }
.hero__title .w { display: inline-block; will-change: transform; }
.hero__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; margin-top: 26px; }
/* desktop: the headline sits mid-screen, so the lede and button land on the water. No card (Sam, Nov 17):
   ink type straight on the lagoon, lifted by a soft patch of sunlight in the veil behind it (.screen__veil) */
@media (min-width: 761px) {
  /* the soft patch of sunlight behind the lede lives on the hero (it leaves with it), not on the shared veil */
  .hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse 34% 22% at 20% 66%, rgba(255, 252, 244, .62), rgba(255, 252, 244, .3) 48%, rgba(255, 252, 244, 0) 100%); }
  .hero__foot { gap: 24px; margin-top: 34px; max-width: 520px; color: var(--ink); text-shadow: none; }
  .hero__foot .hero__lede { color: var(--ink); max-width: 38ch; font-weight: 600; text-shadow: 0 0 18px rgba(255, 252, 244, .9), 0 0 3px rgba(255, 252, 244, .7); }
  .hero__foot .btn--hero { background: var(--ink); color: #fff; box-shadow: 0 12px 30px rgba(8, 45, 70, .22), 0 2px 6px rgba(8, 45, 70, .14); }
}
.hero__lede { margin: 0; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.45; max-width: 42ch; font-weight: 500; text-shadow: 0 1px 2px rgba(10, 50, 95, .45), 0 2px 18px rgba(10, 60, 115, .5); }
.hero__ctas { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
/* the hero's one button: a cream card with ink type and a hibiscus arrow, quieter than a glowing pill */
.btn--hero { background: #FFF9EE; color: var(--ink); gap: 14px; padding: 0 10px 0 26px; box-shadow: 0 10px 28px rgba(8, 45, 80, .22); text-shadow: none; }
.btn__arr { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 15px; line-height: 1; transition: transform .3s ease; }
.btn--hero:hover .btn__arr { transform: translateX(3px); }
/* during the hero the page has one button, so the nav's waits until you scroll */
.nav__cta { transition: opacity .45s ease, visibility .45s ease, background .45s ease, color .45s ease; }
.nav.nav--hero .nav__cta { display: none; }

/* left and top are set by JS next to the headline; this is the fallback */
.hero-stamp-wrap { position: absolute; z-index: 3; left: 56vw; top: 12vh; width: 136px; height: 160px; pointer-events: none; }
.hero-ride { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
.hero-stamp { position: absolute; inset: 0; }
/* a contact shadow plus a soft one; JS lifts them while the stamp is in the air */
.hero-stamp .pstamp { inset: 0; --r: 4px; transform: rotate(5deg); filter: drop-shadow(0 2px 2px rgba(8, 40, 50, .35)) drop-shadow(0 14px 24px rgba(8, 50, 60, .32)); }
.hero-stamp .pstamp__price { font-size: 33px; }
.hero-stamp .pstamp__top, .hero-stamp .pstamp__bot { font-size: 10px; }
/* real ink on top of the stamp: the postmark only clips its top right corner, the cancel waves run off into the sky */
.hero-pm { position: absolute; left: 106px; top: -36px; width: 160px; color: var(--ink); opacity: .86; transform: rotate(-8deg); z-index: 2; mix-blend-mode: multiply; }
.hero-pm .pm { color: var(--ink); filter: url(#ink); }
.hero-pm .pm__mid { font-size: 27px; }
.hero-pm .pm__sub { font-size: 10px; letter-spacing: .1em; }
.hero-pm .pm__ring { stroke-width: 2.8; }
.hero-pm .pm__wave { stroke-width: 2.4; }

.hero-scroll {
  position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: 26px; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); opacity: 0; font-weight: 500;
  padding: 10px 16px 9px; border-radius: 99px; background: rgba(255, 252, 244, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-scroll span { display: none; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* nothing shows until the start state is set (no flash of the finished headline) */
html:not(.is-ready) .hero, html:not(.is-ready) .hero-stamp-wrap, html:not(.is-ready) .layer, html:not(.is-ready) .hero-note,
html:not(.is-ready) .sunset, html:not(.is-ready) .slide, html:not(.is-ready) .book { visibility: hidden; }

.sunset {
  position: absolute; z-index: 3; margin: 0; left: var(--gutter); right: var(--gutter); bottom: 13vh; text-align: center;
  font-family: var(--display); font-size: clamp(48px, 6.6vw, 110px); line-height: .95; letter-spacing: -.015em;
  color: var(--on-film); text-shadow: 0 2px 30px rgba(60, 30, 10, .3); pointer-events: none;
}
.sunset em { color: #FFF0C8; }
.sunset .w { display: inline-block; will-change: transform; }

/* ---------- the perforated stamp and the postmark ---------- */
.pstamp {
  --r: 3.5px;
  position: absolute; padding: calc(var(--r) * 2.4); background: var(--card);
  -webkit-mask-image: radial-gradient(circle at center, transparent calc(var(--r) - .4px), #000 var(--r)), linear-gradient(#000, #000);
  -webkit-mask-size: calc(var(--r) * 3) calc(var(--r) * 3), calc(100% - var(--r) * 3) calc(100% - var(--r) * 3);
  -webkit-mask-position: calc(var(--r) * -1.5) calc(var(--r) * -1.5), center;
  -webkit-mask-repeat: round, no-repeat;
  mask-image: radial-gradient(circle at center, transparent calc(var(--r) - .4px), #000 var(--r)), linear-gradient(#000, #000);
  mask-size: calc(var(--r) * 3) calc(var(--r) * 3), calc(100% - var(--r) * 3) calc(100% - var(--r) * 3);
  mask-position: calc(var(--r) * -1.5) calc(var(--r) * -1.5), center;
  mask-repeat: round, no-repeat;
  filter: drop-shadow(0 3px 6px rgba(15, 59, 64, .18));
}
.pstamp__in {
  display: grid; place-content: center; text-align: center; gap: 1px; height: 100%;
  background: var(--sun); color: var(--ink); padding: 8px 6px; outline: 1.5px solid rgba(15, 59, 64, .55); outline-offset: -5px;
}
.pstamp--hib .pstamp__in { background: var(--accent); color: #fff; outline-color: rgba(255, 255, 255, .7); }
.pstamp--sea .pstamp__in { background: var(--sea); color: #fff; outline-color: rgba(255, 255, 255, .7); }
.pstamp--ink .pstamp__in { background: var(--ink); color: var(--paper); outline-color: rgba(255, 244, 228, .5); }
.pstamp__top, .pstamp__bot { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; }
.pstamp__price { font-family: var(--display); font-size: 25px; font-style: italic; line-height: 1.05; }

.pm { display: block; overflow: visible; color: var(--ink); }
.pm__ring { fill: none; stroke: currentColor; stroke-width: 2.4; }
.pm__ring--in { stroke-width: 1.4; }
.pm__arc { font-family: var(--mono); font-size: 8.6px; letter-spacing: .16em; fill: currentColor; font-weight: 500; }
.pm__mid { font-family: var(--display); font-size: 24px; fill: currentColor; font-style: italic; }
.pm__sub { font-family: var(--mono); font-size: 8px; letter-spacing: .14em; fill: currentColor; }
.pm__wave { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 130; stroke-dashoffset: 0; }
.ink { opacity: .82; mix-blend-mode: multiply; }

/* ---------- 02 who's coming ---------- */
.who__head { position: absolute; left: var(--gutter); top: 15vh; width: min(520px, 42vw); transform: rotate(-1.2deg); }
.who__stamps { display: flex; gap: 14px; margin-top: 24px; }
.cast {
  position: relative; width: 108px; height: 128px; padding: 0; border: 0; background: none; cursor: pointer;
  transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), opacity .3s;
}
.cast .pstamp { inset: 0; }
.cast .pstamp__in { background: #F4EBDC; color: var(--ink); gap: 4px; padding: 10px 6px 8px; }
.cast .people { width: 56px; height: 36px; margin: 0 auto; fill: var(--ink); }
.cast__name { font-family: var(--display); font-style: italic; font-size: 24px; line-height: 1; }
.cast__n { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.cast[aria-checked="true"] { transform: translateY(-6px) rotate(-3deg) scale(1.04); }
.cast[aria-checked="true"] .pstamp__in { background: #FFE9C2; }
.cast[aria-checked="true"] .people { fill: var(--accent); }
/* the cancel lands on the stamp's lower right corner, its waves run off the edge */
.cast__cancel { position: absolute; left: 68px; top: 88px; width: 116px; color: var(--accent); pointer-events: none; opacity: 0; z-index: 2; }
.cast[aria-checked="true"] .cast__cancel { opacity: .9; }
.who__line { margin: 22px 0 0; font-family: var(--hand); font-size: clamp(16px, 1.25vw, 20px); line-height: 1.7; color: var(--accent); max-width: 30ch; }
.who__line .w { display: inline-block; }

.deck { position: absolute; right: var(--gutter); bottom: 7vh; width: 720px; height: 300px; }
.deck__title {
  position: absolute; left: 0; top: -40px; margin: 0; color: var(--on-film);
  font-family: var(--hand); font-size: 20px; text-shadow: 0 1px 14px rgba(8, 50, 60, .45);
}
.pkg {
  position: absolute; top: 0; width: 236px; padding: 8px 8px 12px; background: var(--card); color: var(--ink);
  box-shadow: 0 20px 40px rgba(5, 40, 50, .25), 0 2px 6px rgba(5, 40, 50, .16);
}
.pkg__pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #cfe9ea; }
.pkg__pic .slot-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pkg__pic .slot-label { top: 6px; left: 6px; font-size: 9px; padding: 4px 6px 3px 15px; }
.pkg__pic .slot-label::before { left: 6px; width: 5px; height: 5px; margin-top: -2.5px; }
.pkg__title { margin: 10px 4px 0; font-family: var(--display); font-size: 23px; line-height: 1.05; }
.pkg__note { margin: 6px 4px 0; font-family: var(--hand); font-size: 12.5px; line-height: 1.6; color: var(--accent); }
.pkg__facts { margin: 6px 4px 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.pkg .pstamp { right: -12px; top: -14px; width: 78px; height: 92px; transform: rotate(5deg); }
.pkg .pstamp__price { font-size: 20px; }
.pkg .pm { position: absolute; right: 50px; top: 50px; width: 66px; transform: rotate(-8deg); }

/* ---------- 03 always summer ---------- */
.weather__head { position: absolute; left: var(--gutter); top: 15vh; width: min(500px, 40vw); transform: rotate(1deg); }
.weather__line { margin: 18px 0 0; font-size: 18px; max-width: 32ch; }
.dial { position: absolute; right: 7vw; top: 50%; width: min(420px, 46vh); aspect-ratio: 1; transform: translateY(-44%); }
.dial::before { /* a paper disc under the dial */
  content: ""; position: absolute; inset: -4%; border-radius: 50%; background: rgba(255, 253, 248, .9);
  box-shadow: var(--shadow-card);
}
.dial__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial__ring { fill: none; stroke: rgba(15, 59, 64, .75); stroke-width: 2; }
.dial__ring--in { stroke-width: 1.2; stroke: rgba(15, 59, 64, .3); }
.dial__m { font-family: var(--mono); font-size: 15px; letter-spacing: .1em; fill: rgba(15, 59, 64, .62); text-transform: uppercase; transition: fill .25s; }
.dial__m.is-on { fill: var(--accent); font-weight: 500; }
.dial__tick { stroke: rgba(15, 59, 64, .35); stroke-width: 1.4; }
.dial__hand line { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.dial__hand circle { fill: var(--sun); stroke: var(--accent); stroke-width: 3; }
.dial__face {
  position: absolute; inset: 22%; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: 4px;
  background: var(--sea); color: #fff; box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .35);
}
.dial__month { font-family: var(--display); font-style: italic; font-size: clamp(46px, 6vh, 62px); line-height: .95; }
.dial__isle { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; }
.dial__read { font-size: 12.5px; letter-spacing: .06em; opacity: .92; }
/* the postmark's ring lands exactly on the dial's face (face = 56% of the dial, ring = 92 of the mark's 222 units) */
.weather__mark { position: absolute; left: 19.6%; top: 19.6%; width: 135.1%; color: var(--accent); opacity: 0; pointer-events: none; transform: rotate(-9deg); transform-origin: 22.5% 50%; }
.weather__mark .pm { color: var(--accent); }
.weather__mark .pm__mid { font-size: 25px; }

/* ---------- 04 islands on the desk, 05 combos: the paper slide ---------- */
.slide { position: absolute; left: 0; top: 0; height: 100%; display: flex; z-index: 1; visibility: hidden; will-change: transform; }
.desk { position: relative; flex: 0 0 100vw; height: 100%; overflow: hidden; }
.desk__top { /* the table: the empty desk photo when it's in, warm paper and wood grain until then */
  position: absolute; inset: 0; background-color: #EFE3CF; background-size: cover; background-position: center;
  background-image:
    radial-gradient(120% 90% at 80% 20%, rgba(255, 250, 238, .9), rgba(255, 250, 238, 0) 60%),
    repeating-linear-gradient(90deg, rgba(150, 110, 70, .06) 0 2px, rgba(0, 0, 0, 0) 2px 46px),
    linear-gradient(#F2E6D2, #E8D7BC);
}
.desk__head {
  position: absolute; left: var(--gutter); top: 15vh; width: min(400px, 29vw); z-index: 2; transform: rotate(-1.5deg);
}
.desk__head .h2 { font-size: clamp(46px, 4.8vw, 80px); }
.desk__hint { margin: 26px 0 0; font-size: 16px; color: var(--accent); line-height: 1.6; transform: rotate(-3deg); transform-origin: 0 50%; }
.desk__grid {
  position: absolute; left: calc(var(--gutter) + min(390px, 28vw) + 4vw); right: 5vw; top: 13vh; bottom: 8vh;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4vh 3vw; z-index: 1;
}
.dcell { position: relative; display: grid; place-items: center; }
.dcard {
  position: relative; width: min(100%, calc((100vh * .79 - 4vh) / 2 * 4 / 3)); aspect-ratio: 4 / 3; padding: 10px; background: var(--card);
  box-shadow: var(--shadow-card); cursor: pointer; border: 0; display: block;
  transition: box-shadow .35s ease;
}
.dcard:hover { box-shadow: 0 34px 60px rgba(15, 59, 64, .26), 0 4px 10px rgba(15, 59, 64, .14); }
.dcard__pic { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: #cfe9ea; }
.dcard__pic .slot-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dcard__greet { display: block; position: absolute; left: 16px; bottom: 10px; margin: 0; color: #fff; text-align: left; text-shadow: 0 2px 16px rgba(8, 50, 60, .45); pointer-events: none; z-index: 2; }
.dcard__greet small { display: block; font-family: var(--hand); font-size: 13px; line-height: 1.6; }
.dcard__greet b { display: block; font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(34px, 3.4vw, 56px); line-height: .9; }
.dcard .pstamp { right: -14px; top: -16px; width: 82px; height: 96px; transform: rotate(6deg); z-index: 8; }
.dcard .pstamp__price { font-size: 21px; }
.dcard .pm { position: absolute; right: 40px; top: 48px; width: 96px; transform: rotate(-10deg); z-index: 8; }
.dcard__enter {
  position: absolute; right: 14px; bottom: 12px; z-index: 3; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; padding: 7px 10px; border-radius: 99px; background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.dcard:hover .dcard__enter, .dcard:focus-visible .dcard__enter { opacity: 1; transform: none; }
.slide.is-live .dcard { pointer-events: auto; }
.slide:not(.is-live) .dcard { pointer-events: none; }

/* combos: spreads of postcards joined by a route */
.combo-intro { flex: 0 0 44vw; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 4vw 0 6vw; }
.combo-intro .h2 { font-size: clamp(64px, 8.6vw, 140px); }
.combo-intro__line { margin: 22px 0 0; font-size: 18px; max-width: 32ch; }
.spread { position: relative; flex: 0 0 auto; height: 100%; width: 74vw; }
.spread--hop { width: 92vw; }
.spread__title { position: absolute; left: 3vw; top: 13vh; margin: 0; font-family: var(--display); font-size: clamp(48px, 5vw, 84px); line-height: .95; }
.spread__note { position: absolute; left: 3vw; top: calc(13vh + clamp(48px, 5vw, 84px) + 14px); margin: 0; font-family: var(--hand); font-size: 15px; line-height: 1.7; color: var(--accent); max-width: 28ch; }
.spread__route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
/* only the dotted line gets the ink; the mask path that reveals it keeps its own white stroke */
.spread__route .route-dots { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-dasharray: 1 10; stroke-linecap: round; opacity: .7; }
.scard {
  position: absolute; aspect-ratio: 4 / 3; padding: 9px; background: var(--card); box-shadow: var(--shadow-card); z-index: 2;
}
.scard__pic { position: relative; width: 100%; height: 100%; overflow: hidden; background: #cfe9ea; }
.scard__pic .slot-media { position: absolute; top: 0; left: -8%; width: 116%; height: 100%; object-fit: cover; }
.scard__name { position: absolute; left: 12px; bottom: 8px; margin: 0; font-family: var(--display); font-style: italic; font-size: clamp(26px, 2.4vw, 40px); color: #fff; text-shadow: 0 2px 14px rgba(8, 50, 60, .5); z-index: 2; }
.scard__leg { position: absolute; margin: 0; font-family: var(--hand); font-size: 15px; line-height: 1.5; color: var(--ink); white-space: nowrap; z-index: 3; }
.spread .pstamp { width: 96px; height: 112px; z-index: 6; }
.spread .pstamp__price { font-size: 25px; }
.spread__facts { position: absolute; margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); z-index: 3; }
.combo-end { flex: 0 0 100vw; height: 100%; position: relative; }
.combo-end__slot { position: absolute; left: 50%; top: 50%; width: min(44vw, 92vh); aspect-ratio: 3 / 2; transform: translate(-50%, -50%); }
.combo-end__note {
  position: absolute; left: 50%; top: calc(50% + min(44vw, 92vh) / 3 + 30px); transform: translateX(-50%); margin: 0; width: min(44vw, 92vh);
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
}
.combo-end__note .hand { font-size: 19px; color: var(--accent); }
.combo-end__note .mono { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- stepping into a postcard ---------- */
.peek { position: fixed; inset: 0; z-index: 60; pointer-events: none; visibility: hidden; }
.peek.is-open { pointer-events: auto; }
.peek__card { position: absolute; left: 0; top: 0; width: 100vw; height: 100vh; background: var(--card); overflow: visible; transform-origin: 50% 50%; --pk-b: 0px; }
/* the card's white border is the gap around the picture: it starts as thick as the desk card's and thins to nothing as
   the card fills the screen, and comes back as it lands (Nov 22) */
.peek__media { position: absolute; inset: var(--pk-b); overflow: hidden; }
/* a copy of the desk card's name, stamp and postmark, faded out as the card grows and back in as it lands */
.peek__card .peek__ghost.dcard { position: absolute; inset: 0; width: auto; height: auto; aspect-ratio: auto; padding: var(--pk-b);
  background: none !important; box-shadow: none !important; pointer-events: none; cursor: default; }
.peek__card .peek__ghost .dcard__pic { background: none; }
.peek__media .slot-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.peek__media img.slot-media { animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
.peek__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 50, 60, .5) 0%, rgba(8, 50, 60, .12) 38%, rgba(8, 50, 60, 0) 58%); pointer-events: none; }
.peek__info { position: absolute; left: var(--gutter); bottom: 7vh; right: var(--gutter); color: #fff; text-shadow: 0 2px 20px rgba(8, 50, 60, .35); }
.peek__greet { margin: 0; font-size: clamp(18px, 1.6vw, 26px); }
.peek__name { margin: 6px 0 0; font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(80px, 13vw, 220px); line-height: .82; letter-spacing: -.02em; }
.peek__kind { margin: 10px 0 0; font-family: var(--display); font-size: clamp(24px, 2.4vw, 38px); }
.peek__line { margin: 10px 0 0; font-size: 18px; max-width: 46ch; font-weight: 500; }
.peek__facts { margin: 12px 0 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.peek__btns { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.peek__stamp { position: absolute; right: 6vw; top: 14vh; width: 120px; height: 140px; }
.peek__stamp .pstamp { inset: 0; transform: rotate(6deg); }
.peek__stamp .pstamp__price { font-size: 30px; }

/* ---------- 06 book: the back of a postcard ---------- */
.book {
  position: absolute; inset: 0; z-index: 5; background: var(--paper); display: grid; place-items: center;
  clip-path: circle(0% at 50% 50%); visibility: hidden; padding: 80px var(--gutter) 40px;
}
.book__card {
  position: relative; width: min(1000px, 100%); min-height: 560px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  background: var(--card); padding: 40px 44px; box-shadow: var(--shadow-card);
  transform: rotate(-1deg);
}
.book__message { padding-right: 40px; border-right: 1.5px solid rgba(15, 59, 64, .18); display: flex; flex-direction: column; }
.book__title { font-size: clamp(48px, 5vw, 78px); margin-top: 6px; }
.book__note { margin: 22px 0 0; font-size: 16px; line-height: 1.8; color: var(--accent); max-width: 30ch; }
.book__ctas { margin-top: auto; padding-top: 30px; display: grid; gap: 12px; justify-items: start; }
.book__small { font-size: 11.5px; letter-spacing: .04em; color: var(--muted); }
.book__address { padding-left: 40px; position: relative; display: flex; flex-direction: column; }
.book__stamps { position: relative; height: 150px; }
.book__stamps .pstamp { right: 0; top: 0; width: 112px; height: 132px; transform: rotate(4deg); }
.book__stamps .pstamp__price { font-size: 29px; }
.book__pm { position: absolute; right: 70px; top: 54px; width: 210px; transform: rotate(-9deg); color: var(--ink); }
.field { display: grid; gap: 2px; margin-top: 18px; border-bottom: 1.5px solid rgba(15, 59, 64, .28); padding-bottom: 6px; position: relative; }
.field__k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field__v {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 2px 28px 0 0; margin: 0; cursor: pointer;
  font-family: var(--display); font-style: italic; font-size: 32px; line-height: 1.15; color: var(--ink);
}
.field::after { content: "▾"; position: absolute; right: 4px; bottom: 10px; font-size: 13px; color: var(--accent); pointer-events: none; }
.book__total { margin: 22px 0 0; font-size: 13px; letter-spacing: .06em; color: var(--ink); }
.book__total b { font-family: var(--display); font-style: italic; font-size: 30px; font-weight: 400; color: var(--accent); letter-spacing: 0; }
.book .w { display: inline-block; }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 2; background: var(--ink); color: var(--paper); padding: 90px var(--gutter) 60px; }
.foot__inner { max-width: 1100px; }
.foot__brand { margin: 0; font-family: var(--display); font-style: italic; font-size: 34px; }
.foot__line { margin: 8px 0 0; font-family: var(--display); font-size: clamp(44px, 6vw, 90px); line-height: .95; }
.foot__line em { color: var(--sun); }
.foot__small { margin: 40px 0 0; font-size: 11.5px; line-height: 1.6; letter-spacing: .03em; opacity: .7; max-width: 80ch; }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  /* a phone is tall: the picture (sky, palms, pavilion) fills the top and the words sit on the pale shallows below, in ink.
     JS pans the hero film from the postcard to the pavilion (object-position), and the canvas ends on the same aim. */
  .hero { padding: 13vh var(--gutter) 3.5vh; justify-content: flex-end; color: var(--ink); text-shadow: none; }
  .hero__foot { margin-top: 12px; gap: 14px; }
  .hero__title { font-size: 46px; }
  .hero__title em { text-shadow: none; color: #F0433B; }
  .hero__lede { text-shadow: none; color: var(--ink); }
  .btn--hero { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(8, 45, 80, .2); }
  .screen__veil { background: linear-gradient(to top, rgba(255, 252, 244, .5) 0%, rgba(255, 252, 244, .28) 30%, rgba(255, 252, 244, 0) 48%); }
  .hero__foot { margin-top: 16px; gap: 18px; }
  .hero__lede { font-size: 15px; max-width: 34ch; }
  .hero-stamp-wrap { width: 80px; height: 94px; }
  .hero-pm { width: 94px; left: 62px; top: -21px; }
  .hero-stamp .pstamp { --r: 3px; }
  .hero-stamp .pstamp__price { font-size: 19px; }
  .hero-stamp .pstamp__top, .hero-stamp .pstamp__bot { font-size: 7px; letter-spacing: .04em; white-space: nowrap; }
  .hero-pm { width: 112px; left: 51px; top: -27px; }
  .hero__eyebrow { display: none; }
  .hero-scroll { display: none; }
  .hero-note { top: 70%; font-size: 20px; }
  .sunset { bottom: 12vh; font-size: 52px; }

  .h2 { font-size: 46px; }
  .paper-card { padding: 20px 20px 24px; }
  .paper-card::after { left: 20px; right: 20px; }
  .who__head { top: 84px; left: 14px; right: 14px; width: auto; }
  .who__stamps { gap: 10px; margin-top: 16px; }
  .cast { width: 88px; height: 104px; }
  .cast .people { width: 44px; height: 28px; }
  .cast__name { font-size: 19px; }
  .cast__n { font-size: 9px; }
  .cast__cancel { width: 92px; left: 56px; top: 72px; }
  .who__line { font-size: 14px; margin-top: 14px; }
  .deck { left: 16px; right: 16px; width: auto; bottom: 22px; height: 220px; }
  .deck__title { top: -32px; font-size: 16px; }
  .pkg { width: 168px; padding: 6px 6px 9px; }
  .pkg__title { font-size: 18px; margin-top: 7px; }
  .pkg__note { font-size: 10px; }
  .pkg__facts { font-size: 8.5px; margin-top: 5px; }
  .pkg .pstamp { width: 58px; height: 70px; right: -8px; top: -10px; --r: 2.8px; }
  .pkg .pstamp__price { font-size: 14px; }
  .pkg .pstamp__top, .pkg .pstamp__bot { font-size: 7px; }
  .pkg .pm { display: none; }
  .pkg .slot-label .l, .dcard .slot-label .l, .scard .slot-label .l { display: none; }
  .pkg .slot-label .s, .dcard .slot-label .s, .scard .slot-label .s { display: inline; }

  .weather__head { top: 84px; left: 14px; right: 14px; width: auto; }
  .weather__line { font-size: 15px; margin-top: 12px; }
  .dial { right: auto; left: 50%; top: auto; bottom: 30px; width: 270px; transform: translateX(-50%); }
  .dial__m { font-size: 17px; }
  .dial__read, .dial__isle { font-size: 10.5px; }

  .desk__head { top: 74px; left: 14px; right: 14px; width: auto; padding: 16px 18px 18px; }
  .desk__head .h2 { font-size: 32px; }
  .desk__head .label { margin-bottom: 8px; }
  .desk__hint { margin-top: 10px; font-size: 13px; }
  .desk__grid { left: 12px; right: 12px; top: 268px; bottom: auto; height: 300px; gap: 22px 16px; }
  .dcard { padding: 6px; width: 100%; }
  .dcard__greet { left: 8px; bottom: 5px; }
  .dcard__greet small { font-size: 9px; }
  .dcard__greet b { font-size: 26px; }
  .dcard .pstamp { width: 50px; height: 60px; right: -8px; top: -10px; --r: 2.6px; }
  .dcard .pstamp__price { font-size: 13px; }
  .dcard .pstamp__top, .dcard .pstamp__bot { font-size: 6.5px; }
  .dcard .pm { width: 58px; right: 26px; top: 26px; }
  .dcard__enter { display: none; }

  .combo-intro { flex-basis: 100vw; padding: 0 var(--gutter); }
  .combo-intro .h2 { font-size: 72px; }
  .combo-intro__line { font-size: 16px; }
  .spread { width: 100vw; }
  .spread--hop { width: 130vw; }
  .spread__title { top: 92px; left: var(--gutter); font-size: 46px; }
  .spread__note { top: 150px; left: var(--gutter); font-size: 12px; }
  .scard__name { font-size: 24px; }
  .scard__leg { font-size: 12px; }
  .spread .pstamp { width: 66px; height: 78px; --r: 3px; }
  .spread .pstamp__price { font-size: 16px; }
  .spread__facts { font-size: 10px; }
  .combo-end__slot { width: 80vw; aspect-ratio: 4 / 5; top: 46%; }
  .combo-end__note { width: 80vw; top: calc(46% + 50vw + 22px); flex-direction: column; gap: 4px; }
  .combo-end__note .hand { font-size: 15px; }

  .peek__name { font-size: 76px; }
  .peek__line { font-size: 15px; }
  .peek__stamp { width: 80px; height: 96px; right: 18px; top: 80px; }
  .peek__stamp .pstamp__price { font-size: 19px; }
  .peek__info { bottom: 5vh; }

  .book { padding: 66px 12px 14px; }
  .book__card { display: flex; flex-direction: column; min-height: 0; padding: 22px 20px 20px; transform: rotate(-.6deg); }
  .book__message { display: contents; }
  .book__title { font-size: 42px; padding-right: 74px; margin-top: 34px; }
  .book__note { font-size: 13px; margin-top: 12px; }
  .book__address { order: 4; position: static; padding: 0; margin-top: 12px; border-top: 1.5px solid rgba(15, 59, 64, .18); }
  .book__ctas { order: 5; margin-top: 0; padding-top: 20px; }
  .book__stamps { position: absolute; right: 12px; top: 14px; width: 80px; height: 96px; }
  .book__stamps .pstamp { width: 74px; height: 88px; right: 0; top: 0; --r: 3px; }
  .book__stamps .pstamp__price { font-size: 18px; }
  .book__stamps .pstamp__top, .book__stamps .pstamp__bot { font-size: 7.5px; }
  .book__pm { width: 104px; right: 88px; top: 10px; }
  .field { margin-top: 10px; }
  .field__v { font-size: 25px; }
  .book__total { margin-top: 14px; }
  .book__total b { font-size: 25px; }
}
