@media (max-width: 1180px) {
  :root {
    --frame: calc(100% - 42px);
  }

  .site-nav {
    padding: 0 22px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    padding-right: 4%;
    padding-left: 4%;
  }

  .hero {
    min-height: 680px;
  }

  .hero__foot {
    display: none;
  }

  h1 {
    font-size: 58px;
  }

  .section-heading h2,
  .process__intro h2 {
    font-size: 50px;
  }

  .case-study {
    grid-template-columns: minmax(310px, 0.8fr) minmax(0, 1.2fr);
    gap: 4%;
  }

  .case-study__copy h3 {
    font-size: 38px;
  }

  .system-map__node {
    width: 126px;
  }

  .archive-row {
    grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr) auto;
    padding-right: 22px;
    padding-left: 22px;
  }

  .archive-row__impact {
    padding-left: 14px;
  }

  .contact h2 {
    font-size: 58px;
  }
}

@media (max-width: 900px) {
  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .site-nav__links,
  .nav-resume {
    position: fixed;
    right: 0;
    left: 0;
    display: none;
    background: var(--paper);
  }

  .site-nav__links {
    top: var(--nav-height);
    flex-direction: column;
    gap: 0;
    padding: 22px;
    border-bottom: 1px solid var(--line-strong);
  }

  .site-nav__links a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }

  .site-nav.menu-open .site-nav__links {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav.menu-open .menu-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .site-nav.menu-open .menu-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .hero {
    height: auto;
    min-height: auto;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 58px;
    padding: 76px 7% 48px;
  }

  .hero__copy {
    padding-right: 0;
  }

  .portrait-stage {
    width: min(100%, 520px);
    margin: 0 auto;
    aspect-ratio: 0.92;
  }

  .hero__foot {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero__foot span:nth-child(4) {
    border-right: 0;
  }

  .hero__foot span:nth-child(n + 5) {
    border-top: 1px solid var(--line);
  }

  .evidence__metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-card:nth-child(2) {
    border-right: 0;
  }

  .proof-card:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .capability-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .capability-rail span:nth-child(2) {
    border-right: 0;
  }

  .capability-rail span:nth-child(n + 3) {
    border-top: 1px solid var(--green);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 54px;
  }

  .section-heading > p {
    max-width: 680px;
  }

  .case-study,
  .case-study:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 46px;
    padding: 62px 0;
  }

  .case-study:nth-child(even) .case-study__copy,
  .case-study:nth-child(even) .case-study__visual {
    order: initial;
  }

  .process {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .process__intro {
    position: static;
  }

  .library-head {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .library-head h2 {
    font-size: 58px;
  }

  .library-head__search {
    max-width: 520px;
  }

  .library-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .archive-row {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .archive-row__impact {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 0 52px;
  }

  .archive-row__toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .archive-row__detail {
    grid-row: 3;
  }

  .archive-row__detail-content {
    grid-template-columns: 1fr;
    margin-left: 52px;
  }

  .archive-row__detail-content section {
    border-right: 0;
    border-bottom: 1px solid #304a3a;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }
}

@media (max-width: 640px) {
  :root {
    --frame: calc(100% - 24px);
    --nav-height: 64px;
  }

  body {
    font-size: 15px;
  }

  .site-nav {
    min-height: var(--nav-height);
    padding: 0 12px;
  }

  .wordmark__name {
    display: none;
  }

  .hero,
  .evidence,
  .selected-work,
  .process,
  .contact {
    border-right: 0;
    border-left: 0;
  }

  .hero::before,
  .evidence::before,
  .selected-work::before,
  .process::before,
  .contact::before {
    left: 12px;
  }

  .hero__grid {
    gap: 24px;
    padding: 58px 12px 24px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: 40px;
    line-height: 0.96;
  }

  .hero h1 em {
    font-size: 1.04em;
    line-height: 0.92;
  }

  .hero .eyebrow {
    margin-bottom: 13px;
  }

  .hero__intro {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.55;
  }

  .hero__modes {
    display: none;
  }

  .hero__actions {
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 20px;
  }

  .command {
    width: 50%;
    min-height: 46px;
    gap: 8px;
    padding: 0 12px;
    font-size: 10px;
  }

  .portrait-stage {
    height: 220px;
    aspect-ratio: auto;
  }

  .portrait-stage img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center 22%;
  }

  .portrait-orbit {
    top: -55%;
    right: 4%;
    bottom: auto;
    width: 58%;
  }

  .portrait-label {
    min-width: 70%;
    padding: 10px 12px;
  }

  .hero__foot {
    display: none;
  }

  .evidence,
  .selected-work,
  .process,
  .contact {
    padding: 100px 12px 82px;
  }

  .section-heading h2,
  .process__intro h2,
  .contact h2 {
    font-size: 40px;
  }

  .evidence__metrics {
    grid-template-columns: 1fr;
  }

  .proof-card {
    min-height: 210px;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .proof-card:first-child {
    border-top: 0;
  }

  .proof-card__value {
    font-size: 50px;
  }

  .route-line {
    align-items: stretch;
    flex-direction: column;
    padding: 56px 12px 40px;
  }

  .route-line__segment {
    width: 1px;
    height: 42px;
    margin: 8px 0 8px 15px;
  }

  .route-line__segment::after {
    top: auto;
    right: -3px;
    bottom: 0;
    border-width: 6px 3px 0;
    border-color: var(--line-strong) transparent transparent;
  }

  .capability-rail {
    grid-template-columns: 1fr;
  }

  .capability-rail span {
    border-right: 0;
    border-top: 1px solid var(--green);
  }

  .capability-rail span:first-child {
    border-top: 0;
  }

  .case-study__copy h3 {
    font-size: 34px;
  }

  .visual-window {
    min-height: 390px;
  }

  .treasury-flow {
    min-height: 355px;
    grid-template-columns: 1fr 0.6fr 1fr;
    gap: 8px;
    padding: 26px 12px;
  }

  .document-stack,
  .report-stack {
    height: 170px;
  }

  .pipeline-core {
    min-height: 200px;
  }

  .pipeline-core__node {
    width: 84px;
    height: 84px;
  }

  .pipeline-core__node strong {
    font-size: 10px;
  }

  .pipeline-core__node span {
    display: none;
  }

  .system-map {
    min-height: 355px;
    padding: 14px;
  }

  .system-map__service {
    width: 116px;
    height: 116px;
  }

  .system-map__service strong {
    font-size: 13px;
  }

  .system-map__node {
    width: 92px;
    min-height: 62px;
    font-size: 9px;
  }

  .system-map__node--monday { top: 22px; left: 14px; }
  .system-map__node--qbt { top: 22px; right: 14px; }
  .system-map__node--expensify { bottom: 22px; left: 14px; }
  .system-map__node--logs { right: 14px; bottom: 22px; }
  .system-map__node::after { display: none; }

  .healthcare-showcase {
    min-height: 430px;
  }

  .healthcare-showcase::before {
    top: 42px;
    left: 34px;
    width: 72%;
    height: 55%;
  }

  .healthcare-showcase__provider {
    top: 24px;
    left: 20px;
    width: 78%;
    min-height: 320px;
  }

  .healthcare-surface__head {
    min-height: 50px;
    padding: 0 16px;
  }

  .healthcare-surface__stats div {
    padding: 16px;
  }

  .healthcare-surface__stats strong {
    font-size: 24px;
  }

  .healthcare-surface__queue {
    padding: 8px 16px 20px;
  }

  .healthcare-showcase__mobile {
    right: 14px;
    bottom: 18px;
    width: 165px;
    min-height: 326px;
    padding: 28px 16px 16px;
  }

  .process-route li {
    grid-template-columns: 52px 1fr;
    gap: 14px;
  }

  .process-route::before {
    left: 25px;
  }

  .process-route li > span {
    width: 52px;
    height: 52px;
  }

  .experience-track article {
    grid-template-columns: 1fr;
  }

  .experience-track time {
    grid-row: auto;
  }

  .project-library {
    padding-top: 80px;
  }

  .project-library::before {
    left: 12px;
  }

  .library-head {
    padding-top: 45px;
  }

  .library-head h2 {
    font-size: 45px;
  }

  .filter-button {
    padding: 0 6px;
  }

  .archive-row {
    grid-template-columns: 1fr 42px;
    padding: 20px 12px;
  }

  .archive-row__title {
    font-size: 20px;
  }

  .archive-row__impact {
    padding: 0 0 0 42px;
  }

  .archive-row__detail-content {
    margin-left: 42px;
  }

  .archive-row__detail-footer a {
    width: 100%;
    margin: 8px 0 0;
  }

  .contact h2 {
    font-size: 44px;
  }

  .contact__availability {
    grid-template-columns: 1fr;
  }

  .contact__availability strong {
    margin-bottom: 10px;
  }

  .contact__links a {
    grid-template-columns: 34px 1fr 24px;
  }

  .contact__links small {
    display: none;
  }

  .contact__links b {
    grid-column: 3;
  }

  .contact-route span {
    left: 10%;
    width: 70%;
  }

  .contact-route i {
    left: 78%;
  }

  .contact-route b {
    right: 0;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
