/* LoversSwitzerland: the home page sections, in the order they appear.
   Shared pieces (font, colours, buttons, cards, top bar, footer) are in site.css, and so are
   sections 5, 6 and 8 (postcards, messages, the offer) and the snow, which other pages use too. */

/* ---------- 1. the first scene ---------- */
.hero { position: relative; overflow: hidden; padding: 80px 0 112px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 600px; gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero h1 { margin-top: 28px; font-size: 64px; line-height: 1.08; font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; }
.hero-lead { margin-top: 32px; font-size: 21px; line-height: 1.35; font-weight: 700; }
.hero-text { margin-top: 12px; font-size: 19px; line-height: 1.55; color: var(--text); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.hero-deal { display: flex; align-items: center; gap: 8px; margin-top: 28px; font-size: 16px; font-weight: 600; color: var(--text); }
.hero-deal .ico, .pill .ico { color: var(--red); }
.scene { justify-self: center; }

/* ---------- the package scene (PackageScene.astro), exactly as approved on the canvas ---------- */
/* first scene: the full package. The map finds a place, the Codex opens on its two pages, the Travel Scripts open on its day.
   One 18-second loop. Each book opens like a real book: the cover swings over and becomes a bright left page.
   One book is open at a time; the parts that are resting sit under a light paper veil. */
.pk { position: relative; width: 600px; height: 670px; }
.pk-wires { position: absolute; left: 0; top: 0; width: 600px; height: 670px; overflow: visible; pointer-events: none; z-index: 1; }
.pk-wire { fill: none; stroke: #17130E; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: .5 7; }
.pk-dot { position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: #D91A24; border: 1px solid var(--line); offset-rotate: 0deg; opacity: 0; z-index: 7; animation: pkride 18s infinite; }
.pk-dot.d2 { animation-name: pkride2; }
@keyframes pkride {
  0%, 20.89% { offset-distance: 0%; opacity: 0; }
  21.33% { offset-distance: 0%; opacity: 1; animation-timing-function: cubic-bezier(.65,0,.35,1); }
  25.33% { offset-distance: 100%; opacity: 1; }
  26.22%, 100% { offset-distance: 100%; opacity: 0; }
}
@keyframes pkride2 {
  0%, 55.11% { offset-distance: 0%; opacity: 0; }
  55.56% { offset-distance: 0%; opacity: 1; animation-timing-function: cubic-bezier(.65,0,.35,1); }
  59.44% { offset-distance: 100%; opacity: 1; }
  60.33%, 100% { offset-distance: 100%; opacity: 0; }
}

/* the three steps, lit in turn */
.pk-pill { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: #FFFDF7; color: #17130E; box-shadow: 0 6px 16px -8px rgba(23, 19, 14, .28); font-size: 15px; font-weight: 700; white-space: nowrap; z-index: 8; animation: 18s infinite; }
.pk-pill b { width: 26px; height: 26px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-size: 13px; }
.pl1 { animation-name: pl1; } .pl2 { animation-name: pl2; } .pl3 { animation-name: pl3; }
@keyframes pl1 {
  0%, 25.00% { background: #D91A24; color: #FFFFFF; }
  26.39%, 96.11% { background: #FFFDF7; color: #17130E; }
  97.50%, 100% { background: #D91A24; color: #FFFFFF; }
}
@keyframes pl2 {
  0%, 25.00% { background: #FFFDF7; color: #17130E; }
  26.39%, 55.00% { background: #D91A24; color: #FFFFFF; }
  56.39%, 100% { background: #FFFDF7; color: #17130E; }
}
@keyframes pl3 {
  0%, 58.89% { background: #FFFDF7; color: #17130E; }
  60.28%, 93.33% { background: #D91A24; color: #FFFFFF; }
  94.72%, 100% { background: #FFFDF7; color: #17130E; }
}

/* the light paper veil over the parts that are resting */
.pk-veil { position: absolute; inset: -3px; border-radius: inherit; background: #F7F3EC; opacity: 0; pointer-events: none; z-index: 9; animation: 18s infinite; }
.v1 { animation-name: v1; } .v2 { animation-name: v2; } .v3 { animation-name: v3; }
@keyframes v1 {
  0%, 25.00% { opacity: 0; }
  27.78%, 96.11% { opacity: .4; }
  98.33%, 100% { opacity: 0; }
}
@keyframes v2 {
  0%, 23.89% { opacity: .4; }
  25.56%, 56.11% { opacity: 0; }
  58.33%, 100% { opacity: .4; }
}
@keyframes v3 {
  0%, 58.61% { opacity: .4; }
  60.00%, 96.67% { opacity: 0; }
  98.89%, 100% { opacity: .4; }
}

/* 1. the phone */
.pk-phone { position: absolute; left: 0; top: 50px; width: 236px; height: 440px; padding: 7px; border: 1px solid var(--line); border-radius: 36px; background: #17130E; box-shadow: 0 18px 40px -22px rgba(23, 19, 14, .35); transform: rotate(-4deg); z-index: 3; }
.pk-screen { position: relative; width: 100%; height: 100%; border-radius: 29px; overflow: hidden; background: #F7F3EC; }
.pk-notch { position: absolute; top: 8px; left: 50%; width: 70px; height: 18px; margin-left: -35px; border-radius: 10px; background: #17130E; }
.pk-t1 { margin: 0; padding: 36px 12px 0; font-size: 16px; font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; }
.pk-t2 { margin: 0; padding: 0 12px; font-size: 11px; font-weight: 600; color: #6B6258; }
.pk-map { position: absolute; left: 10px; top: 78px; width: 196px; height: auto; }
.pk-map .ch-land { fill: #FFFDF7; stroke: #17130E; stroke-width: 5; stroke-linejoin: round; }
.pk-map .ch-lakes { fill: #CFDDE2; }
.pk-map .ch-dots circle { fill: #D91A24; transform-box: fill-box; transform-origin: center; animation: pkdot .45s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes pkdot {
  from { transform: scale(0); }
}
.pk-you { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #D91A24; border: 3px solid #FFFDF7; box-shadow: 0 0 0 2px #17130E; }
.pk-ring { position: absolute; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; border: 3px solid #D91A24; opacity: 0; animation: pkring 18s infinite; }
@keyframes pkring {
  0%, 7.11% { opacity: 0; transform: scale(.2); }
  8.00% { opacity: 1; transform: scale(.2); }
  11.56%, 100% { opacity: 0; transform: scale(1.2); }
}
.pk-sheet { position: absolute; left: 8px; right: 8px; bottom: 10px; padding: 8px; background: #FFFDF7; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 16px -8px rgba(23, 19, 14, .28); transform: translateY(115%); animation: pksheet 18s infinite; }
@keyframes pksheet {
  0%, 12.00% { transform: translateY(115%); animation-timing-function: cubic-bezier(.2,.8,.2,1); }
  15.11%, 93.89% { transform: translateY(0); animation-timing-function: cubic-bezier(.6,0,.8,.2); }
  97.22%, 100% { transform: translateY(115%); }
}
.pk-sheet img { display: block; width: 100%; height: 92px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); }
.pk-s1 { margin: 8px 2px 0; font-size: 15px; font-weight: 700; }
.pk-s2 { margin: 0 2px; font-size: 11px; font-weight: 600; color: #6B6258; }
.pk-open { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; height: 34px; border-radius: 9px; background: #D91A24; color: #FFFFFF; border: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.pk-tap { position: absolute; left: 108px; top: 385px; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: rgba(23,19,14,.3); border: 2px solid rgba(255,253,247,.9); opacity: 0; animation: pktap 18s infinite; }
@keyframes pktap {
  0%, 17.78% { opacity: 0; transform: scale(1.4); }
  18.89% { opacity: 1; transform: scale(1); }
  20.00% { opacity: 1; transform: scale(.72); }
  21.11% { opacity: 1; transform: scale(1); }
  22.22%, 100% { opacity: 0; transform: scale(1); }
}

/* 2 and 3. the two books. The real page lies on the right with its page edges showing; the cover is a leaf
   that swings over on its left edge, and its back is the bright, readable left page. */
.pk-book { position: absolute; border-radius: 4px 8px 8px 4px; perspective: 1400px; }
.pk-codex { left: 356px; top: 50px; width: 228px; height: 322px; transform: rotate(3deg); z-index: 2; animation: pkz2 18s infinite step-end; }
@keyframes pkz2 {
  0% { z-index: 2; }
  24.44% { z-index: 5; }
  56.39% { z-index: 2; }
}
.pk-scripts { left: 330px; top: 322px; width: 204px; height: 288px; transform: rotate(-3deg); z-index: 4; }
.pk-page { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line); border-radius: inherit; display: block;
  box-shadow: 0 18px 40px -22px rgba(23, 19, 14, .35); }
.pk-leaf { position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d; z-index: 3; animation: 18s infinite; }
.lf1 { animation-name: lf1; } .lf2 { animation-name: lf2; }
@keyframes lf1 {
  0%, 25.56% { transform: rotateY(0); animation-timing-function: cubic-bezier(.6,0,.3,1); }
  30.56%, 51.11% { transform: rotateY(-180deg); animation-timing-function: cubic-bezier(.6,0,.3,1); }
  56.11%, 100% { transform: rotateY(0); }
}
@keyframes lf2 {
  0%, 59.72% { transform: rotateY(0); animation-timing-function: cubic-bezier(.6,0,.3,1); }
  64.72%, 92.22% { transform: rotateY(-180deg); animation-timing-function: cubic-bezier(.6,0,.3,1); }
  97.22%, 100% { transform: rotateY(0); }
}
.pk-front { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border: 1px solid var(--line); border-radius: 4px 8px 8px 4px; backface-visibility: hidden; }
.pk-back { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; padding: 10px; overflow: hidden; background: #FFFDF7; border: 1px solid var(--line); border-radius: 8px 4px 4px 8px; transform: rotateY(180deg); backface-visibility: hidden;
  box-shadow: 0 18px 40px -22px rgba(23, 19, 14, .35); }
.pk-ph { position: relative; flex: none; height: 84px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.pk-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pk-pin { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 999px; background: #D91A24; color: #FFFFFF; border: 1px solid var(--line); font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.pk-k { font-size: 9px; font-weight: 700; letter-spacing: .16em; color: #D91A24; }
.pk-h { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; }
.pk-p { margin: 0; font-size: 10.5px; line-height: 1.35; color: #3B342B; }
.pk-facts { display: grid; gap: 2px; }
.pk-f { display: grid; grid-template-columns: 64px 1fr; gap: 6px; padding: 4px 6px; border-radius: 6px; font-size: 10.5px; line-height: 1.3; animation: 18s infinite; }
.pk-f b { font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #D91A24; padding-top: 1px; }
.mk1 { animation-name: mk1; } .mk2 { animation-name: mk2; } .mk3 { animation-name: mk3; }
@keyframes mk1 { 0%, 31.11% { background-color: rgba(251,227,225,0); box-shadow: inset 0 0 0 #D91A24; } 32.22%, 38.06% { background-color: #FBE3E1; box-shadow: inset 3px 0 0 #D91A24; } 39.44%, 100% { background-color: rgba(251,227,225,0); box-shadow: inset 0 0 0 #D91A24; } }
@keyframes mk2 { 0%, 37.78% { background-color: rgba(251,227,225,0); box-shadow: inset 0 0 0 #D91A24; } 38.89%, 44.72% { background-color: #FBE3E1; box-shadow: inset 3px 0 0 #D91A24; } 46.11%, 100% { background-color: rgba(251,227,225,0); box-shadow: inset 0 0 0 #D91A24; } }
@keyframes mk3 { 0%, 44.44% { background-color: rgba(251,227,225,0); box-shadow: inset 0 0 0 #D91A24; } 45.56%, 50.83% { background-color: #FBE3E1; box-shadow: inset 3px 0 0 #D91A24; } 52.22%, 100% { background-color: rgba(251,227,225,0); box-shadow: inset 0 0 0 #D91A24; } }
.pk-times { display: grid; gap: 1px; margin-top: 2px; }
.pk-r { display: grid; grid-template-columns: 34px 1fr; gap: 6px; padding: 3px 6px; border-radius: 6px; font-size: 10.5px; line-height: 1.3; animation: 18s infinite; }
.pk-r b { color: #D91A24; font-weight: 700; }
.r1 { animation-name: r1; } .r2 { animation-name: r2; } .r3 { animation-name: r3; } .r4 { animation-name: r4; } .r5 { animation-name: r5; }
@keyframes r1 { 0%, 65.56% { background-color: rgba(251,227,225,0); box-shadow: inset 0 0 0 #D91A24; } 66.67%, 70.00% { background-color: #FBE3E1; box-shadow: inset 3px 0 0 #D91A24; } 71.39%, 100% { background-color: rgba(251,227,225,0); box-shadow: inset 0 0 0 #D91A24; } }
@keyframes r2 { 0%, 69.17% { background-color: rgba(251,227,225,0); box-shadow: inset 0 0 0 #D91A24; } 70.28%, 73.61% { background-color: #FBE3E1; box-shadow: inset 3px 0 0 #D91A24; } 75.00%, 100% { background-color: rgba(251,227,225,0); box-shadow: inset 0 0 0 #D91A24; } }
@keyframes r3 { 0%, 72.78% { background-color: rgba(251,227,225,0); box-shadow: inset 0 0 0 #D91A24; } 73.89%, 77.22% { background-color: #FBE3E1; box-shadow: inset 3px 0 0 #D91A24; } 78.61%, 100% { background-color: rgba(251,227,225,0); box-shadow: inset 0 0 0 #D91A24; } }
@keyframes r4 { 0%, 76.39% { background-color: rgba(251,227,225,0); box-shadow: inset 0 0 0 #D91A24; } 77.50%, 80.83% { background-color: #FBE3E1; box-shadow: inset 3px 0 0 #D91A24; } 82.22%, 100% { background-color: rgba(251,227,225,0); box-shadow: inset 0 0 0 #D91A24; } }
@keyframes r5 { 0%, 80.00% { background-color: rgba(251,227,225,0); box-shadow: inset 0 0 0 #D91A24; } 81.11%, 84.44% { background-color: #FBE3E1; box-shadow: inset 3px 0 0 #D91A24; } 85.83%, 100% { background-color: rgba(251,227,225,0); box-shadow: inset 0 0 0 #D91A24; } }
.pk-planb { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 4px; padding: 5px 9px; border-radius: 8px; background: #D91A24; color: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 6px 16px -8px rgba(23, 19, 14, .28); font-size: 11px; font-weight: 700; line-height: 1.2; white-space: nowrap; transform-origin: left center; animation: pkplanb 18s infinite; }
.pk-planb small { display: block; font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
@keyframes pkplanb {
  0%, 84.72% { opacity: 0; transform: scale(.7); }
  86.39%, 97.22% { opacity: 1; transform: scale(1); animation-timing-function: step-end; }
  97.50%, 100% { opacity: 0; transform: scale(.7); }
}

.pl1 { left: 0; top: 0; }
.pl2 { left: 356px; top: 0; }
.pl3 { left: 330px; top: 632px; }
.pk-h-sm { font-size: 18px; }
.pk-planb svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }

/* ---------- 2. the moving tape: the six facts, tilted ---------- */
.tape-sec { position: relative; overflow: hidden; padding: 24px 0 44px; }
.tape { width: 112%; margin-left: -6%; transform: none; background: var(--red); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; overflow: hidden; }
.track { display: flex; width: max-content; animation: slide 40s linear infinite; }
.tgroup { display: flex; flex: none; }
.titem { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-size: 22px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #FFFFFF; white-space: nowrap; }
.titem svg { width: 30px; height: 22px; flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 3. the three parts ---------- */
.parts { padding-top: 76px; border-top: 0; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.part { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.part .tag { align-self: flex-start; }
.part h3 { margin-top: 4px; font-size: 28px; line-height: 1.1; font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; }
.part p { font-size: 17px; color: var(--text); }
.part-pic { height: 250px; display: grid; place-items: center; }
.part-pic .cover { height: 230px; width: auto; border-radius: 4px; border: var(--edge); box-shadow: 0 18px 40px -22px rgba(23, 19, 14, .35); }
.part-num { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 2px solid rgba(23, 19, 14, .14); }
.part-num b { font-size: 44px; font-weight: 700; color: var(--red); letter-spacing: -0.01em; line-height: 1; }
.part-num span { font-size: 15px; font-weight: 600; color: var(--muted); }

/* ---------- 4. a ready day, read like a ticket ---------- */
.ticket { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); overflow: hidden; }
.ticket-day { padding: 40px; background: var(--paper); border-right: 1px dashed var(--line); }
.ticket-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: var(--muted); }
.stops { list-style: none; margin-top: 28px; padding: 0 0 0 30px; position: relative; display: flex; flex-direction: column; gap: 18px; }
.stops::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 3px; background: var(--red); }
.stops li { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; font-size: 17px; font-weight: 600; }
.stops li::before { content: ""; position: absolute; left: -30px; top: 5px; width: 17px; height: 17px; border-radius: 50%; background: var(--red); border: 3px solid var(--card); box-shadow: 0 0 0 2px var(--ink); }
.stops li.end::before { background: var(--ink); }
.stops time { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stops li.planb { padding: 12px 14px; margin-left: -14px; border-radius: 6px; background: var(--red-tint); border: var(--edge); }
.stops li.planb::before { left: -16px; top: 17px; background: var(--card); border-color: var(--red); box-shadow: none; }
.stops li.planb time { color: var(--red-deep); }
.ticket-photo { position: relative; min-height: 520px; }
.ticket-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.ticket-train { position: absolute; left: 20px; top: 20px; display: inline-flex; gap: 8px; align-items: center; padding: 9px 12px; border-radius: 10px; background: var(--card); border: var(--edge); font-size: 13px; font-weight: 600; }
.ticket-train b { background: var(--red); color: #FFFFFF; padding: 2px 7px; border-radius: 5px; }

/* ---------- 7. since 2019: a red band under a mountain edge, the year rolling across it ---------- */
.since { position: relative; background: var(--red); color: #FFFFFF; padding: 32px 0 var(--sec); }
.mq { overflow: hidden; padding-bottom: 48px; }
.mq .track { animation-duration: 60s; }
.mitem { display: inline-flex; align-items: center; gap: 44px; padding-right: 44px; font-size: 150px; line-height: 1.05; font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; text-transform: uppercase; color: #FFFFFF; white-space: nowrap; }
.mitem svg { width: 150px; height: 110px; flex: none; }
.two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.since .h2 { font-size: 48px; }
.since-text { font-size: 20px; line-height: 1.55; }
.since .btn { margin-top: 28px; }

/* ---------- sizes ---------- */
@media (max-width: 1300px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 510px; }
  .pk { zoom: .85; }
}
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .pk { zoom: 1; }
}
@media (max-width: 860px) {
  .hero { padding: 28px 0 56px; }
  .hero h1 { margin-top: 20px; font-size: 38px; line-height: 1.12; letter-spacing: -0.01em; }
  .hero-lead { margin-top: 20px; font-size: 18px; }
  .hero-text { margin-top: 8px; font-size: 16px; }
  .hero-ctas { flex-direction: column; align-self: stretch; gap: 14px; margin-top: 22px; }
  .hero-deal { margin-top: 18px; font-size: 15px; }
  .titem { font-size: 17px; }
  .mitem { font-size: 88px; }
  .mitem svg { width: 88px; height: 64px; }
  .three, .two, .ticket { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .parts { padding-top: 48px; }
  .ticket-day { padding: 24px 20px; border-right: 0; border-bottom: 1px dashed var(--line); }
  .ticket-photo { min-height: 260px; }
  .stops li { grid-template-columns: 56px minmax(0, 1fr); font-size: 16px; }
  .stops time { font-size: 18px; }
  .since .h2 { font-size: 34px; }
  .since-text { font-size: 18px; }
}
/* phones: the scene gets its own layout. The open book now covers the resting phone, so the pages can be bigger. */
@media (max-width: 640px) {
  .pk { width: 460px; height: 664px; zoom: .76; }
  .pk-wires, .pk-dot { display: none; }
  .pk-codex { left: 232px; }
  .pk-scripts { left: 246px; top: 322px; }
  .pl2 { left: 232px; }
  .pl3 { left: 246px; top: 622px; }
}
@media (min-width: 521px) and (max-width: 640px) { .pk { zoom: 1; } }
@media (max-width: 374px) { .pk { zoom: .68; } }
