:root {
  --bg: #030303;
  --panel: #080809;
  --panel-soft: #0d0d10;
  --text: #f4f4f4;
  --muted: #9b9ba2;
  --dim: #55555d;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.18);
  --red: #ff1d2f;
  --red-dark: #61040c;
  --shell: min(1216px, calc(100% - 48px));
  --sans: "Inter", system-ui, sans-serif;
  --mono: "Share Tech Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 92% 22%, rgba(90, 0, 10, 0.42), transparent 27rem),
    radial-gradient(circle at 6% 44%, rgba(80, 0, 10, 0.25), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 90%, rgba(255, 255, 255, 0.035) 90.15%, transparent 90.35%),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 160px 100%, 100% 64px;
}

.site-noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(circle, #fff 0 1px, transparent 1px);
  background-size: 4px 4px;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
p {
  color: var(--muted);
  font-family: var(--mono);
  line-height: 1.45;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(3, 3, 3, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 900;
  font-size: 18px;
}

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

.nav-links a {
  color: var(--muted);
  font: 14px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  outline: none;
}

.section-panel {
  min-height: 560px;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 88px 0;
}

.hero { min-height: calc(100vh - 66px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 112px;
  align-items: center;
}

.kicker {
  margin-bottom: 26px;
  color: var(--red);
  font: 14px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(56px, 7vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

h1 span { color: var(--red); }

h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 4.2vw, 50px);
  line-height: 1.02;
  text-transform: uppercase;
}

.about h2,
.contact h2 {
  text-transform: none;
  font-size: clamp(42px, 5vw, 58px);
}

.lead {
  max-width: 590px;
  margin-bottom: 24px;
  color: var(--text);
  font-size: 20px;
}

.hero-copy > p:not(.kicker) {
  max-width: 560px;
  font-size: 17px;
}

.actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-width: 128px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font: 14px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 29, 47, 0.65);
  outline: none;
}

.button.primary {
  background: var(--red);
  border-color: var(--red);
}

.hero-art {
  min-height: 430px;
  display: grid;
  place-items: center;
}

.monolith {
  position: relative;
  width: 205px;
  height: 420px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.01)),
    linear-gradient(90deg, #07080c, #131019);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.015), 0 30px 90px rgba(0,0,0,0.8);
  animation: float 7s ease-in-out infinite;
}

.monolith::before {
  content: "";
  position: absolute;
  inset: 72px 24px 34px;
  background:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,29,47,0.16), transparent);
  background-size: 100% 38px, 100% 100%;
}

.monolith span {
  position: absolute;
  left: 28px;
  right: 28px;
  height: 1px;
  background: rgba(255,255,255,0.13);
}

.monolith span:nth-child(1) { top: 116px; }
.monolith span:nth-child(2) { top: 226px; }
.monolith span:nth-child(3) { top: 310px; }
.monolith i {
  position: absolute;
  right: 28px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 140px 0 #7d1420, 0 226px 0 #31579a;
  top: 80px;
}

.split,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 80px;
  align-items: center;
}

.body-copy {
  color: var(--muted);
  font-size: 18px;
}

.section-heading {
  margin-bottom: 66px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(11, 11, 15, 0.72);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 -16px 40px rgba(0,0,0,0.45);
}

.work-card {
  min-height: 270px;
  padding: 34px;
  border-right: 1px solid var(--line);
}

.work-card:last-child { border-right: 0; }
.work-card span,
.panel-number {
  display: block;
  margin-bottom: 34px;
  color: rgba(255,255,255,0.06);
  font: 800 38px var(--sans);
}

.work-card h3 {
  margin-bottom: 66px;
  font-size: 20px;
}

.work-card p {
  max-width: 310px;
  margin-bottom: 0;
}

.systems-tabs {
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  gap: 30px;
}

.tab-list {
  display: grid;
  align-content: start;
}

.tab-button {
  min-height: 50px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 16px;
  text-align: left;
  font: 14px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.tab-button span {
  color: var(--dim);
  margin-right: 14px;
}

.tab-button.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(255, 29, 47, 0.13), transparent);
}

.tab-button.active span { color: var(--red); }

.panel-frame {
  border: 1px solid var(--line-strong);
  background: rgba(13, 14, 14, 0.78);
}

.tab-panel {
  min-height: 330px;
  padding: 48px 42px 38px;
  animation: revealPanel 220ms ease both;
}

.tab-panel .panel-number {
  display: inline-block;
  margin: 0 22px 22px 0;
  vertical-align: middle;
}

.tab-panel h3 {
  display: inline-block;
  margin: 0 0 22px;
  font-size: 26px;
}

.tab-panel p {
  max-width: 720px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 22px;
}

.tags span {
  border: 1px solid var(--line-strong);
  padding: 7px 14px;
  color: var(--muted);
  font: 13px var(--mono);
  text-transform: uppercase;
}

.example {
  border-left: 3px solid var(--red);
  padding-left: 16px;
  margin-bottom: 0;
}

.archive-box {
  min-height: 204px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed rgba(255,255,255,0.16);
  background: rgba(4,4,5,0.78);
}

.archive-kicker {
  margin-bottom: 14px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.archive h2 {
  font-size: 20px;
  text-transform: uppercase;
}

.contact {
  min-height: 520px;
}

.email {
  color: var(--muted);
  font: 20px var(--mono);
}

.email:hover,
.email:focus-visible {
  color: var(--text);
  outline: none;
}

.footer {
  padding: 70px 0 92px;
}

.footer .shell {
  display: flex;
  justify-content: space-between;
  color: var(--dim);
  font: 14px var(--mono);
}

.footer strong {
  color: rgba(255,255,255,0.035);
  font: 900 58px var(--sans);
}

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

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

@keyframes float {
  50% { transform: translateY(-12px); }
}

@keyframes revealPanel {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .contact-grid,
  .systems-tabs {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .section-panel {
    min-height: auto;
    padding: 78px 0;
  }

  .hero-art {
    min-height: 340px;
    place-items: start center;
  }

  .monolith {
    height: 330px;
  }

  .tab-list {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    overflow-x: auto;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    min-height: 230px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  :root { --shell: min(100% - 28px, 1216px); }
  html { scroll-padding-top: 116px; }
  .nav {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 18px 0;
  }

  .nav-links {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  h1 { font-size: clamp(48px, 16vw, 72px); }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .tab-panel { padding: 32px 22px; }
  .footer .shell {
    display: grid;
    gap: 20px;
  }
}

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

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