/* The Expiri design system's component styles, copied from design-system/project/components/bundle.css
   by design-system/tools/copy_to_website.py. Change them there, then run it again. */
/* Expiri components. Every color, radius and container size reads a token from tokens.css.
   Fluid type keeps its clamp() here; tokens.json holds each style's size at 1440px. */

.ex { font-family: var(--font-sans); font-size: 17px; line-height: 1.6; color: var(--ink); box-sizing: border-box; -webkit-font-smoothing: antialiased; }
.ex *, .ex *::before, .ex *::after { box-sizing: border-box; }
.ex:focus-visible, .ex :focus-visible { outline: 3px solid var(--ex-focus, var(--blue)); outline-offset: 3px; }

/* Tones: the ground of a section and the text colors that sit on it. */
.ex-tone-surface { background: var(--surface); color: var(--ink); --ex-text: var(--text); --ex-muted: var(--text-muted); --ex-sub: var(--text-muted); --ex-accent: var(--blue); --ex-focus: var(--blue); --ex-panel: var(--surface-alt); --ex-panel-border: var(--border); }
.ex-tone-alt { background: var(--surface-alt); color: var(--ink); --ex-text: var(--text); --ex-muted: var(--text-muted); --ex-sub: var(--text-muted); --ex-accent: var(--blue); --ex-focus: var(--blue); --ex-panel: var(--surface); --ex-panel-border: var(--border); }
.ex-tone-navy { background: var(--navy); color: var(--on-navy); --ex-text: var(--on-navy-muted); --ex-muted: var(--on-navy-subtle); --ex-sub: var(--on-navy-muted); --ex-accent: var(--blue-light); --ex-focus: var(--blue-light); --ex-panel: var(--navy-raised); --ex-panel-border: var(--navy-border); }
.ex-tone-blue { background: var(--blue-deep); color: var(--on-navy); --ex-text: var(--on-blue-muted); --ex-muted: var(--on-blue-muted); --ex-sub: var(--on-blue-muted); --ex-accent: var(--on-navy); --ex-focus: var(--on-navy); --ex-panel: var(--blue); --ex-panel-border: var(--blue); }

.ex-container { max-width: var(--container); margin: 0 auto; padding-left: clamp(20px, 4vw, var(--gutter)); padding-right: clamp(20px, 4vw, var(--gutter)); }
.ex-section > .ex-container { padding-top: clamp(48px, 8vw, var(--section-y)); padding-bottom: clamp(48px, 8vw, var(--section-y)); }
.ex-section--compact > .ex-container { padding-top: clamp(44px, 7vw, var(--section-y-compact)); padding-bottom: clamp(44px, 7vw, var(--section-y-compact)); }

/* Shared text pieces */
.ex-eyebrow { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ex-accent, var(--blue)); }
.ex-h2 { margin: 0; font-size: clamp(34px, 3.8vw, 54px); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; }
.ex-sub { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ex-sub, var(--text-muted)); }

/* Logo */
.ex-logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-weight: 700; letter-spacing: -0.02em; line-height: 1; text-decoration: none; }
.ex-logo svg { display: block; flex: 0 0 auto; }

/* Button */
.ex-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 34px; border: 0; border-radius: var(--radius-button); background: var(--blue); color: var(--on-navy); font-family: var(--font-sans); font-size: 18px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; }
.ex-btn:hover { background: var(--blue-deep); }
.ex-btn svg { flex: 0 0 auto; }
.ex-btn--md { min-height: 46px; padding: 0 22px; border-radius: var(--radius-field); font-size: 16px; }
.ex-btn--inverse { background: var(--surface); color: var(--blue-deep); }
.ex-btn--inverse:hover { background: var(--surface-alt); }

/* ArrowLink */
.ex-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ex-accent, var(--blue)); font-size: 17px; font-weight: 600; text-decoration: none; }
.ex-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.ex-link svg { flex: 0 0 auto; }

