/* Agenz Foundation V84 — clean editorial ecosystem polish */
:root {
  --eco-ink: #101735;
  --eco-copy: #5f6b85;
  --eco-muted: #8490a8;
  --eco-paper: #f6f8fd;
  --eco-white: #ffffff;
  --eco-soft: #eef4ff;
  --eco-soft-cyan: #edfaff;
  --eco-line: rgba(36, 65, 130, .16);
  --eco-line-strong: rgba(38, 91, 218, .32);
  --eco-blue: #286ff2;
  --eco-blue-deep: #174fc9;
  --eco-cyan: #18b9e6;
  --eco-violet: #6654e8;
  --eco-navy: #111936;
  --eco-shadow: 0 26px 72px rgba(35, 51, 105, .13), 0 2px 8px rgba(35, 51, 105, .05);
  --eco-shadow-soft: 0 15px 38px rgba(35, 51, 105, .09), 0 1px 4px rgba(35, 51, 105, .04);
  --eco-max: 1260px;
}

html { scroll-behavior: smooth; }

body.ecosystem-showcase {
  --black: var(--eco-paper);
  --charcoal: var(--eco-white);
  --panel: var(--eco-white);
  --white: var(--eco-ink);
  --mist: var(--eco-copy);
  --muted: var(--eco-muted);
  --cyan: var(--eco-blue);
  --magenta: var(--eco-violet);
  --violet: var(--eco-violet);
  --line: var(--eco-line);
  margin: 0;
  overflow-x: hidden;
  color: var(--eco-ink);
  background: var(--eco-paper);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.ecosystem-showcase *,
body.ecosystem-showcase *::before,
body.ecosystem-showcase *::after { box-sizing: border-box; }

body.ecosystem-showcase :where(h1, h2, h3, h4, p, a, button, input, select, textarea, span, b, strong, small, label) {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.ecosystem-showcase ::selection {
  color: #fff;
  background: var(--eco-blue);
}

body.ecosystem-showcase .noise,
body.ecosystem-showcase .cursor-glow { display: none !important; }

body.ecosystem-showcase .page-hero-orbit.orbit-two {
  border-color: rgba(24, 185, 230, .22) !important;
  box-shadow: 0 0 70px rgba(40, 111, 242, .08) !important;
}

body.ecosystem-showcase main {
  overflow: clip;
  color: var(--eco-ink);
  background: var(--eco-paper);
}

body.ecosystem-showcase .cyan,
body.ecosystem-showcase .eyebrow,
body.ecosystem-showcase .gradient-word,
body.ecosystem-showcase .academy-heading h2 span,
body.ecosystem-showcase .academy-hero h1 span,
body.ecosystem-showcase .academy-dark h2 span,
body.ecosystem-showcase .academy-cta h2 span {
  color: var(--eco-blue) !important;
  background: linear-gradient(105deg, var(--eco-violet), var(--eco-blue) 58%, var(--eco-cyan)) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

body.ecosystem-showcase :focus-visible {
  outline: 3px solid rgba(40, 111, 242, .28);
  outline-offset: 4px;
}

/* Clean unified navigation */
body.ecosystem-showcase .site-header {
  position: fixed;
  z-index: 80;
  top: 14px;
  left: 50%;
  width: min(var(--eco-max), calc(100% - 40px));
  height: 72px;
  padding: 0 14px 0 20px;
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(28, 43, 91, .09);
  border-radius: 18px;
  color: var(--eco-ink);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 18px 50px rgba(35, 51, 105, .09);
  backdrop-filter: blur(20px) saturate(1.2);
  transition: height .25s ease, box-shadow .25s ease, background .25s ease;
}

body.ecosystem-showcase .site-header.scrolled {
  height: 66px;
  color: var(--eco-ink);
  border-color: rgba(28, 43, 91, .11);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 42px rgba(35, 51, 105, .12);
}

body.ecosystem-showcase .brand-lockup {
  width: 160px;
  height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 11px;
  background:
    url("/agenz-logo-white-transparent.png") center / 136px auto no-repeat,
    linear-gradient(135deg, #111a38, #172858 68%, #1b4fa3);
  box-shadow:
    0 8px 20px rgba(20, 45, 104, .18),
    inset 0 1px 0 rgba(255, 255, 255, .12);
}

body.ecosystem-showcase .site-header .brand-lockup img {
  width: 160px;
  height: 34px;
  max-height: none;
  display: block;
  object-fit: contain;
  object-position: left center;
  opacity: 0;
  filter: none !important;
}

body.ecosystem-showcase .desktop-nav {
  min-width: 0;
  display: flex;
  justify-self: center;
  align-items: center;
  gap: clamp(14px, 1.55vw, 24px);
  padding: 0;
  border: 0;
  background: transparent;
}

body.ecosystem-showcase .desktop-nav a {
  position: relative;
  min-width: auto;
  padding: 25px 0 23px;
  color: #68748d;
  border-radius: 0;
  background: transparent !important;
  font-size: .66rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .055em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}

body.ecosystem-showcase .desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--eco-violet), var(--eco-blue), var(--eco-cyan));
  box-shadow: 0 0 12px rgba(40, 111, 242, .42);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}

body.ecosystem-showcase .desktop-nav a:hover,
body.ecosystem-showcase .desktop-nav a[aria-current="page"] { color: var(--eco-ink); }

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

body.ecosystem-showcase .header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

body.ecosystem-showcase .language-toggle {
  height: 40px;
  padding: 0 9px;
  color: #67738b;
  border: 1px solid var(--eco-line);
  border-radius: 999px;
  background: #f7f9fd;
}

body.ecosystem-showcase .language-toggle i { background: var(--eco-line); }

.language-menu {
  position: relative;
  z-index: 4;
}

.language-menu-trigger {
  min-width: 58px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #42506b;
  border: 1px solid var(--eco-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(35, 51, 105, .06);
  cursor: pointer;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .06em;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.language-menu-trigger:hover,
.language-menu.is-open .language-menu-trigger {
  border-color: var(--eco-line-strong);
  background: #f7faff;
  box-shadow: 0 8px 24px rgba(40, 111, 242, .11);
}

.language-menu-trigger i {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--eco-blue);
  border-bottom: 1.5px solid var(--eco-blue);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}

.language-menu.is-open .language-menu-trigger i { transform: translateY(2px) rotate(225deg); }

.language-menu-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 226px;
  padding: 7px;
  overflow: hidden;
  border: 1px solid var(--eco-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 22px 60px rgba(30, 48, 98, .18), 0 3px 12px rgba(30, 48, 98, .06);
  backdrop-filter: blur(18px);
}

.language-menu-popover[hidden] { display: none; }

.language-menu-popover button {
  width: 100%;
  min-height: 57px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--eco-ink);
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.language-menu-popover button:hover,
.language-menu-popover button.is-active {
  border-color: rgba(40, 111, 242, .15);
  background: #f1f6ff;
}

.language-menu-popover button > span {
  display: grid;
  gap: 3px;
}

.language-menu-popover b { font-size: .71rem; }
.language-menu-popover small { color: #7b879c; font-size: .58rem; font-weight: 600; }
.language-menu-popover em {
  min-width: 31px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #65728a;
  border: 1px solid var(--eco-line);
  border-radius: 7px;
  background: #fff;
  font-size: .55rem;
  font-style: normal;
  font-weight: 800;
}

.language-menu-popover button.is-active em {
  color: #fff;
  border-color: var(--eco-blue);
  background: var(--eco-blue);
}

body.ecosystem-showcase .header-cta {
  min-height: 44px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(110deg, var(--eco-violet), var(--eco-blue) 62%, var(--eco-cyan));
  box-shadow: 0 12px 30px rgba(53, 87, 220, .22);
  font-size: .59rem;
  font-weight: 800;
  letter-spacing: .065em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}

body.ecosystem-showcase .header-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 17px 36px rgba(53, 87, 220, .28);
}

body.ecosystem-showcase .menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--eco-line);
  border-radius: 50%;
  background: #fff;
}

