/* The house directory. Each still has its own art direction and room to breathe. */
.house-grid {
  gap: clamp(12px, 1.5vw, 24px);
}
.house-grid .house-card {
  --card-inset: clamp(16px, 1.6vw, 26px);
  display: grid;
  grid-template: auto auto auto 1fr / minmax(0, 1fr);
  align-content: start;
  align-items: start;
  justify-content: initial;
  min-height: 0;
  padding: 0 0 var(--card-inset);
  gap: 0;
  border-radius: 7px;
}
.house-grid .house-card[hidden] { display: none; }
.directory-photo {
  display: block;
  align-self: stretch;
  aspect-ratio: 1.98;
  overflow: hidden;
  background: var(--house-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--house-ink) 16%, transparent);
}
.directory-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .85s cubic-bezier(.2,.65,.28,1);
}
.house-grid .house-card > :is(.house-card-top,.house-card-brand,.house-card-bottom) { margin-inline: var(--card-inset); }
.house-grid .house-card-top {
  min-width: 0;
  align-items: center;
  align-self: start;
  margin-top: clamp(14px, 1.3vw, 21px);
  gap: 8px;
  opacity: 1;
}
.house-grid .house-card-top > span {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .075em;
  line-height: 1.45;
}
.house-grid .house-card-top > svg { height: 16px; width: 16px; }
.house-grid .house-card-brand {
  flex-flow: row nowrap;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding-block: 10px 6px;
}
.house-grid .house-card-brand h3 { margin: 0; }
.house-grid .house-card-brand .brand-symbol { height: 29px; width: 25px; }
.house-grid .house-card-bottom { margin-top: 0; }
.house-grid .house-card-bottom p { max-width: 36ch; margin: 0; font-size: .85rem; }
.house-grid .house-card::after { display: none; }
.house-grid .house-card:focus-visible {
  outline: 3px solid #234f3e;
  outline-offset: 3px;
}
@media (min-width: 520px) and (max-width: 990px) {
  .house-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 519px) {
  .house-grid { gap: 12px; }
  .house-grid .house-card {
    --card-inset: clamp(11px, 3.3vw, 17px);
    grid-template: 1fr auto auto 1fr / minmax(80px, 30%) minmax(0, 1fr);
    min-height: 144px;
    padding: 0;
    align-items: start;
  }
  .house-grid .directory-photo {
    grid-row: 1 / -1;
    aspect-ratio: auto;
    position: relative;
    border: 0;
    border-inline-end: 1px solid color-mix(in srgb, var(--house-ink) 15%, transparent);
  }
  .house-grid .directory-photo img { position: absolute; inset: 0; }
  .house-grid .house-card-top { grid-area: 2/2; margin-top: 13px; }
  .house-grid .house-card-top > span { font-size: .61rem; letter-spacing: .045em; }
  .house-grid .house-card-top > svg { width: 13px; height: 13px; }
  .house-grid .house-card-brand { grid-area: 3/2; padding-block: 7px 4px; gap: 7px; }
  .house-grid .house-card-brand h3 { font-size: clamp(1.13rem, 4.9vw, 1.5rem); }
  .house-grid .house-card-brand .brand-symbol { width: 18px; height: 21px; }
  .house-grid .house-card-bottom { grid-area: 4/2; padding-bottom: 14px; }
  .house-grid .house-card-bottom p { font-size: .77rem; line-height: 1.45; }
}
/* Gallery prints. Finite aspect ratios protect the composition at each breakpoint. */
.image-section { --plate-main: 1.5; --plate-detail: 1.28; --plate-radius: 3px; --plate-step: 5vw; }
.theme-finance .image-section, .theme-law .image-section { --plate-radius: 0px; --plate-step: 0px; }
.theme-law .image-section { --plate-main: 1.45; --plate-detail: 1.45; }
.theme-planning .image-section { --plate-radius: 1px; --plate-main: 1.5; --plate-detail: 1.5; --plate-step: 0px; }
.theme-tech .image-section { --plate-radius: 15px; --plate-step: 2.8vw; }
.theme-media .image-section { --plate-main: 1.65; --plate-detail: 1.35; --plate-step: 5.5vw; }
.theme-viva .image-section { --plate-main: 1.54; --plate-detail: 1.24; --plate-step: 5.8vw; }
.theme-estates .image-section { --plate-main: 1.43; --plate-detail: 1.35; }
.theme-auctions .image-section { --plate-main: 1.25; --plate-detail: 1.40; --plate-step: 3.5vw; }
.theme-auto .image-section { --plate-main: 1.78; --plate-detail: 1.78; --plate-step: 0px; }
body .image-section .plate, body .image-section .edition-film {
  margin: 0;
  min-width: 0;
  overflow: visible;
}
body .image-section.image-pair .plate:nth-child(2) { margin-top: min(88px, var(--plate-step)); }
.plate-window {
  display: block;
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: var(--plate-main);
  overflow: hidden;
  border-radius: var(--plate-radius);
}
.image-section.image-pair .plate:nth-child(2) .plate-window { aspect-ratio: var(--plate-detail); }
.image-single .plate-window { aspect-ratio: 2.35; max-height: min(670px, 72svh); }
body .image-section .plate .plate-window > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 1.1s cubic-bezier(.2,.65,.28,1);
}
body .image-section .plate figcaption {
  margin: 0;
  padding: 12px 0 1px;
  gap: 6px 18px;
  flex-wrap: wrap;
  align-items: baseline;
  line-height: 1.45;
}
.plate figcaption > span:first-child { color: var(--ink); font-size: clamp(.91rem, 1.16vw, 1.14rem); }
body .image-section .plate .image-index {
  display: inline;
  margin: 0;
  font: 500 .66rem/1.5 var(--ui);
  letter-spacing: .07em;
  white-space: normal;
  text-transform: uppercase;
  color: var(--muted);
}
body .image-single .plate figcaption { padding-inline: max(2px, var(--scene-edge, 0px)); }
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .image-single[data-scene] .plate-window {
    clip-path: inset(0 var(--scene-edge, 0px) round max(var(--plate-radius), var(--scene-radius, 0px)));
  }
}
@media (max-width: 650px) {
  body .image-section.image-pair .wrap { grid-template-columns: minmax(0,1fr); gap: 30px; }
  body .image-section.image-pair .editorial-image:nth-child(2) { margin: 0; }
  .image-section.image-pair .plate-window,
  .image-section.image-pair .plate:nth-child(2) .plate-window { aspect-ratio: 1.55; }
  .image-single .plate-window { aspect-ratio: 1.55; }
  body .image-section .plate figcaption { padding-top: 9px; }
}
/* The image is the play surface. The film, controls and description are all local. */
.edition-film { --film-corner: 4px; }
.edition-film .film-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--film-corner);
  background: #101413;
}
body .image-section.image-single .edition-film { width: min(100%, 1360px); margin-inline: auto; }
.image-single .edition-film .film-stage { aspect-ratio: 2.05; }
.parent-philosophy-photo.edition-film, .beauty-photo.edition-film {
  aspect-ratio: auto;
  overflow: visible;
  border: 0;
  background: none;
  border-radius: 0;
}
.parent-philosophy-photo.edition-film .film-stage { aspect-ratio: 4/3; }
.beauty-photo-salon.edition-film { --film-corner: clamp(40px, 7vw, 100px) 5px 5px 5px; }
.beauty-photo-salon.edition-film .film-stage { aspect-ratio: 4/3; }
body .edition-film .film-stage > img, .edition-film .film-stage > video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  aspect-ratio: auto;
  object-fit: cover;
  transform: none;
  border-radius: 0;
}
.edition-film .film-stage > video { object-fit: contain; z-index: 2; background: #0f1312; }
.edition-film .film-stage > video:fullscreen { object-fit: contain; }
.edition-film .film-play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: end;
  padding: clamp(16px, 3vw, 44px);
  color: white;
  background: linear-gradient(0deg, rgb(9 13 12 / 82%), rgb(9 13 12 / 48%) 14%, transparent 56%);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.film-play[hidden] { display: none; }
.edition-film .film-play:focus-visible { outline: 3px solid #fff3d8; outline-offset: -6px; }
.film-callout { display: flex; gap: clamp(10px, 1.2vw, 18px); align-items: center; }
.film-play-mark {
  width: clamp(44px, 4.5vw, 64px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid #fff9;
  border-radius: 50%;
  background: #13201d80;
  transition: background-color .25s ease, border-color .25s ease;
}
.film-play-mark svg { width: 40%; height: 40%; display: block; }
.film-copy { display: grid; gap: 5px; text-align: left; }
.film-copy strong { font: 500 clamp(1.22rem, 2.5vw, 2.5rem)/1.05 var(--display); letter-spacing: -.03em; color: #fff; }
.film-copy small { font: 500 .74rem/1.4 var(--ui); color: #fff; }
.edition-film .film-stage > video:focus-visible { outline: 3px solid #fff3d8; outline-offset: -4px; }
body .edition-film .film-caption {
  display: block;
  margin: 0;
  padding: 9px 1px 0;
  color: var(--muted);
  font: normal .76rem/1.55 var(--ui);
}
.film-caption details { margin: 0; }
.film-caption summary { min-height: 32px; padding-block: 4px; width: fit-content; cursor: pointer; text-underline-offset: .2em; }
.film-caption summary:hover { text-decoration: underline; }
.film-caption details p { margin: 2px 0 0; max-width: 70ch; color: inherit; }
@media (max-width: 650px) {
  .image-single .edition-film .film-stage { aspect-ratio: 16/10; }
  .film-copy strong { font-size: clamp(1.2rem, 5.6vw, 1.7rem); }
  .film-copy small { font-size: .7rem; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .house-grid .house-card:hover, .reveal-ready .house-grid .house-card.is-visible:hover { transform: translateY(-2px); }
  .house-grid .house-card:hover .directory-photo img, .house-grid .house-card:focus-visible .directory-photo img { transform: scale(1.035); }
  .house-grid .house-card:hover .house-card-brand .brand-symbol { transform: none; }
  body .image-section .plate:hover .plate-window img { transform: scale(1.022); }
  .film-play:is(:hover,:focus-visible) .film-play-mark { background: #152923d9; border-color: white; }
}
@media (prefers-reduced-motion: reduce) {
  .house-grid .directory-photo img, body .image-section .plate .plate-window img { transform: none; }
}
/* Both menu close controls share an actual center at every text size. */
:is(.house-browser-close, .menu-close) {
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  text-indent: 0;
}
:is(.house-browser-close, .menu-close) > svg {
  display: block;
  position: static;
  width: 20px;
  height: 20px;
  margin: 0;
  transform: none;
  justify-self: center;
  align-self: center;
}
/* Viewing a print. The same fullscreen viewer fits landscapes and details without cropping. */
.plate-window[data-open-print], .beauty-print-link { cursor: zoom-in; }
.plate-window[data-open-print]:focus-visible, .beauty-print-link:focus-visible {
  outline: 3px solid white;
  outline-offset: -5px;
  box-shadow: 0 0 0 3px var(--accent);
}
.beauty-print-link { display: block; position: relative; width: 100%; height: 100%; }
.print-expand {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  inset: auto 12px 12px auto;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid #fff7;
  color: white;
  background: #101814ae;
}
.print-expand svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .print-expand { opacity: .76; transition: opacity .2s ease; }
  [data-open-print]:is(:hover,:focus-visible) .print-expand { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .plate.is-visible .plate-window > img { animation: print-settle .85s cubic-bezier(.18,.68,.25,1); }
  :is(.theme-law,.theme-finance,.theme-auctions) .plate figcaption::before {
    content: '';
    width: 100%;
    height: 1px;
    background: var(--line);
    transform-origin: left;
  }
  .reveal-ready :is(.theme-law,.theme-finance,.theme-auctions) .plate.is-visible figcaption::before {
    animation: print-rule .65s ease-out;
  }
  @keyframes print-settle { from { transform: scale(1.035); } to { transform: scale(1); } }
  @keyframes print-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
html:has(.edition-lightbox[open]) { overflow: hidden; }
.edition-lightbox {
  --lb-paper: #111715;
  --lb-ink: #f5f2e8;
  margin: auto;
  width: min(1320px, 96vw);
  max-width: 100%;
  height: min(900px, 93vh);
  height: min(900px, 93dvh);
  max-height: 100%;
  padding: 0;
  background: var(--lb-paper);
  color: var(--lb-ink);
  border: 1px solid #dce4d141;
  border-radius: 11px;
  overflow: hidden;
}
.edition-lightbox::backdrop { background: rgb(7 13 11 / 90%); }
.edition-lightbox[open] { display: grid; grid-template-rows: minmax(0,1fr) auto; }
.print-display {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: clamp(10px, 2.2vw, 32px);
  display: grid;
  place-items: center;
  touch-action: pan-y pinch-zoom;
}
.print-display img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}
.print-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: max(8px, env(safe-area-inset-bottom)) clamp(12px, 2vw, 30px) 12px;
}
.print-legend { min-width: 0; }
.print-legend b { display: block; font: 500 clamp(1.1rem, 2vw, 1.65rem)/1.12 var(--display); color: var(--lb-ink); }
.print-legend small { display: block; font: .78rem/1.5 var(--ui); color: #c9cfc7; margin-top: 4px; }
.print-buttons { display: flex; gap: 6px; }
.edition-lightbox .print-control {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  flex: none;
  border: 1px solid #dce4d16e;
  background: #19231fe6;
  color: var(--lb-ink);
  border-radius: 50%;
  cursor: pointer;
}
.edition-lightbox .print-control:hover { background: #324239; }
.edition-lightbox .print-control:focus-visible { outline: 2px solid #fff1cb; outline-offset: 2px; }
.edition-lightbox .print-control[hidden] { display: none; }
.edition-lightbox .print-close { position: absolute; right: 12px; top: 12px; z-index: 2; }
.print-control svg { width: 20px; height: 20px; }
@media (max-width: 650px) {
  .edition-lightbox { width: 100vw; height: 100vh; height: 100dvh; border-width: 0; border-radius: 0; }
  .print-tools { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .print-display { padding: 5px; }
  .print-close { top: max(12px, env(safe-area-inset-top)); }
}
@media (prefers-reduced-motion: no-preference) {
  .edition-lightbox[open] { animation: print-open .22s ease-out; }
  @keyframes print-open { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
}