/* SiteHeader */
.ex-header > .ex-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px clamp(16px, 3vw, 32px); padding-top: 14px; padding-bottom: 14px; }
.ex-header .ex-logo { min-height: 52px; }
.ex-nav-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--field-border); border-radius: var(--radius-field); background: transparent; color: var(--on-navy); cursor: pointer; }
.ex-nav-toggle-open { display: inline-flex; }
.ex-nav-toggle-close { display: none; }
.ex-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(16px, 3vw, 32px); font-size: 16px; font-weight: 500; }
.ex-nav-link { padding: 12px 0; color: inherit; text-decoration: none; }
.ex-nav-link:hover { text-decoration: underline; text-underline-offset: 8px; }
.ex-nav-link[aria-current="page"] { color: var(--blue-light); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* Hero */
.ex-hero > .ex-container { display: flex; align-items: center; gap: clamp(24px, 4.5vw, 64px); padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(64px, 9vw, 128px); }
.ex-hero--compact > .ex-container { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(48px, 6vw, 88px); }
.ex-hero-text { flex: 1.3 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.ex-display { margin: 0; font-size: clamp(42px, 5.4vw, 78px); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.ex-lead { margin: 0; max-width: 560px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--ex-text); }
.ex-hero-text .ex-btn { margin-top: 8px; }
.ex-hero-art { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.ex-hero-art svg { width: 100%; max-width: 520px; height: auto; }
.ex-net-faint { stroke: var(--blue-bright); stroke-width: 1.5px; opacity: 0.35; }
.ex-net-mid { stroke: var(--blue-bright); stroke-width: 2px; opacity: 0.45; }
.ex-net-main { stroke: var(--blue-sky); stroke-width: 3px; }
.ex-net-outer { fill: var(--blue-ink); stroke: var(--blue-bright); stroke-width: 1.5px; }
.ex-net-node { fill: var(--blue); }
.ex-net-ring { fill: none; stroke: var(--blue-bright); stroke-width: 1.5px; opacity: 0.5; }
.ex-net-core { fill: var(--on-navy); }

/* LogoStrip */
.ex-strip { border-bottom: 1px solid var(--border); }
.ex-strip > .ex-container { display: flex; flex-wrap: wrap; align-items: center; gap: 24px clamp(24px, 4vw, 56px); padding-top: 44px; padding-bottom: 44px; }
.ex-strip-logos { display: flex; align-items: center; gap: clamp(20px, 4vw, 56px); }
.ex-strip-label { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.ex-strip-logo { display: inline-flex; align-items: center; }
.ex-strip-logo img { display: block; object-fit: contain; }
.ex-strip .ex-link { margin-left: auto; font-size: 16.5px; }

/* SectionHead */
.ex-head { margin-bottom: var(--space-52); }
.ex-head .ex-eyebrow { margin-bottom: var(--space-18); }
.ex-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.ex-head--split .ex-head-title { flex: 1 1 360px; min-width: 0; }
.ex-head--split .ex-sub { flex: 0 1 440px; min-width: 0; }
.ex-head--stack .ex-h2 { max-width: 900px; text-wrap: balance; }
.ex-head--stack .ex-sub { margin-top: var(--space-24); max-width: 760px; }

/* ServiceCard */
.ex-service { padding: var(--space-28); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); color: var(--ink); }
.ex-service-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 22px; border-radius: var(--radius-icon); background: var(--blue); color: var(--on-navy); }
.ex-service h3 { margin: 0 0 10px; font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
.ex-service p { margin: 0; font-size: 16px; color: var(--text-muted); }

/* Statement */
.ex-statement > .ex-container { max-width: 1000px; padding-top: clamp(52px, 9vw, 128px); padding-bottom: clamp(52px, 9vw, 128px); text-align: center; }
.ex-statement h2 { margin: 0 0 var(--space-28); font-size: clamp(40px, 6vw, 84px); font-weight: 800; line-height: 1; letter-spacing: -0.045em; text-wrap: balance; }
.ex-statement h2 span { color: var(--blue); }
.ex-statement p { margin: 0 auto; max-width: 760px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--text-muted); }

/* CompareCard */
.ex-compare { padding: var(--space-36); border-radius: var(--radius-card); background: var(--navy-raised); border: 1px solid var(--navy-border); color: var(--on-navy); }
.ex-compare--build { background: var(--blue); border-color: var(--blue); }
.ex-compare-label { margin: 0 0 6px; font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy-subtle); }
.ex-compare--build .ex-compare-label { color: var(--on-navy); }
.ex-compare h3 { margin: 0 0 24px; font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.ex-compare ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; font-size: 17.5px; color: var(--on-navy-muted); }
.ex-compare--build ul { color: var(--on-navy); font-weight: 500; }
.ex-compare li { display: flex; gap: 14px; }
.ex-compare li svg { flex: 0 0 auto; margin-top: 3px; color: var(--on-navy-subtle); }
.ex-compare--build li svg { color: var(--on-navy); }

/* CheckList */
.ex-checks { list-style: none; margin: 0; padding: 12px 32px; background: var(--surface-alt); border-radius: var(--radius-card); font-size: 18px; font-weight: 600; color: var(--ink); }
.ex-checks li { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border-list); }
.ex-checks li:last-child { border-bottom: 0; }
.ex-check-dot { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--radius-round); background: var(--blue); color: var(--on-navy); }

