:root { --image-radius: 10px; }
/* Site nav: Home and About on the left, the theme toggle on the right. Fixed to the top of the window. The current page has a background pill.
   Used on every page. */
:root { --site-footer-h: 65px; --nav-inset: clamp(.5rem, 5vw, 6rem); --site-inset: var(--nav-inset); }
.site-header {
  position: fixed; z-index: 900; top: 0; left: 0; right: 0;
  background: var(--bg-page); border-bottom: var(--border-hairline) solid var(--border-subtle);
  font-family: Hkgrotesk, Arial, sans-serif;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: flex-start; gap: 1rem;
  height: 64px; padding: 0 calc(var(--divider-inset, var(--nav-inset)) + 1rem); box-sizing: border-box;
}
.site-header__nav { display: flex; align-items: center; flex: 1 1 auto; gap: 1.75rem; }
.site-header__link {
  color: var(--text-secondary); text-decoration: none; font-size: .95rem; font-weight: 500; line-height: 1.2;
  padding: .45rem .75rem; margin: 0 -.75rem; border-radius: 99px;
  transition: color .15s ease, background-color .15s ease;
}
.site-header__link { text-decoration-thickness: 1px; text-underline-offset: .25em; }
.site-header__link:focus-visible, .site-header__link[aria-current="page"] { text-decoration-line: underline; }
.site-header__link[aria-current="page"] { color: var(--text-primary); }
.site-header__links { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.site-header__menu-button { display: none; }
.site-header .theme-toggle { width: 36px; height: 36px; margin-right: -.5rem; padding: 0; border: 0; border-radius: 99px; color: var(--text-secondary); }
@media (hover: hover) {
  .site-header__link:hover, .site-header .theme-toggle:hover { color: var(--text-primary); }
  .site-header__link:hover { text-decoration-line: underline; }
  .site-header .theme-toggle:hover { background: color-mix(in srgb, var(--text-primary) 8%, transparent); }
}

body:has(> .site-header) { padding-top: 64px; }
@media (max-width: 479px) {
  body:has(> .site-header) { padding-top: 56px; }
  .site-header__inner { height: 56px; }
}

/* Phones: the outer edges of the nav buttons (Home pill on the left, theme toggle on the right) sit 1.5rem from the window, the same as the page content. */
@media (max-width: 767px) {
  .site-header__inner { padding-left: calc(1.5rem + .75rem); padding-right: calc(1.5rem + .5rem); }

  /* Phones: About and Resume move into a menu that drops down under the header. */
  .site-header__nav { gap: .25rem; }
  .site-header .theme-toggle { margin-left: auto; margin-right: 0; }
  .site-header__menu-button {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-right: -.5rem; padding: 0;
    border: 0; border-radius: 99px; background: none; color: var(--text-secondary); cursor: pointer;
  }
  .site-header__menu-button .menu-line { transition: transform .2s cubic-bezier(.22, 1, .36, 1); }
  .site-header__menu-button .menu-line--top { transform-origin: 12px 8px; }
  .site-header__menu-button .menu-line--bottom { transform-origin: 12px 16px; }
  .is-menu-open .menu-line--top { transform: translateY(4px) rotate(45deg) scaleX(1.3); }
  .is-menu-open .menu-line--bottom { transform: translateY(-4px) rotate(-45deg) scaleX(1.3); }
  .site-header__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: .5rem 0; background: var(--bg-page); border-top: var(--border-hairline) solid var(--border-subtle); border-bottom: var(--border-hairline) solid var(--border-subtle);
    opacity: 0; visibility: hidden; transform: translateY(-.5rem);
    transition: opacity .15s ease-out, transform .15s ease-out, visibility 0s linear .15s;
  }
  .is-menu-open .site-header__links { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-header__links .site-header__link {
    display: flex; align-items: center; min-height: 48px; margin: 0; padding: 0 calc(1.5rem + .75rem);
    border-radius: 0; font-size: 1.0625rem; background: none;
  }
  .site-header__links .site-header__link[aria-current="page"] { background: none; color: var(--text-primary); }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .site-header__links, .site-header__menu-button .menu-line { transition: none; }
}
@media (max-width: 767px) and (hover: hover) {
  .site-header__menu-button:hover { color: var(--text-primary); background: color-mix(in srgb, var(--text-primary) 8%, transparent); }
}

/* Home hero: no side dividers (the nav above it shares the hero's frame). */
.hero-section .container-1200.home { border-left-width: 0; border-right-width: 0; border-top-width: 0; }

/* Home: pull the dividers and the case study cards in toward the center for more empty space at the sides. */
body:has(.hero-section) .div-lines { margin-left: var(--site-inset); margin-right: var(--site-inset); }
/* Phones: no side dividers on the home page; the rules between the cards run edge to edge. */
@media screen and (max-width: 767px) { body:has(.hero-section) .div-lines { margin-left: 0; margin-right: 0; border-left-width: 0; border-right-width: 0; } }
/* Case study cards fill the divider frame as rows with a rule between them. Only the "Read case study" link is clickable. */
body:has(.hero-section) .case-cards { padding: 0; gap: 0; }
body:has(.hero-section) .case-card { --card-pad: clamp(1.5rem, 4vw, 3rem); border-radius: 0; background-color: transparent !important; border-bottom: var(--border-hairline) solid var(--border-subtle); }
body:has(.hero-section) .case-card:last-child { border-bottom: 0; }
body:has(.hero-section) .case-card:hover { background-color: transparent !important; }
.case-card-link { text-decoration: none; cursor: pointer; }
.case-card-link:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 4px; border-radius: 999px; text-decoration-line: underline; }
.case-card-link { text-decoration-line: none; text-decoration-thickness: 1px; text-underline-offset: .25em; }
@media (hover: hover) { .case-card-link:hover { text-decoration-line: underline; } }