body.ecosystem-showcase .menu-toggle span { background: var(--eco-ink); }

body.ecosystem-showcase .mobile-menu {
  z-index: 75;
  padding: 108px 24px 36px;
  color: var(--eco-ink);
  background:
    radial-gradient(circle at 85% 12%, rgba(40, 111, 242, .13), transparent 28rem),
    rgba(248, 250, 255, .985);
  backdrop-filter: blur(20px);
}

body.ecosystem-showcase .mobile-menu a {
  min-height: 62px;
  padding: 14px 4px;
  color: var(--eco-ink);
  border-bottom: 1px solid var(--eco-line);
  font-size: clamp(1.25rem, 6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.035em;
  text-decoration: none;
}

body.ecosystem-showcase .mobile-menu a[aria-current="page"] span { color: var(--eco-blue); }
body.ecosystem-showcase .mobile-menu a b {
  color: var(--eco-blue);
  font-size: .65rem;
  font-weight: 800;
}

/* Clean editorial hero foundation */
body.ecosystem-showcase .page-hero,
body.ecosystem-showcase .academy-hero,
body.ecosystem-showcase .design-hero {
  position: relative;
  min-height: 650px !important;
  height: auto !important;
  padding: 152px 0 104px !important;
  overflow: hidden;
  color: var(--eco-ink);
  border-bottom: 1px solid var(--eco-line);
  background: #fff !important;
}

body.ecosystem-showcase .page-hero::before,
body.ecosystem-showcase .academy-hero::before,
body.ecosystem-showcase .design-hero::before {
  display: none !important;
}

body.ecosystem-showcase .page-hero::after,
body.ecosystem-showcase .academy-hero::after,
body.ecosystem-showcase .design-hero::after {
  display: none !important;
}

body.ecosystem-showcase .page-hero-art,
body.ecosystem-showcase .design-hero-grid,
body.ecosystem-showcase .design-hero-ambient,
body.ecosystem-showcase .academy-hero-glow,
body.academy-page .academy-hero-visual,
body.design-ai-page .design-showcase { display: none !important; }

body.ecosystem-showcase .page-hero .section-inner,
body.ecosystem-showcase .academy-hero-inner,
body.ecosystem-showcase .design-hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--eco-max), calc(100% - 64px)) !important;
  min-height: 394px !important;
  margin: 0 auto;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, .77fr) !important;
  align-items: center;
  gap: clamp(40px, 5vw, 76px) !important;
}

body.ecosystem-showcase .page-hero .reveal,
body.ecosystem-showcase .page-hero .id-only,
body.ecosystem-showcase .page-hero .en-only {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none;
}

body.ecosystem-showcase .showcase-hero-copy,
body.ecosystem-showcase .academy-hero-copy,
body.ecosystem-showcase .design-hero-copy {
  position: relative;
  z-index: 4;
  width: min(100%, 980px);
  min-width: 0;
}

body.ecosystem-showcase .showcase-hero-copy .eyebrow,
body.ecosystem-showcase .academy-hero-copy .eyebrow,
body.ecosystem-showcase .design-hero-copy .eyebrow {
  margin: 0 0 20px;
  color: var(--eco-blue) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: .67rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .12em;
}

body.ecosystem-showcase .showcase-hero-copy h1,
body.ecosystem-showcase .showcase-hero-copy .hero-title,
body.ecosystem-showcase .page-hero h1,
body.ecosystem-showcase .academy-hero-copy h1,
body.ecosystem-showcase .design-hero-copy h1 {
  max-width: 790px;
  margin: 0;
  color: var(--eco-ink) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: clamp(3.35rem, 5.4vw, 5.8rem);
  font-weight: 800;
  line-height: .88;
  letter-spacing: -.075em;
  text-wrap: balance;
}

body.ecosystem-showcase .showcase-hero-copy h1 span,
body.ecosystem-showcase .academy-hero-copy h1 span,
body.ecosystem-showcase .design-hero-copy h1 span {
  color: transparent !important;
  background: linear-gradient(105deg, var(--eco-violet), var(--eco-blue) 58%, var(--eco-cyan)) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

body.ecosystem-showcase .showcase-hero-copy .page-lead,
body.ecosystem-showcase .academy-hero-copy > p:not(.eyebrow),
body.ecosystem-showcase .design-hero-lead {
  max-width: 660px;
  margin: 26px 0 0 !important;
  color: var(--eco-copy) !important;
  font-size: clamp(.98rem, 1.3vw, 1.12rem);
  line-height: 1.78;
}

body.ecosystem-showcase .showcase-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 660px;
  margin-top: 30px;
}

