/* Art direction uses the 393px-wide Figma frame as its coordinate space. */
.interior {
  width: calc(100% + 70px);
  margin-left: -35px;
  container-type: inline-size;
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.artboard { font-size: calc(100cqw / 393); padding-top: 37em; }
.portal-list { display: grid; gap: 30em; }
.portal { display: block; position: relative; height: 378em; color: black; text-decoration: none; }
.sugicow { --accent: #ff7ea3; }
.upstairs { --accent: #00e0a4; }
.recruit { --accent: #5da0ff; }
.poster, .portal-foot {
  position: absolute; width: 263em; left: 65em; overflow: hidden;
  border: 1px solid black; pointer-events: auto;
  box-shadow: 6em 6em 0 color-mix(in srgb, var(--accent) 60%, transparent);
}
.poster {
  height: 335em; top: 0; border-radius: 10em 10em 0 0;
  background-color: white; background-repeat: no-repeat;
  background-size: 336em 335em; background-position: center;
}
.poster h2, .brand-map h2 {
  margin: 0; font-family: "Gen Interface JP Display", "Gen Interface JP", sans-serif;
  font-weight: 800; -webkit-text-stroke: 1px black; paint-order: stroke fill;
}
.poster h2 {
  position: absolute; top: .43em; width: 100%; text-align: center;
  transform: scaleX(.92); font-size: 41em; line-height: 1.2; letter-spacing: .07em; color: var(--accent);
  -webkit-text-stroke-width: 2px; opacity: 0;
}
.cutout { display: block; position: absolute; object-fit: fill; pointer-events: auto; }
.floater { animation: float-y 6.4s ease-in-out infinite alternate; }
.portal > .pop:nth-child(4) .floater { animation-duration: 5.2s; animation-delay: -.8s; }
.portal > .pop:nth-child(5) .floater { animation-duration: 7.2s; animation-delay: -2.6s; }
.portal > .pop:nth-child(6) .floater { animation-duration: 5.8s; animation-delay: -3.8s; }
.portal > .pop:nth-child(7) .floater { animation-duration: 7.6s; animation-delay: -1.6s; }
.portal > .pop:nth-child(8) .floater { animation-duration: 6.2s; animation-delay: -4.4s; }
.portal > .pop:nth-child(9) .floater { animation-duration: 5.4s; animation-delay: -3s; }
.poster, .portal-foot, .caption, .cursor, .brand-map h2, .brand-sticker {
  opacity: 0; translate: 0 48px;
}
.portal.is-in .poster,
.portal.is-in .portal-foot,
.portal.is-in .caption,
.portal.is-in > .cursor,
.brand-map h2.is-in,
.brand-sticker.is-in { animation: rise-in .55s ease-out both; }
.portal.is-in .poster h2 { animation: rise-in .45s ease-out .2s both; }
.hero-mark, .hero-person { opacity: 0; }
.portal.is-in .hero-mark { animation: rise-in .5s ease-out .4s both; }
.portal.is-in .hero-person { animation: hop-up .7s ease-out .4s both; }
@keyframes rise-in {
  from { opacity: 0; translate: 0 48px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes drop-in {
  from { opacity: 0; translate: 0 -48px; }
  to { opacity: 1; translate: 0 0; }
}
.portal.from-top.is-in .poster,
.portal.from-top.is-in .portal-foot,
.portal.from-top.is-in .caption,
.portal.from-top.is-in > .cursor,
.brand-map h2.from-top.is-in,
.brand-sticker.from-top.is-in,
.portal.from-top.is-in .poster h2,
.portal.from-top.is-in .hero-mark { animation-name: drop-in; }
.pop {
  position: absolute; display: block; transform-origin: center;
  translate: var(--ox) var(--oy); scale: 0;
}
.portal.is-in > .pop { animation: burst .62s linear 1s both; }
.portal.is-in > .pop:nth-child(2 of .pop) { animation-delay: 1.15s; }
.portal.is-in > .pop:nth-child(3 of .pop) { animation-delay: 1.3s; }
.portal.is-in > .pop:nth-child(4 of .pop) { animation-delay: 1.45s; }
.portal.is-in > .pop:nth-child(5 of .pop) { animation-delay: 1.6s; }
.portal.is-in > .pop:nth-child(6 of .pop) { animation-delay: 1.75s; }
.pop .cutout { left: 5%; top: 5%; width: 90%; height: 90%; }
.cursor .cutout { inset: 0; width: 100%; height: 100%; }
.cursor { position: absolute; display: block; }
@keyframes hop-up {
  0% { opacity: 0; translate: 0 220px; }
  16% { opacity: 1; }
  70% { opacity: 1; translate: 0 -14px; }
  100% { opacity: 1; translate: 0 0; }
}
@keyframes burst {
  0% { translate: var(--ox) var(--oy); scale: 0; }
  58% { translate: calc(var(--ox) * -.08) calc(var(--oy) * -.08); scale: 1.12; }
  78% { translate: 0 0; scale: 0.96; }
  100% { translate: 0 0; scale: 1; }
}
@keyframes float-y {
  from { translate: 0 -8em; }
  to { translate: 0 8em; }
}
.poster .cutout { pointer-events: none; }
.city-marquee {
  position: absolute; left: -41.5em; top: 255.5em; width: 346em; height: 84em;
  overflow: hidden; pointer-events: none;
}
.city-track { display: flex; width: max-content; animation: city-right 28s linear infinite; }
.city-track img { display: block; width: 307em; height: 84em; flex: none; }
@keyframes city-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.shop-marquee {
  position: absolute; left: 0; right: 0; top: 106.073em; height: 185.198em;
  overflow: hidden; pointer-events: none;
}
.shop-track {
  display: flex; width: max-content; margin-left: 41em;
  animation: shop-left 48s linear infinite;
}
.shop-set {
  display: flex; align-items: center; gap: 23.295em; padding-right: 23.295em;
  height: 185.198em; flex: none;
}
.shop-set img { display: block; flex: none; }
.shop-set img:nth-child(1) { width: 185.198em; height: 185.198em; }
.shop-set img:nth-child(2) { width: 178.266em; height: 178.209em; }
.shop-set img:nth-child(3) { width: 200.403em; height: 173.5em; }
.shop-set img:nth-child(4) { width: 172.247em; height: 172.192em; }
@keyframes shop-left { to { transform: translateX(-50%); } }
.starburst { animation: spin-burst 32s linear infinite; transform-origin: center; }
@keyframes spin-burst { to { transform: rotate(1turn); } }
.portal-foot {
  top: 335em; height: 43em; border-radius: 0 0 10em 10em; border-top: 0;
  background: var(--accent); color: white; display: grid; place-items: center;
}
.portal-foot span { font-size: 20em; font-weight: 600; letter-spacing: .11em; white-space: nowrap; }
.caption { position: absolute; display: grid; place-items: center; padding: 0 6.52em; height: 29.04em; background: white; border: 1px solid black; pointer-events: auto; }
.caption span { font-size: 13.04em; font-weight: 700; letter-spacing: .11em; white-space: nowrap; }
.brand-map { position: relative; height: 1155em; isolation: isolate; }
.brand-map::before,
.brand-map::after {
  content: ""; position: absolute; left: 36em; width: 323.829em; z-index: -1; opacity: .2; pointer-events: none;
}
.brand-map::before {
  top: 0; height: 322.830em;
  background: url(assets/interior/brand-grid-top.svg) 0 0 / 100% 100% no-repeat;
}
.brand-map::after {
  top: 322.830em; bottom: 0;
  background: url(assets/interior/brand-grid-loop.svg) 0 0 / 323.829em 322.830em repeat-y;
}
.brand-map h2 { position: absolute; left: 1.306em; top: .94em; font-size: 49em; letter-spacing: .06em; line-height: 1.04; color: #dedede; -webkit-text-stroke-width: 2px; }
.brand-sticker {
  position: absolute; width: 182.36em; aspect-ratio: 1; overflow: hidden; border-radius: 50%;
  pointer-events: auto; transform-origin: center;
  box-shadow: 3em 3em 0 color-mix(in srgb, #8d8d8d 30%, transparent);
}
.brand-sticker.is-in .brand-product {
  animation: brand-pop .55s linear both;
  animation-delay: calc(var(--enter, 0s) + .62s);
}
@keyframes brand-pop {
  0% { scale: 0; }
  64% { scale: 1.1; }
  82% { scale: 0.96; }
  100% { scale: 1; }
}
.brand-product { display: block; position: absolute; object-fit: cover; scale: 0; transform-origin: center; }
.brand-product[src$="/shioame.png"] { clip-path: inset(6.7% 0); }
.brand-lettering {
  position: absolute; pointer-events: none; transform-origin: 50% 50%;
  animation: rotate-brand-name 48s linear infinite;
}
@keyframes rotate-brand-name { to { transform: rotate(1turn); } }
.portal:focus-visible .poster, .brand-sticker:focus-visible { outline: 3px solid #1b4ca1; outline-offset: 2px; }
