/* Three compositions. The completed layout is the no-script default.
   Only composition.js enables the scroll states on roomy desktop screens. */

.hero { position: relative; grid-template-columns: .95fr 1.18fr; row-gap: 0; padding-bottom: 64px; }
.hero-copy, .hero-stage, .section-intro > div { min-width: 0; }
.hero h1 > span { display: block; }
.hero h1 > span:last-child { margin-top: .035em; }
.hero-stage { align-self: center; }
.stage-heading { border-top: 1px solid var(--ink); padding-top: 14px; }
.stage-heading > span:last-child { color: var(--muted); }
.opening-composition { --opening: 1; position: relative; aspect-ratio: 1.05; min-height: 475px; isolation: isolate; overflow: hidden; }
.opening-composition .hero-frame { position: absolute; inset: 0 auto 0 0; width: calc(100% - 35% * var(--opening)); min-height: 0; max-height: none; height: 100%; aspect-ratio: auto; }
.opening-composition .hero-video { object-position: 50% center; }
.opening-support { position: absolute; right: 0; width: 32%; overflow: hidden; clip-path: inset(0 0 0 calc(100% - 100% * var(--opening))); }
.opening-support-texture { top: 0; height: 38%; }
.opening-support-portrait { bottom: 0; height: 59%; }
.opening-support img { width: 100%; height: 100%; object-fit: cover; }
.opening-support-portrait img { object-position: center 38%; }
.opening-support figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 7px; background: var(--paper); color: var(--ink); font-size: .875rem; line-height: 1.3; }
.opening-edge { position: absolute; top: 0; bottom: 0; right: 33.5%; width: 1px; background: var(--blue); transform: scaleY(var(--opening)); transform-origin: top; }
.opening-composition .preview-control { left: 12px; bottom: 68px; }
.opening-composition .hero-watch { left: 12px; right: auto; bottom: 14px; }
.hero-baseline { --opening: 1; grid-column: 1 / -1; margin-top: 45px; height: 1px; background: var(--line); overflow: hidden; }
.hero-baseline > span { display: block; width: 100%; height: 100%; background: var(--blue); transform: scaleX(var(--opening)); transform-origin: right; }
.services { border-top: 0; padding-top: 10px; }
.service-grid article { padding-top: 25px; }
.selected-work > .section-intro { padding-top: 24px; border-top: 1px solid var(--line); }
.project-pigment { margin-top: 38px; }
.project-lumiere { margin-top: 40px; }
.project-art { gap: 18px; }
.project-strip { gap: 18px; }
.project h3 { letter-spacing: -.02em; }
.project-copy { min-width: 0; }

/* A material study contracts into the first column of a campaign spread.
   At rest, the photographs and captions all remain in normal document order. */
