:root {
  --bg: #f8f6f1;
  --surface: #ffffff;
  --text: #171717;
  --muted: #6b6b6b;
  --line: rgba(23, 23, 23, 0.12);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  --radius: 24px;
  --radius-sm: 18px;
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #fbfaf7 0%, #f4f1ea 100%);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.page-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  backdrop-filter: blur(10px);
  background: rgba(248, 246, 241, 0.78);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  border-color: var(--line);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.75rem, 2vw, 2.15rem);
  line-height: 1;
}

.brand-subtitle,
.section-label,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-nav a {
  position: relative;
  padding-bottom: 4px;
}

.site-nav button {
  font: inherit;
  color: inherit;
}

.nav-item {
  position: relative;
}

.work-menu-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0 0 4px;
  cursor: pointer;
  position: relative;
}

.work-menu-toggle::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-item-work:hover .work-menu-toggle::after,
.nav-item-work:focus-within .work-menu-toggle::after,
.work-menu-toggle:focus-visible::after {
  transform: scaleX(1);
}

.work-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 270px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.1);
  display: grid;
  gap: 8px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 20;
}

.work-dropdown a {
  padding: 8px 10px;
  border-radius: 10px;
}

.work-dropdown a:hover,
.work-dropdown a:focus-visible {
  background: rgba(23, 23, 23, 0.06);
}

.nav-item-work:hover .work-dropdown,
.nav-item-work:focus-within .work-dropdown,
.nav-item-work.open .work-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.66);
  border-radius: 999px;
}

main section {
  padding: 52px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 100px);
}

.hero h1,
.section-heading h2,
.project-heading h2,
.about-section h2,
.contact-section h2 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.3rem);
  margin: 14px 0 20px;
}

.hero-text {
  max-width: 58ch;
  font-size: 1.05rem;
  color: #2f2f2f;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: #171717;
  color: #ffffff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.68);
}

.hero-image img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
}

.intro-grid,
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.intro-grid > div,
.contact-card,
.about-grid > div,
.project-card,
.project-detail,
.section-heading,
.site-footer {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.04);
}

.intro-grid > div,
.about-grid > div,
.contact-card,
.section-heading,
.project-heading {
  padding: 24px;
  border-radius: var(--radius-sm);
}

.section-heading {
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.section-heading h2,
.about-section h2,
.contact-section h2,
.project-heading h2 {
  font-size: clamp(2.35rem, 4vw, 4.1rem);
  margin: 8px 0 14px;
}

.narrow {
  max-width: 900px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.project-card {
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-card-copy {
  padding: 22px;
}

.project-card h3 {
  margin: 0 0 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 500;
}

.project-card p,
.project-heading p,
.about-grid p,
.intro-grid p,
.contact-card,
.site-footer p {
  margin: 0;
  color: #343434;
}

.project-detail {
  padding: 26px;
  border-radius: var(--radius);
}

.project-detail.alt {
  background: rgba(255, 252, 249, 0.8);
}

.project-heading {
  margin-bottom: 18px;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0 0 4px;
}

.gallery {
  display: grid;
  gap: 16px;
}

.gallery.two-up { grid-template-columns: repeat(2, 1fr); }
.gallery.three-up { grid-template-columns: repeat(3, 1fr); }
.gallery.four-up { grid-template-columns: repeat(4, 1fr); }

.gallery-item {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.08);
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius);
}

.contact-email {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.social-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
}

.site-footer {
  margin: 0 0 36px;
  border-radius: 18px;
  padding: 18px 24px;
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 100;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-image {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  border-radius: 18px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

.fade-in,
.fade-in-delay {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.fade-in-delay { transition-delay: 140ms; }
.fade-in.visible,
.fade-in-delay.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero,
  .intro-grid,
  .about-grid,
  .project-grid,
  .gallery.four-up,
  .gallery.three-up {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max));
  }

  .site-header {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding-top: 4px;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .work-menu-toggle {
    width: 100%;
    text-align: left;
  }

  .work-dropdown {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 8px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.66);
  }

  .nav-item-work.open .work-dropdown {
    display: grid;
  }

  .hero,
  .intro-grid,
  .about-grid,
  .project-grid,
  .gallery.two-up,
  .gallery.three-up,
  .gallery.four-up,
  .contact-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .contact-card {
    justify-items: start;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 13vw, 4.25rem);
  }

  .section-heading h2,
  .project-heading h2,
  .about-section h2,
  .contact-section h2,
  .contact-email {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .project-detail {
    padding: 18px;
  }
}
