/* ─── Brand Tokens ─────────────────────────────────────────────────────── */
:root {
  --carbon:   #0A0A0A;
  --white:    #FFFFFF;
  --cream:    #F0ECE3;
  --navy:     #1C2B3A;
  --forest:   #2B3A2E;
  --sage:     #7A8C6E;
  --tag-grey: #999990;
  --divider:  #D8D4CC;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overscroll-behavior: none; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--carbon);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 64px;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
}
.nav-logo {
  display: flex; flex-direction: column; gap: 3px; text-decoration: none;
  color: var(--carbon); line-height: 1;
}
.nav-logo-word {
  font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
  display: flex; align-items: baseline; line-height: 1;
}
/* ² spec: 57% of wordmark size, sits 52% of wordmark height above baseline */
/* nav: 20px × 0.57 = 11.4px, top: -(20 × 0.52) = -10.4px, compact margin -6px */
.nav-logo-sup {
  font-size: 11px; font-weight: 700; line-height: 1;
  position: relative; top: -10px; margin-left: -6px;
}
.nav-left {
  display: flex; align-items: center; gap: 20px;
}
.nav-tagline {
  font-size: 12px; font-weight: 400; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--navy); white-space: nowrap;
}
.nav-links {
  display: flex; align-items: center; gap: 36px; list-style: none;
}
.nav-links > li > a {
  font-size: 11px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--carbon); text-decoration: none; transition: color 0.25s;
}
.nav-links > li > a:hover,
.nav-links > li > a:focus-visible { color: var(--sage); outline: none; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  display: flex; align-items: center; gap: 5px; cursor: pointer;
  font-size: 11px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--carbon); background: none; border: none; padding: 0; font-family: var(--font);
  transition: color 0.25s; outline: none;
}
.nav-dropdown-btn:hover, .nav-dropdown-btn:focus-visible { color: var(--sage); }
.nav-dropdown-btn svg { transition: transform 0.3s var(--ease); }
.nav-dropdown:hover .nav-dropdown-btn svg,
.nav-dropdown:focus-within .nav-dropdown-btn svg { transform: rotate(180deg); }
.nav-dropdown::after {
  content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 24px;
}
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 20px); right: 0;
  min-width: 176px; background: var(--white);
  border: 1px solid var(--divider);
  display: none; flex-direction: column; padding: 8px 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a {
  display: block; padding: 10px 20px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--carbon); text-decoration: none; transition: background 0.15s;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible { background: var(--cream); outline: none; }

/* ─── Hero Carousel ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100vw; height: 100vh; min-height: 600px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0;
  will-change: opacity, transform;
  transform-origin: center center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(10,10,10,0.20) 0%,
    rgba(10,10,10,0.48) 50%,
    rgba(10,10,10,0.20) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2; text-align: center; color: var(--white);
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.hero-logo-word {
  font-size: 80px; font-weight: 700; letter-spacing: 0.04em; line-height: 1;
  display: flex; align-items: baseline;
}
/* hero: 80px × 0.57 = 46px, top: -(80 × 0.52) = -42px, margin-left: 2px */
.hero-logo-sup {
  font-size: 46px; font-weight: 700; line-height: 1;
  position: relative; top: -42px; margin-left: 2px;
}
.hero-logo-rule { height: 1px; background: rgba(255,255,255,0.85); width: 100%; margin: 8px 0; }
.hero-logo-tag {
  font-size: 13px; font-weight: 400; letter-spacing: 0.24em;
  color: rgba(255,255,255,0.65); text-transform: uppercase;
}
.hero-cta {
  margin-top: 40px;
  font-size: 11px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: floatCta 2.4s ease-in-out infinite;
}
.hero-cta svg { opacity: 0.5; }
@keyframes floatCta {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Carousel — JS-controlled, slow fade */
.hero-slide { transition: opacity 1.4s ease-in-out; }
.hero-slide.active { opacity: 1; }

/* Hero arrow buttons */
.hero-prev, .hero-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; background: rgba(255,255,255,0.12); border: none; cursor: pointer;
  color: rgba(255,255,255,0.85); width: 48px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  font-size: 22px; font-family: var(--font); outline: none;
  transition: background 0.2s, color 0.2s;
}
.hero-prev { left: 0; }
.hero-next { right: 0; }
.hero-prev:hover, .hero-prev:focus-visible,
.hero-next:hover, .hero-next:focus-visible {
  background: rgba(255,255,255,0.24); color: var(--white);
}

/* Hero slide counter */
.hero-counter {
  position: absolute; bottom: 32px; right: 40px; z-index: 3;
  font-size: 11px; letter-spacing: 0.14em; color: rgba(255,255,255,0.4);
}