/* Case studies: same inset for the side dividers as the home page. */
body:has(> .site-header) > .container-1200.light { max-width: none; margin-left: var(--site-inset); margin-right: var(--site-inset); }

/* Case study hero: positioning context for the rule under the hero. */
.container-1200.stepper-page { position: relative; }

/* Footer strip at the bottom of each page: side dividers line up with the content's dividers. */
.site-footer, .view-web .site-footer {
  height: var(--site-footer-h);
  margin-left: var(--divider-inset, var(--nav-inset)); margin-right: var(--divider-inset, var(--nav-inset));
  border-style: none solid; border-width: var(--border-hairline); border-color: var(--border-subtle) var(--border-strong);
  box-sizing: border-box;
}
.view-web .site-footer.cs-footer-gap, .site-footer.cs-footer-gap { position: relative; border-top: 0; border-left: var(--border-hairline) solid var(--border-strong); border-right: var(--border-hairline) solid var(--border-strong); }
/* The rule above the case study footer runs the full width of the page. */
.site-footer.cs-footer-gap::before { content: ""; position: absolute; top: 0; height: var(--border-hairline); left: calc(-1 * var(--border-hairline) - var(--divider-inset, var(--nav-inset))); right: calc(-1 * var(--border-hairline) - var(--divider-inset, var(--nav-inset))); background: var(--border-strong); pointer-events: none; }

/* About: its content frame uses the same inset as every other page. */
.about-me-section .div-dark-lines { margin-left: var(--site-inset); margin-right: var(--site-inset); }

/* Case study hero: a rule under the hero that runs the full width of the page. */
.container-1200.stepper-page::after { content: ""; position: absolute; z-index: 1; top: var(--hero-h, 0); left: calc(-1 * var(--border-hairline) - var(--site-inset)); right: calc(-1 * var(--border-hairline) - var(--site-inset)); height: var(--border-hairline); background: var(--border-strong); pointer-events: none; display: none; }
.container-1200.stepper-page:has(.slide-card__slide--hero)::after { display: block; }

