/* ============================================================
   CROSLYNK · HOME PAGE (index.html only), minimal layout
   Builds on style.css (tokens, nav, buttons, splash, background).
   One idea per screen: a short hero with a service index, then each
   service on its own with one small line drawing and one link out.
   ============================================================ */

.hm main { display: block; }
.hm section[id] { scroll-margin-top: 84px; }
.hm section { padding: 0; }

/* shared text pieces */
.hm-kicker { font: 500 0.78rem/1.4 'IBM Plex Mono', monospace; color: var(--amber-dark); margin: 0 0 22px; }
.svc-label { display: inline-flex; align-items: baseline; gap: 12px; font: 600 0.86rem/1.2 'Poppins', sans-serif; color: var(--amber-dark); margin: 0; }
.svc-n { font: 500 0.74rem/1 'IBM Plex Mono', monospace; color: var(--muted); }

/* text link with a drawn chevron (no arrow glyph) */
.svc-more, .hm-textlink {
  display: inline-flex; align-items: center; gap: 10px; font: 600 0.92rem/1 'Poppins', sans-serif; color: var(--ink);
  text-decoration: none; padding-bottom: 6px; border-bottom: 1.5px solid var(--amber);
}
.svc-more::after, .hm-textlink::after {
  content: ""; width: 7px; height: 7px; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor;
  transform: rotate(45deg); transition: transform 0.3s var(--ease-premium);
}
.svc-more:hover::after, .hm-textlink:hover::after { transform: translateX(4px) rotate(45deg); }
.svc-more:hover, .hm-textlink:hover { color: var(--amber-dark); }
.svc-more:focus-visible, .hm-textlink:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }

/* ---------- hero ---------- */
.hm-hero { padding: 112px 0 120px !important; }
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 72px; align-items: center; }
.hm-hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.032em; max-width: 15ch; margin: 0 0 24px; color: var(--ink); }
.hm-lede { font-size: 1.1rem; line-height: 1.7; color: #5a4e3c; max-width: 42ch; margin: 0 0 36px; }
.hm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }

/* service index */
.hm-index { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
.hm-index a {
  display: grid; grid-template-columns: 34px 40px minmax(0, 1fr) 20px; align-items: center; gap: 14px;
  padding: 19px 8px; border-bottom: 1px solid var(--line-strong); text-decoration: none; color: var(--ink);
  transition: background 0.3s, padding 0.3s var(--ease-premium);
}
.hm-index a:hover, .hm-index a:focus-visible { background: rgba(255, 255, 255, 0.6); padding-left: 14px; outline: none; }
.hm-index a:focus-visible { box-shadow: inset 2px 0 0 var(--amber); }
.ix-n { font: 500 0.72rem/1 'IBM Plex Mono', monospace; color: var(--muted); }
.ix-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--amber-dark); background: var(--amber-ghost); }
.ix-ico svg { width: 20px; height: 20px; }
.ix-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ix-t b { font-size: 1rem; font-weight: 600; }
.ix-t small { font-size: 0.8rem; color: var(--muted); }
.ix-go { width: 8px; height: 8px; border-top: 1.6px solid var(--amber-dark); border-right: 1.6px solid var(--amber-dark); transform: rotate(45deg); justify-self: center; transition: transform 0.3s var(--ease-premium); }
.hm-index a:hover .ix-go { transform: translateX(4px) rotate(45deg); }

