/* Searchable service URLs share the viewport-sized Liquid Glass interface. */
.hero-footnote a { color: #2b5970; text-decoration: underline; text-underline-offset: 3px; }
.hero-copy h1 { font-size: clamp(40px, 4.1vw, 59px); }
.main-nav > a[aria-current="page"] { color: #005ccb; }
#services { grid-template-rows: auto minmax(0, 1fr) 34px; }
.service-catalog-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 11px; color: #3a6076; }
.catalog-pager { display: flex; align-items: center; gap: 13px; white-space: nowrap; font-size: 10px; }
.catalog-pager button { width: 34px; height: 34px; padding: 0; border: 1px solid #b9d3e2; border-radius: 50%; background: #edf6fc; color: #275d7b; font-size: 17px; }
.catalog-pager button:disabled { color: #6b8290; background: #e1ebf2; cursor: default; opacity: .7; }
.dialog-more { display: block; color: #0067cf; font-size: 12px; margin: -9px 0 18px; }
.service-dialog .dialog-examples { margin-bottom: 20px; }
.has-software-art { container-type: size; }
.software-art { display: none; position: absolute; right: 18px; bottom: 64px; width: 208px; height: 146px; pointer-events: none; }
.software-art svg { width: 100%; height: 100%; fill: none; stroke: none; overflow: visible; }
.software-art svg > g, .software-art .software-bars, .software-shadow {
  transform-box: fill-box; transform-origin: center;
  transition: transform 580ms cubic-bezier(.22, 1, .36, 1), opacity 580ms ease;
}
/* Only reserve illustration space when the card can fit copy and controls. */
@container (min-width: 420px) and (min-height: 160px) {
  .software-art { display: block; }
  .has-software-art > h2, .has-software-art > p { max-width: calc(100% - 220px); }
}
@media (hover: hover) and (pointer: fine) {
  .has-software-art:hover .software-window { transform: translateY(-5px) rotate(-2deg); }
  .has-software-art:hover .software-back { transform: translate(5px, -8px) rotate(3deg); }
  .has-software-art:hover .software-code { transform: translate(-5px, -7px) rotate(-8deg); }
  .has-software-art:hover .software-check { transform: translate(5px, -3px) rotate(7deg); }
  .has-software-art:hover .software-bars { transform: scaleY(1.12); }
  .has-software-art:hover .software-shadow { transform: scaleX(.94); opacity: .065; }
}
@media (prefers-reduced-motion: reduce) {
  .software-art svg > g, .software-art .software-bars, .software-shadow { transition: none; transform: none !important; }
}
#service-detail { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 18px; }
.service-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px 35px; align-items: end; }
.detail-back { grid-column: 1 / -1; font-size: 11px; color: #426479; }
.service-intro h1 { font-size: clamp(35px, 3.5vw, 49px); line-height: 1.08; letter-spacing: -1.8px; margin: 0; }
.service-intro > p { font-size: 13px; line-height: 1.6; color: #496778; max-width: 350px; justify-self: end; }
.detail-tabs { width: min(620px, 100%); justify-self: center; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 30px; padding: 6px; }
.detail-tabs button { border: 0; background: transparent; color: #355b72; min-height: 44px; padding: 10px; border-radius: 24px; font-size: 12px; }
.detail-tabs button[aria-selected="true"] { color: #0062dc; font-weight: 600; background: #ffffffa6; box-shadow: 0 3px 9px #1b4d7710, inset 0 0 0 1px #ffffff; }
.detail-card { display: grid; align-items: center; padding: 32px 45px; min-height: 0; }
.detail-pane { max-width: 800px; width: 100%; justify-self: center; }
.detail-pane h2 { font-size: 32px; line-height: 1.15; letter-spacing: -1px; margin-bottom: 19px; }
.detail-pane > p, .detail-pane > ul, .detail-faq { color: #456374; font-size: 14px; line-height: 1.75; }
.detail-pane > p + p { margin-top: 16px; }
.detail-pane ul { padding-left: 21px; margin-top: 15px; }
.detail-pane > .detail-note { border-top: 1px solid #d0e3ee; margin-top: 22px; padding-top: 15px; font-size: 12px; }
.detail-proof { color: #0067cf; display: inline-block; margin-top: 16px; font-size: 13px; }
.detail-faq > div + div { margin-top: 15px; }
.detail-faq + .detail-faq { margin-top: 15px; }
.detail-faq dt { color: #254251; font-weight: 600; }
.detail-faq dd { margin: 4px 0 0; }
.detail-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 12px; min-height: 30px; }
.related-links { display: flex; align-items: center; gap: 18px; color: #486878; }
.related-links > span { font-size: 10px; color: #4b6878; }
.detail-cta { color: #0065ce; font-weight: 600; white-space: nowrap; }
.detail-reading-pager { display: flex; align-items: center; gap: 14px; font-size: 11px; }
.detail-reading-pager button { width: 30px; height: 30px; border: 1px solid #bdd5e3; border-radius: 50%; background: #edf6fc; color: #275d7b; padding: 0; }
.detail-reading-pager button:disabled { color: #778c99; }
[hidden] { display: none !important; }
@media (max-height: 850px) and (min-width: 801px) {
  .hero-copy h1 { font-size: 47px; }
  .detail-card { padding: 25px 35px; }
  .detail-pane h2 { font-size: 28px; margin-bottom: 16px; }
  .detail-pane > p, .detail-pane > ul, .detail-faq { font-size: 13px; }
}
@media (max-width: 800px) {
  .hero-copy h1 { font-size: 43px; }
  #service-detail { gap: 15px; }
  .service-intro { display: block; }
  .service-intro h1 { font-size: 35px; margin-top: 13px; }
  .service-intro > p { max-width: 100%; font-size: 12px; margin-top: 12px; }
  .detail-card { padding: 25px 30px; }
  .detail-pane h2 { font-size: 28px; }
  .detail-pane > p, .detail-pane > ul, .detail-faq { font-size: 12px; }
  .detail-pane > .detail-note { font-size: 11px; }
  .detail-footer { flex-direction: column; gap: 12px; align-items: stretch; }
  .detail-cta { align-self: flex-end; }
  .related-links { justify-content: space-between; gap: 10px; font-size: 11px; }
}
@media (max-width: 520px) {
  .hero-copy h1 { font-size: 39px; }
  .service-catalog-footer { font-size: 9px; gap: 8px; }
  .catalog-pager { gap: 10px; }
  .detail-back { font-size: 10px; }
  .service-intro h1 { font-size: 29px; letter-spacing: -1.2px; margin-top: 10px; }
  .service-intro > p { font-size: 11px; line-height: 1.6; margin-top: 10px; }
  .detail-tabs { padding: 5px; border-radius: 24px; }
  .detail-tabs button { min-height: 40px; font-size: 10px; padding: 8px 4px; }
  .detail-card { padding: 23px; border-radius: 22px; }
  .detail-pane h2 { font-size: 25px; margin-bottom: 16px; }
  .detail-pane > p, .detail-pane > ul, .detail-faq { font-size: 11px; line-height: 1.7; }
  .detail-pane > p + p { margin-top: 12px; }
  .detail-pane > .detail-note { font-size: 10px; padding-top: 12px; margin-top: 16px; }
  .detail-proof { font-size: 11px; margin-top: 12px; }
  .detail-faq > div + div { margin-top: 12px; }
  .detail-faq + .detail-faq { margin-top: 12px; }
  .detail-footer { font-size: 11px; }
  .related-links { font-size: 9px; }
  .related-links > span { font-size: 8px; }
}
@media (max-height: 700px) and (max-width: 800px) {
  .hero-copy h1 { font-size: 34px; }
  #services { grid-template-rows: auto minmax(0, 1fr) 34px; }
  #services .page-heading .eyebrow { display: none; }
  #service-detail { gap: 10px; }
  .service-intro h1 { font-size: 25px; margin-top: 8px; line-height: 1.1; }
  .service-intro > p { display: none; }
  .detail-tabs button { min-height: 34px; }
  .detail-card { padding: 18px; }
  .detail-pane h2 { font-size: 21px; margin-bottom: 11px; }
  .detail-pane > p, .detail-pane > ul, .detail-faq { font-size: 10px; line-height: 1.6; }
  .detail-pane > p + p { margin-top: 9px; }
  .detail-pane > .detail-note { display: block; font-size: 10px; padding-top: 10px; margin-top: 12px; }
  .detail-faq > div + div { margin-top: 9px; }
  .detail-faq + .detail-faq { margin-top: 9px; }
  .detail-proof { font-size: 10px; margin-top: 9px; }
  .detail-footer { gap: 8px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero-copy h1 { font-size: 30px; }
  #services { gap: 8px; grid-template-rows: auto minmax(0, 1fr) 28px; }
  .catalog-pager button { width: 28px; height: 28px; }
  .service-catalog-footer { font-size: 9px; }
  .dialog-more { font-size: 10px; margin-bottom: 12px; }
  .service-dialog .dialog-examples { margin-bottom: 15px; }
  #service-detail { grid-template-columns: 160px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px 18px; }
  .service-intro { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
  .service-intro h1 { font-size: 23px; margin: 0; }
  .service-intro > p { display: none; }
  .detail-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); align-self: center; padding: 5px; }
  .detail-tabs button { font-size: 10px; min-height: 38px; }
  .detail-card { padding: 15px 20px; }
  .detail-pane h2 { font-size: 22px; margin-bottom: 10px; }
  .detail-pane > p, .detail-pane > ul, .detail-faq { font-size: 10px; line-height: 1.55; }
  .detail-pane > p + p { margin-top: 9px; }
  .detail-pane > .detail-note { display: block; font-size: 10px; padding-top: 8px; margin-top: 9px; }
  .detail-pane > ul { margin-top: 8px; }
  .detail-faq > div + div { margin-top: 8px; }
  .detail-faq + .detail-faq { margin-top: 8px; }
  .detail-faq dd { margin-top: 2px; }
  .detail-proof { margin-top: 8px; font-size: 10px; }
  .detail-footer { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 24px; }
  .related-links { font-size: 9px; gap: 14px; }
}
/* Phone webviews have much less height once their browser controls are visible.
   Full-width rows keep illustrations, titles and tap targets together. */
@media (max-width: 600px) and (orientation: portrait) {
  .service-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .service-card.has-software-art { container-type: normal; padding: 10px 14px; border-radius: 18px; justify-content: center; }
  .service-card > .app-icon, .service-card > .service-number { display: none; }
  .service-card.has-software-art > h2 { font-size: 16px; line-height: 1.18; letter-spacing: -.35px; margin: 0; max-width: calc(100% - 124px); }
  .service-card.has-software-art > p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 10px; line-height: 1.4; margin-top: 4px; max-width: calc(100% - 124px); }
  .software-art { display: block; width: 92px; height: min(64px, calc(100% - 12px)); right: 33px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .service-card .service-actions { position: absolute; inset: 0; padding: 0; margin: 0; display: block; }
  .service-card .service-details { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; border: 0; border-radius: inherit; padding: 0; background: transparent; color: transparent; font-size: 0; }
  .service-card .service-details span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #426479; font-size: 18px; }
  .service-card .service-details:focus-visible { outline-offset: -3px; }
}
@media (max-width: 360px) and (orientation: portrait) {
  .service-card.has-software-art { padding: 9px 12px; }
  .service-card.has-software-art > h2 { font-size: 15px; max-width: calc(100% - 106px); }
  .service-card.has-software-art > p { max-width: calc(100% - 106px); }
  .software-art { width: 78px; right: 29px; }
  .service-card .service-details span { right: 10px; }
}
@media (max-width: 600px) and (max-height: 780px) and (orientation: portrait) {
  .service-card.has-software-art > p { display: none; }
}
/* A short portrait webview is still a phone, rather than a landscape layout. */
@media (max-width: 600px) and (max-height: 640px) and (orientation: portrait) {
  body { grid-template-rows: 50px minmax(0, 1fr) 18px 64px; }
  main { padding-block: 8px; }
  .main-nav { min-height: 54px; padding: 5px; }
  .main-nav > a { min-height: 42px; font-size: 8px; gap: 3px; }
  .main-nav > a svg { width: 19px; height: 19px; }
  .nav-selection { inset: 5px auto 5px 5px; width: calc((100% - 10px) / 4); }
  #services { gap: 8px; grid-template-rows: auto minmax(0, 1fr) 30px; }
  .page-heading h1 { font-size: 25px; margin-top: 0; }
  .page-heading > .eyebrow, .page-heading > p { display: none; }
  .service-grid { gap: 6px; }
  .service-card.has-software-art { padding: 8px 12px; }
  .service-card.has-software-art > h2 { font-size: 15px; max-width: calc(100% - 106px); }
  .software-art { width: 78px; right: 29px; }
  .catalog-pager button { width: 30px; height: 30px; }
  .hero-copy > .eyebrow { display: none; }
  .hero-copy h1 { font-size: 33px; margin-top: 0; }
  .hero-copy > p { font-size: 11px; line-height: 1.6; margin-top: 10px; }
  .hero-actions { margin-top: 12px; }
  .hero-actions .primary-action { min-height: 42px; padding-block: 10px; }
  .process-sheet { padding: 14px; }
  .process-copy > .eyebrow { display: none; }
  .process-copy h2 { font-size: 21px; margin-top: 0; }
  .process-copy > p { font-size: 10px; line-height: 1.55; margin-top: 8px; }
  .process-deliverable { font-size: 9px; margin-top: 10px; padding-top: 8px; }
  .stage-picker button { min-height: 35px; }
  .contact-copy h1 { font-size: 25px; }
  .contact-email { display: none; }
  .contact-grid { gap: 8px; }
  .project-form { padding: 12px; }
  .project-form .form-progress, .project-form h2, .project-form .form-note { display: none; }
  .project-form label { margin-top: 7px; }
  .project-form label:first-child { margin-top: 0; }
  .project-form input, .project-form select { min-height: 36px; padding: 7px 9px; margin-top: 4px; }
  .form-actions { margin-top: 10px; }
  .form-actions .primary-action { min-height: 38px; padding-block: 8px; }
  .service-dialog { width: min(470px, calc(100% - 32px)); padding: 18px; }
  .service-dialog .dialog-icon { display: none; }
  .dialog-top { margin-bottom: 5px; }
  .service-dialog h2 { font-size: 22px; margin-top: 4px; }
  .dialog-description { font-size: 11px; line-height: 1.6; margin-top: 9px; }
  .service-dialog .dialog-examples { font-size: 11px; line-height: 1.65; margin: 11px 0 15px; }
  .dialog-more { font-size: 11px; margin: 0 0 12px; }
  .dialog-action { min-height: 35px; padding-block: 9px; font-size: 11px; }
  .detail-card { padding: 10px 12px; }
  .detail-back { display: none; }
  .service-intro h1 { font-size: 21px; line-height: 1.12; margin-top: 0; }
  .detail-pane h2 { font-size: 18px; margin-bottom: 8px; }
  .detail-footer { flex-direction: row; align-items: center; gap: 10px; min-height: 30px; font-size: 10px; }
  .detail-cta { align-self: auto; }
  .detail-reading-pager { gap: 8px; font-size: 9px; }
}
