:root {
  --ink: #17191b;
  --muted: #656b70;
  --paper: #f5f6f4;
  --white: #ffffff;
  --line: #d4d8d5;
  --dark: #111416;
  --teal: #21b8a6;
  --blue: #4b70d6;
  --amber: #d59c24;
  --green: #31a36d;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; letter-spacing: 0; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .3);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  font-size: 11px;
}
nav { display: flex; gap: 28px; }
nav a, .header-link {
  font-size: 13px;
  text-decoration: none;
  transition: opacity .2s ease;
}
nav a:hover, .header-link:hover { opacity: .68; }
.header-link { justify-self: end; }

.hero {
  position: relative;
  height: min(720px, 82svh);
  min-height: 640px;
  color: var(--white);
  overflow: hidden;
  background: #182026;
}
.hero-media, .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media { object-fit: cover; object-position: center 22%; }
.hero-shade { background: rgba(5, 11, 15, .68); }
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 64px;
  padding: 132px 0 58px;
}
.hero-copy { align-self: center; }
.eyebrow {
  margin: 0 0 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: 0;
}
.hero-summary {
  max-width: 610px;
  margin: 24px 0 28px;
  color: rgba(255, 255, 255, .84);
  font-size: 18px;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.primary-action, .secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--white);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
}
.primary-action { color: var(--dark); background: var(--white); }
.primary-action:hover { color: var(--white); background: transparent; }
.secondary-action { gap: 8px; background: rgba(0, 0, 0, .12); }
.secondary-action:hover { color: var(--dark); background: var(--white); }
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(116px, 1fr));
  width: min(430px, 100%);
  border-top: 1px solid rgba(255, 255, 255, .35);
}
.hero-facts div {
  min-height: 86px;
  padding: 17px 16px 0 0;
  border-right: 1px solid rgba(255, 255, 255, .25);
}
.hero-facts div + div { padding-left: 16px; }
.hero-facts div:last-child { border-right: 0; }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { min-height: 30px; font-size: 22px; line-height: 1.2; }
.hero-facts span { margin-top: 5px; color: rgba(255, 255, 255, .66); font-size: 11px; }

