.services-page {
  margin: 0;
}

.services-page h1,
.services-page h2,
.services-page h3 {
  padding-bottom: 0;
  border: 0;
}

.services-hero {
  display: grid;
  min-height: calc(100svh - 88px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px 20px;
  align-items: end;
  padding: clamp(36px, 6vw, 72px);
  background-color: var(--night);
  background-image: url("/assets/images/paper-grain.svg");
  color: var(--sheet);
}

.services-hero-copy {
  grid-column: 1 / 7;
  align-self: center;
}

.services-hero h1 {
  margin: 0 0 28px;
  color: var(--sheet);
  font-family: var(--display);
  font-size: clamp(3.4rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: .88;
}

.services-hero h1 span {
  display: block;
}

.services-hero-copy > p {
  max-width: 41rem;
  margin: 0 0 26px;
  color: #d7e7de;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.services-signal {
  display: inline-block;
  padding: 13px 17px;
  background: var(--paper);
  color: var(--night);
  font-weight: 780;
  text-decoration: none;
  transition: background-color 140ms ease, transform var(--press-duration) var(--ease-direct);
}

.services-signal:hover {
  background: #ffffff;
  color: var(--night);
}

.intake-file {
  grid-column: 7 / 13;
  align-self: center;
  margin: 0;
  padding: 26px 30px 24px;
  background: var(--paper);
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
}

.intake-file header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding-right: 16px;
  font-size: .82rem;
}

.intake-file header span {
  color: var(--mark);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.intake-file dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-top: 1px solid rgba(13, 36, 30, .24);
  border-left: 1px solid rgba(13, 36, 30, .24);
}

.intake-file dl > div {
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid rgba(13, 36, 30, .24);
  border-bottom: 1px solid rgba(13, 36, 30, .24);
}

.intake-file dt {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: .75rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.intake-file dd {
  margin: 0;
  font-size: .86rem;
  line-height: 1.4;
}

.intake-file > p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: .78rem;
  line-height: 1.45;
}

.services-main {
  padding: 104px 0 8px;
}

.services-section {
  margin: 0 0 112px;
}

.services-section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  align-items: end;
  margin-bottom: 36px;
}

.services-section-head h2 {
  grid-column: 1 / 8;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.7rem, 6vw, 5.1rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .94;
}

.services-section-head > p {
  grid-column: 9 / 13;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.service-ledger {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-route {
  display: grid;
  grid-template-columns: 70px minmax(250px, 1.15fr) minmax(240px, 1fr) minmax(180px, .72fr);
  gap: 20px 28px;
  align-items: start;
  padding: 32px 28px;
  border-top: 1px solid rgba(13, 36, 30, .28);
}

.service-route:last-child {
  border-bottom: 1px solid rgba(13, 36, 30, .28);
}

.service-route:nth-child(even) {
  background: rgba(246, 250, 247, .45);
}

.service-route-open {
  background: var(--paper-deep);
}

.route-number {
  margin: 0;
  color: var(--mark);
  font-family: var(--display);
  font-size: 2.3rem;
  line-height: 1;
}

.route-case h3 {
  margin: 7px 0 12px;
  font-family: var(--display);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.04;
}

.route-case p,
.route-output p,
.route-status p {
  margin: 0;
}

.route-trigger,
.route-label {
  color: var(--ink-soft);
  font-size: .76rem;
  font-weight: 790;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.route-trigger {
  font-size: .82rem;
  letter-spacing: 0;
  text-transform: none;
}

.route-case > p:last-child,
.route-output > p:last-child {
  color: var(--ink-soft);
}

.route-output {
  padding-top: 4px;
}

.route-output .route-label {
  margin-bottom: 9px;
}

.route-status {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  background: rgba(112, 72, 63, .09);
}

.route-status p {
  color: var(--ink-soft);
  font-size: .86rem;
}

.route-status a {
  font-weight: 760;
}

.proof-file {
  padding: clamp(32px, 6vw, 64px);
  background: var(--night-soft);
  color: var(--sheet);
  clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 0 100%);
}

.proof-file .services-section-head h2,
.proof-file .services-section-head > p {
  color: var(--sheet);
}

.proof-file-table {
  border-top: 1px solid rgba(246, 250, 247, .28);
}

.proof-file-table article {
  display: grid;
  grid-template-columns: minmax(200px, .9fr) minmax(260px, 1.25fr) minmax(180px, .8fr);
  gap: 18px 28px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(246, 250, 247, .28);
}

.proof-file-table h3,
.proof-file-table p {
  margin: 0;
}

.proof-file-table h3 {
  font-family: var(--body);
  font-size: 1rem;
}

.proof-file-table a {
  color: #ffffff;
}

.proof-file-table p {
  color: #cfe1d7;
}

.proof-file-table .proof-file-status {
  color: #eed8c2;
  font-size: .86rem;
}

.services-boundary {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(280px, 1.2fr);
  gap: 32px 8vw;
  margin: 0 0 112px;
  padding: clamp(32px, 6vw, 64px);
  background: var(--mark);
  color: #ffffff;
}

.services-boundary h2 {
  margin: 0;
  color: #ffffff;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: .94;
}

.services-boundary p {
  margin: 0 0 18px;
  color: #f3e9e3;
  font-size: 1.06rem;
}

.services-boundary p:last-child {
  margin-bottom: 0;
}

.services-request {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) minmax(180px, .65fr);
  gap: 28px 7vw;
  align-items: end;
  padding: clamp(28px, 5vw, 54px);
  background: var(--sheet);
}

.services-request h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: .94;
}

