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

:root {
  --black: #000;
  --dark: #0a0a0a;
  --off-white: #f0ece4;
  --warm-white: #d9d3c7;
  --bronze: #b08d57;
  --bronze-dim: rgba(176, 141, 87, 0.4);
  --text-body: #a8a196;
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  --ease: cubic-bezier(0.25, 0, 0.15, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* ─── HEADER ─── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 3rem;
  transition: background 0.5s var(--ease), padding 0.4s var(--ease);
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.4rem 3rem;
}

.header-nav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--off-white);
  opacity: 0.8;
  transition: opacity 0.3s;
}

.nav-link:hover {
  opacity: 1;
}

.header-logo {
  margin: 0 3rem;
  flex-shrink: 0;
}

.header-logo img {
  width: 128px;
  height: auto;
  transition: width 0.4s var(--ease);
}

.site-header.scrolled .header-logo img {
  width: 80px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 20px;
  z-index: 110;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--off-white);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.mobile-menu-toggle span:first-child {
  position: absolute;
  top: 6px;
}

.mobile-menu-toggle span:last-child {
  position: absolute;
  bottom: 6px;
}

.mobile-menu-toggle.active span:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.mobile-menu-toggle.active span:last-child {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-link {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--off-white);
  letter-spacing: 0.05em;
}

/* ─── HERO ─── */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12rem 2rem 4rem;
  position: relative;
}

.hero-content {
  max-width: 800px;
}

.hero-logo {
  width: 220px;
  height: auto;
  margin: 0 auto 3rem;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--off-white);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.hero-sub {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 300;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 3rem;
}

.hero-btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  border: 1px solid var(--bronze-dim);
  padding: 1.1rem 2.8rem;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

.hero-btn:hover {
  background: var(--bronze);
  color: var(--black);
}

/* ─── PORTFOLIO / MASONRY ─── */

.portfolio-section {
  padding: 1rem 1.5rem;
}

.hero + .portfolio-section {
  margin-top: 0;
}

.masonry {
  column-count: 4;
  column-gap: 10px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.masonry-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease), filter 0.6s var(--ease);
  filter: brightness(0.92);
}

.masonry-item:hover img {
  transform: scale(1.03);
  filter: brightness(1);
}

/* ─── EDITORIAL SECTIONS ─── */

.editorial-section {
  padding: 8rem 2rem;
}

.editorial-inner {
  max-width: 720px;
  margin: 0 auto;
}

.editorial-inner--narrow {
  max-width: 600px;
  text-align: center;
}

.section-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 3.5rem;
}

.editorial-inner--narrow .section-label {
  margin-bottom: 2.5rem;
}

.editorial-text p {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 300;
  line-height: 1.85;
  color: var(--warm-white);
  margin-bottom: 1.8rem;
}

.editorial-text p:last-child {
  margin-bottom: 0;
}

.editorial-highlight {
  font-style: italic;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem) !important;
  color: var(--off-white) !important;
  line-height: 1.7 !important;
}

/* ─── RECOGNITION ─── */

#recognition {
  border-top: 1px solid rgba(176, 141, 87, 0.12);
  border-bottom: 1px solid rgba(176, 141, 87, 0.12);
}

/* ─── MAP ─── */

.map-section {
  padding: 8rem 2rem;
}

.map-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.map-intro {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--warm-white);
  margin-bottom: 3rem;
}

.map-wrap {
  border: 1px solid rgba(176, 141, 87, 0.12);
  overflow: hidden;
}

.map-wrap img {
  width: 100%;
  height: auto;
}

/* ─── CONTACT ─── */

.contact-section {
  padding: 8rem 2rem;
  background-color: #333;
}

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
}

.contact-intro {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--warm-white);
  margin-bottom: 1rem;
}

.contact-intro:last-of-type {
  margin-bottom: 3.5rem;
}

.contact-form {
  margin-bottom: 3.5rem;
}

