/* ==========================================================================
   JBT — "Four sides of one strategy" Services section
   ========================================================================== */
.svx {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: radial-gradient(80% 90% at 30% 55%, #ffffff 0%, #fbfaf6 45%, #efebe2 100%);
  color: #111;
  font-family: "Instrument Sans", system-ui, sans-serif;
  --svx-accent: #009b48;
  --gutter: clamp(16px, 5vw, 72px);
}
.svx__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* a soft contact shadow grounding the cube */
.svx::before {
  content: ""; position: absolute; left: 30%; top: 78%; width: 34vmin; height: 5vmin; margin-left: -17vmin;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(17, 17, 17, .22), rgba(17, 17, 17, 0)); pointer-events: none;
}

.svx__copy {
  position: absolute; z-index: 2; right: var(--gutter); top: calc(50% + var(--header-h, 76px) / 2); transform: translateY(-50%);
  width: min(460px, 40vw);
}
/* Shorter laptop screens: tighten the copy so it clears the header */
@media (min-width: 900px) and (max-height: 700px) {
  .svx__title { margin-top: 14px; font-size: clamp(30px, 3.2vw, 44px); }
  .svx__items { margin-top: 18px; }
  .svx__item p { margin-top: 8px; }
  .svx__item ul { margin-top: 12px; }
  .svx__progress { margin-top: 20px; }
}
.svx__eyebrow { display: flex; align-items: center; gap: 12px; font: 500 12px/1 "Instrument Sans", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.svx__eyebrow span { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid currentColor; border-radius: 50%; letter-spacing: 0; font-size: 11px; }
.svx__title { margin-top: 22px; font: 400 clamp(34px, 3.6vw, 56px)/1 "Instrument Serif", Georgia, serif; letter-spacing: -.02em; text-wrap: balance; }
.svx__title em { font-style: italic; }

/* The four services share one spot; the active one shows */
.svx__items { display: grid; margin-top: 30px; }
.svx__item { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); visibility: hidden; transition: opacity .5s cubic-bezier(.22, 1, .36, 1), transform .5s cubic-bezier(.22, 1, .36, 1), visibility .5s; }
.svx__item.is-active { opacity: 1; transform: none; visibility: visible; }
.svx__num { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #5f5d58; }
.svx__num i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.svx__item h3 { margin-top: 12px; font: 400 clamp(28px, 2.6vw, 40px)/1.05 "Instrument Serif", Georgia, serif; }
.svx__item p { margin-top: 12px; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; color: #2e2e2c; max-width: 44ch; }
.svx__item ul { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.svx__item li { font-size: 13px; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid rgba(17, 17, 17, .1); }

/* Four coloured segments: where you are, and a way to jump */
.svx__progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 30px; }
.svx__seg {
  appearance: none; border: 0; background: none; padding: 10px 0 0; cursor: pointer; text-align: left;
  font: 500 11px/1.2 "Instrument Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #8a877f;
  position: relative; transition: color .3s;
}
.svx__seg::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--c) 22%, #e3dfd6); transition: background .4s, height .3s; }
.svx__seg.is-done::before { background: color-mix(in srgb, var(--c) 55%, #e3dfd6); }
.svx__seg.is-active { color: #111; }
.svx__seg.is-active::before { background: var(--c); height: 6px; top: -1px; }
.svx__seg:focus-visible { outline: 2px solid #111; outline-offset: 4px; border-radius: 4px; }

/* Phones: cube on top, the service underneath (never over the cube) */
@media (max-width: 899px) {
  .svx { display: flex; flex-direction: column; padding-top: var(--header-h, 64px); }
  .svx__canvas { position: relative; inset: auto; flex: 1 1 auto; min-height: 30svh; height: auto; }
  .svx::before { display: none; }
  .svx__copy { position: relative; right: auto; top: auto; transform: none; width: auto; flex: none; padding: 0 20px calc(22px + env(safe-area-inset-bottom, 0px)); }
  .svx__title { margin-top: 14px; font-size: clamp(28px, 8vw, 36px); }
  .svx__items { margin-top: 16px; }
  .svx__item h3 { margin-top: 8px; font-size: 28px; }
  .svx__item p { margin-top: 8px; font-size: 15px; }
  .svx__item ul { margin-top: 12px; }
  .svx__item li { font-size: 12px; padding: 6px 11px; }
  .svx__progress { margin-top: 18px; }
  .svx__seg { font-size: 10px; }
}

/* Short phones: tighten the copy so the cube keeps a good share of the screen */
@media (max-width: 899px) and (max-height: 760px) {
  .svx__eyebrow { font-size: 11px; }
  .svx__eyebrow span { width: 26px; height: 26px; }
  .svx__title { margin-top: 8px; font-size: 24px; }
  .svx__items { margin-top: 10px; }
  .svx__item h3 { margin-top: 6px; font-size: 24px; }
  .svx__item p { margin-top: 6px; font-size: 14px; line-height: 1.5; }
  .svx__item ul { margin-top: 8px; gap: 6px; }
  .svx__item li { font-size: 11px; padding: 5px 9px; }
  .svx__progress { margin-top: 12px; }
}
/* Leave room for the chapter rail on large screens */
@media (min-width: 1240px) { .svx__copy { right: calc(var(--gutter) + 70px); } }

/* No 3D, reduced motion or no JavaScript: all four services listed, no controls */
.svx--static .svx__item, .svx--no-webgl .svx__item, html:not(.js) .svx__item { position: relative; opacity: 1; transform: none; visibility: visible; grid-area: auto; margin-bottom: 28px; }
.svx--static, .svx--no-webgl, html:not(.js) .svx { height: auto; min-height: 0; }
.svx--static .svx__copy, .svx--no-webgl .svx__copy, html:not(.js) .svx__copy { position: relative; top: auto; right: auto; transform: none; width: auto; max-width: 640px; margin-left: auto; padding: 96px var(--gutter); }
.svx--static .svx__progress, .svx--no-webgl .svx__progress, .svx--no-webgl .svx__canvas, html:not(.js) .svx__progress, html:not(.js) .svx__canvas { display: none; }
@media (prefers-reduced-motion: reduce) { .svx__item, .svx__seg, .svx__seg::before { transition: none; } }
