/*
  Agenz Foundation V96
  Canonical light editorial system. This file intentionally loads last and
  neutralizes legacy dark, neon, decorative-font, and low-contrast leakage.
*/

:root {
  --af-white: #ffffff;
  --af-canvas: #f7f9fc;
  --af-blue-soft: #edf4ff;
  --af-blue-pale: #f6f9ff;
  --af-blue: #155fd1;
  --af-blue-dark: #0b4eae;
  --af-ink: #101735;
  --af-copy: #4f5d75;
  --af-muted: #5f6d83;
  --af-line: #dbe3ef;
  --af-line-strong: #c6d2e2;
  --af-success: #167a50;
  --af-danger: #b33b4a;
  --af-radius: 22px;
  --af-radius-small: 14px;
  --af-shadow: 0 22px 65px rgba(31, 57, 101, .10), 0 3px 12px rgba(31, 57, 101, .04);
  --af-shadow-soft: 0 12px 34px rgba(31, 57, 101, .075);
  --af-width: 1240px;
  --af-pad: clamp(20px, 4vw, 64px);
}

html {
  color-scheme: light !important;
  background: var(--af-white) !important;
}

html body {
  min-width: 320px;
  color: var(--af-ink) !important;
  background: var(--af-white) !important;
  font-family: "Manrope", Arial, Helvetica, sans-serif !important;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html body *:not(svg):not(path) {
  font-family: "Manrope", Arial, Helvetica, sans-serif !important;
}

html body :where(h1, h2, h3, h4, h5, h6, strong, summary) {
  color: var(--af-ink);
  font-weight: 800;
  letter-spacing: -.04em;
  text-shadow: none;
}

html body :where(p, li) {
  color: var(--af-copy);
}

html body :where(input, select, textarea, button) {
  font: inherit;
}

html body :focus-visible {
  outline: 3px solid rgba(21, 95, 209, .32) !important;
  outline-offset: 3px;
}

html body ::selection {
  color: #fff;
  background: var(--af-blue);
}

html body > main,
html body main {
  color: var(--af-ink) !important;
  background: var(--af-white) !important;
}

html body .noise,
html body .cursor-glow,
html body .hero-grid,
html body .hero-neon-beam,
html body .page-grid:not(.portfolio-video-gallery):empty,
html body .page-hero-art,
html body .nav-hover-card,
html body .nav-icon-shell,
html body .mobile-nav-icon,
html body .cinematic-intro {
  display: none !important;
}

html body .gradient-word,
html body .hero-spectrum,
html body .umkm-hero h1 span,
html body .academy-hero h1 span,
html body .academy-heading h2 span,
html body .academy-dark h2 span,
html body .academy-cta h2 span,
html body .library-hero h1 span,
html body .library-section-head h2 span,
html body .library-browse-head h2 span,
html body .library-order-flow h2 span {
  color: var(--af-blue) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}

html body .eyebrow,
html body .umkm-kicker,
html body .library-kicker,
html body .ther-case-kicker,
html body .creative-preview-kicker,
html body .academy-kicker,
html body .design-kicker {
  color: var(--af-blue) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
}

/* Canonical navigation */
html body .site-header,
html body .site-header.scrolled,
html body .site-header.ref-scrolled,
html body.umkm-page .site-header,
html body.ecosystem-showcase .site-header,
html body.library-page .site-header {
  position: fixed !important;
  z-index: 300 !important;
  top: 14px !important;
  left: 50% !important;
  width: min(1380px, calc(100% - 32px)) !important;
  height: 72px !important;
  min-height: 72px !important;
  padding: 0 14px 0 20px !important;
  display: grid !important;
  grid-template-columns: 178px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 16px !important;
  transform: translateX(-50%) !important;
  color: var(--af-ink) !important;
  border: 1px solid rgba(29, 55, 99, .12) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, .97) !important;
  box-shadow: 0 18px 52px rgba(29, 52, 91, .11) !important;
  backdrop-filter: blur(18px) saturate(1.1) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html body .site-header.scrolled,
html body .site-header.ref-scrolled {
  top: 9px !important;
  height: 64px !important;
  min-height: 64px !important;
}

html body .brand-lockup,
html body .site-header .brand-lockup,
html body.ecosystem-showcase .brand-lockup,
html body.library-page .brand-lockup {
  position: relative !important;
  inset: auto !important;
  width: 170px !important;
  min-width: 170px !important;
  height: 42px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  overflow: visible !important;
  color: var(--af-ink) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

html body .brand-lockup img,
html body .site-header .brand-lockup img,
html body .site-footer .footer-logo img,
html body .footer-logo img {
  content: url("/agenz-logo-navy-transparent.png") !important;
  width: 168px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 40px !important;
  max-height: 40px !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: left center !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html body .desktop-nav,
html body.ecosystem-showcase .desktop-nav,
html body.library-page .desktop-nav,
html body.umkm-page .desktop-nav {
  position: static !important;
  min-width: 0 !important;
  width: auto !important;
  height: 72px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: center !important;
  gap: clamp(10px, 1.05vw, 18px) !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .desktop-nav a,
html body.ecosystem-showcase .desktop-nav a,
html body.library-page .desktop-nav a,
html body.umkm-page .desktop-nav a {
  position: relative !important;
  width: auto !important;
  min-width: 0 !important;
  height: 72px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  color: #5b6880 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: .64rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: .025em !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  transform: none !important;
}

html body .desktop-nav a::before {
  display: none !important;
}

html body .desktop-nav a::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 14px !important;
  width: auto !important;
  height: 2px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--af-blue) !important;
  box-shadow: none !important;
  transform: scaleX(0) !important;
  transform-origin: right !important;
  transition: transform .22s ease !important;
}

html body .desktop-nav a:hover,
html body .desktop-nav a[aria-current="page"] {
  color: var(--af-ink) !important;
}

html body .desktop-nav a:hover::after,
html body .desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1) !important;
  transform-origin: left !important;
}

html body .header-actions {
  position: static !important;
  min-width: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  background: transparent !important;
}

html body .header-cta,
html body.ecosystem-showcase .header-cta,
html body.umkm-page .header-cta {
  min-height: 42px !important;
  height: 42px !important;
  padding: 0 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  border: 1px solid var(--af-blue) !important;
  border-radius: 999px !important;
  background: var(--af-blue) !important;
  box-shadow: none !important;
  font-size: .62rem !important;
  font-weight: 800 !important;
  letter-spacing: .045em !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

html body .account-entry,
html body .language-toggle,
html body .language-menu-trigger {
  min-height: 42px !important;
  color: #5f6d85 !important;
  border-color: var(--af-line) !important;
  background: var(--af-canvas) !important;
  box-shadow: none !important;
}

html body .menu-toggle {
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  display: none !important;
  place-items: center !important;
  color: var(--af-ink) !important;
  border: 1px solid var(--af-line) !important;
  border-radius: 13px !important;
  background: var(--af-white) !important;
  box-shadow: none !important;
}

html body .menu-toggle span {
  width: 18px !important;
  height: 2px !important;
  background: var(--af-ink) !important;
}

html body .mobile-menu,
html body.umkm-page .mobile-menu {
  position: fixed !important;
  z-index: 290 !important;
  inset: 0 !important;
  padding: 100px 20px 28px !important;
  display: grid !important;
  align-content: start !important;
  gap: 0 !important;
  color: var(--af-ink) !important;
  background: rgba(255, 255, 255, .99) !important;
  backdrop-filter: blur(20px) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-10px) !important;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease !important;
}

html body.menu-open .mobile-menu,
html body .mobile-menu.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