.form-status {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.6;
  padding: 0.9rem 1.2rem;
  margin-bottom: 2rem;
  border: 1px solid;
}

.form-status[data-type="success"] {
  color: var(--bronze);
  border-color: var(--bronze-dim);
}

.form-status[data-type="error"] {
  color: #d98c6f;
  border-color: rgba(217, 140, 111, 0.4);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-body);
  margin-bottom: 0.6rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(240, 236, 228, 0.15);
  color: var(--off-white);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 300;
  padding: 0.8rem 0;
  transition: border-color 0.3s;
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--bronze);
}

.form-group textarea {
  border: 1px solid rgba(240, 236, 228, 0.1);
  padding: 1rem;
  margin-top: 0.3rem;
}

.form-group textarea:focus {
  border-color: var(--bronze-dim);
}

.form-btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  background: transparent;
  border: 1px solid var(--bronze-dim);
  padding: 1.1rem 2.8rem;
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  margin-top: 0.5rem;
}

.form-btn:hover {
  background: var(--bronze);
  color: var(--black);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-link {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-body);
  transition: color 0.3s;
}

.contact-link:hover {
  color: var(--off-white);
}

/* ─── FOOTER ─── */

.site-footer {
  text-align: center;
  padding: 5rem 2rem 3rem;
  border-top: 1px solid rgba(240, 236, 228, 0.06);
}

.footer-logo {
  width: 40px;
  height: auto;
  margin: 0 auto 1.5rem;
  opacity: 0.6;
}

.footer-statement {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-body);
  margin-bottom: 1rem;
}

.footer-copy {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(168, 161, 150, 0.4);
}

.footer-powered {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--off-white);
  margin-top: 1rem;
}

.footer-powered a {
  color: var(--off-white);
  transition: color 0.3s;
}

.footer-powered a:hover {
  color: var(--bronze);
}

/* ─── LIGHTBOX ─── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  cursor: pointer;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.active {
  opacity: 1;
}

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.lightbox.active .lightbox-img {
  opacity: 1;
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--off-white);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
  z-index: 1010;
  line-height: 1;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--off-white);
  font-size: 3rem;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.3s;
  z-index: 1010;
  padding: 1rem;
  line-height: 1;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 0.9;
}

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(240, 236, 228, 0.35);
}

/* ─── SCROLL REVEAL ─── */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */

@media (max-width: 1200px) {
  .masonry {
    column-count: 4;
  }
}

@media (max-width: 1024px) {
  .masonry {
    column-count: 3;
  }

  .site-header {
    padding: 1.2rem 2rem;
  }
}

@media (max-width: 768px) {
  .masonry {
    column-count: 2;
    column-gap: 6px;
  }

  .masonry-item {
    margin-bottom: 6px;
  }

  .portfolio-section {
    padding: 0.5rem 0.75rem;
  }

  .header-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .header-logo {
    margin: 0 auto;
  }

  .header-logo img {
    width: 80px;
  }

  .site-header.scrolled .header-logo img {
    width: 60px;
  }

  .hero {
    min-height: auto;
    padding: 10rem 1.5rem 5rem;
  }

  .hero-logo {
    width: 160px;
    margin-bottom: 2.5rem;
  }

  .hero-headline br,
  .hero-sub br {
    display: none;
  }

  .editorial-section {
    padding: 5rem 1.5rem;
  }

  .map-section {
    padding: 5rem 1.5rem;
  }


  .contact-section {
    padding: 5rem 1.5rem;
  }

  .lightbox-prev {
    left: 0.5rem;
    font-size: 2rem;
  }

  .lightbox-next {
    right: 0.5rem;
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: 130px;
  }

  .hero-btn {
    padding: 0.8rem 2rem;
  }
}

/* ─── REDUCED MOTION ─── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .masonry-item,
  .fade-in {
    opacity: 1;
    transform: none;
  }
}