/* AI adoption case study (DevToDollars), version 3: a full page website.
   Every band runs edge to edge. The hero fits one screen and gives the product screens most of
   it. Facts carry the story as numbers, icon charts, flows and the client's own illustration
   style; running text stays short. Display type in Montserrat (the DevToDollars wordmark face),
   body in the site's system stack, colour from the client's palette: indigo, gold, slate, white,
   plus tints and shades of the indigo.
   Every selector is scoped to .ai-cs so the page drops into devtodollars.com unchanged. */

/* ----------------------------------------------------------------- tokens */
.ai-cs {
  /* colour */
  --indigo: var(--color-secondary, #2619D1);   /* brand indigo */
  --indigo-deep: #1B1296;                      /* the same indigo, darker */
  --indigo-night: #120B66;                     /* darkest: night bands */
  --indigo-bright: #5147DA;                    /* indigo with white: glows */
  --canvas: #F4F4FD;                           /* indigo at 5% on white */
  --lav-1: #E9E8FB;                            /* 10% */
  --lav-2: #D4D1F6;                            /* 20% */
  --lav-3: #A8A3EC;                            /* 40% */
  --gold: var(--color-primary, #E0B81F);       /* brand gold */
  --gold-ink: var(--color-primary-ink, #8A6D0A);
  --gold-ink-2: #6E5706;                       /* gold ink for small type on gold tint, 5.9:1 */
  --gold-tint: #FAF3D6;
  --white: #FFFFFF;
  --ink: #0F172A;                              /* slate-900 */
  --ink-2: #475569;                            /* slate-600 */
  --ink-3: #64748B;                            /* slate-500, on white only */
  --line: #E2E8F0;                             /* slate-200 */
  --on-indigo: #FFFFFF;
  --on-indigo-2: #DCDAFA;                      /* 7.9:1 on indigo */
  --glass: rgba(255, 255, 255, .08);
  --glass-line: rgba(255, 255, 255, .2);
  --shadow-1: 0 1px 2px rgba(27, 18, 150, .05), 0 12px 32px -16px rgba(27, 18, 150, .25);
  --shadow-2: 0 2px 6px rgba(27, 18, 150, .08), 0 30px 60px -24px rgba(27, 18, 150, .45);
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");

  /* type */
  --font: var(--ifm-font-family-base, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif);
  --font-display: "Montserrat", var(--font);
  --t-mini: .8125rem;                                   /* 13 */
  --t-small: .9375rem;                                  /* 15 */
  --t-body: clamp(1rem, .96rem + .2vw, 1.0625rem);      /* 16 to 17 */
  --t-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);     /* 17 to 20 */
  /* one ladder for every heading and number on the page, roughly a 1.25 step */
  --t-h5: clamp(1.125rem, 1.05rem + .25vw, 1.25rem);    /* card titles, 18 to 20 */
  --t-h4: clamp(1.25rem, 1.12rem + .4vw, 1.5rem);       /* block titles, 20 to 24 */
  --t-h3: clamp(1.5rem, 1.25rem + 1.1vw, 2.25rem);      /* sub chapter titles, 24 to 36 */
  --t-h2: clamp(1.75rem, 1.2rem + 1.5vw, 2.875rem);     /* chapter titles, 28 to 46 */
  --t-h1: clamp(2rem, min(1rem + 2.6vw, 7vh), 3.875rem); /* the hero, 32 to 62; also capped by the screen height so the hero fits */
  --t-num-s: clamp(1.25rem, .9rem + .9vw, 1.75rem);     /* the hero strip, 20 to 28 */
  --t-num-m: clamp(2.25rem, 1.6rem + 1.4vw, 3rem);      /* industry figures, 36 to 48 */
  --t-num-l: clamp(2.75rem, 1.6rem + 2.6vw, 4rem);      /* the client's results, 44 to 64 */

  /* space: 4px base */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --gutter: clamp(20px, 5vw, 72px);
  --band-y: clamp(64px, 8vw, 120px);
  --block: clamp(36px, 4.4vw, 64px);                     /* between blocks inside a band */
  --max: 1320px;                                         /* the one content width */
  --media-max: 640px;                                    /* photos and screens beside text */
  --screen-max: 880px;                                   /* the PMO display */
  --bleed: max(var(--gutter), calc((100vw - var(--max)) / 2));
  --sticky-top: var(--ifm-navbar-height, 0px);

  /* radius */
  --r-1: 12px; --r-2: 18px; --r-3: 26px; --r-pill: 999px;

  /* motion */
  --d-micro: 120ms; --d-small: 200ms; --d-mid: 320ms; --d-scene: 560ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ----------------------------------------------------------------- inside devtodollars.com
   Infima styles bare headings, links and details. These resets keep the page's own rules in
   charge when it sits in the site. */
.ai-cs :where(a):hover { color: inherit; text-decoration: none; }
.ai-cs :is(h1, h2, h3, h4) { font-family: inherit; color: inherit; }
.ai-cs details { border: 0; padding: 0; border-radius: 0; box-shadow: none; }
.ai-cs [id] { scroll-margin-top: calc(var(--sticky-top) + 16px); }
@media (prefers-reduced-motion: no-preference) { html:has(.ai-cs) { scroll-behavior: smooth; } }

/* ----------------------------------------------------------------- base */
.ai-cs *, .ai-cs *::before, .ai-cs *::after { box-sizing: border-box; }
.ai-cs {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font); font-size: var(--t-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
.ai-cs img, .ai-cs svg { display: block; max-width: 100%; }
.ai-cs img { height: auto; }
.ai-cs h1, .ai-cs h2, .ai-cs h3, .ai-cs h4, .ai-cs p, .ai-cs ul, .ai-cs ol, .ai-cs dl, .ai-cs dd, .ai-cs figure { margin: 0; }
.ai-cs ul, .ai-cs ol { padding: 0; list-style: none; }
.ai-cs a { color: inherit; }
.ai-cs button { font: inherit; }
.ai-cs .vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ai-cs .icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* solid pictograms (Phosphor, fill): the counted units in charts and results */
.ai-cs .pict { display: block; flex: none; fill: currentColor; stroke: none; }

.ai-cs :focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
.ai-cs :is(.hero, .band--indigo, .band--night, .band--photo, .scene, .ev, .decided, .win--indigo, .dock__bar) :focus-visible { outline-color: var(--gold); }

/* ----------------------------------------------------------------- type */
.ai-cs .eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3);
  font-size: var(--t-small); font-weight: 700; line-height: 1.3; color: var(--gold-ink);
}
.ai-cs .eyebrow > .icon { width: 18px; height: 18px; }
.ai-cs :is(.band--lav, .band--art) .eyebrow { color: var(--indigo); }
.ai-cs :is(.band--indigo, .band--night, .band--photo, .scene) .eyebrow { color: var(--gold); }
.ai-cs .h2 {
  max-width: 17em; margin-top: var(--s-4); font-family: var(--font-display); font-size: var(--t-h2);
  font-weight: 800; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance;
}
.ai-cs .h3 {
  max-width: 17em; margin-top: var(--s-4); font-family: var(--font-display); font-size: var(--t-h3);
  font-weight: 800; line-height: 1.06; letter-spacing: -.03em; text-wrap: balance;
}
.ai-cs .h4 { font-family: var(--font-display); font-size: var(--t-h4); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.ai-cs .lede { max-width: 34em; margin-top: var(--s-5); font-size: var(--t-lead); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.ai-cs :is(.band--indigo, .band--night, .band--photo, .scene) .lede { color: var(--on-indigo-2); }

/* links in running text */
.ai-cs :is(.lede, .dash__text, .ev__src) a {
  color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color var(--d-micro) var(--ease-out);
}
.ai-cs :is(.lede, .dash__text, .ev__src) a:hover { text-decoration-color: currentColor; }
.ai-cs .band--white :is(.lede, .dash__text) a:hover { color: var(--indigo); }
.ai-cs :is(.band--indigo, .band--night) .lede a { color: var(--white); }

/* ----------------------------------------------------------------- bands: every chapter runs edge to edge */
.ai-cs .band { position: relative; padding-block: var(--band-y); }
.ai-cs .band--white { background: var(--white); }
.ai-cs .band--lav { background: linear-gradient(180deg, var(--canvas) 0%, var(--lav-1) 100%); }
.ai-cs .band--indigo {
  color: var(--on-indigo);
  background:
    radial-gradient(48% 60% at 88% 0%, rgba(81, 71, 218, .85) 0%, transparent 70%),
    radial-gradient(40% 55% at 0% 100%, rgba(224, 184, 31, .14) 0%, transparent 70%),
    linear-gradient(170deg, var(--indigo) 0%, var(--indigo-deep) 100%);
}
.ai-cs .band--night {
  color: var(--on-indigo);
  background:
    radial-gradient(55% 60% at 100% 0%, rgba(81, 71, 218, .45) 0%, transparent 70%),
    linear-gradient(170deg, var(--indigo-deep) 0%, var(--indigo-night) 100%);
}
.ai-cs .wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.ai-cs .split { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) {
  .ai-cs .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ai-cs .split--flip > .photo { order: -1; }
}
.ai-cs .band--tight { padding-block: clamp(40px, 5vw, 72px) var(--band-y); }

/* real photos: edge to edge on phones; beside the text on wider screens, never larger than
   the hero's screens */
.ai-cs .photo { position: relative; margin-inline: calc(-1 * var(--gutter)); }
.ai-cs .photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ai-cs .photo__chip {
  position: absolute; left: var(--gutter); bottom: calc(var(--s-4) + 22px); display: inline-flex; align-items: center; gap: var(--s-2);
  max-width: calc(100% - 2 * var(--gutter)); padding: 9px 15px; border-radius: var(--r-pill);
  background: rgba(18, 11, 102, .84); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24), 0 14px 30px -12px rgba(10, 6, 60, .7);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--on-indigo); font-size: var(--t-mini); font-weight: 600; line-height: 1.35;
}
.ai-cs .photo__chip .icon { width: 16px; height: 16px; color: var(--gold); }
.ai-cs .credit { margin-top: var(--s-2); font-size: .75rem; line-height: 1.4; color: var(--ink-3); }
.ai-cs .photo .credit { padding-inline: var(--gutter); }
.ai-cs :is(.band--night, .band--photo, .scene) .credit { color: rgba(255, 255, 255, .72); }
@media (min-width: 900px) {
  .ai-cs .photo { width: min(100%, var(--media-max)); margin-inline: 0; justify-self: end; }
  .ai-cs .split--flip .photo { justify-self: start; }
  .ai-cs .photo img { border-radius: var(--r-3); box-shadow: 0 30px 60px -34px rgba(18, 11, 102, .55); }
  .ai-cs .photo .credit { padding-inline: 0; }
  .ai-cs .photo__chip { left: var(--s-5); bottom: calc(var(--s-5) + 22px); }
  .ai-cs .band--night .photo img { box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7); }
}

/* small icon holders */
.ai-cs .ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--r-1); background: var(--lav-1); color: var(--indigo); }
.ai-cs .ico .icon { width: 22px; height: 22px; }
.ai-cs .tile {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 15px; color: var(--on-indigo);
  background: radial-gradient(80% 80% at 30% 20%, var(--indigo-bright) 0%, transparent 70%), linear-gradient(160deg, var(--indigo) 0%, var(--indigo-deep) 100%);
  box-shadow: 0 10px 22px -10px rgba(38, 25, 209, .7);
}
.ai-cs .tile .icon { width: 24px; height: 24px; }
.ai-cs .tile--gold { background: var(--gold); color: #000000; box-shadow: 0 10px 22px -12px rgba(138, 109, 10, .8); }

.ai-cs .tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill);
  font-size: var(--t-mini); font-weight: 700; line-height: 1.3; letter-spacing: 0;
}
.ai-cs .tag .icon { width: 14px; height: 14px; }
.ai-cs .tag--ai { background: var(--lav-1); color: var(--indigo); }
.ai-cs .tag--code { background: var(--gold-tint); color: var(--gold-ink-2); }
.ai-cs .tag--glass { background: rgba(255, 255, 255, .12); color: var(--on-indigo); box-shadow: inset 0 0 0 1px var(--glass-line); }

