@font-face {
  font-family: "Teko";
  src: url("Teko-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #080808;
  --graphite: #202020;
  --muted: #5f5f5f;
  --paper: #f4f4f2;
  --white: #fff;
  --soft: #e8e8e5;
  --line: #aaa;
  --red: #9a1d20;
  --shadow: 10px 10px 0 rgb(8 8 8 / 8%);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #dededb 0%, var(--paper) 42%, var(--white) 100%) fixed;
  font: 400 20px/1.38 "Teko", Impact, "Arial Narrow", sans-serif;
  letter-spacing: .012em;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; }
code { font: .75em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
::selection { color: var(--white); background: var(--ink); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 10px max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid var(--ink);
  background: rgb(244 244 242 / 94%);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.7rem; font-weight: 650; text-decoration: none; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 32px); }
nav a { font-weight: 500; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.primary-nav { justify-self: center; }
.external-nav { justify-self: end; gap: clamp(9px, 1.3vw, 18px); font-size: .9rem; }
.nav-cta { padding: 7px 18px 5px; color: var(--white); background: var(--ink); }

main, footer { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
main > section { margin-block: clamp(76px, 10vw, 140px); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 355px); gap: clamp(36px, 8vw, 100px); align-items: end; min-height: calc(90vh - 74px); padding-block: clamp(60px, 9vw, 120px); margin-block: 0; }
.eyebrow { margin: 0 0 12px; color: var(--muted); font-size: .86rem; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 930px; margin-bottom: 26px; font-size: clamp(4.2rem, 10vw, 9rem); font-weight: 680; line-height: .75; letter-spacing: -.035em; }
h1 span { color: var(--ink); }
h2 { margin-bottom: 18px; font-size: clamp(2.7rem, 5vw, 4.8rem); font-weight: 650; line-height: .84; letter-spacing: -.02em; }
h3 { margin-bottom: 10px; font-size: 1.8rem; line-height: .95; }
.lede { max-width: 780px; margin-bottom: 28px; font-size: clamp(1.25rem, 2vw, 1.65rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.button { display: inline-block; min-width: 160px; padding: 12px 22px 9px; border: 1px solid var(--ink); text-align: center; font-weight: 600; text-decoration: none; }
.button:hover { color: var(--white); background: var(--graphite); }
.button-dark { color: var(--white); background: var(--ink); }
.frameworks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.frameworks li { padding: 5px 10px 3px; border: 1px solid var(--line); background: rgb(255 255 255 / 48%); font-size: .9rem; letter-spacing: .04em; }
.hero-proof { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--ink); background: rgb(255 255 255 / 65%); box-shadow: var(--shadow); }
.proof-number { margin: 0; font-size: 9rem; font-weight: 650; line-height: .68; }
.proof-label { margin: 20px 0; font-size: 1.35rem; }
.hero-proof .frameworks { margin-bottom: 26px; }
.hero-proof hr { margin: 25px 0; border: 0; border-top: 1px solid var(--ink); }
.hero-proof p:last-child { margin-bottom: 0; }

.section-heading { max-width: 800px; margin-bottom: 40px; }
.split-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; max-width: none; align-items: end; }
.split-heading p:last-child { margin-bottom: 18px; font-size: 1.15rem; }
.video-section { display: grid; grid-template-columns: .35fr .65fr; gap: 50px; align-items: center; }
.video-shell { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--ink); background: var(--ink); box-shadow: var(--shadow); }
.video-shell iframe { width: 100%; height: 100%; border: 0; }
.video-fallback { display: grid; place-content: center; height: 100%; padding: 30px; color: var(--white); text-align: center; background: radial-gradient(circle at 50% 35%, #353535, var(--ink) 70%); }
.video-fallback img { margin: 0 auto 18px; filter: invert(1); }
.video-fallback p { margin-bottom: 4px; }
.video-fallback p:last-child { color: #ccc; font-size: .9rem; }

.workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; border: 1px solid var(--ink); list-style: none; box-shadow: var(--shadow); }
.workflow-grid li { min-height: 260px; padding: 28px; border-right: 1px solid var(--ink); background: rgb(255 255 255 / 72%); }
.workflow-grid li:last-child { border-right: 0; }
.workflow-grid span { display: block; margin-bottom: 52px; color: var(--muted); font: .8rem ui-monospace, monospace; }
.workflow-grid p { margin-bottom: 0; }

.carousel { border: 1px solid var(--ink); background: var(--white); box-shadow: var(--shadow); }
.gallery-subjects { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--ink); }
.gallery-subjects button { padding: 17px 12px 13px; border: 0; border-right: 1px solid var(--ink); color: var(--ink); background: var(--soft); cursor: pointer; }
.gallery-subjects button:last-child { border-right: 0; }
.gallery-subjects button:hover { background: #d5d5d1; }
.gallery-subjects button[aria-selected="true"] { color: var(--white); background: var(--ink); }
.gallery-meta { display: flex; justify-content: space-between; gap: 20px; margin: 0; padding: 14px 20px 10px; border-bottom: 1px solid var(--line); }
.gallery-meta span { color: var(--muted); font: .85rem ui-monospace, monospace; }
.carousel-stage { min-height: 600px; }
.slide { margin: 0; }
.slide img { width: 100%; height: min(68vh, 720px); object-fit: contain; background: #d8d8d6; cursor: zoom-in; touch-action: pan-y pinch-zoom; }
.slide-placeholder { display: grid; place-content: center; height: min(68vh, 720px); padding: 36px; text-align: center; background: linear-gradient(135deg, #dededb, var(--white)); }
.slide-placeholder img { width: 80px; height: 80px; margin: 0 auto 22px; background: transparent; }
.slide-placeholder h3 { font-size: clamp(2.2rem, 5vw, 4rem); }
.slide-placeholder p:last-child { max-width: 590px; margin: 0 auto; }
.slide figcaption { min-height: 78px; padding: 19px 24px 15px; border-top: 1px solid var(--ink); font-size: 1.1rem; }
.carousel-controls { display: grid; grid-template-columns: 58px 1fr 58px; border-top: 1px solid var(--ink); }
.carousel-arrow, .carousel-tabs button { border: 0; color: var(--ink); background: var(--soft); cursor: pointer; }
.carousel-arrow { font-size: 1.6rem; }
.carousel-arrow:hover, .carousel-tabs button:hover { background: #d5d5d1; }
.carousel-tabs { display: flex; }
.carousel-tabs button { flex: 1 1 0; padding: 14px 6px 10px; border-inline: 1px solid var(--line); }
.carousel-tabs button[aria-selected="true"] { color: var(--white); background: var(--ink); }
.carousel-tabs button[hidden] { display: none; }

.resource-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); box-shadow: var(--shadow); }
.resource-grid > a, .resource-grid > article { min-height: 255px; padding: 26px; border-right: 1px solid var(--ink); background: rgb(255 255 255 / 75%); text-decoration: none; }
.resource-grid > :last-child { border-right: 0; }
.resource-grid > a:hover { color: var(--white); background: var(--ink); }
.resource-grid span { display: block; margin-bottom: 46px; color: var(--muted); font: .7rem ui-monospace, monospace; text-transform: uppercase; }
.resource-grid > a:hover span { color: #ccc; }
.resource-grid p { min-height: 85px; }
.resource-grid b { font-size: .95rem; }

.boundary { display: grid; grid-template-columns: .4fr .6fr; gap: 50px; padding: clamp(28px, 5vw, 60px); color: var(--white); background: var(--ink); }
.boundary .eyebrow { color: #bbb; }
.boundary h2 { margin: 0; }
.boundary > p { margin: 0; align-self: center; font-size: 1.25rem; }

footer { display: grid; grid-template-columns: 1fr auto; gap: 30px; padding: 44px 0 35px; border-top: 1px solid var(--ink); }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand strong { font-size: 1.3rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 12px 28px; align-items: center; }
.copyright { grid-column: 1 / -1; margin: 10px 0 0; color: var(--muted); font-size: .8rem; }

.artifact-page main { padding-block: 70px; }
.artifact-page h1 { max-width: 850px; font-size: clamp(4rem, 9vw, 8rem); }
.back-link { display: inline-block; margin-bottom: 70px; }
.artifact-list { margin-block: 60px 90px; grid-template-columns: repeat(3, 1fr); }
.artifact-list article h2 { font-size: 2.2rem; }

@media (max-width: 900px) {
  .site-header { position: static; }
  .site-header { grid-template-columns: auto 1fr; }
  .primary-nav { justify-self: end; }
  .external-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    overflow-x: auto;
    padding-block: 5px 2px;
    scrollbar-width: thin;
  }
  .external-nav a { flex: 0 0 auto; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-proof { max-width: 560px; }
  .video-section, .split-heading, .boundary { grid-template-columns: 1fr; }
  .workflow-grid, .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-grid li:nth-child(2), .resource-grid > :nth-child(2) { border-right: 0; }
  .workflow-grid li { border-bottom: 1px solid var(--ink); }
  .workflow-grid li:nth-child(3), .workflow-grid li:nth-child(4) { border-bottom: 0; }
  .resource-grid > :nth-child(1), .resource-grid > :nth-child(2) { border-bottom: 1px solid var(--ink); }
  .carousel-stage { min-height: 0; }
  .artifact-list { grid-template-columns: 1fr; }
  .artifact-list > article { border-right: 0; border-bottom: 1px solid var(--ink); }
}

@media (max-width: 600px) {
  body { font-size: 18px; }
  main, footer { width: min(100% - 24px, 1240px); }
  h1 { font-size: clamp(3.8rem, 19vw, 5.8rem); }
  .hero { padding-top: 48px; }
  .frameworks li { font-size: .78rem; }
  .workflow-grid, .resource-grid { grid-template-columns: 1fr; }
  .workflow-grid li, .resource-grid > a, .resource-grid > article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--ink); }
  .workflow-grid li:nth-child(3) { border-bottom: 1px solid var(--ink); }
  .workflow-grid li:last-child, .resource-grid > :last-child { border-bottom: 0; }
  .workflow-grid span, .resource-grid span { margin-bottom: 24px; }
  .resource-grid p { min-height: 0; }
  .slide img { height: auto; min-height: 0; aspect-ratio: 16 / 9; object-fit: contain; object-position: center; }
  .site-header { padding-inline: 12px; }
  .brand { font-size: 1.45rem; }
  .primary-nav { display: none; }
  .external-nav { margin-inline: -12px; padding-inline: 12px; scroll-snap-type: x proximity; }
  .external-nav a { scroll-snap-align: start; }
  .gallery-subjects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .gallery-subjects button { min-width: 0; padding-inline: 6px; border-bottom: 1px solid var(--ink); }
  .gallery-subjects button:nth-child(2) { border-right: 0; }
  .gallery-subjects button:nth-child(3), .gallery-subjects button:nth-child(4) { border-bottom: 0; }
  .gallery-meta { align-items: baseline; font-size: .9rem; }
  .carousel-controls { grid-template-columns: 48px 1fr 48px; }
  .carousel-tabs { display: flex; min-width: 0; overflow: hidden; }
  .carousel-tabs button { flex: 1 1 0; min-width: 0; overflow: hidden; padding-inline: 1px; font-size: .7rem; white-space: nowrap; }
  footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: start; }
}

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