/* Services uses existing brand tokens; the homepage remains the only WebGL route. */
body[data-page="services"] .svc-hero {
  padding-block: 40px 0;
  overflow: clip;
}
body[data-page="services"] .svc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  align-items: center;
  justify-items: stretch;
  gap: 6%;
}
body[data-page="services"] .svc-hero-copy { min-width: 0; }
body[data-page="services"] .svc-hero h1 {
  hyphens: none;
  font-size: clamp(40px, 4.05vw, 73px);
  line-height: 1.08;
  max-width: 16ch;
  margin-bottom: 28px;
  letter-spacing: -.045em;
}
.svc-hero h1 em { font-style: normal; color: var(--accent); }
body[data-page="services"] .svc-hero-copy > p {
  color: var(--muted);
  font-size: clamp(14px, 1.13vw, 18px);
  line-height: 1.75;
  max-width: 51ch;
}
body[data-page="services"] .svc-hero .hero-actions { margin-top: 26px; }
.svc-workstation {
  min-width: 0;
  width: 100%;
  justify-self: stretch;
  height: clamp(430px, 45vw, 690px);
  position: relative;
  isolation: isolate;
  view-timeline-name: --service-showcase;
  view-timeline-axis: block;
}
.svc-workstation::before {
  content: "";
  position: absolute;
  inset: 9% -8% 4% 5%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 15%, transparent), transparent 68%);
  pointer-events: none;
}
.svc-workstation-mark {
  position: absolute;
  inset: 2% auto auto 17%;
  width: 77%;
  height: 38%;
  object-fit: contain;
  opacity: .15;
  filter: var(--symbol-filter);
  pointer-events: none;
}
.svc-window {
  display: block;
  position: absolute;
  top: 21%;
  left: 0;
  width: 95%;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  color: var(--ink);
  box-shadow: 0 22px 45px var(--shadow);
  transition: box-shadow .3s ease, border-color .3s ease;
}
.svc-window:hover, .svc-window:focus-visible { border-color: var(--accent); box-shadow: 0 30px 60px var(--shadow); }
.svc-window-chrome { display: flex; align-items: center; gap: 5px; height: 26px; padding-inline: 12px; border-bottom: 1px solid var(--line); }
.svc-window-chrome i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: .55; }
.svc-window > img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: contain; }
.svc-window-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; background: var(--panel); }
.svc-window-caption strong { font: 500 clamp(12px, 1.1vw, 17px)/1.3 Manrope, Inter, sans-serif; }
.svc-window-caption > span { font-size: 10px; white-space: nowrap; padding-right: 24%; }
.svc-phone {
  display: block;
  position: absolute;
  right: -2%;
  bottom: 0;
  z-index: 2;
  width: 28%;
  border: 5px solid var(--panel);
  border-radius: 21px;
  overflow: hidden;
  background: var(--panel);
  outline: 1px solid var(--line-strong);
  box-shadow: 0 15px 40px var(--shadow);
  transition: outline-color .3s ease, box-shadow .3s ease;
}
.svc-phone:hover, .svc-phone:focus-visible { outline-color: var(--accent); box-shadow: 0 24px 46px var(--shadow); }
.svc-phone img { display: block; width: 100%; height: auto; }
.svc-window:focus-visible, .svc-phone:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.svc-jump-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; margin-top: 46px; padding-block: 24px; border-top: 1px solid var(--line); }
.svc-jump-links a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 7px; color: var(--ink); font: 500 15px/1.3 Manrope, Inter, sans-serif; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.svc-jump-links a:hover, .svc-jump-links a:focus-visible { color: var(--accent); border-color: currentColor; }
body[data-page="services"] .svc-overview { padding-block: clamp(64px, 7vw, 110px); }
.svc-overview-heading h2 { font-size: clamp(32px, 3.4vw, 56px); max-width: 20ch; margin: 0 0 40px; line-height: 1.1; }
body[data-page="services"] .svc-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
body[data-page="services"] .svc-service-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 105px;
  align-content: start;
  align-items: start;
  column-gap: 16px;
  row-gap: 15px;
  padding: clamp(24px, 2.8vw, 44px);
  min-height: 0;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