/* About: no side dividers. */
.about-me-section .div-dark-lines { border-left-width: 0; border-right-width: 0; }
body:has(.about-ed) .site-footer { border-left-width: 0; border-right-width: 0; }

/* About: same space under the nav as the case study pages on desktop (about 80px to the first content). */
@media screen and (min-width: 992px) {
  body .about-me-section .div-dark-lines { padding-top: 2rem; }
}

/* Type consistency across pages (the case study pages carry their own inline type rules, hence the extra specificity).
   - UI chrome (stepper status, key hints) uses the site font, not Arial / system fonts.
   - Hero intro text is 16px on About and the case studies.
   - Small uppercase labels are 12px everywhere. */
html body .slide-card__status, html body .slide-card__tip, html body .slide-card__tip kbd { font-family: Hkgrotesk, Arial, sans-serif; }
html body .cs-cover__desc { font-size: 1rem !important; }

/* Type scale. Headings and body text grow from a 1000px window to a 1920px window.
   --heading-1: home hero, home and case study cards, case study cover title, About title.
   --heading-2: case study section headings.
   --label: small uppercase labels (Role, Timeline, Outcome, section eyebrows, table headers).
   Heading 4 (column and credits titles) is the body size in semi-bold. */
:root {
  --heading-1: clamp(30px, calc(30px + 14 * (100vw - 1000px) / 920), 44px);
  --heading-2: clamp(22px, calc(22px + 8 * (100vw - 1000px) / 920), 30px);
  --label: 12px;
}
html body .case-card-title,
html body .cs-cover__title,
html body .about-ed__title,
html body .headin2_left_white { font-size: var(--heading-1) !important; line-height: 1.1; letter-spacing: -.015em; }
/* The home hero heading scales on its own clamp, larger than the shared heading size, and balances its lines so a short last word doesn't sit alone. */
html body .hero-section .heading1_center { font-size: clamp(1.75rem, 1.1rem + 2vw, 2.75rem) !important; line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; }
html body .cs-grid4__heading,
html body .cs-carousel__heading,
html body .cs-explore__heading,
html body .cs-showcase__heading,
html body .cs-closing__title,
html body .cs-stepper .slide-card__slide h2.heading-3,
html body .cs-stepper h2.heading-3,
html body .case-study-heading { font-size: var(--heading-2) !important; line-height: 1.2; letter-spacing: -.015em; }
html body .cs-cover__meta dt,
html body .cs-cover__eyebrow,
html body .about-ed__kicker,
html body .cs-setmap thead th,
html body .cs-guard__label,
html body .cs-credits dt,
html body .cs-credits__title,
html body .cs-stepper .slide-card__slide[data-section]::before { font-size: var(--label) !important; }

/* Case study headings and titles use Hk Grotesk; only the cover (hero) title keeps Haikara. */
html body .cs-grid4__heading,
html body .cs-carousel__heading,
html body .cs-explore__heading,
html body .cs-showcase__heading,
html body .cs-closing__title,
html body .cs-stepper .slide-card__slide .slide-card__title,
html body .cs-stepper h2.heading-3,
html body .case-study-heading,
html body .cs-col__title,
html body .cs-before__title,
html body .cs-explore__title,
html body .cs-credits__title { font-family: Hkgrotesk, Arial, sans-serif !important; font-weight: 500; }

html body .cs-credits dt { font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }

/* Body text, and Heading 4 (column and credits titles in semi-bold). */
html body .cs-cover__desc, html body .cs-merge-top__text p, html body .cs-carousel__sub, html body .cs-closing__body p, html body .cs-stepper .cs-lead, html body .cs-stepper .body-text, html body .cs-themes__theme, html body .cs-themes__job, html body .cs-themes li, html body .cs-credits__thanks { font-size: clamp(16px, calc(16px + 2.4 * (100vw - 1000px) / 920), 18.4px) !important; }
html body .cs-col__title { font-size: clamp(16px, calc(16px + 2.4 * (100vw - 1000px) / 920), 18.4px) !important; font-weight: 600 !important; line-height: 1.4; letter-spacing: 0; }

