:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #111111;
  --muted: #747474;
  --line: #e8e8e8;
  --soft: #f6f6f6;
  --header-h: 82px;
  --page-x: clamp(16px, 3vw, 44px);
  --gallery-gap: clamp(14px, 1.6vw, 30px);
  --caption-gap: clamp(8px, 0.7vw, 12px);
  --gallery-columns: 4;
}

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

html {
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

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

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

button,
iframe {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px var(--page-x);
  isolation: isolate;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  width: min(150px, 42vw);
}

.brand img {
  width: 150px;
  height: auto;
}

.site-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  color: #222222;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a,
.site-nav button {
  appearance: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  margin: 0;
  opacity: 0.62;
  padding: 0;
  text-align: left;
  text-transform: inherit;
  transition: opacity 160ms ease;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"],
.site-nav button:hover,
.site-nav button:focus-visible {
  opacity: 1;
}

.page-links {
  display: flex;
  justify-self: center;
  align-items: center;
  gap: clamp(18px, 2.2vw, 36px);
}

.nav-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: clamp(12px, 1.5vw, 22px);
}

.nav-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 168px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
}

.nav-contact a {
  width: 100%;
  opacity: 1;
  text-align: right;
}

.nav-contact a:first-child {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

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

.nav-contact a:first-child:hover {
  color: #000000;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 9px;
}

.social-links a {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid #222222;
  border-radius: 999px;
  opacity: 0.78;
  transition: opacity 160ms ease, background 160ms ease, transform 160ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  opacity: 1;
  background: #f5f5f5;
  transform: translateY(-1px);
}

.social-links img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.menu-toggle {
  display: none;
}

.nav-backdrop {
  display: none;
}

.page {
  flex: 1 0 auto;
  width: 100%;
  padding: calc(var(--header-h) + 14px) var(--page-x) 48px;
}

.page--narrow {
  max-width: 1180px;
  margin: 0 auto;
}

.gallery-section {
  width: 100%;
}

.gallery {
  width: 100%;
  min-height: 180px;
  display: grid;
  grid-template-columns: repeat(var(--gallery-columns), minmax(0, 1fr));
  gap: var(--gallery-gap);
  align-items: start;
}

.gallery__column {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: var(--gallery-gap);
  overflow: hidden;
  outline-offset: 3px;
}

.gallery__item--captioned {
  margin-bottom: var(--caption-gap);
}

.gallery__item img {
  width: 100%;
  height: auto;
  background: var(--soft);
  object-fit: contain;
  transform: scale(1);
  transition: transform 180ms ease, opacity 180ms ease;
}

.gallery__item:hover img {
  opacity: 0.92;
  transform: scale(1.012);
}

.gallery__caption {
  display: block;
  margin: var(--caption-gap) 0 0;
  color: #222222;
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
  text-align: center;
  text-transform: none;
}

.video-section {
  margin: 0 0 48px;
}

.video-list {
  display: grid;
  gap: 18px;
}

.video-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.bio-layout {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 760px);
  align-items: start;
  gap: clamp(24px, 4vw, 58px);
  margin-bottom: 38px;
}

.bio-portrait {
  margin: 0;
}

.bio-portrait img {
  width: 100%;
  height: auto;
  background: var(--soft);
}

.bio-copy {
  color: #3f3f3f;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.65;
}

.bio-copy p {
  margin: 0 0 16px;
}

.bio-copy strong {
  color: var(--text);
  font-weight: 700;
}

.site-footer {
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  padding: 26px var(--page-x) 34px;
  color: #777777;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(48px, 8vw) 1fr minmax(48px, 8vw);
  place-items: center;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox__figure {
  grid-column: 2;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}

.lightbox__image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox__button {
  position: relative;
  width: 44px;
  height: 44px;
  opacity: 0.82;
}

.lightbox__button:hover,
.lightbox__button:focus-visible {
  opacity: 1;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.lightbox__close span {
  position: absolute;
  top: 21px;
  left: 10px;
  width: 24px;
  height: 2px;
  background: #ffffff;
}

.lightbox__close span:first-child {
  transform: rotate(45deg);
}

.lightbox__close span:last-child {
  transform: rotate(-45deg);
}

.lightbox__prev {
  grid-column: 1;
}

.lightbox__next {
  grid-column: 3;
}

.lightbox__prev::before,
.lightbox__next::before {
  position: absolute;
  top: 12px;
  width: 18px;
  height: 18px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  content: "";
}

.lightbox__prev::before {
  left: 17px;
  transform: rotate(-45deg);
}

.lightbox__next::before {
  right: 17px;
  transform: rotate(135deg);
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    position: relative;
    z-index: 55;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
  }

  .menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  body.nav-open .menu-toggle span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  body.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .menu-toggle span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    width: min(280px, calc(100vw - 88px));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    padding: 96px 22px 30px;
    background: #ffffff;
    border-left: 1px solid var(--line);
    box-shadow: -24px 0 70px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 220ms ease;
  }

  body.nav-open .site-nav {
    transform: translateX(0);
  }

  .page-links,
  .nav-actions {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .site-nav .page-links > a,
  .site-nav .page-links > button {
    font-size: 16px;
  }

  .nav-contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    font-size: 14px;
    width: 178px;
    min-width: 0;
  }

  .nav-contact a {
    text-align: left;
  }

  .nav-contact a:first-child {
    font-size: 17px;
  }

  .social-links {
    gap: 11px;
    margin-top: 4px;
  }

  .social-links a {
    width: 36px;
    height: 36px;
  }

  .social-links img {
    width: 18px;
    height: 18px;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(0, 0, 0, 0.24);
  }

  body.nav-open .nav-backdrop {
    display: block;
  }

  :root {
    --gallery-columns: 3;
  }
}

@media (max-width: 900px) {
  .bio-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .bio-portrait {
    max-width: 320px;
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 72px;
  }

  .site-header {
    min-height: var(--header-h);
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand,
  .brand img {
    width: 128px;
  }

  .page {
    padding-top: calc(var(--header-h) + 12px);
  }

  :root {
    --gallery-gap: 12px;
    --gallery-columns: 1;
  }

  .lightbox {
    grid-template-columns: 56px 1fr 56px;
  }

}

@media (max-width: 500px) {
  .lightbox {
    grid-template-columns: 48px 1fr 48px;
  }

  .lightbox__button {
    width: 40px;
    height: 40px;
  }
}
