/* Service pages (/services/<slug>/). Built on styles.css tokens; Paper "2.1. Services page".
   Mobile-first: <810 mobile (390 design), 810–1199 tablet, 1200–1599 desktop (1440), ≥1600 wide. */
.service-page { --sky: #C3E5F7; --faq-line: #DFE2DE; --glass: rgba(14,15,16,.72); --glass-line: rgba(255,255,255,.16); }
.service-page main { padding-top: var(--nav-h); }
.service-page .nav { background: var(--white); }
.service-page .nav.is-scrolled { background: rgba(255,255,255,.94); }

.service-page main h1, .service-page main h2, .service-page main h3 { font-family: var(--display); color: var(--ink); }
.svc-eyebrow, .svc-installs { font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; }
.service-page .tag { line-height: 16px; }

/* Hero */
.svc-hero { display: flex; flex-direction: column; padding-top: 40px; padding-bottom: 64px; }
.svc-hero h1 { padding-top: 18px; font-size: clamp(34px, 10.2vw, 46px); font-weight: 800; line-height: .95; letter-spacing: -.03em; }
.svc-lede { padding: 18px 0 32px; font-size: 17px; line-height: 1.6; color: var(--slate); }
.svc-hero img { width: 100%; object-fit: cover; }
.svc-hero-a { height: 220px; border-radius: 16px; }
.svc-hero-side { display: flex; flex-direction: column; gap: 20px; padding-top: 12px; }
.svc-hero-b { height: 300px; border-radius: 16px; }
.svc-installs-wrap { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.svc-installs { display: flex; align-items: center; gap: 16px; padding-top: 8px; color: var(--ink); }
.svc-installs::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* "What we install" chips: infinite marquee. Track = the real <ul> + aria-hidden copies
   (built by scripts/build-pages.py); translateX(-50%) lands exactly on the next copy.
   --marquee-dur is set inline from the strip width so speed stays constant. */
.svc-marquee { --chip-gap: 8px; position: relative; min-width: 0; max-width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.svc-marquee-track { display: flex; width: max-content; animation: svc-marquee var(--marquee-dur, 36s) linear infinite; }
.svc-marquee:hover .svc-marquee-track, .svc-marquee:focus-within .svc-marquee-track { animation-play-state: paused; }
@keyframes svc-marquee { to { transform: translate3d(-50%, 0, 0); } }
.svc-chips { display: flex; flex: none; gap: var(--chip-gap); padding-right: var(--chip-gap); }
.svc-chips li { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 9px 16px; border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 500; line-height: 18px; white-space: nowrap; }
.svc-chip-ico { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.svc-chip-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Statement band */
.svc-statement { background: var(--paper); }
.svc-statement .container { display: grid; gap: 18px; padding-top: 56px; padding-bottom: 56px; }
.svc-statement h2 { font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -.015em; }
.svc-statement p { font-size: 17px; line-height: 1.6; color: var(--slate); }

/* Problem / fix: full-bleed photo with two glass cards */
.svc-problem { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); padding: 300px 0 24px; }
.svc-problem-img { position: absolute; z-index: -2; top: 0; left: 0; width: 100%; height: 460px; max-width: none; object-fit: cover; }
.svc-problem::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(14,15,16,0) 22%, var(--ink) 58%); }
.svc-problem-cards { display: grid; gap: 12px; padding-left: 16px; padding-right: 16px; }
.svc-glass { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--glass-line); border-radius: 18px; background: var(--glass); }
.svc-glass .svc-eyebrow { color: var(--volt); }
.service-page .svc-glass h3 { color: var(--white); font-size: 22px; font-weight: 700; line-height: 1.15; }
.svc-glass p:last-child { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.8); }

/* Why: head + bento */
.svc-why { display: flex; flex-direction: column; gap: 16px; padding-top: 80px; padding-bottom: 72px; }
.svc-why-head { display: flex; flex-direction: column; gap: 18px; padding-bottom: 16px; }
.svc-why-head > div { display: flex; flex-direction: column; gap: 18px; }
.svc-why-head h2 { font-size: 40px; font-weight: 800; line-height: .98; letter-spacing: -.03em; }
.svc-why-note { font-size: 17px; line-height: 1.6; color: var(--slate); }
.svc-bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.svc-bento-left { display: contents; }
.svc-feature { grid-row: 1; position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px; padding: 24px; overflow: hidden; border-radius: 20px; background: var(--ink); }
.svc-feature-img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-feature::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(14,15,16,0) 35%, rgba(14,15,16,.85) 100%); }
.svc-feature figcaption { display: flex; flex-direction: column; gap: 10px; }
.service-page .svc-feature h3 { color: var(--white); font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -.015em; max-width: 480px; }
.svc-feature p { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.8); max-width: 500px; }

