:root {
  --bg: #0d0b0a;
  --surface: #171311;
  --text: #f4ebdf;
  --muted: #b4a48f;
  --accent: #d6a96a;
  --border: rgba(255, 255, 255, 0.08);
  --sidebar-w: 200px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  transition: color 0.25s ease;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Gate page (unchanged structure) ── */
.gate-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #171311 0%, #060606 100%);
}
.gate-shell { width: min(92vw, 500px); }
.gate-card {
  background: rgba(17, 15, 14, 0.96);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  padding: 44px 36px;
  text-align: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
h1, h2 { font-family: 'Cormorant Garamond', serif; font-weight: 600; line-height: 1.1; }
.gate-card h1 { font-size: 2.35rem; margin: 0 0 10px; }
.gate-copy { color: var(--muted); margin-bottom: 22px; }
.gate-form { display: flex; flex-direction: column; gap: 12px; }
input {
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font: inherit;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
button {
  border: none; border-radius: 999px; padding: 11px 18px;
  font: inherit; cursor: pointer; text-decoration: none; display: inline-block;
  background: var(--accent); color: #16110d; font-weight: 600;
}
.message { min-height: 1.2em; margin-top: 10px; color: var(--accent); }

/* ═══════════════════════════════════════════
   SINGLE-PAGE LAYOUT
   ═══════════════════════════════════════════ */

.single-page { display: flex; min-height: 100vh; background: var(--bg); }

/* ── Left Sidebar ── */
.sidebar {
  position: fixed; top: 0; left: 0; width: var(--sidebar-w); height: 100vh;
  background: rgba(10, 9, 8, 0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border); z-index: 100;
  display: flex; flex-direction: column; transition: transform 0.3s ease;
}
.sidebar-inner { display: flex; flex-direction: column; height: 100%; padding: 36px 24px 24px; }
.sidebar-brand {
  font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 700;
  text-decoration: none; color: var(--accent); line-height: 1;
  margin-bottom: 48px; display: block; letter-spacing: 0.04em;
  transition: opacity 0.3s ease;
}
.sidebar-brand:hover { opacity: 0.6; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--muted); font-size: 0.88rem; font-weight: 500;
  padding: 6px 0; position: relative; transition: color 0.3s ease;
}
.sidebar-link:hover { color: var(--text); }
.sidebar-link.active { color: var(--accent); }
.nav-indicator {
  display: block; width: 0; height: 2px; background: var(--accent); border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); flex-shrink: 0;
}
.sidebar-link.active .nav-indicator { width: 16px; }

/* ── Main Content Area ── */
.main-content {
  margin-left: var(--sidebar-w); flex: 1; min-height: 100vh;
  background: linear-gradient(180deg, #0d0b0a 0%, #11100e 25%, #0f0d0c 50%, #100e0d 75%, #0d0b0a 100%);
}

/* ═══════════════════════════════════════════
   INTRO SECTION
   ═══════════════════════════════════════════ */

.intro-section {
  min-height: 85vh;
  display: flex; align-items: center;
  padding: 60px 60px 40px;
  position: relative;
}

/* ↓ scroll hint */
.intro-section::after {
  content: '↓'; position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%); color: var(--accent); font-size: 1.8rem;
  opacity: 0.5; animation: bounceHint 1.8s ease-in-out infinite;
}
@keyframes bounceHint {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.intro-spread { width: 100%; max-width: 1100px; }

.big-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.2rem, 8vw, 5.6rem); font-weight: 700; line-height: 0.95;
  margin: 0 0 36px; color: var(--text); letter-spacing: -0.01em;
}

/* ── Two-column body: text (fixed 380px) + collage (min 420px) ── */
.intro-body {
  display: grid;
  grid-template-columns: 380px minmax(420px, 1fr);
  gap: 48px;
  align-items: center;
}

.intro-text-col { width: 380px; }

.intro-text {
  color: var(--muted); font-size: 1.05rem; margin-bottom: 14px; line-height: 1.7;
}
.intro-text.bio { color: var(--text); font-size: 1.12rem; }
.contact-line { color: var(--muted); }
.contact-line a { color: var(--accent); text-decoration: none; font-weight: 500; }
.contact-line a:hover { color: var(--text); }

/* ═══════════════════════════════════════════
   PHOTO COLLAGE — grid with overlap
   ═══════════════════════════════════════════ */

.photo-collage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: auto auto auto;
  gap: 8px;
  align-items: start;
  justify-items: center;
}

/* Profile pic spans all rows on the left */
.collage-main {
  grid-column: 1;
  grid-row: 1 / 4;
  width: 100%;
  z-index: 2;
}
.collage-main .collage-img {
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  width: 100%; height: auto; min-height: 320px;
  object-fit: cover;
}