/* Case study section heads: label, heading and the content below sit on one tight, shared gap on every slide. */
:root { --cs-head-gap: .75rem; }
html body .cs-stepper .slide-card__slide[data-section]::before { margin-bottom: 0 !important; }
html body .cs-grid4__heading,
html body .cs-explore__heading,
html body .cs-carousel__heading,
html body .cs-closing__title { margin: 0 !important; }
html body .cs-stepper .slide-card__slide[data-section],
html body .cs-carousel__head,
html body .cs-merge-top { row-gap: var(--cs-head-gap) !important; }
html body .cs-merge-top__text,
html body .cs-carousel__row,
html body .cs-closing__body { margin-top: 0 !important; }
html body .cs-closing__rule { display: none; }

/* Carousel slides have no border. */
html body .cs-stepper .slide-card__slide.slide-card__slide--carousel { border: 0 !important; }

/* Case study cover: left-aligned column, title, description, then the facts as tags styled like the home page cards. */
html body .cs-cover__text { display: flex !important; flex-direction: column; align-items: flex-start; text-align: left; }
html body .cs-cover__title, html body .cs-cover__desc { grid-column: auto !important; grid-row: auto !important; margin-inline: 0; }
html body .cs-cover__meta { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .75rem 2.5rem; grid-column: auto !important; grid-row: auto !important; max-width: 48rem; margin: clamp(1.5rem, 4vh, 2.25rem) 0 0 !important; padding-top: 0 !important; align-self: flex-start !important; }
html body .cs-cover__meta > div { display: block; padding: 0; border: 0; background: none; }
html body .cs-cover__meta dt { margin: 0 0 .15rem; white-space: nowrap; }
html body .cs-cover__meta dd { margin: 0; font-weight: 400; line-height: 1.55; }

html body .cs-cover__title { order: 1; }
html body .cs-cover__desc { order: 2; }
html body .cs-cover__tags { order: 3; margin-top: 1.25rem; align-self: flex-start; }

/* Case study body text runs in a narrower measure; images, tables and demos keep their widths. */
html body .cs-cover__desc { max-width: 48rem; }
html body .cs-closing__body { max-width: var(--cs-measure); }
html body .cs-carousel__text { max-width: none; flex: 1 1 24rem; }
html body .cs-grid4__heading, html body .cs-explore__heading, html body .cs-carousel__heading, html body .cs-showcase__heading, html body .cs-stepper .slide-card__slide .slide-card__title { max-width: none !important; }
html body .cs-merge-top__text, html body .cs-merge-top__text p { max-width: none; }
html body .cs-carousel__sub { max-width: none; flex: 1 1 24rem; }

html body .cs-cover__desc { max-width: 48rem !important; font-size: clamp(1rem, 1.3vw, 1.15rem) !important; line-height: 1.55; opacity: 1; }

/* Case study cover: a wider title and intro paragraph (the pages' own rules cap them at 22ch). */
html body .cs-cover .cs-cover__title { max-width: 40ch; }
@media screen and (max-width: 767px) { html body .cs-cover .cs-cover__title, html body .cs-cover__desc { max-width: none !important; } }

/* Case study body text grows from 1000px up to a 1920px window. */
html body .cs-cover__desc, html body .cs-merge-top__text p, html body .cs-carousel__sub, html body .cs-closing__body p { font-size: clamp(16px, calc(16px + 2.4 * (100vw - 1000px) / 920), 18.4px) !important; }

