:root {
  --paper: #f3eee4;
  --ink: #1d1b18;
  --quiet: #645a50;
  --rule: #cec3b4;
  --accent: #855b40;
  --serif: "Didot", "Bodoni 72", "Baskerville", "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 82px);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
img { display: block; width: 100%; object-fit: cover; }
figure, p, h1, h2, dl, dd { margin: 0; }
[hidden][hidden] { display: none; }

.skip { position: absolute; z-index: 20; top: 10px; left: 10px; padding: 12px; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }

.header, .footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.header { min-height: 76px; }
.wordmark { justify-self: start; font: 38px/.8 var(--serif); letter-spacing: -.08em; }
.wordmark span { color: var(--accent); }
.header nav { display: flex; gap: clamp(14px, 3.8vw, 58px); }
.header nav a, .contact-link, .label, .scene-top, .scene-bottom, .footer {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.header nav a:hover, .contact-link:hover, .scene-bottom a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: .35em; }
.contact-link { justify-self: end; white-space: nowrap; }

.shoot { height: 170svh; }
.scene {
  --focus: 0;
  --deck-x: 67%;
  --deck-y: 49%;
  position: sticky;
  top: 0;
  isolation: isolate;
  height: calc(100svh - 76px);
  min-height: 490px;
  overflow: hidden;
  background: var(--paper);
}
.scene-top, .scene-bottom {
  position: absolute;
  z-index: 4;
  inset-inline: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.scene-top { top: 25px; pointer-events: none; }
.scene-top { opacity: calc(1 - var(--focus)); }
.scene-bottom { bottom: 24px; }
.scene-bottom a { padding: 8px 10px; background: var(--paper); }
.scene-bottom a span { padding-left: 5px; }
.frames {
  --neighbor-offset: clamp(59px, 12vw, 198px);
  position: absolute;
  z-index: 1;
  inset: 0;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  cursor: grab;
}
.scene.is-dragging .frames { cursor: grabbing; }
.scene.is-focused .frames { pointer-events: none; }
.frame {
  --offset: 0px;
  --size: 1;
  --shade: 0;
  position: absolute;
  inset: var(--deck-y) auto auto var(--deck-x);
  width: min(36vw, 580px);
  height: 72%;
  background: #cabbab;
  overflow: hidden;
  pointer-events: none;
  transform: translate(calc(-50% + var(--offset)), -50%) scale(var(--size));
  opacity: 0;
}
.scene.is-deck-ready:not(.is-dragging):not(.is-scrolling) .frame {
  transition: transform 390ms cubic-bezier(.22, .82, .26, 1), opacity 260ms ease;
}
.frame img { height: 100%; }
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(25 17 10 / var(--shade));
}
.frame[data-depth="0"] {
  left: calc(var(--deck-x) + (50% - var(--deck-x)) * var(--focus));
  top: calc(var(--deck-y) + (50% - var(--deck-y)) * var(--focus));
  z-index: 4;
  opacity: 1;
  transform:
    translate(calc(-50% + var(--deck-drag, 0px)), -50%)
    scale(var(--zoom, 1));
}
.frame[data-depth="1"] {
  --offset: var(--neighbor-offset);
  --size: .94;
  z-index: 3;
  opacity: calc(.62 * (1 - var(--focus)));
}
.frame.is-behind {
  --offset: calc(-1 * var(--neighbor-offset));
  --size: .94;
  z-index: 2;
  opacity: calc(.52 * (1 - var(--focus)));
}
.deck-controls {
  position: absolute;
  z-index: 5;
  left: var(--deck-x);
  bottom: 27px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: opacity 160ms ease;
}
.scene.is-focused .deck-controls { opacity: 0; pointer-events: none; }
.deck-controls button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font: 20px var(--sans);
  cursor: pointer;
}
.deck-controls button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.deck-counter { min-width: 39px; text-align: center; font: 600 11px var(--sans); font-variant-numeric: tabular-nums; }
.hero-copy {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  top: 48%;
  display: grid;
  gap: clamp(14px, 2.7vw, 32px);
  transform: translateY(calc(-50% - var(--focus) * 10vh));
  opacity: calc(1 - var(--focus));
  pointer-events: none;
}
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.055em; }
h1 {
  font-size: clamp(80px, 10.2vw, 165px);
  letter-spacing: -.075em;
  line-height: .78;
}
h1 em { display: block; margin-top: .16em; font-size: .73em; font-weight: 400; letter-spacing: -.06em; }
.scene-bottom .hero-link {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
  min-height: 44px;
  padding: 10px clamp(13px, 2vw, 23px);
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.scene-bottom .hero-link span { padding-left: 0; font-size: 15px; line-height: 1; }
.scene-bottom .hero-link:hover, .scene-bottom .hero-link:focus-visible {
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.section { width: min(100%, 1520px); margin-inline: auto; padding: clamp(64px, 10vw, 150px) var(--gutter); }
.section + .section { border-top: 1px solid var(--rule); }
.about { display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: clamp(30px, 9vw, 145px); }
.about img { height: auto; aspect-ratio: 4/5; }
.about-copy { max-width: 440px; }
.label { color: var(--quiet); line-height: 1.65; }
h2 { font-size: clamp(57px, 8.3vw, 132px); line-height: .88; }
.about h2, .card h2, .contact h2 { margin-block: 20px 24px; }
.about h2 em, .card h2 em { display: block; }
#bio, #contact-links, .muted { color: var(--quiet); line-height: 1.65; }
.text-link { display: inline-block; margin-top: 26px; font-size: 13px; font-weight: 600; border-bottom: 1px solid; padding-bottom: 5px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(32px, 5vw, 70px); }
.section-heading p { text-align: right; }
.album-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 4vw, 52px); }
.album-filters button, .gallery-more {
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  padding: 9px 14px;
  font: 500 13px var(--sans);
  cursor: pointer;
}
.album-filters button[aria-pressed="true"], .gallery-more:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.gallery-more { margin: 40px auto 0; display: block; }
.gallery-empty { color: var(--quiet); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); align-items: start; gap: clamp(14px, 3vw, 40px); }
.gallery figure { grid-column: span 5; }
.gallery figure:nth-child(4n + 1), .gallery figure:nth-child(4n + 4) { grid-column: span 7; }
.gallery figure:nth-child(even) { margin-top: clamp(14px, 6vw, 80px); }
.gallery img { aspect-ratio: 5/6; }
.gallery figure:nth-child(4n + 1) img, .gallery figure:nth-child(4n + 4) img { aspect-ratio: 6/5; }
.gallery figcaption { margin-top: 12px; color: var(--quiet); font: italic 22px var(--serif); }
.card { display: grid; grid-template-columns: 1fr 1fr; background: #e7ddcf; }
.card img { height: 100%; min-height: 360px; }
.card-copy { padding: clamp(22px, 5vw, 76px); }
.card h2 { font-size: clamp(44px, 6vw, 90px); }
.sedcard-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 22px; }
.sedcard-actions .text-link { margin-top: 6px; }
#print-sedcard { border: 0; border-bottom: 1px solid; padding: 0 0 5px; background: transparent; color: inherit; cursor: pointer; }
#sedcard .sedcard-booking { display: none; }
#measurements { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-block: 30px 20px; }
#measurements > div { border-top: 1px solid #bfb09e; padding-top: 10px; }
dt { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
dd { margin-top: 4px; color: var(--quiet); font-size: 14px; }
.contact { background: var(--ink); color: var(--paper); }
.contact .label, .contact #contact-links { color: #dbd0c0; }
#contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
#contact-links .text-link { margin-top: 0; }
.booking-primary {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 18px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper);
  font-size: 13px;
  font-weight: 600;
}
.booking-primary:hover { background: transparent; color: var(--paper); }
.booking-primary:focus-visible { outline-color: var(--paper); }
.back { display: inline-block; margin-top: 45px; font-size: 12px; }
.footer { display: flex; justify-content: space-between; min-height: 66px; color: var(--quiet); }

