:root {
  color-scheme: light;
  --ink: #161a1d;
  --muted: #5f6b72;
  --line: #dbe2e4;
  --paper: #f7f8f4;
  --white: #ffffff;
  --graphite: #20272b;
  --graphite-2: #30383d;
  --green: #0f7a4f;
  --green-dark: #07573a;
  --yellow: #f6c84c;
  --blue: #2c7da0;
  --red: #c84a3a;
  --shadow: 0 20px 55px rgba(22, 26, 29, 0.14);
  --radius: 8px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
dl,
dd,
figure {
  margin: 0;
}

ul {
  margin: 18px 0 0;
  padding-left: 1.15rem;
}

li + li {
  margin-top: 8px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  background: rgba(22, 26, 29, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 36px;
  border: 2px solid var(--yellow);
  border-radius: 6px;
  color: var(--yellow);
  font-size: 0.82rem;
}

.brand-text {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 86vh;
  padding: 118px 34px 40px;
  overflow: hidden;
  color: var(--white);
  background: var(--graphite);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 26, 29, 0.92) 0%, rgba(22, 26, 29, 0.68) 46%, rgba(22, 26, 29, 0.25) 100%),
    linear-gradient(0deg, rgba(22, 26, 29, 0.9), rgba(22, 26, 29, 0.06) 44%, rgba(22, 26, 29, 0.35));
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 72px 0 0;
  display: grid;
  align-items: center;
  justify-items: end;
  padding: 48px;
}

.hero-photo {
  width: min(58vw, 760px);
  min-height: 60vh;
  opacity: 0.86;
  transform: rotate(-1.4deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
}

.eyebrow,
.section-kicker,
.step-month,
.iteration-label {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

h1 {
  max-width: 11ch;
  margin-top: 14px;
  font-size: 4.8rem;
  line-height: 0.94;
  font-weight: 900;
}

.hero-lead {
  max-width: 660px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 900;
}

.button.primary {
  background: var(--yellow);
  color: var(--ink);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.button:hover,
.filter-button:hover {
  transform: translateY(-1px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 14px;
  margin-top: 46px;
}

.hero-stats div {
  border-left: 3px solid var(--yellow);
  padding-left: 14px;
}

.hero-stats dt {
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}

.hero-stats dd {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.section-shell {
  width: min(var(--max-width), calc(100% - 48px));
  margin-inline: auto;
}

.intro-band {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 54px;
  padding: 38px 0;
  align-items: center;
}

.intro-grid h2,
.section-heading h2,
.sticky-copy h2,
.reflection-grid h2 {
  margin-top: 8px;
  font-size: 2.5rem;
  line-height: 1.08;
}

.intro-grid p:last-child,
.section-heading p,
.sticky-copy p,
.reflection-list p,
.work-card p,
.dark-card p,
.learning-grid p,
.wide-feature p,
.site-footer p,
.gallery-item figcaption {
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
  padding: 88px 0 36px;
}

.section-heading.compact {
  padding-bottom: 30px;
}

.section-heading p {
  margin-top: 16px;
  font-size: 1.05rem;
}

.process-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 88px;
}

.process-map::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 26px;
  height: 2px;
  background: var(--line);
}

.process-step {
  position: relative;
  min-height: 295px;
  padding: 56px 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 34px rgba(22, 26, 29, 0.06);
}

.process-step::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 18px;
  height: 18px;
  border: 4px solid var(--paper);
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.process-step h3,
.iteration-card h3,
.work-card h3,
.dark-card h3,
.learning-grid h3,
.wide-feature h3,
.reflection-list h3 {
  margin-top: 10px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.process-step p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.96rem;
}

.split-section {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 58px;
  padding: 88px 0;
  align-items: start;
}

.sticky-copy {
  position: sticky;
  top: 102px;
}

.sticky-copy p {
  margin-top: 18px;
  font-size: 1.05rem;
}

.iteration-list {
  display: grid;
  gap: 18px;
}

.iteration-card,
.work-card,
.learning-grid article,
.reflection-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 36px rgba(22, 26, 29, 0.06);
}

.iteration-card {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 24px;
  padding: 24px;
  align-items: center;
}

.iteration-card p {
  margin-top: 12px;
  color: var(--muted);
}

.iteration-card.warning {
  border-color: rgba(200, 74, 58, 0.42);
}

.iteration-card.warning .iteration-label {
  color: var(--red);
}

.iteration-card.success {
  border-color: rgba(15, 122, 79, 0.34);
}

.photo-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px dashed rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(135deg, rgba(15, 122, 79, 0.42), rgba(44, 125, 160, 0.28)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 18px),
    #1d2529;
  text-align: center;
  font-weight: 900;
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
}

.photo-frame span {
  position: relative;
  max-width: 18ch;
  padding: 12px;
  font-size: 0.92rem;
  line-height: 1.2;
}

.photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-frame img.rotate-180 {
  transform: rotate(180deg);
}

.photo-frame:has(img) {
  border-style: solid;
}

.photo-frame:has(img)::before,
.photo-frame:has(img) span {
  display: none;
}

.photo-frame.small {
  min-height: 180px;
  border-color: rgba(22, 26, 29, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 88px;
}

.work-card {
  min-height: 330px;
  padding: 24px;
}

.work-card p {
  margin-top: 12px;
}

.work-card li {
  color: var(--muted);
}

.contrast-section {
  background: var(--graphite);
  color: var(--white);
}

.section-heading.on-dark p,
.dark-card p {
  color: rgba(255, 255, 255, 0.72);
}

.section-heading.on-dark .section-kicker {
  color: var(--yellow);
}

.evidence-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 88px;
}

.dark-card {
  min-height: 300px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: var(--graphite-2);
}

.card-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
}

