/* PROJECT PAGE STYLES — included by all projects/X.html */

.project-hero {
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative;
  border-bottom: 1px solid var(--grey-dim);
  min-height: 380px;
}
.project-hero-left {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px 48px 56px;
  position: relative; z-index: 2;
  border-right: 1px solid var(--grey-dim);
  overflow: hidden;
}
.project-hero-right {
  position: relative;
  background: var(--bg2);
  overflow: hidden;
}
.project-hero-carousel-track {
  display: flex;
  height: 100%;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.project-hero-carousel-track img {
  flex-shrink: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: brightness(.85);
}
.project-hero-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  background: rgba(9,9,15,.55); border: 1px solid var(--grey-dim);
  color: var(--white); font-family: var(--font-mono); font-size: 13px;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  cursor: none; transition: background .2s, border-color .2s;
}
.project-hero-carousel-btn:hover { background: var(--accent); border-color: var(--accent); }
.project-hero-carousel-btn.prev { left: 10px; }
.project-hero-carousel-btn.next { right: 10px; }
/* Placeholder shown when no hero image */
.project-hero-right:empty::after,
.project-hero-right .hero-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px; color: var(--grey-dim);
  letter-spacing: .3em; text-transform: uppercase;
}
.project-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 50% 60% at 30% 60%, rgba(192,57,43,.05) 0%, transparent 65%);
}
.project-hero-left::before {
  content: ''; position: absolute;
  inset: -28px; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.025) 2px, transparent 2px);
  background-size: 28px 28px;
  animation: dotDrift 3.5s linear infinite;
}
.project-back {
  position: absolute; top: 88px; left: 48px;
  font-family: var(--font-mono); font-size: 10px; color: var(--grey);
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  display: flex; align-items: center; gap: 8px; transition: color .2s; z-index: 3;
}
.project-back:hover { color: var(--accent); }
.project-back::before { content: '←'; }

.project-eyebrow {
  font-family: var(--font-mono); font-size: 10px; color: var(--accent);
  letter-spacing: .4em; text-transform: uppercase; margin-bottom: 16px;
  opacity: 0; animation: fadeUp .7s ease forwards .1s;
}
.project-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 120px);
  line-height: .9; letter-spacing: .02em; color: var(--white);
  opacity: 0; animation: fadeUp .7s ease forwards .25s;
}
.project-subtitle {
  margin-top: 20px;
  font-family: var(--font-mono); font-size: 11px; color: var(--grey);
  letter-spacing: .12em; text-transform: uppercase;
  opacity: 0; animation: fadeUp .7s ease forwards .4s;
}
.project-tags-hero {
  margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp .7s ease forwards .5s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* META BAR */
.meta-bar {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--grey-dim);
  overflow-x: auto;
}
.meta-cell {
  padding: 24px 36px;
  border-top: 2px solid transparent;
  flex: 1;
  transition: background .45s ease, border-top-color .45s ease;
}
.meta-cell.lit {
  background: rgba(255,255,255,.04);
  border-top-color: var(--accent);
}
.meta-cell.lit .meta-key { color: var(--grey); }
.meta-key { font-family: var(--font-mono); font-size: 10px; color: var(--grey-dim); letter-spacing: .25em; text-transform: uppercase; margin-bottom: 6px; transition: color .45s ease; }
.meta-val { font-family: var(--font-mono); font-size: 13px; color: var(--white); letter-spacing: .05em; }

/* SCREENSHOT CAROUSEL */
.screenshots-section {
  border-bottom: 1px solid var(--grey-dim);
  overflow: hidden;
  position: relative;
  padding: 0;
}
.screenshots-label { display: none; }

/* Screenshot carousel */
.carousel-viewport {
  overflow: hidden;
  position: relative;
  padding: 0 0 24px;
}

.carousel-track {
  display: flex;
  gap: 6px;
  width: max-content;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}

.carousel-track img {
  height: 280px; width: auto;
  flex-shrink: 0;
  object-fit: cover; display: block;
  filter: grayscale(15%); transition: filter .3s;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}
.carousel-track img:hover { filter: grayscale(0%); }

