/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --bg: #0a0a0b;
  --bg-raised: #131315;
  --bg-raised-2: #1b1b1e;
  --line: #2a2a2d;
  --text: #f2f0ec;
  --text-muted: #9c9a96;
  --text-faint: #6b6a68;
  --accent: #c9a267;
  --accent-strong: #e2bb7d;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1440px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --speed-fast: 160ms;
  --speed: 320ms;
  --speed-slow: 600ms;

  --radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --speed-fast: 1ms;
    --speed: 1ms;
    --speed-slow: 1ms;
  }
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #14120c;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}
.skip-link:focus {
  left: var(--gutter);
  top: var(--gutter);
}

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 3vw, 1.75rem) var(--gutter);
  background: linear-gradient(to bottom, rgba(10, 10, 11, 0.85), rgba(10, 10, 11, 0));
  transition: background var(--speed) var(--ease), backdrop-filter var(--speed) var(--ease);
}

.site-header.is-scrolled {
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.nav-desktop a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: color var(--speed-fast) var(--ease), border-color var(--speed-fast) var(--ease);
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--text);
  border-color: var(--accent);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text);
  transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--speed) var(--ease);
}

.nav-mobile.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.nav-mobile a {
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.nav-mobile a[aria-current="page"] {
  color: var(--accent);
}

@media (min-width: 780px) {
  .nav-desktop { display: block; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 11, 0.15) 0%,
    rgba(10, 10, 11, 0.1) 40%,
    rgba(10, 10, 11, 0.75) 85%,
    rgba(10, 10, 11, 0.95) 100%
  );
}

.hero-content {
  position: relative;
  width: 100%;
  padding: 0 var(--gutter) clamp(3rem, 8vw, 6rem);
}

.hero-eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.02;
  max-width: 20ch;
}

.hero-sub {
  margin-top: 1.25rem;
  max-width: 42ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
}

.hero-scroll {
  position: absolute;
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-scroll svg {
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll svg { animation: none; }
}

/* ============================================================
   Section headings
   ============================================================ */
.section-head {
  padding: clamp(3rem, 8vw, 5rem) var(--gutter) clamp(1.5rem, 4vw, 2rem);
  max-width: var(--container);
  margin-inline: auto;
}

.section-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 300;
}

/* ============================================================
   Gallery filters
   ============================================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0 var(--gutter) clamp(1.5rem, 3vw, 2rem);
  max-width: var(--container);
  margin-inline: auto;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: border-color var(--speed-fast) var(--ease), color var(--speed-fast) var(--ease), background var(--speed-fast) var(--ease);
}

.filter-btn:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.filter-btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #14120c;
}

/* ============================================================
   Gallery grid (masonry via CSS columns)
   ============================================================ */
.gallery {
  padding: 0 calc(var(--gutter) - 0.4rem) clamp(3rem, 8vw, 6rem);
  max-width: var(--container);
  margin-inline: auto;
  column-count: 1;
  column-gap: 0.8rem;
}

@media (min-width: 620px) {
  .gallery { column-count: 2; }
}
@media (min-width: 1020px) {
  .gallery { column-count: 3; }
}
@media (min-width: 1500px) {
  .gallery { column-count: 4; }
}

.photo {
  break-inside: avoid;
  margin: 0 0 0.8rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--bg-raised);
}

.photo.is-hidden { display: none; }

.photo-btn {
  display: block;
  width: 100%;
  position: relative;
}

.photo-btn img {
  width: 100%;
  height: auto;
  display: block;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity var(--speed-slow) var(--ease);
}

.photo-btn img.is-loaded {
  opacity: 1;
}

.photo-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease);
  font-size: 0.82rem;
  color: var(--text);
  pointer-events: none;
}

.photo-btn:hover .photo-caption,
.photo-btn:focus-visible .photo-caption {
  opacity: 1;
  transform: translateY(0);
}

.photo-caption .tag {
  display: block;
  color: var(--accent-strong);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
  margin-bottom: 0.15rem;
}

/* Reveal-on-scroll */
.photo {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--speed-slow) var(--ease), transform var(--speed-slow) var(--ease);
}
.photo.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 7, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--speed) var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-figure {
  position: relative;
  max-width: min(92vw, 1500px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.lightbox-caption .tag {
  color: var(--accent-strong);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
  margin-right: 0.6em;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text);
  transition: opacity var(--speed-fast) var(--ease);
  opacity: 0.75;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-close {
  top: clamp(0.5rem, 3vw, 1.5rem);
  right: clamp(0.5rem, 3vw, 1.5rem);
}

.lightbox-prev { left: clamp(-0.5rem, -2vw, 0.5rem); }
.lightbox-next { right: clamp(-0.5rem, -2vw, 0.5rem); }

@media (min-width: 780px) {
  .lightbox-prev { left: clamp(0.5rem, 3vw, 2rem); }
  .lightbox-next { right: clamp(0.5rem, 3vw, 2rem); }
}

/* ============================================================
   About page
   ============================================================ */
.about {
  padding: clamp(7rem, 14vw, 9rem) var(--gutter) clamp(3rem, 8vw, 6rem);
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  gap: clamp(2rem, 6vw, 4rem);
  grid-template-columns: 1fr;
}

.about-media {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-body p {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  max-width: 60ch;
}

.about-body p:first-of-type {
  color: var(--text);
  font-size: 1.15rem;
}

.about-body a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--speed-fast) var(--ease);
}

.about-body a:hover {
  text-decoration-color: var(--accent-strong);
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
}

.stat-row {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat-num {
  font-size: 1.9rem;
  font-weight: 300;
  color: var(--accent-strong);
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.25rem;
}

/* ============================================================
   Contact page
   ============================================================ */
.contact {
  padding: clamp(7rem, 14vw, 9rem) var(--gutter) clamp(4rem, 10vw, 7rem);
  max-width: 900px;
  margin-inline: auto;
}

.contact-lede {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  max-width: 26ch;
  margin-bottom: 2.5rem;
}

.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 1fr 1.3fr; }
}

.contact-info dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 1.5rem;
}
.contact-info dt:first-child { margin-top: 0; }

.contact-info dd {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
}

.contact-info a:hover {
  color: var(--accent-strong);
}

.field {
  margin-bottom: 1.4rem;
}

.field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  padding: 0.85rem 1rem;
  transition: border-color var(--speed-fast) var(--ease);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: #14120c;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  transition: background var(--speed-fast) var(--ease), transform var(--speed-fast) var(--ease);
}

.btn-submit:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.form-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 3rem) var(--gutter);
}

.footer-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a:hover {
  color: var(--accent-strong);
}

/* ============================================================
   Simple page hero (about/contact use hero-title styling)
   ============================================================ */
.page-lede {
  padding: clamp(7rem, 14vw, 8rem) var(--gutter) 0;
  max-width: var(--container);
  margin-inline: auto;
}