html body .mobile-menu a {
  min-height: 62px !important;
  padding: 0 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  color: var(--af-ink) !important;
  border-bottom: 1px solid var(--af-line) !important;
  background: transparent !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

html body .mobile-menu a b {
  color: var(--af-muted) !important;
  font-size: .65rem !important;
  letter-spacing: .08em !important;
}

html body .mobile-menu a[aria-current="page"],
html body .mobile-menu a[aria-current="page"] b {
  color: var(--af-blue) !important;
}

/* Home hero */
html body .hero.ecosystem-hero {
  min-height: 830px !important;
  padding: 132px 0 78px !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  color: var(--af-ink) !important;
  background:
    radial-gradient(circle at 84% 21%, rgba(21, 95, 209, .075), transparent 27%),
    linear-gradient(rgba(21, 95, 209, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 95, 209, .026) 1px, transparent 1px),
    linear-gradient(180deg, #fff 0%, #fbfdff 100%) !important;
  background-size: auto, 68px 68px, 68px 68px, auto !important;
}

html body .hero.ecosystem-hero .hero-inner {
  width: min(1360px, calc(100% - (2 * var(--af-pad)))) !important;
  margin-inline: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, .96fr) minmax(430px, .84fr) !important;
  align-items: center !important;
  gap: clamp(48px, 5vw, 86px) !important;
}

html body .hero.ecosystem-hero .hero-copy {
  max-width: 750px !important;
}

html body .hero.ecosystem-hero .hero-copy .eyebrow {
  color: var(--af-blue) !important;
}

html body .hero.ecosystem-hero h1,
html body .hero.ecosystem-hero .hero-title {
  margin: 0 !important;
  color: var(--af-ink) !important;
  font-size: clamp(3.5rem, 6vw, 6.2rem) !important;
  font-weight: 800 !important;
  line-height: .91 !important;
  letter-spacing: -.066em !important;
}

html body .hero.ecosystem-hero .hero-white {
  color: var(--af-ink) !important;
}

html body .hero.ecosystem-hero .hero-spectrum {
  display: inline !important;
  color: var(--af-blue) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

html body .hero.ecosystem-hero .hero-lead,
html body .hero.ecosystem-hero .hero-lead.id-only,
html body .hero.ecosystem-hero .hero-lead.en-only {
  max-width: 650px !important;
  color: var(--af-copy) !important;
  opacity: 1 !important;
}

html body .hero.ecosystem-hero .hero-buttons .button-primary {
  color: #fff !important;
  background: var(--af-blue) !important;
  border-color: var(--af-blue) !important;
}

html body .hero.ecosystem-hero .hero-buttons .button-secondary {
  color: var(--af-ink) !important;
  background: #fff !important;
  border-color: var(--af-line-strong) !important;
}

html body .hero.ecosystem-hero .hero-meta,
html body .hero.ecosystem-hero .hero-meta span {
  color: var(--af-muted) !important;
  border-color: var(--af-line) !important;
}

html body .hero.ecosystem-hero .hero-meta i {
  background: var(--af-blue) !important;
  box-shadow: 0 0 0 5px rgba(21, 95, 209, .10) !important;
}

html body .hero.ecosystem-hero .hero-visual,
html body .hero.ecosystem-hero .hero-visual.reveal,
html body .hero.ecosystem-hero .hero-visual.ref-media-drift {
  position: relative !important;
  min-height: 590px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--af-ink) !important;
  background: transparent !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/*
  V98: frame the workflow in a translucent blue atmosphere so the right-side
  visual has a clear boundary without turning the white hero into a dark block.
*/
html body .hero.ecosystem-hero .hero-visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 9% 3% 8%;
  border-radius: 42% 58% 48% 52% / 54% 42% 58% 46%;
  background: radial-gradient(
    ellipse at center,
    rgba(21, 95, 209, .24) 0%,
    rgba(73, 137, 231, .13) 48%,
    rgba(151, 192, 255, 0) 74%
  );
  filter: blur(28px);
  opacity: .94;
  pointer-events: none;
  animation: afFlowAtmosphere 10s ease-in-out infinite alternate;
}

html body .hero.ecosystem-hero .morphy-stage {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/*
  V97 hero visual: a legible creative workflow, not a decorative blob.
  The morphing object stays as the premium motion accent while the three
  stages communicate what Agenz actually does.
*/
html body .creative-flow-stage {
  --flow-x: 0px;
  --flow-y: 0px;
  --flow-rx: 0deg;
  --flow-ry: 0deg;
  position: relative !important;
  z-index: 1 !important;
  width: min(100%, 620px) !important;
  min-height: 570px !important;
  margin-inline: auto !important;
  overflow: hidden !important;
  isolation: isolate !important;
  color: var(--af-ink) !important;
  border: 1px solid rgba(21, 95, 209, .13) !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 52% 46%, rgba(180, 211, 255, .68), transparent 31%),
    linear-gradient(145deg, rgba(227, 240, 255, .82), rgba(244, 249, 255, .68)) !important;
  box-shadow:
    0 36px 96px rgba(21, 95, 209, .20),
    0 10px 34px rgba(21, 95, 209, .10),
    inset 0 1px 0 rgba(255, 255, 255, .92) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  backdrop-filter: blur(18px) saturate(1.08);
  perspective: 1100px;
}

html body .creative-flow-grid {
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: .68;
  background-image:
    linear-gradient(rgba(21, 95, 209, .047) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 95, 209, .047) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000 0 78%, transparent);
  pointer-events: none;
}

html body .creative-flow-stage::before,
html body .creative-flow-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(21, 95, 209, .11);
  border-radius: 50%;
  pointer-events: none;
}

html body .creative-flow-stage::before {
  width: 410px;
  height: 410px;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%);
}

html body .creative-flow-stage::after {
  width: 330px;
  height: 330px;
  left: 50%;
  top: 49%;
  border-style: dashed;
  transform: translate(-50%, -50%);
  animation: afFlowOrbit 28s linear infinite;
}

html body .creative-flow-top {
  position: absolute;
  z-index: 7;
  top: 24px;
  left: 25px;
  right: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--af-muted) !important;
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .11em;
}

html body .creative-flow-top b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--af-blue) !important;
  font-size: inherit;
  letter-spacing: inherit;
}

html body .creative-flow-top i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--af-blue);
  box-shadow: 0 0 0 5px rgba(21, 95, 209, .10);
  animation: afFlowPulse 2.4s ease-in-out infinite;
}

html body .creative-flow-card {
  position: absolute;
  z-index: 5;
  width: 190px;
  min-height: 126px;
  padding: 18px;
  color: var(--af-ink) !important;
  border: 1px solid rgba(21, 95, 209, .15);
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 44px rgba(31, 57, 101, .11);
  backdrop-filter: blur(16px);
}

html body .creative-flow-card small,
html body .creative-flow-card strong,
html body .creative-flow-card > span {
  display: block;
}

html body .creative-flow-card small,
html body .creative-flow-core-copy small {
  color: var(--af-blue) !important;
  font-size: .53rem;
  font-weight: 800;
  letter-spacing: .11em;
}

html body .creative-flow-card strong {
  margin-top: 10px;
  color: var(--af-ink) !important;
  font-size: .89rem;
  line-height: 1.1;
  letter-spacing: -.025em;
}

html body .creative-flow-card > span {
  margin-top: 10px;
  color: var(--af-muted) !important;
  font-size: .59rem;
  font-weight: 650;
}

html body .flow-input {
  left: 20px;
  top: 178px;
  animation: afFlowFloat 6.5s ease-in-out infinite;
}

html body .flow-output {
  right: 20px;
  top: 166px;
  width: 194px;
  min-height: 186px;
  animation: afFlowFloat 7.2s ease-in-out -2.2s infinite;
}