@media (max-width: 960px) {
  .scene { --deck-x: 50%; --deck-y: 55%; }
  .hero-copy {
    top: clamp(49px, 8svh, 84px);
    inset-inline: var(--gutter);
    gap: 9px;
    text-align: center;
    transform: translateY(calc(var(--focus) * -10vh));
  }
  h1 { font-size: clamp(42px, 7.6vw, 78px); line-height: .95; }
  h1 em { display: inline; margin-top: 0; font-size: .86em; }
  .frame { width: min(70%, 505px); height: 54%; }
  .deck-controls { bottom: 78px; }
}

@media (max-width: 660px) {
  .header { min-height: 66px; gap: 12px; }
  .header nav { gap: clamp(8px, 2.4vw, 16px); }
  .header nav a, .contact-link { font-size: 9px; letter-spacing: .08em; }
  .wordmark { font-size: 30px; }
  .scene { height: calc(100svh - 66px); min-height: 410px; }
  .scene-top, .scene-bottom { font-size: 9px; letter-spacing: .1em; }

  h2 { font-size: clamp(47px, 12vw, 72px); }
  .about, .card { grid-template-columns: 1fr; }
  .about img { aspect-ratio: 1; }
  .card img { height: auto; min-height: 0; aspect-ratio: 5/4; }
  .section-heading .label { font-size: 9px; }
  .gallery figcaption { font-size: 18px; }
}