.carousel-btn {
  position: absolute; top: calc(50% - 12px); transform: translateY(-50%); z-index: 3;
  background: rgba(9,9,15,.6); border: 1px solid var(--grey-dim);
  color: var(--white); font-family: var(--font-mono); font-size: 13px;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  cursor: none; transition: background .2s, border-color .2s;
}
.carousel-btn:hover { background: var(--accent); border-color: var(--accent); }
.carousel-btn-prev { left: 10px; }
.carousel-btn-next { right: 10px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(9,9,15,.96);
  z-index: 800; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
  cursor: zoom-out;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; display: block; }
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--font-mono); font-size: 10px; color: var(--grey);
  letter-spacing: .2em; background: none; border: 1px solid var(--grey-dim);
  padding: 8px 14px; cursor: none; transition: all .2s;
}
.lightbox-close:hover { color: var(--white); border-color: var(--white); }

/* CONTENT */
.project-content {
  display: grid; grid-template-columns: 1fr 340px; gap: 0;
  border-bottom: 1px solid var(--grey-dim);
}
.project-writeup {
  padding: 64px 64px 64px 48px;
  border-right: 1px solid var(--grey-dim);
}
.writeup-heading {
  font-family: var(--font-display); font-size: 28px; letter-spacing: .06em;
  color: var(--white); margin-bottom: 20px; margin-top: 40px;
}
.writeup-heading:first-child { margin-top: 0; }
.writeup-body { font-size: 19px; color: var(--grey); line-height: 1.85; margin-bottom: 16px; }
.writeup-body strong { color: var(--white); font-weight: 400; }

.project-sidebar { padding: 64px 40px; }
.sidebar-section { margin-bottom: 40px; }
.sidebar-label { font-family: var(--font-mono); font-size: 10px; color: var(--grey-dim); letter-spacing: .3em; text-transform: uppercase; margin-bottom: 14px; }
.sidebar-links { display: flex; flex-direction: column; gap: 2px; }
.sidebar-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--bg2);
  text-decoration: none; font-family: var(--font-mono); font-size: 13px; color: var(--white);
  border-left: 2px solid transparent; transition: all .2s;
}
.sidebar-link:hover { background: var(--bg3); border-color: var(--accent); color: var(--accent); }
.sidebar-link span { font-size: 14px; }

.tech-list { display: flex; flex-direction: column; gap: 2px; }
.tech-item {
  padding: 10px 16px; background: var(--bg2);
  font-family: var(--font-mono); font-size: 13px; color: var(--grey);
  border-left: 2px solid var(--grey-dim);
}

/* PROJECT NAV */
.project-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
.project-nav-item {
  padding: 36px 48px; background: var(--bg2);
  text-decoration: none; color: inherit; transition: background .2s;
  display: flex; flex-direction: column; gap: 8px;
}
.project-nav-item:hover { background: var(--bg3); }
.project-nav-item.next { text-align: right; }
.nav-dir { font-family: var(--font-mono); font-size: 9px; color: var(--grey-dim); letter-spacing: .3em; text-transform: uppercase; }
.nav-title { font-family: var(--font-display); font-size: 32px; letter-spacing: .05em; color: var(--white); transition: color .2s; }
.project-nav-item:hover .nav-title { color: var(--accent); }

@media (max-width: 768px) {
  .project-hero { grid-template-columns: 1fr; min-height: auto; }
  .project-hero-left { overflow: visible; }
  .project-hero-left::before { display: none; }
  .project-hero-left { padding: 100px 20px 40px; }
  .project-hero-right { min-height: 56vw; }
  .project-back { left: 20px; top: 72px; }
  .project-title { font-size: clamp(48px, 14vw, 80px); }
  .meta-bar { scrollbar-width: none; }
  .meta-bar::-webkit-scrollbar { display: none; }
  .meta-cell { padding: 16px 20px; flex: none; min-width: 110px; }
  .screenshots-label { padding: 16px 20px 12px; }
  .carousel-track img { height: 200px; }
  .project-content { grid-template-columns: 1fr; }
  .project-writeup { padding: 36px 20px; border-right: none; border-bottom: 1px solid var(--grey-dim); }
  .project-sidebar { padding: 36px 20px; }
  .project-nav { grid-template-columns: 1fr; }
  .project-nav-item.next { text-align: left; }
  .project-nav-item { padding: 24px 20px; }
}

