/* ---------- Fonts ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-VariableFont_wght.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #f2f0ef;
  --fg: #111111;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --menu-bg: rgba(233, 245, 219, 0.75);
  --max-width: 1440px;
  --max-width-wide: 1760px;
  --gutter: clamp(20px, 4vw, 56px);
  --gutter-wide: clamp(16px, 2vw, 32px);
  --section-y: clamp(40px, 6vw, 100px);
  --header-y: 14px;
  --page-top-y: clamp(32px, 4vw, 64px);
  --page-title-gap: clamp(20px, 2.5vw, 40px);
  --page-section-gap: clamp(24px, 3vw, 48px);
  --page-follow-gap: clamp(8px, 1vw, 16px);
  --font-sans: "Montserrat", "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, sans-serif;
  --home-footer-height: 68px;
}

/* ---------- Body & typography ---------- */
body {
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  display: flex;
  flex-direction: column;
}

body.menu-open { overflow: hidden; }

body.lightbox-open {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

body.lightbox-click-guard::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: auto;
  background: transparent;
}

body.home {
  min-height: 100vh;
  min-height: 100dvh;
}

body:not(.home) main {
  flex: 1 0 auto;
}

a { color: inherit; text-decoration: none; }
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* ---------- Utilities ---------- */
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Visible focus ring for keyboard users only. */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}
.gallery-card:focus-visible,
.photo-item:focus-visible,
.gallery-open:focus-visible { outline-offset: 4px; }

/* Skip-to-content link for keyboard users. */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 200;
  background: var(--fg);
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: top 180ms ease;
}
.skip-link:focus,
.skip-link:focus-visible { top: 12px; outline: none; }

/* ---------- Shared primitives ---------- */
.page-title,
.gallery-page-title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.page-title {
  margin: 0 0 var(--page-title-gap);
}

.arrow-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.85;
  transform: var(--arrow-transform, none);
  transition: opacity 200ms ease, transform 160ms ease;
  touch-action: manipulation;
}
.arrow-button svg {
  width: var(--arrow-icon-size, 40px);
  height: var(--arrow-icon-size, 40px);
  pointer-events: none;
}
.arrow-button svg path {
  stroke-width: var(--arrow-stroke-width, 2.1);
  vector-effect: non-scaling-stroke;
}
.arrow-button:hover { opacity: 1; }
.arrow-button:active { transform: var(--arrow-transform, none) scale(0.92); }

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--header-y) + env(safe-area-inset-top, 0px)) clamp(40px, 8vw, 140px) var(--header-y);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  transform: translateY(0);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.site-header.header-hidden { transform: translateY(-100%); }
.site-header:focus-within,
body.menu-open .site-header { transform: translateY(0); }
@media (max-width: 900px) {
  .site-header {
    padding-left: var(--gutter-wide);
    padding-right: var(--gutter-wide);
  }
}

.logo {
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: clamp(20px, 4vw, 36px);
  line-height: 1.3;
  text-transform: uppercase;
}

/* ---------- Menu toggle ---------- */
.menu-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 4px 0;
  font: inherit;
  font-size: clamp(16px, 3vw, 28px);
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  cursor: pointer;
  position: relative;
}
.menu-toggle::after {
  content: "";
  display: block;
  height: 1px;
  width: 0;
  background: var(--fg);
  transition: width 200ms ease;
  margin-top: 2px;
}
.menu-toggle:hover::after { width: 100%; }

/* ---------- Slide-in navigation panel ---------- */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.08);
  opacity: 0;
  transition: opacity 320ms ease;
  z-index: 90;
  pointer-events: none;
}
body.menu-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(280px, 38vw, 440px);
  background: var(--menu-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: var(--fg);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: calc(28px + env(safe-area-inset-top, 0px)) clamp(32px, 5vw, 64px) calc(40px + env(safe-area-inset-bottom, 0px));
}
body.menu-open .nav-panel { transform: translateX(0); }
@media (max-width: 560px) {
  .nav-panel { width: 100%; }
}

.nav-close {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 4px;
  margin: 0 0 0 auto;
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 180ms ease;
}
.nav-close:hover { opacity: 0.65; }

.nav-panel-links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 28px);
  align-items: flex-end;
  text-align: right;
}
.nav-panel-links a {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--fg);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 200ms ease;
}
.nav-panel-links a:hover,
.nav-panel-links a.active { border-bottom-color: var(--fg); }

