/* /services/<slug>/ + /en/services/<slug>/ + the two hubs — built by tooling/service-pages/build.mjs. Builds on main.css. */
.sv { cursor: auto; }
.sv .nav { position: sticky; }
.sv .section { padding-block: clamp(70px, 10vh, 120px); }
.sv .section__head { margin-bottom: 44px; }
.sv .section__head h2 { font-size: clamp(30px, 3.6vw, 56px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero ---------- */
.sv-hero {
  position: relative; z-index: 3; background: var(--black); overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: clamp(30px, 5vw, 80px); align-items: center;
  padding: clamp(50px, 8vh, 100px) var(--gutter) clamp(50px, 8vh, 90px);
}
.sv-hero::before { content: ""; position: absolute; inset-inline-end: -10%; top: -30%; width: min(900px, 90vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(108,99,255,.22), rgba(0,213,255,.06) 55%, transparent); pointer-events: none; }
.sv-hero > * { position: relative; }
.sv-hero h1 { font-size: clamp(34px, 4.8vw, 72px); line-height: 1.14; margin: 0; letter-spacing: -.01em; }
.sv-hero .lead { max-width: 36em; }
.sv-hero .eyebrow .ic { width: 18px; height: 18px; }
.sv-hero .eyebrow span { font-family: var(--en); direction: ltr; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; font-size: 12px; color: var(--gray); }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--white); }
.crumbs span[aria-hidden] { opacity: .5; }
.crumbs [aria-current] { color: var(--cyan); }

/* spec card beside the hero text */
.sv-spec {
  display: grid; gap: 22px; padding: 28px; border-radius: 24px; border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 0% 0%, rgba(108,99,255,.18), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  box-shadow: 0 40px 80px -40px rgba(108,99,255,.5);
}
.sv-spec__ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; color: var(--cyan); background: rgba(0,213,255,.08); box-shadow: inset 0 0 0 1px rgba(0,213,255,.35), 0 0 30px -8px rgba(0,213,255,.6); }
.sv-spec__ic .ic { width: 30px; height: 30px; }
/* 3D stage at the top of the spec card (assets/js/service3d.js). The icon is the fallback and stays until the first frame. */
.sv-stage {
  position: relative; display: grid; place-items: center; height: 240px; margin: -28px -28px -4px; overflow: hidden;
  border-radius: 24px 24px 0 0; isolation: isolate;
  background: radial-gradient(55% 70% at 50% 58%, rgba(0,213,255,.07), transparent 70%);
}
.sv-stage::after { content: ""; position: absolute; inset-inline: 28px; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); pointer-events: none; }
.sv-stage__gl {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s var(--ease);
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent);
}
.sv-stage .sv-spec__ic { transition: opacity .5s var(--ease), transform .6s var(--ease); }
.sv-stage.is-live .sv-stage__gl { opacity: 1; }
.sv-stage.is-live .sv-spec__ic { opacity: 0; visibility: hidden; transform: scale(.85); transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .6s; }
.sv-spec dl { margin: 0; display: grid; gap: 14px; }
.sv-spec dl > div { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.sv-spec dt { font-size: 11px; letter-spacing: .12em; color: var(--cyan); }
.sv-spec dd { margin: 0; color: var(--white); font-weight: 600; font-size: 16px; }
.sv-spec dd.mono { font-weight: 500; }
.sv-spec__law { font-size: 12px; color: var(--gray); margin: 0; }

/* ---------- Who / tiles ---------- */
.sv-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sv-tiles li { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); font-size: 17px; line-height: 1.5; transition: border-color .4s; }
.sv-tiles li:hover { border-color: rgba(108,99,255,.45); }
.sv-tiles .ic { width: 20px; height: 20px; flex: none; margin-top: 4px; color: var(--violet); }

/* ---------- Includes / checklist ---------- */
.sv-check { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; max-width: 1100px; }
.sv-check li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.55; color: #E3E7F5; }
.sv-check .ic { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--cyan); }
.sv-note { display: inline-flex; align-items: center; gap: 10px; margin: 30px 0 0; padding: 10px 16px; border-radius: 999px; font-size: 13px; color: var(--cyan); border: 1px solid rgba(0,213,255,.35); background: rgba(0,213,255,.06); }
.sv-note .ic { width: 16px; height: 16px; }

/* ---------- Steps (3–5 items) ---------- */
.sv .steps { grid-template-columns: repeat(var(--n, 5), 1fr); }
.sv .steps::after { transform-origin: right; }
html[dir="ltr"] .sv .steps::after { transform-origin: left; }