/* CtaBand */
.ex-cta > .ex-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 56px; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.ex-cta-text { flex: 1 1 480px; min-width: 0; }
.ex-cta .ex-h2 { margin-bottom: 14px; }

/* ContactForm */
.ex-form { display: flex; flex-direction: column; gap: 22px; padding: var(--space-36); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); color: var(--ink); --ex-focus: var(--blue); }
.ex-form-row { display: flex; flex-wrap: wrap; gap: 22px; }
.ex-field { min-width: 0; display: flex; flex-direction: column; gap: var(--space-8); }
.ex-form-row > .ex-field { flex: 1 1 200px; }
.ex-field label { font-size: 15.5px; font-weight: 600; }
.ex-field input, .ex-field textarea { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--field-border); border-radius: var(--radius-field); background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.5; }
.ex-field textarea { height: auto; min-height: 130px; padding: 14px 16px; resize: vertical; }
.ex-form .ex-btn { align-self: flex-start; min-height: 56px; }

/* Layout helpers for page markup */
/* A grid of cards: four across, two on a tablet, one on a phone. The wide kind is a pair that stacks. */
.ex-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-24); }
.ex-cards--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Two columns that hold and shrink together, then stack. Give each column its flex ratio in the page's own styles. */
.ex-split { display: flex; align-items: flex-start; gap: clamp(32px, 5vw, 72px); }
.ex-split > * { min-width: 0; }

/* Frame: the 16:10 box every case study's media sits in */
.ex-frame { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ex-panel, var(--surface-alt)); border: 1px solid var(--ex-panel-border, var(--border)); border-radius: var(--radius-card); }
.ex-frame > img, .ex-frame > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.ex-frame--logo { display: flex; align-items: center; justify-content: center; }
.ex-frame--logo > img { width: auto; height: auto; max-width: 42%; max-height: 56%; object-fit: contain; }

/* Carousel */
.ex-carousel-controls { display: flex; align-items: flex-start; gap: var(--space-8); margin-top: 14px; }
.ex-carousel-tabs { display: flex; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; gap: var(--space-8); }
.ex-carousel-tab, .ex-carousel-arrow { min-height: 44px; border: 1px solid var(--field-border); border-radius: var(--radius-field); background: transparent; color: var(--ex-muted, var(--text-muted)); font-family: var(--font-sans); font-size: 15px; font-weight: 600; cursor: pointer; }
.ex-carousel-tab { padding: 0 16px; }
.ex-carousel-tab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: var(--on-navy); }
.ex-carousel-arrow { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; padding: 0; }
.ex-carousel-arrow--prev svg { transform: rotate(180deg); }

/* CaseStudy */
.ex-case > .ex-container { display: flex; align-items: center; gap: clamp(32px, 4.5vw, 64px); }
.ex-case-text, .ex-case-media { flex: 1 1 0; min-width: 0; }
.ex-case--media-left > .ex-container { flex-direction: row-reverse; }
.ex-case .ex-eyebrow { margin-bottom: 20px; }
.ex-case h2 { margin: 0 0 var(--space-12); font-size: clamp(32px, 3.4vw, 48px); font-weight: 800; line-height: 1.06; letter-spacing: -0.035em; }
.ex-case-meta { margin: 0 0 var(--space-28); font-size: 16px; font-weight: 500; color: var(--ex-muted); }
.ex-case-lead { margin: 0 0 var(--space-18); font-size: 21px; font-weight: 600; line-height: 1.5; letter-spacing: -0.01em; }
.ex-case-body p { margin: 0 0 var(--space-18); max-width: 620px; font-size: 18.5px; line-height: 1.65; color: var(--ex-text); }
.ex-case-body p:last-child { margin-bottom: 0; }
.ex-case-links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: var(--space-24); }

/* Footer */
.ex-footer > .ex-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 40px; padding-bottom: 48px; }
.ex-footer-brand { display: flex; flex-direction: column; gap: 8px; }
.ex-footer-legal { font-size: 14.5px; color: var(--on-navy-subtle); }
.ex-footer-nav { display: flex; flex-wrap: wrap; gap: 0 32px; font-size: 15px; }
.ex-footer-nav a { padding: 12px 0; color: var(--on-navy-muted); text-decoration: none; }
.ex-footer-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ── Narrow screens ──
   Two widths matter, written as literals because custom properties don't work in media queries.
   Below 1024px two-column sections stack, because two columns of text and media are too tight
   on a tablet. Below 600px (phones) the nav becomes a menu button, the hero graphic goes, and
   cards, type and padding tighten. */