body.ecosystem-showcase .showcase-metrics span {
  min-height: 84px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  color: #758198;
  border: 1px solid var(--eco-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 12px 34px rgba(37, 53, 107, .05);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

body.ecosystem-showcase .showcase-metrics b {
  color: var(--eco-ink);
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.035em;
}

/* Clean, page-aware live collage */
.showcase-hero-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 520px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(34, 75, 176, .13);
  border-radius: 32px;
  background:
    radial-gradient(circle at 84% 14%, rgba(24, 185, 230, .16), transparent 27%),
    radial-gradient(circle at 18% 75%, rgba(102, 84, 232, .12), transparent 32%),
    linear-gradient(145deg, #fafdff, #eef4ff 58%, #f6fbff);
  box-shadow: 0 28px 75px rgba(35, 51, 105, .14);
}

.showcase-hero-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: .52;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(39, 91, 215, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 91, 215, .07) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(circle at center, #000, transparent 78%);
  mask-image: radial-gradient(circle at center, #000, transparent 78%);
}

.showcase-stage-head {
  position: absolute;
  z-index: 9;
  top: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #52617e;
  font-size: .51rem;
  font-weight: 800;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.showcase-stage-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.showcase-stage-head i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--eco-cyan);
  box-shadow: 0 0 14px var(--eco-cyan);
}

.showcase-stage-head b {
  color: var(--eco-blue);
  font-size: inherit;
  font-weight: inherit;
}

.showcase-stage-stack {
  position: absolute;
  z-index: 3;
  inset: 48px 14px 56px;
  perspective: 1100px;
}

.showcase-stage-card {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 5px solid rgba(255, 255, 255, .96);
  border-radius: 19px;
  background: #dce7fb;
  box-shadow: 0 20px 54px rgba(32, 48, 101, .2);
  transform-origin: center;
  transition: opacity .24s ease, transform .52s cubic-bezier(.2,.8,.2,1), box-shadow .42s ease, filter .24s ease;
}

.showcase-stage-media {
  width: 100%;
  height: 100%;
}

.showcase-stage-card img,
.showcase-stage-card video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.showcase-stage-card video { background: #dce7fb; }

.showcase-stage-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(10, 19, 48, .86), rgba(10, 19, 48, .02) 58%);
}

.showcase-stage-card figcaption {
  position: absolute;
  z-index: 2;
  left: 15px;
  right: 15px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.showcase-stage-card figcaption b {
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.showcase-stage-card figcaption span {
  color: rgba(255, 255, 255, .72);
  font-size: .7rem;
  font-weight: 600;
}

.showcase-stage-card.card-1 {
  z-index: 4;
  width: 58%;
  height: 76%;
  left: 21%;
  top: 10%;
  transform: rotate(-1.2deg) translateZ(28px);
}

.showcase-stage-card.card-2 {
  z-index: 3;
  width: 39%;
  height: 48%;
  left: 1%;
  top: 42%;
  transform: rotate(-5deg) translateZ(-16px);
}

.showcase-stage-card.card-3 {
  z-index: 5;
  width: 37%;
  height: 48%;
  right: 1%;
  top: 30%;
  transform: rotate(5deg) translateZ(12px);
}

.showcase-hero-stage:hover .card-1 {
  transform: translateY(-6px) rotate(-.5deg);
  box-shadow: 0 31px 70px rgba(32, 48, 101, .22);
}

.showcase-hero-stage:hover .card-2 { transform: translate(-5px, 2px) rotate(-6deg); }
.showcase-hero-stage:hover .card-3 { transform: translate(5px, -2px) rotate(6deg); }

.showcase-hero-stage.is-switching .showcase-stage-card {
  opacity: .22;
  filter: saturate(.7) blur(1px);
}

.showcase-hero-stage.is-switching .card-1 { transform: translateY(10px) rotate(-.2deg) scale(.97); }
.showcase-hero-stage.is-switching .card-2 { transform: translate(-12px, 5px) rotate(-7deg) scale(.97); }
.showcase-hero-stage.is-switching .card-3 { transform: translate(12px, -4px) rotate(7deg) scale(.97); }

.showcase-stage-foot {
  position: absolute;
  z-index: 8;
  left: 20px;
  right: 20px;
  bottom: 14px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #6e7b94;
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .09em;
}

.showcase-stage-count {
  width: 54px;
  color: var(--eco-blue);
}

.showcase-stage-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.showcase-stage-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #c5d1e8;
  cursor: pointer;
  transition: width .25s ease, background .25s ease, box-shadow .25s ease;
}

.showcase-stage-dots button.active {
  width: 24px;
  background: linear-gradient(90deg, var(--eco-blue), var(--eco-cyan));
  box-shadow: 0 0 13px rgba(40, 111, 242, .28);
}

.showcase-stage-next {
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--eco-ink);
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, .72);
  box-shadow: inset 0 0 0 1px var(--eco-line);
  cursor: pointer;
  font-size: .49rem;
  font-weight: 800;
  letter-spacing: .075em;
}

.showcase-stage-next span {
  color: var(--eco-blue);
  font-size: .78rem;
  transition: transform .2s ease;
}

.showcase-stage-next:hover span { transform: translateX(3px); }

/* Ecosystem switcher */
.ecosystem-switcher {
  position: relative;
  z-index: 8;
  width: min(var(--eco-max), calc(100% - 64px));
  margin: 28px auto 56px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--eco-line-strong);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 22px 58px rgba(35, 51, 105, .13), 0 2px 8px rgba(35, 51, 105, .05);
  backdrop-filter: blur(16px);
}

.ecosystem-switcher a {
  min-height: 90px;
  padding: 17px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  color: #68748d;
  border-right: 1px solid var(--eco-line);
  text-decoration: none;
  transition: color .22s ease, background .22s ease;
}

.ecosystem-switcher a:last-child { border-right: 0; }

