/* Aelumo case studies: shared layout for /case-studies/*.html. Loaded after styles.css; every rule sits under .ae-case
   so the main page is untouched. Black opening with key figures, white reading sections aligned with the headline,
   one grey workflow band, one navy comparison, and the homepage's closing block + footer. */

.ae-case { --prose: 780px; --sec: 88px; background: var(--white); color: var(--ink); }
html:has(.ae-case) { scroll-padding-top: calc(var(--nav-h) + 16px); }
.ae-case main { display: block; }
.ae-case .cs-wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
/* reading column: starts at the same left edge as the headline */
.ae-case .cs-col { max-width: var(--prose); }

/* skip link: hidden until it gets keyboard focus */
.ae-case .cs-skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--white); color: var(--ink); font-size: 14px; line-height: 20px; }
.ae-case .cs-skip:focus { top: 12px; }

/* ---------- navigation: the site's bar, always solid; a menu for phones and tablets; the booking button stays top right ---------- */
.ae-case .nav { background: var(--black); overflow: visible; }
.ae-case .nav__links a[aria-current="page"] { color: var(--white); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.ae-case .nav__book-short { display: none; }
.ae-case .cs-menu { display: none; position: relative; margin-left: auto; }
.ae-case .cs-menu > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 44px; min-height: 40px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .6); color: var(--white); font-size: 14px; line-height: 20px; cursor: pointer; }
.ae-case .cs-menu > summary::-webkit-details-marker { display: none; }
.ae-case .cs-menu > summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.ae-case .cs-menu__bars { width: 16px; height: 10px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; position: relative; }
.ae-case .cs-menu__bars::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; margin-top: -.75px; border-top: 1.5px solid currentColor; }
.ae-case .cs-menu[open] .cs-menu__bars { border-color: transparent; }
.ae-case .cs-menu[open] .cs-menu__bars::after { transform: rotate(45deg); }
.ae-case .cs-menu[open] .cs-menu__bars::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; margin-top: -.75px; border-top: 1.5px solid currentColor; transform: rotate(-45deg); }
.ae-case .cs-menu__panel { position: fixed; right: var(--gutter); top: calc(var(--nav-h) - 4px); width: min(260px, calc(100vw - 2 * var(--gutter))); padding: 8px 0; background: var(--black); border: 1px solid var(--line-dark); display: grid; }
.ae-case .cs-menu__panel a { display: block; padding: 12px 20px; font-size: 16px; line-height: 24px; color: var(--on-dark-muted); }
.ae-case .cs-menu__panel a:hover, .ae-case .cs-menu__panel a[aria-current="page"] { color: var(--white); }
.ae-case .cs-menu__panel a:focus-visible { outline-offset: -3px; }
@media (max-width: 900px) {
  .ae-case .nav__inner { gap: 12px; }
  .ae-case .cs-menu { display: block; }
  .ae-case .nav .nav__book { margin-left: 0; }
  .ae-case .nav__cases { margin-left: 0; }
  .ae-case .nav__cases + .btn { margin-left: 0; }
}
@media (max-width: 520px) { .ae-case .cs-menu__label { display: none; } }
@media (max-width: 400px) {
  .ae-case .nav__book-long { display: none; }
  .ae-case .nav__book-short { display: inline; }
}

/* ---------- type ---------- */
.ae-case .cs-eyebrow { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
.ae-case .cs-h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3.1vw, 44px); line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
.ae-case .cs-h2 + * { margin-top: 32px; }
.ae-case .cs-prose p { font-size: 18px; line-height: 1.65; color: var(--ink); text-wrap: pretty; }
.ae-case .cs-prose p + p { margin-top: 24px; }
.ae-case .cs-prose h3 { font-family: var(--sans); font-weight: 500; font-size: 20px; line-height: 1.3; letter-spacing: -.2px; margin: 48px 0 16px; }
.ae-case .cs-prose a, .ae-case .cs-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 1.5px; text-underline-offset: 5px; transition: text-decoration-color .2s; }
.ae-case .cs-prose a:hover, .ae-case .cs-link:hover { text-decoration-color: var(--ink); }
/* highlighted phrases: the homepage's drawn orange underline (.underline[data-draw] in styles.css); case-study.js
   draws each one as it scrolls into view. Without the script the line is simply there. */
