/* Shared production system for every Rotten Farms route outside the homepage. */

:root {
  --rf-paper: #f6f5f1;
  --rf-white: #ffffff;
  --rf-ink: #151515;
  --rf-muted: #5d5d58;
  --rf-line: #c9c8c1;
  --rf-red: #bd290d;
  --rf-red-dark: #8f1e08;
  --rf-lime: #d8ef52;
  --rf-blue: #4169e1;
  --rf-width: 1360px;
  --rf-reading: 800px;
}

body.subpage {
  width: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  background: var(--rf-paper);
  color: var(--rf-ink);
}

.subpage * {
  letter-spacing: 0;
}

.subpage a:focus-visible,
.subpage button:focus-visible,
.subpage summary:focus-visible,
.subpage input:focus-visible,
.subpage select:focus-visible,
.subpage textarea:focus-visible {
  outline: 3px solid var(--rf-blue);
  outline-offset: 3px;
}

.subpage .brutal,
.subpage .brutal:hover,
.subpage .brutal:active {
  box-shadow: none;
  transform: none;
}

.subpage main > section,
.subpage main > article {
  border-bottom: 1px solid var(--rf-ink);
}

/* Header */

.subpage .site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border: 0;
  border-bottom: 1px solid var(--rf-ink);
  background: rgba(246, 245, 241, 0.96);
  backdrop-filter: blur(16px);
}

.subpage .nav-wrap {
  width: min(calc(100% - 48px), var(--rf-width));
  min-height: 74px;
  margin: 0 auto;
  padding: 10px 0;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
}

.subpage .brand {
  min-height: 42px;
  gap: 10px;
  border: 0;
  padding: 0;
  background: transparent;
}

.subpage .brand-mark {
  width: 38px;
  height: 38px;
  border: 0;
  background: var(--rf-red);
  color: var(--rf-white);
  font-size: 0.875rem;
  font-weight: 850;
}

.subpage .brand-copy {
  gap: 2px;
  text-transform: none;
}

.subpage .brand-copy strong {
  font-size: 0.875rem;
  font-weight: 800;
}

.subpage .brand-copy small {
  color: var(--rf-muted);
  font-size: 0.6875rem;
  font-weight: 650;
  text-transform: uppercase;
}

.subpage .primary-menu {
  gap: 2px;
}

.subpage .primary-menu a,
.subpage .social-links a {
  position: relative;
  border: 0;
  padding: 10px 12px;
  color: var(--rf-ink);
  font-size: 0.8125rem;
  font-weight: 720;
  text-transform: none;
}

.subpage .primary-menu a::after {
  position: absolute;
  right: 12px;
  bottom: 5px;
  left: 12px;
  height: 2px;
  background: var(--rf-red);
  content: "";
  opacity: 0;
  transform: scaleX(0.2);
  transition: opacity 160ms ease, transform 160ms ease;
}

.subpage .primary-menu a:hover,
.subpage .primary-menu a:focus-visible,
.subpage .primary-menu a[aria-current="page"] {
  border: 0;
  background: transparent;
  color: var(--rf-red);
}

.subpage .primary-menu a:hover::after,
.subpage .primary-menu a:focus-visible::after,
.subpage .primary-menu a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.subpage .nav-cta,
.subpage .button,
.subpage .view-all {
  min-height: 44px;
  border: 1px solid var(--rf-ink);
  border-radius: 0;
  padding: 11px 18px;
  background: var(--rf-red);
  color: var(--rf-white);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: none;
  white-space: normal;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.subpage .nav-cta {
  min-height: 42px;
  border-color: var(--rf-red);
  padding: 10px 16px;
}

.subpage .nav-cta:hover,
.subpage .nav-cta:focus-visible,
.subpage .button:hover,
.subpage .button:focus-visible {
  background: var(--rf-ink);
  color: var(--rf-white);
  transform: translateY(-2px);
}

.subpage .button-secondary {
  background: transparent;
  color: var(--rf-ink);
}

.subpage .content-band.dark .button-secondary,
.subpage .content-band.red .button-secondary {
  border-color: currentColor;
  color: currentColor;
}

.subpage .menu-button {
  width: 44px;
  height: 42px;
  border: 1px solid var(--rf-ink);
  background: var(--rf-paper);
}

.subpage .menu-button span:not(.sr-only) {
  width: 19px;
  height: 2px;
  background: var(--rf-ink);
  transition: transform 160ms ease, opacity 160ms ease;
}

.subpage .menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.subpage .menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.subpage .menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Page introduction */

.subpage .page-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  padding: 0;
  background: var(--rf-paper);
}