.nav-panel-social {
  margin-top: auto;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  padding-top: clamp(40px, 6vw, 80px);
}
.nav-panel-social a {
  color: var(--fg);
  display: inline-flex;
  transition: opacity 180ms ease;
}
.nav-panel-social svg {
  width: 40px;
  height: 40px;
}
.nav-panel-social a:hover { opacity: 0.6; }

/* ---------- Home — hero slideshow ---------- */
.hero-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0;
}
body.home .logo,
body.home .menu-toggle { color: #fff; }
body.home .menu-toggle::after { background: #fff; }

body.home .hero-header {
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), color 240ms ease, background-color 240ms ease, border-color 240ms ease;
}
body.home.home-scrolled .hero-header {
  color: var(--fg);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom-color: var(--line);
}
body.home.home-scrolled .logo,
body.home.home-scrolled .menu-toggle { color: var(--fg); }
body.home.home-scrolled .menu-toggle::after { background: var(--fg); }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  z-index: 1;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2500ms ease;
  z-index: 1;
}
.hero-slideshow.is-starting .hero-slide {
  transition: none;
}
.hero-slide.active {
  opacity: 1;
  z-index: 2;
}
.hero-slide-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-arrow {
  --arrow-transform: translateY(-50%);
  --arrow-icon-size: 48px;
  --arrow-stroke-width: 2.1;
  position: absolute;
  top: 50%;
  width: 72px;
  height: 72px;
  color: #fff;
  z-index: 5;
}
.hero-arrow-prev { left: clamp(8px, 1.5vw, 28px); }
.hero-arrow-next { right: clamp(8px, 1.5vw, 28px); }
@media (max-width: 560px) {
  .hero-arrow {
    --arrow-icon-size: 36px;
    width: 56px;
    height: 56px;
  }
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 14px));
  z-index: 6;
  padding: 0;
  border: 0;
  background: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-family: inherit;
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  cursor: pointer;
  transform: translateX(-50%);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}
.hero-scroll-cue svg {
  animation: hero-scroll-prompt 1.8s ease-in-out infinite;
  filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.55));
}

@keyframes hero-scroll-prompt {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

.home-introduction {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - var(--home-footer-height));
  min-height: calc(100svh - var(--home-footer-height));
  min-height: calc(100dvh - var(--home-footer-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.home-introduction-inner {
  width: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 150px) var(--gutter-wide);
}
.home-introduction-kicker {
  margin: 0 0 clamp(18px, 2vw, 28px);
  color: var(--muted);
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.home-introduction h2 {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(36px, 6vw, 84px);
  font-weight: 600;
  line-height: 1.08;
}
.home-introduction-copy {
  max-width: 760px;
  margin: clamp(30px, 4vw, 56px) 0 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
}
.home-introduction-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px clamp(28px, 4vw, 60px);
  margin-top: clamp(40px, 6vw, 80px);
}
.home-introduction-links a {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--fg);
  font-size: clamp(15px, 1.3vw, 18px);
  transition: opacity 180ms ease;
}
.home-introduction-links a:hover { opacity: 0.55; }

.intro.map-page-content {
  padding-bottom: var(--section-y);
}
.map-page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  column-gap: clamp(32px, 7vw, 120px);
  align-items: end;
}
.map-page-heading .page-title {
  margin-bottom: 0;
}
.map-page-copy {
  max-width: 440px;
  margin: 0 0 0.45em;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.6;
}
.home-map-frame {
  margin-top: clamp(42px, 6vw, 88px);
}
.home-map {
  position: relative;
  width: 100%;
  height: clamp(440px, 57vw, 760px);
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #e9e8e6;
}
.home-map-canvas {
  position: absolute;
  inset: 0;
}
.home-map-loading,
.home-map-fallback {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 0;
  margin: 0;
  transform: translate(-50%, -50%);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.home-map.is-ready .home-map-loading {
  display: none;
}
.home-map-fallback {
  width: max-content;
  max-width: calc(100% - 40px);
  text-align: center;
}
.home-map-fallback a {
  border-bottom: 1px solid currentColor;
}
.home-map .maplibregl-ctrl-group {
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 0;
  box-shadow: none;
}
.home-map .maplibregl-ctrl-group button {
  background-color: rgba(255, 255, 255, 0.94);
}
.home-map .maplibregl-ctrl-attrib {
  font-family: var(--font-sans);
  font-size: 9px;
}
.home-map .maplibregl-popup-content {
  min-width: min(250px, 72vw);
  padding: 16px 18px;
  border-radius: 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
  font-family: var(--font-sans);
}
.home-map-popup-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.home-map-popup-date {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.home-map-popup-link {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--fg);
  font-size: 12px;
}
.home-map .maplibregl-popup-close-button {
  width: 30px;
  height: 30px;
  font-size: 20px;
}

.home-reveal-ready [data-home-reveal] {
  opacity: 0;
  transform: translateX(clamp(24px, 5vw, 72px));
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--home-reveal-delay, 0ms);
  will-change: opacity, transform;
}
.home-reveal-ready [data-home-reveal].is-visible {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 560px) {
  .hero-scroll-cue {
    width: min(78vw, 280px);
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px));
  }
  .home-introduction-inner {
    padding-top: 64px;
    padding-bottom: 72px;
  }
  .home-introduction-links {
    align-items: flex-start;
    flex-direction: column;
  }
  .map-page-heading {
    display: block;
  }
  .map-page-copy {
    margin-top: 20px;
  }
  .home-map-frame {
    margin-top: 38px;
  }
  .home-map {
    height: min(68svh, 560px);
    min-height: 430px;
  }
}
/* ---------- Intro pages ---------- */
.intro {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: var(--page-top-y) var(--gutter-wide) var(--page-section-gap);
}
.intro-copy {
  columns: 2;
  column-fill: balance;
  column-gap: clamp(32px, 5vw, 80px);
}
.intro-copy p {
  max-width: none;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.45;
  color: var(--fg);
  margin: 0;
}
.intro-copy p + p {
  margin-top: 1em;
}
.intro-copy a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
@media (max-width: 800px) {
  .intro-copy {
    columns: 1;
  }
}