/* Case study type scales: headings, sub-headings (column and credits titles) and body text each use one size at every window width. */
html body .cs-stepper .cs-lead, html body .cs-stepper .body-text, html body .cs-themes__theme, html body .cs-themes__job, html body .cs-themes li, html body .cs-credits__thanks, html body .cs-cover__meta dd, html body .cs-cover__note { font-size: clamp(16px, calc(16px + 2.4 * (100vw - 1000px) / 920), 18.4px) !important; }

/* Heading 4: column and credits titles use the body text size, bolder. */
html body .cs-col__title { font-size: clamp(16px, calc(16px + 2.4 * (100vw - 1000px) / 920), 18.4px) !important; font-weight: 600 !important; line-height: 1.4; letter-spacing: 0; }

html body .cs-credits dt, html body .cs-credits__title { font-family: Hkgrotesk, Arial, sans-serif !important; font-weight: 500 !important; line-height: 1.4; letter-spacing: .04em; text-transform: uppercase; }

/* Case study cover: one vertical column at every width (title, description, facts, client note), in the same centred column as the text below. */
html body .cs-cover__text { box-sizing: border-box; width: 100%; max-width: var(--cs-measure); margin-left: auto; margin-right: auto; }
html body .cs-cover .cs-cover__title { max-width: none; }
html body .cs-cover__text > .cs-cover__title { order: 1 !important; }
html body .cs-cover__text > .cs-cover__desc { order: 2 !important; }
html body .cs-cover__text > .cs-cover__note { order: 3 !important; }
html body .cs-cover__text > .cs-cover__meta { order: 4 !important; }
html body .cs-cover__text > .cs-cover__tags { order: 5 !important; }

/* One body text scale for every case study text: intro, fact values, the client note, body copy, closing copy and credit names all share the same size and line height, growing from 16px at 1000px to 18.4px at 1920px. */
:root { --cs-body: clamp(16px, calc(16px + 2.4 * (100vw - 1000px) / 920), 18.4px); --cs-body-lh: 1.55; }
html body .cs-cover__desc,
html body .cs-cover__meta dd,
html body .cs-cover__note,
html body .cs-credits dd,
html body .cs-merge-top__text p,
html body .cs-carousel__sub,
html body .cs-closing__body p,
html body .cs-stepper .cs-lead,
html body .cs-stepper .body-text,
html body .cs-themes__theme,
html body .cs-themes__job,
html body .cs-themes li { font-size: var(--cs-body) !important; line-height: var(--cs-body-lh); }

/* Links inside case study credits match the About page links: primary color, medium weight, no underline until hover. */
html body .cs-credits dd a { color: var(--text-primary); font-weight: 500; text-decoration: none; text-decoration-thickness: 1px; text-underline-offset: .2em; }
@media (hover: hover) { html body .cs-credits dd a:hover { text-decoration-line: underline; text-decoration-color: currentColor; } }
html body .cs-credits dd a:focus-visible { text-decoration-line: underline; }

