/* ── TOKENS ──────────────────────────────────────────── */
:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --ink: #1a1a18;
  --ink-soft: #5a5955;
  --ink-muted: #9e9c97;
  --rule: #e2e0db;
  --accent: #c4a882;
  --accent-dk: #9e8262;
  --nav-h: 64px;
  --sans: "Jost", sans-serif;
  --serif: "Cormorant Garant", Georgia, serif;
}

/* ── RESET ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  width: 100%;
}
ul {
  list-style: none;
}

/* ── NAV ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.3s ease;
}

nav.menu-open {
  border-bottom-color: transparent;
}

.nav-brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.nav-brand img {
  height: 38px;
  width: auto;
  max-width: 180px;
  display: block;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 32px;
  border-bottom: none;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.12),
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 32px;
  padding-left: 32px;
  border-left: 1px solid var(--rule);
}
.nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--ink-muted);
  transition:
    color 0.2s,
    transform 0.2s;
}
.nav-social a:hover {
  color: var(--ink);
  transform: translateY(-1px);
}
.nav-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
/* HAMBURGER BUTTON */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
  transition: all 0.3s ease;
}
/* ACTIVE STATE */
.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translateY(6px);
}

.nav-toggle.open span:nth-child(2) {
  transform: rotate(-45deg) translateY(-6px);
}
/* ── HERO ────────────────────────────────────────────── */
.hero {
  padding-top: var(--nav-h);
  display: grid;
  max-width: 1400px;
  margin: 0 auto;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 80px;
}
.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}
.hero-title em {
  font-style: italic;
  color: var(--accent-dk);
  display: block;
}
.hero-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 360px;
  margin-bottom: 48px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    all 0.25s ease;
  width: fit-content;
}
.btn:hover {
  background: var(--accent-dk);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.hero-image {
  width: 100%;
  max-width: 720px;
  position: relative;
  overflow: hidden;
  padding: 0;
  margin-top: clamp(40px, 6vw, 40px);
  transform: translateX(20px);
}
.hero-image::after {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.4) 0%,
    transparent 70%
  );
}
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
  transition: transform 8s ease;
  filter: contrast(1.05) saturate(1.05);
}
.hero-image:hover img {
  transform: scale(1.04);
}
.hero-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  z-index: 2;
  pointer-events: none;
}

/* ── SECTIONS ────────────────────────────────────────── */
section {
  padding: clamp(72px, 8vw, 120px) clamp(24px, 6vw, 80px);
}
.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 20px;
}
.section-header h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  letter-spacing: -0.01em;
}
.section-header h2 em {
  font-style: italic;
  color: var(--accent-dk);
}
.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ── GALLERY TABS ────────────────────────────────────── */
#work {
  background: var(--surface);
}
.gallery-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.tab-btn {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 24px 12px 0;
  margin-bottom: -1px;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
  white-space: nowrap;
}
.tab-btn:hover {
  color: var(--ink);
}
.tab-btn.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ── GALLERY GRID ────────────────────────────────────── */
.gallery-panel {
  display: none;
}
.gallery-panel.active {
  display: block;
}

.photo-grid {
  columns: 3;
  column-gap: 20px;
}
.photo-item {
  break-inside: avoid;
  margin-bottom: 20px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.photo-item img {
  display: block;
  width: 100%;
  transition:
    transform 0.5s ease,
    filter 0.3s ease;
}
.photo-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 24, 0);
  transition: background 0.3s;
}
.photo-item:hover::after {
  background: rgba(26, 26, 24, 0.12);
}
.photo-item:hover img {
  transform: scale(1.03);
}

/* ── CLOUDINARY PLACEHOLDER HELPER ──────────────────── */
/*
      Replace each src below with your Cloudinary URL.
      Format: https://res.cloudinary.com/YOUR_CLOUD_NAME/image/upload/w_900,f_auto,q_auto/YOUR_IMAGE_ID
    */

/* ── LIGHTBOX ────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(18, 18, 16, 0.96);
  align-items: center;
  justify-content: center;
  padding: 40px;
}
#lightbox.open {
  display: flex;
}
#lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  animation: lbIn 0.25s ease;
}
@keyframes lbIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
#lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}
#lightbox-close:hover {
  color: #fff;
}
#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  background: none;
  border: none;
  padding: 16px;
  transition: color 0.2s;
}
#lightbox-prev:hover,
#lightbox-next:hover {
  color: #fff;
}
#lightbox-prev {
  left: 20px;
}
#lightbox-next {
  right: 20px;
}
#lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

/* ── ABOUT ───────────────────────────────────────────── */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 120px 80px;
}
.about-image {
  position: relative;
}
.about-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.about-image::before {
  content: "";
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 1px solid var(--rule);
  z-index: -1;
}
.about-text .eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dk);
  margin-bottom: 20px;
}
.about-text h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 28px;
}
.about-text h2 em {
  font-style: italic;
  color: var(--accent-dk);
}
.about-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.about-text p:last-of-type {
  margin-bottom: 36px;
}
.about-stats {
  display: flex;
  gap: 48px;
  margin: 36px 0;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1;
}
.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 4px;
}