.ai-cs .pill {
  display: inline-flex; align-items: center; gap: var(--s-2); padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); font-size: var(--t-mini); font-weight: 600; color: var(--on-indigo);
}
.ai-cs .pill .icon { width: 15px; height: 15px; color: var(--gold); }

/* ----------------------------------------------------------------- devices (real screens in crafted frames) */
.ai-cs .device { position: relative; filter: drop-shadow(0 24px 32px rgba(10, 6, 60, .26)) drop-shadow(0 6px 10px rgba(10, 6, 60, .14)); }
.ai-cs .device__screen { position: absolute; display: block; object-fit: cover; object-position: top center; background: var(--white); }
.ai-cs .device__frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ai-cs .device--laptop { aspect-ratio: 928 / 590; }
.ai-cs .device--laptop .device__screen { left: 6.8966%; top: 4.4068%; width: 86.2069%; height: 84.7458%; border-radius: .5000% / .8000%; }
.ai-cs .device--display { aspect-ratio: 912 / 596; }
.ai-cs .device--display .device__screen { left: 1.7544%; top: 2.6846%; width: 96.4912%; height: 83.0537%; border-radius: .3409% / .6061%; }
.ai-cs :where(a.device) { display: block; color: inherit; text-decoration: none; cursor: zoom-in; }
.ai-cs a.device:focus-visible { outline-offset: 6px; border-radius: var(--r-1); }

