/* Services, page pass 2026-10-11. Every service on home's treatment, its
   own section head, then one glow card in home's card in card shell with
   what you get on one side and a dusk scene panel on the other, a crisp
   still from the case study framed on it like home's feature tabs. */

/* the hero's tiles become one row of glass pills that jump to each service */
body[data-page="services"] .ab-hero .ab-tiles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
body[data-page="services"] .ab-hero .ab-tiles li { position: relative; flex-direction: row; align-items: center; padding: 0; border-radius: 99px; background: rgba(255, 255, 255, .07); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); transition: background-color 250ms cubic-bezier(.22, 1, .36, 1), box-shadow 250ms cubic-bezier(.22, 1, .36, 1); }
body[data-page="services"] .ab-hero .ab-tiles li:hover { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
body[data-page="services"] .ab-hero .ab-tiles b { font-size: 14px; font-weight: 400; line-height: 1; letter-spacing: -.01em; }
body[data-page="services"] .ab-hero .ab-tiles b a { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; text-decoration: none; outline-offset: 2px; border-radius: 99px; }
body[data-page="services"] .ab-hero .ab-tiles small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* six sections in a row read as one list, so they sit closer than home's */
body[data-page="services"] .pd-body > .pd-ssec + .pd-ssec { padding-top: clamp(104px, 10vw, 152px); }
body[data-page="services"] .pd-ssec .pd-head { grid-template-columns: minmax(0, 1fr); margin-bottom: 48px; }
body[data-page="services"] .pd-ssec .pd-head h2 { max-width: 20em; }

/* card in card, the row is the inner card and a ring of the shell around it */
body[data-page="services"] .pd-ssec .pd-rows { padding: 9px; }
body[data-page="services"] .pd-ssec .pd-row { min-height: 0; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-radius: 16px; background: var(--sv-card); border-color: var(--sv-card-edge); box-shadow: 0 0 0 8px var(--sv-shell), 0 0 0 9px var(--pd-edge); }
body[data-page="services"] .pd-ssec:nth-child(even) .pd-row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
body[data-page="services"] .pd-ssec:nth-child(even) .pd-row-tx { order: 2; }
body[data-page="services"] .pd-row-tx { padding: 40px 36px 32px; }
/* each row's h3 is the proof line from its case study (critic W-P2-1, 2026-10-15), quieter than the section head above it */
body[data-page="services"] .pd-row h3 { margin-top: 28px; font-size: clamp(20px, 1.7vw, 22px); }

/* what you get, Powder's pricing list, a hairline above each line */
body[data-page="services"] .pd-row .pd-ticks { gap: 0; margin-top: 32px; }
body[data-page="services"] .pd-row .pd-ticks li { min-height: 56px; border-top: 1px solid var(--pd-edge); color: var(--pd-tx); font-size: 15px; }
body[data-page="services"] .pd-row .pd-ticks li:last-child { border-bottom: 1px solid var(--pd-edge); }
body[data-page="services"] .pd-row .pd-note { padding-top: 32px; }

/* the scene panel, dusk hills full bleed, the real screen framed on it */
body[data-page="services"] .pd-row-media { display: grid; place-items: center; align-content: center; min-height: 440px; padding: 40px 0; border-radius: 8px; overflow: clip;
  background: #2c3036 url(/media/scenery/numbers-1.webp) 50% 100% / cover no-repeat;
  background-image: -webkit-image-set(url(/media/scenery/numbers-1.webp) 1x, url(/media/scenery/numbers-1@2x.webp) 2x);
  background-image: image-set(url(/media/scenery/numbers-1.webp) 1x, url(/media/scenery/numbers-1@2x.webp) 2x);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
body[data-page="services"] .pd-ssec:nth-child(even) .pd-row-media {
  background-image: -webkit-image-set(url(/media/scenery/numbers-2.webp) 1x, url(/media/scenery/numbers-2@2x.webp) 2x);
  background-image: image-set(url(/media/scenery/numbers-2.webp) 1x, url(/media/scenery/numbers-2@2x.webp) 2x); }
/* an 8px glass bezel with a soft light edge, the still never dimmed */
body[data-page="services"] .pd-row-media > a { display: block; width: 86%; padding: 8px; border-radius: 18px; background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 30px 70px rgba(0, 0, 0, .4); }
body[data-page="services"] .pd-row-media img { display: block; width: 100%; max-width: none; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); background: #0e0e10; }

/* light, the shell and card follow the page, the dusk panel stays dusk */
body[data-page="services"] { --sv-shell: #000; --sv-card: #0f0f0f; --sv-card-edge: rgba(255, 255, 255, .1); }
:root[data-theme="light"] body[data-page="services"] { --sv-shell: #f1efe9; --sv-card: #fff; --sv-card-edge: rgba(0, 0, 0, .08); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) body[data-page="services"] { --sv-shell: #f1efe9; --sv-card: #fff; --sv-card-edge: rgba(0, 0, 0, .08); } }

@media (max-width: 1100px) and (min-width: 901px) {
  body[data-page="services"] .pd-ssec .pd-row, body[data-page="services"] .pd-ssec:nth-child(even) .pd-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  body[data-page="services"] .pd-row-media { min-height: 380px; }
}
@media (max-width: 900px) {
  body[data-page="services"] .pd-body > .pd-ssec + .pd-ssec { padding-top: 88px; }
  body[data-page="services"] .pd-ssec .pd-head { margin-bottom: 32px; }
  body[data-page="services"] .pd-ssec .pd-rows { padding: 7px; }
  body[data-page="services"] .pd-ssec .pd-row, body[data-page="services"] .pd-ssec:nth-child(even) .pd-row { grid-template-columns: 1fr; box-shadow: 0 0 0 6px var(--sv-shell), 0 0 0 7px var(--pd-edge); }
  body[data-page="services"] .pd-ssec:nth-child(n) .pd-row-tx { order: 2; padding: 24px 18px 22px; }
  body[data-page="services"] .pd-row-media { min-height: 0; padding: 28px 0; }
  body[data-page="services"] .pd-row-media > a { width: 88%; padding: 6px; border-radius: 14px; }
  body[data-page="services"] .pd-row-media img { border-radius: 8px; }
  body[data-page="services"] .pd-row .pd-ticks { margin-top: 18px; }
  body[data-page="services"] .pd-row .pd-ticks li { min-height: 52px; font-size: 14.5px; }
  body[data-page="services"] .pd-row .pd-note { padding-top: 20px; }
  body[data-page="services"] .pd-row .pd-note .pd-more { display: inline-flex; align-items: center; min-height: 44px; }
  body[data-page="services"] .ab-hero .ab-tiles { margin-top: 28px; gap: 6px; }
}
