:root {
  --ink: #202020;
  --muted: #777;
  --paper: #f8f7f5;
  --header: rgba(255, 255, 255, .94);
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Work Sans", Arial, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
a { -webkit-tap-highlight-color: transparent; }

.photographer-page {
  min-height: 100vh;
  min-height: 100svh;
}

.photographer-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header);
  border-bottom: 1px solid rgba(0,0,0,.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.photographer-header-inner {
  width: min(1560px, calc(100% - 64px));
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 0 10px;
}

.photographer-nav {
  width: min(1180px, 100%);
  min-height: 62px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
}

.photographer-logo {
  justify-self: start;
  color: #222;
  font-family: "Sacramento", cursive;
  font-size: clamp(32px, 2.5vw, 42px);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.photographer-date {
  display: inline-block;
  margin-left: .22em;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: .23em;
  font-weight: 400;
  letter-spacing: .08em;
  vertical-align: .34em;
}

.photographer-current {
  justify-self: center;
  text-align: center;
  line-height: 1.15;
  white-space: nowrap;
}
.photographer-current strong {
  display: block;
  font-size: clamp(12px, .9vw, 15px);
  font-weight: 500;
}
.photographer-current span {
  display: block;
  margin-top: 3px;
  color: #888;
  font-size: clamp(9px, .68vw, 11px);
  font-weight: 400;
}

.photographer-back {
  position: relative;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 2px;
  color: #555;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.photographer-back::before {
  content: "←";
  margin-right: 8px;
  font-size: 16px;
}
.photographer-back::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 1px;
  background: #222;
  transition: right .16s ease;
}
.photographer-back:hover::after,
.photographer-back:focus-visible::after { right: 0; }

.photographer-main {
  width: min(1240px, calc(100% - 48px));
  min-height: calc(100svh - 85px);
  margin: 0 auto;
  padding: clamp(24px, 4vh, 54px) 0 max(30px, env(safe-area-inset-bottom));
  display: grid;
  align-items: center;
}

.photographer-choice {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}

.photographer-card {
  position: relative;
  min-height: clamp(330px, 58vh, 610px);
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.14), transparent 30%),
    linear-gradient(135deg, #56504c, #252321 72%);
  box-shadow: 0 20px 55px rgba(0,0,0,.10);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.photographer-collage {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: #292725;
  transform: scale(1.002);
  transition: transform .55s ease;
}

.photographer-card:hover .photographer-collage,
.photographer-card:focus-visible .photographer-collage {
  transform: scale(1.022);
}

.collage-cell {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #34312f;
}

.collage-cell img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 1;
  transform: scale(1.015);
  transition:
    opacity .36s ease,
    transform .52s cubic-bezier(.22,.61,.36,1);
}

.collage-cell.is-changing img {
  opacity: 0;
  transform: scale(1.055);
}

.collage-cell.is-arriving img {
  animation: collage-arrive .52s ease both;
}

@keyframes collage-arrive {
  from {
    opacity: 0;
    transform: scale(1.065);
  }
  to {
    opacity: 1;
    transform: scale(1.015);
  }
}

.photographer-card-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.08) 62%, rgba(0,0,0,.12)),
    linear-gradient(to right, rgba(0,0,0,.08), transparent 40%);
  pointer-events: none;
}

.photographer-card-content {
  position: absolute;
  z-index: 2;
  left: clamp(22px, 3vw, 42px);
  right: clamp(22px, 3vw, 42px);
  bottom: clamp(24px, 4vw, 46px);
  display: block;
  text-shadow: 0 2px 20px rgba(0,0,0,.55);
}
.photographer-card-content small {
  display: block;
  margin-bottom: 4px;
  color: rgba(255,255,255,.82);
  font-size: clamp(11px, .8vw, 13px);
  font-weight: 400;
}
.photographer-card-content strong {
  display: block;
  font-family: "Sacramento", cursive;
  font-size: clamp(54px, 5.4vw, 82px);
  font-weight: 400;
  line-height: .98;
}
.photographer-card-content > span {
  display: inline-block;
  margin-top: 12px;
  border-bottom: 1px solid rgba(255,255,255,.65);
  padding-bottom: 4px;
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 400;
}

.photographer-card:focus-visible,
.photographer-logo:focus-visible,
.photographer-back:focus-visible {
  outline: 2px solid #222;
  outline-offset: 4px;
}
.photographer-card:focus-visible { outline-color: #fff; outline-offset: -5px; }

@media (max-width: 760px) {
  .photographer-header-inner {
    width: calc(100% - 20px);
    padding-top: max(7px, env(safe-area-inset-top));
    padding-bottom: 7px;
  }
  .photographer-nav { min-height: 44px; gap: 7px; }
  .photographer-logo { font-size: clamp(22px, 6.8vw, 28px); }
  .photographer-date { font-size: .19em; margin-left: .08em; letter-spacing: .04em; }
  .photographer-current strong { font-size: clamp(9px, 2.7vw, 11px); }
  .photographer-current span { margin-top: 2px; font-size: clamp(7.5px, 2.2vw, 9px); }
  .photographer-back { min-height: 30px; padding: 3px 0; font-size: 9.5px; }
  .photographer-back::before { margin-right: 3px; font-size: 12px; }

  .photographer-main {
    width: calc(100% - 24px);
    min-height: auto;
    padding: 14px 0 max(18px, env(safe-area-inset-bottom));
    display: block;
  }
  .photographer-choice { grid-template-columns: 1fr; gap: 12px; }
  .photographer-card { min-height: min(39svh, 330px); border-radius: 12px; }
  .photographer-card-content { left: 22px; right: 22px; bottom: 20px; }
  .photographer-card-content strong { font-size: clamp(50px, 16vw, 70px); }
  .photographer-collage { gap: 1.5px; }
}

@media (max-width: 390px) {
  .photographer-nav { gap: 4px; }
  .photographer-logo { font-size: 21px; }
  .photographer-current strong { font-size: 8.5px; }
  .photographer-current span { font-size: 7px; }
  .photographer-back { font-size: 8.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .photographer-collage,
  .collage-cell img {
    transition: none;
    animation: none;
  }
}