/* ---------- AI callout ---------- */
.sv-ai-wrap { padding-block: 0 !important; }
.sv-ai {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 40px); align-items: start;
  padding: clamp(28px, 4vw, 48px); border-radius: 28px; border: 1px solid rgba(108,99,255,.4);
  background: radial-gradient(90% 120% at 0% 0%, rgba(108,99,255,.28), transparent 60%), radial-gradient(60% 100% at 100% 100%, rgba(0,213,255,.14), transparent 60%), var(--ink);
}
.sv-ai .eyebrow { margin-bottom: 12px; }
.sv-ai h2 { font-size: clamp(24px, 2.6vw, 40px); }
.sv-ai__p { margin-top: 16px; font-size: clamp(17px, 1.3vw, 20px); color: #E3E7F5; max-width: 40em; line-height: 1.6; }
.sv-ai__ic { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; color: var(--white); background: var(--grad); box-shadow: 0 20px 50px -20px rgba(0,213,255,.8); }
.sv-ai__ic .ic { width: 34px; height: 34px; }

/* ---------- Related live experiences ---------- */
.sv-xp__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px) clamp(30px, 4vw, 60px); }
.sv-xp__item { width: auto; display: flex; flex-direction: column; cursor: default; }
.sv-xp__item::before { align-self: flex-start; }
.sv-xp__item .laptop__screen { display: block; transform: none; transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
.sv-xp__item:hover .laptop__screen { transform: translateY(-6px); box-shadow: 0 50px 90px -30px rgba(0,0,0,.9), 0 0 80px -30px rgba(0,213,255,.5); }
.sv-xp__item[data-xp] .laptop__screen::before { opacity: 1; transform: none; }
.sv-xp__item figcaption { flex-direction: column; align-items: flex-start; gap: 4px; }
.sv-xp__item figcaption span { font-size: 15px; }
.sv-xp__enter { margin-top: 18px; align-self: flex-start; }
.sv-xp__static { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 12px; color: var(--gray); }
.sv-xp__static .ic { width: 16px; height: 16px; }
.sv-proof { display: flex; align-items: flex-start; gap: 14px; margin: clamp(50px, 7vh, 80px) 0 0; padding: 22px 26px; border-radius: 18px; border: 1px solid var(--line); border-inline-start: 3px solid var(--cyan); background: rgba(0,213,255,.04); font-size: clamp(16px, 1.2vw, 19px); line-height: 1.6; color: #E3E7F5; max-width: 60em; }
.sv-proof .ic { width: 22px; height: 22px; flex: none; margin-top: 4px; color: var(--cyan); }
.sv-proof b { color: var(--cyan); font-weight: 600; }

/* ---------- Other services + hub ---------- */
.sv-others__grid, .sv-hub__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sv-card { min-height: 0; padding: 24px; justify-content: flex-start; color: inherit; }
.sv-card h3 { font-size: clamp(19px, 1.5vw, 24px); }
.sv-card > p:not(.card__n):not(.sv-dur) { font-size: 15px; }
.sv-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; font-size: 14px; color: var(--cyan); }
.sv-card__more .ic { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.sv-card:hover .sv-card__more .ic { transform: translateX(var(--dirx, -4px)); }
[dir="ltr"] .sv-card:hover .sv-card__more .ic { transform: translateX(4px); }
.sv-card--all { align-items: flex-start; justify-content: center; border-style: dashed; }
.sv-dur { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 12px; color: var(--cyan); letter-spacing: .06em; }
.sv-dur .ic { width: 16px; height: 16px; }
.sv-hub__grid .sv-card:first-child, .sv-hub__grid .card--suite { grid-column: span 2; }
.sv-hub__law { margin-top: 40px; }
.sv-hero--hub { grid-template-columns: 1fr; }
.sv-hero--hub .sv-hero__txt { max-width: 900px; }
.sv .contact__title { font-size: clamp(30px, 4vw, 60px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .sv-others__grid, .sv-hub__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .sv-hero { grid-template-columns: 1fr; }
  .sv-spec { max-width: 520px; }
  .sv-tiles, .sv-check, .sv-xp__grid { grid-template-columns: 1fr; }
  .sv-ai { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sv .nav__links { display: none; }
  .sv-hero { padding-top: 36px; }
  .sv-hero h1 { font-size: clamp(30px, 8.6vw, 44px); }
  .sv-spec { padding: 22px; }
  .sv-stage { height: 220px; margin: -22px -22px -2px; }
  .sv-stage::after { inset-inline: 22px; }
  .sv-tiles li { font-size: 16px; padding: 16px 18px; }
  .sv-check li { font-size: 16px; }
  .sv-others__grid, .sv-hub__grid { grid-template-columns: 1fr; }
  .sv-hub__grid .sv-card:first-child, .sv-hub__grid .card--suite { grid-column: auto; }
  .sv-xp__enter { align-self: stretch; }
  .sv-xp__item .laptop__base { margin-inline: -5%; } /* keeps the base inside the 20px gutter at 390px */
  .sv-proof { padding: 18px 18px; }
  .sv .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sv-stage__gl, .sv-stage .sv-spec__ic { transition: none !important; }
  .sv-xp__item:hover .laptop__screen, .sv-card:hover .sv-card__more .ic { transform: none; }
}

/* phone pass 2026-10-09: breadcrumb links were 21px tall */
@media (max-width: 760px) { .crumbs { font-size: 13px; gap: 4px 8px; } .crumbs a { display: inline-flex; align-items: center; min-height: 40px; } }
/* Night cycle 8 — phones without the 3D scene (service3d-gate.js loads it only on wide or mouse screens): no empty
   220px stage, just the icon with breathing room. */
@media (max-width: 767px) and (hover: none) {
  .sv-stage { height: auto; min-height: 0; padding: 22px 0 18px; }
}
/* Proof cards: every screen is 16:10 like a real laptop, whatever the image (the Playmaker slide is portrait). */
.sv-xp__grid { align-items: start; }
.sv-xp__item .laptop__screen { aspect-ratio: 16 / 10; overflow: hidden; }
.sv-xp__item .laptop__screen img { object-fit: cover; object-position: top; } /* size + position: main.css (overlay, never stretches the screen) */
