/* ===== FORMWORKS — base ===== */
:root {
  --bone: #f3efe8;
  --bone-deep: #e8e2d6;
  --charcoal: #1c1a17;
  --charcoal-soft: #3a3631;
  --terracotta: #9e3d2e;
  --terracotta-light: #b8553f;
  --muted: #8a8377;
  --line: rgba(28, 26, 23, 0.12);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --maxw: 1280px;
  --pad: clamp(1.25rem, 5vw, 5rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--bone);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; }

.section-label {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 1.25rem;
}
.section-label--light { color: var(--terracotta-light); }

/* ===== Nav ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
}
.nav--scrolled {
  background: rgba(243, 239, 232, 0.92);
  backdrop-filter: blur(10px);
  padding: 0.7rem var(--pad);
  box-shadow: 0 1px 0 var(--line);
}
.nav__logo { height: 42px; width: auto; transition: height .4s ease; display: block; }
.nav__logo--dark { display: none; }                 /* hidden over the hero */
.nav--scrolled .nav__logo { height: 36px; }
.nav--scrolled .nav__logo--light { display: none; } /* swap to dark logo on light nav */
.nav--scrolled .nav__logo--dark { display: block; }

.nav__links { display: flex; gap: 2.25rem; }
.nav__links a {
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.04em;
  color: #fff; position: relative; padding: 2px 0;
  transition: color .3s ease;
}
.nav--scrolled .nav__links a { color: var(--charcoal); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: currentColor; transition: width .3s ease;
}
.nav__links a:hover::after { width: 100%; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 2px; background: #fff; transition: .3s; }
.nav--scrolled .nav__toggle span { background: var(--charcoal); }

/* ===== Hero ===== */
.hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: flex-end; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,18,15,.75) 0%, rgba(20,18,15,.25) 45%, rgba(20,18,15,.35) 100%); }
.hero__content { position: relative; color: #fff; padding: 0 var(--pad) clamp(3rem, 9vh, 7rem); max-width: 950px; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.74rem; font-weight: 500; margin-bottom: 1.5rem; opacity: .9; }
.hero__title { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 300; }
.hero__loc { margin-top: 1.5rem; letter-spacing: 0.1em; font-size: 0.95rem; opacity: .85; }
.hero__cta {
  display: inline-block; margin-top: 2.5rem;
  border: 1px solid rgba(255,255,255,.55); padding: 0.85rem 2rem;
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.hero__cta:hover { background: #fff; color: var(--charcoal); border-color: #fff; }

/* ===== Studio ===== */
.studio { padding: clamp(5rem, 12vh, 9rem) var(--pad); }
.studio__inner { max-width: 900px; margin: 0 auto; text-align: center; }
.studio__lead { font-size: clamp(1.5rem, 3.2vw, 2.5rem); font-weight: 300; line-height: 1.28; margin-bottom: 2rem; }
.studio__body { color: var(--charcoal-soft); font-size: 1.05rem; max-width: 680px; margin: 0 auto; font-weight: 300; }
.studio__stats { list-style: none; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 3rem; }
.studio__stats li span {
  display: inline-block; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.55rem 1.5rem; font-size: 0.82rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--charcoal-soft);
}

/* ===== Work / grid ===== */
.work { padding: clamp(3rem, 6vh, 5rem) var(--pad) clamp(5rem, 12vh, 8rem); max-width: var(--maxw); margin: 0 auto; }
.work__head { margin-bottom: 3rem; }
.work__head h2 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 300; }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2vw, 1.75rem); }
.card { position: relative; overflow: hidden; cursor: pointer; background: var(--bone-deep); }
.card--lg { grid-column: span 7; aspect-ratio: 4/3; }
.card--sm { grid-column: span 5; aspect-ratio: 4/3; }
.card--full { grid-column: span 12; aspect-ratio: 21/9; }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__img { transform: scale(1.05); }
.card__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.75rem; color: #fff;
  background: linear-gradient(to top, rgba(20,18,15,.78) 0%, rgba(20,18,15,.05) 55%, transparent 100%);
  opacity: 0; transition: opacity .45s ease;
}
.card:hover .card__overlay { opacity: 1; }
.card__meta { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.68rem; font-weight: 500; opacity: .85; margin-bottom: .4rem; }
.card__name { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; }
.card__count { margin-top: .5rem; font-size: 0.78rem; letter-spacing: .08em; opacity: .8; }

/* ===== Contact ===== */
.contact { background: var(--charcoal); color: var(--bone); padding: clamp(5rem, 12vh, 9rem) var(--pad); }
.contact__inner { max-width: var(--maxw); margin: 0 auto; }
.contact__title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 300; margin-bottom: 2.5rem; }
.contact__split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: stretch; }
.contact__left { display: flex; flex-direction: column; }
.contact__details { display: flex; flex-direction: column; gap: 2rem; }
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; }
.contact__block h3 { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.74rem; font-weight: 600; color: var(--terracotta-light); margin-bottom: 1rem; }
.contact__block p { color: #cfc8bb; font-weight: 300; line-height: 1.8; }
.contact__block a { transition: color .3s ease; }
.contact__block a:hover { color: #fff; }
.social { display: inline-flex; align-items: center; gap: 0.55rem; }
.social--top { align-items: flex-start; }
.social--top .social__icon { margin-top: 0.15rem; }
.social__icon { width: 1.15rem; height: 1.15rem; flex: none; }
.contact__map { border-radius: 6px; overflow: hidden; line-height: 0; border: 1px solid rgba(255,255,255,.12); min-height: 380px; }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ===== Footer ===== */
.footer { background: #141210; color: #79736a; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1.75rem var(--pad); font-size: 0.8rem; letter-spacing: 0.06em; }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,13,11,.96); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox__figure { max-width: 90vw; max-height: 88vh; text-align: center; }
.lightbox__figure img { max-width: 90vw; max-height: 80vh; object-fit: contain; margin: 0 auto; }
.lightbox__figure figcaption { color: #cfc8bb; margin-top: 1rem; font-size: 0.85rem; letter-spacing: 0.08em; }
.lightbox__close { position: absolute; top: 1.5rem; right: 2rem; background: none; border: 0; color: #fff; font-size: 2.5rem; line-height: 1; cursor: pointer; opacity: .8; transition: opacity .3s; }
.lightbox__close:hover { opacity: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; font-size: 3.5rem; cursor: pointer; padding: 1rem; opacity: .6; transition: opacity .3s; }
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(75vw, 320px);
    background: var(--bone); flex-direction: column; justify-content: center;
    align-items: flex-start; gap: 1.75rem; padding: 0 2.5rem;
    transform: translateX(100%); transition: transform .4s ease; box-shadow: -10px 0 40px rgba(0,0,0,.15);
  }
  .nav__links.open { transform: none; }
  .nav__links a { color: var(--charcoal) !important; font-size: 1.4rem; font-family: var(--serif); }
  .nav__toggle { display: flex; }
  .card--lg, .card--sm, .card--full { grid-column: span 12; aspect-ratio: 4/3; }
  .card__overlay { opacity: 1; background: linear-gradient(to top, rgba(20,18,15,.7) 0%, transparent 70%); }
  .contact__split { grid-template-columns: 1fr; }
  .contact__details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
  .contact__map { min-height: 300px; }
  .contact__map iframe { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
