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

:root {
  --cream:    #FAF7F4;
  --beige:    #EDE4DA;
  --beige-mid:#D9CCBF;
  --rose:     #F0D5D5;
  --rose-mid: #DDB8B8;
  --ink:      #2E2520;
  --ink-light:#6B5C54;
  --white:    #FFFDF9;

  --px: 20px;
  --section-pad: 72px var(--px);
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 16px;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--px);
  background: transparent;
  transition: background .4s, backdrop-filter .4s;
}
nav.scrolled {
  background: rgba(250,247,244,.9);
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 16px;
  list-style: none;
}
.nav-links a {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }

/* ── HERO — mobile first ── */
.hero {
  display: flex;
  flex-direction: column;
}
.hero-img {
  flex: 0 0 75vw;
  min-height: 75vw;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--ink-light);
  overflow: hidden;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
.hero-img svg { opacity: .25; }
.hero-img span {
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .45;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px var(--px) 40px;
  background: var(--cream);
}
.hero-tag {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 18px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 10vw, 5rem);
  font-weight: 300;
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero-title em {
  font-style: italic;
  color: var(--rose-mid);
}
.hero-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-light);
  margin-bottom: 36px;
}
.btn {
  display: inline-block;
  padding: 15px 32px;
  font-family: 'Jost', sans-serif;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background .25s, color .25s;
  align-self: flex-start;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn-filled {
  background: var(--ink);
  color: var(--white);
}
.btn-filled:hover { background: var(--rose-mid); border-color: var(--rose-mid); color: var(--ink); }

/* ── SECTION HEADER ── */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 36px;
}
.section-num {
  font-size: .7rem;
  letter-spacing: .15em;
  color: var(--rose-mid);
  flex-shrink: 0;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 7vw, 3rem);
  font-weight: 300;
}
.section-line {
  flex: 1;
  height: 1px;
  background: var(--beige-mid);
}

/* ── WORKS ── */
.works {
  padding: var(--section-pad);
  background: var(--white);
}
.filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.tab {
  padding: 9px 18px;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--beige-mid);
  background: transparent;
  color: var(--ink-light);
  cursor: pointer;
  transition: all .2s;
}
.tab.active, .tab:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* gallery: 3 cols on mobile */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--beige);
  cursor: pointer;
}
.gallery-item:nth-child(3n+2) { margin-top: 16px; }
.gallery-item:nth-child(3n)   { margin-top: 8px; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--ink-light);
}
.gallery-placeholder svg { opacity: .2; }
.gallery-placeholder span {
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .4;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(46,37,32,.72) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.gallery-item:hover .gallery-overlay,
.gallery-item:focus .gallery-overlay { opacity: 1; }
.gallery-caption {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-style: italic;
}

/* ── ABOUT ── */
.about {
  padding: var(--section-pad);
  background: var(--cream);
}
.about-top {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.about-img {
  flex-shrink: 0;
  width: 110px;
  aspect-ratio: 3/4;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: var(--ink-light);
  overflow: hidden;
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-img svg { opacity: .2; }
.about-img span {
  font-size: .55rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .4;
  text-align: center;
}
.about-intro { flex: 1; }
.about-intro .section-header { margin-bottom: 20px; }
.about-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-light);
  margin-top: 24px;
  margin-bottom: 36px;
}
.about-body p + p { margin-top: 14px; }
.about-stats {
  display: flex;
  gap: 0;
  padding-top: 32px;
  border-top: 1px solid var(--beige-mid);
}
.stat {
  flex: 1;
  padding-right: 16px;
}
.stat + .stat {
  padding-left: 16px;
  padding-right: 16px;
  border-left: 1px solid var(--beige-mid);
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--rose-mid);
}
.stat-label {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-top: 4px;
}

/* ── PROCESS ── */
.process {
  padding: var(--section-pad);
  background: var(--beige);
}
.process-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-top: 36px;
}
.step {
  background: var(--cream);
  padding: 28px 22px;
}
.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--beige-mid);
  line-height: 1;
  margin-bottom: 16px;
}
.step-title {
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.step-desc {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--ink-light);
}

/* ── CONTACT ── */
.contact {
  padding: var(--section-pad);
  background: var(--ink);
  color: var(--white);
}
.contact .section-title { color: var(--white); }
.contact .section-num { color: var(--rose); }
.contact .section-line { background: rgba(255,255,255,.15); }
.contact-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,.6);
  margin-bottom: 32px;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--white);
  font-size: .95rem;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.12);
  transition: border-color .2s, background .2s;
}
.contact-link:hover {
  border-color: var(--rose);
  background: rgba(240,213,213,.07);
}
.contact-link-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  opacity: .6;
}
.contact-link-label {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .5;
  margin-bottom: 2px;
}
.contact-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 6vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
  color: rgba(255,255,255,.85);
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.contact-quote em {
  color: var(--rose);
  font-style: normal;
}

/* ── FOOTER ── */
footer {
  padding: 22px var(--px);
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
footer span {
  font-size: .7rem;
  letter-spacing: .1em;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(46,37,32,.95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox.open { display: flex; }

.lb-img-wrap {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img-wrap img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  user-select: none;
}
.lb-close {
  position: absolute;
  top: 18px; right: 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
  transition: color .2s;
}
.lb-close:hover { color: #fff; }

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.7);
  font-size: 1.2rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-arrow:hover { border-color: rgba(255,255,255,.6); color: #fff; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-arrow[hidden] { display: none; }

.lb-dots {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}
.lb-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: background .2s;
}
.lb-dot.active { background: #fff; }

/* ── FADE-UP ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── DESKTOP ── */
@media (min-width: 760px) {
  :root {
    --px: 48px;
    --section-pad: 110px var(--px);
  }

  .hero {
    flex-direction: row;
    min-height: 100svh;
  }
  .hero-img {
    flex: 1;
    min-height: unset;
  }
  .hero-left {
    flex: 1;
    padding: 120px 48px 80px;
    justify-content: flex-end;
  }
  .hero-desc { max-width: 340px; }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }
  .gallery-item:nth-child(even) { margin-top: 0; }
  .gallery-item:nth-child(3n+2) { margin-top: 48px; }
  .gallery-item:nth-child(3n)   { margin-top: 24px; }

  .about-img { width: 160px; }

  .process-steps { grid-template-columns: repeat(4, 1fr); }

  .contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }
  .contact-quote {
    margin-top: 0;
    padding-top: 32px;
    border-top: none;
    align-self: center;
  }
}