html body .creative-output-list {
  margin-top: 13px;
  display: grid;
  gap: 8px;
}

html body .creative-output-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--af-copy) !important;
  font-size: .56rem;
  font-weight: 750;
}

html body .creative-output-list i {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1px solid rgba(21, 95, 209, .18);
  border-radius: 5px;
  background: linear-gradient(145deg, #fff, #dceaff);
  box-shadow: inset -3px -3px 8px rgba(21, 95, 209, .12);
}

html body .creative-flow-core {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 48%;
  width: 244px;
  height: 244px;
  transform:
    translate3d(calc(-50% + var(--flow-x)), calc(-50% + var(--flow-y)), 0)
    rotateX(var(--flow-rx))
    rotateY(var(--flow-ry));
  transform-style: preserve-3d;
  transition: transform .34s cubic-bezier(.22, .8, .2, 1);
}

html body .creative-flow-orbit {
  position: absolute;
  inset: -22px;
  border: 1px solid rgba(21, 95, 209, .19);
  border-radius: 50%;
  animation: afFlowOrbit 18s linear infinite reverse;
}

html body .creative-flow-orbit::before,
html body .creative-flow-orbit::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--af-blue);
  box-shadow: 0 0 0 7px rgba(21, 95, 209, .10);
}

html body .creative-flow-orbit::before {
  left: 16%;
  top: 9%;
}

html body .creative-flow-orbit::after {
  right: 11%;
  bottom: 17%;
}

html body .creative-flow-morph {
  position: absolute;
  inset: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 44% 56% 63% 37% / 48% 39% 61% 52%;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, .98), transparent 27%),
    linear-gradient(145deg, #fafdff 6%, #bed7ff 49%, #4b8be8 100%);
  box-shadow:
    inset 18px 20px 42px rgba(255, 255, 255, .72),
    inset -24px -26px 55px rgba(11, 78, 174, .28),
    0 27px 56px rgba(21, 95, 209, .25);
  animation: afFlowMorph 9s ease-in-out infinite alternate;
}

html body .creative-flow-morph::before {
  content: "";
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 63% 37% 44% 56% / 40% 57% 43% 60%;
  background: linear-gradient(160deg, rgba(255, 255, 255, .48), rgba(25, 100, 207, .18));
  animation: afFlowMorphInner 7s ease-in-out infinite alternate;
}

html body .creative-flow-morph span {
  position: absolute;
  width: 90px;
  height: 190%;
  left: 22%;
  top: -48%;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
  filter: blur(8px);
  transform: rotate(26deg);
  animation: afFlowShine 6s ease-in-out infinite;
}

html body .creative-flow-core-copy {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
}

html body .creative-flow-core-copy strong {
  margin: 7px 0 5px;
  color: var(--af-ink) !important;
  font-size: 1.12rem;
  line-height: .98;
  letter-spacing: -.045em;
  text-shadow: 0 1px 18px rgba(255, 255, 255, .8);
}

html body .creative-flow-core-copy em {
  color: #0b4eae !important;
  font-size: .58rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: .1em;
}

html body .creative-flow-connector {
  position: absolute;
  z-index: 3;
  top: 287px;
  width: 95px;
  height: 1px;
  overflow: visible;
  background: linear-gradient(90deg, rgba(21, 95, 209, .12), rgba(21, 95, 209, .7), rgba(21, 95, 209, .12));
}

html body .creative-flow-connector::before,
html body .creative-flow-connector::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--af-blue);
}

html body .creative-flow-connector i {
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(21, 95, 209, .14);
  animation: afFlowTravel 2.8s linear infinite;
}

html body .connector-in {
  left: 176px;
}

html body .connector-out {
  right: 177px;
}

html body .creative-flow-caption {
  position: absolute;
  z-index: 6;
  left: 24px;
  right: 24px;
  bottom: 23px;
  margin: 0;
  color: var(--af-muted) !important;
  font-size: .56rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-align: center;
}

html body .creative-flow-caption b {
  color: var(--af-blue) !important;
}

@keyframes afFlowMorph {
  0% { border-radius: 44% 56% 63% 37% / 48% 39% 61% 52%; transform: rotate(-4deg) scale(.98); }
  50% { border-radius: 58% 42% 39% 61% / 62% 46% 54% 38%; }
  100% { border-radius: 38% 62% 54% 46% / 42% 59% 41% 58%; transform: rotate(5deg) scale(1.025); }
}

@keyframes afFlowAtmosphere {
  from {
    transform: translate3d(-1.5%, 1%, 0) scale(.96);
    opacity: .78;
  }
  to {
    transform: translate3d(1.5%, -1%, 0) scale(1.04);
    opacity: 1;
  }
}

@keyframes afFlowMorphInner {
  from { border-radius: 63% 37% 44% 56% / 40% 57% 43% 60%; transform: rotate(-9deg) scale(.92); }
  to { border-radius: 39% 61% 58% 42% / 61% 43% 57% 39%; transform: rotate(12deg) scale(1.08); }
}

@keyframes afFlowOrbit {
  to { transform: rotate(360deg); }
}

@keyframes afFlowTravel {
  from { left: 0; opacity: 0; }
  12%, 86% { opacity: 1; }
  to { left: calc(100% - 5px); opacity: 0; }
}

