/* İdil Şansal — the perspective gallery, with the approved proportions. */
:root {
  --bg: #07141d;
  --ink: #f3ede3;
  --gold: #c3a173;
  --frame: #e9e2d4;
  --caption-ink: #252827;
  --brand-color: #f3ede3;
  --nav-color: #f3ede3;
  --eyebrow-color: #d8c5a8;
  --title-color: #f3ede3;
  --description-color: #e2ded7;
  --cta-color: #f3ede3;
  --line: rgba(231, 218, 195, .25);
  --muted: #c3c7c8;
  --gallery-scale: 1;
  --mobile-title-size: 60px;
  --gradient-start: #07141d;
  --gradient-end: #173242;
  --gradient-angle: 135deg;
  --photo-overlay: .55;
  --photo-position: center center;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: .38; }
button:not(:disabled) { cursor: pointer; }
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
img { max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: #b79971; color: #07141d; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scene {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 760px;
  overflow: hidden;
  background: var(--bg);
}
.scene[data-background='atmosphere'] {
  background:
    radial-gradient(ellipse at 62% 71%, rgba(191, 143, 84, .16), transparent 28%),
    radial-gradient(ellipse at 72% 37%, rgba(36, 80, 105, .24), transparent 58%),
    var(--bg);
}
.scene::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  display: none;
}
.scene[data-background='atmosphere']::before {
  display: block;
  background: linear-gradient(120deg, rgba(0, 5, 11, .22), transparent 46%, rgba(0, 6, 11, .12)),
              linear-gradient(180deg, transparent 72%, rgba(0, 6, 12, .28));
}
.scene[data-background='gradient'] {
  background: linear-gradient(var(--gradient-angle), var(--gradient-start), var(--gradient-end));
}
.scene-photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  pointer-events: none;
  user-select: none;
}
.scene-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--photo-position); }
.scene[data-background='image']::before { display: block; background: rgba(3, 12, 18, var(--photo-overlay)); }
.scene:not([data-background='atmosphere']) .gallery::before { display: none; }

.nav {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  min-height: 116px;
  padding: 24px 5.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  padding: 0;
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--brand-color);
  font-size: clamp(18px, 1.3vw, 25px);
  font-weight: 400;
  letter-spacing: .13em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.navright { display: flex; align-items: center; gap: clamp(24px, 2.3vw, 46px); }
.nav-link {
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--nav-color);
  font: 500 11px/1.35 Arial, Helvetica, sans-serif;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.nav-link:hover { color: var(--gold); }
.intro {
  position: absolute;
  z-index: 8;
  top: 23%;
  left: 5.5%;
  width: 22.3%;
}
.eyebrow {
  margin: 0 0 24px;
  color: var(--eyebrow-color);
  font: 400 clamp(10px, .68vw, 13px)/1.65 Arial, Helvetica, sans-serif;
  letter-spacing: .29em;
  text-transform: uppercase;
}
.intro h1 {
  margin: 0;
  color: var(--title-color);
  font-size: clamp(70px, 6.1vw, 136px);
  font-weight: 400;
  line-height: 1.01;
  letter-spacing: -.065em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}
.intro h1 span { display: block; width: max-content; white-space: nowrap; }
.description {
  max-width: 410px;
  margin: 26px 0 0;
  color: var(--description-color);
  font-size: clamp(17px, 1.15vw, 23px);
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.discover {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  max-width: 100%;
  min-height: 44px;
  margin-top: 34px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cta-color);
  font: 500 11px/1.65 Arial, Helvetica, sans-serif;
  letter-spacing: .2em;
  text-align: left;
  text-transform: uppercase;
}
.discover::before { content: ''; flex: 0 0 35px; height: 1px; background: var(--gold); }
.discover::after { content: '↗'; margin-left: 2px; color: var(--gold); font-size: 21px; line-height: 1; }
.discover:hover { color: var(--gold); }
.quote {
  position: absolute;
  z-index: 7;
  top: 16.2%;
  right: 5.4%;
  width: clamp(170px, 11.4vw, 245px);
  margin: 0;
  padding-left: 23px;
  border-left: 1px solid var(--gold);
  color: #e1dfd8;
  font-size: clamp(15px, 1.1vw, 21px);
  font-style: italic;
  line-height: 1.42;
}
.quote p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }

