/* ────────────────────────────────────────────────────────────────
   LIQUID GLASS — dark photography portfolio
   ──────────────────────────────────────────────────────────────── */

:root {
  --bg: #060608;
  --bg-2: #0b0b10;
  --text: #f2f2f5;
  --text-2: rgba(242, 242, 245, 0.62);
  --text-3: rgba(242, 242, 245, 0.38);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);

  --glass-bg: rgba(22, 22, 28, 0.42);
  --glass-bg-strong: rgba(18, 18, 24, 0.62);
  --glass-blur: blur(28px) saturate(170%);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  --glass-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --gutter: clamp(16px, 3vw, 40px);
  --header-h: 110px;           /* compact header height, used to size Landscape photos */
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font: 'Inter', 'Geist', 'Montserrat', system-ui, -apple-system, sans-serif;
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 1.5px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ───────────── Ambient liquid background ───────────── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, #12121a 0%, transparent 60%),
    var(--bg);
}
.ambient::after {               /* film grain */
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.blob {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  will-change: transform;
}
.blob--1 { background: #3a2c8a; top: -18vmax; left: -10vmax; animation: drift1 38s ease-in-out infinite alternate; }
.blob--2 { background: #0f5a6b; bottom: -22vmax; right: -12vmax; animation: drift2 44s ease-in-out infinite alternate; }
.blob--3 { background: #6b1f4f; top: 40%; left: 45%; width: 30vmax; height: 30vmax; opacity: 0.14; animation: drift3 52s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vw, 22vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-20vw, -18vh) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-30vw, 10vh) scale(1.25); } }

/* ───────────── Glass primitive ───────────── */
.glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--line);
  box-shadow: var(--glass-edge), var(--glass-shadow);
}
.glass::before {                /* liquid sheen */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 60% at 15% 0%, rgba(255, 255, 255, 0.09), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%);
}

/* ───────────── Header ───────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px var(--gutter) 0;
}
.site-header__glass {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px 24px 16px;
  border-radius: var(--radius-lg);
  transition: padding 0.5s var(--ease), gap 0.5s var(--ease), background 0.5s;
}
.site-header.is-scrolled .site-header__glass {
  padding: 12px 24px 10px;
  gap: 8px;
  background: var(--glass-bg-strong);
}

.brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.brand__name {
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 200;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  line-height: 1.15;
  padding-left: 0.32em;          /* optically re-centre tracked caps */
  transition: font-size 0.5s var(--ease);
}
.brand__slogan {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  max-height: 2em;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), opacity 0.4s, margin 0.5s var(--ease);
}
.site-header.is-scrolled .brand__name { font-size: clamp(17px, 1.6vw, 21px); }
.site-header.is-scrolled .brand__slogan { max-height: 0; opacity: 0; margin-top: 0; }

.nav__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px clamp(8px, 1.8vw, 26px); }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 4px;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.3s;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 1px;
  height: 1px;
  background: currentColor;
  transition: left 0.4s var(--ease), right 0.4s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after, .nav__link:hover::after { left: 4px; right: 4px; }
.nav__link--about { color: var(--text-3); }

/* Burger (mobile) */
.burger {
  display: none;
  position: absolute;
  right: 14px;
  top: 50%;
  translate: 0 -50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: absolute;            /* floats over the page instead of pushing it down */
  top: 100%;
  left: 10px;
  right: 10px;
  margin-top: 8px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg-strong);
  padding: 14px 10px;
  transform-origin: top center;
  animation: menuIn 0.45s var(--ease-out);
}
.mobile-menu.is-closing { animation: menuOut 0.3s var(--ease) forwards; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px) scale(0.98); } }
@keyframes menuOut { to { opacity: 0; transform: translateY(-8px) scale(0.98); } }
.mobile-menu__list li { opacity: 0; animation: itemIn 0.5s var(--ease-out) forwards; }
.mobile-menu__list li:nth-child(1) { animation-delay: 0.04s; }
.mobile-menu__list li:nth-child(2) { animation-delay: 0.08s; }
.mobile-menu__list li:nth-child(3) { animation-delay: 0.12s; }
.mobile-menu__list li:nth-child(4) { animation-delay: 0.16s; }
.mobile-menu__list li:nth-child(5) { animation-delay: 0.20s; }
.mobile-menu__list li:nth-child(6) { animation-delay: 0.24s; }
.mobile-menu__list li:nth-child(7) { animation-delay: 0.28s; }
@keyframes itemIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mobile-menu .nav__link {
  display: block;
  padding: 13px 16px;
  font-size: 15px;
  letter-spacing: 0.16em;
  border-radius: var(--radius-sm);
}
.mobile-menu .nav__link::after { display: none; }
.mobile-menu .nav__link.is-active { background: rgba(255, 255, 255, 0.07); }