.svc-facts { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 20px; background: var(--paper); }
.service-page .svc-facts h3, .service-page .svc-pairs h3 { padding: 4px 4px 8px; font-size: 20px; font-weight: 700; line-height: 24px; }
.svc-facts dl { display: flex; flex-direction: column; gap: 10px; }
.svc-facts dl > div { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 14px; background: var(--white); }
.svc-facts dt { font-size: 14px; line-height: 18px; color: var(--slate); }
.svc-facts dd { font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 42px; letter-spacing: -.015em; }

.svc-book { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 36px 24px; border-radius: 20px; background: var(--ink); text-align: center; }
.service-page .svc-book h3 { color: var(--white); font-size: 22px; font-weight: 700; line-height: 1.1; }
.svc-book p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.72); }
.svc-book .btn { gap: 12px; min-height: 46px; padding: 0 8px 0 20px; font-size: 15px; }
.svc-book .btn-arrow { width: 30px; height: 30px; }
.svc-book .btn-arrow svg { width: 14px; height: 14px; }

.svc-pairs { display: flex; flex-direction: column; gap: 14px; padding-top: 40px; min-width: 0; }
.service-page .svc-pairs h3 { padding: 0; font-size: 22px; line-height: 28px; }
.svc-pairs ul { display: flex; gap: 12px; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.svc-pairs ul::-webkit-scrollbar { display: none; }
.svc-pairs li { flex: 0 0 240px; scroll-snap-align: start; }
.svc-pair { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; height: 280px; padding: 16px; overflow: hidden; border-radius: 16px; background: var(--ink); }
.svc-pair-img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc-pair::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(14,15,16,0) 40%, rgba(14,15,16,.7) 100%); }
.svc-pair:hover .svc-pair-img { transform: scale(1.04); }
.svc-pair:focus-visible { outline-offset: 3px; }
.svc-pair-num { font-size: 12px; font-weight: 600; line-height: 16px; color: var(--volt); }
.svc-pair-name { font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 28px; color: var(--white); }

/* FAQ: landing component, service palette (open = sky, closed = outlined white) */
.svc-faq.section { padding-top: 72px; padding-bottom: 88px; }
.svc-faq .faq-grid { gap: 28px; }
.svc-faq .faq-head { gap: 16px; }
.svc-faq .faq-head .tag { margin: 0; }
.svc-faq .faq-list { gap: 10px; }
.svc-faq .faq-item { background: var(--white); box-shadow: inset 0 0 0 1px var(--faq-line); transition: background .3s, box-shadow .3s; }
.svc-faq .faq-item.is-open { background: var(--sky); box-shadow: none; }
.svc-faq .faq-item button { padding: 20px; font-size: 19px; }
.svc-faq .faq-item.is-open button { padding-top: 22px; padding-bottom: 12px; }
.svc-faq .faq-ico { width: 30px; height: 30px; box-shadow: inset 0 0 0 1px var(--faq-line); }
.svc-faq .faq-body p { padding: 0 20px 22px; font-size: 15px; }

/* Tablet 810–1199 */
@media (min-width: 810px) {
  .svc-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; padding-top: 64px; padding-bottom: 88px; }
  .svc-hero-copy { grid-column: 1 / -1; }
  .svc-hero-side { display: contents; }
  .svc-hero-a, .svc-hero-b { height: 400px; }
  .svc-hero-b { grid-column: 2; grid-row: 2; }
  .svc-installs-wrap { grid-column: 1 / -1; gap: 0; }
  .svc-installs { padding: 36px 0 16px; }
  .svc-hero h1 { font-size: 64px; }
  .svc-lede { max-width: 600px; font-size: 20px; }

  .svc-statement .container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; padding-top: 72px; padding-bottom: 72px; }
  .svc-statement h2 { font-size: 34px; }

  .svc-problem { padding: 440px 0 40px; }
  .svc-problem-img { height: 600px; }
  .svc-problem::before { background: linear-gradient(180deg, rgba(14,15,16,0) 30%, var(--ink) 84%); }
  .svc-problem-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-left: var(--gutter); padding-right: var(--gutter); }

  .svc-why { padding-top: 104px; padding-bottom: 96px; }
  .svc-why-head h2 { font-size: 56px; max-width: 620px; }
  .svc-why-note { max-width: 560px; }
  .svc-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-feature { grid-column: 1 / -1; min-height: 500px; padding: 36px; }
  .service-page .svc-feature h3 { font-size: 32px; }
  .svc-pairs { grid-column: 1 / -1; }
  .svc-pairs ul { margin-right: 0; padding-right: 0; overflow: visible; }
  .svc-pairs li { flex: 1 1 0; min-width: 0; }
  .svc-pair { height: 300px; }

  .svc-faq.section { padding-top: 96px; padding-bottom: 104px; }
  .svc-faq .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

