#service-sheet {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  color: var(--foreground-light);
  background: var(--surface-glass);
  border: 0;
  border-radius: 0;
  box-shadow: var(--border-shadow);
  overflow: hidden;
  opacity: 0;
  transform: translateY(100%);
  transition:
    opacity .42s ease,
    transform .42s cubic-bezier(.2, .8, .2, 1),
    display .42s allow-discrete,
    overlay .42s allow-discrete;

  &[open] {
    opacity: 1;
    transform: translateY(0);
  }

  &::backdrop {
    background: rgba(var(--c-dark), .7);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
  }

  .service-sheet-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;

    .sheet-header {
      display: flex;
      align-items: center;
      min-height: 4rem;
      padding: .5rem 4rem;
      border-bottom: .1rem solid var(--border-light);

      form {
        margin: 0;
      }

      .sheet-back {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .5rem;
        padding: 0;
        font-size: 2rem;
        font-weight: bold;
        color: var(--foreground-accent);
        background: transparent;
        border: 0;
        cursor: pointer;

        span:last-child {
          font-size: 1rem;
          font-weight: 700;
          text-transform: uppercase;
        }
      }
    }

    .sheet-content {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      overscroll-behavior: contain;
      padding: 3rem 1.5rem;

      .sheet-detail {
        width: min(100%, 900px);
        margin: 0 auto;

        .sheet-detail-eyebrow {
          margin: 0 0 12px;
          color: var(--foreground-accent);
          font-size: .72rem;
          font-weight: 700;
          letter-spacing: .16em;
          text-transform: uppercase;
        }

        .sheet-title {
          margin: 0;
          font-family: var(--font-display);
          font-size: clamp(2.1rem, 8vw, 4.5rem);
          line-height: 1.05;
          letter-spacing: -.065em;
        }

        .sheet-detail-lead {
          margin: 1rem 0 0;
          color: var(--foreground-muted);
          font-size: 1rem;
          font-style: italic;
          line-height: 1.7;
        }

        .sheet-detail-rule {
          width: min(50vw, 450px);
          height: 1px;
          margin: 1.5rem 0;
          background: linear-gradient(90deg, var(--surface-accent), transparent);
        }

        .sheet-detail-body {
          max-width: 75ch;
          color: var(--foreground-light);
          font-size: .98rem;
          line-height: 1.8;
          margin: 0 auto;

          p {
            margin: 0 0 1rem;
          }
        }

        .sheet-detail-video {
          position: relative;
          width: min(100%, 800px);
          aspect-ratio: 16 / 9;
          margin: 2rem auto;
          overflow: hidden;
          background: var(--surface-dark);
          border: .1rem solid var(--border-light);
          border-radius: var(--radius);
          box-shadow: var(--border-shadow);

          iframe {
            position: absolute;
            inset: 0;
            display: block;
            width: 100%;
            height: 100%;
            border: 0;
          }
        }

        .sheet-detail-modes {
          margin-block: 2rem;
          padding: 1.25rem;
          background: var(--surface-accent-soft);
          border: .1rem solid var(--border-accent);
          border-radius: var(--radius);
          box-shadow: var(--border-shadow);

          >h3 {
            margin: .5rem;
          }

          >p {
            margin: 1rem;
            color: var(--foreground-muted);
          }

          .sheet-detail-mode {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: .75rem;
            min-width: 0;
            padding: 1.25rem;
            background: var(--border-dark-deep);
            border: .1rem solid var(--border-light);
            border-radius: var(--radius);

            .sheet-detail-header {
              display: flex;
              flex-direction: row;
              align-items: center;
              justify-content: center;
              gap: .5rem;
              width: 100%;
              padding: 1rem 0 0;
              text-align: center;

              >i {
                font-size: 1.5rem;
                color: var(--foreground-accent);
              }

              h4 {
                margin: 0;
                font-size: 1.2rem;
                text-transform: uppercase;
              }
            }

            p {
              margin: 0;
              color: var(--foreground-muted);
              line-height: 1.6;
              text-align: center;

              em {
                font-size: .65rem;
                text-transform: uppercase;
              }
            }

            .mode-note {
              margin: 0 auto;
              padding-top: 1rem;
              font-size: .75rem;
              color: var(--foreground-accent);
            }
          }
        }

        .sheet-detail-columns {
          display: grid;
          gap: 1.8rem;
          margin: 2rem 0;

          h3 {
            margin: 0 0 .75rem;
            font-family: var(--font-display);
            font-size: 1rem;
            text-transform: uppercase;
          }

          ul {
            display: grid;
            gap: .9rem;
            margin: 0;
            padding: 0;
            list-style: none;

            li {
              position: relative;
              padding-left: 1.5rem;
              color: var(--foreground-muted);
              font-size: .9rem;
              font-style: italic;
              line-height: 1.55;

              &::before {
                position: absolute;
                left: 0;
                font-size: 1rem;
                color: var(--foreground-accent);
                content: '✧';
              }
            }
          }
        }

        .sheet-detail-footer {
          display: flex;
          flex-direction: column;
          align-items: flex-start;
          gap: 1rem;
          margin-top: 2.1rem;
          padding-top: 1.8rem;
          border-top: .1rem solid var(--border-light);

          .sheet-detail-footer-info {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;

            .sheet-detail-price-label {
              display: block;
              margin-bottom: .25rem;
              color: var(--foreground-dim);
              font-size: .8rem;
              text-transform: uppercase;
              font-weight: bold;
            }

            .sheet-detail-price {
              color: var(--foreground-accent);
              font-family: var(--font-display);
              font-size: 1.8rem;
              font-weight: 800;
            }

            .sheet-detail-note {
              margin: .5rem 0 1rem;
              color: var(--foreground-muted);
              font-size: .9rem;
            }
          }

          .btn {
            width: 100%;
            margin: 0 auto;
          }
        }
      }
    }
  }
}

@starting-style {
  #service-sheet[open] {
    opacity: 0;
    transform: translateY(100%);
  }
}

@media (min-width: 600px) {
  #service-sheet {
    .service-sheet-container {
      .sheet-content {
        .sheet-detail {
          .sheet-detail-columns {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 3rem;
          }

          .sheet-detail-footer {
            flex-direction: row;
            align-items: center;
            justify-content: space-between;

            .sheet-detail-footer-info {
              display: flex;
              flex-direction: column;
              align-items: flex-start;
            }

            .btn {
              margin: 0;
            }
          }
        }
      }
    }
  }
}

@media (pointer: coarse) {
  #service-sheet {
    .sheet-header {
      padding: .5rem 2rem;
    }

    .sheet-content {
      text-align: center;

      .sheet-detail-columns {
        text-align: left;
      }

      .sheet-detail-footer {
        align-items: center;
      }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  #service-sheet {
    transition: none;
  }
}