.subpage .page-hero::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 13%;
  height: 100%;
  border-left: 1px solid var(--rf-ink);
  background: var(--rf-red);
  content: "";
}

.subpage .page-hero::after {
  position: absolute;
  right: 4.5%;
  bottom: 42px;
  width: 68px;
  height: 68px;
  border: 1px solid var(--rf-ink);
  background: var(--rf-lime);
  content: "";
  transform: rotate(45deg);
}

.subpage .page-hero-inner,
.subpage .content-inner,
.subpage .article-shell,
.subpage .page-cta-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), var(--rf-width));
  margin: 0 auto;
  padding-right: 0;
  padding-left: 0;
}

.subpage .page-hero-inner {
  display: grid;
  min-height: 520px;
  align-content: space-between;
  padding-top: 30px;
  padding-bottom: 58px;
}

.subpage .breadcrumbs {
  gap: 9px;
  margin: 0;
  color: var(--rf-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: none;
}

.subpage .breadcrumbs a {
  border: 0;
  color: var(--rf-ink);
}

.subpage .breadcrumbs a:hover,
.subpage .breadcrumbs a:focus-visible {
  border: 0;
  color: var(--rf-red);
}

.subpage .page-hero-grid {
  width: 87%;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 64px;
  align-items: end;
}

.subpage .page-kicker,
.subpage .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--rf-red);
  box-shadow: none;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
}

.subpage .page-kicker::before,
.subpage .status-badge::before {
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
}

.subpage .page-hero h1 {
  max-width: 980px;
  margin: 18px 0 0;
  font-size: 5.5rem;
  font-weight: 780;
  line-height: 0.96;
  text-transform: none;
}

.subpage .page-hero h1 .red-word {
  color: var(--rf-red);
}

.subpage .page-hero-aside {
  border-top: 1px solid var(--rf-ink);
  padding-top: 19px;
}

.subpage .page-hero-aside p {
  margin: 0 0 26px;
  color: var(--rf-ink);
  font-size: 1.125rem;
  font-weight: 520;
  line-height: 1.55;
}

.subpage .page-hero-actions {
  gap: 10px;
}

/* Content bands */

.subpage .content-band {
  padding: 104px 0;
  background: var(--rf-white);
}

.subpage .content-band.dark {
  background: var(--rf-ink);
  color: var(--rf-white);
}

.subpage .content-band.red {
  background: var(--rf-red);
  color: var(--rf-white);
}

.subpage .section-intro {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.65fr);
  justify-content: space-between;
  gap: 80px;
  margin-bottom: 64px;
}

.subpage .section-intro h2,
.subpage .page-cta h2 {
  max-width: 820px;
  font-size: 4rem;
  font-weight: 760;
  line-height: 1;
  text-transform: none;
}

.subpage .section-intro p {
  border-top: 1px solid currentColor;
  padding-top: 18px;
  color: inherit;
  font-size: 1.125rem;
  font-weight: 470;
  line-height: 1.6;
  opacity: 0.78;
}

.subpage .catalog-grid {
  gap: 1px;
  border: 1px solid var(--rf-line);
  background: var(--rf-line);
}

.subpage .content-band.dark .catalog-grid {
  border-color: #3b3b38;
  background: #3b3b38;
}

.subpage .catalog-item {
  min-height: 340px;
  gap: 34px;
  border: 0;
  padding: 34px;
  background: var(--rf-paper);
  color: var(--rf-ink);
}

.subpage .catalog-item:nth-child(3n + 2) {
  background: var(--rf-white);
}

.subpage .catalog-item:hover,
.subpage .catalog-item:focus-visible {
  background: var(--rf-lime);
}

.subpage .catalog-item-number {
  color: var(--rf-red);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
}

.subpage .catalog-item h2,
.subpage .catalog-item h3 {
  font-size: 2.5rem;
  font-weight: 740;
  line-height: 1.04;
  text-transform: none;
}