@media (max-width: 360px) {
  .header { padding-inline: 12px; }
  .contact-link span { display: none; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading p { text-align: left; }
}

@media (max-width: 960px) and (max-height: 560px) {
  .scene { --deck-y: 52%; }
  .frame { height: 38%; }
  .deck-controls { bottom: 73px; }
}

@media (prefers-reduced-motion: reduce) {
  .shoot { height: auto; }
  .scene { position: relative; }
  .scene .frame, .scene .deck-controls { transition: none !important; }
}

.photo-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #e7ddcf;
  overflow: hidden;
  cursor: zoom-in;
}
.photo-open img { transition: transform 240ms ease-out; }
@media (hover: hover) {
  .photo-open:hover img { transform: scale(1.025); }
}
body:has(.photo-viewer[open]) { overflow: hidden; }

.photo-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
}
.photo-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.photo-viewer::backdrop { background: var(--ink); }
.viewer-header, .viewer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  gap: 12px;
}
.viewer-header { padding-top: max(8px, env(safe-area-inset-top)); }
.viewer-footer { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.viewer-album, .viewer-count { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.photo-viewer button {
  min-width: 46px;
  min-height: 46px;
  border: 0;
  background: transparent;
  color: inherit;
  font: 28px var(--sans);
  cursor: pointer;
}
.photo-viewer button[aria-disabled="true"] { opacity: .38; cursor: default; }
.viewer-caption { display: grid; gap: 4px; padding-block: 8px; text-align: center; min-width: 0; }
.viewer-title { font: italic clamp(20px, 3vw, 33px)/1 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-count { color: #d7ccbd; }
.viewer-track {
  --peek: clamp(28px, 8vw, 125px);
  --slide-gap: clamp(8px, 1.65vw, 24px);
  display: flex;
  min-width: 0;
  gap: var(--slide-gap);
  padding-inline: var(--peek);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.viewer-track::-webkit-scrollbar { display: none; }
.viewer-slide {
  flex: 0 0 100%;
  display: grid;
  min-width: 0;
  place-items: center;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.viewer-slide img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  transition: opacity 200ms ease-out;
}
.viewer-slide[aria-hidden] img { opacity: .43; object-position: right center; }
.viewer-slide:not([aria-hidden]) ~ .viewer-slide img { object-position: left center; }
@media (prefers-reduced-motion: reduce) {
  .photo-open img, .viewer-slide img { transition: none; }
}

.draft-banner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 9px var(--gutter);
  background: #e7ddcf;
  color: var(--ink);
  font-size: 13px;
}
.draft-banner a { text-decoration: underline; text-underline-offset: .2em; }

@media print {
  @page sedcard { size: A4 portrait; margin: 15mm; }

  .printing-sedcard { background: white; }
  .printing-sedcard > :not(main),
  .printing-sedcard main > :not(#sedcard),
  .printing-sedcard .sedcard-actions { display: none; }
  .printing-sedcard #sedcard {
    page: sedcard;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .printing-sedcard .card {
    display: block;
    background: white;
    color: #1d1b18;
    break-inside: avoid;
  }
  .printing-sedcard #card-image {
    width: 100%;
    height: 128mm;
    min-height: 0;
    aspect-ratio: auto;
  }
  .printing-sedcard .card-copy { padding: 10mm 0 0; }
  .printing-sedcard .card h2 { font-size: 41pt; margin-block: 4mm 6mm; line-height: 1; }
  .printing-sedcard .card h2 em { display: inline; }
  .printing-sedcard #measurements { grid-template-columns: repeat(3, 1fr); gap: 4mm 7mm; margin-block: 0 7mm; }
  .printing-sedcard #measurements > div { padding-top: 2mm; }
  .printing-sedcard #measurements dt { font-size: 8pt; }
  .printing-sedcard #measurements dd { font-size: 10pt; overflow-wrap: anywhere; }
  .printing-sedcard #sedcard .sedcard-booking:not([hidden]) {
    display: flex;
    flex-wrap: wrap;
    gap: 2mm 7mm;
    padding-top: 3mm;
    border-top: 1px solid var(--rule);
    font-size: 9pt;
    overflow-wrap: anywhere;
  }
}