/* ─── Section Headers ──────────────────────────────────────────────────── */
.page-header {
  padding-top: 112px; padding-bottom: 56px;
  padding-left: 48px; padding-right: 48px;
  border-bottom: 1px solid var(--divider);
}
.page-header-eyebrow {
  font-size: 11px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--tag-grey); margin-bottom: 14px;
}
.page-header-title {
  font-size: 56px; font-weight: 700; letter-spacing: 0.01em; line-height: 1;
  color: var(--carbon);
}
.page-header-subtitle {
  margin-top: 16px; font-size: 16px; font-weight: 400; line-height: 1.7;
  color: var(--tag-grey); max-width: 480px;
}

/* ─── Home locations section — slides over sticky hero ─────────────────── */
/* ─── About Section ────────────────────────────────────────────────────── */
.about-section {
  position: relative;
  width: 100vw; height: 100vh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.about-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.6s var(--ease);
}
.about-veil {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at center, rgba(0,0,0,0.38) 0%, transparent 100%);
}
.about-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 48px;
  max-width: 820px;
  transform: translateY(-152px);
}
.about-quote {
  font-size: clamp(22px, 2.8vw, 40px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin: 0 0 28px;
  color: var(--white);
}
.about-camera {
  font-size: 16px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.about-cta {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--carbon);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: floatCta 2.4s ease-in-out infinite;
  white-space: nowrap;
}
.about-cta svg { opacity: 0.8; stroke: var(--carbon); }

.locations-section {
  position: relative;
  z-index: 10;
  background: var(--white);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ─── Location Cards (Home) ────────────────────────────────────────────── */
.locations-intro {
  padding: 40px 48px 20px;
}
.locations-intro-label {
  font-size: 11px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--tag-grey); margin-bottom: 0;
}
.location-cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  padding: 0 48px 48px;
}
.location-card {
  position: relative; overflow: hidden; cursor: pointer;
  display: block; text-decoration: none;
}
.location-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.7s var(--ease);
}
.location-card:hover .location-card-bg,
.location-card:focus-visible .location-card-bg { transform: scale(1.04); }

/* Mini 3×3 grid for Full Gallery card */
.mini-gallery {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr); gap: 2px;
}
.mini-photo {
  background-size: cover; background-position: center;
  transition: transform 0.7s var(--ease); overflow: hidden;
}
.location-card:hover .mini-photo,
.location-card:focus-visible .mini-photo { transform: scale(1.04); }

/* Staggered card entrance — JS adds card-hidden/card-visible, delay set inline */
.location-card {
  will-change: opacity, transform;
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease), outline 0.2s;
}
.location-card-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(10,10,10,0.72) 0%,
    rgba(10,10,10,0.12) 45%,
    transparent 100%);
}
.location-card-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 28px; color: var(--white); z-index: 1;
}
.location-card-name {
  display: block; font-size: 15px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase; margin-bottom: 4px;
}
.location-card-count {
  display: block; font-size: 11px; letter-spacing: 0.10em;
  color: rgba(255,255,255,0.55); margin-bottom: 10px;
}
.location-card-arrow {
  display: inline-block; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--white);
  opacity: 0; transform: translateX(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.location-card:hover .location-card-arrow,
.location-card:focus-visible .location-card-arrow {
  opacity: 1; transform: translateX(0);
}

/* ─── Justified Gallery ────────────────────────────────────────────────── */
.gallery-wrap { padding: 48px 48px 80px; }
.jg-row {
  display: flex;
  margin-bottom: 10px;
  align-items: stretch;
}
.photo-wrap {
  position: relative; overflow: hidden; cursor: pointer; flex-shrink: 0;
}
.photo-wrap img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  pointer-events: none; -webkit-user-drag: none;
  user-select: none; -webkit-user-select: none;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  opacity: 0;
}
.photo-wrap img.loaded { opacity: 1; }
.photo-wrap:hover img { transform: scale(1.02); }
.photo-overlay {
  position: absolute; inset: 0; z-index: 1; cursor: pointer;
}

/* ─── Masonry Gallery ──────────────────────────────────────────────────── */
.masonry-wrap { padding: 48px 48px 80px; }
.masonry-grid {
  columns: 3 340px; column-gap: 10px;
}
.masonry-item {
  break-inside: avoid; margin-bottom: 10px;
  position: relative; overflow: hidden; cursor: pointer;
}
.masonry-item img {
  display: block; width: 100%; height: auto;
  pointer-events: none; -webkit-user-drag: none;
  user-select: none; -webkit-user-select: none;
  transition: transform 0.4s var(--ease);
  opacity: 0;
}
.masonry-item img.loaded { opacity: 1; }
.masonry-item:hover img { transform: scale(1.02); }
.masonry-overlay { position: absolute; inset: 0; z-index: 1; cursor: pointer; }