/* flat screens */
.ai-cs .shot { display: block; overflow: hidden; border-radius: var(--r-2); background: var(--white); cursor: zoom-in; box-shadow: var(--shadow-2); }
.ai-cs .shot--dark { background: #1B1A26; box-shadow: 0 30px 60px -24px rgba(10, 6, 60, .55); }
.ai-cs .shot__img { width: 100%; }
.ai-cs a.shot:focus-visible { outline-offset: 4px; border-radius: var(--r-2); }

/* ----------------------------------------------------------------- hero: one screen, the screens first */
.ai-cs .hero {
  --hero-pad-y: clamp(20px, 4.4vh, 56px);
  --kpi-h: 96px;
  --hero-gap: clamp(18px, 3.2vh, 36px);
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center;
  min-height: calc(100svh - var(--sticky-top)); padding: var(--hero-pad-y) var(--gutter);
  color: var(--on-indigo);
  background:
    radial-gradient(46% 62% at 74% 44%, rgba(81, 71, 218, .8) 0%, transparent 72%),
    radial-gradient(34% 44% at 100% 100%, rgba(224, 184, 31, .2) 0%, transparent 70%),
    radial-gradient(40% 50% at 0% 0%, rgba(81, 71, 218, .5) 0%, transparent 70%),
    linear-gradient(160deg, var(--indigo) 0%, var(--indigo-deep) 58%, var(--indigo-night) 100%);
}
.ai-cs .hero__inner {
  display: grid; grid-template-areas: "text" "stage" "kpis"; gap: var(--hero-gap) clamp(24px, 4vw, 64px);
  width: 100%; max-width: var(--max); margin-inline: auto;
}
.ai-cs .hero__text { grid-area: text; position: relative; z-index: 2; }
.ai-cs .hero__title { display: grid; justify-items: start; gap: clamp(12px, 2vh, 20px); }
.ai-cs .hero__kicker {
  display: inline-flex; padding: 7px 16px; border-radius: var(--r-pill); background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-line); font-family: var(--font); font-size: var(--t-small); font-weight: 600;
  line-height: 1.4; letter-spacing: 0; color: var(--on-indigo);
}
.ai-cs .hero__line {
  display: block; max-width: 13em; font-family: var(--font-display); font-weight: 800;
  font-size: var(--t-h1); line-height: 1.03; letter-spacing: -.035em; text-wrap: balance;
}
.ai-cs .hero__claim { max-width: 30em; margin-top: clamp(14px, 2.4vh, 26px); font-size: clamp(1rem, .9rem + .4vw, 1.25rem); line-height: 1.5; color: var(--on-indigo-2); text-wrap: pretty; }
.ai-cs .hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-top: clamp(14px, 2.4vh, 26px); }
.ai-cs .hero__note { font-size: var(--t-mini); line-height: 1.4; color: var(--on-indigo-2); }

/* the desk: the status slide on a large display, the dashboard on a laptop in front of it */
.ai-cs .hero__stage {
  grid-area: stage; position: relative; z-index: 1; justify-self: center; aspect-ratio: 1000 / 700;
  width: min(100%, calc((100svh - var(--sticky-top) - var(--hero-pad-y) * 2 - var(--kpi-h) - var(--hero-gap)) * 1.4286));
}
.ai-cs .hero__display { position: absolute; right: 0; top: 8%; z-index: 1; width: 80%; }
.ai-cs .hero__laptop { position: absolute; left: 0; bottom: 0; z-index: 2; width: 52%; }
.ai-cs .float {
  position: absolute; z-index: 3; display: none; align-items: center; gap: var(--s-2); padding: 9px 15px; border-radius: var(--r-pill);
  background: rgba(27, 18, 150, .82); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26), 0 12px 30px -10px rgba(10, 6, 60, .6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--on-indigo); font-size: var(--t-mini); font-weight: 600; white-space: nowrap;
}
.ai-cs .float .icon { width: 16px; height: 16px; color: var(--gold); }
@media (min-width: 720px) {
  .ai-cs .float { display: inline-flex; }
  .ai-cs .float--a { left: 20%; top: 0; }
  .ai-cs .float--b { left: 44%; bottom: 1%; }
}

/* the three results, as one strip across the bottom of the hero */
.ai-cs .kpis {
  grid-area: kpis; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: var(--r-3); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ai-cs .kpi { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s-4); align-items: center; align-content: center; min-height: var(--kpi-h); padding: var(--s-3) clamp(14px, 2vw, 28px); }
.ai-cs .kpi + .kpi { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .14); }
.ai-cs .kpi__ico { grid-row: 1 / span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(224, 184, 31, .16); color: var(--gold); }
.ai-cs .kpi__ico .icon { width: 22px; height: 22px; }
.ai-cs .kpi__num { font-family: var(--font-display); font-size: var(--t-num-s); font-weight: 800; line-height: 1.1; letter-spacing: -.025em; white-space: nowrap; }
.ai-cs .kpi__label { font-size: var(--t-mini); line-height: 1.35; color: var(--on-indigo-2); }
@media (min-width: 960px) {
  .ai-cs .hero__inner { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); grid-template-areas: "text stage" "kpis kpis"; align-items: center; }
  /* the text keeps the page's left edge; the screens may reach into the right margin */
  .ai-cs .hero__stage {
    justify-self: end; margin-right: calc(24px - var(--bleed));
    width: min(calc(100% + var(--bleed) - 24px), calc((100svh - var(--sticky-top) - var(--hero-pad-y) * 2 - var(--kpi-h) - var(--hero-gap)) * 1.4286));
  }
}
@media (max-width: 639.98px) {
  .ai-cs .kpis { border-radius: var(--r-2); }
  .ai-cs .kpi { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: var(--s-3); }
  .ai-cs .kpi__ico { display: none; }
  .ai-cs .kpi__num { font-size: 1.0625rem; white-space: normal; }
  .ai-cs .kpi__label { margin-top: 2px; font-size: .75rem; }
}

