:root {
  --ink: #171717;
  --muted: #6d6d6d;
  --line: #d7d7d7;
  --soft: #f5f5f5;
  --paper: #fff;
  --dark: #030303;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p, h1, h2, h3, figure { margin-top: 0; }

.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  padding: 46px 0 34px;
  border-bottom: 1px dotted var(--line);
}
.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  gap: 2px;
}
.brand span {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.03em;
}
.brand small {
  color: var(--muted);
  font-size: .82rem;
}

.project-hero {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 70px;
  padding: 72px 0 52px;
  border-bottom: 1px dotted var(--line);
  align-items: start;
}
.pid {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: 12px;
}
h1 {
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: .88;
  letter-spacing: -.08em;
  margin-bottom: 0;
  font-weight: 800;
}
h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -.045em;
  line-height: 1;
  margin-bottom: 24px;
}
.project-brief h2,
.copy-block h2 {
  font-size: 1.15rem;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 16px;
}
.project-brief p,
.copy-block p,
.copy-card p {
  color: #333;
  font-size: 1.02rem;
}

.copy-block {
  max-width: 800px;
  padding: 50px 0 28px;
}
.copy-block p { max-width: 720px; }

.image-grid,
.marketing-block,
.gif-grid,
.application-grid {
  padding: 28px 0 64px;
  border-bottom: 1px dotted var(--line);
}
.image-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
  align-items: start;
}
figure {
  margin-bottom: 0;
  background: var(--soft);
  overflow: hidden;
}
figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
figure.diagram { background: #000; }
figcaption {
  background: var(--paper);
  padding: 10px 0 0;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.engineering-grid .large { grid-column: span 5; aspect-ratio: 1 / 1; }
.engineering-grid .tall { grid-column: span 3; aspect-ratio: 9 / 16; }
.engineering-grid figure:not(.large):not(.tall) { grid-column: span 4; aspect-ratio: 16 / 9; }

.section-heading {
  padding: 62px 0 20px;
}
.section-heading h2 { margin: 0; }

.marketing-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}
.marketing-block .wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
  background: #000;
}
.copy-card {
  min-height: 100%;
  padding: 34px;
  border: 1px solid var(--line);
  background: #fff;
}
.signature {
  font-weight: 700;
  margin-top: 26px;
}
.marketing-block figure:not(.wide) { aspect-ratio: 16 / 9; background: #000; }

.gif-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.gif-grid figure {
  aspect-ratio: 1 / 1;
  background: #f2f2f2;
  border: 1px solid var(--line);
}
.gif-grid img { object-fit: contain; }

.application-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}
.link-card {
  border: 1px solid var(--line);
  padding: 24px;
  background: #fff;
}
.link-card h3 {
  font-size: 1.2rem;
  margin-bottom: 18px;
}
.link-card img {
  width: 100%;
  aspect-ratio: 338 / 176;
  object-fit: cover;
  border: 1px solid #ededed;
  margin-bottom: 22px;
}
.link-card a {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  background-color: #0000AE;
  color: White;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
  transition: background .0s ease, color .0s ease;
}
.link-card a:hover { background: White; color: Black; }

.footer-mark {
  display: flex;
  justify-content: center;
  padding: 54px 0 76px;
}
.footer-mark img {
  width: 37px;
  height: 41px;
  object-fit: contain;
}

@media (max-width: 880px) {
  .project-hero,
  .marketing-block,
  .application-grid,
  .gif-grid {
    grid-template-columns: 1fr;
  }
  .marketing-block .wide { grid-column: auto; }
  .engineering-grid .large,
  .engineering-grid .tall,
  .engineering-grid figure:not(.large):not(.tall) {
    grid-column: span 6;
  }
}

@media (max-width: 560px) {
  .page-shell { width: min(100% - 24px, 680px); }
  .site-header { padding-top: 28px; }
  .project-hero { padding-top: 44px; gap: 30px; }
  h1 { font-size: 4rem; }
  .image-grid { gap: 14px; }
  .engineering-grid .large,
  .engineering-grid .tall,
  .engineering-grid figure:not(.large):not(.tall) {
    grid-column: 1 / -1;
  }
  .copy-card, .link-card { padding: 20px; }
}
