:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #191919;
  font-family: "aktiv-grotesk", Arial, Helvetica, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; border: 0; background: transparent; cursor: pointer; }
a { color: inherit; text-decoration: none; }
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 27px;
  background: linear-gradient(var(--paper), #ffffffd9 60%, transparent);
  pointer-events: none;
}
.site-header a, .site-header nav { pointer-events: auto; }
.wordmark { display: block; flex: none; }
.wordmark img { display: block; width: 110px; height: 110px; }

nav { display: flex; gap: 30px; }
nav button, nav #open-info {
  font-family: "aktiv-grotesk", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0;
  padding: 10px 0;
}
nav button:hover, a:hover { opacity: .7; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 130px 7vw 120px; }
.photograph { display: block; margin: 0; padding: 0; }
.photograph img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.canvas-ready { overflow: hidden; overscroll-behavior: none; }
.canvas-ready .gallery {
  position: fixed;
  inset: 0;
  display: block;
  overflow: hidden;
  padding: 0;
  touch-action: none;
  cursor: grab;
  outline-offset: -4px;
}
.canvas-ready .gallery.is-dragging,
.canvas-ready .gallery.is-dragging .photograph { cursor: grabbing; }
.canvas-ready .photograph {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
  cursor: grab;
}
.canvas-ready .photograph img { width: 100%; height: 100%; object-fit: contain; }
.canvas-ready .photograph:hover img { opacity: .94; }
.gallery-footer {
  position: fixed;
  z-index: 2;
  inset: auto 0 0;
  padding: 19px 27px max(19px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: .1em;
  background: linear-gradient(transparent, #ffffffd9 50%, var(--paper));
  pointer-events: none;
}
.gallery-footer button { pointer-events: auto; }
.gallery-footer p { margin: 0; color: #555555; }
.gallery-footer p span { font-size: 17px; margin-left: 7px; }
.edition { color: #666666; }
.playback { padding: 10px 0; display: flex; gap: 7px; align-items: center; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.playback[hidden], [hidden],
.playback:not(.is-paused) .play-icon,
.playback.is-paused .pause-icon { display: none; }
dialog {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #dddddd;
  max-width: calc(100vw - 32px);
  max-height: calc(100svh - 32px);
}
dialog::backdrop { background: #000b; backdrop-filter: blur(8px); }
.studio-dialog { width: 700px; padding: 60px 38px 38px; }
.close-dialog {
  position: absolute;
  top: 14px;
  right: 19px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.close-dialog span { font-size: 22px; font-weight: 300; }
.studio-dialog section + section { margin-top: 28px; }
.studio-dialog h2 { font-family: "aktiv-grotesk", Arial, Helvetica, sans-serif; font-size: clamp(22px, 4vw, 30px); font-weight: 700; margin: 0 0 14px; }
.about-content { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: start; }
.about-portrait { width: 100%; height: auto; }
.about-content p { font-size: 15px; line-height: 1.8; margin: 0; color: #333333; }
.about-bio p + p { margin-top: 1em; }
.email { display: block; font-family: "aktiv-grotesk", Arial, Helvetica, sans-serif; font-size: clamp(16px, 3vw, 22px); overflow-wrap: anywhere; }
.social-links { display: grid; gap: 15px; }
.social-links a { display: flex; align-items: center; gap: 10px; border-top: 1px solid #dddddd; padding-top: 15px; font-size: 14px; }
.social-links svg { width: 18px; height: 18px; flex: none; }
.viewer { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; padding: 65px 5vw 75px; border: 0; }
.viewer-image { width: 100%; height: 100%; display: block; object-fit: contain; }
.viewer-navigation { position: absolute; bottom: max(10px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; gap: 30px; align-items: center; }
.viewer-navigation button { width: 44px; height: 44px; font-size: 24px; }
.image-count { font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
  .site-header { padding: 12px 16px; align-items: center; gap: 10px; }
  .wordmark img { width: 84px; height: 84px; }
  nav { gap: 14px; padding-top: 2px; }
  nav button, nav #open-info { font-size: 13px; padding: 4px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .gallery-footer { padding-left: 16px; padding-right: 16px; font-size: 9px; }
  .edition { display: none; }
  .gallery-footer p { font-size: 9px; }
  .studio-dialog { padding: 55px 24px 28px; }
  .about-content { grid-template-columns: 1fr; gap: 20px; }
  .about-portrait { max-width: 150px; }
  .about-content p { font-size: 14px; }
  h2 { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  dialog::backdrop { backdrop-filter: none; }
}
.gallery-footer p { display: flex; align-items: center; gap: 9px; }

.about-bio .profile-link { margin-top: 1em; }
.profile-link a, .profile-page a { text-decoration: underline; text-underline-offset: .2em; }
.profile-page { width: min(100% - 40px, 740px); margin: 0 auto; padding: clamp(32px, 8vw, 90px) 0; line-height: 1.6; }
.profile-page h1 { font-size: clamp(40px, 8vw, 72px); line-height: 1.05; margin: 32px 0 8px; }
.profile-intro { margin: 0 0 32px; font-size: 18px; }
.profile-page section { border-top: 1px solid #ddd; margin-top: 30px; padding-top: 20px; }
.profile-page h2 { margin: 0 0 8px; font-size: 20px; }
.profile-page section p, .profile-page ul { margin: 0; overflow-wrap: anywhere; }
.profile-page ul { padding-left: 20px; }