html:not(.cs-js) .ae-case .underline[data-draw] { background-size: 100% 1.5px; }
.ae-case .cs-prose .underline[data-draw] { padding-bottom: 3px; }

/* ---------- sections ---------- */
.ae-case .cs-sec { padding: var(--sec) 0; }
.ae-case .cs-sec--grey { background: var(--grey); }
.ae-case .cs-sec--navy { background: var(--navy); color: var(--white); }
.ae-case .cs-part + .cs-part { margin-top: var(--sec); }

/* ---------- opening (black) ---------- */
.ae-case .cs-hero { background: var(--black); color: var(--white); padding: calc(var(--nav-h) + 56px) 0 88px; }
.ae-case .cs-hero { overflow-x: clip; } /* moving parts of the art never cause sideways scrolling on phones */
.ae-case .cs-hero__grid { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 64px; align-items: start; }
.ae-case .cs-crumbs ol { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; line-height: 20px; color: var(--on-dark-muted); }
.ae-case .cs-crumbs li { white-space: nowrap; }
.ae-case .cs-crumbs li + li::before { content: "/"; margin: 0 10px; color: rgba(255, 255, 255, .4); }
.ae-case .cs-crumbs a { color: var(--on-dark-muted); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 4px; }
.ae-case .cs-crumbs a:hover { color: var(--white); }
.ae-case .cs-crumbs [aria-current] { color: var(--white); }
.ae-case .cs-hero .cs-eyebrow { color: var(--orange); margin-bottom: 20px; }
.ae-case .cs-hero h1 { max-width: 15em; }
.ae-case .cs-hero__text .h1 { margin-top: -.12em; } /* the cap height, not the line box, meets the art's top edge */
.ae-case .cs-deck { margin-top: 24px; max-width: 36em; font-size: 18px; line-height: 1.5; color: var(--on-dark-muted); text-wrap: pretty; }
/* key figures: the same treatment as the homepage's success story */
.ae-case .cs-metrics { margin: 40px 0 0; max-width: 640px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.ae-case .cs-metrics div { padding: 20px 16px 20px 0; }
.ae-case .cs-metrics div + div { padding-left: 20px; border-left: 1px solid var(--line-dark); }
.ae-case .cs-metrics dt { color: var(--orange); font-family: var(--serif); font-weight: 300; font-size: 40px; line-height: 44px; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ae-case .cs-metrics dd { margin: 8px 0 0; font-size: 13px; line-height: 18px; color: var(--on-dark-muted); }
.ae-case .cs-facts { margin: 28px 0 0; max-width: 640px; }
.ae-case .cs-facts div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 6px 0; font-size: 15px; line-height: 22px; }
.ae-case .cs-facts dt { color: rgba(255, 255, 255, .62); }
.ae-case .cs-facts dd { margin: 0; color: var(--white); }
.ae-case .cs-provenance { margin-top: 16px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .62); }
.ae-case .cs-hero__art { justify-self: end; width: 100%; max-width: 560px; }
.ae-case .cs-hero__svg { width: 100%; height: auto; overflow: visible; } /* moving parts may pass the art's edge */

