:root {
  --bg: #0a0a0c;
  --bg-panel: #141317;
  --bg-panel-2: #19181d;
  --gold: #c9a961;
  --gold-bright: #e8c468;
  --cream: #ede8dd;
  --muted: #8b8880;
  --line: rgba(237, 232, 221, 0.1);
  --knicks-blue: #1d4289;
  --knicks-orange: #f58426;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

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

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

h1, h2 {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* subtle grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  background: linear-gradient(to bottom, rgba(10,10,12,0.85), transparent);
  backdrop-filter: blur(4px);
}

.nav-mark {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}

.nav-gates {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.nav-gates a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  transition: color 0.25s ease;
  padding: 0.4rem 0;
}
.nav-gates a:hover { color: var(--cream); }
.gate-num { color: var(--gold); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--cream); display: block; }

@media (max-width: 860px) {
  .nav-gates.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    width: 240px;
    height: 100vh;
    background: var(--bg-panel);
    padding: 6rem 2rem;
    gap: 1.5rem;
    border-left: 1px solid var(--line);
  }
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-img { position: absolute; inset: 0; }
.hero-img img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 20%;
  filter: grayscale(15%) contrast(1.05);
}
.hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,12,0.97) 5%, rgba(10,10,12,0.55) 45%, rgba(10,10,12,0.15) 75%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 3rem 6rem;
  max-width: 780px;
}

.hero-title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.95;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.hero-tag {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: opacity 0.25s ease;
}
.hero-cta:hover { opacity: 0.7; }

/* STATEMENT */
.statement {
  padding: 7rem 3rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.statement p {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.4;
  color: var(--cream);
}

/* ROOMS */
.room {
  padding: 6rem 3rem;
  border-top: 1px solid var(--line);
}
.room-alt { background: var(--bg-panel); }

.room-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.room-inner.reverse .room-media { order: -1; }

.room h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1.3rem;
}

.room-body { color: var(--cream); opacity: 0.85; font-size: 1.05rem; margin-bottom: 1rem; }
.room-body-small { color: var(--muted); font-size: 0.95rem; }

.room-media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 4px;
  filter: grayscale(10%) contrast(1.03);
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.tag-list li {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
}

.project-card {
  margin-top: 1.5rem;
  border: 1px solid var(--gold);
  padding: 1.4rem 1.6rem;
  border-radius: 6px;
  background: rgba(201, 169, 97, 0.04);
}
.project-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.project-name {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}
.project-desc { color: var(--muted); font-size: 0.9rem; }

.venture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.6rem;
}
.venture-grid span {
  font-size: 0.88rem;
  color: var(--cream);
  opacity: 0.75;
  border-left: 2px solid var(--gold);
  padding-left: 0.7rem;
}

/* DEPARTURE BOARD */
.board-room { border-top: 1px solid var(--line); padding-bottom: 8rem; }
.board-header { max-width: 700px; margin: 0 auto 3rem; text-align: center; }
.board-header h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.board-header .room-body { max-width: 520px; margin: 0 auto; }

.board {
  max-width: 900px;
  margin: 0 auto;
  background: #08080a;
  border: 1px solid var(--gold);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(201, 169, 97, 0.08);
}

.board-row {
  display: grid;
  grid-template-columns: 2fr 2fr 0.7fr 1.2fr;
  padding: 1.1rem 1.6rem;
  border-bottom: 1px solid rgba(201, 169, 97, 0.15);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
}
.board-row:last-child { border-bottom: none; }

.board-row-head {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(201, 169, 97, 0.06);
}

.board-gate-col, .board-status-col { text-align: right; }

.status {
  font-weight: 500;
  letter-spacing: 0.04em;
}
.status-landed { color: #8fbf8f; }
.status-transit { color: var(--gold-bright); }
.status-boarding { color: #e4a15c; animation: pulse 2s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.flicker { animation: flickerIn 0.6s ease-out backwards; }
.board-row:nth-child(2) .flicker { animation-delay: 0.05s; }
.board-row:nth-child(3) .flicker { animation-delay: 0.15s; }
.board-row:nth-child(4) .flicker { animation-delay: 0.25s; }
@keyframes flickerIn {
  0% { opacity: 0; }
  40% { opacity: 0.6; }
  55% { opacity: 0.1; }
  70% { opacity: 0.8; }
  100% { opacity: 1; }
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 4rem 2rem 3rem;
  border-top: 1px solid var(--line);
}
.footer-mark {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}
.footer-line { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.5rem; }
.footer-fine {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: rgba(139,136,128,0.6);
  letter-spacing: 0.1em;
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .nav { padding: 1.2rem 1.5rem; }
  .nav-gates { display: none; }
  .nav-toggle { display: flex; }
  .hero-content { padding: 0 1.5rem 4rem; }
  .statement { padding: 4.5rem 1.5rem; }
  .room { padding: 4rem 1.5rem; }
  .room-inner, .room-inner.reverse { grid-template-columns: 1fr; }
  .room-inner.reverse .room-media { order: 0; }
  .board-row { grid-template-columns: 1.6fr 1.6fr 0.6fr 1fr; padding: 0.9rem 1rem; font-size: 0.75rem; }
  .venture-grid { grid-template-columns: 1fr; }
}