.ecosystem-switcher a:hover,
.ecosystem-switcher a[aria-current="page"] {
  color: var(--eco-ink);
  background: linear-gradient(145deg, #edf3ff, #f1fbff);
}

.ecosystem-switcher a[aria-current="page"] { box-shadow: inset 0 -3px var(--eco-blue); }
.ecosystem-switcher small { color: var(--eco-blue); font-size: .56rem; font-weight: 800; }
.ecosystem-switcher span { display: flex; flex-direction: column; gap: 5px; }
.ecosystem-switcher b { font-size: .65rem; font-weight: 800; letter-spacing: .05em; }
.ecosystem-switcher em { color: #7a859b; font-size: .65rem; font-style: normal; }
.ecosystem-switcher i { color: var(--eco-blue); font-style: normal; }

/* Keep stacked navigation and Academy's three-step band in their own rows. */
body.academy-page .ecosystem-switcher { margin-bottom: 26px; }
body.academy-page .academy-band {
  width: min(var(--eco-max), calc(100% - 64px));
  margin: 0 auto 70px;
  overflow: hidden;
  border: 1px solid var(--eco-line-strong);
  border-radius: 20px;
  box-shadow: var(--eco-shadow-soft);
}

body.academy-page .academy-band > div {
  min-width: 0;
  min-height: 128px;
  padding: 25px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  border-color: var(--eco-line);
}

body.academy-page .academy-band p {
  min-width: 0;
  color: var(--eco-copy);
  overflow-wrap: anywhere;
}

body.academy-page .academy-band b {
  color: var(--eco-ink);
  line-height: 1.35;
}

body.academy-page .academy-band > div > span {
  border: 1px solid rgba(40, 111, 242, .14);
  background: #edf4ff;
  color: var(--eco-blue);
}

/* Shared sections and controls */
body.ecosystem-showcase .section {
  padding-top: 108px;
  padding-bottom: 108px;
}

body.ecosystem-showcase .section-inner {
  width: min(var(--eco-max), calc(100% - 64px));
}

body.ecosystem-showcase .section-dark {
  color: var(--eco-ink);
  background: linear-gradient(180deg, #f6f8fd, #edf3ff);
}

body.ecosystem-showcase .section-light {
  color: var(--eco-ink);
  background: #fff;
}

body.ecosystem-showcase .section-heading {
  margin-bottom: 42px;
}

body.ecosystem-showcase .section-heading h2,
body.ecosystem-showcase .academy-heading h2 {
  color: var(--eco-ink);
  font-weight: 800;
  letter-spacing: -.06em;
}

body.ecosystem-showcase .section-heading p,
body.ecosystem-showcase .academy-heading > p {
  color: var(--eco-copy);
}

body.ecosystem-showcase .button-primary {
  color: #fff !important;
  border: 0 !important;
  background: linear-gradient(110deg, var(--eco-violet), var(--eco-blue) 60%, var(--eco-cyan)) !important;
  box-shadow: 0 14px 34px rgba(56, 86, 214, .21);
}

body.ecosystem-showcase .button-secondary,
body.ecosystem-showcase .academy-outline {
  color: var(--eco-ink) !important;
  border-color: var(--eco-line) !important;
  background: rgba(255, 255, 255, .8) !important;
}

.showcase-rail-controls {
  width: 100%;
  margin: 28px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.showcase-rail-controls > span {
  color: #77839a;
  font-size: .59rem;
  font-weight: 800;
  letter-spacing: .09em;
}

.showcase-rail-controls > div { display: flex; gap: 8px; }

.showcase-rail-controls button {
  width: 43px;
  height: 43px;
  color: var(--eco-blue);
  border: 1px solid var(--eco-line);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 22px rgba(35, 51, 105, .06);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.showcase-rail-controls button:hover {
  color: #fff;
  border-color: var(--eco-blue);
  background: var(--eco-blue);
  transform: translateY(-2px);
}

.showcase-horizontal-rail {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 18px !important;
  width: 100%;
  padding: 5px 0 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.showcase-horizontal-rail::-webkit-scrollbar { display: none; }
.showcase-horizontal-rail > * { scroll-snap-align: start; }

/* A visible but restrained edge system across the five ecosystem pages. */
body.ecosystem-showcase :is(
  .service-card,
  .service-process,
  .product-card,
  .portfolio-card,
  .case-study-grid article,
  .featured-course,
  .learning-card,
  .price-card,
  .template-card,
  .package-grid article,
  .flow-cards article,
  .payment-methods article,
  .article-card,
  .article-body,
  .tool-shelf-track > *,
  .showcase-case-grid a
) {
  border-color: var(--eco-line) !important;
  box-shadow: var(--eco-shadow-soft);
}

/* Services */
body.services-page #services-list {
  padding-top: 128px;
  color: var(--eco-ink);
  background: linear-gradient(180deg, #f6f8fd, #eef4ff);
}

body.services-page .services-grid > .service-card {
  flex: 0 0 min(410px, 86vw);
  min-height: 720px;
  padding: 0 26px 27px;
  overflow: hidden;
  color: var(--eco-ink);
  border: 1px solid var(--eco-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--eco-shadow-soft);
}

body.services-page .service-card-visual {
  position: relative;
  height: 250px;
  margin: 0 -26px 24px;
  overflow: hidden;
  background: #dfe8f8;
}

body.services-page .service-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 24, 55, .68), transparent 58%);
}

body.services-page .service-card-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .5s ease;
}

body.services-page .service-card:hover .service-card-visual img { transform: scale(1.035); }

body.services-page .service-card-visual span {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 16px;
  color: #fff;
  font-size: .57rem;
  font-weight: 800;
  letter-spacing: .075em;
}

body.services-page .service-card .tag,
body.services-page .service-card .icon { color: var(--eco-blue); }

body.services-page .service-card .icon {
  display: none;
}

body.services-page .service-card h2 {
  margin: 23px 0 11px;
  color: var(--eco-ink);
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
}

body.services-page .service-card p,
body.services-page .service-card li,
body.services-page .service-card .service-summary { color: var(--eco-copy); }

body.services-page .service-card .service-summary {
  min-height: 0;
  margin-bottom: 14px;
}

body.services-page .service-card .service-detail {
  padding: 13px 0;
  border-top-color: var(--eco-line);
}

body.services-page .service-card .service-detail strong {
  margin-bottom: 6px;
  color: var(--eco-blue);
  font-family: Manrope, sans-serif;
  font-size: .6rem;
  font-weight: 800;
}

body.services-page .service-card .service-detail li {
  padding-block: 3px;
  font-size: .74rem;
  line-height: 1.38;
}

body.services-page .service-card .service-detail li::before { background: var(--eco-cyan); }

body.services-page .service-card a {
  color: var(--eco-blue);
  border-top-color: var(--eco-line);
}

body.services-page .service-process-grid article { border-top-color: var(--eco-line); }
body.services-page .case-products .product-card {
  overflow: hidden;
  border: 1px solid var(--eco-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--eco-shadow-soft);
}

/* Portfolio */
body.portfolio-page .vision-film-feature {
  width: min(100%, 1040px);
  margin: 0 auto clamp(62px, 7vw, 90px);
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(30px, 5vw, 66px);
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 28px;
  background: var(--eco-navy);
  box-shadow: 0 30px 80px rgba(25, 37, 80, .20);
}

body.portfolio-page .vision-film-feature::before {
  background-image:
    linear-gradient(rgba(109, 196, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 196, 255, .06) 1px, transparent 1px);
  background-size: 42px 42px;
}

body.portfolio-page .vision-film-player {
  position: relative;
  width: min(100%, 300px);
  height: 520px;
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
  background: #090f24;
}

body.portfolio-page .vision-film-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.portfolio-page .vision-film-player > span {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 7px 9px;
  color: #d7f7ff;
  border: 1px solid rgba(24, 185, 230, .35);
  border-radius: 999px;
  background: rgba(12, 24, 60, .72);
  font-family: Manrope, sans-serif;
  font-size: .48rem;
  font-weight: 800;
  letter-spacing: .08em;
}

body.portfolio-page .vision-film-copy { max-width: 600px; }
body.portfolio-page .vision-film-copy .eyebrow,
body.portfolio-page .vision-film-copy h2 span,
body.portfolio-page .vision-film-overview > span { color: #78ddff; }
body.portfolio-page .vision-film-copy h2 {
  margin: 12px 0 17px;
  color: #fff;
  font-size: clamp(2.35rem, 4vw, 4.3rem);
  line-height: .95;
  letter-spacing: -.055em;
}
body.portfolio-page .vision-film-copy > p:not(.eyebrow),
body.portfolio-page .vision-film-overview > p { color: rgba(255, 255, 255, .72); }
body.portfolio-page .vision-film-overview {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 2px solid var(--eco-cyan);
  background: rgba(40, 111, 242, .08);
}
body.portfolio-page .vision-film-points {
  margin: 18px 0 21px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
body.portfolio-page .vision-film-points span {
  padding: 7px 9px;
  color: #d5f6ff;
  border: 1px solid rgba(24, 185, 230, .22);
  border-radius: 999px;
  background: rgba(24, 185, 230, .07);
  font-size: .52rem;
  font-weight: 800;
}
body.portfolio-page .vision-film-copy > a {
  min-height: 43px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(110deg, var(--eco-violet), var(--eco-blue) 60%, var(--eco-cyan));
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-decoration: none;
}

body.portfolio-page .portfolio-video-gallery > .portfolio-card {
  flex: 0 0 clamp(300px, 31vw, 420px);
  min-height: 510px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(32, 47, 97, .12);
  border-radius: 22px;
  background: var(--eco-navy);
  box-shadow: var(--eco-shadow-soft);
}

body.portfolio-page .portfolio-video-gallery video,
body.portfolio-page .portfolio-video-gallery img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

body.portfolio-page .media-label { min-height: 80px; }
body.portfolio-page .portfolio-note { border-top-color: var(--eco-line); }
body.portfolio-page .portfolio-note p { color: var(--eco-copy); }

.showcase-case-index {
  padding: 110px max(32px, calc((100vw - var(--eco-max)) / 2));
  color: var(--eco-ink);
  background: #fff;
}

.showcase-case-head {
  margin-bottom: 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px;
}

.showcase-case-head p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--eco-blue);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.showcase-case-head h2 {
  margin: 0;
  color: var(--eco-ink);
  font-size: clamp(2.65rem, 5vw, 4.8rem);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.06em;
}

.showcase-case-head h2 span { color: var(--eco-blue); }
.showcase-case-head > a { color: var(--eco-blue); font-size: .64rem; font-weight: 800; text-decoration: none; }

.showcase-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.showcase-case-grid a {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  color: #fff;
  border: 1px solid var(--eco-line);
  border-radius: 22px;
  background: #dfe7f5;
  box-shadow: var(--eco-shadow-soft);
  text-decoration: none;
}

.showcase-case-grid img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.showcase-case-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 17, 46, .92), transparent 68%);
}

