@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --ink: #171914;
  --paper: #f2f1eb;
  --paper-2: #e8e7df;
  --muted: #66695f;
  --line: rgba(23, 25, 20, 0.16);
  --acid: #d9ff45;
  --white: #fff;
  --radius: 3px;
  --shell: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
body.dialog-open { overflow: hidden; }
a { color: inherit; }
img, video { display: block; width: 100%; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
}
.wordmark-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--ink);
  color: var(--acid);
  font-family: "DM Mono", monospace;
  font-size: 13px;
}
.site-header nav { display: flex; align-items: center; gap: 30px; }
.site-header nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.site-header nav a:hover { opacity: .55; }
.nav-cta {
  border: 1px solid var(--ink);
  padding: 9px 15px;
}

.hero {
  min-height: 720px;
  padding-block: 100px 72px;
  display: grid;
  grid-template-columns: 1.55fr .8fr;
  gap: 90px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 18px;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 920px;
  margin-bottom: 30px;
  font-size: clamp(48px, 7vw, 91px);
  line-height: .97;
  letter-spacing: -.058em;
  font-weight: 600;
}
.hero-intro {
  max-width: 700px;
  margin-bottom: 40px;
  color: var(--muted);
  font-size: 19px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  padding: 13px 19px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--ink);
  transition: transform .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: #30332b; }
.button-secondary { background: transparent; }

.hero-panel {
  align-self: end;
  background: var(--ink);
  color: var(--white);
  padding: 25px;
}
.panel-status {
  display: flex;
  gap: 9px;
  align-items: center;
  padding-bottom: 22px;
  color: #c7c9c1;
  border-bottom: 1px solid rgba(255,255,255,.16);
  font-family: "DM Mono", monospace;
  font-size: 11px;
}
.status-light {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--acid); box-shadow: 0 0 12px var(--acid);
}
.capability-grid > div {
  padding: 20px 0;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.capability-grid > div:last-child { border: 0; }
.capability-grid strong { font-family: "DM Mono", monospace; font-size: 12px; color: var(--acid); }
.capability-grid span { color: #c7c9c1; font-size: 13px; line-height: 1.5; }

.signal-strip {
  overflow: hidden;
  background: var(--acid);
  border-block: 1px solid var(--ink);
}
.signal-track {
  min-width: max-content;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}
.signal-track i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }

.section { padding-block: 120px; }
.section-heading {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  column-gap: 70px;
  margin-bottom: 62px;
}
.section-heading .eyebrow { grid-column: 1; }
.section-heading h2 {
  grid-column: 1 / -1;
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 600;
}
.section-heading > p:last-child {
  grid-column: 2;
  max-width: 580px;
  color: var(--muted);
}

.project {
  position: relative;
  border-top: 1px solid var(--ink);
}
.project-featured {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  min-height: 610px;
}
.project-media {
  min-height: 330px;
  position: relative;
  overflow: hidden;
  background: #d9d8d0;
}
.project-media img, .project-media video {
  height: 100%;
  object-fit: cover;
}
.project-media img[src=""], .project-media img:not([src]) { opacity: 0; }
.media-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  place-content: center;
  text-align: center;
  background:
    linear-gradient(135deg, transparent 49.7%, rgba(23,25,20,.12) 50%, transparent 50.3%),
    linear-gradient(45deg, transparent 49.7%, rgba(23,25,20,.12) 50%, transparent 50.3%);
  background-size: 42px 42px;
  color: var(--muted);
}
.media-placeholder.show { display: grid; }
.media-placeholder span { font-weight: 700; }
.media-placeholder small { font-family: "DM Mono", monospace; }