/* Satellites on the right and bottom — larger, with overlap */
.collage-satellite {
  z-index: 3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s ease, z-index 0s;
}
.collage-satellite:hover {
  transform: scale(1.12) rotate(0deg) !important;
  z-index: 10;
}
.collage-satellite .collage-img {
  width: 100%; height: auto; object-fit: cover; display: block;
}

/* sat-1: south sudan — bottom-left, overlapping profile pic */
.sat-1 {
  grid-column: 1;
  grid-row: 3;
  width: 150px;
  z-index: 4;
  justify-self: start;
  transform: rotate(-4deg) translateY(-24px);
  margin-left: -20px;
}

/* sat-2: cowboys — top-right, overlapping into profile pic */
.sat-2 {
  grid-column: 2;
  grid-row: 1;
  width: 160px;
  justify-self: start;
  transform: rotate(6deg);
  margin-top: -16px;
  margin-left: -50px;
}

/* sat-3: celtics — middle-right, overlapping */
.sat-3 {
  grid-column: 2;
  grid-row: 2;
  width: 155px;
  justify-self: start;
  transform: rotate(-3deg);
  margin-left: -44px;
  margin-top: -8px;
}

/* sat-4: iowa state — bottom-right, overlapping */
.sat-4 {
  grid-column: 2;
  grid-row: 3;
  width: 145px;
  justify-self: start;
  transform: rotate(5deg);
  margin-left: -50px;
  margin-top: -12px;
}

/* ═══════════════════════════════════════════
   ALBUM SECTIONS — tight spacing
   ═══════════════════════════════════════════ */

.album-section-block { padding: 40px 60px 40px; position: relative; }
.section-header { margin-bottom: 16px; }
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600;
  margin: 0 0 2px; color: var(--accent);
}
.section-sub { color: var(--muted); font-size: 0.78rem; margin: 0; font-weight: 400; }

/* ═══════════════════════════════════════════
   MASONRY GRID
   ═══════════════════════════════════════════ */

.masonry-grid { columns: 3; column-gap: 10px; }
.masonry-card {
  break-inside: avoid; margin-bottom: 10px; overflow: hidden;
  border-radius: 6px; position: relative;
  background: rgba(255, 255, 255, 0.02); cursor: pointer;
}
.masonry-card img {
  width: 100%; height: auto; display: block; object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
}
.masonry-card:hover img { transform: scale(1.03); filter: brightness(1.1); }
.masonry-card.tall img { min-height: 380px; }
.masonry-card.wide img { min-height: 280px; }

/* ═══════════════════════════════════════════
   CARD HOVER OVERLAY — date & caption
   ═══════════════════════════════════════════ */

.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px 14px; opacity: 0; transition: opacity 0.35s ease;
  pointer-events: none; border-radius: 6px;
}
.masonry-card:hover .card-overlay { opacity: 1; }
.overlay-date {
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
  color: var(--accent); letter-spacing: 0.04em; margin-bottom: 4px;
}
.overlay-caption {
  font-size: 0.88rem; color: var(--text); font-weight: 500; line-height: 1.3;
}

/* ═══════════════════════════════════════════
   LIGHTBOX — tap-to-zoom (mobile)
   ═══════════════════════════════════════════ */