.services-request p {
  max-width: 45rem;
  margin: 0;
  color: var(--ink-soft);
}

.services-request .services-signal {
  justify-self: end;
  background: var(--night);
  color: var(--sheet);
}

.services-request .services-signal:hover {
  background: var(--night-soft);
  color: #ffffff;
}

.services-request .services-updated {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid rgba(13, 36, 30, .2);
  font-size: .78rem;
}

@media (hover: hover) and (pointer: fine) {
  .service-route {
    transition: background-color 160ms ease;
  }

  .service-route:hover {
    background: rgba(246, 250, 247, .72);
  }

  .service-route-open:hover {
    background: #b8ccbf;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .services-signal:active {
    transform: scale(.985);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .service-route:nth-child(even) {
    background: var(--sheet);
  }
}

@media (prefers-contrast: more) {
  .route-status {
    background: #c7d8cc;
  }

  .intake-file dl,
  .intake-file dl > div {
    border-color: var(--night);
  }
}

@media (max-width: 920px) {
  .services-hero-copy {
    grid-column: 1 / 10;
  }

  .intake-file {
    grid-column: 4 / 13;
  }

  .service-route {
    grid-template-columns: 54px minmax(230px, 1fr) minmax(220px, 1fr);
  }

  .route-status {
    grid-column: 2 / -1;
    min-height: 0;
    flex-direction: row;
    align-items: baseline;
  }

  .proof-file-table article {
    grid-template-columns: .8fr 1.2fr;
  }

  .proof-file-table .proof-file-status {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .services-hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding: 42px 20px 48px;
  }

  .services-hero-copy,
  .intake-file {
    min-width: 0;
    grid-column: 1;
  }

  .services-hero h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .intake-file {
    margin: 0;
    padding: 24px 20px 22px;
  }

  .intake-file header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .intake-file dl {
    grid-template-columns: 1fr;
  }

  .services-main {
    padding-top: 72px;
  }

  .services-section,
  .services-boundary {
    margin-bottom: 78px;
  }

  .services-section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .services-section-head h2,
  .services-section-head > p {
    grid-column: 1;
  }

  .services-section-head h2 {
    font-size: clamp(2.5rem, 13vw, 3.7rem);
  }

  .service-route {
    grid-template-columns: 44px 1fr;
    gap: 16px;
    padding: 28px 18px;
  }

  .route-case,
  .route-output,
  .route-status {
    grid-column: 2;
  }

  .route-status {
    flex-direction: column;
    align-items: flex-start;
  }

  .proof-file {
    padding: 40px 20px;
  }

  .proof-file-table article {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .proof-file-table .proof-file-status {
    grid-column: 1;
  }

  .services-boundary,
  .services-request {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 20px;
  }

  .services-request .services-signal {
    justify-self: start;
  }
}

@media (max-width: 390px) {
  .services-hero h1 {
    font-size: 2.25rem;
  }

  .service-route {
    grid-template-columns: 36px 1fr;
    padding-right: 12px;
    padding-left: 10px;
  }

  .route-number {
    font-size: 1.75rem;
  }
}

@media print {
  .services-hero {
    min-height: auto;
  }

  .services-signal {
    border: 1px solid currentColor;
  }
}