@keyframes afFlowFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes afFlowPulse {
  0%, 100% { opacity: .55; transform: scale(.88); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes afFlowShine {
  0%, 100% { transform: translateX(-30px) rotate(26deg); opacity: .2; }
  50% { transform: translateX(90px) rotate(26deg); opacity: .55; }
}

/* Public heroes and page rhythm */
html body .page-hero,
html body.ecosystem-showcase .page-hero,
html body .umkm-hero,
html body .academy-hero,
html body .design-hero,
html body .library-hero {
  color: var(--af-ink) !important;
  border-color: var(--af-line) !important;
  background:
    radial-gradient(circle at 84% 17%, rgba(21, 95, 209, .08), transparent 25%),
    linear-gradient(180deg, #fff, var(--af-blue-pale)) !important;
}

html body :where(.page-hero, .umkm-hero, .academy-hero, .design-hero, .library-hero)
  :where(h1, h2, h3, strong) {
  color: var(--af-ink) !important;
  -webkit-text-fill-color: currentColor !important;
}

html body :where(.page-hero, .umkm-hero, .academy-hero, .design-hero, .library-hero)
  :where(p, li) {
  color: var(--af-copy) !important;
}

html body :where(
  .section,
  .section-dark,
  .section-light,
  .umkm-section,
  .brief-section,
  .academy-section,
  .academy-dark,
  .academy-soft,
  .library-section,
  .library-bookshelf-section,
  .design-workspace-section,
  .design-universe-section,
  .generation-flow,
  .template-market,
  .package-section,
  .payment-section,
  .insights-index-section,
  .ther-case-study
) {
  color: var(--af-ink) !important;
  background: var(--af-white) !important;
}

html body :where(
  .section:nth-of-type(even),
  .section-dark:nth-of-type(even),
  .umkm-section.soft,
  .academy-section:nth-of-type(even),
  .academy-soft,
  .library-bookshelf-section,
  .brief-section,
  .template-market,
  .design-universe-section
) {
  background: var(--af-canvas) !important;
}

html body :where(
  .section-heading,
  .umkm-heading,
  .academy-heading,
  .library-section-head,
  .library-browse-head,
  .portfolio-gallery-head,
  .ther-case-heading,
  .ther-case-subhead
) :where(h1, h2, h3, h4, strong) {
  color: var(--af-ink) !important;
}

html body :where(
  .section-heading,
  .umkm-heading,
  .academy-heading,
  .library-section-head,
  .library-browse-head,
  .portfolio-gallery-head,
  .ther-case-heading,
  .ther-case-subhead
) :where(p, li) {
  color: var(--af-copy) !important;
}

/* Cards */
html body :where(
  .preview-card,
  .expansion-card,
  .feature-strip article,
  .service-card,
  .product-card,
  .package-card,
  .role-grid article,
  .process-grid li,
  .process-grid article,
  .service-price-grid article,
  .learning-card,
  .price-card,
  .featured-course,
  .article-card,
  .flow-cards article,
  .format-guide article,
  .payment-methods article,
  .analysis-panel,
  .design-intake,
  .library-card,
  .library-value-grid article,
  .library-order-flow,
  .ther-case-story article,
  .ther-case-facts article,
  .faq-list details,
  .academy-faq-list details,
  .info-accordion details
) {
  color: var(--af-ink) !important;
  border-color: var(--af-line) !important;
  background: var(--af-white) !important;
  box-shadow: var(--af-shadow-soft) !important;
}

html body :where(
  .preview-card,
  .expansion-card,
  .feature-strip article,
  .service-card,
  .product-card,
  .package-card,
  .role-grid article,
  .process-grid li,
  .process-grid article,
  .service-price-grid article,
  .learning-card,
  .price-card,
  .featured-course,
  .article-card,
  .flow-cards article,
  .format-guide article,
  .payment-methods article,
  .analysis-panel,
  .design-intake,
  .library-card,
  .library-value-grid article,
  .library-order-flow,
  .ther-case-story article,
  .ther-case-facts article,
  .faq-list details,
  .academy-faq-list details,
  .info-accordion details
) :where(h1, h2, h3, h4, strong, summary, b) {
  color: var(--af-ink) !important;
}

html body :where(
  .preview-card,
  .expansion-card,
  .feature-strip article,
  .service-card,
  .product-card,
  .package-card,
  .role-grid article,
  .process-grid li,
  .process-grid article,
  .service-price-grid article,
  .learning-card,
  .price-card,
  .featured-course,
  .article-card,
  .flow-cards article,
  .format-guide article,
  .payment-methods article,
  .analysis-panel,
  .design-intake,
  .library-card,
  .library-value-grid article,
  .library-order-flow,
  .ther-case-story article,
  .ther-case-facts article,
  .faq-list details,
  .academy-faq-list details,
  .info-accordion details
) :where(p, li, small) {
  color: var(--af-copy) !important;
}

html body :where(
  .preview-card,
  .expansion-card,
  .feature-strip article,
  .service-card,
  .package-card,
  .learning-card,
  .article-card,
  .library-card,
  .faq-list details,
  .info-accordion details
):hover {
  border-color: rgba(21, 95, 209, .30) !important;
}

/* UMKM */
html body.umkm-page .umkm-hero {
  min-height: 790px !important;
  padding-top: 138px !important;
}

html body.umkm-page .umkm-hero-card {
  color: var(--af-ink) !important;
  border: 1px solid var(--af-line) !important;
  background:
    radial-gradient(circle at 90% 10%, rgba(21, 95, 209, .12), transparent 28%),
    var(--af-white) !important;
  box-shadow: var(--af-shadow) !important;
}

html body.umkm-page .umkm-hero-card :where(h2, strong, span) {
  color: var(--af-ink) !important;
}

html body.umkm-page .umkm-hero-card :where(p, small) {
  color: var(--af-copy) !important;
}

html body.umkm-page .umkm-hero-card a {
  color: var(--af-blue) !important;
}

html body.umkm-page .human-ai-mark span,
html body.umkm-page .umkm-trust span,
html body.umkm-page .case-tags span {
  color: var(--af-blue-dark) !important;
  border-color: #cfdcf0 !important;
  background: var(--af-blue-soft) !important;
}

html body.umkm-page .umkm-quick-nav {
  color: var(--af-ink) !important;
  border-color: var(--af-line) !important;
  background: rgba(255, 255, 255, .97) !important;
}

html body.umkm-page .umkm-quick-nav a {
  color: var(--af-copy) !important;
}

html body.umkm-page .umkm-section.navy {
  color: var(--af-ink) !important;
  background: var(--af-blue-soft) !important;
}

html body.umkm-page .umkm-section.navy :where(h1, h2, h3, h4, strong, span) {
  color: var(--af-ink) !important;
}

html body.umkm-page .umkm-section.navy :where(p, li) {
  color: var(--af-copy) !important;
}

html body.umkm-page .process-grid li > span {
  color: var(--af-blue) !important;
}

html body.umkm-page .service-price-grid > span {
  color: var(--af-copy) !important;
  border-color: var(--af-line) !important;
  background: var(--af-white) !important;
}

html body.umkm-page .service-price-grid > span b {
  color: var(--af-ink) !important;
}

html body.umkm-page .package-card.featured {
  border-color: rgba(21, 95, 209, .38) !important;
  background: var(--af-blue-pale) !important;
}

html body.umkm-page .package-badge {
  color: #fff !important;
  background: var(--af-blue) !important;
}

html body .brief-grid {
  grid-template-columns: minmax(270px, .64fr) minmax(0, 1.36fr) !important;
  gap: clamp(40px, 6vw, 82px) !important;
}

html body .umkm-form {
  overflow: hidden !important;
  padding: clamp(24px, 4vw, 42px) !important;
  color: var(--af-ink) !important;
  border: 1px solid var(--af-line) !important;
  border-radius: var(--af-radius) !important;
  background: var(--af-white) !important;
  box-shadow: var(--af-shadow-soft) !important;
}

html body .form-grid label > span,
html body .consent-box legend {
  color: var(--af-ink) !important;
}

html body .form-grid input,
html body .form-grid select,
html body .form-grid textarea {
  color: var(--af-ink) !important;
  border-color: var(--af-line-strong) !important;
  background: #fff !important;
}

html body .form-grid input::placeholder,
html body .form-grid textarea::placeholder {
  color: #8b96a8 !important;
  opacity: 1 !important;
}

html body .consent-box {
  gap: 8px !important;
  margin: 26px 0 20px !important;
  padding: 18px !important;
  color: var(--af-ink) !important;
  border: 1px solid var(--af-line) !important;
  border-radius: 18px !important;
  background: var(--af-blue-pale) !important;
}

html body .consent-box legend {
  padding: 0 8px !important;
  font-size: .84rem !important;
  font-weight: 800 !important;
  letter-spacing: -.01em !important;
}

html body .consent-box label,
html body .consent-row {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 11px 12px !important;
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 11px !important;
  color: var(--af-copy) !important;
  border: 1px solid rgba(31, 71, 133, .10) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .9) !important;
  font-size: .76rem !important;
  line-height: 1.5 !important;
}

html body .consent-box input[type="checkbox"],
html body .consent-row input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1.5px solid #8fa0b9 !important;
  border-radius: 5px !important;
  background: #fff !important;
  box-shadow: none !important;
}

html body .consent-box input[type="checkbox"]::after,
html body .consent-row input[type="checkbox"]::after {
  content: "✓";
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  transform: scale(0);
}

html body .consent-box input[type="checkbox"]:checked,
html body .consent-row input[type="checkbox"]:checked {
  border-color: var(--af-blue) !important;
  background: var(--af-blue) !important;
}

html body .consent-box input[type="checkbox"]:checked::after,
html body .consent-row input[type="checkbox"]:checked::after {
  transform: scale(1);
}

html body .consent-box label span,
html body .consent-row span {
  min-width: 0 !important;
  color: var(--af-copy) !important;
}

html body .consent-box label a {
  color: var(--af-blue) !important;
  font-weight: 800 !important;
}

html body .submit-brief,
html body .umkm-button.primary {
  color: #fff !important;
  border-color: var(--af-blue) !important;
  background: var(--af-blue) !important;
}

html body :where(
  .button-primary,
  .submit-brief,
  .umkm-button.primary,
  .analyze-button,
  .ai-send
) {
  color: #fff !important;
  border-color: var(--af-blue) !important;
  background-color: var(--af-blue) !important;
  background-image: none !important;
  box-shadow: 0 12px 28px rgba(21, 95, 209, .18) !important;
}

/* Portfolio film */
html body.portfolio-page .vision-film-feature {
  width: min(100%, 1080px) !important;
  padding: clamp(20px, 3vw, 34px) !important;
  display: grid !important;
  grid-template-columns: minmax(230px, .64fr) minmax(0, 1.36fr) !important;
  gap: clamp(32px, 6vw, 76px) !important;
  color: var(--af-ink) !important;
  border: 1px solid var(--af-line) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 90% 12%, rgba(21, 95, 209, .10), transparent 30%),
    var(--af-white) !important;
  box-shadow: var(--af-shadow) !important;
}

