* { box-sizing: border-box }
:root { --soft: #8a8a8a; --pad: clamp(14px, 2.2vw, 28px); --gap: 14px;
  --serif: "Times New Roman", Times, Georgia, serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif }
html { background: #000 }
body { margin: 0; background: #000; color: #fff; font-family: var(--sans); font-weight: 300; line-height: 1.6 }
a { color: inherit }
img { display: block }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer }
:focus-visible { outline: 1px solid #fff; outline-offset: 3px }
[hidden] { display: none !important }

/* header (centered, like the reference) */
.top { position: sticky; top: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px var(--pad) 14px; text-align: center; background: #000; transition: opacity .25s ease }
.top.is-scrolled-away:not(:has(:focus-visible)) { opacity: .24 }
@media (hover: hover) and (pointer: fine) {
  .top.is-scrolled-away:hover { opacity: 1 }
}
.logo { font-family: var(--serif); font-size: 1.6rem; text-decoration: none }
.top nav { display: flex; gap: 6px clamp(12px, 3.5vw, 44px); flex-wrap: wrap; justify-content: center }
.top nav a { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--soft); padding: 4px 0; border-bottom: 1px solid transparent }
.top nav a:hover { color: #fff }
.top nav a.on { color: #fff; border-bottom-color: #fff }

/* photos run edge to edge */
#main { position: relative }
.tab-transition { overflow: clip }
.panel { padding-bottom: 14px }
.panel, .tile { scroll-margin-top: calc(var(--header-height, 132px) + 8px) }
.panel-exit { position: absolute; inset: 0 0 auto; z-index: 1; pointer-events: none }
.wall { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); margin-top: var(--gap) }
.tile { position: relative; display: block; flex: none; overflow: hidden; background: #101010 }
.wall .tile { width: min(100%, 360px); aspect-ratio: 4 / 3 }
.hero { width: 100%; height: max(240px, calc(100svh - var(--header-height, 132px))) }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: opacity .28s ease, transform .7s ease-out }
.tile img.is-pending { opacity: 0 }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .tile:hover img { transform: scale(1.03) }
}
.tile::after { content: ""; position: absolute; inset: 0; border: 1px solid #fff; opacity: 0; transition: opacity .15s; pointer-events: none }
.tile:hover::after, .tile:focus-visible::after { opacity: 1 }
.tile:focus-visible { outline: none }

/* contact */
.contact { min-height: calc(100vh - 150px); display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad) 8vh }
.contact h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: 1.05; margin: 0 }
.sub { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); margin: 14px 0 36px }
.contact ul { list-style: none; margin: 0; padding: 0; max-width: 520px; border-top: 1px solid #333 }
.contact li { display: flex; gap: 28px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid #333 }
.label { width: 64px; flex: none; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--soft) }
.contact li a { font-size: 1.05rem; text-underline-offset: 4px }
.about-copy { max-width: 62ch; margin: 0; color: #cfcfcf; font-size: 1rem; line-height: 1.75 }
.about-copy p { margin: 0 0 1.1em }

/* full-screen viewer */
.viewer-open { overflow: hidden }
.viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; overflow: hidden; touch-action: pan-y pinch-zoom }
.viewer::backdrop { background: transparent }
.vstage { position: absolute; inset: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center }
.vstage img { grid-area: 1 / 1; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain }
.vstatus { position: absolute; top: 50%; left: 50%; translate: -50% -50%; color: #bdbdbd; font-size: .8rem; pointer-events: none }
.vclose, .vcount { position: absolute; top: 12px; padding: 8px; background: #000b; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: #ddd }
.vclose { right: var(--pad) } .vclose:hover { color: #fff }
.vcount { left: var(--pad) }
.vnav { position: absolute; top: 12%; bottom: 12%; width: 84px; font-size: 1.8rem; color: rgba(255,255,255,.55); text-shadow: 0 0 10px #000 }
.vnav:hover { color: #fff }
.vnav:focus-visible { outline-offset: -4px }
.vnav.prev { left: 0 } .vnav.next { right: 0 }
.vtext { position: absolute; left: 64px; right: 64px; bottom: 14px; margin: 0; text-align: center; font-size: .8rem; color: #bdbdbd; text-shadow: 0 0 8px #000 }
@media (max-width: 600px) {
  .vnav { width: 44px; background: rgba(0,0,0,.25) }
  .vtext { left: 48px; right: 48px }
}
@media (prefers-reduced-motion: reduce) {
  .top, .tile img, .tile::after { transition: none }
  .top.is-scrolled-away:not(:has(:focus-visible)) { opacity: 1 }
}

/* About: text with a small photo beside it */
.about-row { display: flex; gap: clamp(24px, 4vw, 56px); align-items: flex-start; flex-wrap: wrap }
.about-row .about-copy { flex: 1 1 340px }
.about-photo { margin: 0; flex: 0 1 260px; width: min(260px, 100%) }
.about-photo img { width: 100%; height: auto; display: block }