.featured, .all-projects, .contact {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}
.featured { padding: 104px 0 116px; }
.all-projects { padding: 0 0 116px; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: end;
  gap: 64px;
  margin-bottom: 44px;
}
.section-heading h2, .contact h2 {
  margin: 0;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: 0;
}
.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.section-heading--compact { margin-bottom: 26px; }
.section-heading--compact h2 { font-size: 38px; }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px 36px;
}
.featured-card { min-width: 0; border-top: 1px solid var(--ink); }
.project-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dce0dd;
}
.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .35s ease;
}
.featured-card:hover .project-visual img { transform: scale(1.018); }
.project-visual--text {
  display: grid;
  align-content: space-between;
  padding: 24px;
  color: var(--white);
  background: var(--visual, #25282b);
}
.project-visual--text b { max-width: 90%; font-size: 38px; line-height: 1; }
.project-visual--text small { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.project-number {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: rgba(0, 0, 0, .78);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}
.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 9px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}
.status { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--status, var(--amber));
  border-radius: 50%;
}
.featured-card h3 { margin: 0; font-size: 27px; line-height: 1.25; }
.project-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.project-summary { margin: 18px 0 0; max-width: 680px; font-size: 15px; line-height: 1.72; }
.proof-list {
  display: grid;
  gap: 7px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.proof-list li { position: relative; padding-left: 15px; }
.proof-list li::before { content: ""; position: absolute; top: .62em; left: 0; width: 6px; height: 2px; background: var(--blue); }
.project-footer, .row-tools {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.stack-list { display: flex; flex-wrap: wrap; gap: 7px 12px; }
.stack-list span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}
.project-link {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 730;
  text-underline-offset: 4px;
}

.project-list { border-top: 1px solid var(--ink); }
.project-row { border-bottom: 1px solid var(--line); }
.project-row summary {
  display: grid;
  grid-template-columns: 48px minmax(230px, 1fr) 130px 105px 20px;
  align-items: center;
  gap: 20px;
  min-height: 82px;
  list-style: none;
  cursor: pointer;
}
.project-row summary::-webkit-details-marker { display: none; }
.project-row summary:hover .row-title strong { color: var(--blue); }
.row-number { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.row-title strong, .row-title small { display: block; }
.row-title strong { font-size: 18px; transition: color .2s ease; }
.row-title small { margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 400; }
.row-category { color: var(--muted); font-size: 11px; }
.row-toggle { font-size: 22px; line-height: 1; transition: transform .2s ease; }
.project-row[open] .row-toggle { transform: rotate(45deg); }
.row-body {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(220px, 1fr);
  gap: 40px;
  padding: 2px 40px 30px 68px;
}
.row-body > p { margin: 0; font-size: 14px; line-height: 1.7; }
.row-body .proof-list { margin: 0; }
.row-tools { grid-column: 1 / -1; margin-top: 0; }

.capabilities {
  padding: 104px max(24px, calc((100vw - var(--max)) / 2)) 110px;
  color: var(--white);
  background: var(--dark);
}
.section-heading--light > p { color: #aeb4b7; }
.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #3d4245;
}
.capability-grid article { min-width: 0; padding: 24px 24px 0 0; }
.capability-grid article + article { padding-left: 24px; border-left: 1px solid #3d4245; }
.capability-grid span { color: var(--teal); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.capability-grid h3 { margin: 36px 0 10px; font-size: 22px; }
.capability-grid p { margin: 0; color: #aeb4b7; font-size: 13px; line-height: 1.7; }

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, .72fr);
  gap: 16px 80px;
  padding: 112px 0;
}
.contact .eyebrow, .contact h2 { grid-column: 1; }
.contact > p:not(.eyebrow) {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.contact-links { display: flex; gap: 28px; margin-top: 20px; }
.contact-links a { font-size: 13px; font-weight: 730; text-underline-offset: 5px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px max(24px, calc((100vw - var(--max)) / 2));
  color: #aeb4b7;
  background: var(--dark);
  border-top: 1px solid #3d4245;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

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

@media (max-width: 940px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; align-content: end; gap: 34px; }
  .hero-copy { align-self: auto; }
  .hero-facts { width: 100%; max-width: 560px; }
  .section-heading { gap: 36px; }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability-grid article { padding-bottom: 30px; }
  .capability-grid article:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid #3d4245; }
  .capability-grid article:nth-child(4) { border-top: 1px solid #3d4245; }
  .project-row summary { grid-template-columns: 42px minmax(200px, 1fr) 100px 20px; }
  .project-row summary .row-category { display: none; }
}

@media (max-width: 700px) {
  .site-header { height: 64px; padding: 0 18px; }
  .brand { font-size: 12px; }
  .brand-mark { width: 28px; height: 28px; }
  .hero { height: min(680px, 82svh); min-height: 620px; }
  .hero-inner { width: calc(100% - 36px); padding: 110px 0 34px; }
  .hero h1 { font-size: 44px; }
  .hero-summary { margin: 20px 0 24px; font-size: 16px; line-height: 1.65; }
  .hero-actions { gap: 9px; }
  .primary-action, .secondary-action { min-height: 44px; padding: 0 14px; }
  .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-facts div { min-height: 72px; padding: 13px 8px 0 0; }
  .hero-facts div + div { padding-left: 10px; }
  .hero-facts strong { min-height: 28px; font-size: 18px; }
  .hero-facts div:last-child strong { font-size: 14px; line-height: 1.35; }
  .featured, .all-projects, .contact { width: calc(100% - 36px); }
  .featured { padding: 76px 0 88px; }
  .all-projects { padding-bottom: 86px; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
  .section-heading h2, .contact h2 { font-size: 36px; }
  .section-heading--compact h2 { font-size: 32px; }
  .featured-grid { grid-template-columns: 1fr; gap: 58px; }
  .project-visual--text { padding: 20px; }
  .project-visual--text b { font-size: 31px; }
  .project-footer, .row-tools { align-items: flex-start; flex-direction: column; gap: 16px; }
  .project-row summary {
    grid-template-columns: 30px minmax(0, 1fr) 20px;
    gap: 12px;
    min-height: 78px;
  }
  .project-row summary .row-category, .project-row summary .status { display: none; }
  .row-title strong { font-size: 16px; }
  .row-title small { max-width: 250px; }
  .row-body { grid-template-columns: 1fr; gap: 18px; padding: 0 10px 28px 42px; }
  .row-tools { grid-column: auto; }
  .capabilities { padding: 76px 18px 82px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article, .capability-grid article + article {
    padding: 22px 0;
    border-top: 0;
    border-left: 0;
    border-bottom: 1px solid #3d4245;
  }
  .capability-grid h3 { margin: 18px 0 8px; }
  .contact { grid-template-columns: 1fr; gap: 18px; padding: 82px 0; }
  .contact .eyebrow, .contact h2, .contact > p:not(.eyebrow) { grid-column: 1; }
  .contact > p:not(.eyebrow) { grid-row: auto; margin-top: 10px; }
  .contact-links { margin-top: 8px; }
  footer { flex-direction: column; padding: 22px 18px; }
  footer p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
