/* ─── Design Tokens ─── */
:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --border: #242424;
  --ink: #f5f5f0;
  --muted: #888884;
  --accent: #c8b8a2;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --nav-h: 64px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── Utility ─── */
.label {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
}
.divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 1.5rem 0;
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  border-color: var(--border);
}
.nav__inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 32px; width: auto; object-fit: contain; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav__links a {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.6);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--ink); }

/* hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  position: relative;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  position: absolute;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__hamburger span:nth-child(1) { transform: translateY(-6px); }
.nav__hamburger span:nth-child(3) { transform: translateY(6px); }
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2.5rem;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 99;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.6);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
}
.hero__label { margin-bottom: 1.25rem; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.hero__subtitle {
  margin-top: 1.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.5);
}
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.hero__scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.35);
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(245,245,240,0.35), transparent);
  animation: pulse-line 2s ease-in-out infinite;
}
@keyframes pulse-line {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ─── Section Shared ─── */
.section {
  padding: 6rem 2.5rem;
}
.section--surface { background: var(--surface); }
.section__header {
  text-align: center;
  margin-bottom: 4rem;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--ink);
  margin-top: 0.75rem;
}
.container {
  max-width: 1400px;
  margin: 0 auto;
}

/* ─── Categories ─── */
.categories__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.category-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  display: block;
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.category-card:hover img { transform: scale(1.05); }
.category-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  transition: background 0.35s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.category-card:hover .category-card__overlay { background: rgba(0, 0, 0, 0.18); }
.category-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.category-card__line {
  width: 28px;
  height: 1px;
  background: var(--accent);
  margin-top: 0.75rem;
  transition: width 0.35s;
}
.category-card:hover .category-card__line { width: 56px; }

/* ─── About ─── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about__image-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.about__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin-top: 0.5rem;
}
.about__text {
  color: rgba(245, 245, 240, 0.65);
  line-height: 1.8;
  font-size: 0.95rem;
}
.about__text + .about__text { margin-top: 1rem; }

/* ─── Contact ─── */
.contact__form {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.form-group label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.4);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.75rem 0;
  outline: none;
  transition: border-color 0.25s;
  resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(245, 245, 240, 0.2); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.btn {
  display: inline-block;
  padding: 0.75rem 2.25rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  transition: background 0.3s, color 0.3s;
  align-self: flex-start;
}
.btn:hover { background: var(--accent); color: var(--bg); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.form-msg {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.form-msg--success { color: rgba(120, 200, 120, 0.85); }
.form-msg--error { color: rgba(220, 100, 100, 0.85); }

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer img { height: 22px; width: auto; opacity: 0.4; }
.footer p {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.25);
}

/* ─── Gallery Page ─── */
.gallery-hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 3rem;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}
.back-link {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.2s;
}
.back-link:hover { color: var(--ink); }
.gallery-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 400;
  color: var(--ink);
  margin-top: 1.25rem;
}
.gallery-grid {
  columns: 3;
  column-gap: 0.75rem;
  padding: 0 2.5rem 5rem;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-item:hover img { transform: scale(1.03); }

/* ─── Lightbox ─── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.96);
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.75rem;
  font-size: 2rem;
  line-height: 1;
  color: rgba(245, 245, 240, 0.5);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
  font-weight: 300;
}
.lightbox__close:hover { color: var(--ink); }
.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  line-height: 1;
  color: rgba(245, 245, 240, 0.45);
  cursor: pointer;
  background: none;
  border: none;
  padding: 1rem;
  transition: color 0.2s;
  font-weight: 300;
}
.lightbox__prev { left: 0.5rem; }
.lightbox__next { right: 0.5rem; }
.lightbox__prev:hover,
.lightbox__next:hover { color: var(--ink); }
.lightbox__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90vw;
  height: 88vh;
}
.lightbox__img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox__counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: rgba(245, 245, 240, 0.3);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 3rem; }
  .about__image-wrap { max-width: 420px; margin: 0 auto; }
  .gallery-grid { columns: 2; }
}

@media (max-width: 640px) {
  .nav { padding: 0 1.25rem; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .section { padding: 4rem 1.25rem; }
  .categories__grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; padding-left: 1.25rem; padding-right: 1.25rem; }
  .gallery-hero { padding-left: 1.25rem; padding-right: 1.25rem; }
  .footer { padding: 1.5rem 1.25rem; }
}
