/* ===== DESIGN TOKENS ===== */
:root {
  --bg: #0a0a0a;
  --ink: #EDEAE3;
  --gold: #C9A227;
  --muted: #8b8880;
  --muted-2: #b5b2a9;
  --footer-muted: #6f6c64;
  --hairline: rgba(237, 234, 227, .16);
  --gold-rule: #C9A227;
  --gold-tint: rgba(201, 162, 39, .06);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Mono', monospace;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
}

::selection {
  background: #C9A227;
  color: #0a0a0a;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ===== CUSTOM CURSOR ===== */
#cursor-dot {
  width: 8px;
  height: 8px;
  background: #C9A227;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  transition: transform .05s;
}

#cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(201, 162, 39, .55);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99998;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1), border-color .15s, scale .15s;
}

#cursor-ring.hovered {
  scale: 1.9;
  border-color: #C9A227;
}

/* ===== SCROLL PROGRESS BAR ===== */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: #C9A227;
  width: 0%;
  z-index: 10000;
  transition: width .05s linear;
}

/* ===== ANIMATIONS ===== */
@keyframes heroUp {
  from { transform: translateY(105%); }
  to   { transform: translateY(0); }
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s cubic-bezier(.16, 1, .3, 1), transform .75s cubic-bezier(.16, 1, .3, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-x {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity .75s cubic-bezier(.16, 1, .3, 1), transform .75s cubic-bezier(.16, 1, .3, 1);
}

.reveal-x.in {
  opacity: 1;
  transform: none;
}

/* ===== STICKY NAV ===== */
#nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0a0a0a;
  border-bottom: 1.5px solid #C9A227;
}

.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
}

.nav-brand {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #C9A227;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 18px 24px;
  border-right: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.nav-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}

.nav-links li {
  border-right: 1px solid var(--hairline);
}

.nav-links li:last-child {
  border-right: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 18px 20px;
  transition: background .15s, color .15s;
}

.nav-links a:hover {
  background: #C9A227;
  color: #0a0a0a;
}

.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #C9A227;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 20px;
  user-select: none;
  transition: opacity .15s;
}

.nav-hamburger:hover {
  opacity: .75;
}

.nav-dropdown {
  display: none;
  flex-direction: column;
  border-bottom: 1.5px solid #C9A227;
}

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

.nav-dropdown a {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 24px;
  border-bottom: 1px solid var(--hairline);
  transition: background .15s, color .15s;
}

.nav-dropdown a:last-child {
  border-bottom: none;
}

.nav-dropdown a:hover {
  background: #C9A227;
  color: #0a0a0a;
}

/* ===== HERO ===== */
#hero {
  border-bottom: 1.5px solid #C9A227;
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--hairline);
  padding: 14px 24px;
}