.subpage .catalog-item p {
  color: var(--rf-muted);
  font-size: 1rem;
  font-weight: 480;
  line-height: 1.6;
}

.subpage .catalog-item-footer {
  border-top: 1px solid var(--rf-ink);
  padding-top: 16px;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: none;
}

.subpage .catalog-arrow {
  font-size: 1.375rem;
}

.subpage .feature-rows {
  border-top: 1px solid currentColor;
}

.subpage .feature-row {
  grid-template-columns: 56px minmax(230px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  border-bottom: 1px solid currentColor;
  padding: 30px 0;
}

.subpage .feature-row > span {
  color: var(--rf-red);
  font-size: 0.6875rem;
  font-weight: 800;
}

.subpage .content-band.dark .feature-row > span,
.subpage .content-band.red .feature-row > span {
  color: var(--rf-lime);
}

.subpage .feature-row h3 {
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: none;
}

.subpage .feature-row p {
  color: inherit;
  font-size: 1rem;
  font-weight: 430;
  line-height: 1.65;
  opacity: 0.76;
}

.subpage .process-grid {
  gap: 1px;
  border: 1px solid var(--rf-line);
  background: var(--rf-line);
}

.subpage .process-step {
  min-height: 330px;
  border: 0;
  padding: 34px;
  background: var(--rf-paper);
}

.subpage .process-step::before {
  margin-bottom: 92px;
  color: var(--rf-red);
  font-size: 0.6875rem;
  font-weight: 800;
}

.subpage .process-step h3 {
  font-size: 1.625rem;
  font-weight: 720;
  text-transform: none;
}

.subpage .process-step p {
  color: var(--rf-muted);
  font-weight: 450;
  line-height: 1.62;
}

.subpage .faq-list {
  border-top: 1px solid var(--rf-ink);
}

.subpage .faq-list details {
  border-bottom: 1px solid var(--rf-ink);
}

.subpage .faq-list summary {
  min-height: 76px;
  padding: 22px 0;
  font-size: 1.25rem;
  font-weight: 680;
  line-height: 1.3;
  text-transform: none;
}

.subpage .faq-list summary::after {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  color: var(--rf-red);
  font-size: 1.375rem;
}

.subpage .faq-list details p {
  max-width: 820px;
  padding-bottom: 28px;
  color: var(--rf-muted);
  font-size: 1rem;
  font-weight: 450;
  line-height: 1.7;
}

.subpage .page-cta {
  padding: 92px 0;
  background: var(--rf-red);
}

.subpage .page-cta-inner {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
}

.subpage .page-cta h2 {
  color: var(--rf-white);
  text-shadow: none;
}

.subpage .page-cta .button {
  width: auto;
  border-color: var(--rf-white);
  background: var(--rf-white);
  color: var(--rf-ink);
}

.subpage .page-cta .button:hover,
.subpage .page-cta .button:focus-visible {
  border-color: var(--rf-ink);
  background: var(--rf-ink);
  color: var(--rf-white);
}

/* Founder */

.subpage .founder-grid {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 88px;
}

.subpage .founder-photo::after {
  right: -14px;
  bottom: -14px;
  border: 0;
  background: var(--rf-red);
}

.subpage .founder-photo img {
  position: relative;
  z-index: 1;
  border: 1px solid var(--rf-ink);
  filter: grayscale(1) contrast(1.03);
}

.subpage .founder-copy h2 {
  margin: 22px 0 28px;
  font-size: 4rem;
  font-weight: 760;
  line-height: 1;
  text-transform: none;
}

.subpage .founder-copy p {
  max-width: 690px;
  color: var(--rf-muted);
  font-size: 1.0625rem;
  font-weight: 450;
  line-height: 1.72;
}

/* Journal index */

.journal-index .page-hero::before {
  background: var(--rf-ink);
}

.journal-index .page-hero::after {
  background: var(--rf-red);
}

.journal-index .content-band.dark {
  background: var(--rf-ink);
}

.journal-index .catalog-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.journal-index .catalog-item {
  grid-column: span 6;
}

.journal-index .catalog-item:first-child {
  grid-column: span 5;
  background: var(--rf-lime);
}

.journal-index .catalog-item:nth-child(2) {
  grid-column: span 7;
  background: var(--rf-white);
}

.journal-index .catalog-item:nth-child(2) h2 {
  max-width: 630px;
  font-size: 3rem;
}

.journal-index .catalog-item:last-child {
  background: var(--rf-red);
  color: var(--rf-white);
}

.journal-index .catalog-item:last-child .catalog-item-number,
.journal-index .catalog-item:last-child p {
  color: var(--rf-white);
}

.journal-index .catalog-item:last-child .catalog-item-footer {
  border-color: var(--rf-white);
}

/* Long-form articles */

.subpage .article-header {
  position: relative;
  overflow: hidden;
  padding: 42px 0 88px;
  border-bottom: 1px solid var(--rf-ink);
  background: var(--rf-paper);
}

.subpage .article-header::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 100%;
  background: var(--rf-red);
  content: "";
}

