/* Expertise overview pages (overview.js). Loaded only on pages listed in cms/server/overviews.json.
   Built from the template's own tokens: IBM Plex, --rule, --card, --muted-foreground, container-lev. */

/* ---------- the template, quieted ---------- */
/* the story body and "More customer stories": kept in the DOM (their edits still resolve), not shown */
body > .marketing-page-root > section:nth-of-type(2),
body > .marketing-page-root > section:nth-of-type(3) { display: none !important; }
/* hero: no story navigation, no video; the frame stays and holds the overview visual */
body > .marketing-page-root > section:first-of-type > .container-lev > div:first-child > .ml-auto { display: none !important; }
.customer-story-media-frame > div:first-child > :not(.zo-hero-visual) { visibility: hidden !important; pointer-events: none !important; }
.customer-story-media-frame video { display: none !important; }
/* phones: when the page's scene has a phone plate (pages/<slug>.js 'hero@m', live.js marks <html>), the frame takes its shape */
@media (max-width: 767.98px) {
  html[data-z21-m~="hero"] .customer-story-media-frame > div:first-child:has(> .zo-hero-visual) { aspect-ratio: 560 / 438 !important; height: auto !important; }
}
/* the closing band: the page's studio plate (overview.js sets data-z21-scene="<slug>:cta") replaces the template's photo */
footer [data-z21-scene$=":cta"] > :not([data-z21-live]) { visibility: hidden !important; }
.customer-story-media-frame > div:first-child { position: relative; background: #000; }
.zo-hero-visual { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
body > .marketing-page-root > section:first-of-type h1 {
  font-size: clamp(2.5rem, 1.6rem + 2.2vw, 3.4rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 600;
}

/* ---------- shared ---------- */
.zo {
  --zo-rule: var(--rule, rgba(255,255,255,.06));
  --zo-rule-strong: color-mix(in oklab, var(--foreground) 14%, transparent);
  --zo-mute: var(--muted-foreground, #b8b8b8);
  --zo-card: color-mix(in oklab, var(--card, #151515) 45%, transparent);
  --zo-mono: var(--font-mono, "IBM Plex Mono", ui-monospace, monospace);
  --zo-ease: cubic-bezier(.16, 1, .3, 1);
  color: var(--foreground);
}
.zo .zo-kicker, .zo .zo-n {
  font-family: var(--zo-mono); font-size: 12.5px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--zo-mute); font-weight: 400;
}
/* section labels read as words, not mono caps: only the index numbers keep the mono */
.zo .zo-eyebrow, .zo .zo-label, .zo .zo-caps-label, .zo .zo-pole-i {
  font-family: inherit; font-size: 15px; line-height: 1.4; letter-spacing: -.003em; color: var(--zo-mute); font-weight: 500;
}
.zo .zo-kicker span { opacity: .5; margin: 0 .15em; }
.zo .zo-h2 {
  font-size: clamp(2rem, 1.15rem + 1.75vw, 2.95rem); line-height: 1.08; letter-spacing: -.026em; font-weight: 500;
  margin: 1.1rem 0 0; max-width: 21ch; text-wrap: balance;
}
.zo .zo-prose { margin-top: 1.75rem; max-width: 42rem; }
.zo .zo-prose p { font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); line-height: 1.68; color: var(--zo-mute); letter-spacing: -.003em; }
.zo .zo-prose p + p { margin-top: 1.15em; }
.zo .zo-arr { width: 1em; height: 1em; flex: none; transition: transform .45s var(--zo-ease); }
.zo a:hover .zo-arr, .zo a:focus-visible .zo-arr { transform: translate(2px, -2px); }
.zo a:focus-visible { outline: 2px solid var(--foreground); outline-offset: 4px; border-radius: 6px; }

/* the strong way on: an outlined pill that fills on hover */
.zo .zo-more {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: 2.25rem; padding: .8rem 1.15rem .8rem 1.25rem;
  border: 1px solid var(--zo-rule-strong); border-radius: 999px; font-size: 15.5px; font-weight: 500; color: var(--foreground);
  transition: background-color .35s var(--zo-ease), color .35s var(--zo-ease), border-color .35s var(--zo-ease);
}
.zo a.zo-more:hover, .zo .zo-card:hover .zo-more { background: var(--foreground); color: var(--background); border-color: var(--foreground); }

/* ---------- body: sticky sidebar + editorial column ---------- */
.zo-body { padding: clamp(4.5rem, 8vw, 8.5rem) 0 clamp(4.5rem, 8vw, 8rem); }
.zo-cols { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 4rem; align-items: start; }
.zo-side { align-self: stretch; }
.zo-side-in { position: sticky; top: 7.25rem; padding-bottom: 1rem; max-width: 22rem; }
.zo .zo-side-name { font-size: clamp(2.75rem, 1.6rem + 2.4vw, 3.75rem); line-height: 1; letter-spacing: -.035em; font-weight: 600; margin: .9rem 0 0; }
.zo .zo-side-tag { margin-top: .7rem; font-size: 1.1875rem; line-height: 1.4; color: var(--foreground); opacity: .86; }
.zo .zo-side-block { margin-top: 2.1rem; padding-top: 1.15rem; border-top: 1px solid var(--zo-rule); }
.zo .zo-side-block > p { margin-top: .7rem; font-size: 1rem; line-height: 1.62; color: var(--zo-mute); }
.zo .zo-side-links { margin-top: .5rem; }
.zo .zo-side-links a {
  display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: center; padding: .95rem 0; border-bottom: 1px solid var(--zo-rule);
  font-size: 1.3rem; line-height: 1.2; letter-spacing: -.012em; font-weight: 500; color: color-mix(in oklab, var(--foreground) 78%, transparent);
  transition: color .3s var(--zo-ease), padding .45s var(--zo-ease);
}
.zo .zo-side-links li:last-child a { border-bottom: 0; }
.zo .zo-side-links a:hover, .zo .zo-side-links a.is-current { color: var(--foreground); }
.zo .zo-side-links a:hover { padding-left: .4rem; }
.zo .zo-side-links .zo-n { transition: color .3s; }
.zo .zo-side-links a.is-current .zo-n { color: var(--foreground); }
.zo .zo-side-links a .zo-arr { width: 1.05rem; height: 1.05rem; opacity: .55; }
.zo .zo-side-links a:hover .zo-arr { opacity: 1; }
.zo .zo-side-all { display: inline-flex; align-items: center; gap: .45rem; margin-top: .8rem; font-size: 1rem; font-weight: 500; color: var(--foreground); }
.zo .zo-side-all span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--zo-ease); }
.zo .zo-side-all:hover span { background-size: 100% 1px; }

.zo-main { min-width: 0; }
.zo-block + .zo-block { margin-top: clamp(4rem, 6.5vw, 6.5rem); padding-top: clamp(4rem, 6.5vw, 6.5rem); border-top: 1px solid var(--zo-rule); }

/* ---------- capabilities: one system for both disciplines ---------- */
.zo .zo-caps-label { margin-top: 2.75rem; }
.zo-caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin-top: 1rem; }
.zo-cap {
  display: flex; flex-direction: column; padding: 1.4rem 1.35rem 1.5rem; border: 1px solid var(--zo-rule);
  border-radius: 14px; background: var(--zo-card); transition: border-color .4s var(--zo-ease), transform .7s var(--zo-ease), opacity .7s var(--zo-ease);
}
.zo-cap:hover { border-color: var(--zo-rule-strong); }
.zo-caps[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zo-caps[data-n="4"] .zo-cap:nth-child(4) { transition-delay: .24s; }
.zo .zo-cap h3 { margin-top: 1.25rem; font-size: 1.1875rem; line-height: 1.25; letter-spacing: -.012em; font-weight: 500; }
.zo .zo-cap p { margin-top: .6rem; font-size: .9375rem; line-height: 1.52; color: var(--zo-mute); }
.zo-caps .zo-cap { opacity: 0; transform: translateY(14px); }
.zo-caps.is-in .zo-cap { opacity: 1; transform: none; }
.zo-caps.is-in .zo-cap:nth-child(2) { transition-delay: .08s; }
.zo-caps.is-in .zo-cap:nth-child(3) { transition-delay: .16s; }

/* ---------- how they connect: two equal poles, a two-way link ---------- */
.zo-pair { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem minmax(0, 1fr); margin: 3rem 0 0; }
.zo-pole {
  padding: 1.6rem 1.6rem 1.75rem; border: 1px solid var(--zo-rule-strong); border-radius: 14px; background: var(--zo-card);
  transition: transform .9s var(--zo-ease), opacity .9s var(--zo-ease);
}
.zo .zo-pole-q { margin-top: 1.6rem; font-size: clamp(2rem, 1.3rem + 1.5vw, 2.6rem); line-height: 1; letter-spacing: -.03em; font-weight: 500; }
/* the terms as one plain run of words, not pills */
.zo-pole ul { display: flex; flex-wrap: wrap; gap: .3rem .55rem; margin-top: 1.5rem; }
.zo-pole li { font-size: 1rem; line-height: 1.45; color: color-mix(in oklab, var(--foreground) 82%, transparent); }
.zo-pole li + li::before { content: "/"; margin-right: .55rem; color: var(--zo-mute); opacity: .6; }
.zo-link { position: relative; }
.zo-wire { position: absolute; left: 0; right: 0; height: 1px; background: color-mix(in oklab, var(--foreground) 34%, transparent); transform: scaleX(0); transition: transform .8s var(--zo-ease) .35s; }
.zo-wire-a { top: calc(50% - 9px); transform-origin: left; }
.zo-wire-b { top: calc(50% + 9px); transform-origin: right; }
.zo-node { position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -5.5px; border-radius: 50%; border: 1px solid var(--foreground); background: var(--background); opacity: 0; transition: opacity .5s .9s; }
.zo-pulse { position: absolute; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--foreground); box-shadow: 0 0 10px 1px color-mix(in oklab, var(--foreground) 70%, transparent); opacity: 0; }
.zo-pulse-a { top: calc(50% - 9px); left: 0; }
.zo-pulse-b { top: calc(50% + 9px); right: 0; }
.zo-pair figcaption { grid-column: 1 / -1; margin-top: 1.6rem; text-align: center; font-size: 1.0625rem; line-height: 1.5; color: var(--foreground); opacity: .9; }
.zo-pair .zo-pole-0 { opacity: 0; transform: translateX(-18px); }
.zo-pair .zo-pole-1 { opacity: 0; transform: translateX(18px); }
.zo-pair.is-in .zo-pole { opacity: 1; transform: none; }
.zo-pair.is-in .zo-wire { transform: scaleX(1); }
.zo-pair.is-in .zo-node { opacity: 1; }
.zo-pair.is-in .zo-pulse-a { animation: zo-run-a 3.2s cubic-bezier(.45, 0, .55, 1) 1.2s infinite; }
.zo-pair.is-in .zo-pulse-b { animation: zo-run-b 3.2s cubic-bezier(.45, 0, .55, 1) 2.8s infinite; }
@keyframes zo-run-a { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 5px); opacity: 0; } }
@keyframes zo-run-b { 0% { right: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { right: calc(100% - 5px); opacity: 0; } }

/* ---------- statement: the company's own line, not a quote card ---------- */
.zo-statement { position: relative; overflow: hidden; padding: clamp(6rem, 12vw, 11.5rem) 0; border-top: 1px solid var(--zo-rule); border-bottom: 1px solid var(--zo-rule); text-align: center; }
/* the 021 construction grid, faint, fading out from the centre */
.zo-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(90deg, color-mix(in oklab, var(--foreground) 7%, transparent) 1px, transparent 1px),
                    linear-gradient(0deg, color-mix(in oklab, var(--foreground) 7%, transparent) 1px, transparent 1px);
  background-size: 223.2px 100px; background-position: center center;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 50%, #000 0%, transparent 100%); mask-image: radial-gradient(60% 70% at 50% 50%, #000 0%, transparent 100%);
}
.zo-statement blockquote { position: relative; margin: 0 auto; max-width: 62rem; }
.zo-statement blockquote p { font-size: clamp(2rem, .9rem + 3.6vw, 4.25rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 500; text-wrap: balance; }
.zo-statement .zo-line { display: block; }
.zo-statement .zo-line { color: color-mix(in oklab, var(--foreground) 24%, transparent); transition: color .9s var(--zo-ease); }
.zo-statement .zo-line.is-lit { color: var(--foreground); }
.zo-statement footer { margin-top: 2.75rem; display: inline-flex; align-items: center; gap: .9rem; font-size: 15px; font-weight: 500; color: var(--zo-mute); }
.zo-statement footer::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; opacity: .6; }