html body.portfolio-page .vision-film-copy,
html body.portfolio-page .vision-film-copy h2,
html body.portfolio-page .vision-film-copy h2 span,
html body.portfolio-page .vision-film-copy > p,
html body.portfolio-page .vision-film-overview > p {
  color: var(--af-ink) !important;
  -webkit-text-fill-color: currentColor !important;
}

html body.portfolio-page .vision-film-copy > p:not(.eyebrow),
html body.portfolio-page .vision-film-overview > p {
  color: var(--af-copy) !important;
}

html body.portfolio-page .vision-film-copy .eyebrow,
html body.portfolio-page .vision-film-copy h2 span,
html body.portfolio-page .vision-film-overview > span {
  color: var(--af-blue) !important;
}

html body.portfolio-page .vision-film-overview {
  border-color: var(--af-blue) !important;
  background: var(--af-blue-pale) !important;
}

html body.portfolio-page .vision-film-points span {
  color: var(--af-blue-dark) !important;
  border-color: #ccd9ec !important;
  background: var(--af-blue-soft) !important;
}

html body.portfolio-page .vision-film-copy > a {
  color: #fff !important;
  border-color: var(--af-blue) !important;
  background: var(--af-blue) !important;
}

/* Media captions are the only intentionally dark reading surfaces. */
html body .media-label,
html body .academy-path-media > span,
html body .featured-course-media > span,
html body .library-card-badge,
html body .vision-film-player > span {
  color: #fff !important;
  background: rgba(16, 23, 53, .86) !important;
  backdrop-filter: blur(12px);
}

html body :where(
  .media-label,
  .academy-path-media > span,
  .featured-course-media > span,
  .library-card-badge,
  .vision-film-player > span
) :where(strong, span, small) {
  color: #fff !important;
}

/* Academy, Library, calls-to-action and footer */
html body :where(
  .academy-band,
  .academy-cta,
  .cta-band,
  .umkm-closing,
  .library-preview-band,
  .library-philosophy,
  .payment-section
) {
  color: var(--af-ink) !important;
  border-color: var(--af-line) !important;
  background: var(--af-blue-soft) !important;
}

html body :where(
  .academy-band,
  .academy-cta,
  .cta-band,
  .umkm-closing,
  .library-preview-band,
  .library-philosophy,
  .payment-section
) :where(h1, h2, h3, h4, strong, span, p, a, li) {
  color: var(--af-ink) !important;
  -webkit-text-fill-color: currentColor !important;
}

html body :where(.cta-band, .academy-cta, .umkm-closing) :where(.button-primary, .umkm-button.primary, a.button-primary),
html body .library-button.primary {
  color: #fff !important;
  border-color: var(--af-blue) !important;
  background: var(--af-blue) !important;
}

html body.library-page .library-preview-band {
  background: var(--af-blue-soft) !important;
}

html body.library-page .library-preview-band :where(span, b, a) {
  color: var(--af-ink) !important;
}

html body.library-page .library-search-box,
html body.library-page .library-category-chips button,
html body.library-page .bookshelf-controls button {
  color: var(--af-ink) !important;
  border-color: var(--af-line) !important;
  background: #fff !important;
}

html body.library-page .library-category-chips button.active {
  color: #fff !important;
  border-color: var(--af-blue) !important;
  background: var(--af-blue) !important;
}

html body.library-page .shelf-book-copy,
html body.library-page .library-card-copy {
  color: var(--af-ink) !important;
  background: #fff !important;
}

html body.library-page :where(.shelf-book-copy, .library-card-copy) :where(h3, strong, b) {
  color: var(--af-ink) !important;
}

html body.library-page :where(.shelf-book-copy, .library-card-copy) :where(p, span, small) {
  color: var(--af-copy) !important;
}

html body .site-footer,
html body.umkm-page .site-footer,
html body.library-page .site-footer {
  color: var(--af-ink) !important;
  border-top: 1px solid var(--af-line) !important;
  background: var(--af-white) !important;
}

html body .footer-logo p,
html body .footer-col p {
  color: var(--af-copy) !important;
}

html body .footer-col > span {
  color: var(--af-blue) !important;
}

html body .footer-col a {
  color: #4b5a72 !important;
}

html body .footer-col a:hover {
  color: var(--af-blue) !important;
}

html body .footer-end,
html body .footer-end a {
  color: var(--af-muted) !important;
  border-color: var(--af-line) !important;
}

/* The guide stays useful without reintroducing a dark theme. */
html body .ai-chat,
html body .companion-bubble,
html body .companion-status {
  color: var(--af-ink) !important;
  border-color: var(--af-line) !important;
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: var(--af-shadow) !important;
}

html body .ai-chat-header,
html body .companion-head {
  color: var(--af-ink) !important;
  border-color: var(--af-line) !important;
  background: var(--af-blue-soft) !important;
}

html body :where(
  .ai-chat-title strong,
  .companion-bubble strong,
  .companion-status strong,
  .companion-panel h2,
  .companion-panel h3
) {
  color: var(--af-ink) !important;
}

html body :where(
  .ai-chat-title span,
  .ai-disclaimer,
  .companion-kicker,
  .companion-bubble p,
  .companion-bubble small,
  .companion-status span
) {
  color: var(--af-copy) !important;
}

html body .ai-chat-close {
  color: var(--af-ink) !important;
  border-color: var(--af-line-strong) !important;
  background: #fff !important;
}

html body .ai-chat-messages {
  background: #fff !important;
  scrollbar-color: #b8c4d5 transparent !important;
}

html body .ai-message.assistant {
  color: var(--af-copy) !important;
  border-color: var(--af-line) !important;
  background: var(--af-canvas) !important;
}

html body .ai-message.user {
  color: #fff !important;
  border-color: var(--af-blue) !important;
  background: var(--af-blue) !important;
}

html body .ai-suggestion {
  color: var(--af-blue-dark) !important;
  border-color: var(--af-line-strong) !important;
  background: #fff !important;
}

html body .ai-chat-form,
html body .ai-input-shell {
  color: var(--af-ink) !important;
  border-color: var(--af-line) !important;
  background: #fff !important;
}

html body .ai-chat-form textarea,
html body .ai-chat-form textarea::placeholder {
  color: var(--af-copy) !important;
  background: transparent !important;
  opacity: 1 !important;
}