/* ─── Lightbox ─────────────────────────────────────────────────────────── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 900;
  background: rgba(10,10,10,0.97);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lb-img {
  max-width: 92vw; max-height: 90vh; object-fit: contain;
  pointer-events: none; -webkit-user-drag: none;
  user-select: none; -webkit-user-select: none;
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.lb-img.loaded { opacity: 1; }
.lb-close, .lb-prev, .lb-next {
  position: fixed; background: none; border: none;
  color: rgba(255,255,255,0.55); cursor: pointer;
  font-family: var(--font); line-height: 1;
  transition: color 0.2s; outline: none;
}
.lb-close { top: 24px; right: 32px; font-size: 28px; }
.lb-close:hover, .lb-close:focus-visible { color: var(--white); }
.lb-prev  { left: 24px;  top: 50%; transform: translateY(-50%); font-size: 36px; padding: 16px; }
.lb-next  { right: 24px; top: 50%; transform: translateY(-50%); font-size: 36px; padding: 16px; }
.lb-prev:hover, .lb-prev:focus-visible { color: var(--white); }
.lb-next:hover, .lb-next:focus-visible { color: var(--white); }
.lb-counter {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.12em; color: rgba(255,255,255,0.35);
}

/* ─── Contact ──────────────────────────────────────────────────────────── */
.contact-wrap {
  padding: 40px 48px 80px;
  max-width: 680px;
}
.contact-intro {
  font-size: 16px; line-height: 1.75; color: var(--tag-grey); margin-bottom: 48px;
}
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-size: 10px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--tag-grey);
}
.form-field input,
.form-field textarea {
  padding: 14px 16px; border: 1px solid var(--divider); border-radius: 0;
  font-family: var(--font); font-size: 15px; color: var(--carbon);
  background: var(--white); outline: none; transition: border-color 0.2s;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus { border-color: var(--carbon); }
.form-submit {
  align-self: flex-start; padding: 15px 40px;
  background: var(--carbon); color: var(--white);
  font-family: var(--font); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  border: none; cursor: pointer; transition: background 0.2s;
}
.form-submit:hover, .form-submit:focus-visible { background: var(--sage); }
.contact-alt {
  margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--divider);
}
.contact-alt-label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tag-grey); margin-bottom: 12px;
}
.contact-alt-email {
  font-size: 22px; font-weight: 700; color: var(--carbon); text-decoration: none;
  border-bottom: 1px solid var(--divider); transition: border-color 0.2s;
}
.contact-alt-email:hover { border-color: var(--carbon); }

/* ─── Footer ───────────────────────────────────────────────────────────── */
.footer {
  background: var(--carbon); color: rgba(255,255,255,0.35);
  padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.10em;
}
.footer-brand { font-weight: 700; font-size: 13px; letter-spacing: 0.08em; color: rgba(255,255,255,0.7); }
/* footer: 13px × 0.57 = 7.4px, top: -(13 × 0.52) = -6.8px, margin: 2px */
.footer-sup { font-size: 7px; font-weight: 700; line-height: 1; position: relative; top: -7px; margin-left: 2px; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a {
  color: rgba(255,255,255,0.35); text-decoration: none;
  transition: color 0.2s; text-transform: uppercase;
}
.footer-links a:hover { color: rgba(255,255,255,0.75); }
.footer-copy { text-align: right; }

/* ─── Scroll Reveal ────────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* Location card shoot-up entrance */
.location-card.card-hidden  { opacity: 0; transform: translateY(50px); }
.location-card.card-visible { opacity: 1; transform: translateY(0); }

/* ─── Privacy utilities ────────────────────────────────────────────────── */
.no-select {
  -webkit-user-select: none; user-select: none;
  -webkit-user-drag: none; -moz-user-drag: none;
}

/* ─── Mobile nav (hamburger) ───────────────────────────────────────────── */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 4px;
  color: var(--carbon); font-family: var(--font);
}
.nav-toggle svg { display: block; }

/* ─── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { padding: 0 24px; }
  .page-header { padding: 100px 24px 44px; }
  .page-header-title { font-size: 40px; }
  .gallery-wrap { padding: 32px 24px 60px; }
  .masonry-wrap { padding: 32px 24px 60px; }
  .masonry-grid { columns: 2 260px; }
  .locations-intro { padding: 32px 24px 16px; }
  .location-cards {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, calc((100vh - 140px) / 4));
    gap: 12px; padding: 0 24px 32px;
  }
  .contact-wrap { padding: 32px 24px 60px; }
  .footer { padding: 32px 24px; flex-direction: column; gap: 20px; align-items: flex-start; }
  .footer-copy { text-align: left; }
}
@media (max-width: 660px) {
  .location-cards { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 160px); }
  .hero-logo-word { font-size: 52px; }
  .hero-logo-sup { font-size: 30px; top: -16px; }
  .masonry-grid { columns: 1; }
  .page-header-title { font-size: 32px; }

  /* Hamburger nav */
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: fixed; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--white);
    border-bottom: 1px solid var(--divider);
    padding: 16px 0; z-index: 190;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 12px 24px; display: block; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-btn { padding: 12px 24px; width: 100%; justify-content: space-between; }
  .nav-dropdown-menu {
    position: static; border: none; box-shadow: none;
    padding: 0 0 8px 0; background: var(--cream);
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu { display: none; }
  .nav-dropdown-menu.open { display: flex; }
  .nav-dropdown-menu a { padding: 10px 36px; }
}