/* one orchestrated entrance; transform only on the screens, so the LCP image paints at once */
@media (prefers-reduced-motion: no-preference) {
  .ai-cs .hero__kicker { animation: ai-rise 600ms var(--ease-out) both; }
  .ai-cs .hero__line { animation: ai-rise 640ms 60ms var(--ease-out) both; }
  .ai-cs .hero__display { animation: ai-rise 720ms 140ms var(--ease-out) both; }
  .ai-cs .hero__laptop { animation: ai-rise-far 780ms 220ms var(--ease-out) both; }
  .ai-cs .float { animation: ai-pop 520ms 620ms var(--ease-out) both; }
  @keyframes ai-rise { from { transform: translateY(24px); } }
  @keyframes ai-rise-far { from { transform: translateY(56px); } }
  @keyframes ai-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
}

/* ----------------------------------------------------------------- 1. the results */
.ai-cs .results__head { display: grid; gap: var(--s-6); align-items: end; }
@media (min-width: 960px) { .ai-cs .results__head { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); column-gap: var(--s-8); } }
.ai-cs .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-6); }
.ai-cs .facts dt { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-mini); font-weight: 700; color: var(--ink-3); }
.ai-cs .facts dt .icon { width: 16px; height: 16px; color: var(--indigo); }
.ai-cs .facts dd { margin-top: 4px; font-weight: 600; line-height: 1.4; }
@media (max-width: 479.98px) { .ai-cs .facts { grid-template-columns: minmax(0, 1fr); } }

/* three results, three colour fields, edge to edge */
.ai-cs .wins { display: grid; margin-top: var(--block); }
.ai-cs .win {
  display: flex; flex-direction: column; gap: var(--s-3); min-height: clamp(260px, 24vw, 340px);
  padding: clamp(28px, 3.2vw, 48px) var(--gutter);
}
@media (min-width: 900px) {
  /* colour runs to both screen edges; the content sits on the page's 1320 grid */
  .ai-cs .wins { grid-template-columns: minmax(var(--gutter), 1fr) repeat(3, minmax(0, calc(var(--max) / 3))) minmax(var(--gutter), 1fr); }
  .ai-cs .win { position: relative; padding-inline: clamp(24px, 2.6vw, 40px); }
  .ai-cs .win--gold { grid-column: 2; padding-left: 0; }
  .ai-cs .win--indigo { padding-right: 0; }
  /* the outer panels carry their colour out to the screen edge (.ai-cs clips the overflow) */
  .ai-cs :is(.win--gold, .win--indigo)::before { content: ""; position: absolute; top: 0; bottom: 0; width: 50vw; background: inherit; }
  .ai-cs .win--gold::before { right: 100%; }
  .ai-cs .win--indigo::before { left: 100%; }
}
.ai-cs .win--gold { background: var(--gold); color: #000000; }
.ai-cs .win--lav { background: var(--lav-1); color: var(--ink); }
.ai-cs .win--indigo { color: var(--on-indigo); background: var(--indigo); }
.ai-cs .win__dept { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-small); font-weight: 700; }
.ai-cs .win__dept .icon { width: 20px; height: 20px; }
.ai-cs .win--lav .win__dept { color: var(--indigo); }
.ai-cs .win--indigo .win__dept .icon { color: var(--gold); }
.ai-cs .win__num { margin-top: auto; padding-top: var(--s-5); font-family: var(--font-display); font-size: var(--t-num-l); font-weight: 800; line-height: .95; letter-spacing: -.045em; }
@media (min-width: 900px) { .ai-cs .win__num { font-size: min(var(--t-num-l), 4.2vw); } }
.ai-cs .win__label { max-width: 17em; font-size: var(--t-body); line-height: 1.45; }
.ai-cs .win--indigo .win__label { color: var(--on-indigo-2); }
.ai-cs .win__note { font-size: var(--t-mini); font-weight: 600; }

/* 120+ hours, as three 40 hour work weeks */
.ai-cs .weeks { display: flex; align-items: flex-end; gap: clamp(14px, 2vw, 22px); margin-top: var(--s-4); }
.ai-cs .weeks span { display: grid; justify-items: center; gap: 6px; font-family: var(--font-display); font-size: var(--t-small); font-weight: 800; line-height: 1; }
.ai-cs .weeks .pict { width: 34px; height: 34px; }
.ai-cs .weeks .weeks__more { align-self: center; padding-bottom: 18px; font-size: 1.5rem; }
/* 4 to 2, drawn as people */
.ai-cs .people { display: flex; gap: var(--s-2); margin-top: var(--s-4); color: var(--indigo); }
.ai-cs .people .pict { width: 40px; height: 40px; }
.ai-cs .people .is-off { color: var(--lav-2); }
/* real time */
.ai-cs .live {
  display: inline-flex; align-self: flex-start; align-items: center; gap: var(--s-3); margin-top: var(--s-4); padding: 10px 16px;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  font-size: var(--t-small); font-weight: 600;
}
.ai-cs .live .icon { width: 18px; height: 18px; color: var(--gold); }

.ai-cs .did { margin-top: var(--block); }
.ai-cs .did__k { font-size: var(--t-small); font-weight: 700; color: var(--ink-2); }
.ai-cs .did__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); margin-top: var(--s-4); }
.ai-cs .did__list li { display: flex; align-items: center; gap: var(--s-3); font-weight: 600; line-height: 1.3; }
@media (min-width: 720px) { .ai-cs .did__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .ai-cs .did__list { grid-template-columns: repeat(6, minmax(0, 1fr)); } .ai-cs .did__list li { flex-direction: column; align-items: flex-start; } }