html body .ai-launcher {
  color: #fff !important;
  border-color: var(--af-blue) !important;
  background: var(--af-blue) !important;
  box-shadow: 0 14px 32px rgba(21, 95, 209, .25) !important;
}

/*
  Final specificity lock. Several legacy files use highly specific dark-theme
  selectors, so public reading surfaces and their text are pinned here.
*/
html body.agenz-unified-v96 main > section:not(.hero):not(.page-hero):not(.umkm-hero):not(.academy-hero):not(.design-hero):not(.library-hero) {
  color: var(--af-ink) !important;
  background-color: var(--af-white) !important;
  background-image: none !important;
}

html body.agenz-unified-v96 main > section:not(.hero):not(.page-hero):not(.umkm-hero):not(.academy-hero):not(.design-hero):not(.library-hero):nth-of-type(even) {
  background-color: var(--af-canvas) !important;
}

html body.agenz-unified-v96 main > section :where(h1, h2, h3, h4, h5, h6, strong, summary) {
  color: var(--af-ink) !important;
  -webkit-text-fill-color: currentColor !important;
}

html body.agenz-unified-v96 main > section :where(p, li, label),
html body.agenz-unified-v96 main > section :where(span, small):not(:where(figure *, .media-tile *, .visual-card *, .showcase-card *)) {
  color: var(--af-copy) !important;
}

html body.agenz-unified-v96 main :where(
  .eyebrow,
  .umkm-kicker,
  .library-kicker,
  .ther-case-kicker,
  .creative-preview-kicker,
  .academy-kicker,
  .design-kicker,
  .gradient-word
) {
  color: var(--af-blue-dark) !important;
  -webkit-text-fill-color: currentColor !important;
}

html body.agenz-unified-v96.umkm-page .package-card.featured .package-top > span,
html body.agenz-unified-v96.umkm-page .role-grid article.human > span {
  color: var(--af-blue-dark) !important;
}

html body.agenz-unified-v96 :where(
  .button.button-primary,
  a.button-primary,
  button.button-primary,
  .submit-brief,
  .umkm-button.primary,
  .analyze-button,
  .ai-send
),
html body.agenz-unified-v96 :where(
  .button.button-primary,
  a.button-primary,
  button.button-primary,
  .submit-brief,
  .umkm-button.primary,
  .analyze-button,
  .ai-send
) :where(span, strong, small) {
  color: #fff !important;
  border-color: var(--af-blue) !important;
  background-color: var(--af-blue) !important;
  background-image: none !important;
  -webkit-text-fill-color: currentColor !important;
}

html body.agenz-unified-v96 :where(
  .media-label,
  .academy-path-media > span,
  .featured-course-media > span,
  .library-card-badge,
  .vision-film-player > span,
  .package-badge
),
html body.agenz-unified-v96 :where(
  .media-label,
  .academy-path-media > span,
  .featured-course-media > span,
  .library-card-badge,
  .vision-film-player > span,
  .package-badge
) :where(span, strong, small) {
  color: #fff !important;
  -webkit-text-fill-color: currentColor !important;
}

html body.agenz-unified-v96 main .preview-card,
html body.agenz-unified-v96 main .feature-strip article,
html body.agenz-unified-v96 main .trust-points {
  color: var(--af-ink) !important;
  border-color: var(--af-line) !important;
  background-color: var(--af-white) !important;
  background-image: none !important;
  box-shadow: var(--af-shadow-soft) !important;
}

html body.agenz-unified-v96 main .preview-card h3,
html body.agenz-unified-v96 main .feature-strip article h3,
html body.agenz-unified-v96 main .trust-points strong {
  color: var(--af-ink) !important;
}

html body.agenz-unified-v96 main .preview-card p,
html body.agenz-unified-v96 main .feature-strip article p,
html body.agenz-unified-v96 main .trust-points span {
  color: var(--af-copy) !important;
}

html body.agenz-unified-v96 main .preview-card > span,
html body.agenz-unified-v96 main .feature-strip article > span,
html body.agenz-unified-v96 main .eyebrow,
html body.agenz-unified-v96 main .umkm-kicker,
html body.agenz-unified-v96 main .library-kicker {
  color: var(--af-blue-dark) !important;
}

html body.agenz-unified-v96 main .button.button-primary,
html body.agenz-unified-v96 main a.button-primary,
html body.agenz-unified-v96 main button.button-primary,
html body.agenz-unified-v96 main .submit-brief,
html body.agenz-unified-v96 main .umkm-button.primary,
html body.agenz-unified-v96 main .analyze-button {
  color: #fff !important;
  border-color: var(--af-blue) !important;
  background: var(--af-blue) !important;
}

html body.agenz-unified-v96 main .media-label,
html body.agenz-unified-v96 main .media-label strong,
html body.agenz-unified-v96 main .media-label span,
html body.agenz-unified-v96 main .featured-course-media > span,
html body.agenz-unified-v96 main .vision-film-player > span,
html body.agenz-unified-v96 main .template-preview,
html body.agenz-unified-v96 main .template-preview b,
html body.agenz-unified-v96 main .template-preview small,
html body.agenz-unified-v96 main .template-preview i,
html body.agenz-unified-v96 main .template-preview em {
  color: #fff !important;
  -webkit-text-fill-color: currentColor !important;
}

html body.agenz-unified-v96 main .template-info a,
html body.agenz-unified-v96 main .library-card a,
html body.agenz-unified-v96 main .shelf-book-copy a {
  color: var(--af-blue-dark) !important;
}

html body.agenz-unified-v96 .site-footer .footer-end,
html body.agenz-unified-v96 .site-footer .footer-end span,
html body.agenz-unified-v96 .site-footer .footer-end a {
  color: var(--af-copy) !important;
}

html body.agenz-unified-v96 .ai-chat .ai-chat-close {
  color: var(--af-ink) !important;
  border-color: var(--af-line-strong) !important;
  background: #fff !important;
}

html body.agenz-unified-v96 .ai-chat .ai-suggestion,
html body.agenz-unified-v96 .companion-bubble a {
  color: var(--af-blue-dark) !important;
  border-color: var(--af-line-strong) !important;
  background: #fff !important;
}

/*
  V99: editorial cleanup for the Connected Ecosystem, THER motion, and
  Interactive Creative Preview sequence. These sections intentionally use
  white and neutral surfaces; blue remains an accent, never a dark backdrop.
*/
html body.agenz-unified-v96 main > .ecosystem-editorial-section,
html body.agenz-unified-v96 main > .motion-editorial-section,
html body.agenz-unified-v96 main > .creative-editorial-section {
  color: var(--af-ink) !important;
  background: #fff !important;
  background-image: none !important;
  border-top: 1px solid var(--af-line) !important;
}

html body.agenz-unified-v96 main > .motion-editorial-section,
html body.agenz-unified-v96 main > .creative-editorial-section {
  border-top-color: #e7edf5 !important;
}

html body.agenz-unified-v96 .ecosystem-editorial-section .section-heading,
html body.agenz-unified-v96 .motion-editorial-section .section-heading,
html body.agenz-unified-v96 .creative-editorial-section .section-heading {
  margin-bottom: clamp(38px, 5vw, 64px) !important;
}

html body.agenz-unified-v96 .ecosystem-editorial-section .expansion-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

html body.agenz-unified-v96 .ecosystem-editorial-section .expansion-card {
  min-height: 300px !important;
  padding: clamp(24px, 3vw, 36px) !important;
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  grid-template-rows: auto auto 1fr auto !important;
  column-gap: 22px !important;
  align-items: start !important;
  overflow: hidden !important;
  color: var(--af-ink) !important;
  border: 1px solid var(--af-line) !important;
  border-radius: 24px !important;
  background: #fff !important;
  background-image: none !important;
  box-shadow: 0 14px 40px rgba(31, 57, 101, .07) !important;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease !important;
}