.project-content { padding: 38px; }
.project-number {
  margin-bottom: 70px;
  font-family: "DM Mono", monospace;
  font-size: 12px;
}
.project-type {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.project h3 {
  margin-bottom: 22px;
  max-width: 560px;
  font-size: clamp(28px, 3.5vw, 45px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.project-summary { max-width: 600px; color: var(--muted); }
.project-facts { margin: 30px 0; }
.project-facts > div {
  padding: 10px 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  border-top: 1px solid var(--line);
}
.project-facts dt { font-family: "DM Mono", monospace; font-size: 11px; text-transform: uppercase; }
.project-facts dd { margin: 0; font-size: 14px; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 25px; }
.tags span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  font-family: "DM Mono", monospace;
  font-size: 10px;
}
.text-link {
  margin-top: 30px;
  padding: 0 0 4px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  cursor: pointer;
  font-weight: 700;
}
.text-link:hover { opacity: .55; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; }
.project-card:first-child { border-right: 1px solid var(--ink); }
.project-card .project-number { margin-bottom: 35px; }

.project-diagram {
  min-height: 330px;
  padding: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
}
.diagram-node {
  display: grid;
  place-items: center;
  width: 105px; height: 105px;
  border: 1px solid rgba(255,255,255,.55);
  color: var(--white);
  font-family: "DM Mono", monospace;
  font-size: 11px;
}
.diagram-line { width: 40px; height: 1px; background: var(--acid); }

.section-dark { background: var(--ink); color: var(--white); }
.section-dark .eyebrow { color: var(--acid); }
.timeline { border-top: 1px solid rgba(255,255,255,.28); }
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 70px;
  padding: 42px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.timeline-date, .timeline-org {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.timeline-org { color: var(--acid); }
.timeline-item h3 { margin-bottom: 15px; font-size: 30px; letter-spacing: -.025em; }
.timeline-item p:last-child { max-width: 670px; color: #bfc1b8; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}
.about-grid .section-heading { display: block; margin-bottom: 0; }
.about-copy { padding-top: 44px; }
.about-copy p { color: var(--muted); }
.about-copy .large-copy {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.45;
  letter-spacing: -.02em;
}

.contact-section { padding-block: 95px; background: var(--acid); border-block: 1px solid var(--ink); }
.contact-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: end; }
.contact-inner h2 { margin: 0; font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: -.05em; }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.contact-links a { font-weight: 700; text-underline-offset: 4px; }

.site-footer {
  min-height: 120px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 11px;
}

.project-dialog {
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
}
.project-dialog::backdrop { background: rgba(10,10,8,.78); backdrop-filter: blur(5px); }
.dialog-close {
  position: sticky;
  top: 16px;
  z-index: 3;
  float: right;
  width: 44px; height: 44px;
  margin: 16px;
  background: var(--ink);
  color: var(--white);
  border: 0;
  cursor: pointer;
  font-size: 25px;
}
.dialog-body { padding: 70px clamp(25px, 7vw, 80px) 80px; }
.dialog-body h2 { max-width: 680px; font-size: clamp(38px, 7vw, 68px); line-height: 1; letter-spacing: -.05em; }
.dialog-body h3 { margin-top: 48px; font-size: 23px; }
.dialog-body p, .dialog-body li { color: var(--muted); }
.dialog-body .dialog-lead { color: var(--ink); font-size: 21px; }
.dialog-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 36px 0; }
.dialog-gallery img { min-height: 260px; object-fit: cover; background: var(--paper-2); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header nav a:not(.nav-cta) { display: none; }
  .wordmark-name { display: none; }
  .hero { min-height: auto; padding-block: 70px; grid-template-columns: 1fr; gap: 50px; }
  .hero-panel { align-self: auto; }
  .section { padding-block: 85px; }
  .project-featured, .project-grid, .about-grid, .contact-inner { grid-template-columns: 1fr; }
  .project-card:first-child { border-right: 0; }
  .project-grid .project-card { border-bottom: 1px solid var(--ink); }
  .project-content { padding: 28px 0 55px; }
  .project-featured .project-content { padding-inline: 25px; }
  .section-heading { display: block; }
  .section-heading > p:last-child { max-width: 100%; }
  .timeline-item { grid-template-columns: 1fr; gap: 12px; }
  .project-diagram { padding: 20px; }
  .diagram-node { width: 75px; height: 75px; font-size: 9px; }
  .diagram-line { width: 15px; }
  .about-copy { padding-top: 0; }
  .contact-links { margin-top: 20px; }
}
@media (max-width: 560px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .site-header { height: 66px; padding-inline: 14px; }
  h1 { font-size: 48px; }
  .hero { padding-top: 55px; }
  .capability-grid > div { grid-template-columns: 78px 1fr; }
  .signal-track { justify-content: flex-start; }
  .section-heading h2 { font-size: 41px; }
  .project-media { min-height: 260px; }
  .project-diagram { overflow-x: auto; justify-content: flex-start; }
  .dialog-gallery { grid-template-columns: 1fr; }
  .site-footer { padding-block: 30px; flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

.project-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