/* ----------------------------------------------------------------- 2. the starting point: a real photo behind it */
.ai-cs .scene { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(72px, 9vw, 136px) clamp(32px, 3.6vw, 48px); color: var(--on-indigo); background: var(--indigo-night); }
.ai-cs .scene__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.ai-cs .scene::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 11, 102, .96) 0%, rgba(18, 11, 102, .86) 40%, rgba(18, 11, 102, .38) 100%),
    linear-gradient(180deg, rgba(18, 11, 102, 0) 45%, rgba(18, 11, 102, .92) 100%);
}
.ai-cs .scene__head { max-width: 40em; }
.ai-cs .pains { display: grid; gap: var(--s-4); margin-top: clamp(48px, 7vw, 112px); }
@media (min-width: 900px) { .ai-cs .pains { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ai-cs .pain {
  padding: clamp(20px, 2.4vw, 30px); border-radius: var(--r-3); background: rgba(18, 11, 102, .55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.ai-cs .pain .tile { background: var(--gold); color: #000000; box-shadow: none; }
.ai-cs .pain__k { margin-top: var(--s-4); font-family: var(--font-display); font-size: var(--t-h5); font-weight: 800; letter-spacing: -.015em; }
.ai-cs .pain p { margin-top: var(--s-2); font-size: var(--t-small); line-height: 1.6; color: var(--on-indigo-2); }
.ai-cs .scene .credit { margin-top: var(--s-5); text-align: right; }

/* industry evidence: one look everywhere, numbers in gold, an icon chart, the source */
.ai-cs .evidence { display: grid; gap: var(--s-5); margin-top: var(--s-5); }
.ai-cs .ev {
  container-type: inline-size; display: grid; align-content: start; gap: var(--s-5); padding: clamp(24px, 3vw, 40px); border-radius: var(--r-3); color: var(--on-indigo);
  background: radial-gradient(70% 70% at 100% 0%, rgba(81, 71, 218, .55) 0%, transparent 70%), linear-gradient(160deg, var(--indigo-deep) 0%, var(--indigo-night) 100%);
}
.ai-cs .ev__k { max-width: 22em; font-family: var(--font-display); font-size: var(--t-h4); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.ai-cs .ev__src { font-size: var(--t-mini); line-height: 1.5; color: var(--on-indigo-2); }
.ai-cs .ev__src a { color: var(--on-indigo); }
.ai-cs .ev__stats { display: grid; gap: var(--s-5); }
/* a stat: a short qualifier, the number, the count as pictograms on one fixed scale (44 px a
   unit at most), then what it counts. Wide cards set it as a row, so stacked stats compare. */
.ai-cs .stat { display: grid; align-content: start; }
.ai-cs .stat__q { min-height: 1.45em; font-size: var(--t-small); font-weight: 700; line-height: 1.45; color: var(--on-indigo-2); }
.ai-cs .stat__num { margin-top: 2px; font-family: var(--font-display); font-size: var(--t-num-m); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--gold); white-space: nowrap; }
.ai-cs .units {
  display: grid; grid-template-columns: repeat(var(--n, 10), minmax(0, 1fr)); gap: clamp(4px, .6vw, 8px);
  width: min(100%, calc(var(--n, 10) * 44px + (var(--n, 10) - 1) * 8px)); margin-top: var(--s-4);
}
.ai-cs .u { position: relative; display: block; aspect-ratio: 1; }
.ai-cs .u svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: currentColor; stroke: none; }
.ai-cs .u__base { color: rgba(255, 255, 255, .16); }
.ai-cs .u__fill { color: var(--gold); clip-path: inset(0 calc(100% - var(--p) * 1%) 0 0); }
.ai-cs .stat__label { max-width: 30em; margin-top: var(--s-3); font-size: var(--t-small); line-height: 1.5; color: var(--on-indigo-2); }
@container (min-width: 760px) {
  .ai-cs .stat {
    grid-template-columns: 12.5rem auto minmax(0, 1fr); grid-template-areas: "q units label" "num units label";
    column-gap: var(--s-6); align-items: center;
  }
  .ai-cs .stat__q { grid-area: q; align-self: end; }
  .ai-cs .stat__num { grid-area: num; align-self: start; }
  .ai-cs .units { grid-area: units; width: calc(var(--n, 10) * 44px + (var(--n, 10) - 1) * 8px); margin: 0; }
  .ai-cs .stat__label { grid-area: label; margin: 0; }
  .ai-cs .ev__stats > .stat + .stat { padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, .12); }
}

/* ----------------------------------------------------------------- 3. discovery */
.ai-cs .mapflow { display: grid; gap: var(--s-5); margin-top: var(--block); align-items: center; }
@media (min-width: 1080px) { .ai-cs .mapflow { grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr); gap: var(--s-6); } }
.ai-cs .asks { display: grid; gap: var(--s-3); }
@media (min-width: 560px) { .ai-cs .asks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ai-cs .asks li { display: grid; align-content: start; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-2); background: var(--canvas); box-shadow: inset 0 0 0 1px var(--lav-1); font-weight: 600; line-height: 1.4; }
.ai-cs .mapflow__arrow { display: grid; place-items: center; justify-self: center; width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: #000000; transform: rotate(90deg); }
.ai-cs .mapflow__arrow .icon { width: 24px; height: 24px; }
@media (min-width: 1080px) { .ai-cs .mapflow__arrow { transform: none; } }
.ai-cs .decided { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-3); color: var(--on-indigo); background: radial-gradient(70% 70% at 100% 0%, rgba(81, 71, 218, .8) 0%, transparent 70%), linear-gradient(160deg, var(--indigo) 0%, var(--indigo-deep) 100%); box-shadow: var(--shadow-2); }
.ai-cs .decided__k { font-family: var(--font-display); font-size: var(--t-h4); font-weight: 800; letter-spacing: -.02em; }
.ai-cs .decided ul { margin-top: var(--s-3); }
.ai-cs .decided li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-4); align-items: start; padding: var(--s-4) 0; }
.ai-cs .decided li + li { border-top: 1px solid rgba(255, 255, 255, .14); }
.ai-cs .decided .ico { background: rgba(255, 255, 255, .12); color: var(--gold); }
.ai-cs .decided__t { font-family: var(--font-display); font-size: var(--t-h5); font-weight: 800; letter-spacing: -.01em; }
.ai-cs .decided li p + p { margin-top: 2px; font-size: var(--t-small); line-height: 1.5; color: var(--on-indigo-2); }
.ai-cs #discovery .ev { margin-top: var(--block); }

