/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'EB Garamond', Garamond, Georgia, 'Times New Roman', serif;
  font-size: 19px;
  line-height: 1.65;
  color: #2c2c2c;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  background-color: #4a5870;
}
.hero-img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0) 30%);
  pointer-events: none;
}
.hero-bar { position: absolute; top: 0; left: 0; right: 0; }

/* ---------- Header bar over hero ---------- */
.hero-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 38px 60px 0;
  gap: 40px;
}
.wordmark {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}
.wordmark span { display: block; }
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav-link {
  color: #ffffff;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.nav-link:hover { border-bottom-color: rgba(255,255,255,0.7); }
.nav-pill {
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: 999px;
  padding: 10px 26px;
  margin-left: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-pill:hover { background-color: rgba(255,255,255,0.15); }

/* ---------- Page body ---------- */
.content { background: #ffffff; }
.page-body { padding: 100px 0 80px; }
.page-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px;
}
.page-title {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0 0 36px;
}

/* ---------- Prose ---------- */
.prose p {
  font-size: 19px;
  line-height: 1.75;
  margin: 0 0 22px;
  color: #2c2c2c;
}
.prose strong { font-weight: 700; color: #1a1a1a; }
.prose em { font-style: italic; }
.prose a { color: #1f7a8c; border-bottom: 1px solid rgba(31, 122, 140, 0.4); transition: border-color 0.15s ease, color 0.15s ease; }
.prose a:hover { color: #155661; border-bottom-color: #155661; }
.prose h2 {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 44px 0 18px;
  color: #1a1a1a;
}
.prose h3 {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 32px 0 14px;
  color: #1a1a1a;
}
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 22px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  border-left: 3px solid #ccc;
  padding-left: 18px;
  margin: 22px 0;
  color: #555;
  font-style: italic;
}

/* ---------- Two-column figure+text grid (Squarespace-style) ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin: 0 0 56px;
}
.two-col img { width: 100%; border-radius: 2px; display: block; }
.two-col-reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin: 0 0 56px;
}
.two-col-reverse img { width: 100%; border-radius: 2px; display: block; }

/* Tighter typography inside two-col so the side text doesn't overpower the photo */
.two-col p, .two-col-reverse p,
.two-col li, .two-col-reverse li { font-size: 17px; line-height: 1.65; }

/* Top-align heading with photo top: zero margin on the first heading inside any
   two-col text column, regardless of heading level (h2/h3/h4) */
.two-col > div > h2:first-child,
.two-col > div > h3:first-child,
.two-col > div > h4:first-child,
.two-col-reverse > div > h2:first-child,
.two-col-reverse > div > h3:first-child,
.two-col-reverse > div > h4:first-child {
  margin-top: 0;
}

/* Zigzag layout: every other .two-col swaps photo/text columns visually
   (text reads LTR; only the grid placement flips). Affects pages with
   multiple consecutive .two-col blocks like /people/. */
.two-col:nth-of-type(even) > div:first-child  { order: 2; }
.two-col:nth-of-type(even) > div:nth-child(2) { order: 1; }
@media (max-width: 720px) {
  /* On mobile both columns stack to one; ensure text follows photo for every row */
  .two-col:nth-of-type(even) > div:first-child  { order: 1; }
  .two-col:nth-of-type(even) > div:nth-child(2) { order: 2; }
}

/* ---------- Stacked theme section (full-width photo + text) ---------- */
.theme-section {
  margin: 0 0 72px;
}
.theme-section img {
  width: 100%;
  border-radius: 2px;
  display: block;
  margin: 16px 0 8px;
}
.theme-section h3 {
  margin-bottom: 12px;
}

/* ---------- Per-photo aspect-ratio overrides (landscape / widescreen originals) ---------- */
.two-col img[src$="ignacio.jpg"] {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}
.two-col img[src$="aiyu.jpg"] {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
}
.two-col img[src$="sahil.jpg"] {
  aspect-ratio: 9 / 10;
  object-fit: cover;
  object-position: center 30%;
}
.two-col img[src$="bruce.jpg"] {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

/* ---------- Lightbox overlay ---------- */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lb-overlay.open { display: flex; }
.lb-stage {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
  display: block;
}
.lb-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  padding: 12px 18px;
  text-align: left;
  display: none;
}
.lb-overlay button {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 48px;
  height: 48px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s;
}
.lb-overlay button:hover { background: rgba(255, 255, 255, 0.2); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Image gallery grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Post list (news) ---------- */
.post-list { margin-top: 28px; }
.post-item { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid #eee; }
.post-item h2 {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.03em;
  margin: 0 0 6px;
}
.post-item time {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid #e8e8e8;
  padding: 36px 0 48px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px;
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #777;
}
.footer p { margin: 6px 0; }
.footer a { color: #555; border-bottom: 1px solid transparent; }
.footer a:hover { border-bottom-color: #555; }
.copyright { color: #aaa; font-size: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-bar { padding: 28px 36px 0; gap: 24px; flex-wrap: wrap; }
  .nav { gap: 22px; font-size: 11px; }
  .page-inner, .footer-inner { padding: 0 36px; }
}
@media (max-width: 768px) {
  .hero-bar { flex-direction: column; align-items: flex-start; padding: 24px; }
  .nav { gap: 14px 18px; flex-wrap: wrap; margin-top: 18px; font-size: 10.5px; }
  .nav-pill { padding: 8px 18px; margin-left: 0; }
  .page-body { padding: 60px 0 40px; }
  .page-inner, .footer-inner { padding: 0 24px; }
  .two-col, .two-col-reverse { grid-template-columns: 1fr; gap: 28px; margin-bottom: 36px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  body { font-size: 17px; }
  .prose p { font-size: 17px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
