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

  .site-header nav {
    display: none;
  }

  .hero-copy {
    width: min(46rem, 72vw);
  }

  .wisdom-ribbon {
    display: none;
  }

  .mandate-stage,
  .interface-heading,
  .ecosystem-heading {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .mandate-heading {
    max-width: 34rem;
  }

  .manifesto {
    margin-top: 2rem;
  }

  .manifesto-line {
    font-size: clamp(2rem, 5vw, 4rem);
  }

  .world-callouts {
    grid-template-columns: repeat(3, 1fr);
  }

  .world-callouts li:last-child {
    grid-column: auto;
  }

  .command-console__grid {
    grid-template-columns: 1fr;
  }

  .intent-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .route-panel {
    min-height: 38rem;
  }

  .ecosystem-ledger article {
    grid-template-columns: 2.5rem 3.8rem minmax(12rem, 0.8fr) 1.2fr;
  }

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

  .pathways a:nth-child(2) {
    border-right: 0;
  }

  .pathways a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 767px) {
  .grain {
    opacity: 0.018;
  }

  .site-header {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .site-brand img {
    width: 2.35rem;
    height: 2.35rem;
  }

  .site-header__edition {
    max-width: 9rem;
    font-size: 0.43rem;
    text-align: right;
  }

  .chapter--scrub,
  .chapter--hero,
  .chapter--worlds,
  .chapter--reassembly,
  .chapter--macro {
    height: 160svh;
  }

  .chapter--mandate {
    height: 300svh;
  }

  .stage {
    height: 100svh;
    min-height: 540px;
  }

  .stage__veil--hero {
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.3), rgba(5, 5, 5, 0.12) 38%, rgba(5, 5, 5, 0.92) 79%);
  }

  .hero-copy {
    right: var(--page-pad);
    bottom: 5rem;
    width: auto;
  }

  .hero-copy h1 {
    font-size: clamp(5rem, 24vw, 7.5rem);
  }

  .hero-copy__lead {
    max-width: 28rem;
    font-size: 1.08rem;
  }

  .hero-copy__actions {
    display: grid;
    max-width: 22rem;
    grid-template-columns: 1fr;
  }

  .scroll-cue {
    display: none;
  }

  .mandate-stage {
    display: block;
    padding-top: 6.5rem;
  }

  .mandate-heading > p:last-child {
    font-size: 2.2rem;
  }

  .manifesto {
    position: absolute;
    right: var(--page-pad);
    bottom: 4rem;
    left: var(--page-pad);
  }

  .manifesto-line {
    padding: 1rem 0;
    grid-template-columns: 2.2rem 1fr;
    font-size: clamp(1.7rem, 8.5vw, 2.8rem);
  }

  .worlds-copy {
    top: 5.5rem;
  }

  .worlds-copy h2,
  .reassembly-copy h2,
  .macro-copy h2 {
    font-size: clamp(4rem, 18vw, 6rem);
  }

  .world-callouts {
    right: 0.75rem;
    bottom: 2.7rem;
    left: 0.75rem;
    grid-template-columns: repeat(2, 1fr);
  }

  .world-callouts li {
    min-height: 4.6rem;
    padding: 0.55rem 0.6rem;
  }

  .world-callouts strong {
    font-size: 0.85rem;
  }

  .world-callouts small {
    font-size: 0.4rem;
  }

  .reassembly-copy,
  .macro-copy {
    top: auto;
    right: var(--page-pad);
    bottom: 5rem;
    left: var(--page-pad);
    width: auto;
    text-align: left;
    transform: none;
  }

  .macro-copy > p:last-child {
    margin-left: 0;
  }

  .executive-interface,
  .ecosystem,
  .next-action {
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
  }

  .interface-heading h2,
  .ecosystem-heading h2,
  .next-action h2 {
    font-size: clamp(4rem, 18vw, 6.5rem);
  }

  .interface-heading,
  .ecosystem-heading {
    gap: 2rem;
  }

  .interface-heading > p,
  .ecosystem-heading > p,
  .next-action__lead {
    font-size: 1.08rem;
  }

  .command-console {
    margin-right: calc(var(--page-pad) * -1);
    margin-left: calc(var(--page-pad) * -1);
  }

  .intent-panel,
  .route-panel {
    padding: 1.5rem var(--page-pad);
  }

  .intent-list button {
    min-height: 4.1rem;
  }

  .command-form__row {
    grid-template-columns: 1fr;
  }

  .command-form button {
    min-height: 3.5rem;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .route-panel {
    min-height: 42rem;
  }

  .route-panel__identity {
    margin-top: 3rem;
  }

  .route-panel h3 {
    max-width: 100%;
    font-size: clamp(2.25rem, 10vw, 3.4rem);
  }

  .route-panel__capabilities {
    grid-template-columns: 1fr;
  }

  .route-panel__capabilities li,
  .route-panel__capabilities li:not(:first-child) {
    min-height: 0;
    padding: 0.7rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ecosystem-ledger article {
    grid-template-columns: 2rem 3.6rem minmax(0, 1fr);
    gap: 0.8rem;
  }

  .ecosystem-ledger article > p {
    padding: 0.7rem 0 0 6.4rem;
    grid-column: 1 / -1;
  }

  .ecosystem-ledger h3 {
    font-size: 1.65rem;
    overflow-wrap: anywhere;
  }

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

  .pathways a,
  .pathways a:nth-child(2) {
    min-height: 8rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .pathways .pathways__pocket {
    border-top: 0;
  }

  .release-toast {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    width: auto;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.7rem;
  }

  .release-toast__badge {
    align-self: start;
  }

  .release-toast__copy {
    grid-column: 2;
  }

  .release-toast__link {
    grid-column: 2;
    justify-self: start;
  }

  .release-toast__dismiss {
    grid-row: 1;
    grid-column: 3;
  }

  .site-footer {
    min-height: 12rem;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .manifesto-line,
  .world-callouts li {
    opacity: 1;
    transform: none;
  }

  .site-brand img {
    animation: none;
    transform: none;
  }
}

@media (forced-colors: active) {
  .hero-copy h1 > span,
  .hero-copy h1 > em,
  .site-brand > span,
  .site-brand span span {
    color: CanvasText;
    background-image: none;
    text-shadow: none;
    filter: none;
    animation: none;
    -webkit-text-fill-color: currentColor;
  }

  .site-brand img {
    filter: none;
  }

  .release-toast {
    border-color: CanvasText;
    background: Canvas;
    box-shadow: none;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .stage {
    min-height: 100svh;
  }

  .chapter--scrub,
  .chapter--hero,
  .chapter--worlds,
  .chapter--reassembly,
  .chapter--macro {
    height: 190svh;
  }

  .hero-copy {
    bottom: 2.5rem;
    width: min(36rem, 66vw);
  }

  .hero-copy .eyebrow,
  .hero-copy__lead,
  .wisdom-ribbon,
  .scroll-cue {
    display: none;
  }

  .hero-copy h1 {
    margin: 0;
    font-size: clamp(4rem, 18vh, 6.3rem);
    line-height: 0.72;
  }

  .hero-copy__actions {
    margin-top: 1rem;
  }

  .chapter--mandate {
    height: 190svh;
  }

  .mandate-stage {
    display: block;
    padding: 0;
  }

  .mandate-heading {
    position: absolute;
    top: 3.8rem;
    left: var(--page-pad);
  }

  .mandate-heading > p:last-child {
    display: none;
  }

  .manifesto {
    position: absolute;
    top: 5.5rem;
    right: var(--page-pad);
    bottom: 1.5rem;
    left: var(--page-pad);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .manifesto-line {
    min-height: 0;
    padding: 0.35rem 0.5rem;
    border-right: 1px solid var(--line);
    grid-template-columns: 1.4rem 1fr;
    align-items: center;
    font-size: clamp(1rem, 4.3vh, 1.55rem);
    line-height: 0.92;
  }

  .manifesto-line--final {
    grid-column: 1 / -1;
  }

  .button {
    min-height: 2.55rem;
  }

  .worlds-copy {
    top: 4rem;
  }

  .worlds-copy h2,
  .reassembly-copy h2,
  .macro-copy h2 {
    font-size: clamp(3rem, 16vh, 5rem);
  }

  .world-callouts {
    bottom: 1.5rem;
    grid-template-columns: repeat(4, 1fr);
  }

  .world-callouts li {
    min-height: 3.6rem;
    padding: 0.42rem 0.55rem;
  }

  .world-callouts strong {
    font-size: 0.78rem;
  }

  .world-callouts small {
    display: none;
  }

  .reassembly-copy,
  .macro-copy {
    bottom: 2.3rem;
  }
}
