:root {
  --art-mint: #45c5a3;
  --art-mint-light: #93dcc5;
  --art-mint-shade: #23846c;
  --art-paper: #e9e7dc;
  --art-paper-shade: #bebcaf;
  --art-paper-edge: #858c82;
  --art-sand: #d4ba88;
  --art-sand-shade: #a58a5b;
  --art-ink: #292e2b;
  --art-brand-spark: #c9be92;
  --art-line: #737e76;
  --art-wash: #263b34;
  --art-shadow: #111513;
}
:root .customer-brand-icon {
  --art-mint: var(--mint);
  --art-mint-shade: #0e8467;
  --art-mint-light: #7bd7c0;
  --art-brand-spark: var(--flash);
  --art-sand: #cdc39b;
  --art-sand-shade: #918969;
}
:root[data-theme="light"] {
  --art-mint: #349b80;
  --art-mint-light: #82c9b2;
  --art-mint-shade: #1d6d59;
  --art-paper: #ffffff;
  --art-paper-shade: #d7e0e6;
  --art-paper-edge: #91a5ae;
  --art-sand: #d4af70;
  --art-sand-shade: #a17b42;
  --art-ink: #364b46;
  --art-brand-spark: #c49a53;
  --art-line: #8b9e97;
  --art-wash: #e0eee9;
  --art-shadow: #bbcec7;
}
:root[data-theme="light"] .customer-brand-icon {
  --art-mint: var(--mint);
  --art-mint-shade: #10544a;
  --art-mint-light: #7db2aa;
  --art-brand-spark: var(--flash);
  --art-sand: #c9a261;
  --art-sand-shade: #8d6f3c;
}
:root :is([data-benefit-design="gentle-current"], [data-benefit-design="shoreline"], .customer-crew, .customer-data-mark) {
  --art-mint: #5aa18b;
  --art-mint-light: #94bdaa;
  --art-mint-shade: #346a59;
  --art-paper: #bbc1b3;
  --art-paper-shade: #879487;
  --art-sand: #baa67b;
  --art-sand-shade: #83744b;
  --art-leaf-shade: #478572;
}
:root[data-theme="light"] :is([data-benefit-design="gentle-current"], [data-benefit-design="shoreline"], .customer-crew, .customer-data-mark) {
  --art-mint: #54917e;
  --art-mint-light: #9bbeac;
  --art-mint-shade: #366b5c;
  --art-paper: #d9dfd4;
  --art-paper-shade: #a7b6aa;
  --art-sand: #b79f72;
  --art-sand-shade: #887448;
  --art-leaf-shade: #457e6d;
}
/* Customer-focused opening; scoped to the homepage and its header. */
/* The main action and onward cue share one height scale at every viewport. */
:root { --opening-action-height: 59.5px; }
@media (max-width: 1099px) and (max-height: 740px) {
  :root { --opening-action-height: 48px; }
}
:root[data-device] .hero-workspace[data-pipeline="customer"] .chat-launch {
  height: var(--opening-action-height); min-height: var(--opening-action-height);
}
:root[data-device] .nav .customer-brand {
  --header-brand-size: 44px;
  gap: calc(var(--header-brand-size) * .16);
}
:root[data-device] .nav .customer-brand-icon {
  display: block; flex: none; width: auto; height: var(--header-brand-size);
  aspect-ratio: 132 / 180;
}
/* Scale the pair together; align the lettering with the bottle's visual center,
   allowing for the lighter cork and sparkles above its body. */