.solaire-composition {
  --material: 1;
  --composition-gap: 18px;
  --caption-height: 48px;
  --material-end: calc((100% - 3 * var(--composition-gap)) * .7 / 3.7);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .7fr) repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: var(--composition-gap);
  height: clamp(570px, 51vw, 750px);
}
.material-study { grid-column: 1; grid-row: 1; display: flex; align-items: end; min-width: 0; }
.material-window { position: absolute; z-index: 2; left: 0; top: 0; bottom: var(--caption-height); width: calc(var(--material-end) + (100% - var(--material-end)) * (1 - var(--material))); overflow: hidden; background: #c82913; pointer-events: none; }
.material-window img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(calc(1 + .38 * (1 - var(--material)))); }
.material-study figcaption { width: 100%; min-height: var(--caption-height); display: flex; align-items: center; border-bottom: 1px solid var(--line); font-size: .875rem; padding-block: 10px; }
.solaire-composition .solaire-image { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.solaire-composition .solaire-image img { flex: 1; min-height: 0; height: 0; aspect-ratio: auto; object-fit: cover; }
.solaire-composition .solaire-image span { min-height: var(--caption-height); display: flex; align-items: center; padding-block: 10px; flex-shrink: 0; }
.solaire-image-salt { grid-column: 2; grid-row: 1; }
.solaire-image-ice { grid-column: 3; grid-row: 1; }
.solaire-image-fashion { grid-column: 4; grid-row: 1; }
.solaire-composition .solaire-image-salt img { object-position: center 48%; }
.solaire-composition .solaire-image-ice img { object-position: center 53%; }
.solaire-composition .solaire-image-fashion img { object-position: center; }
.solaire-composition:focus-within { --material: 1 !important; }
.solaire-composition .solaire-image:focus-visible { outline-offset: -3px; }
.archive-invitation { padding-top: 35px; }

/* The opening palette returns as an assembled campaign at the invitation. */
.contact { --assembly: 1; overflow: hidden; }
.contact-topline { display: flex; align-items: start; justify-content: space-between; gap: 25px; padding-bottom: 24px; border-bottom: 1px solid rgb(255 255 255 / .4); }
.contact-topline > p:last-child { text-align: right; }
.contact-assembly { position: relative; height: clamp(275px, 30vw, 430px); margin-block: 36px 48px; isolation: isolate; }
.assembly-frame { position: absolute; overflow: hidden; background: #230406; }
.assembly-frame img { width: 100%; height: 100%; object-fit: cover; }
.assembly-texture { left: 0; bottom: 0; width: 18%; height: 70%; transform: translate(calc(150% * (1 - var(--assembly))), calc(-12% * (1 - var(--assembly)))); }
.assembly-product { z-index: 2; left: 20%; top: 11%; width: 53%; height: 76%; transform: translateY(calc(11% * (1 - var(--assembly)))); }
.assembly-portrait { right: 0; top: 0; width: 25%; height: 100%; transform: translate(calc(-98% * (1 - var(--assembly))), calc(8% * (1 - var(--assembly)))); }
.assembly-portrait img { object-position: center 38%; }
.contact h2 { margin-top: 0; font-size: clamp(3.2rem, 7.8vw, 8rem); line-height: 1.04; }
.contact h2 > span { display: inline-block; }
.contact-bottom { position: relative; }

/* No perpetual animation loop: these hints exist only near an active scene. */
.composition-active .hero-frame, .composition-active .material-window { will-change: width; }
.composition-active .opening-support { will-change: clip-path; }
.composition-active .assembly-frame, .composition-active .material-window img { will-change: transform; }

@media (max-width: 1100px) {
  .hero { gap: 32px; grid-template-columns: 1fr 1fr; }
  .opening-composition { min-height: 510px; }
  .opening-support figcaption { left: 6px; bottom: 6px; padding-inline: 5px; }
  .hero-baseline { margin-top: 0; }
  .solaire-composition { --composition-gap: 14px; --caption-height: 65px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 38px; padding-block: 42px 45px; }
  .hero h1 { font-size: clamp(3.5rem, 11vw, 6.5rem); }
  .hero-stage { width: 100%; }
  .opening-composition { min-height: 0; aspect-ratio: 1.2; }
  .stage-caption { flex-direction: row; }
  .stage-caption > span { text-align: right; max-width: 7em; }
  .hero-baseline { margin: 0; }
  .solaire-composition { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .material-study { display: flex; flex-direction: column; grid-column: 1; grid-row: auto; }
  .material-window { position: relative; width: 100%; top: auto; bottom: auto; aspect-ratio: 3 / 4; flex: 1; }
  .material-window img { position: absolute; inset: 0; transform: none; }
  .material-study figcaption { min-height: 65px; }
  .solaire-image-salt { grid-column: 2; grid-row: auto; }
  .solaire-image-ice { grid-column: 1; grid-row: auto; }
  .solaire-image-fashion { grid-column: 2; grid-row: auto; }
  .solaire-composition .solaire-image img { flex: auto; aspect-ratio: 3 / 4; height: auto; }
  .solaire-composition .solaire-image span { min-height: 65px; }
  .contact-assembly { height: clamp(240px, 44vw, 370px); margin-block: 30px 36px; }
  .assembly-texture { width: 20%; height: 68%; }
  .assembly-product { left: 23%; width: 47%; top: 15%; height: 70%; }
  .assembly-portrait { width: 27%; }
}
@media (max-width: 600px) {
  .hero { padding-top: 34px; }
  .hero h1 { font-size: clamp(3.25rem, 13.5vw, 5rem); }
  .opening-composition { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; aspect-ratio: auto; overflow: visible; }
  .opening-composition .hero-frame { position: relative; grid-column: 1 / -1; inset: auto; width: 100%; height: auto; aspect-ratio: 1.25; }
  .opening-composition .preview-control { bottom: 12px; left: 12px; }
  .opening-composition .hero-watch { bottom: 12px; left: auto; right: 12px; }
  .opening-support { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1.05; clip-path: none; }
  .opening-support-portrait img { object-position: center 26%; }
  .opening-support figcaption { left: 9px; bottom: 9px; }
  .opening-edge { display: none; }
  .stage-caption { gap: 12px; }
  .stage-caption > p { max-width: 22em; }
  .project-pigment { margin-top: 24px; }
  .project-lumiere { margin-top: 25px; }
  .solaire-composition { --composition-gap: 12px; }
  .solaire-composition .solaire-image span, .material-study figcaption { line-height: 1.4; }
  .contact-topline { flex-direction: column; gap: 8px; }
  .contact-topline > p:last-child { text-align: left; }
  .contact-assembly { height: 250px; margin-block: 28px 35px; }
  .assembly-product { width: 59%; left: 0; top: 0; height: 55%; }
  .assembly-texture { width: 59%; height: 40%; }
  .assembly-portrait { width: 37%; height: 100%; }
  .contact h2 { font-size: clamp(2.6rem, 10vw, 4.5rem); }
}
@media (max-width: 380px) {
  .solaire-composition { display: flex; flex-direction: column; gap: 24px; }
  .material-study { display: block; }
  .material-window { flex: auto; }
  .solaire-composition .solaire-image span, .material-study figcaption { min-height: 48px; }
  .stage-heading { font-size: .875rem; gap: 12px; }
  .stage-caption { flex-direction: column; }
  .stage-caption > span { max-width: none; text-align: left; }
}
@media (prefers-reduced-motion: reduce), (max-width: 900px), (max-height: 600px) {
  .opening-composition, .hero-baseline { --opening: 1 !important; }
  .solaire-composition { --material: 1 !important; }
  .contact { --assembly: 1 !important; }
  .composition-active .hero-frame, .composition-active .material-window,
  .composition-active .opening-support, .composition-active .assembly-frame,
  .composition-active .material-window img { will-change: auto; }
}
@media print {
  .opening-composition, .hero-baseline { --opening: 1 !important; }
  .solaire-composition { --material: 1 !important; }
  .contact { --assembly: 1 !important; }
}