.showcase-case-grid a:hover img { transform: scale(1.035); }
.showcase-case-grid span {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.showcase-case-grid small { color: #77ddff; font-size: .58rem; font-weight: 800; letter-spacing: .08em; }
.showcase-case-grid b { font-size: clamp(1.55rem, 3vw, 2.7rem); letter-spacing: -.04em; }
.showcase-case-grid em { color: rgba(255, 255, 255, .7); font-size: .75rem; font-style: normal; }

body.portfolio-page .case-study-detail { background: #f3f6fb; }
body.portfolio-page .case-study-grid { border-color: var(--eco-line); }
body.portfolio-page .case-study-grid article { border-color: var(--eco-line); }
body.portfolio-page .case-study-grid span { color: var(--eco-blue); }
body.portfolio-page .case-study-grid p { color: var(--eco-copy); }

/* Academy — preserve the strong content system, remove V79 conflicts */
body.academy-page .academy-hero {
  min-height: 650px !important;
}

body.academy-page .academy-hero-inner {
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, .77fr) !important;
}

body.academy-page .academy-hero-visual {
  display: none !important;
}

body.academy-page .academy-device {
  width: min(100%, 500px);
  max-height: 540px;
  border-color: rgba(40, 111, 242, .16);
  background: linear-gradient(145deg, #101735, #1a2d66);
  box-shadow: 0 36px 90px rgba(35, 51, 105, .22);
}

body.academy-page .academy-lab-shot {
  width: 100%;
  height: 446px;
  aspect-ratio: auto;
}

body.academy-page .academy-lab-shot img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

body.academy-page .academy-proof {
  margin-top: 30px;
  border-color: var(--eco-line);
  background: var(--eco-line);
}

body.academy-page .academy-proof span {
  min-height: 82px;
  color: var(--eco-copy);
  background: rgba(255, 255, 255, .82);
}

body.academy-page .academy-proof b { color: var(--eco-ink); }
body.academy-page .academy-section { background: #fff !important; }
body.academy-page .academy-section.academy-soft { background: #f1f5ff !important; }
body.academy-page .academy-visual-paths > .academy-path-card { flex: 0 0 clamp(300px, 31vw, 395px); }
body.academy-page .academy-path-media { height: 420px; }
body.academy-page .academy-path-media img { height: 100%; object-fit: cover; }
body.academy-page .price-card,
body.academy-page .learning-card,
body.academy-page .featured-course { border-color: var(--eco-line); box-shadow: var(--eco-shadow-soft); }
body.academy-page .academy-dark {
  color: #fff !important;
  background: linear-gradient(125deg, #101735, #17275b 62%, #154768) !important;
}

/* AI Tools */
body.design-ai-page .design-hero {
  display: block !important;
  min-height: 650px !important;
}

body.design-ai-page .design-hero-copy h1 { font-size: clamp(3.45rem, 6vw, 6.3rem); }
body.design-ai-page .design-hero-copy h1,
body.design-ai-page .design-hero-lead,
body.design-ai-page .trust-row { color: var(--eco-ink); }
body.design-ai-page .trust-row span { color: var(--eco-copy); }
body.design-ai-page .trust-row i { background: var(--eco-cyan); box-shadow: 0 0 10px var(--eco-cyan); }

body.design-ai-page .design-showcase {
  display: none !important;
}

body.design-ai-page .showcase-orbit { border-color: rgba(40, 111, 242, .18); box-shadow: none; }
body.design-ai-page .showcase-card {
  border: 7px solid #fff;
  background: #dfe8f8;
  box-shadow: 0 24px 60px rgba(35, 51, 105, .18);
}

body.design-ai-page .showcase-chip {
  color: var(--eco-ink);
  border-color: var(--eco-line);
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--eco-shadow-soft);
}

body.design-ai-page .design-steps {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 4;
  width: min(var(--eco-max), calc(100% - 64px));
  margin: 18px auto 0;
  padding: 18px;
  color: #7b879c;
  border: 1px solid var(--eco-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--eco-shadow-soft);
}

body.design-ai-page .design-steps .active { color: var(--eco-ink); }
body.design-ai-page .design-steps b { color: var(--eco-blue); }
body.design-ai-page .design-steps i { background: linear-gradient(90deg, var(--eco-blue), var(--eco-line)); }

.tool-shelf {
  position: relative;
  z-index: 4;
  width: min(var(--eco-max), calc(100% - 64px));
  margin: 48px auto 80px;
  padding: 26px;
  color: var(--eco-ink);
  border: 1px solid var(--eco-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--eco-shadow);
}

.tool-shelf-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.tool-shelf-head span { color: var(--eco-blue); font-size: .6rem; font-weight: 800; letter-spacing: .1em; }
.tool-shelf-head b { max-width: 540px; font-size: clamp(1.2rem, 2vw, 1.75rem); text-align: right; }

.tool-shelf-track > * {
  flex: 0 0 min(340px, 82vw);
  min-height: 230px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  color: var(--eco-ink);
  border: 1px solid var(--eco-line);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f5f8ff);
  text-decoration: none;
}

.tool-shelf-track > .is-live {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(140deg, #253db3, var(--eco-blue) 62%, var(--eco-cyan));
  box-shadow: 0 20px 44px rgba(42, 84, 209, .2);
}

.tool-shelf-track small { color: var(--eco-blue); font-size: .56rem; font-weight: 800; letter-spacing: .09em; }
.tool-shelf-track .is-live small { color: #83e6ff; }
.tool-shelf-track strong { margin-top: auto; font-size: 1.7rem; letter-spacing: -.04em; }
.tool-shelf-track span { margin: 9px 0 23px; color: var(--eco-copy); font-size: .8rem; }
.tool-shelf-track .is-live span { color: rgba(255, 255, 255, .72); }
.tool-shelf-track i { color: var(--eco-blue); font-size: .59rem; font-weight: 800; font-style: normal; letter-spacing: .07em; }
.tool-shelf-track .is-live i { color: #fff; }

.tool-preview-strip {
  margin: 30px 0 42px;
  padding-bottom: 12px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tool-preview-strip::-webkit-scrollbar { display: none; }
.tool-preview-strip img {
  width: 150px;
  height: 190px;
  flex: 0 0 150px;
  object-fit: cover;
  border: 5px solid #fff;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(35, 51, 105, .13);
}

body.design-ai-page .design-workspace-section {
  color: var(--eco-ink);
  background: #f3f6fb;
}

body.design-ai-page .design-workspace {
  overflow: hidden;
  border-radius: 24px;
}

body.design-ai-page .design-intake,
body.design-ai-page .analysis-panel {
  color: var(--eco-ink);
  border-color: var(--eco-line);
  background: #fff;
  box-shadow: var(--eco-shadow-soft);
}

body.design-ai-page .upload-zone {
  border-color: rgba(40, 111, 242, .35);
  background: linear-gradient(145deg, #f5f8ff, #edfaff);
}

body.design-ai-page .design-intake label > span,
body.design-ai-page .analysis-panel p,
body.design-ai-page .privacy-notice p { color: var(--eco-copy); }

body.design-ai-page .design-intake input,
body.design-ai-page .design-intake select,
body.design-ai-page .design-intake textarea {
  color: var(--eco-ink);
  border-color: var(--eco-line);
  background: #f7f9fd;
}

body.design-ai-page .analysis-panel::before { border-color: rgba(40, 111, 242, .14); box-shadow: none; }
body.design-ai-page .privacy-notice { border-color: rgba(40, 111, 242, .22); background: #eef6ff; }
body.design-ai-page .privacy-notice code { color: var(--eco-ink); }
body.design-ai-page .template-market { color: var(--eco-ink); background: #fff; }
body.design-ai-page .template-toolbar { border-color: var(--eco-line); background: rgba(255, 255, 255, .92); }
body.design-ai-page .template-grid {
  padding: 8px 0 24px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
body.design-ai-page .template-grid::-webkit-scrollbar { display: none; }
body.design-ai-page .template-card {
  flex: 0 0 clamp(220px, 21vw, 280px);
  scroll-snap-align: start;
  border: 1px solid var(--eco-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--eco-shadow-soft);
}
body.design-ai-page .template-preview {
  height: 340px;
  aspect-ratio: auto;
}
body.design-ai-page .template-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eaf0fb;
}
body.design-ai-page .package-grid article,
body.design-ai-page .flow-cards,
body.design-ai-page .flow-cards article {
  border-color: var(--eco-line);
}
body.design-ai-page .package-grid article.featured {
  border-color: rgba(24, 185, 230, .34);
  background: linear-gradient(145deg, #17275b, #143a6c);
  box-shadow: 0 24px 55px rgba(35, 51, 105, .18);
}
body.design-ai-page .package-grid span,
body.design-ai-page .flow-cards span {
  color: var(--eco-blue);
  font-family: Manrope, sans-serif;
  font-weight: 800;
}
body.design-ai-page .flow-cards article { background: #fff; }
body.design-ai-page .flow-cards p { color: var(--eco-copy); }
body.design-ai-page .payment-section {
  color: var(--eco-ink);
  background: linear-gradient(145deg, #eef4ff, #f9fbff);
}
body.design-ai-page .payment-methods article {
  color: var(--eco-ink);
  border-color: var(--eco-line);
  background: #fff;
  box-shadow: var(--eco-shadow-soft);
}
body.design-ai-page .payment-methods span { color: var(--eco-copy); }
body.design-ai-page .payment-status {
  color: var(--eco-copy);
  border-left-color: var(--eco-blue);
  background: rgba(40, 111, 242, .07);
}
body.design-ai-page .category-item { border-color: var(--eco-line); }
body.design-ai-page .category-item > button { color: var(--eco-ink); }
body.design-ai-page .category-item > button span { color: var(--eco-blue); }
body.design-ai-page .category-item > button small,
body.design-ai-page .category-content span { color: var(--eco-copy); }
body.design-ai-page .category-content span { border-color: var(--eco-line); background: #fff; }
body.design-ai-page .format-guide { background: var(--eco-line); }
body.design-ai-page .format-guide article { background: #fff; }
body.design-ai-page .format-guide strong { color: var(--eco-blue); }
body.design-ai-page .format-guide p { color: var(--eco-copy); }

/* Insights */
body.insights-page .article-grid > .article-card {
  flex: 0 0 clamp(310px, 33vw, 430px);
  min-height: 590px;
  overflow: hidden;
  color: var(--eco-ink);
  border: 1px solid var(--eco-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--eco-shadow-soft);
}

body.insights-page .article-card[hidden] { display: none !important; }
body.insights-page .article-thumb { height: 290px; }
body.insights-page .article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
body.insights-page .article-card:hover .article-thumb img { transform: scale(1.035); }
body.insights-page .article-card-content { min-height: 290px; }
body.insights-page .article-card-content h2 { color: var(--eco-ink); font-size: clamp(1.5rem, 2.7vw, 2.2rem); }
body.insights-page .article-card-content p { color: var(--eco-copy); }
body.insights-page .article-card-content a { color: var(--eco-blue); }
body.insights-page .article-body[hidden] { display: none !important; }
body.insights-page .article-body.is-open {
  width: min(100%, 940px);
  margin: 72px auto 0;
  padding: clamp(30px, 5vw, 64px);
  color: var(--eco-ink);
  border: 1px solid var(--eco-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--eco-shadow);
}
body.insights-page .article-body.is-open p,
body.insights-page .article-body.is-open li { color: var(--eco-copy); }
.insights-close {
  min-height: 40px;
  margin: 0 0 30px auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--eco-blue);
  border: 1px solid var(--eco-line);
  border-radius: 999px;
  background: #f6f9ff;
  font: 800 .6rem Manrope, sans-serif;
  letter-spacing: .07em;
  cursor: pointer;
}

.insights-discovery {
  margin: 8px 0 18px;
  padding: 18px;
  display: grid;
  gap: 15px;
  border: 1px solid var(--eco-line-strong);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #f7faff);
  box-shadow: var(--eco-shadow-soft);
}

.insights-discovery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.insights-discovery-head > span {
  color: #71809b;
  font-size: .57rem;
  font-weight: 800;
  letter-spacing: .095em;
}

.insights-result-count {
  color: var(--eco-blue);
  font-size: .61rem;
  font-weight: 800;
}

.insights-discovery-controls {
  display: grid;
  grid-template-columns: minmax(270px, .82fr) minmax(0, 1.4fr);
  gap: 14px;
}

.insights-discovery-controls label {
  min-height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(40, 111, 242, .2);
  border-radius: 13px;
  background: linear-gradient(180deg, #fff, #f9fbff);
  box-shadow:
    0 8px 22px rgba(35, 51, 105, .055),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.insights-discovery-controls label:focus-within {
  border-color: var(--eco-blue);
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(40, 111, 242, .1),
    0 12px 28px rgba(35, 51, 105, .09);
}

.insights-search-icon {
  position: relative;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  border: 2px solid var(--eco-blue);
  border-radius: 50%;
}

.insights-search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  border-radius: 99px;
  background: var(--eco-blue);
  transform: rotate(45deg);
  transform-origin: left center;
}

.insights-discovery input[type="search"] {
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
  padding: 0;
  color: var(--eco-ink) !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: .82rem;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
}

.insights-discovery input[type="search"]::placeholder {
  color: #8b96a9 !important;
  opacity: 1;
}

.insights-discovery input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

.insights-discovery input[type="search"]:-webkit-autofill,
.insights-discovery input[type="search"]:-webkit-autofill:hover,
.insights-discovery input[type="search"]:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--eco-ink) !important;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
}

.insights-discovery kbd {
  min-width: 40px;
  padding: 5px 7px;
  color: #6d7890;
  border: 1px solid rgba(40, 111, 242, .16);
  border-radius: 7px;
  background: #f2f6ff;
  box-shadow: 0 1px 2px rgba(35, 51, 105, .06);
  font: 800 .49rem Manrope, sans-serif;
  letter-spacing: .02em;
  text-align: center;
}

.insights-filter-list {
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  overflow-x: auto;
  border: 1px solid var(--eco-line);
  border-radius: 13px;
  background: #fff;
  scrollbar-width: none;
}

.insights-filter-list::-webkit-scrollbar { display: none; }

.insights-discovery button {
  min-height: 42px;
  padding: 9px 13px;
  color: #68748d;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  font-size: .66rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.insights-discovery button.active,
.insights-discovery button:hover {
  color: var(--eco-blue-deep);
  border-color: rgba(40, 111, 242, .18);
  background: #edf4ff;
  box-shadow: 0 6px 16px rgba(40, 111, 242, .09);
}

.insights-empty {
  margin: 18px 0 30px;
  padding: 34px;
  border: 1px dashed var(--eco-line-strong);
  border-radius: 18px;
  background: #f8faff;
  text-align: center;
}

.insights-empty[hidden] { display: none; }
.insights-empty b { display: block; color: var(--eco-ink); font-size: .88rem; }
.insights-empty span { display: block; margin-top: 6px; color: var(--eco-copy); font-size: .72rem; }

body.insights-page .article-body {
  max-width: 980px;
  margin: 48px auto 0;
  padding: clamp(28px, 5vw, 62px);
  color: var(--eco-ink);
  border: 1px solid var(--eco-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--eco-shadow-soft);
}

body.insights-page .article-body + .article-body { margin-top: 34px; }
body.insights-page .article-body p,
body.insights-page .article-body li { color: var(--eco-copy); }
body.insights-page .article-body blockquote {
  color: var(--eco-ink);
  border-left-color: var(--eco-blue);
  background: #eef4ff;
}

/* Deliberate dark closure, not a dark site */
body.ecosystem-showcase .cta-band {
  color: #fff;
  border-top: 0;
  background:
    radial-gradient(circle at 82% 30%, rgba(24, 185, 230, .17), transparent 26rem),
    linear-gradient(125deg, #101735, #17275b 62%, #123f60);
}

body.ecosystem-showcase .cta-band h2 { color: #fff; }
body.ecosystem-showcase .cta-band p { color: #bfc9df; }
body.ecosystem-showcase .cta-band .gradient-word {
  background: linear-gradient(90deg, #9d8eff, #6ea6ff, #64dcff) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
}

body.ecosystem-showcase .site-footer {
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .09);
  background: #0b1128;
}

body.ecosystem-showcase .site-footer .footer-logo img {
  content: url("/agenz-logo-white-transparent.png");
  filter: none !important;
}

body.ecosystem-showcase .site-footer a,
body.ecosystem-showcase .site-footer p { color: #aeb9d1; }
body.ecosystem-showcase .site-footer span { color: #6edbff; }

@media (max-width: 1180px) {
  body.ecosystem-showcase .site-header {
    width: calc(100% - 28px);
    grid-template-columns: 160px minmax(0, 1fr) auto;
  }
  body.ecosystem-showcase .desktop-nav { display: none; }
  body.ecosystem-showcase .menu-toggle { display: block; }
  .ecosystem-switcher {
    grid-template-columns: repeat(5, minmax(172px, 1fr));
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ecosystem-switcher a { min-width: 172px; }
}

@media (max-width: 920px) {
  body.ecosystem-showcase .page-hero,
  body.ecosystem-showcase .academy-hero,
  body.ecosystem-showcase .design-hero {
    min-height: 0 !important;
    padding: 126px 0 82px !important;
  }

  body.ecosystem-showcase .page-hero .section-inner,
  body.ecosystem-showcase .academy-hero-inner,
  body.ecosystem-showcase .design-hero-inner {
    min-height: 0 !important;
    grid-template-columns: 1fr !important;
  }

  body.ecosystem-showcase .showcase-hero-copy h1,
  body.ecosystem-showcase .showcase-hero-copy .hero-title,
  body.ecosystem-showcase .page-hero h1,
  body.ecosystem-showcase .academy-hero-copy h1,
  body.ecosystem-showcase .design-hero-copy h1 {
    font-size: clamp(3.6rem, 11vw, 6rem);
  }

  .showcase-hero-stage,
  body.design-ai-page .design-showcase {
    width: 100%;
    max-width: 620px;
    min-height: 510px;
    margin: 16px auto 0;
  }

  .ecosystem-switcher {
    width: calc(100% - 32px);
    margin: 20px auto 44px;
  }

  .showcase-case-grid { grid-template-columns: 1fr; }
  .showcase-case-head { grid-template-columns: 1fr; }
  .showcase-case-head p { grid-column: auto; }
  .showcase-case-head > a { margin-top: 8px; }
  body.portfolio-page .vision-film-feature {
    grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr);
    gap: 28px;
  }
  body.portfolio-page .vision-film-player { height: 390px; }
  .insights-discovery-controls { grid-template-columns: 1fr; }
  .insights-filter-list { justify-content: flex-start; }
  body.academy-page .academy-hero-visual { min-height: 520px; }
  body.design-ai-page .design-steps { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  body.ecosystem-showcase .site-header {
    top: 9px;
    width: calc(100% - 18px);
    height: 64px;
    padding: 0 10px 0 14px;
    grid-template-columns: 124px 1fr auto;
    gap: 8px;
    border-radius: 15px;
  }

  body.ecosystem-showcase .site-header.scrolled { height: 62px; }
  body.ecosystem-showcase .brand-lockup,
  body.ecosystem-showcase .site-header .brand-lockup img { width: 124px; }
  body.ecosystem-showcase .brand-lockup {
    height: 38px;
    border-radius: 9px;
    background-size: 104px auto, auto;
  }
  body.ecosystem-showcase .site-header .brand-lockup img { height: 30px; }
  body.ecosystem-showcase .language-toggle,
  body.ecosystem-showcase .header-cta { display: none; }

  .language-menu-trigger {
    min-width: 50px;
    height: 38px;
    padding: 0 9px;
    border-radius: 10px;
  }

  .language-menu-popover {
    right: -48px;
    width: min(226px, calc(100vw - 28px));
  }

  body.ecosystem-showcase .page-hero .section-inner,
  body.ecosystem-showcase .academy-hero-inner,
  body.ecosystem-showcase .design-hero-inner,
  body.ecosystem-showcase .section-inner,
  .tool-shelf {
    width: calc(100% - 32px) !important;
  }

  body.ecosystem-showcase .page-hero,
  body.ecosystem-showcase .academy-hero,
  body.ecosystem-showcase .design-hero {
    padding: 108px 0 70px !important;
  }

  body.ecosystem-showcase .showcase-hero-copy h1,
  body.ecosystem-showcase .showcase-hero-copy .hero-title,
  body.ecosystem-showcase .page-hero h1,
  body.ecosystem-showcase .academy-hero-copy h1,
  body.ecosystem-showcase .design-hero-copy h1 {
    font-size: clamp(3.1rem, 15vw, 4.5rem);
    line-height: .9;
  }

  body.ecosystem-showcase .showcase-hero-copy .page-lead,
  body.ecosystem-showcase .academy-hero-copy > p:not(.eyebrow),
  body.ecosystem-showcase .design-hero-lead {
    font-size: .94rem;
    line-height: 1.7;
  }

  body.ecosystem-showcase .showcase-metrics { gap: 7px; }
  body.ecosystem-showcase .showcase-metrics span { min-height: 72px; padding: 10px; font-size: .48rem; }
  body.ecosystem-showcase .showcase-metrics b { font-size: 1.05rem; }

  .showcase-hero-stage,
  body.design-ai-page .design-showcase {
    min-height: 390px;
    border-radius: 24px;
  }

  .showcase-stage-card.card-1 { width: 61%; height: 65%; left: 19.5%; top: 16%; }
  .showcase-stage-card.card-2 { width: 40%; height: 45%; top: 39%; }
  .showcase-stage-card.card-3 { width: 39%; height: 43%; top: 35%; }
  .showcase-stage-card { border-width: 5px; border-radius: 15px; }
  .showcase-stage-card figcaption { left: 9px; right: 9px; bottom: 9px; }
  .showcase-stage-card figcaption b { font-size: .48rem; }
  .showcase-stage-card figcaption span { font-size: .55rem; }
  .showcase-stage-kicker { top: 12px; left: 12px; font-size: .45rem; }
  .showcase-stage-status { right: 10px; bottom: 10px; min-width: 178px; font-size: .4rem; }

  .ecosystem-switcher {
    grid-template-columns: repeat(5, 158px);
    width: calc(100% - 20px);
    margin: 16px auto 36px;
    border-radius: 15px;
  }
  .ecosystem-switcher a { min-width: 158px; min-height: 80px; padding: 14px; }
  .ecosystem-switcher em { font-size: .56rem; }

  body.academy-page .ecosystem-switcher { margin-bottom: 18px; }
  body.academy-page .academy-band {
    width: calc(100% - 32px);
    margin-bottom: 52px;
    border-inline: 1px solid var(--eco-line-strong);
    border-radius: 16px;
  }
  body.academy-page .academy-band > div {
    min-height: 0;
    padding: 21px;
    grid-template-columns: 38px minmax(0, 1fr);
  }
  body.academy-page .academy-band > div > span {
    width: 36px;
    height: 36px;
  }

  body.ecosystem-showcase .section { padding-top: 78px; padding-bottom: 78px; }
  .showcase-rail-controls > span { max-width: 68%; font-size: .5rem; line-height: 1.55; }
  .showcase-rail-controls button { width: 39px; height: 39px; }

  body.services-page .services-grid > .service-card { min-height: 650px; }
  body.services-page .service-card-visual { height: 225px; }
  body.portfolio-page .vision-film-feature {
    padding: 18px;
    grid-template-columns: 1fr;
  }
  body.portfolio-page .vision-film-player {
    width: 180px;
    height: 320px;
  }
  body.portfolio-page .vision-film-copy h2 { font-size: clamp(2rem, 10vw, 3rem); }
  body.portfolio-page .portfolio-video-gallery > .portfolio-card { flex-basis: 84vw; }
  .showcase-case-index { padding: 78px 16px; }
  .showcase-case-grid a { min-height: 330px; }
  body.academy-page .academy-hero-visual { min-height: 430px; }
  body.academy-page .academy-visual-paths > .academy-path-card { flex-basis: 84vw; }
  body.design-ai-page .design-steps { display: none; }
  .tool-shelf { padding: 18px; }
  .tool-shelf-head { align-items: flex-start; flex-direction: column; }
  .tool-shelf-head b { text-align: left; }
  body.insights-page .article-grid > .article-card { flex-basis: 86vw; }
  .insights-discovery { padding: 13px; border-radius: 16px; }
  .insights-discovery-head { padding: 2px 2px 0; }
  .insights-discovery-controls label { min-height: 49px; padding-inline: 13px; }
  .insights-discovery kbd { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.ecosystem-showcase *,
  body.ecosystem-showcase *::before,
  body.ecosystem-showcase *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