.telemetry-section {
  padding-bottom: 88px;
}

.telemetry-flow {
  display: grid;
  grid-template-columns: 1fr 54px 1fr 54px 1fr 54px 1fr;
  align-items: stretch;
  gap: 12px;
  margin: 12px 0 22px;
}

.flow-node {
  min-height: 145px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(22, 26, 29, 0.06);
}

.flow-node span {
  display: block;
  color: var(--green);
  font-size: 1.18rem;
  font-weight: 900;
}

.flow-node p {
  margin-top: 8px;
  color: var(--muted);
}

.flow-arrow {
  position: relative;
  min-height: 60px;
}

.flow-arrow::before,
.flow-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.flow-arrow::before {
  left: 0;
  right: 8px;
  height: 2px;
  background: var(--green);
}

.flow-arrow::after {
  right: 0;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--green);
  border-right: 2px solid var(--green);
  transform: translateY(-50%) rotate(45deg);
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.learning-grid article {
  min-height: 220px;
  padding: 24px;
}

.learning-grid p {
  margin-top: 12px;
}

.wide-feature {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 34px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.wide-feature.reverse {
  grid-template-columns: 1.18fr 0.82fr;
}

.wide-feature.reverse div:first-child {
  order: 2;
}

.wide-feature p {
  margin-top: 12px;
  font-size: 1.04rem;
}

.photo-frame.landscape {
  min-height: 310px;
  border-color: rgba(22, 26, 29, 0.2);
}

.photo-frame.portrait {
  width: min(100%, 430px);
  min-height: 460px;
  aspect-ratio: 3 / 4;
  justify-self: center;
}

.evidence-section {
  margin-top: 56px;
  background: var(--white);
  border-block: 1px solid var(--line);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-button {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.filter-button.active {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 88px;
}

.gallery-item {
  display: grid;
  gap: 12px;
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-photo {
  min-height: auto;
  aspect-ratio: 4 / 3;
  border-color: rgba(22, 26, 29, 0.2);
}

.gallery-item figcaption {
  font-size: 0.92rem;
  line-height: 1.45;
}

.reflection-section {
  background: #eef3ee;
}

.reflection-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  padding: 88px 0;
}

.reflection-list {
  display: grid;
  gap: 16px;
}

.reflection-list article {
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
}

.reflection-list p {
  margin-top: 10px;
}

.site-footer {
  padding: 44px 0;
  background: var(--ink);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1050px) {
  .site-header {
    padding-inline: 22px;
  }

  .brand-text {
    display: none;
  }

  h1 {
    font-size: 4rem;
  }

  .process-map,
  .work-grid,
  .evidence-row,
  .learning-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-map::before {
    display: none;
  }

  .process-step {
    min-height: 250px;
  }

  .telemetry-flow {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    min-height: 34px;
  }

  .flow-arrow::before {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 8px;
    width: 2px;
    height: auto;
  }

  .flow-arrow::after {
    top: auto;
    bottom: 0;
    right: auto;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }
}

@media (max-width: 780px) {
  body.nav-open .site-nav {
    display: grid;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    display: none;
    inset: 72px 0 auto;
    padding: 14px 22px 22px;
    background: rgba(22, 26, 29, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-nav a {
    border-radius: var(--radius);
  }

  .hero {
    min-height: 92vh;
    padding: 104px 22px 34px;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(22, 26, 29, 0.96), rgba(22, 26, 29, 0.56)),
      linear-gradient(90deg, rgba(22, 26, 29, 0.85), rgba(22, 26, 29, 0.22));
  }

  .hero-media {
    align-items: start;
    justify-items: stretch;
    padding: 26px 22px;
  }

  .hero-photo {
    width: 100%;
    min-height: 34vh;
    transform: none;
  }

  h1 {
    max-width: 10ch;
    font-size: 3rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .section-shell {
    width: min(100% - 34px, var(--max-width));
  }

  .intro-grid,
  .split-layout,
  .reflection-grid,
  .footer-grid,
  .wide-feature,
  .wide-feature.reverse {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    gap: 18px;
  }

  .intro-grid h2,
  .section-heading h2,
  .sticky-copy h2,
  .reflection-grid h2 {
    font-size: 2rem;
  }

  .section-heading {
    padding-top: 62px;
  }

  .split-layout,
  .reflection-grid {
    padding: 62px 0;
  }

  .sticky-copy {
    position: static;
  }

  .iteration-card {
    grid-template-columns: 1fr;
  }

  .wide-feature.reverse div:first-child {
    order: 0;
  }
}

@media (max-width: 560px) {
  .process-map,
  .work-grid,
  .evidence-row,
  .learning-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    height: 66px;
  }

  .site-nav {
    inset: 66px 0 auto;
  }

  .brand-mark {
    width: 44px;
    height: 34px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero {
    min-height: 94vh;
    padding-top: 94px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .process-step,
  .work-card,
  .dark-card {
    min-height: 0;
  }

  .photo-frame.landscape {
    min-height: 220px;
  }

  .photo-frame.portrait {
    min-height: 360px;
  }
}
