/* Landing page */
body.home { background: #fff; }

/* ── hero (fixed behind the scrolling sheet) ── */
.hero {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background: #a9c0e3 url(../assets/ui/sky-blur-landing.jpg) center 40% / cover no-repeat;
  --tk: 1;
}
.hero__stack {
  position: absolute; left: 50%; top: calc(clamp(96px, 27vh, 300px) / var(--z)); z-index: 2; transform: translateX(-50%); zoom: var(--z);
  width: 768px; display: flex; flex-direction: column; align-items: center; gap: 38px;
  will-change: transform, opacity;
}
.hero__line {
  font-size: 18px; letter-spacing: -0.04em; color: rgba(78, 48, 19, 0.72); white-space: nowrap; line-height: 1.25;
}
.hero__line .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.1em 0.12em; margin: 0 -0.1em -0.12em; }
.hero__line .w > span { display: inline-block; }
.home.is-intro .hero__line .w > span { transform: translateY(115%); }
.home.is-intro .ticket-fly { opacity: 0; }

/* ── boarding pass ── */
.ticket-stage { width: 768px; height: 296px; transform: scale(var(--tk)); transform-origin: 50% 0; margin-bottom: calc((var(--tk) - 1) * 296px); }
.ticket-tilt { perspective: 1700px; transform-style: preserve-3d; }
.ticket {
  position: relative; display: block; width: 768px; height: 296px; padding: 0; border-radius: 26px;
  transform-style: preserve-3d; transition: transform 1.2s var(--ease-io); cursor: pointer; text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.ticket.is-flipped { transform: rotateY(180deg); }
.ticket:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.9); outline-offset: 8px; border-radius: 30px; }
.ticket__face { position: absolute; inset: 0; display: block; border-radius: 26px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.ticket__face img { position: absolute; max-width: none; left: -38.5px; top: -8.5px; width: 821px; height: 349px; pointer-events: none; }
.ticket__face--back { transform: rotateY(180deg); }
.ticket__face--back img { left: -39px; top: -10px; width: 822px; height: 351px; }
.ticket__shine {
  position: absolute; inset: 0; border-radius: 26px; pointer-events: none; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, 0.5), transparent 62%);
  mix-blend-mode: soft-light;
}
.ticket:hover .ticket__shine { opacity: 1; }

/* ── sheet ── */
.hero-spacer { height: 100vh; height: 100svh; }
.sheet {
  position: relative; z-index: 2; zoom: var(--z);
  background: #fff; border-radius: 36px 36px 0 0; box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06);
  padding: 63px var(--gutter) 130px;
}
.work-anchor { position: absolute; top: -20px; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 645px)); gap: 60px; justify-content: center; max-width: 1350px; margin: 0 auto; }

.card {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 645 / 383;
  padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: #f6f6f6;
  box-shadow: -8px 7px 17.6px rgba(0, 0, 0, 0.05);
  transition: transform 0.7s var(--ease-out), box-shadow 0.6s var(--ease-out);
  isolation: isolate;
}
.card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 20px; z-index: -1; transition: transform 1.1s var(--ease-out); }
.card:hover { box-shadow: -8px 10px 22px rgba(0, 0, 0, 0.1); transform: translateY(-3px); }
.card:hover > img { transform: scale(1.02); }
.card { overflow: hidden; }
.card__pill {
  align-self: flex-start; padding: 8px 16px; border-radius: 39px; background: #fff; border: 1px solid #dfdfdf;
  font-size: 16px; font-weight: 500; letter-spacing: -0.02em; color: #4e4e4e; white-space: nowrap;
  filter: drop-shadow(-4px 6px 5px rgba(0, 0, 0, 0.03)); transition: transform 0.6s var(--spring), background 0.3s;
}
.card__pill i { font-style: normal; color: #808080; }
.card:hover .card__pill { transform: translateY(-3px); background: #f3f3f3; }
.card__go {
  position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.85); border: 1px solid #e5e5e5; font-size: 18px; color: #4e4e4e;
  opacity: 0; transform: translate(-6px, 6px) scale(0.85); transition: opacity 0.4s, transform 0.6s var(--spring);
}
.card:hover .card__go { opacity: 1; transform: none; }
.card--game { padding: 0; overflow: visible; background: transparent; border: 0; box-shadow: none; transform: none; }
.card--game:hover { transform: none; box-shadow: none; }

@media (max-width: 900px) {
  .work-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sheet { padding-top: 44px; border-radius: 28px 28px 0 0; }
  .card__pill { font-size: 14px; padding: 7px 13px; }
  .card__go { opacity: 1; transform: none; }
}
@media (max-width: 720px) {
  .hero__stack { top: calc(clamp(88px, 22vh, 180px) / var(--z)); }
}
