/* The room fills the large viewport; controls stay inside the small safe viewport. */
html, body { background: #291d35; }
#choose { margin: 0; padding: 0; }
#choose .hero {
  --hero-screen: 100vh;
  --hero-safe: 100vh;
  position: relative;
  display: block;
  width: 100%;
  height: var(--hero-screen);
  min-height: var(--hero-screen);
  margin: 0;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: #291d35;
}
@supports(height:100lvh) {
  #choose .hero { --hero-screen: 100lvh; --hero-safe: 100svh; }
}
#choose .hero::before, #choose .hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
}
#choose .hero::before {
  z-index: -2;
  background: var(--luxury-room) center center / cover no-repeat;
}
#choose .hero::after {
  z-index: -1;
  background: linear-gradient(180deg,#291d355e, #291d3524 24%, transparent 38%, transparent 51%, #291d3560 70%,#291d35d9 100%);
}
#hero-media[data-curtain="pleated"] { --luxury-room: url("images/luxury-v3/rooms/pleated.jpg"); }
#hero-media[data-curtain="wave"] { --luxury-room: url("images/luxury-v3/rooms/wave.jpg"); }
#hero-media[data-curtain="eyelet"] { --luxury-room: url("images/luxury-v3/rooms/eyelet.jpg"); }
#hero-media[data-curtain="roman"] { --luxury-room: url("images/luxury-v3/rooms/roman.jpg"); }
#hero-media[data-curtain="roller"] { --room-width: 70.4vh; --luxury-room: url("images/luxury-v3/rooms/roller.jpg"); }
#hero-media[data-curtain="wood"] { --luxury-room: url("images/luxury-v3/rooms/wood.jpg"); }
#hero-media[data-curtain="aluminum"] { --luxury-room: url("images/luxury-v3/rooms/aluminum.jpg"); }
#hero-media[data-curtain="vertical"] { --luxury-room: url("images/luxury-v3/rooms/vertical.jpg"); }
#choose .hero .mockup-stage {
  display: block; position: absolute;
  inset: calc(62px + env(safe-area-inset-top)) 16px auto;
  padding: 0; text-align: center;
}
#choose .hero h1, html[lang="en"] #choose .hero h1 {
  position: static; width: fit-content; max-width: 100%; margin: 0 auto;
  font-size: clamp(2rem,10.3vw,5.6rem); font-weight: 700; font-style: italic;
  line-height: 1.14; letter-spacing: -.035em; color: #f1d7fc;
  filter: drop-shadow(0 2px 9px #25133488);
}
#choose .hero h1 span {
  display: block;
  background: linear-gradient(110deg,#fbf3ff 2%,#d9abea 48%,#f2e1f9);
  background-clip: text; -webkit-text-fill-color: transparent; padding-inline: .1em;
}
#choose .hero h1::after {
  content: ""; display: block; width: 47%; height: 7px; margin: 1px 0 0 auto;
  border-top: 4px solid #e5c4f2; border-radius: 70% 50%; transform: rotate(-5deg);
}
.hero-byline { margin: 7px 0 0; color: #f4e6f8; font-family: "Cormorant Garamond",serif; font-size: clamp(1rem,3.7vw,1.5rem); letter-spacing: .06em; text-shadow: 0 2px 8px #211526; }
.hero-visual, #mockup-name, #hero-gallery, #types-title, .type-shift { display: none !important; }
#choose .hero .mockup-stage::before { display: none; }
.hero-controls {
  position: absolute; left: 5%; right: 5%;
  bottom: calc(var(--hero-screen) - var(--hero-safe) + max(18px, env(safe-area-inset-bottom)));
  width: 90%; max-width: 900px; margin: 0 auto;
}
#choose .hero-actions { margin: 0; padding: 0 0 13px; width: 100%; text-align: center; }
.hero-actions .mockup-caption { margin: 0; padding: 0; }
.hero-actions .mockup-caption a {
  display: inline-flex; align-items: center; justify-content: center;
  width: min(100%,480px); min-height: 46px; margin: 0; padding: 10px 17px;
  font-size: clamp(1rem,3.6vw,1.5rem); font-weight: 700;
  border-radius: 999px; background: linear-gradient(110deg,#e5b4fb,#f0c9ff);
  color: #31163f; box-shadow: 0 0 28px #c27cdf52; text-decoration: none;
}
#choose .hero .type-block { width: 100%; margin: 0; padding: 0; }
.type-carousel { display: block; }
.type-window { overflow: visible; padding: 0; }
.hero .type-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; transform: none !important; }
.hero .type-card {
  position: relative; display: grid; grid-template-rows: minmax(0,1fr) auto;
  aspect-ratio: .96; min-width: 0; padding: 5px 3px 6px;
  border: 1px solid #e8d1ea69; border-radius: clamp(17px,4vw,30px);
  background: linear-gradient(135deg,#d5b9dd33,#9979aa35 60%,#ffffff21);
  box-shadow: inset 0 1px 5px #fff4,0 9px 18px #0b041c45;
  backdrop-filter: blur(7px); color: #fff2fa;
  transition: box-shadow .25s,background .25s;
}
.hero .type-card[aria-pressed="true"] { border-color: #f3c9ff; background: linear-gradient(135deg,#c28bdc66,#81509477); box-shadow: inset 0 0 10px #f0baff88,0 0 5px #fff,0 0 19px #df8fff; }
.hero .type-grid .type-card .type-mockup {
  display: block; width: 100%; height: 100%; min-height: 0; max-height: none;
  object-fit: contain; object-position: center; opacity: 1; transform: none;
}
.hero .type-title { display: block; padding: 0; margin-top: 3px; min-height: 1.25em; color: #fff0fb !important; font-size: clamp(.6rem,2.55vw,1.05rem); line-height: 1.2; font-weight: 600; text-align: center; }
.hero .type-card:hover { border-color: #f3c9ff; }
.site-header .floating-menu { top: calc(4px + env(safe-area-inset-top)); }
.floating-menu summary { width: 54px; height: 54px; }
.floating-mark { width: 42px; height: 42px; }
.luxury-menu-toggle { position: fixed; right: 5vw; top: calc(14px + env(safe-area-inset-top)); width: 42px; height: 42px; border-radius: 50%; border: 1px solid #d1b3d477; background: #49305266; backdrop-filter: blur(10px); color: #fff0d6; pointer-events: auto; font-size: 1.4rem; }
.ribbon-top { position: absolute; pointer-events: none; left: -65px; top: -75px; width: 160px; height: 110px; transform: rotate(-25deg); border-radius: 50%; border-bottom: 1px solid #fbd5ff; background: linear-gradient(160deg,transparent,#bb79c650,#f5c9ff77); opacity: .55; }
/* Desktop keeps the whole portrait room visible instead of enlarging and cropping it. */
@media(min-width:1000px) {
  #choose .hero::before { background-size: auto 100%; background-position: right center; mask-image: linear-gradient(90deg,transparent calc(100% - var(--room-width,56.25vh)),#000 calc(100% - var(--room-width,56.25vh) + 12vh)); }
  #choose .hero::after { background: linear-gradient(90deg,#291d35 30%,#291d35aa 48%,transparent 72%); }
  #choose .hero .mockup-stage { inset: clamp(80px,13vh,145px) auto auto 4%; width: 53%; }
  #choose .hero h1,html[lang="en"] #choose .hero h1 { font-size: clamp(3rem,4.4vw,5.4rem); }
  .hero-controls { left: 7%; right: auto; width: 47%; max-width: 620px; bottom: 5vh; }
  .hero .type-card { aspect-ratio: 1.12; }
  .hero .type-title { font-size: clamp(.75rem,1vw,1rem); }
}
@media(max-height:700px) and (max-width:999px) {
  #choose .hero .mockup-stage { inset-block-start: calc(50px + env(safe-area-inset-top)); }
  #choose .hero h1,html[lang="en"] #choose .hero h1 { font-size: min(9vw,6.5svh); }
  .hero .type-card { aspect-ratio: 1.12; }
  .hero .type-grid { gap: 7px; }
  .hero-actions .mockup-caption a { min-height: 40px; padding: 8px 12px; }
}
@media(prefers-reduced-motion:reduce) { .hero .type-card { transition: none; } }
/* Keep transparent canvas padding outside the visible catalog frame. */
.type-mockup[src$="/roller.png"] { clip-path: inset(6% 0 5%); }
.type-mockup[src$="/aluminum.png"] { clip-path: inset(6% 0 4%); }
.catalog-cover[src$="/foamwood.png"] { object-fit: contain; clip-path: inset(5% 0 4%); }
@media (min-width:600px) and (max-width:999px) and (max-height:500px) {
  .hero .type-grid { grid-template-columns: repeat(8,minmax(0,1fr)); }
  .hero .type-title { font-size: .65rem; }
  .hero .type-card { aspect-ratio: 1.08; border-radius: 16px; }
}
/* Logo is the only menu trigger. The tapered brush arc matches the reference. */
#choose .hero h1::after { content: none; }
#choose .hero .mockup-stage { inset-block-start: calc(72px + env(safe-area-inset-top)); }
#choose .hero h1, html[lang="en"] #choose .hero h1 {
  font-size: clamp(2.25rem,11.2vw,4.8rem);
  line-height: 1.12;
  filter: drop-shadow(0 2px 5px #2a1434b0) drop-shadow(0 0 9px #ca90efaa) drop-shadow(0 0 23px #b477d766);
}
#choose .hero h1 span { background-image: linear-gradient(110deg,#fff3ff,#e2b4f6 45%,#f6ddff); }
.headline-swoosh {
  display: block; width: clamp(98px,32vw,200px); height: auto;
  margin: -2px auto 0; transform: translateX(30%);
  overflow: visible; pointer-events: none;
  filter: drop-shadow(0 0 4px #efceff) drop-shadow(0 0 12px #c585ee99);
  animation: swoosh-aura 5s ease-in-out infinite;
}
.swoosh-light { animation: swoosh-shimmer 4.8s ease-in-out infinite; }
.hero-byline {
  margin-top: 4px; font-size: clamp(.8rem,3.3vw,1.15rem);
  font-weight: 600; letter-spacing: .2em; color: #fff3e5;
  text-shadow: 0 1px 5px #291d35,0 0 12px #dec0f0;
}
.site-header .floating-menu { inset-inline: 50% auto; }
.floating-menu summary { cursor: pointer; }
.floating-menu summary:focus-visible { outline-color: #e4b5ff; border-radius: 50%; }
.floating-menu nav { width: min(92vw,430px); margin: 0; animation: brand-menu-in .2s ease-out both; }
@keyframes brand-menu-in { from { opacity: 0; translate: 0 -5px; } to { opacity: 1; translate: 0 0; } }
@keyframes swoosh-shimmer {
  0%,15% { transform: translateX(0); opacity: 0; }
  22% { opacity: 1; }
  70% { transform: translateX(420px); opacity: 1; }
  78%,100% { transform: translateX(420px); opacity: 0; }
}
@keyframes swoosh-aura {
  0%,100% { filter: drop-shadow(0 0 4px #efceff) drop-shadow(0 0 12px #c585ee99); }
  50% { filter: drop-shadow(0 0 6px #fff0e9) drop-shadow(0 0 18px #c995ffcc); }
}
/* Leave a photo-covered bleed behind Safari's floating bottom chrome. */
@media(max-width:999px) and (hover:none), (max-width:599px) {
  #choose .hero { --browser-bleed: max(96px,env(safe-area-inset-bottom)); height: calc(var(--hero-screen) + var(--browser-bleed)); min-height: calc(var(--hero-screen) + var(--browser-bleed)); }
  .hero-controls { bottom: calc(var(--hero-screen) - var(--hero-safe) + var(--browser-bleed) + max(18px,env(safe-area-inset-bottom))); }
}
@media(min-width:1000px) {
  #choose .hero .mockup-stage { inset-block-start: clamp(80px,13vh,145px); }
  #choose .hero h1,html[lang="en"] #choose .hero h1 { font-size: clamp(3rem,4.4vw,5.4rem); }
  .headline-swoosh { width: clamp(140px,15vw,245px); }
}
@media(max-height:700px) and (max-width:999px) {
  #choose .hero .mockup-stage { inset-block-start: calc(55px + env(safe-area-inset-top)); }
  #choose .hero h1,html[lang="en"] #choose .hero h1 { font-size: min(10vw,6.8svh); }
  .headline-swoosh { width: min(32vw,22svh); }
}
@media(prefers-reduced-motion:reduce) { .headline-swoosh,.swoosh-light,.floating-menu nav { animation: none; } .swoosh-light { opacity: 0; } }
/* Thai combining marks extend beyond a tight text-gradient line box. */
#choose .hero h1, html[lang="en"] #choose .hero h1 {
  font-size: clamp(2.7rem,13.44vw,5.76rem);
  line-height: 1.12;
  overflow: visible;
}
#choose .hero h1 span {
  padding: .28em .18em .16em;
  margin-block: -.14em;
  overflow: visible;
}
.hero-byline {
  display: flex; align-items: center; justify-content: center; gap: .52em;
  margin: 7px auto 0; width: fit-content;
  font-family: "Cormorant Garamond",Georgia,serif;
  font-size: clamp(.95rem,3.9vw,1.35rem); letter-spacing: normal;
  color: #fff1df;
}
.hero-byline::before,.hero-byline::after {
  content: ""; display: block; width: clamp(20px,6vw,42px); height: 1px;
  background: linear-gradient(90deg,transparent,#f5dbb8);
  box-shadow: 0 0 5px #ead1f577;
}
.hero-byline::after { transform: rotate(180deg); }
.byline-prefix { font-size: .64em; letter-spacing: .12em; font-weight: 500; }
.byline-brand { font-size: 1em; letter-spacing: .22em; font-weight: 600; padding-block: .1em; }
.floating-menu summary { filter: none; }
.floating-mark {
  background: linear-gradient(145deg,#f9e9ff,#e2b4f6 48%,#c68be8);
  filter: drop-shadow(0 1px 2px #382044) drop-shadow(0 0 6px #d496f5) drop-shadow(0 0 13px #c48be199);
}
.menu-caption { display: none; font: 600 11px/1.2 "Cormorant Garamond",Georgia,serif; letter-spacing: .1em; color: #daaaf5; text-shadow: 0 1px 2px #392144,0 0 6px #be7cde,0 0 10px #d8b1f1; }
.site-header.past-hero .floating-menu summary { height: 72px; grid-template-rows: 46px auto; align-content: center; row-gap: 2px; }
.site-header.past-hero .menu-caption { display: block; }
@media(min-width:1000px) {
  #choose .hero h1,html[lang="en"] #choose .hero h1 { font-size: clamp(3.6rem,5.28vw,6.48rem); }
}
@media(max-height:700px) and (max-width:999px) {
  #choose .hero h1,html[lang="en"] #choose .hero h1 { font-size: min(12vw,8.16svh); }
}
.floating-mark { background: linear-gradient(145deg,#e6baf9,#b87cdd 48%,#9451b7); }
/* Supplied collection artwork, cropped as native image windows without redrawing. */
.catalog-screen .collection-cover-window {
  display: block; position: relative; overflow: hidden; width: 100%; height: auto;
  max-height: none; background: transparent; border-radius: 16px 16px 0 0;
}
.collection-cover-window img { position: absolute; height: auto; max-width: none; object-fit: initial; }
.floating-mark {
  width: 48.3px; height: 48.3px;
  background: linear-gradient(140deg,#f5d7ff,#d195f0 45%,#a65bce);
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 1px 2px #45205b) drop-shadow(0 0 5px #d98cff) drop-shadow(0 0 13px #c77bf4) drop-shadow(0 0 22px #a355d199);
}
.floating-menu summary { width: 62px; height: 62px; }
.menu-caption { font-size: 10px; color: #9a58be; text-shadow: 0 0 3px #f5dcff,0 0 7px #d28cf4; }
.site-header.past-hero .floating-menu summary { height: 80px; grid-template-rows: 53px auto; }

/* Independent decoded room layers dissolve without moving the foreground. */
#choose .hero.has-room-layers::before { background-image: none; }
.hero-room-layers { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.hero-room-layer { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; will-change: opacity; }
@media(min-width:1000px) {
  .hero-room-layer { background-size: auto 100%; background-position: right center; mask-image: linear-gradient(90deg,transparent calc(100% - var(--layer-room-width)),#000 calc(100% - var(--layer-room-width) + 12vh)); }
}