/* ---------- Legal page ---------- */
.legal {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: var(--page-top-y) var(--gutter-wide) var(--section-y);
}

.legal-content {
  max-width: 760px;
  display: grid;
  gap: var(--page-section-gap);
}

.legal-content section,
.legal-content h2,
.legal-content p,
.legal-content address {
  margin: 0;
}

.legal-content h2 {
  margin-bottom: 10px;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  line-height: 1.2;
}

.legal-content p,
.legal-content address {
  color: var(--fg);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65;
}

.legal-content address {
  font-style: normal;
}

/* ---------- Gallery page ---------- */
.gallery-header {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: var(--page-top-y) var(--gutter-wide) var(--page-section-gap);
}

.gallery-page-title {
  margin: 0 0 var(--page-title-gap);
}

.gallery-tags {
  display: flex;
  flex-wrap: wrap;
  column-gap: clamp(14px, 1.6vw, 26px);
  row-gap: clamp(7px, 0.8vw, 13px);
  font-size: clamp(13px, 1vw, 15px);
}
.gallery-tags a {
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}
.gallery-tags a:hover { color: var(--fg); }
.gallery-tags a.active {
  color: var(--fg);
  border-bottom-color: var(--fg);
  font-weight: 600;
}

.gallery-grid,
.photo-grid {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: var(--page-follow-gap) var(--gutter-wide) var(--section-y);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.5vw, 24px);
}
@media (max-width: 900px) {
  .gallery-grid,
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery-grid,
  .photo-grid { grid-template-columns: 1fr; }

  .gallery-grid { row-gap: 20px; }

  .gallery-card-meta { padding-top: 8px; }
}

.gallery-card {
  display: block;
  color: inherit;
}

.gallery-card-media,
.photo-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f2f2f2;
}
.gallery-card-media img,
.photo-item img,
.photo-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.6, 0.2, 1), opacity 300ms ease;
}
.gallery-card:hover .gallery-card-media img,
.photo-item:hover img {
  transform: scale(1.04);
  opacity: 0.92;
}

.video-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 2px;
}

.gallery-card-meta { padding: 14px 2px 0; }
.gallery-card-title {
  margin: 0;
  font-size: clamp(17px, 1.3vw, 22px);
  font-weight: 600;
}
.gallery-card-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.01em;
}