/* ----------------------------------------------------------------- 4. the solution: three lanes */
.ai-cs .lanes { display: grid; gap: var(--s-4); margin-top: var(--block); }
@media (min-width: 900px) { .ai-cs .lanes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ai-cs .lane__link {
  position: relative; display: grid; align-content: start; justify-items: start; gap: var(--s-4); height: 100%;
  padding: clamp(24px, 3vw, 40px); border-radius: var(--r-3); background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line);
  color: var(--on-indigo); text-decoration: none;
  transition: background-color var(--d-small) var(--ease-out), transform var(--d-mid) var(--ease-out);
}
.ai-cs .lane__link:hover { background: rgba(255, 255, 255, .14); transform: translateY(-3px); }
.ai-cs .lane__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--gold); color: #000000; }
.ai-cs .lane__ico .icon { width: 26px; height: 26px; }
.ai-cs .lane__name { margin-top: var(--s-2); font-family: var(--font-display); font-size: var(--t-h4); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.ai-cs .lane__job { line-height: 1.5; color: var(--on-indigo-2); }
.ai-cs .lane__go { position: absolute; right: clamp(20px, 2.4vw, 32px); top: clamp(20px, 2.4vw, 32px); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); transition: background-color var(--d-small) var(--ease-out); }
.ai-cs .lane__go .icon { width: 20px; height: 20px; }
.ai-cs .lane__link:hover .lane__go { background: var(--gold); color: #000000; box-shadow: none; }

/* flows: a row of steps joined by arrows (PMO, marketing) */
.ai-cs .chain { display: grid; gap: var(--s-3); margin-top: var(--block); }
.ai-cs .chain li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: var(--s-4); row-gap: 2px; padding: var(--s-4); border-radius: var(--r-2); background: var(--canvas); }
.ai-cs .chain .ico { grid-row: 1 / span 2; width: 48px; height: 48px; }
.ai-cs .chain__t { font-family: var(--font-display); font-size: var(--t-h5); font-weight: 800; letter-spacing: -.01em; }
.ai-cs .chain li p + p { font-size: var(--t-small); line-height: 1.5; color: var(--ink-2); }
.ai-cs .chain--dark li { background: var(--glass); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.ai-cs .chain--dark .ico { background: rgba(255, 255, 255, .1); color: var(--gold); }
.ai-cs .chain--dark li p + p { color: var(--on-indigo-2); }
@media (min-width: 820px) {
  .ai-cs .chain { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s-7); }
  .ai-cs .chain li { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-2); align-content: start; padding: var(--s-5); }
  .ai-cs .chain .ico { grid-row: auto; margin-bottom: var(--s-2); }
  .ai-cs .chain li:not(:last-child)::after {
    content: ""; position: absolute; top: 50%; right: calc(-1 * var(--s-7) + 10px); width: 28px; height: 28px; transform: translateY(-50%);
    background: var(--indigo); -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
  }
  .ai-cs .chain--dark li:not(:last-child)::after { background: var(--gold); }
}

/* PMO: one large display, two templates */
.ai-cs .pmo__head { display: grid; gap: var(--s-4); align-items: end; }
@media (min-width: 960px) { .ai-cs .pmo__head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: var(--s-8); } .ai-cs .pmo__head .lede { margin-top: 0; } }
.ai-cs .viewer { display: grid; justify-items: center; gap: var(--s-5); width: min(100% - 2 * var(--gutter), var(--screen-max)); margin: var(--block) auto 0; }
.ai-cs .seg { display: none; gap: var(--s-1); padding: var(--s-1); border-radius: var(--r-pill); background: var(--canvas); box-shadow: inset 0 0 0 1px var(--lav-1); }
.ai-cs.is-js .seg { display: inline-flex; }
.ai-cs .seg button {
  min-height: 44px; padding: 0 var(--s-5); border: 0; border-radius: var(--r-pill); background: transparent;
  color: var(--ink-2); font-size: var(--t-small); font-weight: 600; cursor: pointer;
  transition: background-color var(--d-small) var(--ease-out), color var(--d-small) var(--ease-out);
}
.ai-cs .seg button:hover { color: var(--ink); background: var(--lav-1); }
.ai-cs .seg button[aria-selected="true"] { background: var(--indigo); color: var(--on-indigo); }
.ai-cs .viewer__stage { display: grid; gap: var(--s-7); width: 100%; }
.ai-cs.is-js .viewer__stage { gap: 0; }
.ai-cs.is-js .viewer__panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity var(--d-scene) var(--ease-out), visibility 0s linear var(--d-scene); }
.ai-cs.is-js .viewer__panel.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.ai-cs .viewer .device--display { width: 100%; }
.ai-cs .viewer__cap { max-width: 38em; margin: var(--s-4) auto 0; font-size: var(--t-small); line-height: 1.5; color: var(--ink-2); text-align: center; text-wrap: pretty; }
.ai-cs .viewer__cap strong { color: var(--ink); }

.ai-cs .pmo__pair { display: grid; gap: var(--s-7); margin-top: var(--block); align-items: center; }
@media (min-width: 960px) { .ai-cs .pmo__pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s-8); } }
.ai-cs .pal { width: min(100%, var(--media-max)); }
.ai-cs .pal figcaption { margin-top: var(--s-5); }
.ai-cs :is(.pal, .icm) p { max-width: 34em; margin-top: var(--s-2); line-height: 1.6; color: var(--ink-2); }
.ai-cs .steps { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.ai-cs .steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-4); align-items: center; font-weight: 600; line-height: 1.4; }
.ai-cs .steps__n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--lav-1); color: var(--indigo); }
.ai-cs .steps__n .icon { width: 22px; height: 22px; }
.ai-cs .steps li:last-child .steps__n { background: var(--gold); color: #000000; }

/* demand planning */
.ai-cs .dem__top { display: grid; gap: var(--s-6); align-items: end; }
@media (min-width: 960px) { .ai-cs .dem__top { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); column-gap: var(--s-8); } }
.ai-cs .dem__big { display: grid; gap: var(--s-3); padding: clamp(24px, 3vw, 40px); border-radius: var(--r-3); background: var(--gold); color: #000000; }
.ai-cs .dem__num { font-family: var(--font-display); font-size: var(--t-num-l); font-weight: 800; line-height: .95; letter-spacing: -.045em; }
.ai-cs .dem__label { max-width: 16em; font-size: var(--t-body); font-weight: 600; line-height: 1.4; }

.ai-cs .ba { display: grid; gap: var(--s-3); margin-top: var(--block); }
.ai-cs .ba__row { display: grid; gap: var(--s-3) var(--s-5); align-items: center; padding: var(--s-4) clamp(18px, 2.4vw, 28px); border-radius: var(--r-2); background: var(--canvas); }
.ai-cs .ba__row--after { background: var(--lav-1); }
@media (min-width: 760px) { .ai-cs .ba__row { grid-template-columns: 96px minmax(0, 1fr); } }
.ai-cs .ba__k { font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; color: var(--ink-2); }
.ai-cs .ba__row--after .ba__k { color: var(--indigo); }
.ai-cs .ba__steps { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-8); }
.ai-cs .ba__steps li { position: relative; display: flex; align-items: center; gap: var(--s-3); font-weight: 600; line-height: 1.35; }
.ai-cs .ba__row:not(.ba__row--after) .ico { background: var(--white); color: var(--ink-3); }
.ai-cs .ba__row--after .ico { background: var(--indigo); color: var(--on-indigo); }
@media (min-width: 760px) {
  .ai-cs .ba__steps li:not(:last-child)::after {
    content: ""; position: absolute; right: calc(-1 * var(--s-8) + 18px); top: 50%; width: 24px; height: 24px; transform: translateY(-50%);
    background: var(--ink-3); -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
  }
  .ai-cs .ba__row--after .ba__steps li:not(:last-child)::after { background: var(--indigo); }
}