.hero-meta span {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta-right {
  text-align: right;
}

.hero-meta-left {
  animation: heroFade .6s ease .08s both;
}

.hero-meta-right {
  animation: heroFade .6s ease .16s both;
}

.hero-main {
  display: grid;
  grid-template-columns: 1.55fr .95fr;
  min-height: 560px;
}

.hero-left {
  padding: 40px 24px 36px;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: space-between;
}

.hero-h1 {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(56px, 10.5vw, 172px);
  font-weight: 900;
  letter-spacing: -.035em;
  text-transform: uppercase;
  line-height: .92;
}

.hero-h1-clip {
  overflow: hidden;
  display: block;
}

.hero-h1-clip:first-child .hero-h1-inner {
  animation: heroUp .95s cubic-bezier(.16, 1, .3, 1) .2s both;
}

.hero-h1-clip:last-child .hero-h1-inner {
  animation: heroUp .95s cubic-bezier(.16, 1, .3, 1) .36s both;
}

.hero-h1-inner {
  display: block;
}

.hero-h1 .gold {
  color: #C9A227;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  animation: heroFade .8s ease .75s both;
}

.hero-tagline {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  color: var(--muted-2);
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #C9A227;
  color: #0a0a0a;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  transition: background .15s;
}

.btn-primary:hover {
  background: #EDEAE3;
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  color: var(--ink);
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 16px 20px;
  border: 1px solid rgba(237, 234, 227, .3);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.btn-secondary:hover {
  border-color: #C9A227;
  color: #C9A227;
}

/* Hero right — portrait */
.hero-right {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 18px,
    rgba(201, 162, 39, .04) 18px,
    rgba(201, 162, 39, .04) 19px
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-portrait {
  max-height: 600px;
  width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: contrast(1.04);
  animation: heroFade .9s ease .45s both;
  position: relative;
  z-index: 2;
}

.hero-fig-label {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  color: #C9A227;
  z-index: 3;
  animation: heroFade .6s ease 1.1s both;
}

.hero-coords {
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(201, 162, 39, .35);
  z-index: 3;
  animation: heroFade .6s ease 1.1s both;
}

/* Mobile hero magazine layout */
.hero-mobile-portrait {
  display: none;
  position: relative;
  width: 100%;
}

.hero-mobile-portrait img {
  width: 100%;
  object-fit: cover;
  object-position: top center;
  max-height: 88vw;
}

.hero-mobile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 38%, rgba(10, 10, 10, .92) 100%);
}

.hero-mobile-name {
  position: absolute;
  bottom: 18px;
  left: 20px;
  font-family: 'Archivo', sans-serif;
  font-size: clamp(52px, 17vw, 88px);
  font-weight: 900;
  letter-spacing: -.035em;
  text-transform: uppercase;
  line-height: .9;
  z-index: 2;
}

.hero-mobile-name .gold { color: #C9A227; }

/* ===== TICKER ===== */
#ticker {
  border-top: 1px solid rgba(201, 162, 39, .18);
  border-bottom: 1.5px solid #C9A227;
  padding: 16px 0;
  background: rgba(255, 255, 255, .012);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 34s linear infinite;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-right: 0;
}

.ticker-content span {
  padding: 0 20px;
}

.ticker-sep {
  color: #C9A227;
  padding: 0 4px !important;
}

/* ===== STATS ===== */
#stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1.5px solid #C9A227;
}

.stat-cell {
  padding: 40px 24px;
  border-right: 1px solid var(--hairline);
  transition: background .18s;
}

.stat-cell:last-child {
  border-right: none;
}

.stat-cell:hover {
  background: rgba(201, 162, 39, .06);
}

.stat-number {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 900;
  letter-spacing: -.03em;
  color: #C9A227;
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== ABOUT ===== */
#about {
  display: grid;
  grid-template-columns: .32fr .68fr;
  border-bottom: 1.5px solid #C9A227;
}

.about-left {
  padding: 40px 24px;
  border-right: 1px solid var(--hairline);
}

.about-right {
  padding: 40px 24px;
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-label .bracket {
  color: #C9A227;
}

.section-label .label-muted {
  color: var(--muted);
}

.about-h2 {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(22px, 2.8vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.14;
  max-width: 880px;
  margin-bottom: 26px;
}

.about-body {
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted-2);
  max-width: 760px;
}

/* ===== VENTURES INDEX ===== */
#ventures {
  border-bottom: 1.5px solid #C9A227;
}

.ventures-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1.5px solid #C9A227;
  padding: 40px 24px 24px;
}