html body.agenz-unified-v96 .ecosystem-editorial-section .expansion-card:hover {
  transform: translateY(-4px) !important;
  border-color: #b9c9dd !important;
  box-shadow: 0 22px 56px rgba(31, 57, 101, .11) !important;
}

html body.agenz-unified-v96 .ecosystem-editorial-section .expansion-card > span {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  color: var(--af-blue-dark) !important;
  font-size: .66rem !important;
  font-weight: 800 !important;
  letter-spacing: .11em !important;
}

html body.agenz-unified-v96 .ecosystem-editorial-section .expansion-card > i {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  width: 64px !important;
  height: 64px !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  color: var(--af-blue-dark) !important;
  border: 1px solid #d7e2f1 !important;
  border-radius: 18px !important;
  background: #f3f7fc !important;
  background-image: none !important;
  box-shadow: none !important;
  font-size: 1.35rem !important;
  animation: none !important;
}

html body.agenz-unified-v96 .ecosystem-editorial-section .expansion-card > h3 {
  grid-column: 2 !important;
  grid-row: 2 !important;
  margin: 8px 0 0 !important;
  color: var(--af-ink) !important;
  font-size: clamp(1.35rem, 2vw, 2rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -.04em !important;
}

html body.agenz-unified-v96 .ecosystem-editorial-section .expansion-card > p {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  margin: 28px 0 26px !important;
  color: var(--af-copy) !important;
  font-size: .93rem !important;
  line-height: 1.72 !important;
}

html body.agenz-unified-v96 .ecosystem-editorial-section .expansion-card > b {
  grid-column: 1 / -1 !important;
  grid-row: 4 !important;
  padding-top: 18px !important;
  color: var(--af-blue-dark) !important;
  border-top: 1px solid #e6ecf4 !important;
  font-size: .68rem !important;
  letter-spacing: .08em !important;
}

html body.agenz-unified-v96 .motion-editorial-section .media-showcase {
  display: grid !important;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

html body.agenz-unified-v96 .motion-editorial-section .video-card,
html body.agenz-unified-v96 .motion-editorial-section .image-card {
  position: relative !important;
  overflow: hidden !important;
  color: #fff !important;
  border: 1px solid var(--af-line) !important;
  border-radius: 24px !important;
  background: #f4f6f9 !important;
  box-shadow: 0 16px 42px rgba(31, 57, 101, .09) !important;
}

html body.agenz-unified-v96 .motion-editorial-section .video-card {
  min-height: 620px !important;
}

html body.agenz-unified-v96 .motion-editorial-section .video-card video {
  width: 100% !important;
  height: 100% !important;
  min-height: 620px !important;
  object-fit: cover !important;
  background: #eef2f6 !important;
}

html body.agenz-unified-v96 .motion-editorial-section .image-stack {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

html body.agenz-unified-v96 .motion-editorial-section .image-card:first-child {
  grid-column: 1 / -1 !important;
}

html body.agenz-unified-v96 .motion-editorial-section .image-card img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
}

html body.agenz-unified-v96 .motion-editorial-section .media-label {
  left: 14px !important;
  right: 14px !important;
  bottom: 14px !important;
  padding: 14px 16px !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  border-radius: 14px !important;
  background: rgba(10, 19, 39, .76) !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px) !important;
}

html body.agenz-unified-v96 .creative-editorial-section .creative-preview-shell {
  --active-image: none !important;
  isolation: isolate !important;
  overflow: hidden !important;
  padding: clamp(20px, 3vw, 34px) !important;
  color: var(--af-ink) !important;
  border: 1px solid var(--af-line) !important;
  border-radius: 26px !important;
  background: #fff !important;
  background-image: none !important;
  box-shadow: 0 18px 52px rgba(31, 57, 101, .08) !important;
}

html body.agenz-unified-v96 .creative-editorial-section .creative-preview-shell::before,
html body.agenz-unified-v96 .creative-editorial-section .creative-preview-shell::after,
html body.agenz-unified-v96 .creative-editorial-section .creative-preview-grid,
html body.agenz-unified-v96 .creative-editorial-section .creative-preview-orbit {
  display: none !important;
}

html body.agenz-unified-v96 .creative-editorial-section .creative-preview-head {
  position: relative !important;
  z-index: 2 !important;
  padding: 0 0 22px !important;
  border-bottom: 1px solid var(--af-line) !important;
}

html body.agenz-unified-v96 .creative-editorial-section .creative-preview-kicker {
  color: var(--af-blue-dark) !important;
  font-size: .62rem !important;
  font-weight: 800 !important;
  letter-spacing: .1em !important;
}

html body.agenz-unified-v96 .creative-editorial-section .creative-preview-head strong {
  color: var(--af-ink) !important;
  font-size: clamp(1.15rem, 2vw, 1.55rem) !important;
}

html body.agenz-unified-v96 .creative-editorial-section .creative-preview-head small,
html body.agenz-unified-v96 .creative-editorial-section .creative-preview-controls > span {
  color: var(--af-copy) !important;
}

html body.agenz-unified-v96 .creative-editorial-section .creative-preview-controls button {
  width: 42px !important;
  height: 42px !important;
  color: var(--af-ink) !important;
  border: 1px solid var(--af-line-strong) !important;
  background: #fff !important;
  background-image: none !important;
  box-shadow: none !important;
}

html body.agenz-unified-v96 .creative-editorial-section .creative-preview-controls button:hover {
  color: var(--af-blue-dark) !important;
  border-color: #9eb5d2 !important;
  background: #f6f8fb !important;
}

html body.agenz-unified-v96 .creative-editorial-section .creative-preview-viewport {
  min-height: 560px !important;
  margin: 24px 0 0 !important;
  overflow: hidden !important;
  border: 1px solid #e4eaf2 !important;
  border-radius: 20px !important;
  background: #f7f8fa !important;
  background-image: none !important;
}

html body.agenz-unified-v96 .creative-editorial-section .creative-preview-rail {
  gap: 20px !important;
  padding-top: 54px !important;
  padding-bottom: 64px !important;
}

html body.agenz-unified-v96 .creative-editorial-section .creative-preview-card {
  border: 1px solid #d5deea !important;
  border-radius: 24px !important;
  background: #fff !important;
  box-shadow: 0 16px 38px rgba(31, 57, 101, .12) !important;
  opacity: .62 !important;
  filter: saturate(.76) brightness(.95) !important;
}

html body.agenz-unified-v96 .creative-editorial-section .creative-preview-card.is-active {
  opacity: 1 !important;
  filter: none !important;
  transform: scale(1.02) translateY(-6px) !important;
  border-color: #9eb5d2 !important;
  box-shadow: 0 24px 58px rgba(31, 57, 101, .17) !important;
  animation: none !important;
}

html body.agenz-unified-v96 .creative-editorial-section .creative-preview-card > span {
  color: #fff !important;
  background: linear-gradient(180deg, transparent, rgba(8, 16, 33, .94)) !important;
}

html body.agenz-unified-v96 .creative-editorial-section .creative-preview-card > span :where(b, small) {
  color: #fff !important;
}

html body.agenz-unified-v96 .creative-editorial-section .creative-preview-card > span i {
  color: var(--af-ink) !important;
  background: #fff !important;
}

html body.agenz-unified-v96 .creative-editorial-section .creative-preview-footer {
  grid-template-columns: minmax(160px, 1fr) auto auto !important;
  gap: 18px !important;
  padding-top: 20px !important;
  border-top: 0 !important;
}

html body.agenz-unified-v96 .creative-editorial-section .creative-preview-progress {
  background: #e4e9f0 !important;
}

html body.agenz-unified-v96 .creative-editorial-section .creative-preview-progress i {
  background: var(--af-blue) !important;
  box-shadow: none !important;
  animation: none !important;
}

html body.agenz-unified-v96 .creative-editorial-section .creative-preview-footer p {
  color: var(--af-copy) !important;
}

html body.agenz-unified-v96 .creative-editorial-section .creative-preview-footer p span,
html body.agenz-unified-v96 .creative-editorial-section .creative-preview-footer > a {
  color: var(--af-blue-dark) !important;
}

@media (max-width: 980px) {
  html body.agenz-unified-v96 .motion-editorial-section .media-showcase {
    grid-template-columns: 1fr !important;
  }

  html body.agenz-unified-v96 .motion-editorial-section .video-card,
  html body.agenz-unified-v96 .motion-editorial-section .video-card video {
    min-height: 520px !important;
  }
}

@media (max-width: 760px) {
  html body.agenz-unified-v96 .ecosystem-editorial-section .expansion-grid {
    grid-template-columns: 1fr !important;
  }

  html body.agenz-unified-v96 .ecosystem-editorial-section .expansion-card {
    min-height: 0 !important;
    padding: 24px !important;
  }

  html body.agenz-unified-v96 .motion-editorial-section .video-card,
  html body.agenz-unified-v96 .motion-editorial-section .video-card video {
    min-height: 460px !important;
  }

  html body.agenz-unified-v96 .motion-editorial-section .image-stack {
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
  }

  html body.agenz-unified-v96 .motion-editorial-section .image-card:first-child {
    grid-column: auto !important;
  }

  html body.agenz-unified-v96 .motion-editorial-section .image-card img {
    min-height: 320px !important;
  }

  html body.agenz-unified-v96 .creative-editorial-section .creative-preview-shell {
    padding: 18px !important;
    border-radius: 22px !important;
  }

  html body.agenz-unified-v96 .creative-editorial-section .creative-preview-viewport {
    min-height: 500px !important;
    margin-top: 18px !important;
  }

  html body.agenz-unified-v96 .creative-editorial-section .creative-preview-footer {
    grid-template-columns: 1fr auto !important;
  }

  html body.agenz-unified-v96 .creative-editorial-section .creative-preview-footer p {
    display: none !important;
  }
}

/* Motion: calm and readable */
html body .ref-hero-enter,
html body .reveal.visible,
html body .ref-reveal.ref-visible {
  opacity: 1;
}

@media (max-width: 1230px) {
  html body .site-header,
  html body .site-header.scrolled,
  html body .site-header.ref-scrolled {
    grid-template-columns: 158px minmax(0, 1fr) auto !important;
  }

  html body .brand-lockup,
  html body .site-header .brand-lockup {
    width: 154px !important;
    min-width: 154px !important;
  }

  html body .brand-lockup img,
  html body .site-header .brand-lockup img {
    width: 152px !important;
  }

  html body .desktop-nav {
    gap: 9px !important;
  }

  html body .desktop-nav a {
    font-size: .57rem !important;
  }
}

@media (max-width: 1100px) {
  html body .desktop-nav,
  html body.ecosystem-showcase .desktop-nav,
  html body.library-page .desktop-nav,
  html body.umkm-page .desktop-nav,
  html body .language-toggle,
  html body .language-menu,
  html body .account-entry,
  html body .header-cta {
    display: none !important;
  }

  html body .site-header,
  html body .site-header.scrolled,
  html body .site-header.ref-scrolled {
    grid-template-columns: 1fr auto !important;
  }

  html body .menu-toggle {
    display: grid !important;
  }

  html body .hero.ecosystem-hero .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .76fr) !important;
    gap: 32px !important;
  }
}