body[data-page="services"] .svc-service-card::before,
body[data-page="services"] .svc-service-card::after { display: none; }
body[data-page="services"] .svc-service-card > span { grid-column: 1; padding: 0; font-size: 13px; color: var(--accent); }
body[data-page="services"] .svc-service-card h3 { grid-column: 1; margin: 0; font-size: clamp(25px, 2.3vw, 38px); line-height: 1.12; max-width: 21ch; color: var(--ink); }
body[data-page="services"] .svc-service-card > p { grid-column: 1 / -1; font-size: 15px; line-height: 1.75; max-width: 57ch; margin: 3px 0 4px; color: var(--muted); }
body[data-page="services"] .svc-service-card .card-text-link { grid-column: 1 / -1; position: relative; inset: auto; width: fit-content; margin: 0; padding-block: 9px; min-height: 44px; font-size: 12px; line-height: 1.4; text-decoration: none; color: var(--accent); border-bottom: 1px solid var(--line-strong); }
body[data-page="services"] .svc-service-card .card-text-link:hover { border-color: var(--accent); }
.svc-diagram { grid-column: 2; grid-row: 1 / 3; display: block; width: 100%; height: auto; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; align-self: center; }
.svc-diagram-fill { fill: var(--accent); fill-opacity: .18; }
body[data-page="services"] .svc-service-card:first-child { grid-column: 1 / -1; grid-template-columns: 1fr 40%; min-height: 300px; background: var(--panel-2); }
body[data-page="services"] .svc-service-card:first-child h3 { font-size: clamp(34px, 4vw, 64px); }
body[data-page="services"] .svc-service-card:first-child > p,
body[data-page="services"] .svc-service-card:first-child .card-text-link { grid-column: 1; max-width: 48ch; }
.svc-service-card:first-child .svc-diagram { grid-row: 1 / 5; max-width: 310px; justify-self: center; }
.svc-scope-band { background: var(--bg-2); border-block: 1px solid var(--line); }
.svc-scope-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 12%; align-items: center; }
.svc-scope-grid .seo-copy-block { max-width: 760px; }
.svc-scope-grid h2 { max-width: 22ch; margin-top: 0; }
.svc-scope-grid p:last-child { margin-bottom: 0; }
.svc-scope-mark { position: relative; padding: 25px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; }
.svc-scope-mark::before { content: ""; position: absolute; inset: 12%; border: 1px solid var(--line); border-radius: inherit; }
.svc-scope-mark img { display: block; width: 90%; height: auto; filter: var(--symbol-filter); }
body[data-page="services"] .svc-chapter { position: relative; padding-block: clamp(65px, 7vw, 110px); scroll-margin-top: 108px; }
.svc-chapter + .svc-chapter::before { content: ""; position: absolute; inset: 0 var(--gutter) auto; border-top: 1px solid var(--line); }
body[data-page="services"] .svc-chapter .seo-two-column { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 9%; }
body[data-page="services"] .svc-chapter h2 { margin-top: 0; max-width: 23ch; font-size: clamp(32px, 3.2vw, 52px); line-height: 1.13; }
body[data-page="services"] .svc-chapter .seo-copy-block p { font-size: 16px; line-height: 1.85; max-width: 68ch; }
body[data-page="services"] .svc-chapter .seo-note-card { border: 1px solid var(--line); border-top: 3px solid var(--accent); background: var(--panel); padding: clamp(25px, 3vw, 45px); border-radius: 3px; position: sticky; top: 120px; }
body[data-page="services"] .svc-chapter .seo-note-card h3 { font-size: clamp(24px, 2.2vw, 34px); line-height: 1.2; margin-top: 0; }
body[data-page="services"] .svc-chapter .seo-note-card p { font-size: 14px; line-height: 1.85; }
body[data-page="services"] .svc-chapter .seo-note-card .button { width: 100%; margin-top: 12px; }
body[data-page="services"] .svc-final { background: var(--panel-2); padding-block: 45px; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cinema-eligible .svc-window { animation: svc-window-depth linear both; animation-timeline: --service-showcase; animation-range: entry 10% exit 85%; }
    .cinema-eligible .svc-phone { animation: svc-phone-depth linear both; animation-timeline: --service-showcase; animation-range: entry 10% exit 85%; }
    .cinema-eligible .svc-workstation-mark { animation: svc-mark-depth linear both; animation-timeline: --service-showcase; animation-range: entry 10% exit 85%; }
  }
}
@keyframes svc-window-depth { from { transform: translateY(12px); } to { transform: translateY(-20px); } }
@keyframes svc-phone-depth { from { transform: translateY(28px); } to { transform: translateY(-42px); } }
@keyframes svc-mark-depth { from { transform: translateY(24px); } to { transform: translateY(-45px); } }
@media (max-width: 1099px) {
  body[data-page="services"] .svc-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  body[data-page="services"] .svc-hero h1 { max-width: 23ch; font-size: clamp(42px, 6.6vw, 64px); }
  body[data-page="services"] .svc-hero-copy > p { max-width: 66ch; font-size: 16px; }
  .svc-workstation { width: 85%; max-width: 720px; height: 570px; margin-inline: auto; }
  .svc-workstation-mark { top: 0; height: 40%; }
  .svc-window { top: 15%; width: 91%; }
  .svc-phone { width: 25%; right: 0; bottom: 0; }
  .svc-jump-links { margin-top: 25px; gap: 6px 24px; }
  body[data-page="services"] .svc-service-card { grid-template-columns: minmax(0, 1fr) 80px; padding: 28px; }
  body[data-page="services"] .svc-service-card h3 { grid-column: 1 / -1; font-size: 28px; }
  .svc-service-card .svc-diagram { grid-row: 1; width: 50px; justify-self: end; }
  body[data-page="services"] .svc-service-card:first-child h3 { grid-column: 1; }
  .svc-service-card:first-child .svc-diagram { grid-row: 1 / 5; width: 100%; justify-self: center; }
  .svc-scope-grid { gap: 7%; grid-template-columns: minmax(0, 1fr) 25%; }
  .svc-scope-mark { padding: 14px; }
  body[data-page="services"] .svc-chapter .seo-two-column { gap: 5%; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
}
@media (max-width: 699px) {
  body[data-page="services"] .svc-hero { padding-top: 24px; }
  body[data-page="services"] .svc-hero h1 { font-size: clamp(34px, 8.9vw, 51px); max-width: 22ch; margin-bottom: 22px; }
  body[data-page="services"] .svc-hero-copy > p { font-size: 14px; line-height: 1.8; }
  body[data-page="services"] .svc-hero-grid { gap: 18px; }
  .svc-workstation { width: 100%; height: clamp(300px, 83vw, 500px); }
  .svc-workstation-mark { width: 70%; left: 17%; top: 0; height: 34%; }
  .svc-window { top: 14%; width: 91%; border-radius: 5px; }
  .svc-window-chrome { height: 19px; padding-inline: 8px; gap: 4px; }
  .svc-window-chrome i { width: 3px; height: 3px; }
  .svc-window-caption { padding: 10px 11px; }
  .svc-window-caption strong { max-width: 70%; font-size: 11px; }
  .svc-window-caption > span { display: none; }
  .svc-phone { width: 28%; border-width: 3px; border-radius: 13px; bottom: 0; right: 0; }
  .svc-jump-links { justify-content: flex-start; margin-top: 14px; padding-block: 16px; gap: 3px 24px; }
  .svc-jump-links a { font-size: 13px; }
  .svc-overview-heading h2 { font-size: 34px; margin-bottom: 28px; }
  body[data-page="services"] .svc-service-grid { grid-template-columns: 1fr; gap: 14px; }
  body[data-page="services"] .svc-service-card { padding: 25px; grid-template-columns: minmax(0, 1fr) 68px; gap: 12px; }
  body[data-page="services"] .svc-service-card h3 { font-size: 26px; }
  body[data-page="services"] .svc-service-card > p { font-size: 14px; }
  body[data-page="services"] .svc-service-card:first-child { grid-template-columns: minmax(0, 1fr) 68px; min-height: 0; }
  body[data-page="services"] .svc-service-card:first-child h3 { grid-column: 1 / -1; font-size: 29px; }
  body[data-page="services"] .svc-service-card:first-child .svc-diagram { grid-row: 1; width: 50px; justify-self: end; }
  body[data-page="services"] .svc-service-card:first-child > p,
  body[data-page="services"] .svc-service-card:first-child .card-text-link { grid-column: 1 / -1; }
  .svc-scope-grid { grid-template-columns: 1fr; gap: 25px; }
  .svc-scope-mark { width: 160px; justify-self: end; }
  body[data-page="services"] .svc-chapter .seo-two-column { grid-template-columns: 1fr; gap: 24px; }
  body[data-page="services"] .svc-chapter h2 { font-size: 32px; }
  body[data-page="services"] .svc-chapter .seo-copy-block p { font-size: 15px; }
  body[data-page="services"] .svc-chapter .seo-note-card { position: static; padding: 25px; }
  body[data-page="services"] .svc-final { padding-block: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-window, .svc-phone, .svc-workstation-mark { animation: none !important; transform: none !important; }
}