/* ---------- Photo grid (filter view) ---------- */

.photo-item {
  appearance: none;
  border: 0;
  padding: 0;
  width: 100%;
  display: block;
  cursor: pointer;
}
.photo-video {
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
  cursor: default;
}
.photo-video video {
  height: auto;
  display: block;
}

/* ---------- Shared lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 86px clamp(80px, 8vw, 168px) 50px;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  --lightbox-ui-opacity: 1;
  --lightbox-ui-fade-duration: 250ms;
}
.lightbox:fullscreen {
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.lightbox.is-fullscreen-pending {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.lightbox.is-closing {
  pointer-events: none;
}

.lightbox-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(84px, 150px) minmax(150px, auto);
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: 16px clamp(16px, 2vw, 28px) 10px;
  pointer-events: none;
}

.lightbox-counter {
  align-self: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 40px;
  white-space: nowrap;
  transition: opacity 250ms ease;
}

.lightbox-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.lightbox-stage {
  margin: 0;
  width: min(100%, 1600px);
  max-height: calc(100vh - 136px);
  max-height: calc(100dvh - 136px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: visible;
  touch-action: pan-y;
}

.lightbox-media {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: calc(100vh - 166px);
  max-height: calc(100dvh - 166px);
  line-height: 0;
}

.lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 166px);
  max-height: calc(100dvh - 166px);
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.lightbox-caption {
  min-height: 1.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: min(100%, 860px);
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(12px, 0.9vw, 14px);
  text-align: center;
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
}

.lightbox-caption-title {
  font-weight: 600;
  line-height: 1.35;
}

.lightbox-tool {
  appearance: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-tool:hover,
.lightbox-tool[aria-pressed="true"],
.lightbox-tool.is-confirming {
  opacity: 0.72;
}

.lightbox-tool:disabled {
  cursor: default;
  opacity: 0.45;
}

.lightbox-arrow {
  --arrow-transform: translateY(-50%);
  --arrow-icon-size: 40px;
  --arrow-stroke-width: 2.1;
  position: absolute;
  top: 50%;
  width: clamp(42px, 5vw, 62px);
  height: clamp(56px, 6vw, 76px);
  border-radius: 0;
  background: transparent;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
  opacity: var(--lightbox-ui-opacity);
  transition: opacity var(--lightbox-ui-fade-duration) ease, transform 160ms ease;
  will-change: opacity, transform;
  z-index: 3;
}

.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }

.lightbox-counter,
.lightbox-tool:not(.lightbox-close) {
  opacity: var(--lightbox-ui-opacity);
  transition: opacity var(--lightbox-ui-fade-duration) ease;
  will-change: opacity;
}

@media (min-width: 901px) {
  .lightbox-arrow {
    position: fixed;
    top: 50vh;
    top: 50dvh;
  }

  .lightbox-prev { left: clamp(64px, 11vw, 220px); }
  .lightbox-next { right: clamp(64px, 11vw, 220px); }
}

.lightbox.is-ui-hidden {
  --lightbox-ui-opacity: 0;
  --lightbox-ui-fade-duration: 500ms;
}

.lightbox.is-ui-hidden .lightbox-counter,
.lightbox.is-ui-hidden .lightbox-tool:not(.lightbox-close),
.lightbox.is-ui-hidden .lightbox-arrow {
  pointer-events: none;
}

.lightbox.is-ui-hidden .lightbox-close {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .lightbox {
    padding: 82px 20px 76px;
  }

  .lightbox-topbar {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 12px 14px 8px;
  }

  .lightbox-counter {
    line-height: 40px;
  }

  .lightbox-stage {
    max-height: calc(100vh - 118px);
    max-height: calc(100dvh - 118px);
  }

  .lightbox-media,
  .lightbox-image {
    max-height: calc(100vh - 156px);
    max-height: calc(100dvh - 156px);
  }

  .lightbox-arrow {
    width: 44px;
    height: 62px;
  }
}

@media (max-width: 520px) {
  .lightbox {
    padding: 78px 14px 72px;
  }

  .lightbox-tool {
    width: 44px;
    height: 44px;
  }

  .lightbox-tools {
    gap: 5px;
  }

  .lightbox-caption {
    font-size: 12px;
  }
}

/* ---------- About page — profiles ---------- */
.profiles {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: var(--page-follow-gap) var(--gutter-wide) var(--section-y);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 5vw, 80px);
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 2.5vw, 40px);
  align-items: start;
}