.ai-cs .why { display: grid; gap: var(--s-6); margin-top: var(--block); align-items: center; }
@media (min-width: 960px) { .ai-cs .why { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s-8); } }
.ai-cs .why__text p { max-width: 34em; margin-top: var(--s-3); line-height: 1.6; color: var(--ink-2); }

.ai-cs .dash { display: grid; gap: var(--s-7); margin-top: var(--block); align-items: start; }
@media (min-width: 960px) {
  .ai-cs .dash { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); column-gap: var(--s-8); }
  .ai-cs .dash__text { position: sticky; top: calc(var(--sticky-top) + var(--s-7)); }
}
.ai-cs .dash__text > p { max-width: 34em; margin-top: var(--s-3); line-height: 1.6; color: var(--ink-2); }
.ai-cs .dash__notes { margin-top: var(--s-5); }
.ai-cs .dash__notes li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: var(--s-3); align-items: start; padding: var(--s-3) 0; border-top: 1px solid var(--line); font-weight: 600; line-height: 1.45; }
.ai-cs .dash__notes li > span:last-child { padding-top: 4px; }
.ai-cs .dash__foot { margin-top: var(--s-4); font-size: var(--t-mini); line-height: 1.45; color: var(--ink-3); }
.ai-cs .dash__media { position: relative; width: min(100%, 460px); justify-self: center; }
.ai-cs .pin {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #000000;
  font-family: var(--font-display); font-size: var(--t-mini); font-weight: 800; line-height: 1;
}
.ai-cs .pin--on { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); pointer-events: none; box-shadow: 0 0 0 4px rgba(18, 11, 102, .85), 0 6px 14px rgba(0, 0, 0, .4); }