/* ───────────── Page + section intro ───────────── */
.page {
  padding: clamp(40px, 7vh, 90px) var(--gutter) 40px;
  outline: none;
  animation: pageIn 0.8s var(--ease-out);
}
.page.is-leaving { animation: pageOut 0.25s var(--ease) forwards; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes pageOut { to { opacity: 0; transform: translateY(-6px); } }

.intro {
  max-width: 760px;
  margin: 0 auto clamp(40px, 7vh, 80px);
  text-align: center;
}
.intro__index {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-3);
  text-transform: uppercase;
}
.intro__title {
  margin: 10px 0 14px;
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.intro__tagline {
  margin: 0 auto;
  max-width: 34em;
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--text-2);
  font-style: italic;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 40px var(--gutter) 32px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ───────────── Photo tile ───────────── */
.ph {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  cursor: zoom-in;
  isolation: isolate;
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.25) brightness(0.74) contrast(1.02);
  transform: scale(1.001);
  transition:
    transform 0.9s var(--ease),
    filter 0.7s var(--ease),
    opacity 0.9s var(--ease);
}
.ph img.is-loaded { opacity: 1; }
.ph:hover img,
.ph:focus-visible img { transform: scale(1.03); filter: saturate(1) brightness(1) contrast(1); }
@media (hover: none) {           /* touch: colour the photo nearest screen centre */
  .ph.is-centered img { filter: saturate(1) brightness(1); }
}
.ph__tag {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  padding: 3px 8px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.caption {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
}

/* ───────────── Masonry (Featured + Fauna) ───────────── */
.masonry { display: flex; align-items: flex-start; }
.masonry__col { display: flex; flex-direction: column; min-width: 0; }

.layout-featured .masonry { gap: clamp(12px, 1.6vw, 24px); }
.layout-featured .masonry__col { gap: clamp(12px, 1.6vw, 24px); }
.layout-featured .ph { border-radius: 6px; }
.featured-break {
  margin: clamp(28px, 6vh, 72px) calc(var(--gutter) * -0.5);
}
.featured-break .ph { border-radius: var(--radius-md); }

.layout-fauna .masonry,
.layout-fauna .masonry__col { gap: 6px; }
.layout-fauna .ph { border-radius: 2px; }

/* ───────────── People (sparse collage) ───────────── */
.collage-people {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: clamp(70px, 14vh, 170px);
  align-items: start;
  max-width: 1500px;
  margin: 0 auto;
  padding-bottom: 6vh;
}
.collage-people .ph { border-radius: 3px; }
@media (max-width: 760px) {
  .collage-people { display: flex; flex-direction: column; row-gap: 64px; }
  .collage-people > .ph { width: var(--m-w, 78%) !important; margin-left: var(--m-ml, 0) !important; margin-top: 0 !important; }
}

/* ───────────── Landscape (cinematic scroll) ───────────── */
.ls { display: flex; flex-direction: column; align-items: center; }
.ls__slide {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-block: clamp(24px, 6vh, 70px);
}
.ls__slide .ph { border-radius: 6px; }   /* width set inline from aspect ratio */
.ls__pair {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  padding-block: clamp(40px, 10vh, 120px);
}
.ls__pair .ph { min-width: 0; border-radius: 6px; }   /* flex-grow = aspect ratio → equal heights */
@media (max-width: 760px) { .ls__pair { gap: 8px; } }

/* ───────────── Urban (chaotic collage) ───────────── */
.collage-urban {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: clamp(10px, 1.4vw, 20px);
  align-items: start;
}
.collage-urban > .ph { transition: transform 0.6s var(--ease); }
.collage-urban > .ph:hover { z-index: 3; }
.urban-isolate {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: clamp(60px, 14vh, 160px);
}
.urban-isolate .ph { width: min(var(--iso-w, 56%), 1000px); border-radius: 4px; }
@media (max-width: 760px) {
  .collage-urban { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .urban-isolate .ph { width: 88%; }
}

/* ───────────── Film (structured grid) ───────────── */
.film-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 36px);
  max-width: 1600px;
  margin: 0 auto;
}
.film-cell {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.4vw, 18px);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}
.film-cell .ph { border-radius: 1px; }
.film-cell .ph.is-wide { width: 100%; }
.film-cell .ph.is-tall { height: 100%; }
.film-feature {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: clamp(80px, 18vh, 220px);
}
.film-feature .ph { border-radius: 2px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
@media (max-width: 1100px) { .film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .film-grid { grid-template-columns: 1fr; }
  .film-feature { padding-block: 70px; }
}

/* ───────────── Scrims ───────────── */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.35);
  animation: fadeIn 0.4s var(--ease);
}
.scrim.is-closing { animation: fadeOut 0.35s var(--ease) forwards; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }

/* ───────────── About sidebar ───────────── */
.about {
  position: fixed;
  z-index: 70;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(420px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--glass-bg-strong);
  padding: 28px 30px 30px;
  overflow-y: auto;
  transform: translateX(calc(100% + 24px));
  transition: transform 0.65s var(--ease-out), visibility 0s linear 0.65s;
  visibility: hidden;
}
.about.is-open {
  transform: none;
  visibility: visible;
  transition: transform 0.65s var(--ease-out), visibility 0s;
}
.about__close { align-self: flex-end; }
.about__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 8px;
}
.about__photo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__name {
  margin: 22px 0 4px;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-left: 0.2em;
}
.about__loc {
  margin: 0 0 18px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-3);
  text-transform: uppercase;
}
.about__bio { margin: 0 0 26px; color: var(--text-2); max-width: 30em; }

.socials { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  transition: color 0.3s, background 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.socials a:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); border-color: var(--line-strong); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }

.about__cta { margin-top: 30px; width: 100%; }

/* ───────────── Buttons ───────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 0.4s var(--ease), background 0.3s, box-shadow 0.4s, opacity 0.3s;
}
.btn--primary {
  color: #0a0a0d;
  background: linear-gradient(180deg, #ffffff, #dcdce4);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 40px rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.15); }
.btn--primary:disabled { opacity: 0.6; cursor: progress; }
.btn--ghost { border: 1px solid var(--line-strong); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn--block { width: 100%; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--text-2);
  transition: color 0.3s, background 0.3s, transform 0.4s var(--ease);
}
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); transform: rotate(90deg); }
.icon-btn svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__btn--prev:hover, .lightbox__btn--next:hover { transform: none; }

/* ───────────── Contact modal ───────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 2, 4, 0.66);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.4s var(--ease);
  overflow-y: auto;
}
.modal-overlay.is-closing { animation: fadeOut 0.3s var(--ease) forwards; }
.modal {
  width: min(520px, 100%);
  border-radius: var(--radius-lg);
  background: rgba(24, 24, 32, 0.55);
  padding: clamp(28px, 5vw, 44px);
  animation: modalIn 0.55s var(--ease-out);
}
.modal-overlay.is-closing .modal { animation: modalOut 0.3s var(--ease) forwards; }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.97); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(10px) scale(0.98); } }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.modal__title { margin: 0 0 6px; font-size: 26px; font-weight: 200; letter-spacing: 0.02em; }
.modal__sub { margin: 0 0 26px; color: var(--text-2); font-size: 14px; }

.field { position: relative; margin-bottom: 22px; }
.field input,
.field textarea {
  width: 100%;
  padding: 22px 0 9px;
  font: inherit;
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  outline: none;
  resize: vertical;
  transition: border-color 0.3s;
}
.field textarea { min-height: 110px; }
.field label {
  position: absolute;
  left: 0;
  top: 22px;
  font-size: 15px;
  color: var(--text-3);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.35s var(--ease), color 0.3s;
}
.field::after {                  /* animated focus underline */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.field:has(textarea)::after { bottom: 6px; }
.field:focus-within::after { transform: scaleX(1); }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-20px) scale(0.78);
  color: var(--text-2);
}
.field.is-invalid input,
.field.is-invalid textarea { border-bottom-color: #ff7a85; }
.field.is-invalid label { color: #ff9aa2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { min-height: 1.4em; margin: -6px 0 14px; font-size: 13px; color: #ff9aa2; }

.contact-done { text-align: center; padding: 20px 0 6px; }
.contact-done .btn { margin-top: 6px; }

/* ───────────── Lightbox ───────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(3, 3, 5, 0.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  animation: fadeIn 0.35s var(--ease);
}
.lightbox.is-closing { animation: fadeOut 0.25s var(--ease) forwards; }
.lightbox__img {
  max-width: calc(100vw - 160px);
  max-height: calc(100vh - 120px);
  border-radius: 4px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  animation: modalIn 0.5s var(--ease-out);
}
.lightbox__count {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-3);
}
.lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; }
.lightbox__btn--close { top: 20px; right: 20px; }
.lightbox__btn--prev { left: 20px; top: 50%; translate: 0 -50%; }
.lightbox__btn--next { right: 20px; top: 50%; translate: 0 -50%; }

/* ───────────── Responsive header ───────────── */
@media (max-width: 760px) {
  :root { --header-h: 76px; }
  .site-header { padding: 8px 10px 0; }
  .site-header__glass,
  .site-header.is-scrolled .site-header__glass {
    padding: 14px 64px 14px;
    border-radius: 22px;
  }
  .brand__name { font-size: 18px; letter-spacing: 0.26em; }
  .site-header.is-scrolled .brand__name { font-size: 16px; }
  .brand__slogan { font-size: 10px; letter-spacing: 0.14em; margin-top: 3px; }
  .nav { display: none; }
  .burger { display: flex; }
  .lightbox__img { max-width: calc(100vw - 24px); max-height: calc(100vh - 160px); }
  .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: 14px; translate: none; }
  .lightbox__count { bottom: 30px; }
}
@media (min-width: 761px) {
  .mobile-menu { display: none !important; }
}

/* ───────────── Reduced motion ───────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .blob { animation: none; }
}