/* Aiven and billing case study images: each one's colour, the same in light and dark, and no glass frame. */
:root { --tint-aiven: #ffa91d; --tint-billing: #A7CAFA; }
.case-card-media .aiven-hero-column, html body .cs-cover__frame--aiven { background-color: var(--tint-aiven); background-image: none; }
.case-card-media .billing-hero-column, html body .cs-cover__frame--billing { background-color: var(--tint-billing); background-image: none; }
.case-card-media .aiven-hero-column::before, .case-card-media .aiven-hero-column::after, .case-card-media .aiven-grain { display: none; }
.case-card-media .aiven-glass { padding: 0; border: 0; border-radius: .5rem; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.case-card-media .aiven-hero-img, .case-card-media .billing-hero-img { border: 0; border-radius: .5rem; }
/* Same corner proportion at every width: 8px on the 615px desktop image, scaled with the image on mobile. */
.case-card-media .billing-hero-img { border-radius: 1.3% / 2.08%; }
.case-card-media .aiven-hero-img { border-radius: 1.3% / 2.24%; } /* 3848x2236 image: the same circular corner as billing */
/* The images are large inside a thin, even inset, so the tint only peeks around them. */
.case-card-media .aiven-hero-column, .case-card-media .billing-hero-column { padding: clamp(16px, 2.8vw, 28px); }
/* The frame follows the image: full image, no crop, with the inset the same on every side. */
.case-card-media:has(.aiven-hero-column, .billing-hero-column) { align-self: center; aspect-ratio: auto; }
.case-card-media .aiven-hero-column, .case-card-media .billing-hero-column { height: auto; aspect-ratio: auto; }
.case-card-media .aiven-glass { height: auto; }
/* Reminders card: a tighter inset than the other cards, with the whole screenshot centred in the frame */
.case-card-media .billing-hero-column--bleed { align-items: center; aspect-ratio: auto; padding: clamp(10px, 2vw, 16px); overflow: hidden; background: none; }
.case-card-media .billing-hero-column--bleed .aiven-glass { width: 100%; }
.case-card-media .billing-hero-column--bleed .billing-hero-img { border-radius: .5rem; box-shadow: none; }
.case-card-media .aiven-hero-img, .case-card-media .billing-hero-img { height: auto; object-fit: contain; }
html body .cs-cover__frame--aiven, html body .cs-cover__frame--billing { padding: clamp(1rem, 2.8vw, 1.75rem) clamp(1rem, 2.8vw, 1.75rem) 0; }
.cs-cover__frame--aiven img, .cs-cover__frame--billing img { border: 0; border-radius: var(--image-radius) var(--image-radius) 0 0; box-shadow: none; }

/* Phones: the body already clears the fixed nav, so don't add the nav height again above the first content. */
@media screen and (max-width: 767px) {
  html body .about-me-section .div-dark-lines { padding-top: 1.5rem; }
  html body .about-ed { padding-top: 1rem; }
  html body .container-1200.light.stepper-page, html.view-web body .container-1200.light.stepper-page { padding-top: 1rem; }
  html body .cs-stepper .slide-card__slide--hero, html.view-web body .cs-stepper .slide-card__slide--hero.is-active { padding-top: 1rem; }
  html body .hero-section .container-1200.home { padding-top: 6rem; padding-bottom: 3rem; height: auto; min-height: 0; }
  html body .hero-section .grid-hero { align-items: flex-start; height: auto; min-height: 0; }
}

/* The row of small icons (smiley, note, pen, diamond) under the hero text only belongs to the original hero. */
html:not([data-hero="original"]) .icon-content-wrapper { display: none !important; }

/* Credits: a stacked list, role above name, everything right aligned and flush to the right of the column. */
html body .cs-stepper .slide-card__slide--closing .cs-credits { text-align: right; }
html body .cs-stepper .slide-card__slide--closing .cs-credits__title { margin: 0 0 .5rem; text-align: right; }
html body .cs-stepper .slide-card__slide--closing .cs-credits__list { grid-template-columns: minmax(0, 1fr); gap: 0; }
html body .cs-stepper .slide-card__slide--closing .cs-credits__list > div { display: block; padding: .55rem 0; border: 0; }
html body .cs-stepper .slide-card__slide--closing .cs-credits dt { margin: 0 0 .15rem; text-align: right; }
html body .cs-stepper .slide-card__slide--closing .cs-credits dd { margin: 0; text-align: right; }
html body .cs-stepper .slide-card__slide--closing .cs-credits dd, html body .cs-stepper .slide-card__slide--closing .cs-credits dd a { color: var(--text-primary); font-weight: 400; }
@media (min-width: 768px) {
  html body .cs-stepper .slide-card__slide--closing .cs-credits { justify-self: end; width: max-content; max-width: 100%; }
}

/* No glass ring on the case study cover images either (the pages' own rule gives them a padded, translucent border). */
html:root body .cs-cover__frame--aiven img, html:root body .cs-cover__frame--billing img { padding: 0; border: 0; background: none; box-shadow: none; border-radius: var(--image-radius) var(--image-radius) 0 0; }

/* One paragraph style across the case studies: the shared body size (16px, up to 18.4px on large screens), primary colour at 80% and a measure of 40 times the font size (about 75 characters a line).
   Footnotes, credits, labels and the themes diagram keep their own styles. */
:root { --cs-para: var(--cs-body); --cs-measure: calc(var(--cs-para) * 40); --cs-para-lh: var(--cs-body-lh); --cs-text-opacity: .8; }
html body .cs-cover__desc,
html body .cs-merge-top__text p,
html body .cs-carousel__sub,
html body .cs-closing__body p,
html body .cs-stepper .cs-lead,
html body .cs-stepper .cs-principles,
html body .cs-stepper .body-text:not(.cs-footnote) { color: var(--text-primary) !important; opacity: var(--cs-text-opacity) !important; font-size: var(--cs-para) !important; line-height: var(--cs-para-lh) !important; max-width: var(--cs-measure) !important; }

/* The text of each case study slide is one centred column; images, demos and the credits footer stay wider. */
html body .cs-stepper .slide-card__slide[data-section]:not(.slide-card__slide--hero)::before,
html body .cs-stepper .slide-card__slide .cs-merge-top,
html body .cs-stepper .slide-card__slide .cs-carousel__head,
html body .cs-stepper .slide-card__slide--columns > .slide-card__title.heading-3,
html body .cs-stepper .slide-card__slide--columns > .cs-lead,
html body .cs-stepper .slide-card__slide--columns > .cs-principles,
html body .cs-stepper .slide-card__slide--closing .cs-closing__title,
html body .cs-stepper .slide-card__slide--closing .cs-closing__body { box-sizing: border-box; width: 100%; max-width: var(--cs-measure) !important; margin-left: auto; margin-right: auto; justify-self: center; }

/* Credits footer polish: a quiet label on the left, the people on the right in even columns, roles in small tracked caps above their names. */
@media screen and (min-width: 768px) {
  html body .cs-stepper .slide-card__slide--closing .cs-credits { align-items: flex-start !important; margin-top: clamp(4rem, 10vh, 6.5rem) !important; padding-top: 2rem !important; }
  html body .cs-stepper .slide-card__slide--closing .cs-credits__title { padding-top: .1rem; color: var(--text-secondary); font-size: var(--label, 12px) !important; letter-spacing: .08em; }
  html body .cs-stepper .slide-card__slide--closing .cs-credits__list { gap: 1.75rem clamp(2.5rem, 4.5vw, 4.5rem) !important; }
  html body .cs-stepper .slide-card__slide--closing .cs-credits dt { margin: 0 0 .4rem; color: var(--text-secondary); font-size: var(--label, 12px) !important; letter-spacing: .08em; white-space: nowrap; }
  html body .cs-stepper .slide-card__slide--closing .cs-credits dd { line-height: 1.35; white-space: nowrap; }
}
html body .cs-credits dd a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: .25em; transition: text-decoration-color .15s; }
@media (hover: hover) { html body .cs-credits dd a:hover { text-decoration-color: currentColor; } }
html body .cs-credits dd a:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 3px; border-radius: 2px; }