.profile-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f2f2f2;
  margin: 0;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1100px) {
  .profiles { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .profile {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.profile h2 {
  margin: 0 0 4px;
  font-size: clamp(20px, 1.4vw, 24px);
  font-weight: 500;
}
.profile-role {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.profile-text p:not(.profile-role) {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: #2a2a2a;
}

/* ---------- Collection page ---------- */
.project-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--page-top-y) var(--gutter) var(--page-section-gap);
}

.project-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0 0 var(--page-title-gap);
}
.project-sub {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.project-gallery {
  --masonry-row: 8px;
  --masonry-gap: clamp(20px, 2.5vw, 36px);
  max-width: var(--max-width);
  margin: 0 auto calc(-1 * var(--masonry-trailing-space, 0px));
  padding: var(--page-follow-gap) var(--gutter) 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: var(--masonry-row);
  gap: var(--masonry-gap);
  align-items: start;
}
.js .project-gallery.masonry-pending {
  visibility: hidden;
}
.masonry-loading .project-next,
.masonry-loading .site-footer {
  visibility: hidden;
}
.project-gallery.masonry-fallback {
  grid-auto-rows: auto;
  margin-bottom: 0;
}
.project-gallery.masonry-fallback .gallery-item {
  grid-row-end: auto;
}
.js .project-gallery.fade-pending > .gallery-item:nth-child(n + 5) {
  transition: opacity 600ms ease, transform 600ms ease;
}
.js .project-gallery.fade-pending > .gallery-item:nth-child(n + 5):not(.is-visible) {
  opacity: 0;
  transform: translateY(12px);
}
@media (max-width: 700px) {
  .project-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .gallery-item,
  .gallery-item.wide {
    grid-column: auto;
    grid-row-end: auto !important;
  }
}

.gallery-item {
  margin: 0;
  grid-row-end: span var(--masonry-span, 1);
}
.gallery-item.wide { grid-column: 1 / -1; }
.gallery-open {
  appearance: none;
  border: 0;
  padding: 0;
  width: 100%;
  display: block;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: auto;
  display: block;
}
.video-caption {
  display: grid;
  gap: 0.25rem;
  padding-top: 0.65rem;
  line-height: 1.4;
}
.video-title { font-weight: 600; }
.video-description { color: var(--muted); }
.gallery-item.crop-landscape .gallery-open { aspect-ratio: 4 / 3; }
.gallery-item.crop-portrait .gallery-open { aspect-ratio: 3 / 4; }
.gallery-item.crop-landscape .gallery-open,
.gallery-item.crop-portrait .gallery-open {
  overflow: hidden;
}
.gallery-item.crop-landscape img,
.gallery-item.crop-portrait img {
  height: 100%;
  object-fit: cover;
}
.gallery-item figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-next {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 50px var(--gutter);
}
.project-next a {
  font-size: clamp(18px, 1.25vw, 20px);
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.project-next a:hover { border-color: var(--fg); }

@media (max-width: 900px) {
  .project-header {
    padding-left: var(--gutter-wide);
    padding-right: var(--gutter-wide);
  }

  .project-gallery {
    padding-left: var(--gutter-wide);
    padding-right: var(--gutter-wide);
  }
}

/* ---------- 404 page ---------- */
.notfound {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(80px, 14vw, 180px) var(--gutter) clamp(60px, 10vw, 140px);
  text-align: center;
}
.notfound-code {
  margin: 0;
  font-size: clamp(72px, 14vw, 140px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--fg);
}
.notfound-title {
  margin: 16px 0 12px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.notfound-text {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 16px;
}
.notfound-back a {
  font-size: 15px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px var(--gutter);
  text-align: center;
}
.footer-links {
  margin: 0 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.footer-copy {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.footer-separator {
  margin: 0 0.45em;
}
.footer-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.footer-link:hover { color: var(--fg); }
@media (max-width: 900px) {
  .site-header {
    padding-top: calc(var(--header-y) + env(safe-area-inset-top, 0px));
    padding-bottom: var(--header-y);
  }

  .footer-inner {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .home-reveal-ready [data-home-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-slide {
    transition: none;
  }
}
