* {
  box-sizing: border-box;
}

:root {
  --bg: #03070a;
  --text: #f4f1ea;
  --gap: 18px;
  --side-gutter: clamp(32px, 7vw, 120px);
  --content-max: 1080px;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.075), transparent 34rem),
    linear-gradient(180deg, #080d11 0%, var(--bg) 46%, #020405 100%);
}

.site-header,
.page-shell {
  width: min(var(--content-max), calc(100% - (var(--side-gutter) * 2)));
  margin: 0 auto;
}

.site-header {
  padding: 44px 0 42px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(180px, 24vw, 320px);
  text-decoration: none;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.page-shell {
  padding-bottom: 90px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: var(--gap);
}

.photo-card {
  margin: 0;
  overflow: hidden;
  border-radius: 7px;
  background: #10161a;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
}

.photo-card img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.94) contrast(1.02);
}

@media (max-width: 800px) {
  :root {
    --side-gutter: 18px;
    --gap: 12px;
  }

  .site-header {
    padding: 26px 0 24px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
  }

  .brand {
    width: min(58vw, 250px);
    margin: 0;
    justify-content: flex-start;
  }

  .contact-trigger {
    align-self: center;
    flex: 0 0 auto;
  }

  .gallery {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }

  .photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .photo-card--portrait {
    aspect-ratio: 3 / 4.35;
  }

  .photo-card--square {
    aspect-ratio: 1 / 1;
    margin-top: 0;
  }
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-trigger {
  appearance: none;
  border: 1px solid rgba(244, 241, 234, 0.42);
  border-radius: 999px;
  padding: 11px 20px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.contact-trigger:hover,
.contact-trigger:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(244, 241, 234, 0.72);
  transform: translateY(-1px);
  outline: none;
}

.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 56px);
  background: rgba(3, 7, 10, 0.26);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.contact-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.16), transparent 25rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  pointer-events: none;
}

.contact-overlay[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.contact-panel {
  position: relative;
  width: min(720px, 100%);
  min-height: min(470px, calc(100vh - 40px));
  display: grid;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(7, 12, 16, 0.42);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

.contact-close {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.contact-close::before,
.contact-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 2px;
  background: rgba(244, 241, 234, 0.88);
  transform-origin: center;
  transition: background 180ms ease, transform 180ms ease;
}

.contact-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.contact-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.contact-close:hover::before,
.contact-close:focus-visible::before {
  background: var(--text);
  transform: translate(-50%, -50%) rotate(45deg) scaleX(1.12);
}

.contact-close:hover::after,
.contact-close:focus-visible::after {
  background: var(--text);
  transform: translate(-50%, -50%) rotate(-45deg) scaleX(1.12);
}

.contact-close:focus-visible {
  outline: 1px solid rgba(244, 241, 234, 0.65);
  outline-offset: 6px;
}

.contact-content {
  position: relative;
  z-index: 1;
  padding: clamp(74px, 8vw, 96px) clamp(24px, 6vw, 72px) clamp(34px, 5vw, 56px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: rgba(244, 241, 234, 0.72);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.contact-content h1 {
  margin: 0;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.contact-intro {
  max-width: 520px;
  margin: 20px auto 0;
  color: rgba(244, 241, 234, 0.78);
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  line-height: 1.6;
}

.contact-form {
  display: grid;
  gap: 14px;
  width: min(560px, 100%);
  margin: 28px auto 0;
  text-align: left;
}

.hidden-field {
  display: none;
}

.form-row {
  display: grid;
  gap: 14px;
}

.form-row--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form label span {
  color: rgba(244, 241, 234, 0.76);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(244, 241, 234, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.085);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  outline: none;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input {
  min-height: 46px;
  padding: 11px 13px;
}

.contact-form textarea {
  min-height: 118px;
  padding: 12px 13px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(244, 241, 234, 0.62);
  box-shadow: 0 0 0 3px rgba(244, 241, 234, 0.1);
}

.form-submit {
  justify-self: center;
  appearance: none;
  border: 1px solid rgba(244, 241, 234, 0.42);
  border-radius: 999px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.form-submit:hover,
.form-submit:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(244, 241, 234, 0.76);
  transform: translateY(-1px);
  outline: none;
}

.form-status {
  min-height: 1.35em;
  margin: 0;
  color: rgba(244, 241, 234, 0.8);
  font-size: 0.92rem;
  text-align: center;
}

body.contact-open {
  overflow: hidden;
}

@media (max-width: 800px) {
  .contact-trigger {
    padding: 10px 15px;
    font-size: 0.72rem;
    letter-spacing: 0.13em;
  }

  .contact-panel {
    min-height: min(500px, calc(100vh - 32px));
    border-radius: 14px;
  }

  .contact-panel::before {
    border-radius: 13px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding-bottom: 56px;
  }

  .site-header {
    gap: 12px;
  }

  .brand {
    width: min(56vw, 230px);
  }

  .gallery {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }

  .contact-overlay {
    align-items: start;
    overflow-y: auto;
  }

  .contact-panel {
    min-height: auto;
  }

  .form-row--split {
    grid-template-columns: 1fr;
  }
}