@media (max-width: 1023px) {
  .ex-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* The carousel's buttons stay on one line; the arrows go. */
  .ex-carousel-tabs { flex-wrap: nowrap; }
  .ex-carousel-tab { flex: 1 1 auto; padding: 0 8px; font-size: 14px; white-space: nowrap; }
  .ex-carousel-arrow { display: none; }

  /* A case study's two columns are narrow here, so its copy comes down a size. */
  .ex-case > .ex-container { gap: 32px; }
  .ex-case-meta { margin-bottom: 20px; font-size: 15px; }
  .ex-case-lead { font-size: 19px; }
  .ex-case-body p { font-size: 17px; }

  .ex-checks { padding: 4px 20px; font-size: 16.5px; }
  .ex-checks li { gap: 14px; padding: 16px 0; }
}

/* Below 900px the client strip's label sits above its logos; the link stays on the logos' row. */
@media (max-width: 899px) {
  .ex-strip > .ex-container { gap: 20px clamp(24px, 4vw, 56px); padding-top: 36px; padding-bottom: 36px; }
  .ex-strip-label { flex-basis: 100%; }

  /* The footer links stay beside the logo on a tablet. */
  .ex-footer-nav { gap: 0 20px; }

  /* The Buy and Build cards stay side by side, with less padding. */
  .ex-compare { padding: 24px; }
  .ex-compare h3 { margin-bottom: 18px; font-size: 22px; }
  .ex-compare ul { gap: 14px; font-size: 16.5px; }
}

/* Below 768px two-column sections stack, and each case study leads with its picture. */
@media (max-width: 767px) {
  .ex-split { flex-direction: column; align-items: stretch; gap: 32px; }
  .ex-split > * { flex: 0 0 auto; }
  .ex-strip-logo img { width: auto; height: 54px; }
  .ex-case > .ex-container, .ex-case--media-left > .ex-container { flex-direction: column; align-items: stretch; gap: 28px; }
  .ex-case-text, .ex-case-media { flex: 0 0 auto; }
  .ex-case-media { order: -1; }
}

@media (max-width: 599px) {
  /* Header: logo and a menu button; the links open beneath. Without the script the links simply wrap. */
  .ex-header--js .ex-nav-toggle { display: inline-flex; }
  .ex-header--js .ex-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 10px; font-size: 17px; }
  .ex-header--js.ex-header--open .ex-nav { display: flex; }
  .ex-header--open .ex-nav-toggle-open { display: none; }
  .ex-header--open .ex-nav-toggle-close { display: inline-flex; }
  .ex-header--js .ex-nav-link { padding: 14px 0; border-top: 1px solid var(--navy-border); }
  .ex-header--js .ex-nav .ex-btn { margin-top: 12px; min-height: 50px; }

  .ex-hero > .ex-container { padding-top: 28px; padding-bottom: 52px; }
  .ex-hero--compact > .ex-container { padding-top: 20px; padding-bottom: 36px; }
  .ex-hero-text { gap: 22px; }
  .ex-hero-art { display: none; }

  /* Label, then the logos spread across the row, then the link. */
  .ex-strip > .ex-container { padding-bottom: 28px; }
  .ex-strip-logos { flex-basis: 100%; justify-content: space-between; }
  .ex-strip .ex-link { margin-left: 0; }

  .ex-head { margin-bottom: var(--space-28); }
  .ex-sub { font-size: 17px; }
  .ex-cards { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); }

  /* Service cards: icon beside the text, not above it. */
  .ex-service { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding: 20px; }
  .ex-service-icon { grid-row: 1 / span 2; width: 44px; height: 44px; margin: 0; border-radius: var(--radius-field); }
  .ex-service-icon svg { width: 22px; height: 22px; }
  .ex-service h3 { margin-bottom: 4px; font-size: 18.5px; }
  .ex-service p { font-size: 15.5px; }

  .ex-statement p { font-size: 17px; }

  .ex-form { gap: 18px; padding: 20px; }
  .ex-form-row { gap: 18px; }

  /* Carousel: on the narrowest phones the slide buttons may take a second row. */
  .ex-carousel-tabs { flex-wrap: wrap; }

  .ex-footer > .ex-container { flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 32px; padding-bottom: 36px; }
  .ex-footer-nav { gap: 0 24px; }
}
