.portal {
  --rose: #dec1cc;
  --rule: #dfc7d334;
  --gutter: clamp(1.25rem, 5vw, 6rem);
  background: radial-gradient(ellipse at 82% 32%, #51253a 0%, #271722 36%, #181417 74%);
  color: #fff7f9;
}
.gate-shell { max-width: 108rem; margin: 0 auto; padding: 0 var(--gutter); }
.gate-mast {
  height: clamp(4.5rem, 9vh, 6.5rem); display: flex; align-items: center; border-bottom: 1px solid var(--rule);
}
.gate-mast img { width: 8rem; height: auto; }
.gate-main {
  display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center; gap: clamp(1.6rem, 4vw, 5rem); padding: clamp(2.4rem, 6vh, 5rem) 0;
}
.portal .gate-copy h1 {
  font: normal clamp(4.6rem, 8.5vw, 10rem)/.86 var(--serif);
  letter-spacing: -.052em; margin: 0 0 clamp(1.9rem, 5vh, 4rem);
}
.gate-copy h1 span, .gate-copy h1 em { display: block; }
.portal .gate-copy h1 em { margin-left: .47em; color: var(--rose); font-weight: normal; }
.gate-access p { margin: 0 0 .75rem; color: #e3d3db; font-size: .95rem; }
.gate-access p i { color: #a58495; padding: 0 .35rem; }
.gate-choices { display: flex; gap: .72rem; flex-wrap: wrap; }
.gate-choices a {
  min-width: 7.8rem; padding: .72rem 1.35rem; text-align: center; border: 1px solid #c9adba9c;
  border-radius: 2px; background: #251922; font: normal 1.45rem/1.2 var(--serif);
}
.gate-choices a:is(:hover,:focus-visible), .gate-choices a.is-chosen { background: #efdee6; color: #341d2b; }
.gate-sequence {
  display: flex; gap: clamp(3px,.48vw,8px); align-items: stretch;
  height: clamp(20rem,54vh,39rem); position: relative; isolation: isolate;
}
.gate-sequence::before, .gate-sequence::after {
  content: ''; position: absolute; left: 0; right: 0; border-top: 1px solid var(--rule);
}
.gate-sequence::before { top: -.6rem; } .gate-sequence::after { bottom: -.6rem; }
.gate-sequence button {
  display: block; position: relative; flex: 1 1 0px; min-width: 0; padding: 0; border: 0; background: #34242c; overflow: hidden;
}
.gate-sequence button[aria-pressed="true"] { flex-grow: 4.9; }
.gate-sequence button img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  filter: saturate(.67) brightness(.74);
}
.gate-sequence button:first-child img { object-position: 52% 50%; }
.gate-sequence button:nth-child(2) img { object-position: 50% 28%; }
.gate-sequence button:last-child img { object-position: 55% 50%; }
.gate-sequence button[aria-pressed="true"] img { filter: saturate(.85) brightness(.98); }
.gate-sequence button:focus-visible { z-index: 2; outline-offset: 2px; }
.portal .portal-info { border-top: 1px solid var(--rule); padding: 1rem 0; margin: 0; max-width: none; }
.portal .portal-info summary { width: fit-content; padding: .2rem 0; }
.portal .portal-info p { display: inline-block; vertical-align: top; width: min(44%, 35rem); margin: .45rem 4% .15rem 0; }
.portal footer { margin: 0 auto; max-width: 108rem; padding: 1rem var(--gutter); background: transparent; border-top: 1px solid var(--rule); }
@media(max-width:710px) {
  .gate-main { grid-template-columns: 1fr; gap: 1.9rem; padding: 1.8rem 0; }
  .gate-copy { display: grid; grid-template-columns: 1fr; }
  .portal .gate-copy h1 { margin: 0 0 1.15rem; font-size: clamp(3.6rem,11vw,5.1rem); line-height: 1; }
  .gate-copy h1 span, .gate-copy h1 em { display: inline; }
  .portal .gate-copy h1 em { margin-left: .16em; }
  .gate-sequence { height: clamp(13rem,34svh,22rem); }
  .gate-mast { height: 3.8rem; } .gate-mast img { width: 6.8rem; }
  .portal .portal-info p { display: block; width: 100%; margin: .55rem 0; }
}
@media(prefers-reduced-motion:no-preference) {
  .gate-copy h1 span { animation: gate-rise .54s steps(8,end) both; }
  .gate-copy h1 em { animation: gate-rise .64s steps(9,end) .08s both; }
  .gate-sequence { animation: gate-appear .58s steps(8,end) both; }
  .gate-sequence button { transition: flex-grow .42s steps(9,end); }
  .gate-sequence img { transition: filter .32s steps(7,end); }
  .gate-sequence button img { animation: gate-print .8s steps(10,end) both; }
  .gate-sequence button:nth-child(2) img { animation-delay: .08s; }
  .gate-sequence button:last-child img { animation-delay: .15s; }
  .gate-access { animation: gate-rise .48s steps(8,end) .13s both; }
  .portal.is-entering .gate-main { animation: gate-exit .33s steps(7,end) both; }
}
@keyframes gate-rise { from { opacity: .32; translate: 0 .16em; } to { opacity: 1; translate: 0 0; } }
@keyframes gate-appear { from { opacity: .5; } to { opacity: 1; } }
@keyframes gate-print { from { scale: 1.045; clip-path: inset(0 10% 0 0); } to { scale: 1; clip-path: inset(0); } }
@keyframes gate-exit { to { opacity: .18; transform: translateY(-4px); } }
.gate-choices { display: flex; flex-wrap: wrap; gap: .65rem; }
.gate-choices a {
  display: inline-grid; place-items: center; min-width: 7.65rem; min-height: 3rem;
  border: 1px solid #bca3b1; border-radius: 3rem; color: #fff5fa;
  background: #432436; font: 500 1.06rem/1.3 DM, sans-serif; text-decoration: none;
}
.gate-choices a:hover, .gate-choices a:focus-visible, .gate-choices .is-chosen {
  background: #f4e5ed; color: #371728;
}
.gate-sequence { display: flex; gap: clamp(.25rem, .6vw, .65rem); }
@media(min-width:711px) { .gate-sequence { height: clamp(21rem, 55svh, 41rem); } }
@media(prefers-reduced-motion:no-preference) {
  .gate-mast img, .gate-access { animation: gate-rise .48s steps(7,end) both; }
  .gate-access { animation-delay: .12s; }
  .gate-sequence button { transition: flex-grow .42s steps(9,end); }
  .gate-sequence button img { animation: gate-film .64s steps(10,end) both; transition: filter .28s steps(6,end); }
  .gate-sequence button:nth-child(2) img { animation-delay: .08s; }
  .gate-sequence button:nth-child(3) img { animation-delay: .16s; }
}
@keyframes gate-rise { from { opacity: .28; transform: translateY(7px); } to { opacity: 1; transform: none; } }
