/* The home page: one quiet page in six bands. A heading and one line each, big type and room around it. Motion, at most
   one per band, moves transform and opacity only (and the stamps inside their canvases); under prefers-reduced-motion every
   band is still. */

.line { margin: 22px 0 0; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; color: var(--text); max-width: 30em; }
.band { padding: clamp(110px, 15vw, 210px) 0; }
.center { display: grid; justify-items: center; text-align: center; }
.center .line { margin-inline: auto; }
.band h2.display { font-size: clamp(42px, 5.6vw, 88px); line-height: 1.02; max-width: 13em; }

/* ---------- 1. The passport ---------- */
.hero { padding: clamp(28px, 4vw, 48px) 0 clamp(80px, 10vw, 150px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; min-height: min(780px, calc(100svh - 60px)); }
.hero-copy { align-self: stretch; display: grid; align-content: center; justify-items: start; position: relative; padding-top: 64px; }
.mark { position: absolute; top: 0; left: 0; height: 30px; width: auto; }
.hero h1 { font-size: clamp(48px, 5vw, 78px); line-height: 1.0; max-width: 9.4em; }
.hero .line { margin-bottom: 36px; max-width: 22em; }

.passport { --pw: clamp(240px, 21vw, 310px); position: relative; justify-self: center; display: grid; grid-template-columns: var(--pw) var(--pw); transform: rotate(-1.5deg); }
.passport .inside, .passport .page { aspect-ratio: 0.706; position: relative; }
.passport .inside { border-radius: 14px 3px 3px 14px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 10%, rgb(255 255 255 / 0.09), transparent 60%), var(--navy);
  box-shadow: inset -14px 0 20px -14px rgb(0 0 0 / 0.55), 0 40px 60px -34px rgb(19 32 59 / 0.6); }
.passport .inside::before { content: ""; position: absolute; width: 150%; aspect-ratio: 1; left: -25%; top: -6%; background: url("../img/rosette-foil.svg") center / contain no-repeat; opacity: 0.18; }
.passport .crest { position: relative; width: 24%; color: var(--foil); }
.passport .page { border-radius: 3px 14px 14px 3px; overflow: hidden; background-color: #F9F6EF; background-image: url("../img/print-waves.svg"); background-size: 300px 300px;
  box-shadow: inset 14px 0 18px -14px rgb(43 47 58 / 0.42), 0 40px 60px -34px rgb(27 42 74 / 0.55), 0 0 0 1px rgb(43 47 58 / 0.07); }
.page-head, .page-no { position: absolute; left: 0; right: 0; text-align: center; font: 600 11px/1 var(--sans); letter-spacing: 0.32em; color: var(--print); }
.page-head { top: 6.5%; }
.page-no { bottom: 4.5%; font: 400 12px/1 var(--mono); letter-spacing: 0.1em; }
.page canvas, .page .fallback, .row canvas, .row .fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.fallback img { position: absolute; width: var(--w); left: var(--x); top: var(--y); transform: translate(-50%, -50%) rotate(var(--r)); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 56px; }
  .hero-copy { padding-top: 76px; }
  .hero .line { margin-bottom: 28px; }
  .passport { --pw: min(76vw, 340px); grid-template-columns: var(--pw); }
  .passport .inside { display: none; }
}

/* ---------- 2. The idea, and 4. films: a phone beside one line ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 8vw, 140px); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.phone { margin: 0; justify-self: center; width: min(100%, 330px); aspect-ratio: 0.46; border-radius: 46px; overflow: hidden; background: var(--midnight);
  box-shadow: 0 0 0 9px #101018, 0 0 0 10px #2C2C35, 0 50px 80px -40px rgb(19 32 59 / 0.7); }
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; }
.phone.film { aspect-ratio: 9 / 16; border-radius: 34px; }
.film video { background: var(--midnight); }
@media (max-width: 760px) {
  .split, .split.flip { grid-template-columns: 1fr; gap: 56px; }
  .split .words { order: -1; }
  .phone { width: min(70vw, 300px); }
}

/* ---------- 3. Rarer places shine ---------- */
.finishes { background: var(--midnight); color: rgb(247 243 234 / 0.88); }
.finishes .display { color: var(--paper); }
.finishes .line { color: rgb(247 243 234 / 0.86); }
.row { position: relative; width: min(100% - 2 * var(--gutter), 1180px); margin: clamp(56px, 7vw, 96px) auto 0; aspect-ratio: 4.3; touch-action: pan-y; }
@media (max-width: 760px) { .row { aspect-ratio: 1.3; } }

/* ---------- 5. Private by design ---------- */
.private .quiet-link { margin-top: 26px; font-size: 16px; font-weight: 600; color: var(--ink-blue); text-underline-offset: 4px; }

/* ---------- 6. The back cover ---------- */
.back { background: var(--navy); color: rgb(247 243 234 / 0.9); padding-bottom: 0; overflow: hidden; position: relative; }
.back::before { content: ""; position: absolute; width: min(1000px, 150vw); aspect-ratio: 1; left: 50%; top: 44%; transform: translate(-50%, -50%);
  background: url("../img/rosette-foil.svg") center / contain no-repeat; opacity: 0.1; pointer-events: none; }
.back .wrap { position: relative; }
.back .crest { width: 64px; height: 64px; color: var(--foil); margin-bottom: 30px; }
.back .display { color: var(--paper); }
.back .ctas { justify-content: center; margin-top: 44px; }
.back .foot-line { margin-top: clamp(110px, 14vw, 180px); background: transparent; }