.gallery {
  position: absolute;
  z-index: 5;
  top: 23.8%;
  right: 4.8%;
  bottom: 23.3%;
  left: 28%;
  perspective: 1500px;
  perspective-origin: center center;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.gallery::before {
  content: '';
  position: absolute;
  right: 7%;
  bottom: -10%;
  left: 7%;
  height: 33%;
  background: radial-gradient(ellipse, rgba(206, 166, 106, .12), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.cards { position: absolute; inset: 0; transform-style: preserve-3d; }
.card {
  touch-action: pan-y pinch-zoom;
  -webkit-user-select: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(204px, 15vw, 330px);
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  transform-origin: center center;
  transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(.19, .72, .2, 1), opacity .4s ease;
  will-change: transform;
}
.card:focus-visible { outline-offset: 9px; }
.gallery.is-dragging, .gallery.is-dragging .card { cursor: grabbing; }
.gallery.is-dragging .card { transition: none !important; }
.frame {
  display: block;
  position: relative;
  width: 100%;
  padding: 7px 7px 0;
  background: var(--frame);
  color: var(--caption-ink);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(255, 255, 255, .3);
}
.art {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #152633;
}
.art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform .6s ease;
}
.art > picture { display: block; width: 100%; height: 100%; }
.art-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 20px;
  background: linear-gradient(145deg, #1d3442, #0d202d);
  color: #c8d0d1;
  font-size: 17px;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}
.card:hover .art img { transform: scale(1.025); }
.caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: clamp(50px, 3.2vw, 62px);
  padding: 10px 8px 11px;
  color: var(--caption-ink);
  line-height: 1.2;
}
.caption .number {
  flex: 0 0 auto;
  font: 400 10px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .06em;
  opacity: .75;
}
.caption .name {
  min-width: 0;
  color: inherit;
  font-size: clamp(13px, .91vw, 18px);
  line-height: 1.2;
  text-align: right;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.gallery-empty {
  display: grid;
  place-content: center;
  height: 100%;
  min-height: 240px;
  padding: 25px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 21px;
  line-height: 1.6;
  text-align: center;
}
.controls {
  position: absolute;
  z-index: 12;
  right: 4.8%;
  bottom: 9.4%;
  left: 28%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.arrow {
  display: inline-grid;
  place-items: center;
  flex: 0 0 49px;
  width: 49px;
  height: 49px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0 3px;
  border: 1px solid rgba(231, 218, 195, .65);
  border-radius: 50%;
  background: rgba(6, 19, 28, .18);
  color: var(--ink);
  font: 26px/1 Georgia, serif;
  transition: border-color .2s, background-color .2s;
}
.arrow:not(:disabled):hover { border-color: var(--gold); background: rgba(195, 161, 115, .12); }
.hint {
  color: #d8c5a8;
  font: 400 11px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: .22em;
  text-align: center;
  text-transform: uppercase;
}
.bottom {
  position: absolute;
  z-index: 10;
  right: 5.5%;
  bottom: 5.8%;
  left: 5.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.index { display: flex; align-items: center; gap: 14px; font: 11px/1.5 Arial, Helvetica, sans-serif; letter-spacing: .12em; }
.index strong { font-weight: 400; }
.index .line { display: block; width: 45px; height: 1px; margin-left: 3px; background: rgba(195, 161, 115, .65); }
/* One native dialog contains every visitor-facing content window. */
dialog.modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 35px;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
  overscroll-behavior: contain;
}
dialog.modal[open] { display: flex; align-items: center; justify-content: center; }
dialog.modal::backdrop { background: rgba(2, 9, 14, .84); backdrop-filter: blur(14px); }
.modalbox {
  --window-limit: min(var(--window-height, 86svh), calc(100svh - 70px));
  position: relative;
  container-type: inline-size;
  width: min(var(--window-width, 1200px), 100%);
  max-height: var(--window-limit);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #10212c;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .45);
}
.modalcontent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 0;
  max-height: calc(var(--window-limit) - 2px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modalcontent, .collection-copy, .is-about .modaltext, .photo-caption {
  scrollbar-width: thin;
  scrollbar-color: rgba(195, 161, 115, .5) transparent;
}
.is-collection, .is-about:not(.is-text-only) { height: var(--window-limit); }
.is-collection .modalcontent, .is-about:not(.is-text-only) .modalcontent { height: 100%; overflow: hidden; }
.modalclose {
  position: absolute;
  z-index: 5;
  top: 15px;
  right: 15px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 0 4px;
  border: 1px solid rgba(231, 218, 195, .55);
  border-radius: 50%;
  background: #091925;
  color: var(--ink);
  font: 29px/1 Georgia, serif;
}
.modalclose:hover { border-color: var(--gold); background: #20313b; }
.modalimage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 410px;
  height: min(75svh, 770px);
  padding: 18px;
  border: 0;
  background: #091824;
}
.modalimage picture { display: block; width: 100%; height: 100%; }
.modalimage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.collection-gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
  min-height: 0;
  padding: 25px 25px 23px;
  background: #091824;
  align-self: stretch;
}
.collection-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  background: #07151e;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}
.collection-stage:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.collection-stage.is-draggable { cursor: grab; }
.collection-stage.is-dragging { cursor: grabbing; }
.collection-photo { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.collection-stage.is-empty { flex: 0 1 330px; min-height: 150px; }
.collection-gallery.has-no-photos { justify-content: center; }
.collection-photo-empty {
  display: grid;
  align-content: center;
  justify-items: center;
  width: 100%;
  height: 100%;
  padding: 35px;
  border: 1px solid rgba(195, 161, 115, .16);
  text-align: center;
}
.collection-photo-empty > span { color: var(--gold); font: 10px/1.65 Arial, Helvetica, sans-serif; letter-spacing: .18em; }
.collection-photo-empty > p { max-width: 230px; margin: 18px 0 0; color: #c2c7c7; font-size: 25px; line-height: 1.5; }
.collection-gallery-tools { display: flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 25px; }
.collection-gallery-tools .arrow { width: 44px; height: 44px; flex-basis: 44px; font-size: 22px; border-color: rgba(231, 218, 195, .4); }
.photo-counter { min-width: 68px; color: #d2c7b7; font: 10px/1.5 Arial, Helvetica, sans-serif; letter-spacing: .14em; text-align: center; }
.photo-caption { flex: 0 0 auto; max-height: 4.5em; overflow-y: auto; margin: 0; color: #c2c7c7; font-size: 14px; line-height: 1.5; text-align: center; white-space: pre-line; overflow-wrap: anywhere; }
.collection-thumbs {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  padding: 4px 3px 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(195, 161, 115, .45) transparent;
}
.collection-thumbs button {
  flex: 0 0 64px;
  width: 64px;
  height: 76px;
  padding: 4px;
  border: 1px solid transparent;
  background: transparent;
  opacity: .65;
  scroll-snap-align: center;
  transition: border-color .2s, opacity .2s;
}
.collection-thumbs button:first-child { margin-left: auto; }
.collection-thumbs button:last-child { margin-right: auto; }
.collection-thumbs button[aria-current='true'] { border-color: var(--gold); opacity: 1; }
.collection-thumbs button:hover, .collection-thumbs button:focus-visible { opacity: 1; }
.collection-thumbs button:focus-visible { outline-offset: 1px; }
.collection-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.modaltext { min-width: 0; padding: clamp(34px, 4vw, 60px); align-self: center; }
.modal-kicker { color: var(--gold); font: 400 10px/1.65 Arial, Helvetica, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.modaltext h2, .directory h2, .contact h2 {
  margin: 22px 0 24px;
  font-size: clamp(34px, 3.5vw, 58px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.modaltext h2 { padding-right: 8px; }
.modaltext p { color: #d1d3d1; font-size: 17px; line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; }
.modalnext {
  display: inline-block;
  min-height: 44px;
  margin-top: 18px;
  padding: 10px 0 8px;
  border: 0;
  border-bottom: 1px solid var(--gold);
  background: none;
  color: var(--ink);
  font: 11px/1.6 Arial, Helvetica, sans-serif;
  letter-spacing: .15em;
  text-align: left;
  text-transform: uppercase;
}
.modalnext:hover, .back-link:hover { color: var(--gold); }
.collection-story { margin-top: 30px; }
.collection-story p { margin: 0; font-size: 16px; line-height: 1.8; white-space: pre-line; }
.is-collection .modaltext {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 0;
  padding: 68px clamp(30px, 4cqw, 56px) 30px;
}
.collection-copy { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 0 12px 8px 2px; }
.collection-copy:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.collection-copy > p, .collection-story { max-width: 58ch; }
.collection-copy h2 { font-size: clamp(32px, 4.3cqw, 58px); }
.modal-navigation { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; padding-top: 23px; border-top: 1px solid var(--line); }
.is-collection .modal-navigation { flex-shrink: 0; margin-top: 22px; }
.modal-arrows { display: inline-flex; gap: 10px; }
.modal-arrows .arrow { width: 44px; height: 44px; flex-basis: 44px; font-size: 23px; }
.back-link { min-height: 44px; padding: 10px 0; border: 0; background: none; color: #d8cfc1; font: 10px/1.65 Arial, Helvetica, sans-serif; letter-spacing: .11em; text-align: left; text-transform: uppercase; }
.is-about .modalimage { align-self: stretch; height: 100%; min-height: 0; }
.is-about .modalimage img { object-fit: cover; object-position: 45% center; }
.is-about .modalimage picture { height: 100%; min-height: 100%; }
.is-about .modaltext { min-height: 0; max-height: 100%; align-self: stretch; overflow-y: auto; overscroll-behavior: contain; padding-top: 70px; padding-bottom: 60px; }
.is-directory .modalcontent, .is-contact .modalcontent { display: block; }
.modalbox.is-text-only .modalcontent { display: block; }
.directory { padding: 42px 46px 48px; }
.directory h2, .contact h2 { padding-right: 45px; }
.directory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px 22px; margin-top: 35px; }
.directory-card { min-width: 0; padding: 0; border: 0; background: none; text-align: left; }
.directory-card .frame { padding: 6px 6px 0; }
.directory-card .caption { gap: 7px; min-height: 54px; padding-right: 5px; padding-left: 5px; }
.directory-card .name { font-size: 13px; }
.directory-card .number { font-size: 9px; }
.directory-card:hover .art img { transform: scale(1.035); }
.contact { padding: 58px 60px 44px; }
.contact > p { margin: 0 0 30px; color: #cbd0cf; font-size: 18px; line-height: 1.65; }
.contact-list { margin-top: 30px; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 20px; padding: 23px 0; border-top: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 1px solid var(--line); }
.contact-label { flex: 1 1 100%; color: var(--gold); font: 10px/1.5 Arial, Helvetica, sans-serif; letter-spacing: .15em; text-transform: uppercase; }
.contact-value { max-width: 100%; color: var(--ink); font-size: clamp(19px, 2vw, 27px); line-height: 1.4; overflow-wrap: anywhere; user-select: all; }
.copy-contact { min-height: 44px; padding: 11px 16px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 10px/1.5 Arial, Helvetica, sans-serif; letter-spacing: .12em; }
.copy-contact:hover { border-color: var(--gold); color: var(--gold); }
.copy-status { min-height: 24px; margin-top: 15px; color: var(--gold); font: 12px/1.5 Arial, Helvetica, sans-serif; }
.contact .back-link { margin-top: 15px; }
.no-script-message, .noscript-note { position: relative; z-index: 30; margin: 0; padding: 12px 20px; background: var(--frame); color: var(--caption-ink); font: 14px/1.5 Arial, Helvetica, sans-serif; text-align: center; }

@media (min-width: 981px) and (max-height: 800px) {
  .nav { min-height: 96px; }
  .intro { top: 21%; }
  .intro h1 { font-size: clamp(70px, 6.1vw, 112px); }
  .eyebrow { margin-bottom: 20px; }
  .description { margin-top: 22px; font-size: clamp(17px, 1.08vw, 20px); }
  .discover { margin-top: 24px; }
  .quote { top: 15%; }
  .card { width: clamp(204px, 14.4vw, 285px); }
}

@media (max-width: 1200px) and (min-width: 981px) {
  .intro { width: 23%; }
  .eyebrow { font-size: 10px; letter-spacing: .22em; }
  .intro h1 { font-size: 6.1vw; }
  .description { font-size: 17px; }
  .discover { gap: 12px; font-size: 10px; letter-spacing: .13em; }
  .discover::before { flex-basis: 24px; }
  .quote { width: 168px; padding-left: 18px; }
  .gallery { left: 30%; right: 3%; }
  .controls { left: 30%; right: 3%; }
}

@media (max-width: 980px) {
  .scene { height: auto; min-height: 100svh; padding-bottom: 24px; }
  .nav { min-height: 100px; padding: 20px 6%; }
  .brand { font-size: 21px; }
  .navright { gap: 26px; }
  .intro { position: relative; top: auto; left: auto; width: auto; padding: 150px 6% 0; }
  .eyebrow { max-width: 62%; font-size: 11px; margin-bottom: 24px; }
  .intro h1 { max-width: 60%; font-size: clamp(76px, 10vw, 112px); }
  .description { max-width: 440px; margin-top: 25px; font-size: 19px; }
  .discover { margin-top: 24px; font-size: 11px; }
  .quote { top: 158px; right: 6%; width: 25%; max-width: 215px; font-size: 17px; }
  .gallery { position: relative; top: auto; right: auto; bottom: auto; left: auto; width: 100%; height: 490px; margin-top: 22px; overflow: hidden; perspective: 1400px; }
  .gallery::before { bottom: 0; }
  .card { width: clamp(228px, 30vw, 280px); }
  .caption { min-height: 54px; }
  .caption .name { font-size: 16px; }
  .controls { position: relative; right: auto; bottom: auto; left: auto; gap: 28px; margin-top: 9px; }
  .bottom { position: relative; right: auto; bottom: auto; left: auto; margin: 28px 6% 0; }
  .modaltext { padding: 45px 30px 35px; }
  .modaltext h2 { font-size: 38px; }
  .modaltext p { font-size: 16px; }
  .modal-navigation { gap: 12px; flex-wrap: wrap; }
  .modal-arrows { gap: 8px; }
  .directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .directory { padding-right: 32px; padding-left: 32px; }
}

@media (max-width: 640px) {
  .nav { min-height: 87px; padding: 18px 6%; gap: 13px; }
  .brand { font-size: 17px; letter-spacing: .07em; }
  .navright { gap: 16px; }
  .nav-link { font-size: 10px; letter-spacing: .09em; }
  .intro { padding-top: 125px; }
  .eyebrow { max-width: 100%; font-size: 10px; letter-spacing: .23em; margin-bottom: 22px; }
  .intro h1 { max-width: 100%; font-size: var(--mobile-title-size, 60px); line-height: 1.01; }
  .description { max-width: 360px; margin-top: 24px; font-size: 18px; line-height: 1.5; }
  .discover { gap: 15px; margin-top: 23px; font-size: 10px; letter-spacing: .17em; }
  .discover::before { flex-basis: 28px; }
  .quote { position: relative; top: auto; right: auto; width: auto; max-width: 330px; margin: 29px 6% 0; padding-left: 16px; font-size: 16px; line-height: 1.45; }
  .gallery { height: 430px; margin-top: 18px; perspective: 1100px; }
  .card { width: clamp(205px, 55vw, 244px); }
  .frame { padding: 6px 6px 0; }
  .caption { min-height: 53px; gap: 9px; padding: 10px 6px; }
  .caption .name { font-size: 14px; }
  .caption .number { font-size: 9px; }
  .controls { gap: 24px; margin-top: 0; }
  .controls .arrow { width: 45px; height: 45px; flex-basis: 45px; }
  .hint { font-size: 9px; letter-spacing: .19em; }
  .bottom { margin-top: 23px; }
  .index { gap: 10px; font-size: 10px; }
  .index .line { width: 28px; }
  dialog.modal { padding: 14px; }
  .modalbox { --window-limit: calc(100svh - 28px); width: 100%; max-height: var(--window-limit); }
  .modalcontent { display: block; max-height: calc(var(--window-limit) - 2px); }
  .modalclose { top: 12px; right: 12px; }
  .modalimage { height: 48svh; min-height: 270px; max-height: 470px; padding: 15px; }
  .collection-gallery { gap: 12px; padding: 65px 18px 21px; }
  .collection-stage { height: clamp(220px, 42svh, 425px); }
  .collection-stage.is-empty { height: 230px; }
  .collection-photo-empty { padding: 24px; }
  .collection-photo-empty > span { font-size: 9px; }
  .collection-photo-empty > p { font-size: 23px; }
  .collection-gallery-tools { gap: 22px; }
  .collection-thumbs { gap: 8px; }
  .collection-thumbs button { flex-basis: 56px; width: 56px; height: 66px; padding: 3px; }
  .photo-caption { font-size: 13px; }
  .is-collection .modaltext { padding: 29px 26px 27px; }
  .modaltext { padding: 28px 26px 27px; }
  .modaltext h2 { font-size: clamp(31px, 8.5vw, 42px); margin-top: 18px; margin-bottom: 20px; }
  .modaltext p { font-size: 16px; }
  .modal-kicker { font-size: 9px; }
  .modal-navigation { flex-wrap: nowrap; gap: 12px; margin-top: 25px; padding-top: 20px; }
  .modal-navigation .back-link { font-size: 9px; letter-spacing: .08em; }
  .modal-arrows { gap: 7px; }
  .modal-arrows .arrow { width: 44px; height: 44px; }
  .is-about .modalimage { height: 36svh; min-height: 250px; }
  .is-about .modalimage img { object-position: center; }
  .is-about .modaltext { padding: 30px 26px; }
  .is-directory, .is-contact { width: 100%; }
  .directory { padding: 35px 22px 28px; }
  .directory h2 { font-size: 38px; margin-top: 20px; }
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; margin-top: 28px; }
  .directory-card .caption { min-height: 53px; gap: 5px; padding: 9px 3px; }
  .directory-card .name { font-size: 11px; }
  .directory-card .number { font-size: 8px; }
  .directory-card .frame { padding: 5px 5px 0; }
  .contact { padding: 43px 27px 28px; }
  .contact h2 { font-size: 43px; }
  .contact > p { font-size: 16px; }
  .contact-row { padding: 21px 0; gap: 14px; }
  .contact-value { font-size: 23px; }
  .copy-contact { font-size: 9px; }
}

@media (max-width: 380px) {
  .nav { padding-right: 5.5%; padding-left: 5.5%; gap: 9px; }
  .brand { font-size: 15px; }
  .navright { gap: 10px; }
  .nav-link { font-size: 9px; letter-spacing: .045em; }
  .eyebrow { font-size: 9px; letter-spacing: .2em; }
  .description { font-size: 17px; }
  .discover { gap: 12px; font-size: 9px; }
  .gallery { height: 405px; }
  .card { width: 210px; }
  .controls { gap: 19px; }
  .hint { font-size: 9px; letter-spacing: .13em; }
  .modaltext, .is-about .modaltext, .is-collection .modaltext { padding: 25px 21px; }
  .collection-gallery { padding-right: 14px; padding-left: 14px; }
  .modal-navigation { gap: 8px; }
  .directory { padding-right: 17px; padding-left: 17px; }
  .directory-grid { gap: 18px 11px; }
  .contact { padding-right: 22px; padding-left: 22px; }
  .contact-value { font-size: 21px; }
}

/* Fit the content to its own configurable window, not only the device width. */
@container (max-width: 760px) {
  .is-collection .modalcontent, .is-about:not(.is-text-only) .modalcontent { display: block; overflow-y: auto; }
  .collection-gallery { min-height: 0; gap: 12px; padding: 65px 22px 22px; }
  .collection-stage { flex: none; height: clamp(240px, 44svh, 540px); }
  .collection-stage.is-empty { flex: none; min-height: 0; height: 230px; }
  .is-collection .modaltext { display: block; padding: 30px 26px 28px; }
  .collection-copy { overflow: visible; padding: 0; scrollbar-gutter: auto; }
  .collection-copy h2 { font-size: clamp(31px, 7cqw, 42px); }
  .is-collection .modal-navigation { margin-top: 28px; }
  .is-about .modalimage { height: clamp(240px, 42svh, 480px); min-height: 0; }
  .is-about .modaltext { max-height: none; overflow: visible; padding: 34px 28px; }
  .directory { padding: 44px 26px 30px; }
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .contact { padding: 48px 30px 30px; }
}

/* A very short landscape viewport uses one natural scroll instead of two cramped panes. */
@media (max-height: 500px) {
  dialog.modal { padding: 12px; }
  .modalbox { --window-limit: calc(100svh - 24px); }
  .is-collection .modalcontent, .is-about:not(.is-text-only) .modalcontent { display: block; overflow-y: auto; }
  .collection-gallery { min-height: 0; padding: 64px 24px 24px; }
  .collection-stage { flex: none; height: 300px; }
  .collection-stage.is-empty { flex: none; min-height: 0; height: 220px; }
  .is-collection .modaltext { display: block; padding: 30px; }
  .collection-copy { overflow: visible; padding: 0; scrollbar-gutter: auto; }
  .is-about .modalimage { height: 300px; min-height: 0; }
  .is-about .modaltext { max-height: none; overflow: visible; padding: 30px; }
}

/* Readable server-rendered covers remain available without JavaScript. */
html.no-js .scene { height: auto; min-height: 100svh; padding-bottom: 28px; }
html.no-js .intro { position: relative; top: auto; left: auto; width: auto; padding: 145px 5.5% 0; }
html.no-js .intro h1 { max-width: 100%; }
html.no-js .quote { position: relative; top: auto; right: auto; width: auto; max-width: 370px; margin: 30px 5.5% 0; }
html.no-js .gallery { position: relative; top: auto; right: auto; bottom: auto; left: auto; width: auto; height: auto; margin: 40px 5.5%; overflow: visible; perspective: none; }
html.no-js .cards { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
html.no-js .card { position: relative; top: auto; left: auto; width: 100%; transform: none !important; opacity: 1 !important; visibility: visible !important; }
html.no-js .controls, html.no-js .discover { display: none; }
html.no-js .bottom { position: relative; right: auto; bottom: auto; left: auto; margin: 20px 5.5% 0; }
@media (max-width: 980px) { html.no-js .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 640px) {
  html.no-js .intro { padding-top: 125px; }
  html.no-js .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  html.no-js .card .caption { padding-right: 4px; padding-left: 4px; gap: 7px; }
  html.no-js .card .name { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
