@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --bg: #10100f;
  --text: #eee9dd;
  --muted: #89857b;
  --line: #3a3934;
  --accent: #d8ff55;
  --card: #181815;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  min-height: 100vh;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header {
  max-width: 1120px;
  margin: auto;
  padding: 24px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -.04em;
}

.logo span { color: var(--accent); }

nav { display: flex; gap: 22px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--accent); }

main { max-width: 1120px; margin: auto; }

.hero {
  min-height: 72vh;
  padding: 120px 24px 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.eyebrow, .label, .hint, .tip, footer {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  letter-spacing: .08em;
}

.eyebrow { color: var(--accent); }

h1 {
  font-size: clamp(58px, 11vw, 150px);
  line-height: .82;
  letter-spacing: -.075em;
  margin: 28px 0;
  max-width: 950px;
}

h1 em { color: var(--muted); font-style: normal; }

.intro {
  max-width: 500px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.button {
  margin-top: 30px;
  width: fit-content;
  padding: 12px 16px;
  color: var(--bg);
  background: var(--accent);
  text-decoration: none;
  font-family: "DM Mono", monospace;
  font-size: 13px;
  transition: transform .15s ease;
}

.button:hover { transform: translate(4px, -4px); }

.section { padding: 100px 24px; }

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 28px;
}

h2 {
  margin: 8px 0 0;
  font-size: clamp(42px, 7vw, 82px);
  letter-spacing: -.06em;
}

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

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.photo {
  grid-column: span 6;
  appearance: none;
  border: 0;
  padding: 0;
  background: var(--card);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.photo:nth-child(3n) { grid-column: span 4; }
.photo:nth-child(4n) { grid-column: span 8; }

.photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.8);
  transition: transform .3s ease, filter .3s ease;
}

.photo:hover img {
  transform: scale(.985);
  filter: saturate(1.15);
}

.photo span {
  display: block;
  padding: 11px 12px;
  font-family: "DM Mono", monospace;
  font-size: 12px;
}

.tip {
  color: var(--muted);
  margin-top: 30px;
  line-height: 1.7;
}

code { color: var(--accent); }

.about {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  border-top: 1px solid var(--line);
}

.about p {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.6;
}

.muted { color: var(--muted); font-family: "DM Mono", monospace; font-size: 13px !important; }

footer {
  max-width: 1120px;
  margin: auto;
  padding: 30px 24px 50px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  background: rgba(0,0,0,.92);
  padding: 50px;
}

.lightbox.open { display: grid; }

.lightbox figure {
  max-width: min(1000px, 85vw);
  max-height: 90vh;
  margin: 0;
  text-align: center;
}

.lightbox figure img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.lightbox figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
}

.close, .prev, .next {
  position: fixed;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 30px;
}

.close { top: 20px; right: 28px; }
.prev { left: 25px; top: 50%; }
.next { right: 25px; top: 50%; }

.close:hover, .prev:hover, .next:hover { color: var(--accent); }

@media (max-width: 700px) {
  .site-header { padding: 18px; }
  .hero { min-height: 80vh; padding: 80px 18px; }
  .section { padding: 70px 18px; }
  .gallery { display: block; }
  .photo { display: block; width: 100%; margin-bottom: 16px; }
  .about { display: block; }
  .section-title { align-items: start; flex-direction: column; gap: 12px; }
  footer { padding: 25px 18px 40px; flex-direction: column; gap: 8px; }
  .lightbox { padding: 20px; }
  .prev { left: 8px; }
  .next { right: 8px; }
}