/* The carousel arrows sit level with the bottom of the intro text. */
html body .cs-carousel__row { align-items: flex-end; }

/* No empty padding under a slide: the next slide's own top padding already separates them. */
html body .cs-stepper .slide-card__slide:not(.slide-card__slide--hero):not(:last-child) { padding-bottom: 0; }
html body .cs-stepper .slide-card__slide--textimage > .cs-merge-top:last-child { margin-bottom: 0; padding-bottom: 0; }

/* One corner radius for every panel and image frame in the case studies: the site's image radius. */
html body .cs-themes, html body .cs-setmap, html body .cs-funnel--lifts, html body .cs-scale, html body .cs-cover__frame, html body .cs-carousel__frame, html body .cs-carousel .cs-demo { border-radius: var(--image-radius, 10px); }
html body .cs-cover__frame--billing, html body .cs-cover__frame--aiven { border-radius: var(--image-radius, 10px) var(--image-radius, 10px) 0 0; }

/* Light mode: the client footnote uses the same 80% text as the description above it. */
:root:not([data-theme="dark"]) html body .cs-cover__note, html:root:not([data-theme="dark"]) body .cs-cover__note { color: var(--text-primary) !important; opacity: .8 !important; }

/* Case study cover: title and description run a step larger than the shared heading and body sizes. */
html body .cs-cover .cs-cover__title { font-size: clamp(36px, calc(36px + 18 * (100vw - 1000px) / 920), 54px) !important; }
html body .cs-cover .cs-cover__desc { font-size: clamp(18px, calc(18px + 3 * (100vw - 1000px) / 920), 21px) !important; }

