:root {
  --ink: #000000;
  --static: #2b2b2b;
  --grain: #6f6f6f;
  --fog: #ededed;
  --bone: #ffffff;
  --line: 3px solid var(--ink);
  --page-padding: 24px;
  --max-width: 1180px;
  --font-headline: "Space Grotesk", "Arial", sans-serif;
  --font-body: "Inter", "Arial", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bone);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    var(--bone);
  background-size: 48px 48px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.03),
      rgba(0, 0, 0, 0.03) 1px,
      transparent 1px,
      transparent 5px
    );
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-headline);
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: 5rem;
  line-height: 0.92;
}

h2 {
  max-width: 760px;
  font-size: 3rem;
  line-height: 1;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.08;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px var(--page-padding);
  border-bottom: var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.brand-link {
  flex: 0 1 186px;
}

.brand-link img {
  width: 176px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.site-nav a {
  min-width: 82px;
  padding: 10px 12px;
  border: 2px solid transparent;
  text-align: center;
}

.site-nav a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bone);
}

.section-band {
  width: 100%;
  padding: 88px var(--page-padding);
  border-bottom: var(--line);
}

.section-band > * {
  max-width: var(--max-width);
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 86px);
  padding-top: 64px;
  padding-bottom: 56px;
}

.hero > * {
  width: 100%;
}

.hero-copy {
  display: grid;
  gap: 26px;
}

.hero-lockup {
  width: 250px;
  height: auto;
}

.section-label,
.card-index,
.readout,
.status-row span,
.status-row strong,
.footer-meta {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-label {
  color: var(--grain);
  font-size: 0.82rem;
}

.hero-subhead {
  max-width: 720px;
  color: var(--static);
  font-size: 1.24rem;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 18px;
  border: var(--line);
  border-radius: 0;
  font: 700 0.86rem / 1 var(--font-mono);
  letter-spacing: 0;
  text-transform: uppercase;
}

.button-primary {
  background: var(--ink);
  color: var(--bone);
}

.button-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--bone);
  color: var(--ink);
}

.button-secondary {
  background: var(--fog);
  color: var(--grain);
  cursor: not-allowed;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  border: 4px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    var(--static);
  background-size: 28px 28px;
  overflow: hidden;
}

.hero-visual img {
  position: absolute;
  right: -58px;
  bottom: 42px;
  width: min(420px, 86%);
  height: auto;
  filter: invert(1);
}

.readout {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  border: 2px solid currentColor;
  color: var(--bone);
  background: var(--ink);
  font-size: 0.75rem;
}

.readout-top {
  top: 24px;
  left: 24px;
}

.readout-bottom {
  right: 24px;
  bottom: 24px;
}

.pixel-field {
  position: absolute;
  inset: 0;
}

.pixel-field span {
  position: absolute;
  display: block;
  width: 14px;
  height: 14px;
  background: var(--bone);
}

.pixel-field span:nth-child(1) {
  top: 26%;
  right: 18%;
}

.pixel-field span:nth-child(2) {
  top: 42%;
  left: 16%;
  width: 22px;
}

.pixel-field span:nth-child(3) {
  top: 68%;
  left: 28%;
}

.pixel-field span:nth-child(4) {
  top: 16%;
  right: 42%;
  height: 26px;
}

.pixel-field span:nth-child(5) {
  right: 12%;
  bottom: 28%;
  width: 9px;
  height: 9px;
}

.work-section,
.status-section {
  background: var(--bone);
}

.principles-section {
  background: var(--fog);
}

.section-heading {
  display: grid;
  gap: 18px;
  margin-bottom: 36px;
}

.section-heading > p,
.status-copy > p {
  max-width: 700px;
  color: var(--static);
  font-size: 1.08rem;
}

.split-heading {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: end;
  gap: 32px;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  display: grid;
  min-height: 280px;
  align-content: start;
  gap: 18px;
  padding: 24px;
  border: var(--line);
  background: var(--bone);
  box-shadow: 0 0 0 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.card-index {
  color: var(--grain);
  font-size: 0.78rem;
}

.card p:not(.card-index),
.principle p,
.site-footer p {
  color: var(--static);
}

.principle-list {
  display: grid;
  border-top: var(--line);
  background: var(--bone);
}

.principle {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: var(--line);
}

.principle > span {
  align-self: start;
  width: 48px;
  padding: 8px 0;
  border: 2px solid var(--ink);
  font: 600 0.8rem / 1 var(--font-mono);
  text-align: center;
}

.principle div {
  display: grid;
  gap: 8px;
}

.status-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.68fr);
  gap: 48px;
  align-items: center;
}

.status-copy {
  display: grid;
  gap: 18px;
}

.status-panel {
  border: var(--line);
  background: var(--static);
  color: var(--bone);
}

.status-panel::before {
  content: "./status --brief";
  display: block;
  padding: 14px 16px;
  border-bottom: 2px solid var(--bone);
  color: var(--bone);
  font: 600 0.76rem / 1 var(--font-mono);
  text-transform: uppercase;
}

.status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.status-row:last-child {
  border-bottom: 0;
}

.status-row span,
.status-row strong {
  font-size: 0.8rem;
}

.status-row strong {
  color: var(--bone);
  text-align: right;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 32px var(--page-padding);
  background: var(--bone);
}

.site-footer > * {
  max-width: var(--max-width);
}

.site-footer img {
  width: 190px;
  height: auto;
  margin-bottom: 10px;
}

.footer-meta {
  display: grid;
  gap: 6px;
  align-content: start;
  text-align: right;
  font-size: 0.78rem;
}

@media (max-width: 920px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .hero,
  .status-section,
  .split-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 430px;
  }

  .three-up {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  :root {
    --page-padding: 16px;
  }

  body {
    font-size: 16px;
    background-size: 32px 32px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .site-header {
    position: static;
    display: grid;
    gap: 14px;
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .brand-link {
    width: 156px;
  }

  .brand-link img {
    width: 156px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px;
    max-width: none;
    font-size: 0.72rem;
  }

  .site-nav a {
    min-width: 72px;
    padding: 8px 6px;
  }

  .section-band {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .hero {
    gap: 36px;
    padding-top: 44px;
  }

  .hero-lockup {
    width: 204px;
  }

  .hero-subhead {
    font-size: 1.08rem;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 320px;
  }

  .hero-visual img {
    right: -34px;
    bottom: 34px;
    width: 78%;
  }

  .readout {
    font-size: 0.68rem;
  }

  .readout-top {
    top: 16px;
    left: 16px;
  }

  .readout-bottom {
    right: 16px;
    bottom: 16px;
  }

  .principle {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .status-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .status-row strong {
    text-align: left;
  }

  .site-footer {
    display: grid;
  }

  .footer-meta {
    text-align: left;
  }
}

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