/* ---------- explore: two equal ways in ---------- */
.zo-explore { padding: clamp(5rem, 9vw, 9rem) 0; }
.zo-explore-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.zo-explore-head .zo-h2 { margin: 0; }
.zo-explore-head p { max-width: 30rem; font-size: 1.0625rem; line-height: 1.6; color: var(--zo-mute); }
.zo-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.75rem; }
.zo-card {
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--zo-rule-strong); border-radius: 14px;
  background: var(--marketing-surface-card, #0b0b0b); color: var(--foreground);
  transition: border-color .5s var(--zo-ease), transform .8s var(--zo-ease), opacity .8s var(--zo-ease);
}
.zo-card:hover { border-color: color-mix(in oklab, var(--foreground) 32%, transparent); }
.zo-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border-bottom: 1px solid var(--zo-rule); }
.zo-card-scene { position: absolute; inset: 0; transition: transform 1.1s var(--zo-ease); }
.zo-card:hover .zo-card-scene { transform: scale(1.025); }
.zo-card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 1.75rem 1.75rem 2rem; }
.zo .zo-card h3 { margin-top: 1.1rem; font-size: clamp(1.75rem, 1.2rem + 1.1vw, 2.25rem); line-height: 1.05; letter-spacing: -.028em; font-weight: 500; }
.zo .zo-card p { margin-top: .85rem; max-width: 38ch; font-size: 1.0625rem; line-height: 1.58; color: var(--zo-mute); }
.zo .zo-card .zo-more { margin-top: auto; }
.zo-card-body p { margin-bottom: 2rem; }
.zo-cards .zo-card { opacity: 0; transform: translateY(18px); }
.zo-cards.is-in .zo-card { opacity: 1; transform: none; }
.zo-cards.is-in .zo-card + .zo-card { transition-delay: .1s; }