.ventures-h2 {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(34px, 6vw, 84px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: .85;
  text-transform: uppercase;
}

.ventures-count {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #C9A227;
  padding-bottom: 4px;
}

.venture-row {
  display: grid;
  grid-template-columns: 64px 132px 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
  transition: background .18s;
}

.venture-row:hover {
  background: #C9A227;
}

.venture-row:hover .vnum,
.venture-row:hover .vname,
.venture-row:hover .vsector,
.venture-row:hover .dir-url,
.venture-row:hover .dir-url-inline {
  color: #0a0a0a !important;
}

.vnum {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  color: var(--muted);
  padding: 22px 0 22px 24px;
  transition: color .18s;
}

.v-logo-col {
  padding: 12px 16px;
}

.venture-chip {
  width: 100px;
  height: 46px;
  border-radius: 5px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.venture-chip img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.v-body {
  padding: 16px 16px;
  min-width: 0;
}

.vname {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(19px, 2.4vw, 34px);
  letter-spacing: -.02em;
  line-height: 1;
  transition: color .18s;
}

.vsector {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
  transition: color .18s;
}

.dir-url-inline {
  display: none;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: .04em;
  color: #C9A227;
  margin-top: 8px;
  transition: color .18s;
}

.dir-url {
  padding: 18px 22px 18px 8px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: .04em;
  color: #C9A227;
  white-space: nowrap;
  transition: color .18s;
}

/* ===== JOURNEY ===== */
#journey {
  border-top: 1.5px solid #C9A227;
}

.journey-inner {
  display: grid;
  grid-template-columns: .38fr .62fr;
  border-bottom: 1px solid var(--hairline);
}

.journey-left {
  padding: 40px 24px;
  border-right: 1px solid var(--hairline);
}

.journey-h2 {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: -.02em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-top: 18px;
  text-align: center;
  text-wrap: balance;
}

.journey-right {
  padding: 40px 28px;
  border-left: 2px solid rgba(201, 162, 39, .22);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.journey-item {
  position: relative;
}

.journey-dot {
  position: absolute;
  left: -49px;
  top: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #C9A227;
  box-shadow: 0 0 0 5px rgba(201, 162, 39, .15);
}

.journey-year {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: .14em;
  color: #C9A227;
  margin-bottom: 6px;
}

.journey-title {
  font-family: 'Archivo', sans-serif;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.journey-text {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted-2);
  max-width: 560px;
}

/* ===== PHILOSOPHY ===== */
#philosophy {
  border-top: 1.5px solid #C9A227;
  border-bottom: 1.5px solid #C9A227;
  padding: 80px 24px;
  background: repeating-linear-gradient(
    135deg,
    rgba(201, 162, 39, .04) 0,
    rgba(201, 162, 39, .04) 2px,
    transparent 2px,
    transparent 16px
  );
}

.philosophy-label {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #C9A227;
  margin-bottom: 28px;
}

.philosophy-quote {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(20px, 4vw, 58px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.18;
  max-width: 1100px;
  margin-bottom: 32px;
}

.philosophy-quote span {
  display: block;
}

.philosophy-quote .gold-line {
  color: #C9A227;
}

.philosophy-attribution {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== CONTACT + FOOTER ===== */
#contact-footer {
  border-top: 1.5px solid #C9A227;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1.5px solid #C9A227;
}

.contact-left {
  padding: 56px 24px;
  border-right: 1px solid var(--hairline);
}

.contact-h2 {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(38px, 6vw, 92px);
  font-weight: 900;
  letter-spacing: -.03em;
  text-transform: uppercase;
  line-height: .86;
  margin-top: 16px;
}

.contact-right {
  display: flex;
  flex-direction: column;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 24px;
  border-bottom: 1px solid var(--hairline);
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none;
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-row:hover {
  background: #C9A227;
  color: #0a0a0a;
}

.contact-row:hover .contact-label {
  color: rgba(10, 10, 10, .7);
}

.contact-label {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .15s;
}

.contact-row:hover .contact-label {
  color: rgba(10, 10, 10, .7);
}

.contact-val {
  font-size: 15px;
}

.footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 20px 24px;
}

.footer span {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--footer-muted);
}

.footer-right {
  text-align: right;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-x {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ===== RESPONSIVE: TABLET ≤1023px ===== */
@media (max-width: 1023px) {
  .hero-main {
    grid-template-columns: 1fr;
  }

  .hero-right {
    border-top: 1px solid var(--hairline);
    min-height: 420px;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
  }

  #stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-cell:nth-child(2) {
    border-right: none;
  }

  .stat-cell:nth-child(1),
  .stat-cell:nth-child(2) {
    border-bottom: 1px solid var(--hairline);
  }

  #about {
    grid-template-columns: 1fr;
  }

  .about-left {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
    padding: 40px 24px;
  }

  .about-right {
    padding: 40px 24px;
  }

  .venture-row {
    grid-template-columns: 54px 110px 1fr;
  }

  .dir-url {
    display: none;
  }

  .dir-url-inline {
    display: block;
  }

  .venture-chip {
    width: 92px;
    height: 42px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-left {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }
}

/* ===== RESPONSIVE: MOBILE ≤767px ===== */
@media (max-width: 767px) {
  body {
    cursor: auto;
  }

  #cursor-dot,
  #cursor-ring {
    display: none;
  }

  .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Mobile hero */
  .hero-meta {
    grid-template-columns: 1fr;
  }

  .hero-meta-right {
    display: none;
  }

  .hero-main {
    display: flex;
    flex-direction: column;
  }

  .hero-left {
    order: 2;
    padding: 22px 20px;
    border-right: none;
  }

  .hero-right {
    display: none;
  }

  .hero-h1 {
    display: none;
  }

  .hero-mobile-portrait {
    display: block;
    order: 1;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
    max-width: 100%;
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-tagline {
    font-size: 13px;
  }

  /* Stats 2x2 stays */
  #stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Ventures */
  .venture-row {
    grid-template-columns: 42px 1fr;
  }

  .v-logo-col {
    display: none;
  }

  .vnum {
    padding: 16px 0 16px 18px;
    font-size: 12px;
    align-self: start;
  }

  .v-body {
    padding: 14px 18px 14px 8px;
  }

  .vname {
    font-size: clamp(17px, 4.6vw, 24px);
  }

  .dir-url-inline {
    display: block;
  }

  /* Journey */
  .journey-inner {
    grid-template-columns: 1fr;
  }

  .journey-left {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }

  .journey-right {
    padding-left: 40px;
    border-left: 2px solid rgba(201, 162, 39, .22);
    margin-left: 24px;
  }

  .journey-dot {
    left: -37px;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-left {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
    padding: 36px 20px;
  }

  .contact-row {
    padding: 20px 20px;
    font-size: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .contact-label {
    display: block;
    font-size: 11px;
    letter-spacing: .2em;
    color: #C9A227 !important;
  }

  .contact-val {
    width: 100%;
  }

  /* Footer */
  .footer {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-right {
    text-align: left;
    border-top: 1px solid var(--hairline);
    padding-top: 8px;
  }

  /* About */
  #about {
    grid-template-columns: 1fr;
  }
}

/* ===== GALLERY ===== */
#gallery {
  border-top: 1.5px solid #C9A227;
  border-bottom: 1.5px solid #C9A227;
}

.gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1.5px solid #C9A227;
  padding: 40px 24px 24px;
}

.gallery-loading {
  padding: 56px 24px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--muted);
  text-align: center;
  animation: galPulse 1.2s ease infinite;
}

@keyframes galPulse {
  0%, 100% { opacity: .4; }
  50%       { opacity: 1; }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-item:nth-child(3n) {
  border-right: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), filter .3s;
  filter: grayscale(20%);
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: flex-end;
  padding: 16px 18px;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-caption {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--ink);
  text-transform: uppercase;
}

.gallery-empty {
  padding: 64px 24px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, .96);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--hairline);
}

.lightbox-caption {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 28px;
  font-size: 22px;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  transition: color .15s;
  z-index: 9001;
  font-family: 'Space Mono', monospace;
}

.lightbox-close:hover { color: #C9A227; }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px;
  transition: color .15s;
  z-index: 9001;
  font-family: 'Space Mono', monospace;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover { color: #C9A227; }

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:nth-child(3n) {
    border-right: 1px solid var(--hairline);
  }

  .gallery-item:nth-child(2n) {
    border-right: none;
  }

  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
}
