@media (max-width: 1200px) {
  :root {
    --content: min(100% - 48px, 1080px);
  }

  .site-header {
    padding-inline: 24px;
  }

  .desktop-nav {
    gap: 22px;
  }

  .hero-stack {
    right: 24px;
    width: clamp(400px, 45vw, 520px);
  }

  .hero-practices {
    right: 24px;
    left: 24px;
  }

  .journey-shell {
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: 44px;
  }

  .journey-stage {
    min-height: 540px;
  }

  .stage-frame {
    right: 0;
  }

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

  .capability-panel-copy {
    padding-right: 0;
  }

  .capability-panel-visual {
    margin: 8px 0 48px 26px;
  }

  .capability-panel-visual img {
    max-height: 680px;
  }
}

@media (max-width: 980px) {
  :root {
    --content: calc(100% - 48px);
  }

  .brand-lockup {
    width: 174px;
  }

  .desktop-nav {
    gap: 18px;
  }

  .desktop-nav a {
    font-size: 10px;
  }

  .hero-content {
    padding-top: 158px;
  }

  .hero h1 {
    font-size: clamp(88px, 13.5vw, 132px);
  }

  .hero-lead {
    max-width: 500px;
    font-size: 20px;
  }

  .hero-stack {
    top: 205px;
    width: 44vw;
  }

  .hero-plane-acrylic {
    width: 70%;
  }

  .canvas-intro-grid,
  .section-heading {
    grid-template-columns: 0.42fr 1.58fr;
  }

  .canvas-intro-copy,
  .section-heading > p:last-child {
    grid-column: 2;
  }

  .journey-shell {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
  }

  .stage-axis {
    display: none;
  }

  .stage-paper {
    left: 1%;
  }

  .stage-frame {
    inset: 8% 0 15% 7%;
  }

  .stage-acrylic {
    right: -2%;
    width: 70%;
  }

  .proof-project,
  .proof-project:nth-child(even),
  .system-feature,
  .system-feature-ims,
  .company-grid {
    grid-template-columns: 1fr;
  }

  .proof-project {
    gap: 38px;
  }

  .proof-project:nth-child(even) .proof-image {
    order: initial;
  }

  .system-feature {
    gap: 48px;
  }

  .system-feature-ims .ims-visual {
    order: 2;
  }

  .company-grid {
    gap: 48px;
  }

  .company-details {
    max-width: 640px;
    padding-top: 0;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }

  .desktop-nav {
    display: none;
  }

  .header-cta {
    grid-column: 2;
  }

  .mobile-nav {
    position: relative;
    grid-column: 3;
    display: block;
  }

  .mobile-nav summary {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    cursor: pointer;
    list-style: none;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav summary span,
  .mobile-nav summary span::before,
  .mobile-nav summary span::after {
    width: 16px;
    height: 1px;
    display: block;
    background: var(--ink);
  }

  .mobile-nav summary span {
    position: relative;
  }

  .mobile-nav summary span::before,
  .mobile-nav summary span::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .mobile-nav summary span::before {
    top: -5px;
  }

  .mobile-nav summary span::after {
    top: 5px;
  }

  .mobile-nav[open] summary span {
    background: transparent;
  }

  .mobile-nav[open] summary span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .mobile-nav[open] summary span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .mobile-nav nav {
    position: absolute;
    top: 46px;
    right: 0;
    width: min(270px, calc(100vw - 32px));
    padding: 8px;
    display: grid;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-spatial);
  }

  .mobile-nav nav a {
    min-height: 44px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .mobile-nav nav a:last-child {
    border-bottom: 0;
  }

  .hero-stack {
    top: 270px;
    width: min(48vw, 390px);
  }

  .journey {
    background-size: calc(100vw / 6) 100%;
  }

  .journey-shell {
    display: block;
  }

  .journey-stage {
    display: none;
  }

  .journey-steps {
    padding: 50px 0 90px;
  }

  .journey-step {
    min-height: 0;
    padding: 78px 0;
    grid-template-columns: 34px 1fr;
    opacity: 1;
  }

  .journey-step-copy h3 {
    max-width: 13ch;
  }

  .journey-step-visual {
    grid-column: 1 / -1;
    margin-top: 34px;
    display: block;
    background: var(--ink);
    border: 1px solid var(--line-strong);
  }

  .journey-step-visual img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  .journey-step-visual figcaption {
    min-height: 38px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    background: var(--paper);
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 8px;
    text-transform: uppercase;
  }

  .capability-tabs {
    overflow-x: auto;
    grid-template-columns: repeat(6, minmax(142px, 1fr));
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }

  .capability-tabs button {
    scroll-snap-align: start;
  }

  .model-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-track li:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .model-track li:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  footer {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 720px) {
  :root {
    --content: calc(100% - 32px);
    --header-height: 64px;
  }

  html {
    scroll-padding-top: 64px;
  }

  .site-header {
    height: 64px;
    padding: 0 16px;
    gap: 8px;
  }

  .brand-lockup {
    width: 44px;
    max-height: 42px;
    object-fit: contain;
  }

  .header-cta {
    min-height: 36px;
    padding: 0 11px;
    gap: 12px;
  }

  .mobile-nav summary {
    width: 36px;
    height: 36px;
  }

  .hero {
    min-height: calc(100svh - 36px);
  }

  .hero::before {
    background: linear-gradient(
      180deg,
      oklch(0.975 0.008 120 / 0.97) 0%,
      oklch(0.975 0.008 120 / 0.91) 42%,
      oklch(0.975 0.008 120 / 0.48) 70%,
      oklch(0.975 0.008 120 / 0.87) 100%
    );
  }

  .hero::after {
    background: linear-gradient(
      180deg,
      transparent 0 56%,
      oklch(0.975 0.008 120 / 0.9) 100%
    );
  }

  .hero-media img,
  .hero-media video {
    object-position: 60% center;
  }

  .hero-grid {
    background-size: calc(100vw / 4) 64px;
    mask-image: linear-gradient(180deg, black, transparent 72%);
  }

  .hero-content {
    padding-top: 96px;
  }

  .hero-content > * {
    max-width: min(350px, 88vw);
  }

  .hero-content .eyebrow {
    margin-bottom: 14px;
  }

  .hero h1 {
    font-size: clamp(62px, 20vw, 78px);
    line-height: 0.96;
  }

  .hero-lead {
    max-width: 350px;
    margin-top: 28px;
    font-size: 17px;
    line-height: 1.42;
  }

  .hero-actions {
    margin-top: 20px;
    gap: 18px;
  }

  .hero-actions .button {
    min-height: 44px;
    padding-inline: 14px;
  }

  .hero-actions .text-link {
    font-size: 11px;
  }

  .hero-stack {
    top: 410px;
    right: 16px;
    width: calc(100% - 52px);
    max-width: 360px;
  }

  .hero-plane-paper {
    inset: 8% 12% 4% 4%;
  }

  .hero-plane-interface {
    inset: 1% 0 13% 8%;
  }

  .plane-workspace {
    padding: 10px 3px;
    gap: 6px;
  }

  .plane-output span {
    min-height: 34px;
    padding: 6px 3px;
    font-size: 7px;
  }

  .hero-plane-acrylic {
    right: -2%;
    width: 67%;
    min-height: 64px;
    padding: 10px;
  }

  .hero-plane-acrylic strong {
    font-size: 9px;
  }

  .hero-practices {
    right: 16px;
    bottom: 16px;
    left: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-practices li {
    min-height: 34px;
    padding: 6px 7px;
    font-size: 8px;
  }

  .hero-practices li + li {
    border-left: 0;
  }

  .hero-practices li:nth-child(2),
  .hero-practices li:nth-child(3),
  .hero-practices li:nth-child(5) {
    border-left: 1px solid var(--line);
  }

  .hero-practices li:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .hero-practices li::before {
    width: 5px;
    height: 5px;
    margin-right: 6px;
  }

  .hero-coordinate {
    display: none;
  }

  .canvas-intro,
  .capabilities {
    padding: 82px 0;
  }

  .canvas-intro-grid,
  .section-heading,
  .model-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .canvas-intro-copy,
  .section-heading > p:last-child {
    grid-column: auto;
  }

  .canvas-intro h2,
  .section-heading h2,
  .model-heading h2,
  .company h2,
  .contact h2 {
    font-size: 40px;
  }

  .journey-steps {
    padding: 26px 0 70px;
  }

  .journey-step {
    padding: 62px 0;
    grid-template-columns: 28px 1fr;
    gap: 14px;
  }

  .journey-step-copy h3 {
    margin: 16px 0 18px;
    font-size: 36px;
  }

  .journey-step-copy > p:not(.eyebrow) {
    font-size: 14px;
  }

  .journey-step-copy ul {
    margin-top: 24px;
  }

  .journey-step-visual {
    margin-top: 28px;
  }

  .capability-explorer {
    margin-top: 50px;
  }

  .capability-tabs button {
    min-height: 74px;
    padding: 13px;
  }

  .capability-panel {
    min-height: 0;
  }

  .capability-panel-copy {
    padding: 42px 0;
  }

  .capability-panel h3 {
    margin-top: 26px;
    font-size: 37px;
  }

  .capability-panel-copy > p {
    font-size: 15px;
  }

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

  .capability-panel li,
  .capability-panel li + li {
    min-height: auto;
    padding: 11px 0;
    border-left: 0;
  }

  .capability-proof {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .capability-panel-visual {
    margin: 10px 0 34px 12px;
  }

  .capability-visual-sheet {
    inset: -10px 14px 12px -12px;
  }

  .capability-panel-visual img {
    min-height: 270px;
    max-height: 390px;
  }

  .capability-panel-visual figcaption {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .proof-heading {
    margin-top: 78px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .capability-next {
    margin-top: 76px;
    align-items: flex-start;
    flex-direction: column;
  }

  .work-page-intro {
    padding: 116px 0 88px;
  }

  .work-page-intro .proof-heading {
    margin-top: 0;
  }

  .proof-heading h1,
  .proof-heading h3 {
    font-size: 38px;
  }

  .portfolio-proof {
    margin-top: 42px;
    gap: 68px;
  }

  .proof-project {
    gap: 28px;
  }

  .proof-image,
  .proof-image img {
    min-height: 250px;
  }

  .proof-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .systems {
    padding: 84px 0;
  }

  .system-feature {
    margin-top: 72px;
    gap: 36px;
  }

  .system-feature-ims {
    padding: 72px 0;
  }

  .feature-copy h3,
  .systems-secondary h3 {
    font-size: 35px;
  }

  .feature-metrics {
    grid-template-columns: 1fr;
  }

  .feature-metrics div {
    border-bottom: 1px solid var(--line-light);
  }

  .feature-metrics div:last-child {
    border-bottom: 0;
  }

  .dsr-visual {
    min-height: 0;
    padding: 18px;
    background-size: 42px 42px;
  }

  .visual-topline {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .visual-rail div {
    grid-template-columns: 96px 1fr;
  }

  .ims-visual,
  .ims-visual img {
    min-height: 320px;
  }

  .feature-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .systems-secondary {
    margin-top: 76px;
    grid-template-columns: 1fr;
  }

  .systems-secondary article {
    min-height: 0;
    padding: 40px 0;
  }

  .systems-secondary article + article {
    padding-left: 0;
    border-top: 1px solid var(--line-light);
    border-left: 0;
  }

  .operating-model {
    padding: 84px 0;
    background-size: calc(100vw / 4) 100%;
  }

  .model-track {
    margin-top: 50px;
    grid-template-columns: 1fr;
  }

  .model-track li,
  .model-track li + li {
    min-height: 0;
    padding: 26px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .model-track strong {
    margin-top: 24px;
  }

  .company {
    padding: 86px 0;
  }

  .company-mark {
    right: -24vw;
    bottom: -22vw;
    width: 112vw;
  }

  .company-details dl div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .contact {
    min-height: 540px;
    padding: 84px 20px;
  }

  .contact::before {
    background: linear-gradient(
      180deg,
      oklch(0.975 0.008 120 / 0.98) 0%,
      oklch(0.975 0.008 120 / 0.94) 58%,
      oklch(0.975 0.008 120 / 0.72) 100%
    );
  }

  .contact-grid {
    background-size: 56px 56px;
  }

  .contact-copy > p:not(.eyebrow) {
    font-size: 15px;
  }

  .contact .button {
    width: 100%;
    max-width: 350px;
    gap: 12px;
    overflow-wrap: anywhere;
  }

  footer {
    padding: 40px 20px;
  }
}

@media (max-width: 420px) and (max-height: 760px) {
  .hero-content {
    padding-top: 86px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    margin-top: 16px;
  }

  .hero-stack {
    top: 370px;
    width: 310px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .hero-content,
  .js .hero-stack,
  .js .hero-practices,
  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .journey-shell {
    display: block;
  }

  .journey-stage {
    display: none;
  }

  .journey-steps {
    padding: 50px 0 90px;
  }

  .journey-step {
    min-height: 0;
    padding: 76px 0;
    grid-template-columns: 42px 1fr;
    opacity: 1;
  }

  .journey-step-visual {
    grid-column: 1 / -1;
    margin-top: 34px;
    display: block;
    border: 1px solid var(--line-strong);
  }

  .journey-step-visual img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  .journey-step-visual figcaption {
    min-height: 38px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    background: var(--paper);
    border-top: 1px solid var(--line);
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 8px;
    text-transform: uppercase;
  }
}