/* ---------- workflow (grey band, white frame) ---------- */
.ae-case .cs-frame { margin-top: 40px; background: var(--white); border: 1px solid var(--line-light); padding: 48px 40px; }
/* the steps are an ordered list: the diagram and its text are the same thing, so nothing is duplicated */
.ae-case .wf { --gx: 56px; --gy: 72px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gy) var(--gx); }
.ae-case .wf__step { position: relative; display: flex; }
.ae-case .wf__card { flex: 1; display: grid; align-content: start; gap: 8px; padding: 22px 22px 24px; border: 1px solid #BDBDBD; background: var(--white); position: relative; z-index: 1; }
.ae-case .wf__role { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--muted); }
.ae-case .wf__role svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ae-case .wf__num { margin-left: auto; font-weight: 400; font-variant-numeric: tabular-nums; }
.ae-case .wf__label { font-family: var(--sans); font-size: 18px; line-height: 24px; font-weight: 500; color: var(--ink); }
.ae-case .wf__text { font-size: 15px; line-height: 23px; color: var(--muted); text-wrap: pretty; }

/* the last step, where the sequence lands: orange outline and number, both the brand orange (Andrii's choice; the
   number is decorative emphasis, the step itself is readable in ink) */
.ae-case .wf__step:last-child .wf__card { border-color: var(--orange); box-shadow: inset 0 0 0 .5px var(--orange); }
.ae-case .wf__step:last-child .wf__num { color: var(--orange); font-weight: 600; }