/* Case study cover rhythm: title and description read as one block, the footnote tucks under them, then the facts and tags each get clear breathing room. */
html body .cs-cover__text > .cs-cover__desc { margin-top: 1.25rem !important; }
html body .cs-cover__text > .cs-cover__note { margin-top: 1rem !important; }
html body .cs-cover__text > .cs-cover__meta { margin-top: 2.5rem !important; gap: 1rem 3rem; }
html body .cs-cover__text > .cs-cover__tags { margin-top: 2rem !important; }
/* Role, Timeline and Outcome are spread left, middle and far right across the text column. */
html body .cs-cover__text > .cs-cover__meta { display: flex; justify-content: space-between; width: 100%; max-width: none; }
html body .cs-cover__meta > div:last-child { text-align: left; }

/* Images with a light and a dark variant: show the one that matches the theme. */
html body img.theme-img--dark { display: none; }
html[data-theme="dark"] body img.theme-img--light { display: none; }
html[data-theme="dark"] body img.theme-img--dark { display: block; }

/* Demo videos: a hairline frame, rounded like every other image. */
html body .cs-carousel .cs-demo { border: var(--border-hairline) solid var(--border-subtle); }

/* Every image frame has the hairline border and the shared radius. The wireframe tokens stay as they are for the mock UI inside the demos. */
html body .cs-proto, html body .cs-before__frame, html body .cs-scale, html body .cs-reveal .cs-carousel__frame:has(.cs-svcdemo), html body .cs-svcdemo { border-width: var(--border-hairline); border-radius: var(--image-radius); }

/* The thin ring drawn over image frames and tiles is a hairline too. */
html body .cs-carousel .cs-carousel__frame::after { box-shadow: inset 0 0 0 var(--border-hairline) var(--cs-ring); }

/* The quote cards on the Reminders page use the hairline too. */
html body .cs-quotes .cs-quotes__item.cs-quotes__item { border-width: var(--border-hairline); }

/* Aiven free tier home card: the screenshot is zoomed in and bleeds off the bottom-right of its coloured panel, with the tint showing at the top and left, so the plan options read
   (not the service summary beside them). The case page cover keeps the full image. The panel is a size container: everything is measured in its width (cqw); about 64% of the image's width is visible. */
html body .case-card-media .aiven-hero-column {
  position: relative; display: block; overflow: hidden; container-type: inline-size; padding: 0; aspect-ratio: 1.46 / 1; height: auto;
}
html body .case-card-media .aiven-hero-column .aiven-glass { position: absolute; inset: 0; width: auto; height: auto; padding: 0; overflow: visible; }
html body .case-card-media .aiven-hero-column .aiven-hero-img {
  position: absolute; left: 6cqw; top: 6cqw; width: calc((100cqw - 6cqw) / .645); max-width: none; max-height: none; object-fit: fill; height: auto; margin: 0;
  border-radius: clamp(6px, 1.4cqw, 10px) 0 0 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
}
