/* ---------- Tokens ---------- */
:root {
  --bg: #000;
  --text: #fff;
  --text-soft: #d6d6d6;
  --text-dim: #8a8a8a;
  --line: #1a1a1a;
  --font: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --gap: clamp(10px, 2.05vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  text-align: center;
  padding: clamp(20px, 2.6vw, 48px) 16px clamp(18px, 2.2vw, 40px);
}

.site-header--ruled { border-bottom: 1px solid var(--line); }

.brand {
  display: inline-block;
  font-size: clamp(1.4rem, 1.7vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 1.4vw, 26px);
  margin-top: clamp(10px, 1.1vw, 20px);
}

.nav a {
  font-size: clamp(1rem, 1.15vw, 1.35rem);
  font-weight: 400;
  color: var(--text-soft);
  transition: color 0.2s ease;
}

.nav a:hover { color: var(--text); }

.nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

/* Pages where the design dims the inactive links */
.nav--dim a:not([aria-current="page"]) { color: var(--text-dim); }
.nav--dim a:not([aria-current="page"]):hover { color: var(--text); }

/* ---------- Home: hero ---------- */
.hero {
  position: relative;
  height: clamp(420px, 50vw, 960px);
  overflow: hidden;
  background: var(--bg);
}

.hero__img {
  position: absolute;
  top: 0;
  right: 0;
  width: 72%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%);
          mask-image: linear-gradient(to right, transparent 0, #000 22%);
}

.hero__text {
  position: absolute;
  left: 8%;
  top: 49%;
  transform: translateY(-50%);
}

.hero__eyebrow {
  margin: 0 0 0.35em;
  font-size: clamp(0.8rem, 0.95vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  font-size: clamp(1.9rem, 3.1vw, 3.75rem);
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.1;
  text-transform: uppercase;
}

/* ---------- Home: about ---------- */
.about {
  display: grid;
  grid-template-columns: 30% 1fr;
  column-gap: 12%;
  align-items: center;
  padding: clamp(64px, 6vw, 120px) 8% clamp(64px, 6vw, 120px) 14.9%;
  scroll-margin-top: 0;
}

.about__photo {
  aspect-ratio: 2 / 3;
  width: 100%;
  object-fit: cover;
}

.about__body {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

.about__title {
  margin: 0 0 1em;
  font-size: clamp(1.3rem, 1.6vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about__body p {
  margin: 0;
  font-size: clamp(1rem, 1.05vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-soft);
}

/* ---------- Gallery ---------- */
.page-title {
  text-align: center;
  padding: clamp(28px, 3vw, 56px) 16px 0;
}

.page-title h1 {
  margin: 0;
  font-size: clamp(1.7rem, 2vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.page-title p {
  margin: 0.9em 0 0;
  font-size: clamp(0.85rem, 1.05vw, 1.2rem);
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

.gallery {
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
  width: min(87.5%, 1680px);
  margin: clamp(40px, 5vw, 96px) auto clamp(60px, 6vw, 120px);
}

.gallery__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.gallery img { width: 100%; }

.gallery__item {
  position: relative;
  overflow: hidden;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  color: inherit;
  font: inherit;
}

.gallery__item img {
  transition: filter 0.35s ease;
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.32);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.gallery__label {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8%;
  text-align: center;
  font-size: clamp(1.05rem, 1.5vw, 1.8rem);
  font-weight: 600;
  line-height: 1.2;
  color: #000;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

/* Hover effect only on devices that can hover (not touch screens) */
@media (hover: hover) {
  .gallery__item:hover img { filter: blur(10px); }
  .gallery__item:hover::after,
  .gallery__item:hover .gallery__label { opacity: 1; }
}

.gallery__item:focus-visible img { filter: blur(10px); }
.gallery__item:focus-visible::after,
.gallery__item:focus-visible .gallery__label { opacity: 1; }

.gallery__item:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .gallery {
    display: block;
    column-count: 2;
    column-gap: var(--gap);
    width: 92%;
  }
  .gallery__col { display: contents; }
  .gallery img {
    break-inside: avoid;
    margin-bottom: var(--gap);
  }
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 120px);
}

.contact__photo {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center top;
}

.contact__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 5%;
  text-align: center;
}

.contact__title {
  margin: 0 0 1.1em;
  font-size: clamp(1.9rem, 2.4vw, 2.9rem);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.contact__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1.05rem, 1.5vw, 1.7rem);
  letter-spacing: 0.05em;
  line-height: 1.9;
}

.contact__label { color: var(--text-dim); }

.contact__list a {
  color: var(--text);
  overflow-wrap: anywhere;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact__list a:hover { border-bottom-color: var(--text-dim); }

/* ---------- Small screens ---------- */
@media (max-width: 800px) {
  .hero { height: clamp(440px, 118vw, 640px); }

  .hero__img {
    width: 100%;
    object-position: 32% center;
    -webkit-mask-image: linear-gradient(to top, transparent 0, #000 45%);
            mask-image: linear-gradient(to top, transparent 0, #000 45%);
  }

  .hero__text {
    left: 7%;
    top: auto;
    bottom: 9%;
    transform: none;
  }

  .about {
    grid-template-columns: 1fr;
    row-gap: 40px;
    padding: 56px 7%;
  }

  .about__photo { max-width: 420px; margin: 0 auto; }

  .contact { grid-template-columns: 1fr; min-height: 0; }
  .contact__photo { aspect-ratio: 4 / 5; min-height: 0; }
  .contact__body { padding: 56px 7% 72px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

body.lightbox-open { overflow: hidden; }

.lightbox__stage {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

.lightbox__title {
  min-height: 1.2em;
  margin-bottom: clamp(16px, 3.2vh, 40px);
  padding: 0 64px;
  text-align: center;
  font-size: clamp(1.4rem, 2vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.lightbox__title:empty { min-height: 0; margin-bottom: 0; }

.lightbox__img {
  width: auto;
  height: auto;
  max-width: min(88vw, 900px);
  max-height: 70vh;
  object-fit: contain;
}

.lightbox__btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.lightbox__btn:hover { opacity: 1; }
.lightbox__btn:focus-visible { outline: 2px solid var(--text); outline-offset: -6px; }
.lightbox__btn[hidden] { display: none; }

.lightbox__close { top: 20px; left: 20px; }
.lightbox__prev  { top: 50%; left: 16px;  transform: translateY(-50%); }
.lightbox__next  { top: 50%; right: 16px; transform: translateY(-50%); }

@media (max-width: 800px) {
  .lightbox__img { max-width: 92vw; max-height: 68vh; }
  .lightbox__title { padding: 0 16px; }
  .lightbox__close { top: 8px; left: 8px; }
  .lightbox__prev, .lightbox__next {
    top: auto; bottom: 16px; transform: none;
  }
  .lightbox__prev { left: 16px; }
  .lightbox__next { right: 16px; }
}
