/* A film-led showroom with the catalogue always one action away. */
:root { --cinema-dark: #131a16; --cinema-cream: #f2ede3; --cinema-bronze: #c6a379; }
.cinematic-cover {
  position: relative; isolation: isolate; display: grid; align-items: end;
  min-height: clamp(29rem, 72svh, 45rem); color: #fff9ec; background: #151914;
}
.cover-media {
  position: absolute; inset: 0 0 0 23%; display: grid; align-items: center;
  background: radial-gradient(ellipse at 70% 48%, #292820, #151914 76%);
}
.cover-media video { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.cover-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #151914, transparent 38%), linear-gradient(0deg,#151914b8,transparent 20%);
}
.cover-content { z-index: 1; position: relative; width: min(calc(100% - var(--gutter) * 2), 86rem); margin-inline: auto; padding-block: 6rem clamp(4.3rem,8svh,6rem); }
.cover-content h1 { max-width: 9ch; color: #fff8e8; margin: 0 0 .6em; font: 500 clamp(3.8rem, 7.4vw, 7.4rem)/.81 'Cormorant Garamond', Georgia, serif; letter-spacing: -.038em; }
.cover-content h1 em { color: #f3dfbf; font-weight: 500; }
.cover-content p { max-width: 32ch; margin: 0 0 1.8rem; color: #f9efe1; line-height: 1.65; font-size: clamp(1rem, 1.6vw, 1.16rem); }
.cover-kicker { display: block; color: #e3bd8b; font: 600 .82rem/1.3 'DM Sans', sans-serif; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.34rem; }
.cover-signature { z-index: 2; position: absolute; right: var(--gutter); top: clamp(1rem,3vw,2.75rem); width: clamp(5.65rem,9vw,8rem); pointer-events: none; padding: .56rem .78rem; background: #fffdf6; border: 1px solid #d8bd98; border-radius: .12rem; opacity: 0; transform: translateY(8px); clip-path: inset(0 0 100% 0); transition: opacity .45s ease,transform .55s ease,clip-path .72s cubic-bezier(.16,1,.3,1); }
.cover-signature img { display: block; width: 100%; height: auto; }
.cinematic-cover.is-signed .cover-signature { opacity: 1; transform: translateY(0); clip-path: inset(0); }
.cinema-controls { position: absolute; z-index: 2; right: var(--gutter); bottom: max(1rem,2.3svh); display:flex; flex-wrap: wrap; justify-content:flex-end; gap: .5rem; }
.cinema-controls button, .detail-audio { cursor:pointer; color:#fff7e9; font: 600 .83rem/1.15 'DM Sans', sans-serif; min-height: 44px; padding: .65rem .95rem; border: 1px solid #ffffff60; border-radius: 3rem; background: #141b16cc; }
.cinema-controls button:hover, .detail-audio:hover { background: #26332a; }
.cinema-controls button:focus-visible, .detail-audio:focus-visible { outline: 2px solid #f5cc93; outline-offset: 3px; }
.construction { min-height: 140svh; padding-block: clamp(2.8rem,8vw,7.5rem); background: var(--cinema-dark); color: var(--cinema-cream); }
.construction-inner { position: sticky; top: max(5rem,13svh); width: min(calc(100% - var(--gutter) * 2),82rem); margin-inline: auto; display: grid; grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr); gap: clamp(1.8rem,6vw,5.5rem); align-items: center; }
.construction h2 { font: 500 clamp(3.35rem,7vw,6.4rem)/.83 'Cormorant Garamond', Georgia, serif; color: var(--cinema-cream); margin: .1em 0 .35em; max-width: 8ch; }
.construction p { color: #d8cec0; margin: 0 0 1.35em; max-width: 30ch; line-height: 1.65; }
.construction-illustration { margin:0; }
.construction-illustration video { width:100%; display:block; aspect-ratio:16/9; object-fit:contain; background:#26332a; border:1px solid #e6c69b3a; }
.construction-illustration figcaption { color:#e5ceb0; font-size:.79rem; padding:.65rem 0; }
.build-meter { height: 1px; margin-top: 1rem; background:#ffffff26; }
.build-meter::before { content:""; display:block; width: calc(100% * var(--build-progress,0)); height:1px; background:var(--cinema-bronze); }
.cinema-editorial { background: #eae2d5; padding-block: clamp(3.9rem,9vw,8.3rem); }
.cinema-editorial h2, .film-library h2 { font: 500 clamp(3.36rem,7.5vw,6.3rem)/.87 'Cormorant Garamond', Georgia, serif; margin: 0 0 .5em; letter-spacing:-.025em; }
.cinema-editorial .section-inner, .film-library .section-inner { width: min(calc(100% - 2 * var(--gutter)), 76rem); }
.editorial-row, .film-cards { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:clamp(.7rem,2.5vw,2rem); }
.editorial-card { min-width:0; display:block; color:var(--ink); }
.editorial-card img { width:100%; height:auto; display:block; aspect-ratio: auto 3/4; object-fit:contain; }
.editorial-card strong { display:block; font: 600 clamp(1.7rem,2.9vw,2.65rem)/1.05 'Cormorant Garamond', Georgia, serif; padding-top:.6rem; }
.editorial-card:hover strong { text-decoration: underline; text-underline-offset: .17em; }
.film-library { background:#f6f1e8; padding-block: clamp(3.9rem,9vw,8.3rem); }
.film-card { display:block; min-width:0; }
.film-card img { display:block; width:100%; height:auto; aspect-ratio: auto 9/16; object-fit:contain; }
.film-card h3 { font:600 clamp(1.65rem,3vw,2.7rem)/1 'Cormorant Garamond',Georgia,serif; margin:.55em 0 .34em; }
.film-card-media { position: relative; display: block; }
.motion-pill {
  position: absolute; z-index: 1; left: 50%; bottom: .8rem; transform: translateX(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: max-content; max-width: calc(100% - 1rem); min-height: 44px;
  padding: .4rem .85rem; border: 1px solid #efc899a3; border-radius: 999px;
  color: #fff6e8; background: #151c18ef; box-shadow: 0 0 18px #edb97585, 0 3px 14px #0007;
  font: 600 clamp(.72rem, 1.6vw, .84rem)/1.2 var(--sans);
  text-align: center; cursor: pointer;
}
.motion-pill:hover, .film-card:hover .motion-pill {
  background: #2c392c; box-shadow: 0 0 21px #efc693a8, 0 3px 14px #0007;
}
.motion-pill:focus-visible, .film-card:focus-visible .motion-pill {
  outline: 2px solid #fcdbac; outline-offset: 3px;
}
.film-card:hover h3 { text-decoration:underline; text-underline-offset:.17em; }
.design-page {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  grid-template-areas: "film intro" "film profile"; grid-template-rows: auto 1fr;
  align-items: start; gap: .95rem clamp(1.5rem, 4vw, 4.5rem);
  width: min(100%, 88rem); margin-inline: auto;
  padding: clamp(1rem, 3vw, 3rem) var(--gutter) clamp(3rem, 6vw, 6rem);
}
.design-stage {
  grid-area: film;
  --door-film-height: clamp(19rem, 71svh, 45rem);
  min-width: 0; display: grid; grid-template-rows: auto var(--door-film-height) auto;
  border: 1px solid #343c33; background: radial-gradient(ellipse at 50% 45%,#39453a,#17201a 72%);
}
.design-film-view { position: relative; min-width: 0; min-height: 0; }
.door-playback {
  position: absolute; inset: 0; display: flex; justify-content: end; align-items: start;
  width: 100%; height: 100%; padding: .7rem; color: #fff7e9; background: transparent;
  border: 0; cursor: pointer; text-align: right; font: 600 .8rem/1.25 var(--sans);
  text-shadow: 0 1px 7px #000, 0 1px 3px #000;
}
.door-playback span {
  padding: .42rem .55rem; background: #121815d9; border-radius: .18rem;
}
.door-playback:focus-visible { outline: 2px solid #f5cc93; outline-offset: -4px; }
.design-stage video {
  width: 100%; height: 100%; min-width: 0; min-height: 0;
  display: block; object-fit: contain; object-position: center;
}
.design-film-controls {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .35rem; padding: .45rem .7rem;
  border-top: 1px solid #ffffff23; background: #141b16;
}
.design-film-controls .film-preference { color: #fff7e9; }
.design-stage[data-gallery-view="portrait"] { grid-template-rows: var(--door-film-height) auto; border-color: transparent; background: transparent; }
.door-view-switch { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; padding-inline: .7rem; background: var(--paper); }
.door-view-switch button, .door-photo-controls button {
  min-height: 44px; padding: .45rem 0; background: none; border: 0;
  color: var(--ink); font: 600 .9rem/1.3 var(--sans); cursor: pointer;
}
.door-view-switch button { text-decoration: underline; text-underline-offset: .25em; }
.door-portrait {
  min-height: 0; min-width: 0; display: flex; align-items: center; justify-content: center;
}
.door-portrait-frame { position: relative; max-width: 100%; min-width: 0; }
.door-portrait img {
  display: block; height: auto; width: auto; max-width: 100%;
  max-height: var(--door-film-height); object-fit: contain;
}
.door-photo-controls {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: .2rem 1rem; padding: .35rem .7rem; color: var(--muted);
}
.door-photo-controls button { text-decoration: underline; text-underline-offset: .25em; }
.door-photo-dialog {
  width: min(94vw, 75rem); max-width: none; max-height: 92svh; padding: 0; border: 0;
  background: #151914; color: #fff7e9;
}
.door-photo-dialog::backdrop { background: #101410d9; }
.door-photo-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .45rem 1.25rem; padding: .7rem clamp(.8rem,3vw,1.4rem); border-bottom: 1px solid #ffffff2a;
}
.door-photo-bar h2 { font: 600 clamp(1.25rem, 3vw, 2rem)/1.05 var(--serif); }
.door-photo-tools { display: flex; flex-wrap: wrap; gap: .35rem; }
.door-photo-tools button {
  min-height: 44px; padding: .45rem .65rem; background: #242c23; color: #fff7e9;
  border: 0; font: 600 .8rem/1.2 var(--sans); cursor: pointer;
}
.door-photo-tools button:disabled { opacity: .54; cursor: default; }
.door-photo-scroll {
  height: min(70svh, 59rem); overflow: auto; overscroll-behavior: contain; container-type: size;
}
.door-photo-scroll img {
  width: calc(var(--photo-zoom,1) * min(100cqw, calc(100cqh * var(--photo-ratio,.67))));
  height: auto; max-width: none; margin-inline: auto;
}
@media (max-height: 460px) {
  .door-photo-scroll { height: min(61svh, calc(92svh - 7.5rem)); }
}
.design-intro { grid-area: intro; min-width: 0; }
.design-profile { grid-area: profile; width: 100%; min-width: 0; margin: 0; padding: 0; }
.design-details { display: grid; gap: .9rem; }
.design-intro h1 { font-size: clamp(2.75rem, 4.5vw, 4.75rem); overflow-wrap: anywhere; }
.design-utility { flex-wrap: wrap; gap: .35rem 1rem; }
.design-stage[data-style="glazed"] { background:radial-gradient(ellipse at 50% 45%,#5a635a,#24332b 72%); }
.design-stage[data-style="ornate"] { background:radial-gradient(ellipse at 50% 45%,#594536,#211a15 72%); }

@media (max-width: 56rem) {
  .design-page { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "intro" "film" "profile"; max-width: 44rem; gap: 1rem; }
  .design-stage { --door-film-height: min(58svh, 33rem, calc((100vw - 2 * var(--gutter)) * 16 / 9)); }
  .design-utility { min-height: 2.75rem; margin-bottom: .75rem; }
  .design-intro h1 { font-size: clamp(2.25rem, 7.5vw, 3.8rem); }
}
@media (max-width: 46rem) {
  .cinematic-cover { min-height: 0; grid-template-columns: minmax(0, 1fr); }
  .cover-media { position: relative; inset: auto; aspect-ratio: 16 / 9; }
  .cover-media::after { background: linear-gradient(0deg,#151914,transparent 20%); }
  .cover-content { padding-block: .55rem 1.4rem; }
  .cover-content h1 { font-size: clamp(3.25rem, 12vw, 5.3rem); margin-bottom: .45em; }
  .cover-content p { max-width: 30ch; margin-bottom: 1rem; }
  .cover-kicker { margin-bottom: .8rem; }
  .cover-signature { top: .65rem; width: 5.65rem; }
  .cinema-controls { position: relative; inset: auto; justify-content: flex-start; padding: 0 var(--gutter) 1.25rem; gap: .45rem; }
  .construction { min-height: 133svh; }
  .construction-inner { top: clamp(1rem, 8svh, 4.4rem); grid-template-columns: minmax(0,1fr); gap: 1rem; }
  .construction h2 { font-size: clamp(2.7rem, 9vw, 3.9rem); }
  .construction p { margin-bottom: .45rem; }
}
@media (max-width: 36rem) {
  .editorial-row, .film-cards { display: flex; flex-wrap: wrap; align-items: start; justify-content: center; gap: .9rem; }
  .editorial-card, .film-card { flex: 0 0 calc((100% - .9rem) / 2); }
}
@media (max-width: 46rem) and (orientation: portrait) {
  .cover-media { aspect-ratio: 1; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .cinematic-cover { min-height: 0; }
  .cover-media { max-height: calc(100svh - 4.75rem); }
  .cover-content { padding-block: 1.6rem 4.2rem; }
  .cover-content h1 { font-size: clamp(2.65rem, 7vw, 4.25rem); margin-bottom: .35em; }
  .cover-content p { margin-bottom: .65rem; }
  .cover-kicker { margin-bottom: .65rem; }
  .cover-signature { top: .8rem; width: 5.65rem; }
  .construction { min-height: auto; }
  .construction-inner { position: static; }
  .build-meter { display: none; }
}
@media (prefers-reduced-motion:reduce) {
  .construction { min-height: auto; }
  .construction-inner { position: static; }
  .cover-signature, .build-meter { display:none; }
}


.door-detail-study { display:grid; grid-template-columns:minmax(0,17rem) minmax(0,12rem); gap:1.35rem; align-items:end; margin:2rem 0; }
.door-detail-study video { display:block; width:100%; aspect-ratio:9/16; object-fit:contain; border-radius:.15rem; background:#bfae99; }
.door-detail-study figcaption { padding-bottom:.45rem; color:#514237; font-size:.92rem; line-height:1.5; }
@media (max-width:32rem) {
  .door-detail-study { grid-template-columns:minmax(0,16rem); gap:.65rem; }
}
