/* Neil Bhat — static site styles */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 30px;
  background: #fff;
}
.home .site-header { position: fixed; left: 0; right: 0; background: transparent; }
.site-title {
  font-size: 24px; font-weight: 700; font-style: italic;
  text-decoration: none; letter-spacing: -0.01em; line-height: 1;
}
.nav { display: flex; align-items: center; gap: 18px; font-size: 12px; line-height: 1; }
.nav a { text-decoration: none; }
.nav a:hover, .nav a.active, .dropdown > button.active { text-decoration: underline; text-underline-offset: 3px; }
.nav svg { width: 18px; height: 18px; display: block; }
.dropdown { position: relative; }
.dropdown > button {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
}
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 12px; min-width: 280px;
}
.dropdown-menu ul {
  list-style: none; margin: 0; padding: 14px 18px;
  background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.08);
}
.dropdown-menu li { padding: 6px 0; }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }

.menu-toggle { display: none; background: none; border: 0; padding: 6px 0; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #000; margin: 5px 0; }

/* mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 20; background: #fff;
  padding: 70px 24px 24px; overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu .close { position: absolute; top: 14px; right: 24px; font-size: 32px; line-height: 1; background: none; border: 0; cursor: pointer; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { padding: 6px 0; font-size: 18px; }
.mobile-menu a { text-decoration: none; }
.mobile-menu .label { font-size: 12px; margin: 10px 0 4px; opacity: .6; }
.mobile-menu .sub li { font-size: 16px; padding-left: 10px; }

/* ---------- home ---------- */
.hero {
  position: fixed; inset: 0;
  background-size: cover; background-position: center;
}

/* ---------- project pages ---------- */
/* Layout follows the original Squarespace grid: 3vw side margins,
   main text starting at 46.5% of the window and ~39% wide, credits on the left. */
main { padding: 10px 3vw 0; }
.gallery { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 80px; }
.gallery .col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery a { display: block; cursor: zoom-in; }
.gallery img { width: 100%; }
.single-image { max-width: 900px; margin: 0 auto 60px; }
.wide-image { margin: 0 -3vw 80px; }
.wide-image img { width: 100%; }

.text {
  width: 38.6vw; margin: 0 0 80px 43.5vw;
  font-size: clamp(16px, 1.48vw, 19px);
}
.text h1 { font-size: clamp(36px, 4.6vw, 64px); font-weight: 700; font-style: italic; line-height: 1.15; margin: 0 0 .5em; }
.text h2 { font-size: clamp(28px, 3.16vw, 44px); font-weight: 700; font-style: italic; line-height: 1.2; margin: 0 0 .6em; }
.text h3 { font-size: clamp(24px, 2.44vw, 34px); font-weight: 700; font-style: italic; line-height: 1.25; margin: 0 0 .6em; }
.text h4 { font-size: clamp(14px, 1.2vw, 17px); font-weight: 700; font-style: italic; line-height: 1.5; margin: 0 0 2em; }
.text p { margin: 0 0 1em; }
.text h2 em, .text h3 em { font-style: normal; }
.text.credits { width: 30.7vw; margin-left: 0; font-size: 12px; line-height: 1.8; }
.text.credits.two { width: 48.3vw; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.3vw; }
.credits a { word-break: break-all; }
.text.narrow { width: 30.7vw; margin-left: 0; }
.text.left { width: 42.6vw; margin-left: 0; }

/* about / CV: two full-width columns */
.cv { margin: 0 0 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.9vw; font-size: clamp(15px, 1.48vw, 19px); }
.cv h3 { font-size: clamp(22px, 2.44vw, 34px); font-weight: 700; font-style: italic; line-height: 1.25; margin: 0 0 .8em; }
.cv p { margin: 0 0 1em; line-height: 1.6; }
.cv section + section, .cv .stack > section + section { margin-top: 2.5em; }
/* About page: black CV block (as on the original), white contact block below */
.about main { padding-top: 0; }
.about .site-header { background: #000; color: #fff; }
.about .menu-toggle span { background: #fff; }
.about .dropdown-menu ul { color: #000; }
.dark { background: #000; color: #fff; margin: 0 -3vw; padding: 0 3vw 120px; }
.about-intro { margin: 0; padding: 180px 0 200px; }
.about-contact { padding: 150px 0 100px; margin-bottom: 0; }
.about-intro h2 { font-size: clamp(28px, 3.16vw, 44px); font-style: italic; margin: 0; }

.site-footer { text-align: center; font-size: 12px; padding: 60px 30px 40px; }

/* ---------- lightbox ---------- */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; width: auto; height: auto; }
.lightbox button {
  position: absolute; background: none; border: 0; font-size: 34px; cursor: pointer; padding: 16px; color: #000;
}
.lightbox .lb-close { top: 6px; right: 14px; }
.lightbox .lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 6px; top: 50%; transform: translateY(-50%); }

@media (max-width: 760px) {
  .site-header { padding: 14px 16px; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  main { padding: 10px 16px 0; }
  .gallery { flex-direction: column; }
  .gallery .col { display: contents; }
  .wide-image { margin: 0 -16px 60px; }
  .cv { grid-template-columns: 1fr; }
  .cv .stack + .stack { margin-top: 2.5em; }
  .dark { margin: 0 -16px; padding: 0 16px 80px; }
  .about-intro { padding: 100px 0 100px; }
  .about-contact { padding: 80px 0 40px; }
  .text, .text.credits, .text.credits.two, .text.narrow, .text.left { width: auto; margin-left: 0; }
  .text.credits.two { grid-template-columns: 1fr; }
}
