/* styles.css */
:root {
  --bg: #0b0b0d;
  --panel: #121216;
  --text: #f3f3f1;
  --muted: #b7b7b0;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #e7e0d0;
  --max-width: 1500px;
  --header-height: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: var(--header-height);
  padding: 16px 0;
  background: linear-gradient(to bottom, rgba(11, 11, 13, 0.95), rgba(11, 11, 13, 0.82), rgba(11, 11, 13, 0));
  backdrop-filter: blur(8px);
}

.site-header h1,
.hero-copy h2,
.section-heading h3,
.gallery-section-title {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-header h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.9;
}

.subtitle,
.eyebrow {
  margin: 0;
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-header nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  opacity: 0.9;
}

.site-header nav a:hover {
  opacity: 1;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: 28px;
  align-items: end;
  padding: 24px 0 56px;
}

.hero-copy {
  padding-bottom: 12px;
}

.hero-copy h2 {
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: 0.9;
  margin-top: 8px;
  max-width: 9ch;
}

.hero-text,
.intro-strip p,
.contact-box p,
.gallery-section-text {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.98rem;
}

.hero-stage {
  position: relative;
}

.hero-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-arrow-left {
  left: 14px;
}

.hero-arrow-right {
  right: 14px;
}

.hero-loading,
.gallery-loading {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 320px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.intro-strip,
.contact-section,
.gallery-dynamic-section {
  padding: 26px 0 56px;
  border-top: 1px solid var(--line);
}

.section-heading,
.gallery-section-heading {
  margin-bottom: 22px;
}

.section-heading h3,
.gallery-section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  margin-top: 6px;
}

.galleries-wrapper {
  padding: 0;
}

.gallery-section-text {
  max-width: 760px;
  margin-top: 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.gallery-card {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  cursor: crosshair;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.gallery-card:hover img {
  transform: scale(1.03);
  filter: brightness(1.02);
}

.gallery-filename {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 7px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.88);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-card:hover .gallery-filename {
  opacity: 1;
}

.contact-box {
  max-width: 680px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

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

.form-row label {
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1a1a20;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  padding: 14px 16px;
  outline: none;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(231, 224, 208, 0.35);
  background: #202028;
}

.form-row textarea {
  resize: vertical;
  min-height: 160px;
}

.contact-submit {
  width: fit-content;
  min-width: 140px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 13px 20px;
  cursor: pointer;
  font-size: 0.98rem;
  text-transform: lowercase;
  letter-spacing: 0.08em;
}

.contact-submit:hover {
  background: rgba(255, 255, 255, 0.1);
}

.contact-status {
  min-height: 22px;
  color: var(--muted);
  font-size: 0.96rem;
}

.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.zoom-lens {
  position: fixed;
  inset: auto auto 24px 24px;
  width: 360px;
  aspect-ratio: 1 / 1;
  display: none;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0a0a0a;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.zoom-lens.is-visible {
  display: block;
}

.zoom-lens-image {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: 220%;
}

@media (max-width: 1280px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .zoom-lens {
    display: none !important;
  }
}

@media (max-width: 700px) {
  .site-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .zoom-lens {
    display: none !important;
  }
}