:root {
  --gutter: 4vw;
  --fg: #000;
  --bg: #fff;
  --display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --body: "Poppins", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 300 16px/1.8 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 36px var(--gutter);
}
.site-title {
  font: 500 32.8px/1.4 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a { text-decoration: none; }
.site-nav > a { position: relative; padding: 2px 0; }
.site-nav > a[aria-current]::after,
.site-nav > a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
}
.socials { display: inline-flex; gap: 18px; margin-left: 12px; }
.socials a { display: inline-flex; }
.is-home .site-header { color: #fff; }
main { padding-top: 118px; }
.is-home main { padding-top: 0; }

.burger { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; color: inherit; cursor: pointer; }
.burger span { display: block; width: 30px; height: 1px; background: currentColor; transition: transform .25s; }
.burger span + span { margin-top: 8px; }
.menu-open .burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.menu-overlay {
  position: fixed; inset: 0; z-index: 9; background: var(--bg); color: var(--fg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.menu-overlay[hidden] { display: none; }
.menu-overlay nav { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.menu-overlay nav a { font: 500 36px/1.4 var(--display); text-decoration: none; }
.menu-overlay .socials { margin: 0; }
.menu-open .site-header { color: var(--fg); position: fixed; }

/* Home: portfolio index with hover backgrounds */
.index { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: #d9d6d0; }
.bgs, .bgs .bg, .shade { position: absolute; inset: 0; }
.bgs .bg { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.bgs .bg.is-active { opacity: 1; }
.shade { background: #000; opacity: 0; transition: opacity 1s ease; }
.index.is-hovering .shade { opacity: .1; }
.index-links {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-wrap: wrap; align-content: center; justify-content: center;
  padding: 120px var(--gutter);
}
.index-links a { color: #fff; text-decoration: none; padding: 0 0.6em; }
.index-links h2 { margin: 0; font: 400 clamp(40px, 4.6vw, 72px)/1.4 var(--display); letter-spacing: -0.01em; }

/* Gallery */
.gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px;
  padding: 58px var(--gutter) 0;
}
.grid-item { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #f2f2f2; cursor: zoom-in; }
.grid-item img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.grid-item:hover img { opacity: .92; }
.pager { display: flex; justify-content: space-between; padding: 48px var(--gutter) 56px; }
.pager a { display: flex; flex-direction: column; text-decoration: none; }
.pager .next { text-align: right; }
.pager .dir { font-size: 13px; opacity: .7; }
.pager .name { font: 500 24px/1.3 var(--display); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(255,255,255,.98);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: calc(100vw - 160px); max-height: calc(100vh - 80px); object-fit: contain; }
.lightbox button {
  position: absolute; background: none; border: 0; padding: 16px; cursor: pointer; color: #000;
}
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox svg { width: 32px; height: 32px; stroke: currentColor; stroke-width: 1; fill: none; }

/* Text pages */
.prose { max-width: 657px; margin: 0 auto; padding: 96px var(--gutter) 96px; box-sizing: content-box; }
.prose h2 { font: 500 46.24px/1.3 var(--display); letter-spacing: -0.01em; margin: 0 0 32px; }
.prose h3 { font: 500 29px/1.3 var(--display); letter-spacing: -0.01em; margin: 0 0 24px; }
.prose p { font-size: 14.27px; line-height: 1.8; margin: 0 0 16px; }
.about .stats { display: flex; justify-content: center; gap: 0 24px; margin-top: 32px; }
.about ul { margin: 0; padding-left: 1.2em; min-width: 172px; }
.about li { font-size: 14.27px; line-height: 1.8; padding: 2px 0; }
.contact p a { text-decoration: none; }

/* Contact form (matches Squarespace "solid square" field style) */
.contact-form { margin-top: 32px; font-size: 13px; }
.contact-form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.contact-form legend { padding: 0; margin-bottom: 6px; font-size: 14px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; margin-bottom: 16px; }
.contact-form .row label { margin: 0; }
.contact-form .req { opacity: .6; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px;
  font: 300 15px/1.4 var(--body); color: var(--fg);
  background: #fafafa; border: 1px solid #a9a9a9; border-radius: 0;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid #000; outline-offset: -1px; }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form .submit { text-align: center; margin-top: 8px; }
.contact-form button {
  font: 400 13px/1 var(--body); color: #fff; background: #000; border: 0;
  padding: 20px 34px; cursor: pointer;
}
.contact-form button:disabled { opacity: .5; cursor: default; }
.form-status { text-align: center; min-height: 1.8em; margin-top: 16px; }

/* Mobile */
@media (max-width: 767px) {
  :root { --gutter: 6vw; }
  .site-header { padding: 24px var(--gutter); }
  .site-title { font-size: 26px; }
  .site-nav { display: none; }
  .burger { display: block; }
  main { padding-top: 90px; }
  .index-links { flex-direction: column; flex-wrap: nowrap; align-items: center; }
  .index-links h2 { font-size: 44px; line-height: 1.3; }
  .gallery { grid-template-columns: 1fr; gap: 16px; padding-top: 24px; }
  .prose { padding-top: 48px; }
  .prose h2 { font-size: 32px; }
  .about .stats { flex-direction: column; align-items: flex-start; }
  .contact-form .row { grid-template-columns: 1fr; gap: 16px; }
  .lightbox img { max-width: 100vw; max-height: 100vh; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 16px; transform: none; }
}