/* ---------- tablet and phone: one column, the sidebar becomes a short category bar ---------- */
@media (max-width: 1023.98px) {
  .zo-cols { display: block; }
  /* the same sidebar, as a short category bar: name, line, the two disciplines */
  .zo-side-in { position: static; max-width: none; padding-bottom: 1.5rem; margin-bottom: 3.5rem; border-bottom: 1px solid var(--zo-rule); }
  .zo .zo-side-name { font-size: 2.25rem; margin-top: .6rem; }
  .zo .zo-side-tag { font-size: 1.0625rem; }
  .zo .zo-side-block:not(.zo-side-inside) { display: none; }
  .zo .zo-side-inside { margin-top: 1.1rem; padding-top: 0; border-top: 0; }
  .zo .zo-side-inside .zo-label { display: none; }
  .zo .zo-side-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 0; }
  .zo .zo-side-links a { display: inline-flex; gap: .55rem; padding: .6rem .9rem; border: 1px solid var(--zo-rule-strong); border-radius: 999px; font-size: .9375rem; color: var(--foreground); }
  .zo .zo-side-links li:last-child a { border-bottom: 1px solid var(--zo-rule-strong); }
  .zo .zo-side-links a:hover { padding-left: .9rem; }
  .zo .zo-side-links .zo-n { font-size: 11px; }
  .zo-explore-head { display: block; }
  .zo-explore-head p { margin-top: 1rem; }
}
@media (max-width: 767.98px) {
  .zo-caps, .zo-caps[data-n="4"] { grid-template-columns: 1fr; }
  .zo .zo-cap h3 { margin-top: 1rem; }
  .zo-pair { grid-template-columns: 1fr; }
  .zo-link { height: 4.5rem; }
  .zo-wire { top: 0 !important; bottom: 0; left: calc(50% - 9px); right: auto; width: 1px; height: auto; transform: scaleY(0); }
  .zo-wire-a { transform-origin: top; }
  .zo-wire-b { left: calc(50% + 9px); transform-origin: bottom; }
  .zo-pair.is-in .zo-wire { transform: scaleY(1); }
  .zo-pulse { display: none; }
  .zo-pair .zo-pole-0, .zo-pair .zo-pole-1 { transform: translateY(14px); }
  .zo-cards { grid-template-columns: 1fr; }
  .zo-card-body { padding: 1.4rem 1.35rem 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .zo-caps .zo-cap, .zo-cards .zo-card, .zo-pair .zo-pole { opacity: 1 !important; transform: none !important; transition: none !important; }
  .zo-wire { transform: none !important; transition: none !important; }
  .zo-node { opacity: 1; transition: none; }
  .zo-pulse { display: none; }
}