/* Desktop ≥1200 (1440 design) */
@media (min-width: 1200px) {
  .svc-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr; column-gap: 40px; align-items: start; padding-top: 96px; padding-bottom: 120px; }
  .svc-hero-copy { grid-column: 1; }
  .svc-hero-side { display: flex; gap: 28px; padding-top: 0; grid-column: 2; grid-row: 1 / 3; }
  .svc-hero-a { grid-column: 1; grid-row: 2; height: 336px; border-radius: 20px; }
  .svc-hero-b { height: 560px; border-radius: 20px; }
  .svc-installs-wrap { gap: 28px; }
  .svc-installs { gap: 20px; padding: 0; }
  .svc-marquee { --chip-gap: 10px; }
  .svc-chips li { padding: 10px 18px; }
  .svc-hero h1 { padding-top: 24px; font-size: 72px; }
  .svc-lede { max-width: 520px; padding: 24px 0 48px; }

  .svc-statement .container { grid-template-columns: minmax(0, 620fr) minmax(0, 620fr); padding-top: 88px; padding-bottom: 88px; }
  .svc-statement h2 { font-size: 44px; }
  .svc-statement p { max-width: 520px; padding-top: 8px; font-size: 20px; }

  .svc-problem { padding: 560px 0 64px; }
  .svc-problem-img { height: 100%; }
  .svc-problem::before { background: linear-gradient(180deg, rgba(14,15,16,0) 35%, rgba(14,15,16,.75) 100%); }
  .svc-problem-cards { gap: 24px; }
  .svc-glass { gap: 14px; padding: 32px; border-radius: 20px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .service-page .svc-glass h3 { font-size: 26px; line-height: 1.1; }
  .svc-glass p:last-child { font-size: 17px; }

  .svc-why { gap: 56px; padding-top: 140px; padding-bottom: 120px; }
  .svc-why-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 0; }
  .svc-why-head > div { gap: 24px; max-width: 720px; }
  .svc-why-head h2 { font-size: 72px; line-height: .95; max-width: none; }
  .svc-why-note { flex: 0 0 auto; width: 400px; }
  .svc-bento { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 20px; height: 820px; }
  .svc-bento-left { display: flex; flex-direction: column; gap: 20px; min-height: 0; }
  .svc-book { flex: 1; padding: 28px 24px; }
  .svc-feature { grid-column: auto; grid-row: auto; min-height: 0; gap: 12px; padding: 36px; border-radius: 24px; }
  .svc-feature figcaption { gap: 12px; }
  .service-page .svc-feature h3 { font-size: 34px; }
  .svc-feature p { font-size: 17px; }
  .svc-pairs { grid-column: auto; gap: 12px; padding: 20px; border-radius: 20px; background: var(--paper); min-height: 0; }
  .service-page .svc-pairs h3 { padding: 4px 4px 8px; font-size: 20px; line-height: 1.2; }
  .svc-pairs ul { flex: 1; flex-direction: column; min-height: 0; }
  .svc-pairs li { flex: 0 0 220px; }
  .svc-pairs li:last-child { flex: 1 1 auto; }
  .svc-pair { height: 100%; border-radius: 14px; }

  .svc-faq.section { padding-top: 100px; padding-bottom: 100px; }
  .svc-faq .faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 64px; }
  .svc-faq .faq-head { gap: 20px; align-content: start; }
  .svc-faq .faq-list { gap: 12px; align-content: start; }
  .svc-faq .faq-item button, .svc-faq .faq-item.is-open button { padding: 26px 28px; font-size: 22px; }
  .svc-faq .faq-ico { width: 32px; height: 32px; }
  .svc-faq .faq-body p { padding: 0 28px 28px; font-size: 16px; }
}

/* Wide ≥1600: content stays 1280, the photo band grows */
@media (min-width: 1600px) {
  .svc-problem { padding-top: 680px; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-pair-img { transition: none; }
  .svc-pair:hover .svc-pair-img { transform: none; }
  /* No marquee: the real list wraps like a static chip group; copies are dropped. */
  .svc-marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .svc-marquee-track { width: auto; animation: none; }
  .svc-marquee .svc-chips { flex-wrap: wrap; flex: 1 1 auto; padding-right: 0; }
  .svc-marquee .svc-chips[aria-hidden="true"] { display: none; }
}