.subpage .article-header .breadcrumbs {
  margin-bottom: 88px;
}

.subpage .article-header h1 {
  max-width: 1080px;
  margin: 22px 0 28px;
  font-size: 5rem;
  font-weight: 760;
  line-height: 1;
  text-transform: none;
}

.subpage .article-deck {
  max-width: 820px;
  color: var(--rf-muted);
  font-size: 1.375rem;
  font-weight: 450;
  line-height: 1.58;
}

.subpage .article-meta {
  max-width: 820px;
  gap: 10px 28px;
  margin-top: 34px;
  border-top: 1px solid var(--rf-ink);
  padding-top: 15px;
  color: var(--rf-muted);
  font-size: 0.6875rem;
  font-weight: 750;
  text-transform: uppercase;
}

.subpage .article-body {
  padding: 92px 0 112px;
  background: var(--rf-white);
}

.subpage .article-prose {
  max-width: var(--rf-reading);
}

.subpage .article-prose > *:first-child {
  margin-top: 0;
}

.subpage .article-prose h2 {
  margin: 72px 0 20px;
  color: var(--rf-ink);
  font-size: 2.5rem;
  font-weight: 720;
  line-height: 1.12;
  text-transform: none;
}

.subpage .article-prose h3 {
  margin: 46px 0 13px;
  color: var(--rf-ink);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

.subpage .article-prose p,
.subpage .article-prose li {
  color: #3f403d;
  font-size: 1.125rem;
  font-weight: 410;
  line-height: 1.8;
}

.subpage .article-prose p {
  margin: 0 0 24px;
}

.subpage .article-prose li + li {
  margin-top: 8px;
}

.subpage .article-prose strong {
  color: var(--rf-ink);
  font-weight: 720;
}

.subpage .article-prose a {
  border-bottom: 1px solid var(--rf-red);
  color: var(--rf-red-dark);
  font-weight: 650;
}

.subpage .article-note {
  position: relative;
  margin: 46px 0;
  border: 1px solid var(--rf-ink);
  border-left: 8px solid var(--rf-red);
  padding: 27px 30px;
  background: var(--rf-paper);
  box-shadow: none;
}

.subpage .article-note strong {
  margin-bottom: 10px;
  color: var(--rf-red);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
}

.subpage .article-note p {
  margin: 0;
  color: var(--rf-ink);
}

.subpage .related-links {
  gap: 1px;
  margin-top: 72px;
  border: 1px solid var(--rf-ink);
  background: var(--rf-ink);
}

.subpage .related-links a {
  min-height: 150px;
  border: 0;
  padding: 28px;
  background: var(--rf-paper);
  box-shadow: none;
  color: var(--rf-ink);
  font-size: 1.125rem;
  font-weight: 680;
  line-height: 1.4;
  text-transform: none;
}

.subpage .related-links a:hover,
.subpage .related-links a:focus-visible {
  background: var(--rf-lime);
  color: var(--rf-ink);
}

/* Cost article and calculator */

.subpage .cost-table-wrap {
  margin: 44px calc((min(100vw, 1080px) - min(100vw, 800px)) / -2);
  border: 1px solid var(--rf-ink);
  background: var(--rf-paper);
  box-shadow: none;
}

.subpage .cost-table th,
.subpage .cost-table td {
  border-right: 1px solid var(--rf-ink);
  border-bottom: 1px solid var(--rf-ink);
  padding: 18px;
}

.subpage .cost-table th {
  background: var(--rf-ink);
  color: var(--rf-white);
  font-size: 0.6875rem;
}

.subpage .cost-table td {
  color: var(--rf-muted);
  font-size: 0.9375rem;
  font-weight: 450;
}

.subpage .cost-estimator {
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  max-width: 1120px;
  margin: 84px auto;
  border: 1px solid var(--rf-ink);
  background: var(--rf-paper);
}

.subpage .cost-estimator-form {
  padding: 48px;
}

.subpage .cost-estimator-form h2 {
  margin: 22px 0 12px;
  font-size: 3.25rem;
  font-weight: 740;
  line-height: 1;
  text-transform: none;
}

.subpage .cost-estimator-form > p {
  color: var(--rf-muted);
  font-weight: 450;
}

.subpage .field > span {
  color: var(--rf-ink);
  font-size: 0.6875rem;
  font-weight: 760;
  text-transform: none;
}

.subpage .field input[type="text"],
.subpage .field textarea,
.subpage .field select {
  min-height: 50px;
  border: 1px solid var(--rf-ink);
  border-radius: 0;
  background: var(--rf-white);
  font-size: 0.9375rem;
  font-weight: 480;
}

.subpage .cost-estimator-result {
  border-left: 1px solid var(--rf-ink);
  padding: 44px;
  background: var(--rf-ink);
}

.subpage .cost-estimator-result > strong {
  font-size: 2.5rem;
}

.subpage .cost-estimator-result .button {
  border-color: var(--rf-red);
}

/* Scope brief tool */

.subpage .scope-hero {
  min-height: 500px;
}

.subpage .scope-trust {
  gap: 7px;
}

.subpage .scope-trust span {
  border: 1px solid var(--rf-ink);
  padding: 7px 9px;
  background: var(--rf-white);
  font-size: 0.625rem;
  font-weight: 760;
  text-transform: uppercase;
}

.subpage .scope-lab {
  padding: 96px 0 112px;
  background: var(--rf-white);
}

.subpage .scope-lab-inner {
  width: min(calc(100% - 48px), var(--rf-width));
  padding: 0;
}

.subpage .scope-lab-head {
  gap: 72px;
  margin-bottom: 44px;
}

.subpage .scope-lab-head h2 {
  margin: 18px 0 0;
  font-size: 4rem;
  font-weight: 750;
  line-height: 1;
  text-transform: none;
}

.subpage .scope-lab-head > p {
  border-top: 1px solid var(--rf-ink);
  color: var(--rf-muted);
  font-weight: 450;
}

.subpage .scope-workspace {
  gap: 24px;
}

.subpage .scope-form,
.subpage .scope-result {
  border: 1px solid var(--rf-ink);
  background: var(--rf-paper);
}

.subpage .scope-progress,
.subpage .scope-result-head,
.subpage .scope-scoreboard,
.subpage .scope-export {
  border-width: 1px;
}

.subpage .scope-progress-track {
  height: 10px;
  border: 1px solid var(--rf-ink);
}

.subpage .scope-tabs {
  border-top: 1px solid var(--rf-ink);
}

.subpage .scope-tab {
  border-right: 1px solid var(--rf-ink);
  background: var(--rf-white);
  color: var(--rf-muted);
  font-size: 0.625rem;
}

.subpage .scope-tab:hover,
.subpage .scope-tab:focus-visible,
.subpage .scope-tab.is-active {
  background: var(--rf-ink);
  color: var(--rf-white);
}

.subpage .scope-step legend {
  font-size: 2.25rem;
  font-weight: 730;
  line-height: 1.08;
  text-transform: none;
}

.subpage .scope-step-intro {
  color: var(--rf-muted);
  font-weight: 450;
}

.subpage .choice span {
  min-height: 48px;
  border: 1px solid var(--rf-ink);
  background: var(--rf-white);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: none;
}

.subpage .choice input:checked + span {
  background: var(--rf-red);
  color: var(--rf-white);
}

.subpage .scope-actions {
  border-top: 1px solid var(--rf-ink);
}

.subpage .scope-result {
  top: 94px;
}

.subpage .scope-result-head h2 {
  font-size: 1.5rem;
  text-transform: none;
}

.subpage .scope-scoreboard {
  background: var(--rf-ink);
}

.subpage .scope-scoreboard > div {
  border-right: 1px solid var(--rf-white);
}

.subpage .brief-preview section {
  border-bottom: 1px solid var(--rf-line);
}

.subpage .scope-export {
  background: var(--rf-white);
}

/* Footer */

.subpage .site-footer {
  border: 0;
  border-top: 1px solid var(--rf-ink);
  background: var(--rf-paper);
}

.subpage .footer-wrap {
  width: min(calc(100% - 48px), var(--rf-width));
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  padding: 46px 0;
}

.subpage .footer-brand {
  gap: 12px;
}

.subpage .footer-brand p,
.subpage .status-box p {
  color: var(--rf-muted);
  font-size: 0.6875rem;
  font-weight: 650;
}

.subpage .social-links {
  gap: 2px;
}

.subpage .social-links a:hover,
.subpage .social-links a:focus-visible {
  border: 0;
  background: transparent;
  color: var(--rf-red);
}

.subpage .status-box {
  gap: 5px;
  border: 0;
  border-left: 1px solid var(--rf-ink);
  padding: 4px 0 4px 20px;
  background: transparent;
}

.subpage .status-box span {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--rf-red);
}