/* quick ratings inside a step: a coloured dot before the word */
.ae-case .rag { white-space: nowrap; color: var(--ink); }
.ae-case .rag::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 5px 1px 1px; border-radius: 50%; vertical-align: middle; }
.ae-case .rag--green::before { background: #2FB37A; } .ae-case .rag--yellow::before { background: #E9B23B; } .ae-case .rag--red::before { background: #E5485E; }

/* connectors (decorative; the list order carries the meaning) */
.ae-case .wf__link { position: absolute; pointer-events: none; }
.ae-case .wf__link::before { content: ""; position: absolute; background: #8A8A8A; }
.ae-case .wf__head { position: absolute; width: 8px; height: 8px; border-top: 1.5px solid #8A8A8A; border-right: 1.5px solid #8A8A8A; }
/* wide: a horizontal arrow across the column gap */
.ae-case .wf__link--next { left: 100%; top: 50%; width: var(--gx); height: 0; }
.ae-case .wf__link--next::before { left: 6px; right: 6px; top: -.75px; height: 1.5px; }
.ae-case .wf__link--next .wf__head { right: 7px; top: -4.5px; transform: rotate(45deg); }
/* wide: from the end of row one, down, back to the start of row two, and down into it */
.ae-case .wf__link--turn { display: block; top: 100%; height: var(--gy); left: calc(-150% - 2 * var(--gx)); width: calc(200% + 2 * var(--gx)); }
.ae-case .wf__link--turn::before { right: 0; top: 6px; height: calc(50% - 6px); width: 1.5px; }
.ae-case .wf__link--turn::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid #8A8A8A; }
.ae-case .wf__link--turn .wf__drop { position: absolute; left: 0; top: 50%; bottom: 6px; border-left: 1.5px solid #8A8A8A; }
.ae-case .wf__link--turn .wf__head { left: -3.25px; bottom: 7px; transform: rotate(135deg); }
.ae-case .wf__link--down { display: none; }
/* narrow: one column; every step points down to the next */
@media (max-width: 899px) {
  .ae-case .cs-frame { padding: 28px 20px; }
  .ae-case .wf { grid-template-columns: minmax(0, 1fr); gap: 40px; max-width: 560px; }
  .ae-case .wf__link--next, .ae-case .wf__link--turn { display: none; }
  .ae-case .wf__link--down { display: block; left: 32px; top: 100%; height: 40px; width: 0; }
  .ae-case .wf__link--down::before { left: -.75px; top: 6px; bottom: 6px; width: 1.5px; }
  .ae-case .wf__link--down .wf__head { left: -4px; bottom: 7px; transform: rotate(135deg); }
}

/* ---------- connected system (grey band): four area cards around one hub, joined by dotted lines ---------- */
.ae-case .sys { --gx: 200px; --gy: 40px; --dash: #9A9A9A; position: relative; }
.ae-case .sys__list { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: 1fr; gap: var(--gy) var(--gx); }
/* the bus: a vertical dotted line down the middle, from the first row's centre to the second row's */
.ae-case .sys__list::before { content: ""; position: absolute; left: 50%; top: calc(25% - var(--gy) / 4); bottom: calc(25% - var(--gy) / 4); border-left: 1.5px dashed var(--dash); }
.ae-case .sys__node { position: relative; display: flex; }
.ae-case .sys__node::after { content: ""; position: absolute; top: 50%; width: calc(var(--gx) / 2); border-top: 1.5px dashed var(--dash); }
.ae-case .sys__node:nth-child(odd)::after { left: 100%; }
.ae-case .sys__node:nth-child(even)::after { right: 100%; }
.ae-case .sys__card { flex: 1; display: grid; align-content: start; gap: 10px; padding: 24px; border: 1px solid #BDBDBD; background: var(--white); position: relative; z-index: 1; }
.ae-case .sys__label { display: flex; align-items: center; gap: 12px; font-family: var(--sans); font-size: 18px; line-height: 24px; font-weight: 500; color: var(--ink); }
.ae-case .sys__label svg, .ae-case .sys__tile svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ae-case .sys__text { font-size: 15px; line-height: 23px; color: var(--muted); text-wrap: pretty; }
.ae-case .sys__meta { margin: 6px 0 0; padding-top: 12px; border-top: 1px solid var(--line-light); display: grid; gap: 6px; font-size: 14px; line-height: 20px; }
.ae-case .sys__meta div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
.ae-case .sys__meta dt { color: var(--muted); }
.ae-case .sys__meta dd { margin: 0; color: var(--ink); }
/* the hub: a flat tile with its lip, in the centre of the bus */
.ae-case .sys__hub { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); width: 168px; display: grid; justify-items: center; gap: 12px; text-align: center; }
.ae-case .sys__tile { display: grid; place-items: center; width: 96px; height: 96px; border: 1.5px solid var(--orange); border-radius: 22px; background: #FFF3EC; box-shadow: 0 5px 0 -1px #E4E4E6, 0 5px 0 0 #CFCFCF; }
.ae-case .sys__tile svg { width: 40px; height: 40px; stroke: var(--orange); }
.ae-case .sys__hub-label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); padding: 2px 6px; background: var(--white); }
.ae-case .cs-frame.sys { padding: 48px 40px; }
@media (max-width: 1100px) { .ae-case .sys { --gx: 176px; } .ae-case .sys__hub { width: 150px; } }
/* narrow: the hub first, then the cards hang off one dotted line down the left (each card draws its own piece) */
@media (max-width: 899px) {
  .ae-case .sys__hub { position: static; transform: none; width: auto; display: flex; align-items: center; justify-items: start; text-align: left; gap: 16px; margin: 0 0 32px; }
  .ae-case .sys__tile { width: 48px; height: 48px; border-radius: 12px; }
  .ae-case .sys__tile svg { width: 24px; height: 24px; }
  .ae-case .sys__hub { margin-bottom: 24px; }
  .ae-case .sys__list { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 20px; padding-left: 40px; }
  .ae-case .sys__list::before { display: none; }
  .ae-case .sys__node::before { content: ""; position: absolute; left: -17px; top: -20px; height: calc(100% + 20px); border-left: 1.5px dashed var(--dash); }
  .ae-case .sys__node:first-child::before { top: -29px; height: calc(100% + 29px); }
  .ae-case .sys__node:last-child::before { height: 56px; }
  .ae-case .sys__node::after, .ae-case .sys__node:nth-child(odd)::after, .ae-case .sys__node:nth-child(even)::after { left: auto; right: 100%; width: 17px; top: 36px; }
  .ae-case .sys__card { padding: 20px; }
  .ae-case .cs-frame.sys { padding: 28px 20px; }
  .ae-case .sys__meta div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ae-case .sys__meta div + div { margin-top: 6px; }
}

/* ---------- layered system (grey band): departments / the custom ERP (modules on a shared core) / connected tools ---------- */
.ae-case .lay__intro { margin-top: 16px; font-size: 18px; line-height: 1.65; color: var(--ink); }
.ae-case .lay { --cols: 5; --gap: 16px; --dash: #9A9A9A; }
.ae-case .lay ul { list-style: none; margin: 0; padding: 0; }
.ae-case .lay svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ae-case .lay__label { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.ae-case .lay__depts, .ae-case .lay__mods { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); }
.ae-case .lay__dept { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 14px; border: 1px solid #BDBDBD; background: var(--white); font-size: 15px; line-height: 20px; font-weight: 500; color: var(--ink); }
/* each department drops a dotted line into its module */
.ae-case .lay__dept::after { content: ""; position: absolute; left: 50%; top: 100%; height: 49px; border-left: 1.5px dashed var(--dash); }
.ae-case .lay__system { position: relative; margin: 48px 0 56px; padding: 20px; border: 1.5px solid var(--orange); background: #FFF8F3; }
.ae-case .lay__label--system { color: var(--ink); margin-bottom: 16px; }
.ae-case .lay__label--system svg { stroke: var(--orange); }
.ae-case .lay__mod { display: grid; align-content: start; gap: 8px; padding: 18px; border: 1px solid #BDBDBD; background: var(--white); }
.ae-case .lay__for { display: none; }
.ae-case .lay__name { font-family: var(--sans); font-size: 17px; line-height: 22px; font-weight: 500; color: var(--ink); }
.ae-case .lay__text { font-size: 14px; line-height: 21px; color: var(--muted); text-wrap: pretty; }
.ae-case .lay__core { margin-top: var(--gap); padding: 16px 18px; border: 1px solid var(--orange); background: var(--white); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.ae-case .lay__core-label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--ink); }
.ae-case .lay__core ul { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; line-height: 22px; color: var(--ink); }
.ae-case .lay__core li { display: flex; align-items: flex-start; gap: 8px; }
.ae-case .lay__core li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; background: var(--orange); }
/* the ERP connects down to every tool: one line down, a bus across, and a drop into each tool */
.ae-case .lay__system::after { content: ""; position: absolute; left: 50%; top: 100%; height: 28px; border-left: 1.5px dashed var(--dash); }
.ae-case .lay__tools { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.ae-case .lay__tools::before { content: ""; position: absolute; top: -28px; left: calc((100% - 3 * var(--gap)) / 8); right: calc((100% - 3 * var(--gap)) / 8); border-top: 1.5px dashed var(--dash); }
.ae-case .lay__tool { position: relative; display: flex; align-items: center; justify-content: center; padding: 12px 14px; border: 1px dashed #BDBDBD; background: var(--white); font-size: 14px; line-height: 20px; color: var(--muted); text-align: center; }
.ae-case .lay__tool::before { content: ""; position: absolute; left: 50%; top: -28px; height: 28px; border-left: 1.5px dashed var(--dash); }
.ae-case .lay__label--bottom { margin: 12px 0 0; }
@media (max-width: 1100px) { .ae-case .lay__text { font-size: 14px; } .ae-case .lay__mod { padding: 14px; } }
/* narrow: the department row folds into the modules (each module names its department); layers stack */
@media (max-width: 899px) {
  .ae-case .cs-frame.lay { padding: 24px 20px; }
  .ae-case .lay__label--top, .ae-case .lay__depts { display: none; }
  .ae-case .lay__system { margin-top: 0; padding: 16px; }
  .ae-case .lay__mods { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ae-case .lay__for { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--muted); }
  .ae-case .lay__core { flex-direction: column; gap: 10px; }
  .ae-case .lay__core ul { flex-direction: column; gap: 6px; }
  .ae-case .lay__tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  /* phones: one line down from the ERP to the tools, which sit as one group */
  .ae-case .lay__tools::before, .ae-case .lay__tool::before { display: none; }
  .ae-case .lay__system { margin-bottom: 28px; }
}
@media (max-width: 420px) { .ae-case .lay__tools { grid-template-columns: minmax(0, 1fr); } }

/* ---------- before / after (navy): the homepage's red cross / green check ---------- */
.ae-case .cs-sec--navy .cs-h2 { color: var(--white); }
.ae-case { --bad: #F0556A; --good: #3ECF8E; }
.ae-case .cmp { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.ae-case .cmp__head { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); padding: 0 0 14px; margin-top: 40px; }
.ae-case .cmp__head span, .ae-case .cmp__tag { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
.ae-case .cmp__mark { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ae-case .cmp__bad, .ae-case .cmp__before .cmp__tag { color: var(--bad); }
.ae-case .cmp__good, .ae-case .cmp__after .cmp__tag { color: var(--good); }
.ae-case .cmp__head .cmp__good { grid-column: 3; }
.ae-case .cmp__row { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line-dark); font-size: 17px; line-height: 1.55; }
.ae-case .cmp__before { color: var(--on-dark-muted); grid-column: 1; grid-row: 1; }
.ae-case .cmp__after { color: var(--good); grid-column: 3; grid-row: 1; }
.ae-case .cmp__item { display: flex; align-items: flex-start; gap: 8px; }
.ae-case .cmp__check { flex: none; width: 16px; height: 16px; margin-top: 5px; fill: none; stroke: var(--good); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ae-case .cmp__tick { stroke-dasharray: 12; stroke-dashoffset: 0; }
.ae-case .cmp__arrow { grid-column: 2; grid-row: 1; justify-self: center; margin-top: 13px; width: 16px; height: 1.5px; background: rgba(255, 255, 255, .45); position: relative; }
.ae-case .cmp__arrow::after { content: ""; position: absolute; right: 0; top: -3.25px; width: 6px; height: 6px; border-top: 1.5px solid rgba(255, 255, 255, .45); border-right: 1.5px solid rgba(255, 255, 255, .45); transform: rotate(45deg); }
.ae-case .cmp__tag { margin-bottom: 8px; }
@media (min-width: 700px) { .ae-case .cmp__tag { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; } }
@media (max-width: 699px) {
  .ae-case .cmp__head { display: none; }
  .ae-case .cmp { margin-top: 32px; }
  .ae-case .cmp__row { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 24px 0; }
  .ae-case .cmp__row .cmp__before, .ae-case .cmp__row .cmp__after { grid-column: 1; grid-row: auto; }
  .ae-case .cmp__arrow { display: none; }
}
/* motion: rows rise in one after another as the list scrolls into view, and each tick draws itself */
.cs-js .ae-case .cmp[data-cs-reveal] .cmp__row { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 120ms); }
.cs-js .ae-case .cmp[data-cs-reveal] .cmp__tick { stroke-dashoffset: 12; transition: stroke-dashoffset .5s var(--ease); transition-delay: calc(var(--i, 0) * 120ms + 350ms); }
.cs-js .ae-case .cmp.is-in .cmp__row { opacity: 1; transform: none; }
.cs-js .ae-case .cmp.is-in .cmp__tick { stroke-dashoffset: 0; }

/* ---------- result links ---------- */
.ae-case .cs-meta { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-light); display: grid; gap: 4px; }
.ae-case .cs-prose .cs-meta p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.ae-case .cs-meta a { display: inline-flex; align-items: center; min-height: 32px; }

/* ---------- closing: the homepage's call to action, without the success story ---------- */
.ae-case .cs-cta:not(.cs-cta--story) .cta__grid { grid-template-columns: minmax(0, 1fr); }  /* with a success story: the homepage's two columns */
.ae-case .cs-cta:not(.cs-cta--story) .cta__iconbox { margin-top: 0; }
.ae-case .cs-cta .h2 { max-width: 14em; }

/* ---------- case index ---------- */
.ae-case .cs-hero--short { padding-bottom: 72px; }
.ae-case .cs-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.ae-case .cs-card { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) 24px; gap: 16px 48px; align-items: start; padding: 36px 0; border-bottom: 1px solid var(--line-light); }
.ae-case .cs-card__meta { margin: 0; padding-top: 10px; display: grid; gap: 6px; }
.ae-case .cs-card__meta .cs-eyebrow { color: var(--orange); }  /* same orange as the Case studies caption */
.ae-case .cs-card__period { font-size: 14px; line-height: 20px; color: var(--muted); }
.ae-case .cs-card h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.ae-case .cs-card h2 a::after { content: ""; position: absolute; inset: 0; } /* the whole card is the link's tap area */
.ae-case .cs-card h2 a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1.5px; text-underline-offset: 6px; transition: text-decoration-color .2s; }
.ae-case .cs-card:hover h2 a { text-decoration-color: var(--orange); }
.ae-case .cs-card h2 a:focus-visible { outline: none; }
.ae-case .cs-card:has(a:focus-visible) { outline: 2px solid var(--orange); outline-offset: 4px; }
.ae-case .cs-card div > p:not(.cs-card__meta) { margin-top: 12px; font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 40em; }
.ae-case .cs-card__go { width: 24px; height: 24px; margin-top: 8px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-btn); }
.ae-case .cs-card:hover .cs-card__go { stroke: var(--orange); }  /* the arrow turns orange; it does not slide */

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .ae-case .cs-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .ae-case .cs-hero__art { justify-self: start; max-width: 420px; }
}
@media (max-width: 899px) {
  .ae-case .cs-card { grid-template-columns: minmax(0, 1fr) 24px; }
  .ae-case .cs-card__meta { grid-column: 1 / -1; padding-top: 0; grid-auto-flow: column; justify-content: start; gap: 12px; align-items: baseline; }
}
@media (max-width: 640px) {
  .ae-case { --sec: 56px; }
  .ae-case .cs-hero { padding: calc(var(--nav-h) + 32px) 0 56px; }
  .ae-case .cs-crumbs ol { margin-bottom: 28px; }
  .ae-case .h1.h1--hero { font-size: 40px; }
  .ae-case .cs-h2 { font-size: 34px; }
  .ae-case .cs-prose p { font-size: 17px; }
  .ae-case .cs-metrics div { padding: 16px 10px 16px 0; }
  .ae-case .cs-metrics div + div { padding-left: 12px; }
  .ae-case .cs-metrics dt { font-size: 30px; line-height: 36px; }
  .ae-case .cs-metrics dd { font-size: 12px; line-height: 16px; }
  .ae-case .cs-facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 8px 0; }
}
@media (max-width: 359px) { .ae-case .cs-metrics dt { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) {
  .ae-case *, .ae-case *::before, .ae-case *::after { transition: none !important; }
  .cs-js .ae-case .cmp[data-cs-reveal] .cmp__row { opacity: 1; transform: none; }
  .cs-js .ae-case .cmp[data-cs-reveal] .cmp__tick { stroke-dashoffset: 0; }
  .ae-case .flow-dot { display: none; }
}
@media print {
  .ae-case .nav, .ae-case .cs-cta, .ae-case .footer { display: none; }
  .ae-case .cs-hero { padding-top: 24px; }
}

/* opening section with the case's pen drawing (homepage "Who we are" layout) */
.cs-opening__art { display: block; width: 100%; max-width: 480px; height: auto; }
.cs-opening .about__copy .body-lg { margin: 0; }
