/* SMS intake service page. */
.reference-desk-intake {
  & .service-hero {
    --desk-hero-padding: clamp(17px, 2.5vw, 34px);
    padding-block: var(--desk-hero-padding);
    background: var(--service-dark) url("/work/custom-website/graphite-contours.webp") center / cover no-repeat;
  }

  & .service-hero h1 {
    max-width: 17ch;
    font-size: clamp(34px, 3.95vw, 53px);
  }

  & .service-hero h1 strong,
  & .service-closing h2 strong {
    display: block;
    color: var(--service-orange);
    font-weight: inherit;
  }

  & .desk-example {
    --desk-screen-inset: clamp(23px, 3.9vw, 42px);
    position: relative;
    isolation: isolate;
    container-type: inline-size;
    display: grid;
    align-content: start;
    align-self: stretch;
    width: min(100%, 442px);
    margin: 0 auto calc(0px - var(--desk-hero-padding));
    padding-block: clamp(42px, 4.8vw, 61px) 26px;
    background: transparent;
    color: var(--ink);
  }

  & .desk-example::before,
  & .desk-example::after {
    position: absolute;
    inset-inline: 0;
    content: "";
  }

  & .desk-example::before {
    z-index: -1;
    inset-block-start: 0;
    aspect-ratio: 920 / 518;
    background: url("/work/desk-intake/graphite-handset.webp") center top / 100% 100% no-repeat;
  }

  & .desk-example::after {
    z-index: -2;
    /* Repeat the last strip below the unscaled bezel so longer lines stay inside the handset. */
    inset-block: calc(100cqw * 518 / 920 - 2px) 0;
    background: url("/work/desk-intake/graphite-handset-rails.webp") center top / 100% auto repeat-y;
  }

  & :is(.desk-example-header, .desk-thread) {
    margin-inline: var(--desk-screen-inset);
  }

  & .desk-example-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line-strong);
    font-size: 16px;
    line-height: 1.25;
  }

  & .desk-contact-avatar,
  & .desk-event-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--selected);
    font-size: 17px;
  }

  & .desk-event-icon {
    width: 29px;
    height: 29px;
    border-radius: 7px;
    background: rgb(255 88 0 / 12%);
    color: var(--service-orange);
  }

  & .desk-example-label {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: auto;
    white-space: nowrap;
  }

  & .desk-example-label .reference-icon {
    color: var(--service-orange);
    font-size: 15px;
  }

  & .desk-example-header small,
  & .desk-example-label,
  & .desk-thread-meta,
  & .desk-thread-event time {
    color: var(--secondary);
    font-size: 11px;
  }

  & .desk-example-header small {
    display: block;
  }

  & .desk-thread {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding: 0;
    list-style: none;
    font-size: clamp(13px, 1.32vw, 16px);
    line-height: 1.35;
  }

  & .desk-thread-event {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 8px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: var(--hover);
  }

  & .desk-thread-event time {
    align-self: start;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }

  & .desk-thread-outbound {
    justify-self: end;
  }

  & :is(.desk-thread-outbound, .desk-thread-inbound) {
    width: min(90%, 34ch);
  }

  & .desk-thread-outbound .desk-thread-meta {
    text-align: end;
  }

  & .desk-bubble {
    margin-top: 3px;
    padding: 9px 11px;
    border-radius: 13px 13px 13px 4px;
    background: var(--hover);
  }

  & .desk-thread-outbound .desk-bubble {
    border-radius: 13px 13px 4px 13px;
    background: var(--service-accent);
  }

  & .desk-comparison {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(9px, 1.4vw, 17px);
    margin-top: 11px;
  }

  & .desk-comparison-card {
    padding: clamp(11px, 1.5vw, 19px);
    border: 1px solid var(--service-rule);
    border-radius: 13px;
    background: var(--service-tile);
  }

  & .desk-comparison-connected {
    border-color: var(--service-orange);
    background: var(--service-paper);
    box-shadow: 0 3px 15px rgb(255 88 0 / 17%);
  }

  & .desk-comparison h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: clamp(16px, 2vw, 23px);
    font-weight: 830;
    letter-spacing: -0.028em;
    line-height: 1.12;
  }

  & .desk-comparison h3 .reference-icon {
    color: var(--service-accent);
    font-size: 1.4em;
  }

  & .desk-comparison ol {
    display: grid;
    gap: 2px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    font-size: clamp(13px, 1.38vw, 16px);
    line-height: 1.32;
  }

  & .desk-comparison li {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(6px, 1.15vw, 13px);
    min-height: 35px;
    padding: 4px 7px;
    border-radius: 8px;
  }

  & .desk-comparison li .reference-icon {
    color: var(--border);
    font-size: 19px;
  }

  & .desk-comparison :is(.desk-comparison-connected li, li:last-child) .reference-icon {
    color: var(--service-accent);
  }

  & .desk-comparison li:last-child {
    background: #fdf0e6;
  }

  & .desk-comparison time {
    padding: 2px 7px;
    border-radius: 7px;
    background: var(--selected);
    font-weight: 780;
    white-space: nowrap;
  }

  & .desk-comparison li:last-child time {
    background: rgb(255 88 0 / 19%);
  }

  & .service-step-icon .reference-icon {
    color: var(--service-accent);
  }

  & .desk-workspace {
    margin-top: clamp(14px, 1.7vw, 22px);
  }

  & .desk-workspace figure {
    display: grid;
    grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--service-rule);
    border-radius: 12px;
    background: var(--service-tile);
  }

  & .desk-workspace figcaption {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    align-content: center;
    gap: 10px;
    padding: clamp(15px, 2.2vw, 27px);
  }

  & .desk-workspace figcaption .reference-icon {
    color: var(--service-accent);
    font-size: 26px;
  }

  & .desk-workspace strong {
    display: block;
    font-size: clamp(17px, 2vw, 23px);
    line-height: 1.1;
  }

  & .desk-workspace :is(p, small) {
    display: block;
    margin-top: 7px;
    font-size: clamp(13px, 1.3vw, 15px);
    line-height: 1.35;
  }

  & .desk-workspace small {
    color: var(--muted);
    font-size: 12px;
  }

  & .desk-workspace img {
    display: block;
    width: 100%;
    height: auto;
  }

  & .service-closing::before {
    background: url("/work/google-ads/twilight-ridges.webp") center 17% / cover no-repeat;
    filter: none;
    opacity: 0.67;
  }

  & .service-closing p {
    max-width: min(100%, 68ch);
  }
}

@media (width >= 761px) {
  .reference-desk-intake {
    & .service-hero { --desk-hero-padding: clamp(17px, 2vw, 28px); }
    & .desk-example { margin-top: calc(var(--desk-hero-padding) / -2); }
    & .service-band { padding-top: clamp(12px, 1.4vw, 20px); }
    & .service-steps li { padding: clamp(10px, 1.15vw, 16px); }
    & .service-faq { padding-bottom: clamp(17px, 2vw, 25px); }
    & .service-closing { padding-block: clamp(11px, 1.3vw, 18px); }
  }
}

@media (width >= 1024px) {
  .reference-desk-intake {
    & .service-hero-layout { width: min(100% - 112px, 1152px); }
    & .service-audit { background: var(--service-orange); font-size: 19px; }
  }
}

@media (width <= 700px) {
  .reference-desk-intake {
    & .service-hero-layout,
    & .desk-comparison,
    & .desk-workspace figure {
      grid-template-columns: minmax(0, 1fr);
    }

    & .service-hero h1 { font-size: clamp(34px, 8vw, 47px); }
  }
}