@media (max-width: 1000px) {
  .subpage .page-hero::before {
    width: 9px;
  }

  .subpage .page-hero::after {
    display: none;
  }

  .subpage .page-hero-grid {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .subpage .page-hero h1 {
    font-size: 4.25rem;
  }

  .subpage .section-intro,
  .subpage .founder-grid,
  .subpage .scope-lab-head,
  .subpage .scope-workspace,
  .subpage .cost-estimator {
    grid-template-columns: 1fr;
  }

  .subpage .section-intro {
    gap: 34px;
  }

  .subpage .feature-row {
    grid-template-columns: 44px minmax(180px, 0.65fr) minmax(0, 1fr);
  }

  .subpage .cost-estimator-result {
    border-top: 1px solid var(--rf-ink);
    border-left: 0;
  }

  .subpage .scope-result {
    position: static;
  }
}

@media (max-width: 900px) {
  .subpage .nav-wrap {
    width: min(calc(100% - 32px), var(--rf-width));
    grid-template-columns: auto auto;
  }

  .subpage .brand-copy {
    display: grid;
  }

  .subpage .menu-button {
    display: inline-flex;
  }

  .subpage .nav-cta {
    display: none;
  }

  .subpage .primary-menu {
    position: fixed;
    top: 73px;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100svh - 73px);
    overflow-y: auto;
    flex-direction: column;
    gap: 0;
    border: 0;
    border-bottom: 1px solid var(--rf-ink);
    background: var(--rf-paper);
    box-shadow: none;
  }

  .subpage .primary-menu.is-open {
    display: flex;
  }

  .subpage .primary-menu a {
    min-height: 62px;
    border: 0;
    border-bottom: 1px solid var(--rf-line);
    padding: 20px 24px;
    background: var(--rf-paper);
    color: var(--rf-ink);
    font-size: 1rem;
  }

  .subpage .primary-menu a:last-child {
    border-bottom: 0;
  }

  .subpage .primary-menu a::after {
    display: none;
  }

  .subpage .primary-menu a:hover,
  .subpage .primary-menu a:focus-visible,
  .subpage .primary-menu a[aria-current="page"] {
    background: var(--rf-red);
    color: var(--rf-white);
  }

  .subpage .page-hero-inner,
  .subpage .content-inner,
  .subpage .article-shell,
  .subpage .page-cta-inner,
  .subpage .scope-lab-inner,
  .subpage .footer-wrap {
    width: min(calc(100% - 32px), var(--rf-width));
  }

  .subpage .page-hero-inner,
  .subpage .page-hero {
    min-height: 490px;
  }

  .subpage .content-band,
  .subpage .scope-lab {
    padding: 76px 0;
  }

  .subpage .section-intro h2,
  .subpage .page-cta h2,
  .subpage .founder-copy h2,
  .subpage .scope-lab-head h2 {
    font-size: 3.25rem;
  }

  .subpage .catalog-grid,
  .journal-index .catalog-grid {
    grid-template-columns: 1fr;
  }

  .journal-index .catalog-item,
  .journal-index .catalog-item:first-child,
  .journal-index .catalog-item:nth-child(2) {
    grid-column: 1;
  }

  .subpage .process-grid,
  .subpage .related-links {
    grid-template-columns: 1fr;
  }

  .subpage .article-header h1 {
    font-size: 4rem;
  }

  .subpage .article-header .breadcrumbs {
    margin-bottom: 66px;
  }

  .subpage .article-body {
    padding: 72px 0 88px;
  }

  .subpage .page-cta-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .subpage .page-cta .button {
    width: fit-content;
  }

  .subpage .footer-wrap {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .subpage .footer-brand,
  .subpage .footer-brand .brand,
  .subpage .status-box {
    justify-self: start;
  }

  .subpage .social-links {
    justify-content: flex-start;
  }

  .subpage .status-box {
    border-top: 1px solid var(--rf-line);
    border-left: 0;
    padding: 18px 0 0;
  }
}

@media (max-width: 640px) {
  .subpage .brand-copy small {
    display: none;
  }

  .subpage .page-hero-inner {
    padding-top: 24px;
    padding-bottom: 44px;
  }

  .subpage .page-hero h1 {
    overflow-wrap: normal;
    font-size: 3.25rem;
    line-height: 1;
  }

  .subpage .page-hero h1 .keep-together {
    white-space: normal;
  }

  .subpage .page-hero-aside p {
    font-size: 1rem;
  }

  .subpage .page-hero-actions,
  .subpage .scope-actions {
    width: 100%;
    flex-direction: column;
  }

  .subpage .page-hero-actions .button,
  .subpage .scope-actions .button {
    width: 100%;
  }

  .subpage .content-band,
  .subpage .scope-lab {
    padding: 60px 0;
  }

  .subpage .section-intro {
    margin-bottom: 42px;
  }

  .subpage .section-intro h2,
  .subpage .page-cta h2,
  .subpage .founder-copy h2,
  .subpage .scope-lab-head h2 {
    font-size: 2.5rem;
  }

  .subpage .catalog-item {
    min-height: 300px;
    padding: 26px;
  }

  .subpage .catalog-item h2,
  .subpage .catalog-item h3,
  .journal-index .catalog-item:nth-child(2) h2 {
    font-size: 2rem;
  }

  .subpage .feature-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .subpage .feature-row p {
    grid-column: 1;
  }

  .subpage .process-step {
    min-height: 280px;
    padding: 26px;
  }

  .subpage .faq-list summary {
    gap: 16px;
    font-size: 1.0625rem;
  }

  .subpage .page-cta {
    padding: 68px 0;
  }

  .subpage .page-cta .button {
    width: 100%;
  }

  .subpage .article-header {
    padding: 28px 0 64px;
  }

  .subpage .article-header .breadcrumbs {
    margin-bottom: 54px;
  }

  .subpage .article-header h1 {
    overflow-wrap: normal;
    font-size: 3rem;
  }

  .subpage .article-deck {
    font-size: 1.125rem;
  }

  .subpage .article-prose h2 {
    margin-top: 58px;
    font-size: 2rem;
  }

  .subpage .article-prose h3 {
    font-size: 1.3125rem;
  }

  .subpage .article-prose p,
  .subpage .article-prose li {
    font-size: 1.0625rem;
    line-height: 1.75;
  }

  .subpage .article-note {
    padding: 22px;
  }

  .subpage .cost-table-wrap {
    margin-right: 0;
    margin-left: 0;
  }

  .subpage .cost-estimator-form,
  .subpage .cost-estimator-result {
    padding: 28px 22px;
  }

  .subpage .cost-estimator-form h2 {
    font-size: 2.5rem;
  }

  .subpage .cost-fields,
  .subpage .field-grid,
  .subpage .choice-grid,
  .subpage .choice-grid-wide,
  .subpage .scope-export {
    grid-template-columns: 1fr;
  }

  .subpage .scope-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subpage .scope-step legend {
    font-size: 1.875rem;
  }
}

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