/* ----------------------------------------------------------------- 5. guardrails: a real photo behind the band */
.ai-cs .band--photo { isolation: isolate; overflow: hidden; color: var(--on-indigo); background: var(--indigo-night); }
.ai-cs .band__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.ai-cs .band--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(18, 11, 102, .93) 0%, rgba(18, 11, 102, .8) 46%, rgba(18, 11, 102, .95) 100%);
}
.ai-cs .gov__head { text-align: center; }
.ai-cs .gov__head .eyebrow { justify-content: center; }
.ai-cs .gov__head :is(.h2, .lede) { margin-inline: auto; }
.ai-cs .rules { display: grid; gap: var(--s-4); margin-top: var(--block); }
@media (min-width: 640px) { .ai-cs .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ai-cs .rules { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ai-cs .rule {
  padding: clamp(22px, 2.4vw, 30px); border-radius: var(--r-3); background: rgba(18, 11, 102, .55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.ai-cs .rule__k { margin-top: var(--s-4); font-family: var(--font-display); font-size: var(--t-h5); font-weight: 800; letter-spacing: -.015em; }
.ai-cs .rule p { margin-top: 6px; font-size: var(--t-small); line-height: 1.55; color: var(--on-indigo-2); }
.ai-cs .ev--glass { background: rgba(18, 11, 102, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ai-cs #governance .ev { margin-top: var(--s-5); }
.ai-cs .credit--band { margin-top: var(--s-5); text-align: right; }

/* ----------------------------------------------------------------- 6. where to start: the site's own wave art */
.ai-cs .band--art { display: grid; overflow: hidden; isolation: isolate; padding-bottom: 0; color: var(--ink); background: linear-gradient(100deg, #FBF4CE 0%, #E9D69B 100%); }
.ai-cs .art__bg { order: 2; width: 100%; height: clamp(200px, 52vw, 380px); margin-top: var(--s-7); object-fit: cover; object-position: 82% 100%; }
.ai-cs .next__title { max-width: 15em; }
.ai-cs .next__lead { max-width: 24em; margin-top: var(--s-5); font-family: var(--font-display); font-size: var(--t-h4); font-weight: 700; line-height: 1.3; letter-spacing: -.015em; color: var(--indigo-deep); text-wrap: balance; }
.ai-cs .next__body { max-width: 34em; margin-top: var(--s-5); font-size: var(--t-lead); line-height: 1.55; color: var(--ink-2); }
@media (min-width: 900px) {
  /* the art sits on the bottom edge at its own proportions; the space under the text is the
     height of the waves below it, so the copy never runs into them */
  .ai-cs .band--art { display: block; padding-bottom: calc(15vw + 64px); }
  .ai-cs .art__bg {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; width: 100%; height: auto; margin: 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000000 24%); mask-image: linear-gradient(180deg, transparent 0%, #000000 24%);
  }
  .ai-cs .next { position: relative; }
  .ai-cs .next > * { max-width: min(36em, 52%); }
  .ai-cs .next > .h2 { max-width: min(15em, 56%); }
}

/* ----------------------------------------------------------------- the reading dock */
.ai-cs .dock {
  position: fixed; z-index: 60; left: 50%; bottom: max(12px, env(safe-area-inset-bottom));
  width: min(calc(100% - 24px), 620px); transform: translate(-50%, 28px); opacity: 0; visibility: hidden;
  transition: transform var(--d-mid) var(--ease-out), opacity var(--d-small) var(--ease-out), visibility 0s linear var(--d-mid);
}
.ai-cs .dock.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
.ai-cs .dock__bar {
  display: flex; align-items: center; gap: var(--s-4); min-height: 60px; padding: var(--s-2) var(--s-2) var(--s-2) var(--s-5);
  border-radius: var(--r-pill); color: var(--on-indigo); background: rgba(22, 14, 128, .92);
  box-shadow: 0 18px 40px -14px rgba(18, 11, 102, .65), inset 0 0 0 1px rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.ai-cs .dock__segs { display: flex; flex: none; gap: 4px; }
.ai-cs .dock__segs > span { position: relative; overflow: hidden; width: 20px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.ai-cs .dock__segs i { position: absolute; inset: 0; border-radius: inherit; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); }
.ai-cs .dock__where { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.ai-cs .dock__count { font-size: .75rem; font-weight: 600; color: var(--on-indigo-2); }
.ai-cs .dock__name { overflow: hidden; font-family: var(--font-display); font-size: .9375rem; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.ai-cs .dock__time { display: flex; flex: none; align-items: center; gap: 6px; font-size: var(--t-mini); font-weight: 600; color: var(--on-indigo-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ai-cs .dock__time .icon { width: 15px; height: 15px; }
.ai-cs .dock__btn {
  display: grid; flex: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--gold); color: #000000; cursor: pointer; transition: background-color var(--d-micro) var(--ease-out);
}
.ai-cs .dock__btn:hover { background: #CBA50F; }
.ai-cs .dock__btn .icon { width: 20px; height: 20px; }
.ai-cs .dock__panel {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); max-height: min(70vh, 480px); overflow: auto;
  padding: var(--s-3); border-radius: var(--r-3); background: var(--white); color: var(--ink); box-shadow: var(--shadow-2);
}
.ai-cs .dock__panel[hidden] { display: none; }
.ai-cs .dock__panel-k { padding: var(--s-2) var(--s-3); font-size: var(--t-mini); font-weight: 700; color: var(--ink-2); }
.ai-cs .dock__panel a { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; padding: 8px var(--s-3); border-radius: var(--r-1); font-weight: 600; color: var(--ink); text-decoration: none; }
.ai-cs .dock__panel a:hover { background: var(--canvas); }
.ai-cs .dock__panel a[aria-current="true"] { background: var(--lav-1); color: var(--indigo); }
.ai-cs .dock__n { width: 28px; flex: none; font-family: var(--font-display); font-size: var(--t-mini); font-weight: 800; color: var(--ink-3); }
.ai-cs .dock__panel li.is-done > a .dock__n { color: var(--indigo); }
.ai-cs .dock__panel ol ol a { min-height: 38px; padding-left: calc(var(--s-3) + 28px + var(--s-3)); font-size: var(--t-small); font-weight: 500; color: var(--ink-2); }
@media (max-width: 479.98px) {
  .ai-cs .dock__bar { gap: var(--s-3); padding-left: var(--s-4); }
  .ai-cs .dock__segs > span { width: 12px; }
  .ai-cs :is(.dock__count, .dock__left-word) { display: none; }
}

/* ----------------------------------------------------------------- reveals: visuals settle once, text is never hidden */
@media (prefers-reduced-motion: no-preference) {
  .ai-cs.is-js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--d-scene) var(--ease-out), transform var(--d-scene) var(--ease-out); }
  .ai-cs.is-js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------------- hover preview (mouse only) */
.ai-cs .peek { display: none; }
@media (hover: hover) and (pointer: fine) {
  .ai-cs .peek {
    display: block; position: fixed; z-index: 70; left: 50%; top: 50%;
    padding: var(--s-2); border-radius: var(--r-2); background: var(--white);
    box-shadow: 0 32px 80px rgba(14, 14, 14, .30), 0 8px 24px rgba(14, 14, 14, .14);
    transform: translate(-50%, -50%) scale(.97); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity var(--d-small) var(--ease-out), transform var(--d-small) var(--ease-out), visibility 0s linear var(--d-small);
  }
  .ai-cs .peek.is-on { opacity: 1; visibility: visible; transform: translate(-50%, -50%); transition-delay: 0s; }
}
.ai-cs .peek { width: max-content; }
.ai-cs .peek img { display: block; width: var(--pw, 800px); height: var(--ph, 500px); max-width: none; border-radius: var(--r-1); object-fit: contain; background: var(--white); }
.ai-cs .peek__hint {
  position: absolute; left: 50%; top: calc(100% + var(--s-3)); transform: translateX(-50%);
  padding: 6px var(--s-3); border-radius: var(--r-pill); background: rgba(14, 14, 14, .86); color: var(--on-indigo);
  font-size: var(--t-mini); font-weight: 600; white-space: nowrap;
}

/* ----------------------------------------------------------------- screenshot viewer */
.ai-cs .lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--on-indigo); overflow: hidden;
}
.ai-cs .lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.ai-cs .lightbox::backdrop { background: rgba(12, 8, 52, .96); }
.ai-cs .lightbox :focus-visible { outline-color: var(--gold); }
.ai-cs .lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) clamp(16px, 4vw, 40px); }
.ai-cs .lightbox__count { font-size: var(--t-small); color: var(--on-indigo-2); font-variant-numeric: tabular-nums; }
.ai-cs .lightbox__actions { display: flex; gap: var(--s-2); }
.ai-cs .lb-btn {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 var(--s-4);
  border: 1px solid var(--glass-line); border-radius: var(--r-pill); background: rgba(255, 255, 255, .06);
  color: var(--on-indigo); font-size: var(--t-small); font-weight: 600; cursor: pointer;
  transition: background var(--d-micro) var(--ease-out);
}
.ai-cs .lb-btn:hover { background: rgba(255, 255, 255, .16); }
.ai-cs .lb-btn--icon { width: 44px; padding: 0; }
.ai-cs .lb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ai-cs .lightbox__stage { position: relative; min-height: 0; overflow: hidden; }
.ai-cs .lightbox__stage img {
  position: absolute; inset: 0; margin: auto; width: auto; height: auto;
  max-width: calc(100% - 2 * clamp(16px, 4vw, 40px)); max-height: calc(100% - var(--s-4)); border-radius: var(--r-1);
  background: var(--white); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); cursor: zoom-in;
}
.ai-cs .lightbox__stage.is-zoomed { overflow: auto; padding: 0 clamp(16px, 4vw, 40px) var(--s-4); }
.ai-cs .lightbox__stage.is-zoomed img { position: static; display: block; max-width: none; max-height: none; margin: 0 auto; cursor: zoom-out; }
.ai-cs .lightbox__cap { max-width: 64em; margin: 0 auto; padding: var(--s-3) clamp(16px, 4vw, 40px) var(--s-5); font-size: var(--t-small); line-height: 1.5; color: var(--on-indigo-2); text-align: center; }
html.ai-lb-open { overflow: hidden; }
@media (max-width: 560px) { .ai-cs .lightbox__count { display: none; } .ai-cs .lightbox__bar { justify-content: flex-end; } }

@media (prefers-reduced-motion: reduce) {
  .ai-cs *, .ai-cs *::before, .ai-cs *::after { transition-duration: 1ms !important; animation: none !important; }
}