@media (max-width: 900px) {
  html body .hero.ecosystem-hero .hero-inner {
    grid-template-columns: 1fr !important;
  }

  html body .hero.ecosystem-hero .hero-visual,
  html body .hero.ecosystem-hero .hero-visual.reveal {
    min-height: 540px !important;
    display: flex !important;
  }

  html body .brief-grid {
    grid-template-columns: 1fr !important;
  }

  html body .brief-copy {
    position: static !important;
  }

  html body.portfolio-page .vision-film-feature {
    grid-template-columns: minmax(190px, .55fr) minmax(0, 1.45fr) !important;
  }
}

@media (max-width: 680px) {
  html body .site-header,
  html body .site-header.scrolled,
  html body .site-header.ref-scrolled {
    top: 9px !important;
    width: calc(100% - 18px) !important;
    height: 62px !important;
    min-height: 62px !important;
    padding-inline: 14px 10px !important;
    border-radius: 17px !important;
  }

  html body .brand-lockup,
  html body .site-header .brand-lockup {
    width: 142px !important;
    min-width: 142px !important;
    height: 34px !important;
  }

  html body .brand-lockup img,
  html body .site-header .brand-lockup img {
    width: 140px !important;
    height: 34px !important;
  }

  html body .hero.ecosystem-hero {
    min-height: 0 !important;
    padding: 105px 0 48px !important;
    background-size: auto, 44px 44px, 44px 44px, auto !important;
  }

  html body .hero.ecosystem-hero h1,
  html body .hero.ecosystem-hero .hero-title {
    font-size: clamp(2.75rem, 14vw, 4.15rem) !important;
  }

  html body .hero.ecosystem-hero .hero-buttons {
    align-items: stretch !important;
  }

  html body .hero.ecosystem-hero .hero-buttons .button {
    width: 100% !important;
    justify-content: center !important;
  }

  html body .hero.ecosystem-hero .hero-visual,
  html body .hero.ecosystem-hero .hero-visual.reveal {
    min-height: 680px !important;
  }

  html body .creative-flow-stage {
    width: 100% !important;
    min-height: 650px !important;
    border-radius: 26px !important;
  }

  html body .creative-flow-stage::before {
    width: 300px;
    height: 300px;
    top: 47%;
  }

  html body .creative-flow-stage::after {
    width: 244px;
    height: 244px;
    top: 47%;
  }

  html body .creative-flow-top {
    top: 20px;
    left: 18px;
    right: 18px;
    font-size: .49rem;
  }

  html body .creative-flow-card {
    left: 18px;
    right: 18px;
    width: auto;
    padding: 15px 16px;
    border-radius: 17px;
  }

  html body .flow-input {
    top: 68px;
    min-height: 99px;
  }

  html body .creative-flow-core {
    top: 47%;
    width: 210px;
    height: 210px;
  }

  html body .flow-output {
    top: auto;
    bottom: 61px;
    min-height: 132px;
  }

  html body .creative-output-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  html body .creative-output-list span {
    align-items: flex-start;
    font-size: .49rem;
    line-height: 1.25;
  }

  html body .creative-output-list i {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
  }

  html body .creative-flow-connector {
    display: none;
  }

  html body .creative-flow-caption {
    left: 14px;
    right: 14px;
    bottom: 19px;
    font-size: .48rem;
  }

  html body .morphy-stage {
    min-height: 650px !important;
  }

  html body .form-grid {
    grid-template-columns: 1fr !important;
  }

  html body .umkm-form {
    padding: 18px !important;
    border-radius: 18px !important;
  }

  html body .consent-box {
    padding: 11px !important;
  }

  html body .consent-box label {
    padding: 10px !important;
    font-size: .73rem !important;
  }

  html body .submit-brief {
    width: 100% !important;
  }

  html body.portfolio-page .vision-film-feature {
    padding: 16px !important;
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  html body *,
  html body *::before,
  html body *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
