:root {
  color-scheme: light;
  --orange: #f26a21;
  --ink: #1d1d1f;
  --muted: #6e6e73;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.site-header { position: sticky; top: 0; z-index: 100; height: 54px; background: #242426; }
.nav-inner {
  width: min(100% - 48px, 1120px);
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  color: var(--orange);
  text-decoration: none;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -.075em;
  line-height: 1;
}
.header-nav { display: flex; align-items: center; gap: clamp(20px, 3.5vw, 48px); }
.header-nav a {
  color: #d2d2d7;
  font-size: 13px;
  text-decoration: none;
  transition: color .2s ease;
}
.header-nav a:hover, .header-nav a[aria-current="page"] { color: #fff; }
.header-nav a:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
.gallery-main { width: min(100% - 48px, 1120px); margin: auto; overflow-x: clip; padding-bottom: clamp(76px, 9vw, 120px); }
.gallery-intro { padding: clamp(74px, 9vw, 130px) 0 clamp(44px, 7vw, 70px); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.back-link { transition: color .2s ease, transform .2s ease; }
.back-link:hover { color: var(--orange); transform: translateX(-4px); }
h1 {
  margin: 30px 0 0;
  font-size: clamp(66px, 9vw, 118px);
  font-weight: 700;
  letter-spacing: -.075em;
  line-height: .95;
}
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.gallery-heading h1 { animation: title-arrive .65s cubic-bezier(.2,.8,.2,1) both; }
.gallery-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; padding-bottom: 5px; }
.theme-switcher { display: inline-flex; align-items: center; gap: 11px; }
.theme-label { margin-right: 2px; color: var(--muted); font-size: 12px; }
.theme-count { min-width: 47px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; text-align: center; }
.theme-switcher button {
  width: 36px;
  height: 36px;
  border: 1px solid #d2d2d7;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 19px;
  line-height: 1;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.theme-switcher button:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: scale(1.07); }
.theme-switcher button:disabled { cursor: wait; opacity: .5; }
.theme-switcher button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.view-picker { display: flex; align-items: center; gap: 15px; padding-bottom: 5px; animation: controls-arrive .7s .12s both; }
.view-label { color: var(--muted); font-size: 12px; white-space: nowrap; }
.view-options { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: #f0f0f2; }
.view-option {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #606065;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 13px;
  transition: background .25s ease, box-shadow .25s ease, color .25s ease, transform .25s ease;
}
.view-option:hover { color: var(--ink); transform: translateY(-1px); }
.view-option[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 5px #00000013; }
.view-option:focus-visible, .focus-controls button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.photo-list { display: grid; gap: clamp(50px, 6vw, 94px); }
figure { margin: 0; }
figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #f5f5f7;
}
figure.portrait { max-width: 760px; margin-inline: auto; }
.photo-list figure { animation: photo-arrive .65s cubic-bezier(.2,.8,.2,1) both; }
.photo-list figure:nth-child(2) { animation-delay: .1s; }
.photo-list[data-has-switched="true"] figure { animation: none; }
.photo-list[data-view="grid"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.photo-list[data-view="grid"] figure.portrait { max-width: none; width: 100%; }
.photo-list[data-view="grid"] figure { min-width: 0; overflow: hidden; }
.photo-list[data-view="grid"] img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.photo-list[data-view="grid"] figure:hover img { transform: scale(1.035); }
.photo-list[data-view="list"] { gap: 0; border-top: 1px solid #e5e5e7; }
.photo-list[data-view="list"] figure,
.photo-list[data-view="list"] figure.portrait {
  display: grid;
  grid-template-columns: minmax(140px, 240px) 1fr;
  align-items: center;
  gap: clamp(22px, 5vw, 70px);
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 24px 0;
  border-bottom: 1px solid #e5e5e7;
}
.photo-list[data-view="list"] img { width: 100%; height: 150px; object-fit: cover; transition: transform .4s ease; }
.photo-list[data-view="list"] figure:hover img { transform: scale(1.018); }
.photo-list[data-view="list"] figcaption { align-items: baseline; padding-top: 0; font-size: 15px; }
.photo-list[data-view="list"] figcaption span:first-child { color: var(--ink); font-size: clamp(26px, 3vw, 39px); font-weight: 600; letter-spacing: -.05em; }
.photo-list[data-view="focus"] { display: block; }
.photo-list[data-view="focus"] figure { display: none; }
.photo-list[data-view="focus"] figure.is-active,
.photo-list[data-view="focus"] figure.portrait.is-active { display: flex; flex-direction: column; align-items: center; max-width: none; width: 100%; }
.photo-list[data-view="focus"] img { width: auto; max-width: 100%; max-height: min(68vh, 740px); object-fit: contain; }
.photo-list[data-view="focus"] figcaption { width: min(100%, 900px); }
.focus-controls { display: flex; justify-content: center; align-items: center; gap: 26px; margin: 24px 0 0; }
.focus-controls[hidden] { display: none; }
.focus-controls button { width: 44px; height: 44px; border: 1px solid #d2d2d7; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; font-size: 21px; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.focus-controls button:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: scale(1.07); }
.focus-controls span { min-width: 54px; text-align: center; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .02em;
}
.gallery-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #e5e5e7;
  margin: 100px 0 0;
  padding: 28px 0 46px;
  color: var(--muted);
  font-size: 13px;
}
.gallery-footer a { color: var(--orange); text-decoration: none; }
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(40px, 6vw, 92px);
  padding: clamp(76px, 9vw, 128px) 0 clamp(80px, 10vw, 140px);
}
.about-intro h1 { margin-top: 28px; }
.about-lead {
  max-width: 590px;
  margin: 28px 0 0;
  font-size: clamp(22px, 2.3vw, 31px);
  line-height: 1.25;
  letter-spacing: -.035em;
}
.about-portrait {
  display: block;
  width: 100%;
  height: clamp(350px, 38vw, 500px);
  object-fit: cover;
  object-position: center bottom;
  background: #fff;
}
.about-details {
  border-top: 1px solid #dedee2;
  padding: 52px 0 75px;
}
.about-details h2 {
  margin: 0 0 20px;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -.045em;
}
.about-details p {
  max-width: 650px;
  margin: 0;
  color: #424245;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -.012em;
}
.about-next {
  background: #e9e9ed;
  padding: 70px 24px 78px;
  text-align: center;
}
.about-next h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.055em; }
.about-next a {
  display: inline-flex;
  margin-top: 28px;
  padding: 14px 24px;
  border-radius: 999px;
  background: #0071e3;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}
.about-next a:hover { background: #0077ed; }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
@keyframes title-arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes controls-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes photo-arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) {
  .gallery-heading { align-items: start; flex-direction: column; gap: 28px; }
  .gallery-tools { align-items: flex-start; width: 100%; padding-bottom: 0; }
  .view-picker { padding-bottom: 0; }
}
@media (max-width: 600px) {
  .site-header { height: 50px; }
  .nav-inner, .gallery-main { width: calc(100% - 36px); }
  .wordmark { font-size: 22px; }
  .header-nav { gap: clamp(12px, 4vw, 19px); }
  .header-nav a { font-size: 12px; }
  .gallery-intro { padding: 68px 0 46px; }
  h1 { margin-top: 26px; }
  .view-picker { width: 100%; display: block; }
  .view-label { display: block; margin-bottom: 10px; }
  .view-options { width: 100%; justify-content: space-between; }
  .view-option { flex: 1; padding: 9px 7px; }
  .photo-list { gap: 56px; }
  .photo-list[data-view="grid"] { gap: 12px; }
  .photo-list[data-view="grid"] figcaption { display: block; font-size: 11px; }
  .photo-list[data-view="grid"] figcaption span:last-child { display: block; margin-top: 5px; }
  .photo-list[data-view="list"] figure,
  .photo-list[data-view="list"] figure.portrait { grid-template-columns: 105px 1fr; gap: 18px; padding: 15px 0; }
  .photo-list[data-view="list"] img { height: 90px; }
  .photo-list[data-view="list"] figcaption { display: block; }
  .photo-list[data-view="list"] figcaption span:last-child { display: block; margin-top: 6px; font-size: 11px; }
  .photo-list[data-view="focus"] img { max-height: 58vh; }
  .gallery-footer { margin-top: 70px; padding-bottom: 34px; }
  .about-intro { grid-template-columns: 1fr; gap: 44px; padding: 68px 0 82px; }
  .about-intro h1 { margin-top: 24px; }
  .about-lead { margin-top: 24px; }
  .about-portrait { height: 360px; }
  .about-details { padding: 42px 0 66px; }
  .about-next { padding: 58px 20px 65px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}
@media (max-width: 340px) {
  .site-header { height: 64px; }
  .nav-inner { flex-direction: column; justify-content: center; gap: 4px; }
  .wordmark { font-size: 19px; }
  .header-nav { gap: 10px; }
  .header-nav a { font-size: 10px; white-space: nowrap; }
}

/* Focus keeps two quiet previews behind the current frame. */
.photo-list[data-view="focus"] { display: none; }
.focus-stage[hidden] { display: none; }
.focus-stage { --focus-height: min(62svh, 640px); padding-top: 12px; display: grid; grid-template-rows: var(--focus-height) auto; }
.focus-deck {
  position: relative; isolation: isolate; margin: 0 auto; align-self: center;
  width: min(850px, calc(var(--focus-height) * var(--focus-ratio, 1.33)), calc(100% - 48px));
  aspect-ratio: var(--focus-ratio, 1.33);
  outline-offset: 9px; touch-action: pan-y; cursor: grab;
}
.focus-deck:active { cursor: grabbing; }
.focus-deck:focus-visible { outline: 2px solid var(--orange); }
.focus-photo {
  position: absolute; inset: 0; overflow: hidden; border-radius: 12px;
  background: #f2f2f4; border: 1px solid #e5e5e9;
  box-shadow: 0 5px 18px #0000000a; transform-origin: center top;
}
.focus-photo img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; pointer-events: none; }
.focus-photo[data-depth="0"] { z-index: 3; transform: none; }
.focus-photo[data-depth="1"] { z-index: 2; transform: translate(11px, 10px) scale(.985); filter: brightness(.96); }
.focus-photo[data-depth="2"] { z-index: 1; transform: translate(22px, 20px) scale(.97); filter: brightness(.92); }
.focus-photo[data-depth="1"] img, .focus-photo[data-depth="2"] img { object-fit: cover; }
.focus-outgoing { z-index: 4 !important; }
.focus-caption { margin: 44px 0 0; color: var(--muted); font-size: 13px; text-align: center; letter-spacing: .01em; }
.focus-controls { gap: 18px; }
@media (max-width: 600px) {
  .focus-stage { --focus-height: min(56svh, 520px); display: block; }
  .focus-caption { margin-top: 38px; }
}
