:root {
  --bg: #080809;
  --fg: #d6d8dc;
  --muted: #6b7079;
  --border: #1a1b1f;
  --surface: #101115;
  --surface-light: #f4f4f2;
  --surface-light-fg: #08080a;
  --primary: #4dd8ff;
  --accent: #ff2fb0;
  --font-display: "Inter Tight", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
::selection { background: var(--primary); color: #000; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.mono { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.muted { color: var(--muted); }
.light { color: var(--surface-light); }
.accent { color: var(--primary); }
.small { font-size: 10px; }
.kicker { letter-spacing: .5em; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* Scanline overlay */
.scanline-overlay {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(8,8,9,.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px 24px;
}
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.nav-brand { opacity: .7; letter-spacing: .3em; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--primary); }

/* Hero */
.hero {
  position: relative;
  padding: 192px 24px 128px;
  overflow: hidden;
}
.hero-line {
  position: absolute; top: 240px; right: 24px;
  height: 256px; width: 1px;
  background: linear-gradient(to bottom, rgba(77,216,255,.5), transparent);
  display: none;
}
@media (min-width: 768px) { .hero-line { display: block; } }

.hero-title {
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: .8;
  letter-spacing: -0.04em;
  color: var(--surface-light);
}
.hero-copy {
  margin-top: 32px; max-width: 28rem;
  font-size: 13px; line-height: 1.6;
  opacity: .8;
  letter-spacing: .05em;
}
.hero-loc { margin-top: 64px; display: flex; align-items: center; gap: 16px; }
.rule { height: 1px; width: 48px; background: var(--primary); }

/* Sections */
.section { border-top: 1px solid var(--border); padding: 96px 24px; margin: 0 auto; max-width: 1200px; }

/* Gallery */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 48px;
}
@media (max-width: 767px) {
  .grid { grid-template-columns: 1fr; gap: 48px; }
  .piece-b, .piece-d { margin-top: 0 !important; }
}
@media (min-width: 768px) { .grid { gap: 96px; } }

.piece-a { grid-column: span 7; }
.piece-b { grid-column: span 5; margin-top: 128px; }
.piece-c { grid-column: span 5; }
.piece-d { grid-column: span 7; }

.frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color .5s;
}
.piece:hover .frame { border-color: rgba(77,216,255,.4); }
.frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%);
  transition: filter .7s ease;
}
.frame:hover img { filter: grayscale(0%); }
.ratio-4-5 { aspect-ratio: 4/5; }
.ratio-1-1 { aspect-ratio: 1/1; }
.ratio-3-4 { aspect-ratio: 3/4; }
.ratio-16-9 { aspect-ratio: 16/9; }

.ref {
  position: absolute; bottom: 16px; left: 16px;
  color: var(--primary); opacity: 0;
  transition: opacity .3s;
}
.piece:hover .ref { opacity: 1; }

.piece-meta {
  margin-top: 24px; display: flex; justify-content: space-between; align-items: baseline;
}
.piece-meta.stack { flex-direction: column; align-items: flex-start; gap: 8px; }
.piece-meta h3 {
  font-size: 20px; font-weight: 700; font-style: italic; text-transform: uppercase;
}

/* About */
.about-grid {
  display: grid; gap: 64px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }

.about .kicker { display: block; margin-bottom: 48px; }
.statement {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 300; font-style: italic;
  line-height: 1.15;
  margin-bottom: 24px;
}
.about p.muted { max-width: 24rem; line-height: 1.6; }

.specs { display: flex; flex-direction: column; justify-content: flex-end; }
.specs ul { border-left: 1px solid rgba(77,216,255,.3); padding-left: 32px; list-style: none; }
.specs li { display: flex; justify-content: space-between; padding: 8px 0; }
.specs li span:last-child { color: var(--fg); }

/* Contact */
.contact {
  background: var(--surface-light);
  color: var(--surface-light-fg);
  padding: 192px 24px;
}
.contact-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.contact .kicker { margin-bottom: 32px; letter-spacing: .4em; }
.cta {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900; font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: .85;
  transition: color .3s;
  display: block;
}
.cta:hover { color: var(--accent); }
.foot {
  margin-top: 96px;
  width: 100%;
  padding-top: 32px;
  border-top: 1px solid rgba(8,8,10,.1);
  display: flex; flex-direction: column; align-items: center; gap: 32px;
}
@media (min-width: 768px) {
  .foot { flex-direction: row; justify-content: space-between; }
}
.socials { display: flex; gap: 32px; }
.socials a { transition: text-decoration .2s; }
.socials a:hover { text-decoration: line-through; }
.foot .muted { opacity: .4; color: inherit; }

/* Animations */
@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 20px rgba(77,216,255,.4), 0 0 40px rgba(77,216,255,.2); }
  50%      { text-shadow: 0 0 30px rgba(77,216,255,.7), 0 0 60px rgba(77,216,255,.35); }
}
.glow-pulse { color: var(--primary); animation: glow-pulse 3.5s ease-in-out infinite; }

@keyframes entrance {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.reveal { opacity: 0; }
.reveal.in { animation: entrance .9s cubic-bezier(.2,.7,.2,1) forwards; }