:root {
  color-scheme: only light;
  --bg: #0f0f10;
  --text: #f2f2f0;
  --muted: #c4c4bd;
  --accent: #c7ff52;
  --grid-max: 1200px;
  --grid-gap: clamp(12px, 2vw, 24px);
  --outer: clamp(12px, 3vw, 40px);
  --hero-max: clamp(22px, 4.2vw, 48px);
  --hero-track: 0.04em;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.3;
  letter-spacing: -0.01em;
  position: relative;
  overflow-x: hidden;
}

main {
  display: block;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.2'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.32;
  z-index: 3;
}

.video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

.video-bg__inner {
  position: absolute;
  inset: 0;
}

.video-bg__inner iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 16, 0.8), rgba(15, 15, 16, 0.2) 50%, rgba(15, 15, 16, 0.85));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(15, 15, 16, 0.9), rgba(15, 15, 16, 0));
}

.nav {
  max-width: none;
  margin: 0 auto;
  padding: 20px var(--outer) 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.2em;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.85;
  position: relative;
  transition: opacity 0.3s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 1;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  width: 100%;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
}

.logo {
  font-weight: 600;
}

.grid {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 0 var(--outer);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  grid-column: 1 / span 6;
  font-size: var(--hero-max);
  letter-spacing: var(--hero-track);
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-row {
  display: block;
}

.about,
.contact {
  padding: clamp(48px, 9vw, 120px) 0;
  position: relative;
  z-index: 2;
}

.about h2,
.contact h2 {
  grid-column: 1 / span 2;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  margin-bottom: 8px;
}

.about p,
.contact p {
  grid-column: 3 / span 4;
  color: var(--muted);
  font-size: clamp(13px, 1.4vw, 16px);
}

.site-footer {
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.site-footer .grid {
  align-items: center;
}

.site-footer span:last-child {
  grid-column: 7 / span 6;
  text-align: right;
}

.works-grid {
  padding: clamp(32px, 7vw, 120px) 0;
  position: relative;
  z-index: 2;
}

.works-grid .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  max-width: none;
  padding: 0 var(--outer);
}

.work-card {
  border: 1px solid rgba(242, 242, 240, 0.12);
  padding: clamp(18px, 3vw, 30px);
  min-height: clamp(140px, 24vh, 220px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(15, 15, 16, 0.65);
}

.work-card h2 {
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.work-card p {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
}

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero-title {
    grid-column: 1 / span 10;
  }

  .about h2,
  .contact h2,
  .about p,
  .contact p {
    grid-column: 1 / span 12;
  }

  .site-footer span:last-child {
    grid-column: 1 / span 12;
    text-align: left;
    margin-top: 12px;
  }
}

@media (max-width: 700px) {
  .works-grid .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 60vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
