/* Explicit foreground and background colours also apply to native Windows popups. */
.field select { color-scheme: light; background-color: #151519; color: #fff; padding: .7rem 2rem .7rem .7rem; border: 1px solid #55545d; border-radius: .45rem; }
.field select option, .field select optgroup { color: #17171b; background-color: #fff; }
.field select option:disabled { color: #595963; background-color: #efeff2; }
.field select option:checked { color: #17171b; background-color: #e9edff; }
.field input:-webkit-autofill, .field textarea:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 1000px #151519 inset; caret-color: #fff; }

/* The exact homepages, framed with room for their original compositions. */
.case { min-height: 0; justify-content: start; gap: 1.4rem; padding: 1.4rem; }
.case::before, .case::after { display: none; }
.case-preview { width: 100%; aspect-ratio: 16/9; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: .8rem; background: #111; }
.case-preview img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform .8s var(--ease); }
.case:hover .case-preview img, .case:focus-visible .case-preview img { transform: scale(1.025); }
.case-bottom { margin-top: auto; gap: 1rem; }
.case-bottom span { max-width: 14rem; }
.case h3 { font-size: clamp(2rem,3.8vw,3.8rem); }

/* A single photograph sheet keeps the sample catalogue light on requests. */
.product-grid { height: auto; grid-template-rows: none; }
.catalogue-stage { min-height: 0; padding: 3.3rem 0 1.5rem 2rem; }
.store-window { position: relative; inset: auto; transform: rotateY(-7deg) rotateX(3deg); }
.store-bar { height: auto; min-height: 2.5rem; gap: .8rem; color: #cfccd6; line-height: 1.5; }
.store-bar span:last-child { text-align: right; }
.product { background: #f8f6f0; display: flex; flex-direction: column; border: 1px solid rgba(11,11,13,.07); border-radius: .65rem; min-width: 0; }
.product::before, .product::after { display: none; }
.product-photo { display: block; width: 100%; aspect-ratio: 1; background-image: url('/assets/catalogue-products.webp'); background-size: 400% 300%; background-position: var(--photo-x,0%) var(--photo-y,0%); background-repeat: no-repeat; }
.product > .product-photo { transition: transform .5s var(--ease); }
.product:hover > .product-photo { transform: scale(1.04); }
.product-info { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem; padding: .5rem .55rem .65rem; color: #272629; background: #f8f6f0; font-size: .6rem; line-height: 1.3; }
.product-info b { font-size: .6rem; font-weight: 800; }
.product-count { right: -.25rem; top: -.5rem; z-index: 3; }

/* Every opening card is a miniature working genre of website. */
.scene { container-type: inline-size; }
.mini-site { position: relative; height: calc(100% - 1.2rem); margin-top: .55rem; padding: .7rem; border-radius: .9rem; overflow: hidden; display: flex; flex-direction: column; color: #171719; background: #f5f1e8; }
.mini-site * { box-sizing: border-box; }
.mini-brand { display: flex; align-items: center; justify-content: space-between; margin-bottom: .65rem; font-size: clamp(5px,3cqi,7px); font-weight: 800; letter-spacing: .06em; line-height: 1.2; }
.mini-brand > span:last-child { font-size: clamp(6px,4cqi,10px); }
.mini-site .scene-label { font-size: clamp(15px,10cqi,23px); line-height: 1.08; letter-spacing: -.035em; }
.mini-site .scene-meta { font-size: clamp(4px,2.6cqi,6px); color: #6c6560; margin-top: .28rem; letter-spacing: .04em; }
.mini-section-label { display: flex; justify-content: space-between; margin-top: .9rem; margin-bottom: .35rem; font-size: clamp(5px,3.1cqi,7px); font-weight: 700; }
.service-sample { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #d7d1c5; padding: .4rem 0; font-size: clamp(6px,3.6cqi,9px); }
.service-sample small { display: block; color: #69645c; font-size: .8em; margin-top: .12rem; }
.mini-dates { display: grid; grid-template-columns: repeat(5,1fr); gap: .15rem; }
.mini-dates > span { display: grid; text-align: center; padding: .32rem .1rem; gap: .15rem; font-size: clamp(5px,3cqi,7px); border-radius: .3rem; }
.mini-dates b { font-size: 1.25em; }
.mini-booking .chosen { background: #244639; color: #fff; }
.mini-times { display: flex; gap: .25rem; margin-top: .4rem; }
.mini-times span { flex: 1; border: 1px solid #c9c2b5; text-align: center; border-radius: 99px; padding: .28rem .08rem; font-size: clamp(5px,3.1cqi,7px); }
.mini-cta { display: flex; align-items: center; justify-content: center; min-height: 1.55rem; margin-top: auto; padding: .3rem; border-radius: .35rem; background: #151518; color: #fff; font-size: clamp(5px,3.5cqi,8px); font-weight: 700; }
.mini-booking .mini-cta { background: #244639; }
.mini-restaurant { background: #f2e6cf; color: #342213; }
.mini-food { display: block; width: 100%; height: 26%; margin: .6rem 0 .35rem; object-fit: cover; border-radius: .35rem; }
.mini-menu-tabs { display: flex; gap: .6rem; color: #7a401f; font-size: clamp(6px,3.5cqi,8px); font-weight: 800; padding: .25rem 0; border-bottom: 1px solid #c7ad89; }
.mini-menu-row { display: flex; align-items: start; justify-content: space-between; gap: .2rem; padding: .32rem 0; font-size: clamp(6px,3.7cqi,9px); }
.mini-menu-row small { display: block; margin-top: .1rem; font-size: .75em; color: #725840; }
.mini-restaurant .mini-cta { background: #753c22; min-height: 1.4rem; }
.mini-music { background: #17151b; color: #f2ede5; }
.mini-music .scene-meta { color: #b9a9c8; }
.mini-album { position: relative; min-height: 0; height: 42%; margin-top: .65rem; border-radius: .4rem; overflow: hidden; }
.mini-album img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.mini-album::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 35%,rgba(9,8,9,.7)); }
.mini-album > span { position: absolute; z-index: 1; left: .4rem; bottom: .3rem; font-size: 22cqi; font-weight: 800; letter-spacing: -.09em; }
.mini-track { display: flex; flex-direction: column; gap: .15rem; margin-top: .6rem; font-size: clamp(7px,4.5cqi,11px); }
.mini-track > span { font-size: .7em; color: #bbb1c6; }
.mini-playline { height: 2px; margin-top: .65rem; background: #504757; }
.mini-playline > span { display: block; height: 100%; width: 38%; background: #ddc2ff; }
.mini-duration { display: flex; justify-content: space-between; margin-top: .25rem; font-size: 2.8cqi; color: #c9bdd4; }
.mini-player { display: flex; align-items: center; justify-content: center; gap: 1.15rem; margin-top: .3rem; font-size: 7cqi; }
.mini-player .play-disc { border-radius: 50%; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; padding-left: .08rem; background: #e7d5ff; color: #17121c; font-size: .5rem; }
.mini-property { background: #eff0eb; }
.mini-listing-photo { position: relative; height: 43%; margin-top: .8rem; border-radius: .35rem; overflow: hidden; }
.mini-listing-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-listing-photo > span { position: absolute; left: .4rem; top: .4rem; background: #f7f4e9; color: #393f32; padding: .25rem .35rem; border-radius: 99px; font-size: 2.8cqi; }
.mini-property-detail { display: flex; flex-direction: column; gap: .2rem; margin-top: .65rem; font-size: clamp(7px,4.5cqi,11px); }
.mini-property-detail > span { color: #64695e; font-size: .75em; }
.mini-specs { display: flex; justify-content: space-between; padding: .6rem 0; margin-top: .4rem; border-top: 1px solid #d6d9cf; font-size: clamp(5px,3.2cqi,8px); color: #616557; }
.mini-specs b { color: #242a1e; }
.mini-property .mini-cta { background: #394334; }
.mini-gallery { background: #ebe6de; }
.mini-gallery-grid { margin-top: .8rem; height: 53%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: .3rem; }
.mini-gallery-grid img { display: block; width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.mini-gallery-caption { display: flex; flex-direction: column; gap: .25rem; margin-top: .6rem; font-size: 3.8cqi; }
.mini-gallery-caption span { font-size: .75em; color: #696359; }
.mini-gallery .mini-cta { background: transparent; color: #333026; justify-content: start; padding-left: 0; }
.mini-shop { background: #edf4da; }
.mini-shop-title { margin-top: .6rem; font-size: 4.7cqi; font-weight: 800; }
.mini-shop-title > span { display: block; margin-top: .1rem; font-size: .65em; font-weight: 500; color: #57613f; }
.mini-products { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2,minmax(0,1fr)); flex: 1; min-height: 0; gap: .4rem; margin: .6rem 0; }
.mini-products > div { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.mini-products .product-photo { border-radius: .3rem; width: auto; height: calc(100% - .7rem); max-width: 100%; aspect-ratio: 1; align-self: center; }
.mini-products > div > span:last-child { display: flex; justify-content: space-between; gap: .2rem; font-size: clamp(4px,2.5cqi,6px); padding-top: .2rem; }
.mini-shop .mini-cta { background: #29351c; }
.mini-phone { background: #10182b; color: #eef3ff; }
.mini-phone .scene-meta { color: #adbcd5; }
.mini-live-dot { width: .3rem; height: .3rem; border-radius: 50%; background: #c7ff30; }
.mini-call-orb { flex-shrink: 0; width: 22%; aspect-ratio: 1; margin: .8rem auto .5rem; background: radial-gradient(circle at 35% 30%,#fff,#9abaff 16%,#3b6bff 50%,#102957); border-radius: 50%; box-shadow: 0 0 1.6rem #245cff88; }
.mini-call-label { display: flex; flex-direction: column; align-items: center; gap: .2rem; font-size: 5cqi; }
.mini-call-label > span { font-size: .62em; color: #9caccb; }
.mini-transcript { padding: .5rem .4rem; background: #222e47; border-radius: .4rem .4rem .4rem 0; margin: .7rem .45rem 0 0; font-size: clamp(5px,3.5cqi,8px); line-height: 1.4; }
.mini-transcript.reply { background: #304c86; margin: .4rem 0 .5rem .45rem; border-radius: .4rem .4rem 0 .4rem; }
.mini-confirmed { padding: .5rem .3rem; margin-top: auto; border-radius: .4rem; background: #c7ff3012; border: 1px solid #c7ff3044; color: #c7ff30; font-size: 3.7cqi; text-align: center; }
.mini-confirmed > span { display: block; font-size: .78em; color: #b3c494; margin-top: .2rem; }

/* Hold a single central stack, then spread in one smooth, staggered gesture. */
.scene { --stack-depth: -60px; animation-name: stack-to-fan; animation-duration: 1.9s; animation-timing-function: cubic-bezier(.22,.75,.18,1); animation-fill-mode: backwards; }
.scene:nth-child(1) { --stack-depth: -90px; animation-delay: .3s; }
.scene:nth-child(2) { --stack-depth: -60px; animation-delay: .22s; }
.scene:nth-child(3) { --stack-depth: -25px; animation-delay: .14s; }
.scene:nth-child(4) { --stack-depth: 35px; animation-delay: .08s; }
.scene:nth-child(5) { --stack-depth: -35px; animation-delay: .14s; }
.scene:nth-child(6) { --stack-depth: -70px; animation-delay: .22s; }
.scene:nth-child(7) { --stack-depth: -100px; animation-delay: .3s; }
@keyframes stack-to-fan {
  0%, 22% { opacity: 1; transform: translate3d(0,0,var(--stack-depth)) rotateY(0deg); }
  100% { opacity: 1; transform: translate3d(var(--x),var(--y),var(--z)) rotateY(var(--r)); }
}
@media (max-width: 1050px) { .catalogue-stage { max-width: 48rem; width: 100%; justify-self: center; } }
@media (max-width: 720px) {
  .catalogue-stage { padding: 2.2rem 0 .5rem; }
  .store-window { padding: .6rem; border-radius: 1rem; transform: none; }
  .product-grid { gap: .4rem; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .product:nth-child(n+10) { display: flex; }
  .product-count { top: -1.4rem; right: 0; width: 5.5rem; }
  .product-count strong { font-size: 1.5rem; }
  .product-count span { font-size: .42rem; }
  .store-bar { padding: .2rem .1rem .7rem; font-size: .5rem; padding-right: 4.6rem; flex-wrap: wrap; gap: .2rem; }
  .store-bar span:last-child { text-align: left; }
  .product-info { font-size: .55rem; padding: .35rem .3rem .5rem; gap: .15rem; }
  .product-info b { font-size: .55rem; }
  .case { min-height: 0; gap: 1rem; padding: 1rem; }
  .case-bottom { flex-direction: column; align-items: start; }
  .case-bottom span { text-align: left; max-width: none; }
  .case-top { flex-wrap: wrap; }
  .mini-site { padding: .55rem; }
  .mini-brand { margin-bottom: .4rem; }
  .mini-section-label { margin-top: .55rem; }
  .service-sample { padding: .25rem 0; }
  .mini-menu-row { padding: .2rem 0; }
  .mini-cta { min-height: 1.3rem; }
  .mini-listing-photo { margin-top: .6rem; }
  .mini-specs { padding: .4rem 0; }
}
@media (prefers-reduced-motion: reduce) { .scene { animation: none !important; } }
