/* Cover — kinetic editorial (2026-10-18). The miniature check-in hall sits in a slanted mask; the name,
   a slanted role band and two cut tickets carry the left. --edge follows the name's size so the name,
   copy and tickets always keep clear of the image and its brass rule. */
.entry {
  --name: clamp(56px, 8.2vw, 140px);
  --edge: max(42%, calc(6vw + var(--name) * 4.6 + 110px));
  --snap: cubic-bezier(.2, 1.4, .4, 1);
  --wipe: cubic-bezier(.7, 0, .2, 1);
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background: var(--porcelain);
}

.entry__vista {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 var(--edge);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.entry__vista img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }

.entry__rule {
  position: absolute;
  z-index: 2;
  top: 0;
  left: calc(var(--edge) - 16px);
  width: calc(100% - var(--edge));
  height: 100%;
  overflow: visible;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  animation: cover-draw .7s .35s var(--wipe) forwards;
}
.entry__rule line { stroke: var(--brass); stroke-width: 2; }
@keyframes cover-draw { to { clip-path: inset(0 0 0 0); } }

/* Oversized outlined numeral, cropped by the page edge. */
.entry__ghost {
  position: absolute;
  z-index: 0;
  left: -2vw;
  bottom: -14vw;
  font: 400 46vw/.8 var(--serif);
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--brass) 45%, transparent);
  pointer-events: none;
  user-select: none;
}

.entry__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: calc(var(--header-height) + 1.5rem) 0 3rem clamp(1.25rem, 6vw, 6rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 0;
  color: #80673f;
  font: 700 .7rem/1.4 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 2.6rem; height: 2px; background: var(--brass); }

.entry h1 {
  margin: 1.35rem 0 0;
  font: 400 var(--name)/.86 var(--serif);
  letter-spacing: -.035em;
  white-space: nowrap;
}
/* Each word masks its letters as they rise; the extra bottom room keeps the g's descender whole. */
.entry h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .04em .24em; margin: 0 -.04em -.18em; }
.entry h1 .c { display: inline-block; translate: 0 130%; rotate: 8deg; animation: cover-rise .62s var(--snap) forwards; animation-delay: calc(var(--i) * 38ms + 120ms); }
@keyframes cover-rise { to { translate: 0 0; rotate: 0deg; } }
/* The nickname is a quiet aside to the given name, not part of the headline's weight. */
.entry h1 .nick {
  display: inline-block;
  margin-left: .22em;
  font-size: .3em;
  font-style: italic;
  letter-spacing: .01em;
  vertical-align: .9em;
  color: #80673f;
  opacity: 0;
  animation: cover-fade .5s .55s ease forwards;
}

.entry__identity {
  align-self: flex-start;
  margin: 2rem 0 0;
  padding: .6rem 1.15rem .6rem .9rem;
  background: var(--charcoal);
  color: var(--porcelain);
  font: 400 clamp(1.05rem, 1.5vw, 1.3rem)/1.3 var(--serif);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  rotate: -2deg;
  transform-origin: left;
  opacity: 0;
  animation: cover-slam .45s .6s var(--snap) forwards;
}
@keyframes cover-slam { from { opacity: 0; translate: -24px 0; rotate: -6deg; } to { opacity: 1; translate: 0 0; rotate: -2deg; } }

.entry__body {
  max-width: min(27em, calc(var(--edge) - 6vw - 70px));
  margin: 1.75rem 0 2.1rem;
  font-size: clamp(.98rem, 1.1vw, 1.06rem);
  line-height: 1.8;
  color: #4b524c;
  opacity: 0;
  animation: cover-fade .5s .75s ease forwards;
}
@keyframes cover-fade { to { opacity: 1; } }

.route-options { display: grid; gap: .9rem; max-width: min(470px, calc(var(--edge) - 6vw - 100px)); }

.route-card {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 5.25rem;
  padding: 0 1.6rem 0 0;
  border: 0;
  background: var(--white);
  color: var(--charcoal);
  text-align: left;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
  outline: 1px solid var(--line);
  outline-offset: -1px;
  opacity: 0;
  translate: -40px 0;
  animation: cover-in .5s var(--snap) forwards;
  transition: translate .2s var(--snap), rotate .2s var(--snap), background-color .2s ease;
}
.route-card:nth-child(1) { animation-delay: .85s; }
.route-card:nth-child(2) { animation-delay: .95s; margin-left: 1.6rem; }
@keyframes cover-in { to { opacity: 1; translate: 0 0; } }

