:root {
  color-scheme: dark;
  --bg: #000000;
  --panel: #030303;
  --panel-2: #080808;
  --text: #ffffff;
  --muted: #c4c4c4;
  --line: #242424;
  --accent: #ffffff;
  --accent-2: #dddddd;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

nav a {
  text-decoration: none;
}

nav a:hover,
nav a.is-active {
  color: var(--text);
}

main {
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
  min-height: 82vh;
  padding: clamp(52px, 8vw, 110px) clamp(18px, 5vw, 72px);
  overflow: hidden;
}

.page-band::before,
.project::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  opacity: 0.76;
  transform: scale(1.06);
}

.page-band::after,
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.44) 54%, rgba(0, 0, 0, 0.72)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.48));
}

.hero-copy {
  max-width: 880px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 840px;
  font-size: clamp(2.4rem, 8vw, 6.5rem);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  font-size: 1.2rem;
}

.lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
}

.hero img,
.project img,
.gallery-card img {
  display: block;
  width: 100%;
  background: var(--panel-2);
  object-fit: cover;
}

.hero img {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
}

.section {
  margin-top: 0;
}

.wide-section {
  width: 100%;
  padding: clamp(42px, 7vw, 92px) clamp(18px, 4vw, 64px);
}

.wide-section > h2,
.wide-section > .cards,
.wide-section > .cad-list,
.wide-section > .media-grid {
  width: min(100%, var(--max));
  margin-left: auto;
  margin-right: auto;
}

.stack {
  display: grid;
  gap: 0;
  padding: 0;
}

.project {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
  min-height: 74vh;
  padding: clamp(32px, 6vw, 84px) clamp(18px, 5vw, 72px);
  overflow: hidden;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.project img {
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
}

.project iframe {
  min-height: min(70vh, 720px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
}

.project-copy p {
  margin: 12px 0 0;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 18px 0 4px;
}

.stats div {
  padding: 12px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-size: 1.35rem;
  line-height: 1.1;
}

.stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  text-decoration: none;
  font-weight: 700;
}

.button.secondary {
  background: transparent;
  color: var(--text);
}

.cards,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.gallery-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
  width: min(100%, var(--max));
  margin: 0 auto;
}

.gallery-link-card {
  position: relative;
  min-height: clamp(320px, 42vw, 520px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.gallery-link-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) contrast(1.08);
  transition: transform 280ms ease, filter 280ms ease;
}

.gallery-link-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72));
}

.gallery-link-card:hover img {
  transform: scale(1.035);
  filter: brightness(0.86) contrast(1.08);
}

.gallery-link-copy {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: clamp(18px, 4vw, 34px);
}

.gallery-grid {
  width: min(100%, 1680px);
  margin: 0 auto;
}

.card,
.gallery-card {
  position: relative;
  min-height: 260px;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
}

.card {
  padding: 20px;
}

.card p,
.gallery-card p {
  color: var(--muted);
}

.gallery-card img {
  height: 100%;
  min-height: 260px;
  aspect-ratio: 4 / 3;
  transition: transform 280ms ease, filter 280ms ease;
}

.gallery-card .caption {
  position: absolute;
  inset: auto 0 0;
  padding: 18px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.9) 24%, rgba(0, 0, 0, 0.98));
  transform: translateY(calc(100% - 58px));
  transition: transform 240ms ease;
}

.gallery-card:hover img,
.gallery-card:focus img {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.05);
}

.gallery-card:hover .caption,
.gallery-card:focus .caption {
  transform: translateY(0);
}

.gallery-card .caption h3 {
  margin-bottom: 6px;
}

.gallery-card .caption p {
  margin: 0;
}

.cad-list {
  columns: 2 340px;
  column-gap: 36px;
  padding-left: 20px;
}

.cad-list li {
  break-inside: avoid;
  margin: 0 0 10px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.media-grid article {
  min-width: 0;
}

.media-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: var(--panel);
}

iframe.embed-large {
  aspect-ratio: 16 / 10;
  min-height: min(78vh, 820px);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  justify-content: center;
  padding: 28px 18px 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .site-header,
  .hero,
  .project {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    position: static;
  }

  nav {
    justify-content: flex-start;
  }

  .gallery-link-grid {
    grid-template-columns: 1fr;
  }

  iframe.embed-large {
    min-height: 560px;
  }
}
