* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  background: #f4f2ec;
  color: #1a1a1a;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: opacity .2s ease; }
a:hover { opacity: .6; }

.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 1.5rem;
}
.header.bg { background: rgba(244,242,236,.8); backdrop-filter: blur(8px); }
.brand { font-size: 1rem; font-weight: 500; letter-spacing: -.01em; }
.nav { display: flex; gap: 1.5rem; font-size: .875rem; }

main { padding-top: 6rem; }
.container { padding: 0 1.5rem; }

/* Home hero */
.hero { padding: 0 1.5rem; }
.hero-frame {
  margin: 0 auto;
  max-width: 66%;
  overflow: hidden;
  background: rgba(0,0,0,.05);
}
.hero-frame img { width: 100%; object-fit: cover; }

/* Sections */
.section { margin-top: 6rem; padding: 0 1.5rem; }
.section-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem;
}
.section-inner { grid-column: 1 / -1; }
.eyebrow {
  font-size: .875rem; letter-spacing: -.01em;
  color: rgba(26,26,26,.5); margin-bottom: 1.5rem;
}
.eyebrow.upper { text-transform: uppercase; font-size: .75rem; }
.lede {
  font-size: 1.5rem; line-height: 1.25; letter-spacing: -.01em;
  text-wrap: balance;
}
.lede + .lede { margin-top: 2rem; }
.contact-title { font-size: 1.75rem; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }

.contact-grid {
  margin-top: 3rem;
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
}
.contact-block { color: rgba(26,26,26,.7); font-size: .95rem; }
.contact-block .name { color: #1a1a1a; font-weight: 500; font-size: 1.05rem; }
.contact-block p + p { margin-top: .25rem; }

/* Projects page */
.page-title {
  font-size: 2rem; letter-spacing: -.02em; margin-bottom: 3rem;
}
.projects-section { margin-bottom: 5rem; }
.subtitle {
  font-size: .875rem; color: rgba(26,26,26,.7);
  margin-bottom: 1.5rem; letter-spacing: -.01em;
}
.grid-2 {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
.tile { background: rgba(0,0,0,.05); overflow: hidden; }
.tile img { width: 100%; object-fit: contain; transition: opacity .2s; }
.tile:hover img { opacity: .9; }
.caption {
  margin-top: .75rem; font-size: .875rem;
  color: rgba(26,26,26,.7); letter-spacing: -.01em;
}

footer {
  padding: 2rem 1.5rem; font-size: .75rem;
  color: rgba(26,26,26,.5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.95);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lb-btn {
  position: absolute; background: transparent; border: none;
  color: #fff; font-size: 2rem; cursor: pointer; padding: 1rem;
  font-family: inherit;
}
.lb-close { top: .5rem; right: .5rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }

@media (min-width: 768px) {
  .header { padding: 1.5rem 2.5rem; }
  .brand { font-size: 1.125rem; }
  .nav { gap: 2.5rem; }
  main { padding-top: 7rem; }
  .container, .hero, .section, main.projects { padding-left: 2.5rem; padding-right: 2.5rem; }
  .section { margin-top: 10rem; }
  .section-grid { gap: 2.5rem; }
  .section-inner { grid-column: 3 / span 7; }
  .lede { font-size: 2.25rem; }
  .contact-title { font-size: 3rem; line-height: 1.1; }
  .contact-grid { grid-template-columns: 1fr 1fr; column-gap: 4rem; row-gap: 2.5rem; margin-top: 4rem; }
  .contact-block.full { grid-column: 1 / -1; }
  .page-title { font-size: 3rem; margin-bottom: 4rem; }
  .projects-section { margin-bottom: 8rem; }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  footer { padding: 2rem 2.5rem; }
}