/* ---------- services, one per band ---------- */
.svc { padding: 88px 0 !important; border-top: 1px solid var(--line); }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.svc.flip .svc-gfx { order: -1; }
.svc h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.14; letter-spacing: -0.026em; max-width: 17ch; margin: 18px 0 16px; }
.svc-copy > p:not(.svc-label) { font-size: 1.02rem; line-height: 1.75; color: #5a4e3c; max-width: 46ch; margin: 0; }
.svc-figs { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 26px 0 28px; }
.svc-figs dt { font: 600 1.4rem/1.1 'Poppins', sans-serif; color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; }
.svc-figs dd { margin: 6px 0 0; font-size: 0.78rem; color: var(--muted); max-width: 16ch; }

/* service animations: dark instrument panel, canvas drawn by home-scenes.js */
.svc-gfx { margin: 0; border-radius: 22px; overflow: hidden; position: relative;
  background: radial-gradient(120% 90% at 30% 0%, #2a2117 0%, #1a140d 58%, #140f09 100%);
  border: 1px solid rgba(255, 220, 170, 0.08);
  box-shadow: 0 24px 56px rgba(52, 34, 12, 0.22), inset 0 1px 0 rgba(255, 236, 205, 0.06); }
.gx-cap { display: flex; justify-content: space-between; gap: 12px; padding: 13px 18px 0; font: 500 0.66rem/1.3 'IBM Plex Mono', monospace; letter-spacing: 0.06em; text-transform: uppercase; color: #9c8b72; }
.gx-cap span:first-child { color: #eadfcb; display: inline-flex; align-items: center; gap: 8px; }
.gx-cap span:last-child { text-align: right; }
.gx-cap i { width: 6px; height: 6px; border-radius: 50%; background: #FFB020; box-shadow: 0 0 0 0 rgba(255, 176, 32, 0.5); flex: none; }
.svc-gfx.playing .gx-cap i { animation: gx-live 1.8s ease-out infinite; }
@keyframes gx-live { 0% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0.55); } 100% { box-shadow: 0 0 0 7px rgba(255, 176, 32, 0); } }
.gx-cv { display: block; width: 100%; height: auto; aspect-ratio: 400 / 280; padding: 4px 8px 10px; box-sizing: border-box; }
.gx-cap b { font-weight: inherit; }

/* layers: several canvases or a video in one panel, cross-faded */
.gx-stage { position: relative; aspect-ratio: 400 / 280; }
.gx-stage > .gx-layer { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0s linear 0.6s; }
.gx-stage > .gx-layer.on { opacity: 1; visibility: visible; transition: opacity 0.6s ease, visibility 0s; }
.gx-stage > .gx-cv { aspect-ratio: auto; }
.gx-stage > .gx-vid { inset: 6px 10px 10px; width: calc(100% - 20px); height: calc(100% - 16px); object-fit: cover; border-radius: 12px; background: #120d08; }
.gx-tabs { display: flex; gap: 8px; padding: 2px 14px 14px; }
.gx-tabs button { flex: 1 1 0; position: relative; overflow: hidden; text-align: left; cursor: pointer; padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(234, 223, 203, 0.12); background: rgba(234, 223, 203, 0.03); color: #9c8b72;
  font: 500 0.64rem/1.2 'IBM Plex Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.gx-tabs button:hover { color: #eadfcb; }
.gx-tabs button[aria-selected="true"] { color: #fff4e0; border-color: rgba(255, 176, 32, 0.42); background: rgba(255, 176, 32, 0.07); }
.gx-tabs button:focus-visible { outline: 2px solid #FFB020; outline-offset: 2px; }
.gx-tabs i { position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--p, 0) * 100%); background: #FFB020; }
.gx-tabs button[aria-selected="false"] i { width: 0; }

/* testing: a glimpse of the real rig under the animation */
.gx-glimpse { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; align-items: center; margin: 0 14px 14px; padding: 10px; border-radius: 14px; background: rgba(234, 223, 203, 0.035); border: 1px solid rgba(234, 223, 203, 0.1); }
.gl-media { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #241a0e; }
.gl-media img, .gl-media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; display: block; }
.svc-gfx.playing .gl-media img { animation: glKen 16s ease-in-out infinite alternate; }
@keyframes glKen { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1%, 2%); } }
.gl-k { font: 600 0.6rem/1 'IBM Plex Mono', monospace; letter-spacing: 0.14em; text-transform: uppercase; color: #FFB020; }
.gl-txt p { margin: 8px 0 0; font-size: 0.82rem; line-height: 1.55; color: #d9c9ad; }

/* ---------- case reel ---------- */
.hm-cases { padding: 96px 0 !important; border-top: 1px solid var(--line); }
.cr-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 36px; }
.cr-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.14; letter-spacing: -0.026em; margin: 16px 0 0; }
.cr-lede { max-width: 44ch; margin: 0; font-size: 1rem; line-height: 1.7; color: #5a4e3c; }
.cr { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 36px; align-items: stretch; }
.cr-side { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.cr-inds { display: flex; flex-direction: column; }
.cr-ind { position: relative; display: block; width: 100%; text-align: left; cursor: pointer; padding: 18px 4px 20px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--muted); font: inherit; transition: color 0.25s, padding 0.35s var(--ease-premium); }
.cr-ind b { display: block; font: 600 1.15rem/1.3 'Poppins', sans-serif; color: inherit; letter-spacing: -0.01em; }
.cr-ind span { display: block; margin-top: 4px; font: 400 0.68rem/1.4 'IBM Plex Mono', monospace; letter-spacing: 0.04em; color: var(--muted); opacity: 0.8; }
.cr-ind i { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.cr-ind em { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--amber); }
.cr-ind:hover { color: var(--ink); }
.cr-ind.on { color: var(--ink); padding-left: 12px; }
.cr-ind.on b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 10px 2px -12px; border-radius: 50%; background: var(--amber); vertical-align: middle; }
.cr-ind:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.cr-all { align-self: flex-start; }

.cr-stage { position: relative; min-height: 470px; border-radius: 24px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 80% 0%, #2a2117 0%, #1a140d 60%, #140f09 100%);
  box-shadow: 0 30px 70px rgba(52, 34, 12, 0.24), inset 0 1px 0 rgba(255, 236, 205, 0.06); }
.cr-slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); opacity: 0; visibility: hidden; transition: opacity 0.7s ease, visibility 0s linear 0.7s; }
.cr-slide.on { opacity: 1; visibility: visible; transition: opacity 0.7s ease, visibility 0s; z-index: 1; }
.cr-img { position: relative; overflow: hidden; background: #241a0e; }
.cr-img img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); }
.cr-slide.on .cr-img img { animation: crKen 9s ease-out forwards; }
@keyframes crKen { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.cr-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 15, 9, 0) 55%, rgba(20, 15, 9, 0.85) 100%), linear-gradient(180deg, rgba(20, 15, 9, 0) 60%, rgba(20, 15, 9, 0.45) 100%); }
.cr-code { position: absolute; left: 18px; top: 18px; z-index: 1; padding: 7px 10px; border-radius: 8px; font: 600 0.72rem/1 'IBM Plex Mono', monospace; letter-spacing: 0.1em; color: #fff8ec; background: rgba(20, 14, 6, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.18); }
.cr-body { position: relative; display: flex; flex-direction: column; padding: 38px 40px 34px 34px; color: #eadfcb; }
.cr-body > * { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s var(--ease-premium); }
.cr-slide.on .cr-body > * { opacity: 1; transform: none; }
.cr-slide.on .cr-body > :nth-child(2) { transition-delay: 0.08s; }
.cr-slide.on .cr-body > :nth-child(3) { transition-delay: 0.16s; }
.cr-slide.on .cr-body > :nth-child(4) { transition-delay: 0.24s; }
.cr-slide.on .cr-body > :nth-child(5) { transition-delay: 0.32s; }
.cr-slide.on .cr-body > :nth-child(6) { transition-delay: 0.4s; }
.cr-kicker { margin: 0; font: 600 0.64rem/1 'IBM Plex Mono', monospace; letter-spacing: 0.16em; text-transform: uppercase; color: #FFB020; }
.cr-body h3 { margin: 14px 0 0; font: 600 1.42rem/1.25 'Poppins', sans-serif; letter-spacing: -0.015em; color: #fff8ec; max-width: 22ch; }
.cr-q { margin: 14px 0 0; font-size: 0.94rem; line-height: 1.6; color: #b9a98f; max-width: 40ch; }
.cr-d { margin: 18px 0 0; padding-left: 14px; border-left: 2px solid #FFB020; font-size: 0.95rem; line-height: 1.6; color: #eadfcb; max-width: 42ch; }
.cr-d span { display: block; margin-bottom: 4px; font: 600 0.6rem/1 'IBM Plex Mono', monospace; letter-spacing: 0.14em; text-transform: uppercase; color: #9c8b72; }
.cr-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: auto 0 0; padding-top: 22px; }
.cr-figs div { padding: 12px 14px; border-radius: 12px; background: rgba(234, 223, 203, 0.05); border: 1px solid rgba(234, 223, 203, 0.08); }
.cr-figs dt { font: 600 1.35rem/1.1 'Poppins', sans-serif; letter-spacing: -0.02em; color: #FFC64A; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cr-figs dd { margin: 6px 0 0; font-size: 0.74rem; line-height: 1.4; color: #b9a98f; }
.cr-go { align-self: flex-start; margin-top: 20px; font: 600 0.86rem/1 'Poppins', sans-serif; color: #fff4e0; text-decoration: none; border-bottom: 1.5px solid #FFB020; padding-bottom: 6px; }
.cr-go::after { content: " \2192"; color: #FFB020; }
.cr-go:hover { color: #FFC64A; }
.cr-go:focus-visible { outline: 2px solid #FFB020; outline-offset: 4px; }
.cr-mark { position: absolute; right: 22px; top: 18px; font: 700 3.6rem/1 'IBM Plex Mono', monospace; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px rgba(234, 223, 203, 0.09); pointer-events: none; }
.cr-nav { position: absolute; right: 18px; bottom: 18px; z-index: 3; display: flex; gap: 8px; }
.cr-nav button { width: 38px; height: 38px; border-radius: 50%; cursor: pointer; border: 1px solid rgba(234, 223, 203, 0.22); background: rgba(20, 14, 6, 0.5); position: relative; transition: background 0.2s, border-color 0.2s; }
.cr-nav button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-top: 1.6px solid #eadfcb; border-right: 1.6px solid #eadfcb; transform: translate(-65%, -50%) rotate(45deg); }
.cr-nav .cr-prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.cr-nav button:hover { background: rgba(255, 176, 32, 0.16); border-color: rgba(255, 176, 32, 0.5); }
.cr-nav button:focus-visible { outline: 2px solid #FFB020; outline-offset: 2px; }
.cr-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: rgba(234, 223, 203, 0.06); }
.cr-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, #D98A24, #FFB020); }

/* ---------- closing ---------- */
.hm-close { padding: 24px 0 120px !important; }
.close-in { background: var(--ink); border-radius: 28px; padding: 76px 72px; position: relative; overflow: hidden; }
.close-in::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(224, 154, 60, 0.22), transparent 70%); pointer-events: none; }
.close-in > * { position: relative; }
.close-in h2 { color: #fffdf8; -webkit-text-fill-color: #fffdf8; background: none; font-size: clamp(1.8rem, 3.2vw, 2.6rem); max-width: 20ch; margin: 0 0 14px; }
.close-in p { color: #d9c9ad; font-size: 1.04rem; max-width: 44ch; margin: 0 0 34px; }
.hm-call { cursor: pointer; background: none; border: 0; border-bottom: 1.5px solid #FFB020; padding: 0 0 6px; font: 600 0.92rem/1 'Poppins', sans-serif; color: #fff4e0; }
.hm-call:hover { color: #FFC64A; }
.hm-call:focus-visible { outline: 2px solid #FFB020; outline-offset: 4px; }

/* ---------- book-a-call dialog ---------- */
.call-dlg { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); border: 0; border-radius: 22px; padding: 30px 30px 26px; background: #fffdf8; color: var(--ink); box-shadow: 0 30px 80px rgba(20, 14, 6, 0.35); }
.call-dlg::backdrop { background: rgba(20, 14, 6, 0.5); backdrop-filter: blur(3px); }
.call-x { position: absolute; top: 14px; right: 14px; margin: 0; }
.call-x button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--ink); }
.call-dlg h3 { font-size: 1.3rem; margin: 0 0 6px; padding-right: 40px; }
.call-sub { font-size: 0.88rem; color: var(--muted); margin: 0 0 20px; }
.meet-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.meet-fields label, .meet-slots { display: flex; flex-direction: column; gap: 6px; }
.meet-fields .full, .meet-slots { grid-column: 1 / -1; }
.meet-fields label > span, .meet-slots > span { font: 500 0.66rem/1 'IBM Plex Mono', monospace; color: var(--muted); }
.meet-fields input, .meet-fields textarea { width: 100%; box-sizing: border-box; font: 400 0.9rem/1.4 'Poppins', sans-serif; color: var(--ink); padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; }
.meet-fields input:focus, .meet-fields textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
.meet-status { min-height: 1.2em; margin: 12px 0 0; font: 500 0.78rem/1.4 'IBM Plex Mono', monospace; }
.meet-btn { width: 100%; justify-content: center; border: none; margin-top: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hm-hero { padding: 72px 0 80px !important; }
  .hm-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .svc { padding: 64px 0 !important; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cr { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .cr-side { gap: 18px; }
  .cr-inds { flex-direction: row; overflow-x: auto; gap: 8px; scrollbar-width: none; margin: 0 -4px; padding: 0 4px 2px; }
  .cr-inds::-webkit-scrollbar { display: none; }
  .cr-ind { flex: none; width: auto; padding: 10px 16px 12px; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
  .cr-ind span { display: none; }
  .cr-ind b { font-size: 0.9rem; }
  .cr-ind.on { padding-left: 16px; background: var(--ink); color: #fff8ec; border-color: var(--ink); }
  .cr-ind.on b::before { display: none; }
  .cr-ind i { left: 12px; right: 12px; bottom: 5px; }
  .cr-ind.on em { background: #FFB020; }
  .cr-side { display: contents; }
  .cr-inds { order: 1; }
  .cr-stage { order: 2; }
  .cr-all { order: 3; margin-top: 4px; }
  .cr-stage { min-height: 0; }
  .cr-slide { position: absolute; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .cr-slide.on { position: relative; }
  .cr-img { aspect-ratio: 16 / 9; }
  .cr-img::after { background: linear-gradient(180deg, rgba(20, 15, 9, 0) 50%, rgba(20, 15, 9, 0.85) 100%); }
  .cr-body { padding: 24px 22px 74px; }
  .svc.flip .svc-gfx, .svc-gfx { order: 2; }
  .svc-gfx { max-width: 560px; }
}
@media (max-width: 640px) {
  .hm-hero { padding: 52px 0 64px !important; }
  .hm-hero h1 { font-size: 2.15rem; }
  .hm-lede { font-size: 1rem; }
  .hm-index a { grid-template-columns: 26px 36px minmax(0, 1fr) 16px; gap: 10px; padding: 16px 4px; }
  .ix-ico { width: 36px; height: 36px; }
  .svc { padding: 52px 0 !important; }
  .svc-gfx { border-radius: 18px; }
  .gx-cap { padding: 11px 14px 0; font-size: 0.6rem; }
  .gx-cap span:last-child { display: none; }
  .gx-cv { padding: 2px 4px 6px; }
  .svc-figs { gap: 14px 26px; }
  .svc-figs dt { font-size: 1.2rem; }
  .hm-cases { padding: 60px 0 !important; }
  .cr-head { margin-bottom: 22px; }
  .cr-body h3 { font-size: 1.2rem; }
  .cr-figs dt { font-size: 1.15rem; white-space: normal; }
  .cr-mark { font-size: 2.6rem; top: 14px; right: 14px; }
  .cr-nav { right: 14px; bottom: 14px; }
  .gx-tabs { padding: 2px 10px 10px; gap: 6px; }
  .gx-tabs button { padding: 9px 10px; font-size: 0.58rem; }
  .gx-stage > .gx-vid { inset: 4px 6px 8px; width: calc(100% - 12px); height: calc(100% - 12px); }
  .gx-glimpse { margin: 0 10px 10px; gap: 12px; padding: 8px; }
  .gl-txt p { font-size: 0.76rem; }
  .close-in { padding: 48px 24px; border-radius: 22px; }
  .meet-fields { grid-template-columns: minmax(0, 1fr); }
  .call-dlg { padding: 24px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-gfx.playing .gx-cap i { animation: none; }
  .hm-index a { transition: none; }
  .gx-stage > .gx-layer, .cr-slide, .cr-body > * { transition: none !important; }
  .cr-slide.on .cr-img img, .svc-gfx.playing .gl-media img { animation: none; }
}

/* ============================================================
   VIDEO HERO: the previous dark hero, with a muted service loop
   playing behind it (17 s, five scenes, one per service).
   ============================================================ */
section.dark.home-hero.hm-vhero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  min-height: min(88vh, 860px); padding: 120px 0 132px !important;
  background: #0b0905 url("../video/home-loop-poster.jpg") center / cover no-repeat;
}
.hv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hv-shade { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 65% at 50% 46%, rgba(10, 7, 3, 0.42) 0%, rgba(10, 7, 3, 0.62) 100%), linear-gradient(180deg, rgba(10, 7, 3, 0.3) 0%, rgba(10, 7, 3, 0.08) 40%, rgba(10, 7, 3, 0.7) 100%); }
section.dark.home-hero.hm-vhero::before { z-index: 1; }
.hm-vhero > .wrap.hv-panel { position: relative; z-index: 2; width: 100%; }
.hm-vhero .hero-headline { max-width: 980px; }
.hm-vhero .lede { max-width: 760px; }

/* scene chapters: show which service is on screen; each links to its page */
.hv-chapters { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 2; display: flex; gap: 18px; }
.hv-chapters a { display: flex; flex-direction: column; gap: 8px; width: 96px; text-decoration: none; color: rgba(255, 244, 224, 0.55); font: 500 0.74rem/1 'Poppins', sans-serif; transition: color 0.3s; }
.hv-chapters a:hover, .hv-chapters a.on { color: #fff8ec; }
.hv-chapters a:focus-visible { outline: 2px solid #FFB020; outline-offset: 4px; }
.hv-chapters i { position: relative; display: block; height: 2px; background: rgba(255, 255, 255, 0.22); overflow: hidden; border-radius: 2px; }
.hv-chapters i::after { content: ""; position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: #FFB020; }
.hv-pause { position: absolute; right: 22px; bottom: 22px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 244, 224, 0.35); color: #fff4e0; }
.hv-pause:hover { border-color: #FFB020; }
.hv-pause:focus-visible { outline: 2px solid #FFB020; outline-offset: 3px; }
.hv-ic { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.hv-pause[aria-pressed="true"] .hv-ic { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
.hv-credit { position: absolute; left: 16px; bottom: 10px; z-index: 2; font: 400 0.56rem/1 'IBM Plex Mono', monospace; color: rgba(255, 255, 255, 0.4); }

/* service index section under the hero */
.hm-hero#index { padding: 84px 0 88px !important; }
.hm-h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; max-width: 14ch; margin: 0 0 20px; }

@media (max-width: 760px) {
  section.dark.home-hero.hm-vhero { min-height: 0; padding: 88px 0 112px !important; }
  .hv-chapters { gap: 8px; bottom: 24px; }
  .hv-chapters a { width: 58px; font-size: 0.6rem; gap: 6px; }
  .hv-pause { right: 12px; bottom: 14px; width: 32px; height: 32px; }
  .hv-credit { display: none; }
  .hm-hero#index { padding: 64px 0 !important; }
}
@media (max-width: 420px) {
  .hv-chapters a { width: 50px; }
  .hv-chapters span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-video { display: none; }
  .hv-pause { display: none; }
}

/* simulation: WebGL jounce bumper under a 2D overlay (home-scenes.js) */
.gx-3d .gx-gl { position: absolute; display: block; }
.gx-stage > .gx-3d .gx-ov { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