/* ── CONTACT ─────────────────────────────────────────── */
#contact {
  background: var(--ink);
  color: var(--bg);
  padding: 100px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-intro h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 24px;
}
.contact-intro h2 em {
  font-style: italic;
  color: var(--accent);
}
.contact-intro p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(248, 247, 244, 0.6);
  margin-bottom: 40px;
}
.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-meta-label {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-meta-value {
  font-size: 0.92rem;
  color: rgba(248, 247, 244, 0.75);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 247, 244, 0.45);
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--bg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 16px;
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s;
  resize: none;
  -webkit-appearance: none;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(248, 247, 244, 0.25);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.09);
}
.field select option {
  background: #1a1a18;
}
.form-submit {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent);
  border: none;
  padding: 16px 32px;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
  margin-top: 4px;
}
.form-submit:hover {
  background: var(--accent-dk);
  color: var(--bg);
}
.form-notice {
  font-size: 0.75rem;
  color: rgba(248, 247, 244, 0.3);
  line-height: 1.6;
}

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand img {
  height: 32px;
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain;
  opacity: 0.75;
}
.footer-copy {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(248, 247, 244, 0.3);
}
.footer-social {
  display: flex;
  gap: 20px;
}
.footer-social a {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 247, 244, 0.4);
  transition: color 0.2s;
}
.footer-social a:hover {
  color: var(--accent);
}

.site-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.65rem;
  opacity: 0.6;
  margin-left: 72px;
}

.site-credit img {
  height: 14px;
  width: auto;
  opacity: 0.7;
  transition:
    opacity 0.3s ease,
    transform 0.25s ease;
}

.site-credit:hover img {
  opacity: 1;
  transform: translateY(-1px);
}

.site-credit:hover {
  opacity: 1;
  text-shadow: 0 0 6px rgba(196, 168, 130, 0.25);
}

/* ── ANIMATIONS ──────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ── RESPONSIVE ──────────────────────────────────────── */

@media (min-width: 1200px) {
  .hero-image {
    max-width: 820px;
  }
}

@media (min-width: 1500px) {
  .hero-image {
    max-width: 920px;
  }
}

@media (max-width: 900px) {
  nav {
    padding: 0 24px;
  }
  .nav-links {
    gap: 20px;
  }
  .nav-links a {
    font-size: 0.65rem;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-text {
    padding: 60px 32px 48px;
  }
  .hero-image {
    padding: 0;
    height: auto;
  }
  .hero-image img {
    object-position: center 80%;
  }
  .hero-title {
    font-size: clamp(2.4rem, 8vw, 3.2rem);
    line-height: 1.1;
  }

  .hero-desc {
    max-width: 100%;
  }
  section {
    padding: 72px 32px;
  }
  #about {
    grid-template-columns: 1fr;
    padding: 72px 32px;
  }
  #contact {
    grid-template-columns: 1fr;
    padding: 72px 32px;
  }
  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 32px;
  }
  .photo-grid {
    columns: 2;
  }
  .gallery-tabs {
    overflow-x: auto;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .site-credit {
    margin-left: 0;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .photo-grid {
    columns: 1;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;

    padding: 56px 20px;

    background: linear-gradient(
      320deg,
      rgb(255, 255, 255),
      rgba(178, 159, 140, 0.969)
    );

    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);

    /* surface separation */
    border-bottom: none;

    box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.12),
      inset 0 1px 0 rgba(123, 123, 123, 0.7);

    transform: translateY(-120%);
    opacity: 0;

    transition:
      transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.3s ease;

    z-index: 150;
  }
 

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  /* ✨ staggered links */
  .nav-links a {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }

  .nav-links.open a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.open a:nth-child(1) {
    transition-delay: 0.05s;
  }
  .nav-links.open a:nth-child(2) {
    transition-delay: 0.1s;
  }
  .nav-links.open a:nth-child(3) {
    transition-delay: 0.15s;
  }
  .nav-links.open a:nth-child(4) {
    transition-delay: 0.2s;
  }

  .nav-social {
    display: none;
  }
}
