:root {
  --ink: #f8fbff;
  --muted: #c5cedd;
  --soft: rgba(255,255,255,.08);
  --paper: #020204;
  --line: rgba(255,255,255,.18);
  --navy: #f8fbff;
  --max: 1180px;
  --bg-0: #020204;
  --bg-1: #090b12;
  --panel: rgba(2, 2, 6, .72);
  --border: rgba(255,255,255,.18);
  --border-strong: rgba(255,255,255,.74);
  --text: #f8fbff;
  --text-dim: #c5cedd;
  --text-mute: #9ba7ba;
  --accent: #f8fbff;
  --accent-2: #9fb4f5;
  --accent-glow: transparent;
  --accent-soft: rgba(255,255,255,.08);
  --shadow-lg: 0 28px 80px rgba(0,0,0,.38);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  isolation: isolate;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body::before {
  z-index: -2;
  background: #000;
}
body::after {
  z-index: -1;
  background: none;
}
::selection { background: #fff; color: #05070d; }

.bg-stage,
.scanline { display: none; }

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.nav {
  position: relative;
  z-index: 10;
  background: rgba(0,0,0,.58);
  border: 0;
  backdrop-filter: blur(14px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 40px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark { display: none; }

.brand-text {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 28px;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.brand-text span { color: inherit; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a,
.nav-cta {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-cta:hover,
.nav-cta:focus {
  border-bottom-color: currentColor;
}

.nav-cta {
  padding: 0;
  border-radius: 0;
  background: transparent;
  text-transform: none;
  letter-spacing: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(0,0,0,.58);
  color: var(--ink);
  font: 700 14px Inter, Arial, sans-serif;
  text-decoration: none;
  transition: opacity .2s ease;
}

.btn:hover { opacity: .72; }
.btn-primary {
  background: #fff;
  border-color: #fff;
  color: #05070d;
}
.btn-ghost {
  background: rgba(0,0,0,.58);
  color: var(--ink);
}
.btn svg { width: 16px; height: 16px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 52px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.back-link svg { width: 15px; height: 15px; }

.proj-hero {
  padding: 76px 0 60px;
}

.proj-hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(360px, 1.18fr);
  gap: 70px;
  align-items: center;
}

.proj-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.proj-hero-tag .dot { display: none; }

.proj-hero h1 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(64px, 7vw, 104px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: .015em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.proj-hero h1 .gradient {
  color: var(--ink);
  -webkit-text-fill-color: currentColor;
}

.proj-hero p.lede,
.proj-section .lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.proj-hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 34px 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.proj-hero-meta .item {
  background: rgba(2, 2, 6, .72);
  padding: 18px 20px;
}

.label,
.proj-hero-meta .label,
.spec .k {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.proj-hero-meta .value,
.spec .v {
  color: var(--ink);
  font-weight: 700;
}

.proj-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.proj-hero-img {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.1);
}

.proj-hero-img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.proj-hero-img::after { display: none; }

.proj-hero-img .cap,
.gallery .ph .cap {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
  text-align: center;
}

.proj-section {
  padding: 70px 0;
}

.eyebrow {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before { display: none; }

.proj-section h2 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .015em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.proj-section h2 em {
  color: var(--ink);
  font-style: normal;
}

.proj-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
}

.proj-card {
  border: 0;
  border-top: 2px solid rgba(255,255,255,.74);
  background: rgba(2, 2, 6, .72);
  padding: 24px 0 0;
}

.proj-card:hover { transform: none; }

.proj-card h3 {
  display: block;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: .015em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.proj-card h3 .icon { display: none; }

.proj-card p,
.proj-card li,
.seq-item p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.proj-card ul { padding-left: 22px; }
.proj-card li { margin: 8px 0; }

.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.spec {
  background: rgba(2, 2, 6, .72);
  padding: 24px 20px;
}

.spec .v {
  font-size: 24px;
}
.spec .v small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  margin-top: 5px;
}

.sequence {
  counter-reset: step;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.seq-item {
  counter-increment: step;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.seq-item::before {
  content: counter(step, decimal-leading-zero);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 36px;
  line-height: 1;
}
.seq-item h4 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: .015em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.tags span {
  border: 1px solid var(--line);
  background: rgba(2, 2, 6, .72);
  padding: 8px 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
}
.gallery .ph {
  cursor: zoom-in;
}
.gallery .ph.span-2,
.gallery .ph.span-3,
.gallery .ph.span-4 { grid-column: span 2; }
.gallery .ph.span-6 { grid-column: span 4; }
.gallery .ph img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gallery .ph.span-6 img { aspect-ratio: 16 / 7; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0,0,0,.88);
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
}
.lightbox .close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #fff;
  background: #fff;
  color: #000;
  cursor: pointer;
}

.proj-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}
.proj-nav a {
  color: var(--ink);
  text-decoration: none;
}
.proj-nav a.next { text-align: right; }
.proj-nav .dir {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.proj-nav .name {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 34px;
  line-height: 1;
}

footer {
  padding: 70px 0 46px;
  text-align: center;
}
.foot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 24px;
}
.foot .brand {
  justify-content: center;
  margin-bottom: 12px;
}
.foot h5 { display: none; }
.foot a {
  display: inline;
  color: var(--ink);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.foot p.about {
  max-width: 500px;
  margin: 0 auto;
  color: var(--muted);
}
.foot > div:not(:first-child) {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.foot-bottom {
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
}
.foot-bottom .live::before { display: none; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

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

@media (max-width: 900px) {
  .nav-inner {
    display: grid;
    gap: 18px;
    padding: 28px 0;
  }
  .nav-links {
    gap: 16px;
    flex-wrap: wrap;
  }
  .proj-hero-grid,
  .proj-grid-2,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery .ph,
  .gallery .ph.span-2,
  .gallery .ph.span-3,
  .gallery .ph.span-4,
  .gallery .ph.span-6 {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 32px, var(--max));
  }
  .brand-text {
    font-size: 23px;
  }
  .nav-links a,
  .nav-cta {
    font-size: 13px;
  }
  .proj-hero {
    padding-top: 44px;
  }
  .proj-hero-meta,
  .specs,
  .proj-nav {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
