@layer layout {
  .frame-section {
    padding-block: clamp(3rem, 7vw, 5.5rem);
    border-top: 1px solid var(--grid-line);
  }

  .frame-section--tight {
    padding-block: clamp(2.25rem, 5vw, 3.5rem);
  }

  .frame-section--wide {
    padding-block: clamp(3.75rem, 9vw, 6.5rem);
  }

  .frame-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: clamp(2rem, 5vw, 3.25rem);
  }

  .frame-head .frame-kicker {
    color: var(--wine);
    font-size: var(--step--1);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
  }

  .frame-head h2 {
    margin-top: 0.6rem;
    max-width: 24ch;
  }

  .frame-head .frame-note {
    max-width: 34ch;
    font-size: var(--step-0);
    color: hsl(var(--ink-h) var(--ink-s) var(--ink-l) / 0.72);
  }

  .stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid var(--grid-line);
  }

  .stat-grid .stat-cell {
    padding: clamp(1.5rem, 4vw, 2.25rem);
    border-right: 1px solid var(--grid-line);
    border-bottom: 1px solid var(--grid-line);
  }

  .stat-grid .stat-cell:nth-child(2n) {
    border-right: 0;
  }

  .stat-grid .stat-cell:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .stat-grid .stat-number {
    font-family: var(--font-serif);
    font-size: var(--step-4);
    font-weight: 600;
    color: var(--wine);
    line-height: 1;
  }

  .stat-grid .stat-label {
    display: block;
    margin-top: 0.6rem;
    font-size: var(--step--1);
    color: hsl(var(--ink-h) var(--ink-s) var(--ink-l) / 0.7);
  }

  @media (min-width: 40rem) {
    .stat-grid {
      grid-template-columns: repeat(4, 1fr);
    }
    .stat-grid .stat-cell:nth-child(2n) {
      border-right: 1px solid var(--grid-line);
    }
    .stat-grid .stat-cell:nth-child(4n) {
      border-right: 0;
    }
    .stat-grid .stat-cell:nth-last-child(-n+2) {
      border-bottom: 1px solid var(--grid-line);
    }
    .stat-grid .stat-cell:nth-last-child(-n+4) {
      border-bottom: 0;
    }
  }

  .service-layout {
    display: grid;
    gap: clamp(2rem, 5vw, 3.5rem);
  }

  @media (min-width: 61.25rem) {
    .service-layout {
      grid-template-columns: minmax(0, 1fr) 18rem;
      align-items: start;
    }
  }

  .sticky-sidebar {
    position: sticky;
    top: calc(4.5rem + 1.5rem);
    padding: 1.5rem;
    border: 1px solid var(--ink);
    box-shadow: var(--shadow-brut-quartz);
  }

  .sticky-sidebar h3 {
    font-size: var(--step-1);
  }

  .sticky-sidebar .sidebar-list {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
  }

  .sticky-sidebar .sidebar-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--grid-line);
    font-size: var(--step--1);
  }

  .sticky-sidebar .sidebar-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .sticky-sidebar .sidebar-price {
    font-weight: 600;
    color: var(--wine);
  }

  .site-footer {
    border-top: 1px solid var(--grid-line);
    background: var(--paper);
  }

  .site-footer .footer-grid {
    display: grid;
    gap: 2.5rem;
    padding-block: clamp(3rem, 6vw, 4.5rem);
  }

  @media (min-width: 48rem) {
    .site-footer .footer-grid {
      grid-template-columns: 1.3fr 1fr 1fr;
    }
  }

  .site-footer .footer-brand p {
    margin-top: 1rem;
    max-width: 32ch;
    font-size: var(--step--1);
    color: hsl(var(--ink-h) var(--ink-s) var(--ink-l) / 0.72);
  }

  .site-footer .footer-heading {
    font-size: var(--step--1);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wine);
  }

  .site-footer .footer-list {
    margin-top: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-size: var(--step--1);
  }

  .site-footer .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.5rem;
    border-top: 1px solid var(--grid-line);
    font-size: var(--step--1);
    color: hsl(var(--ink-h) var(--ink-s) var(--ink-l) / 0.6);
  }
}