:root[data-device] .nav .wordmark[data-theme-art="brand-opening-wordmark"] {
  width: calc(var(--header-brand-size) * 3.75); height: auto;
  transform: translateY(calc(var(--header-brand-size) * .06));
  flex: none;
}
@media (max-width: 1099px) {
  :root[data-device] .nav .customer-brand { --header-brand-size: 36px; }
}
@media (max-width: 700px) {
  :root[data-device] .nav .customer-brand { --header-brand-size: 34px; }
}
:root[data-device] .chapter.intro > :is(h1, .lede) { text-align: center; }
:root[data-device] .chapter.intro h1 { min-width: 0; }
/* The fitter keeps each phrase on one line, shrinking only when it needs room. */
.intro h1[data-fit-headline] .hero-phrase { white-space: nowrap; }
:root .hero-workspace[data-pipeline="customer"] .hero-services {
  display: block; width: 100%; margin: 0; padding: 0;
}
:root .hero-workspace[data-pipeline="customer"] { padding-top: 0; }
/* The control belongs to the sky, beneath the moving and foreground artwork. */
:root .customer-theme-toggle {
  position: absolute; z-index: 0; translate: -50% -50%;
  width: 44px; height: 44px; margin: 0; border-radius: 50%;
  pointer-events: auto;
}
.customer-theme-toggle:not([data-positioned="true"]),
body:has(.hero-chat[data-chat-state="open"]) .customer-theme-toggle { visibility: hidden; }
/* This cloud shares the control's anchor, keeping its upper-left edge covered. */
:root .customer-theme-cloud {
  display: block; animation: none; pointer-events: none;
}
.customer-theme-cloud:not([data-positioned="true"]) { visibility: hidden; }
/* Empty foreground layout boxes must not intercept clicks on the sky control. */
body[data-section="0"] .story > .stage > .chapter-copy,
body[data-section="0"] .story > .stage > .illustration,
body[data-section="0"] .intro,
body[data-section="0"] .hero-workspace[data-pipeline="customer"],
body[data-section="0"] .hero-workspace[data-pipeline="customer"] .hero-chat { pointer-events: none; }
body[data-section="0"] .intro > :is(h1, .lede),
body[data-section="0"] .hero-workspace[data-pipeline="customer"] .hero-chat > :is(.chat-launch, .chat-panel) { pointer-events: auto; }
@media (min-width: 900px) and (min-height: 501px), (min-width: 1100px) {
:root[data-device] .chapter.intro {
  /* Center the text and action alongside three immediately visible benefits. */
  --intro-width: min(88vw, 1400px);
  --hu: min(.88vw, 14px, 1.75svh);
  display: grid; align-items: start;
  left: 50%; right: auto; width: var(--intro-width); margin-left: calc(var(--intro-width) / -2);
  min-height: min(52svh, 560px);
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  grid-template-rows: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
  grid-template-areas: ". ." "title ." "lede ." "actions ." ". .";
  gap: 0 clamp(28px, 3.5vw, 56px);
}
:root[data-device] .chapter.intro h1 {
  grid-area: title; margin: 0 0 clamp(14px, 2svh, 28px);
  font-size: clamp(32px, calc(var(--hu) * 5.5), 77px);
}
:root[data-device] .chapter.intro h1 .hero-phrase { display: block; }
:root[data-device] .chapter.intro .lede { grid-area: lede; width: 100%; margin: 0 auto; }
:root[data-device] .chapter.intro .hero-workspace[data-pipeline="customer"] {
  grid-area: 1 / 1 / -1 / -1; align-self: stretch;
  display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid;
  container-type: normal; pointer-events: none; width: 100%; margin: 0;
}
:root[data-device] .hero-workspace[data-pipeline="customer"] .loop-services {
  grid-column: 2; grid-row: 1 / -1; align-self: center; justify-self: center;
  width: 100%; margin: 0;
}
:root[data-device] .hero-workspace[data-pipeline="customer"] .hero-chat {
  grid-column: 1; grid-row: 4; align-self: start;
  justify-content: center; padding: clamp(20px, 3svh, 28px) 0 0;
  pointer-events: none;
}
:root[data-device] .hero-workspace[data-pipeline="customer"] .loop-button { margin: 0; }
}
@media (max-width: 899px), (max-width: 1099px) and (max-height: 500px) {
  :root[data-device] .chapter.intro {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
    width: 100%; min-height: max(0px, calc(66svh - var(--layout-top)));
    margin: 0; text-align: center;
  }
  :root[data-device] .chapter.intro h1 {
    width: 100%; font-size: clamp(32px, 9.2vw, 44px); margin-bottom: 12px;
  }
  :root[data-device] .chapter.intro .hero-workspace[data-pipeline="customer"] {
    width: min(100%, 420px); margin: clamp(12px, 2.2svh, 22px) auto 0; padding: 0;
  }
  :root[data-device] .hero-workspace[data-pipeline="customer"] .loop-services { display: block; margin: 0; width: 100%; }
  :root[data-device] .hero-workspace[data-pipeline="customer"] .hero-chat { padding: clamp(20px, 3svh, 28px) 0 0; justify-content: center; }
  :root[data-device] .hero-workspace[data-pipeline="customer"] .loop-button { margin: 0 auto; }
  :root[data-device] .chapter.intro .lede { width: 100%; margin: 0 auto; }
}
@media (max-width: 899px) and (min-height: 501px) {
  :root[data-device] .chapter.intro h1 .hero-phrase { display: block; }
}
@media (max-width: 899px) and (max-height: 650px), (max-width: 1099px) and (max-height: 500px) {
  :root[data-device] .chapter.intro { min-height: 0; }
  :root[data-device] .chapter.intro h1 { margin-bottom: 8px; }
  :root[data-device] .chapter.intro .hero-workspace[data-pipeline="customer"] { margin-top: 10px; }
  :root[data-device] .hero-workspace[data-pipeline="customer"] .hero-chat { padding-top: 16px; }
}
@media (max-width: 1099px) and (max-height: 500px) {
  :root { --opening-action-height: 44px; }
  /* Compact spacing retains the complete opening above the water in landscape. */
  :root[data-device] .chapter.intro { width: calc(100vw - var(--layout-gutter) * 2); margin: 0; }
  :root[data-device] .chapter.intro h1 { font-size: clamp(26px, 4.3vw, 32px); margin-bottom: 6px; }
  :root[data-device] .chapter.intro .lede { max-width: none; font-size: clamp(13px, 2.1vw, 15px); line-height: 1.3; }
  :root[data-device] .chapter.intro .hero-workspace[data-pipeline="customer"] { margin-top: 6px; }
  :root[data-device] .hero-workspace[data-pipeline="customer"] .hero-chat { padding-top: 12px; }
  :root .hero-workspace[data-pipeline="customer"] .loop-main-label { font-size: 16px; }
  .hero-shore { height: 28px; }
}
@media (min-width: 480px) and (max-width: 1099px) and (max-height: 500px) {
  /* Keep one anchor through every chapter and leave the opening boat clear. */
  :root body .scroll-controls { left: auto; right: 10px; translate: none; max-width: calc(50vw - 62px); }
}
@media (max-width: 1099px) and (max-height: 360px) {
  .hero-shore { height: 18px; }
}

/* Choose the header arrangement from measured content, not a menu breakpoint. */
:root[data-device] .nav[data-header-layout] {
  --header-action-gap: clamp(12px, 2.5vw, 36px);
  display: flex; align-items: center; flex-wrap: nowrap;
  height: 88px; padding-block: 0; gap: clamp(12px, 2.5vw, 40px);
}
:root[data-device] .nav[data-header-layout] .customer-brand {
  flex: none; width: max-content; justify-self: start;
}
:root[data-device] .nav[data-header-layout] .header-controls { flex: none; margin-left: 0; }
:root[data-device] .nav[data-header-layout] .header-menu-toggle { display: none; }
:root[data-device] .nav[data-header-layout] .header-actions {
  position: static; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap;
  align-items: center; justify-content: flex-end; grid-area: auto;
  width: max-content; max-height: none; overflow: visible;
  margin: 0 0 0 auto; padding: 0; gap: var(--header-action-gap);
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
:root[data-device] .nav[data-header-layout] .header-actions .text-action {
  flex: none; justify-content: center; min-width: 44px; min-height: 44px;
  margin: 0; padding: 0; border: 0; font-size: 14px; white-space: nowrap;
  color: var(--muted);
}
:root[data-device] .nav[data-header-layout] .header-actions .text-action:is(:hover, :focus-visible) { color: var(--mint); }
@media (max-width: 1099px) {
  :root[data-device] .nav[data-header-layout] { --header-action-gap: clamp(12px, 2.5vw, 24px); height: 68px; }
  :root[data-device="compact"][data-header-layout]:has(.header-actions) { --layout-top: clamp(76px, 12svh, 96px); }
}
:root[data-device="compact"][data-header-layout="stacked"]:has(.header-actions) { --layout-top: 124px; }
:root[data-device] .nav[data-header-layout="stacked"] {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 52px 44px;
  height: 100px; padding-block: 4px 0; row-gap: 0;
}
:root[data-device] .nav[data-header-layout="stacked"] .header-controls { grid-column: 2; grid-row: 1; }
:root[data-device] .nav[data-header-layout="stacked"] .header-actions {
  grid-column: 1 / -1; grid-row: 2; justify-self: center; justify-content: center; margin: 0;
}
:root[data-device] .nav[data-header-layout="menu"] .customer-brand { margin-right: auto; }
:root[data-device] .nav[data-header-layout="menu"] .header-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent;
  color: color-mix(in srgb, var(--mint) 75%, var(--muted)); cursor: pointer;
}
:root[data-device] .nav[data-header-layout="menu"] .header-menu-toggle:is(:hover, :focus-visible, [aria-expanded="true"]) { color: var(--mint); }
:root[data-device] .nav[data-header-layout] .header-menu-toggle:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; border-radius: 4px; }
:root[data-device] .nav[data-header-layout] .header-menu-toggle svg { transform-origin: center; }
:root[data-device] .nav[data-header-layout="menu"] .header-actions {
  position: absolute; top: calc(100% + 4px); right: var(--header-gutter);
  flex-direction: column; align-items: stretch;
  width: min(320px, calc(100vw - 2 * var(--header-gutter))); padding: 8px 20px;
  margin: 0; gap: 0; border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg); box-shadow: 0 12px 32px rgb(var(--rgb-fixed-black) / .12);
  max-height: calc(100svh - 88px); overflow-y: auto;
}
:root[data-device] .nav[data-header-layout="menu"] .header-menu-toggle[aria-expanded="false"] + .header-actions { display: none; }
:root[data-device] .nav[data-header-layout="menu"] .header-actions .text-action {
  justify-content: flex-start; min-height: 48px; font-size: 16px;
}
:root[data-device] .nav[data-header-layout="menu"] .header-actions .text-action + .text-action { border-top: 1px solid var(--line); }
:root[data-device] .nav[data-header-layout="menu"] .header-actions .primary { color: var(--mint); }
:root[data-device] .nav[data-header-layout="menu"] .header-actions .text-action:focus-visible {
  outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 4px;
}
@media (max-width: 1099px) and (max-height: 500px) {
  :root[data-device] .nav[data-header-layout] { height: 52px; }
  :root[data-device] .nav[data-header-layout="stacked"] { grid-template-rows: 44px 44px; height: 88px; padding-block: 0; }
  :root[data-device="compact"][data-header-layout]:has(.header-actions) { --layout-top: 60px; --layout-gap: 6px; --opening-copy-clearance: 0px; }
  :root[data-device="compact"][data-header-layout="stacked"]:has(.header-actions) { --layout-top: 96px; }
}
/* Short desktop windows use the same compact controls as landscape tablets. */
@media (min-width: 1100px) and (max-height: 650px) {
  :root[data-device] .nav[data-header-layout] { height: 68px; }
}
@media (min-width: 1100px) and (max-height: 500px) {
  :root[data-device] .nav[data-header-layout] { height: 52px; }
}

/* Keep each small service symbol with its word, on the copy's baseline. */
:root[data-device] .chapter.intro .lede { text-wrap: balance; }
.customer-service-line { display: block; container-type: inline-size; }
.customer-service-row {
  display: inline-block; white-space: nowrap;
  /* Keep the complete phrase and icons on one line, fitting the available width. */
  font-size: min(1.12em, 4.2cqi); font-weight: 500; line-height: 1.45;
}
/* The longer translated phrases need more room at the same text weight. */
:root:not([lang="en"]) .customer-service-row { font-size: min(1.12em, 3.4cqi); }
/* Let longer French and Cyrillic copy wrap at a readable size. */
:root:is([lang="fr"], [lang="ru"]) .customer-service-row { white-space: normal; font-size: 1em; }
.customer-service-term { display: inline-block; white-space: nowrap; }
.customer-service-term svg {
  display: inline-block; width: 1em; height: 1em; margin-right: .2em;
  vertical-align: -.14em; fill: none; stroke: var(--art-mint);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
/* Blue and sage distinguish CRM/data using the scene's existing palette. */
.customer-service-term .customer-service-solid {
  width: 1.2em; height: 1.2em; vertical-align: -.24em;
  stroke: none;
}
.customer-service-term .customer-crm-mark { fill: var(--benefit-time-surface); }
.customer-service-term .customer-data-mark { fill: var(--art-mint-light); }
:root[data-theme="light"] .customer-service-term .customer-crm-mark { fill: var(--benefit-time-ink); }
:root[data-theme="light"] .customer-service-term .customer-data-mark { fill: var(--art-mint-shade); }
.customer-service-term .customer-ai-mark { fill: var(--art-brand-spark); stroke: none; }
.customer-benefit { min-width: 0; }
.customer-benefit-art { display: block; overflow: visible; }
/* Compact, shaped contact shadows share the site's soft mint finish. */
.customer-benefit-shadow { fill: var(--art-mint); opacity: .12; filter: blur(3px); }
:root[data-theme="light"] .customer-benefit-shadow { opacity: .078; }
.customer-benefit h3 { font-weight: var(--type-weight-heading); letter-spacing: var(--type-tracking-subheading); }
.customer-benefit p { color: var(--muted); text-wrap: pretty; }
.customer-benefit-list { display: grid; }
@media (min-width: 900px) and (min-height: 501px), (min-width: 1100px) {
  .customer-inline-benefits .customer-benefit-list { grid-template-columns: 1fr; gap: clamp(20px, 3svh, 34px); }
  .customer-inline-benefits .customer-benefit {
    /* Fitted SVG frames give the visible artwork a 23–24px gap at 1280px. */
    display: grid; grid-template-columns: clamp(60px, 6.5vw, 88px) minmax(0, 1fr);
    align-items: center; gap: clamp(10px, 1vw, 14px); text-align: left;
  }
  .customer-inline-benefits .customer-benefit-art { width: 100%; height: auto; margin: 0; }
  .customer-inline-benefits .customer-benefit h3 { font-size: clamp(23px, 2vw, 29px); margin-bottom: 6px; }
  /* Let the descriptions use their full grid column beside the fitted icons. */
  .customer-inline-benefits .customer-benefit p { font-size: clamp(14px, 1.15vw, 16px); line-height: 1.5; margin: 0; max-width: none; }
}
@media (min-width: 900px) and (min-height: 501px) and (max-height: 600px), (min-width: 1100px) and (max-height: 600px) {
  .customer-inline-benefits .customer-benefit-list { gap: 12px; }
  .customer-inline-benefits .customer-benefit { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; }
  .customer-inline-benefits .customer-benefit h3 { font-size: 22px; margin-bottom: 4px; }
  .customer-inline-benefits .customer-benefit p { font-size: 13px; }
}
@media (max-width: 899px), (max-width: 1099px) and (max-height: 500px) {
  .customer-inline-benefits .customer-benefit-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 2vw, 16px); }
  .customer-inline-benefits .customer-benefit { display: block; text-align: center; }
  .customer-inline-benefits .customer-benefit-art { width: min(100%, 62px); height: auto; margin: 0 auto 1px; }
  .customer-inline-benefits .customer-benefit h3 { margin: 0; font-size: clamp(14px, 3.8vw, 17px); line-height: var(--type-leading-subheading); white-space: normal; }
  .customer-inline-benefits .customer-benefit p { display: none; }
}
@media (max-width: 899px) and (max-height: 650px), (max-width: 1099px) and (max-height: 500px) {
  .customer-inline-benefits .customer-benefit-art { width: min(100%, 48px); margin-bottom: 1px; }
  .customer-inline-benefits .customer-benefit h3 { font-size: 14px; }
}
@media (min-width: 400px) and (max-width: 1099px) and (max-height: 500px) {
  .customer-inline-benefits .customer-benefit { display: flex; align-items: center; justify-content: center; gap: 3px; }
  .customer-inline-benefits .customer-benefit-art { flex: none; width: clamp(20px, 4vw, 27px); margin: 0; }
  .customer-inline-benefits .customer-benefit h3 { font-size: clamp(12px, 1.8vw, 14px); }
}
@media (max-width: 399px) {
  :root:not([lang="en"]) .customer-inline-benefits .customer-benefit h3 { font-size: clamp(12px, 3.7vw, 15px); }
}
