/* Homepage rhythm roles only. Existing protected glass/hero/accent tokens stay intact. */
body.ac-bidi:is(.home, .ac-solution-page) {
  --ac-home-brand-deep: #006a7f;
  --ac-home-brand-mid: #0388a3;
  --ac-home-brand-teal: #0090ad;
  --ac-home-brand-bright: #00a3c4;
  --ac-home-accent: #0ad6ff;
  --ac-home-text-light: #defdff;
  --ac-home-text-dark: #0b1630;
  --ac-home-surface-deep: #07022a;
  --ac-home-surface-navy: #0b1630;
  --ac-home-surface-service: linear-gradient(155deg, var(--ac-home-surface-navy), color-mix(in srgb, var(--ac-home-brand-deep) 26%, var(--ac-home-surface-navy)) 58%, var(--ac-home-surface-navy));
  --ac-home-surface-about: linear-gradient(150deg, var(--ac-home-surface-navy), color-mix(in srgb, var(--ac-home-brand-deep) 42%, var(--ac-home-surface-navy)) 58%, color-mix(in srgb, var(--ac-home-brand-deep) 74%, var(--ac-home-surface-navy)));
  --ac-home-surface-process: color-mix(in srgb, var(--ac-home-text-light) 64%, color-mix(in srgb, var(--ac-home-brand-deep) 45%, var(--ac-home-surface-navy)));
  --ac-home-process-edge: color-mix(in srgb, var(--ac-home-surface-process) 14%, var(--ac-home-brand-deep));
  --ac-home-about-handoff: 120px;
  --ac-home-process-offset: 110px;
  --ac-home-process-entry: 160px;
  --ac-home-process-fade: 160px;
  --ac-home-process-tail: clamp(30px, calc(6vw - 10px), 70px);
  --ac-home-process-starting: linear-gradient(to bottom, var(--ac-home-process-edge), var(--ac-home-surface-process) var(--ac-home-process-entry));
  --ac-home-process-ending: linear-gradient(to bottom, transparent calc(100% - var(--ac-home-process-fade) - var(--ac-home-process-tail)), var(--ac-home-surface-navy) calc(100% - var(--ac-home-process-tail)), var(--ac-home-surface-navy));
  --ac-home-footer-base: color-mix(in srgb, var(--ac-home-brand-deep) 65%, var(--ac-home-surface-navy));
  --ac-home-surface-footer: linear-gradient(to bottom, var(--ac-home-surface-deep), var(--ac-home-footer-base) 26%, var(--ac-home-footer-base));
  --ac-home-line-on-light: color-mix(in srgb, var(--ac-home-brand-deep) 55%, transparent);
  /* Adopted T3/P1: distinct surface, action, control and ambient roles. */
  --ac-home-surface-testimonials: color-mix(in srgb, var(--ac-home-brand-bright) 58%, var(--ac-home-text-light));
  --ac-home-process-action-bg: color-mix(in srgb, var(--ac-home-brand-deep) 94%, var(--ac-home-surface-navy));
  --ac-home-process-action-text: var(--ac-home-text-light);
  --ac-home-process-action-icon: var(--ac-home-text-light);
  --ac-home-process-action-hover: var(--ac-home-accent);
  --ac-home-accent-primary: color-mix(in srgb, var(--ac-home-brand-bright) 70%, var(--ac-home-accent));
  --ac-home-accent-primary-hover: var(--ac-home-accent);
  --ac-home-accent-secondary: color-mix(in srgb, var(--ac-home-brand-deep) 72%, var(--ac-home-surface-navy));
  --ac-home-accent-secondary-hover: var(--ac-home-brand-mid);
  --ac-home-accent-decoration: color-mix(in srgb, var(--ac-home-brand-teal) 42%, transparent);
  --ac-home-team-control-bg: color-mix(in srgb, var(--ac-home-brand-deep) 26%, var(--ac-home-surface-deep));
  --ac-home-team-decoration-filter: hue-rotate(6deg) saturate(.80) brightness(.88);
  --ac-home-team-decoration-opacity: .58;
  --ac-home-team-decoration-veil: color-mix(in srgb, var(--ac-home-surface-deep) 52%, transparent);
  --ac-home-stories-glow-filter: url("#ac-story-cyan-art") hue-rotate(6deg) saturate(.78) brightness(.64);
  --ac-home-stories-glow-opacity: .20;
  --ac-home-stories-light-opacity: .16;
  --ac-home-stories-tail-filter: url("#ac-story-cyan-art") hue-rotate(6deg) saturate(.78) brightness(.90);
  --ac-home-stories-circuit-opacity: 1;
}

/* Shorter handoffs use existing spacing; no new section height is introduced. */
@media (max-width: 1024px) {
  body.home.ac-bidi {
    --ac-home-about-handoff: 70px;
    --ac-home-process-offset: 70px;
    --ac-home-process-entry: 110px;
    --ac-home-process-fade: 110px;
  }
}
@media (max-width: 599px) {
  body.home.ac-bidi {
    --ac-home-about-handoff: 60px;
    --ac-home-process-entry: 100px;
    --ac-home-process-fade: 90px;
  }
}