.route-card--primary { background: var(--charcoal); color: var(--porcelain); outline: 0; }
.route-card__code {
  align-self: stretch;
  display: grid;
  place-items: center;
  background: var(--travertine);
  color: var(--charcoal);
  font: 400 2.1rem/1 var(--serif);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.route-card--primary .route-card__code { background: var(--brass); color: var(--white); }
.route-card__copy strong { display: block; font: 500 1.35rem/1.2 var(--serif); }
.route-card__copy small { display: block; margin-top: .25rem; font-size: .8rem; line-height: 1.45; opacity: .74; }
.route-card__arrow { font-size: 1.35rem; transition: translate .2s var(--snap); }

.route-card:hover { translate: 10px 0; rotate: -1deg; }
.route-card:hover .route-card__arrow { translate: 8px 0; }
.route-card:not(.route-card--primary):hover { background: var(--porcelain); }
.route-card:active { translate: 6px 0; scale: .985; }
/* clip-path would hide the outline ring, so focus draws inside the card. */
.route-card:focus-visible { outline: 3px solid var(--focus); outline-offset: -5px; }
.route-card--primary:focus-visible { outline-color: #e7cf9f; }

/* Gate — two slanted panels sweep across; the route mounts while the screen is covered. */
.gate-transition {
  position: fixed;
  z-index: 900;
  inset: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}
.gate-transition.is-active { visibility: visible; pointer-events: auto; }
.gate-transition__panel { position: absolute; z-index: 2; inset: -10% -30%; background: #1d211e; transform: translateX(-120%) skewX(-18deg); }
.gate-transition__panel--brass { z-index: 1; background: var(--brass); }
.gate-transition.is-active .gate-transition__panel--brass { animation: gate-sweep .62s var(--wipe, cubic-bezier(.7, 0, .2, 1)) forwards; }
.gate-transition.is-active .gate-transition__panel:not(.gate-transition__panel--brass) { animation: gate-sweep .62s .06s cubic-bezier(.7, 0, .2, 1) forwards; }
.gate-transition__word {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--porcelain);
  font: 400 clamp(3rem, 9vw, 8.75rem)/1 var(--serif);
  letter-spacing: -.03em;
  opacity: 0;
}
.gate-transition.is-active .gate-transition__word { animation: gate-word .62s .12s ease forwards; }
@keyframes gate-sweep { 0% { transform: translateX(-120%) skewX(-18deg); } 45%, 60% { transform: translateX(0) skewX(-18deg); } 100% { transform: translateX(120%) skewX(-18deg); } }
@keyframes gate-word { 0%, 100% { opacity: 0; } 30%, 55% { opacity: 1; } }

@media (max-width: 860px) {
  .entry { --name: clamp(56px, 17vw, 90px); --edge: 0%; }
  .entry__vista { inset: 0 0 50% 0; clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); }
  .entry__vista img { object-position: 62% 40%; }
  .entry__rule { display: none; }
  .entry__ghost { font-size: 90vw; bottom: -30vw; }
  .entry__content { justify-content: flex-end; padding: 46svh 1.25rem calc(2rem + env(safe-area-inset-bottom)); }
  .entry h1 { margin-top: 1rem; white-space: normal; }
  .entry__body, .route-options { max-width: none; }
  .route-card:nth-child(2) { margin-left: .9rem; }
}

@media (min-width: 861px) and (max-height: 720px) {
  .entry { --name: clamp(56px, 7vw, 120px); }
  .entry__body { margin: 1.2rem 0 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .entry h1 .c, .entry h1 .nick, .entry__identity, .entry__body, .route-card, .entry__rule { animation: none; }
  .entry h1 .c { translate: 0 0; rotate: 0deg; }
  .entry h1 .nick, .entry__identity, .entry__body, .route-card { opacity: 1; translate: 0 0; }
  .entry__rule { clip-path: none; }
  .gate-transition.is-active * { animation: none !important; }
}

@media (forced-colors: active) {
  .route-card { border: 1px solid ButtonText; clip-path: none; }
  .entry__identity { clip-path: none; border: 1px solid CanvasText; }
}