.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  flex-direction: column; align-items: center; justify-content: center;
  padding: 20px; cursor: pointer;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 95vw; max-height: 75vh; border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); object-fit: contain;
}
.lightbox-info {
  margin-top: 16px; text-align: center;
}
.lightbox-info .lb-date {
  font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
  color: var(--accent); letter-spacing: 0.04em; margin-bottom: 4px;
}
.lightbox-info .lb-caption {
  font-size: 0.95rem; color: var(--text); font-weight: 500;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.site-footer { padding: 24px 60px; text-align: center; background: #090808; border-top: 1px solid var(--border); }
.site-footer p { color: var(--muted); font-size: 0.82rem; margin: 0; }

/* ═══════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════ */

.page-section {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.page-section.revealed { opacity: 1; transform: none; }
[data-anim="fade-up"] { transform: translateY(60px); }
[data-anim="slide-right"] { transform: translateX(-60px); }
[data-anim="slide-left"] { transform: translateX(60px); }
[data-anim="scale-in"] { transform: scale(0.92); }

.masonry-card {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.masonry-card.revealed { opacity: 1; transform: translateY(0); }
.masonry-card:nth-child(1) { transition-delay: 0.05s; }
.masonry-card:nth-child(2) { transition-delay: 0.08s; }
.masonry-card:nth-child(3) { transition-delay: 0.12s; }
.masonry-card:nth-child(4) { transition-delay: 0.04s; }
.masonry-card:nth-child(5) { transition-delay: 0.15s; }
.masonry-card:nth-child(6) { transition-delay: 0.07s; }
.masonry-card:nth-child(7) { transition-delay: 0.2s; }
.masonry-card:nth-child(8) { transition-delay: 0.1s; }
.masonry-card:nth-child(9) { transition-delay: 0.13s; }
.masonry-card:nth-child(10) { transition-delay: 0.18s; }
.masonry-card:nth-child(11) { transition-delay: 0.06s; }
.masonry-card:nth-child(12) { transition-delay: 0.22s; }

/* ═══════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .masonry-grid { columns: 3; }
  .masonry-card.tall img { min-height: 240px; }
  .masonry-card.wide img { min-height: 180px; }

  /* Narrower gap between text and collage */
  .intro-body { gap: 32px; }
}

/* ── STACK at 960px: photos move below text ── */
@media (max-width: 960px) {
  .intro-section { padding: 40px 40px 24px; }
  .intro-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .intro-text-col { max-width: 100%; }

  /* Collage switches to stacked: profile pic on top, 2x2 grid below */
  .photo-collage {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    min-height: auto;
  }
  .collage-main {
    grid-column: 1 / 5;
    grid-row: 1;
    width: 100%;
    max-width: 420px;
    justify-self: center;
  }
  .collage-main .collage-img { min-height: 240px; }

  .sat-1 { grid-column: 1; grid-row: 2; width: 100%; transform: rotate(-3deg); margin: 0; justify-self: center; }
  .sat-2 { grid-column: 2; grid-row: 2; width: 100%; transform: rotate(4deg); margin: 0; justify-self: center; }
  .sat-3 { grid-column: 3; grid-row: 2; width: 100%; transform: rotate(-2deg); margin: 0; justify-self: center; }
  .sat-4 { grid-column: 4; grid-row: 2; width: 100%; transform: rotate(5deg); margin: 0; justify-self: center; }
}

@media (max-width: 768px) {
  .single-page { flex-direction: column; }

  .sidebar {
    position: fixed; bottom: 0; left: 0; top: auto; width: 100%; height: auto;
    flex-direction: row; border-right: none; border-top: 1px solid var(--border);
    background: rgba(10, 9, 8, 0.98);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 0; z-index: 100;
  }
  .sidebar-inner { flex-direction: row; align-items: center; padding: 10px 16px; width: 100%; height: auto; overflow-x: auto; }
  .sidebar-brand { display: none; }
  .sidebar-nav { flex-direction: row; gap: 4px; flex: 1; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sidebar-link { flex-shrink: 0; padding: 6px 10px; font-size: 0.78rem; white-space: nowrap; }
  .nav-indicator { display: none; }
  .sidebar-link.active { background: rgba(214, 169, 106, 0.15); border-radius: 6px; padding: 6px 10px; }
  .main-content { margin-left: 0; margin-bottom: 56px; }

  .intro-section { padding: 36px 20px 20px; min-height: auto; }
  .intro-section::after { bottom: 6px; font-size: 1.2rem; }
  .big-name { font-size: 2.2rem; margin-bottom: 18px; }
  .intro-body { grid-template-columns: 1fr; gap: 24px; }

  /* Mobile collage: profile on top, 2x2 below */
  .photo-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 8px;
  }
  .collage-main { grid-column: 1 / 3; grid-row: 1; max-width: 100%; }
  .collage-main .collage-img { min-height: 200px; }
  .sat-1 { grid-column: 1; grid-row: 2; width: 100%; transform: rotate(-3deg); margin: 0; }
  .sat-2 { grid-column: 2; grid-row: 2; width: 100%; transform: rotate(4deg); margin: 0; }
  .sat-3 { grid-column: 1; grid-row: 3; width: 100%; transform: rotate(-2deg); margin: 0; }
  .sat-4 { grid-column: 2; grid-row: 3; width: 100%; transform: rotate(5deg); margin: 0; }

  .album-section-block { padding: 28px 16px 28px; }

  /* Mobile masonry: 3 columns */
  .masonry-grid { columns: 3; column-gap: 5px; }
  .masonry-card { margin-bottom: 5px; border-radius: 4px; }
  .masonry-card.tall img { min-height: 150px; }
  .masonry-card.wide img { min-height: 120px; }
  .masonry-card img { min-height: 100px; }
  .card-overlay { display: none; }
  .site-footer { padding: 24px; }
}

@media (max-width: 480px) {
  .masonry-grid { columns: 3; column-gap: 4px; }
  .masonry-card { margin-bottom: 4px; }
  .masonry-card.tall img { min-height: 120px; }
  .masonry-card.wide img { min-height: 100px; }
  .masonry-card img { min-height: 80px; }
  .big-name { font-size: 1.8rem; }
  .section-title { font-size: 1.1rem; }
}

/* ── Accessible sr-only ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }