/* Three site-wide styles built from the live-call cards. Pick one in the Sheet (Settings: style = neon, tritone or ink) or preview with ?style=neon */

/* ---------- A  NEON: the site opens in neon, black type, grey panels stay calm */
body.style-neon { --color-gray: #eceee6; }
body.style-neon .intro-animation .animation { --background-color: #d7ff3b !important; --line-color: rgba(255,255,255,.6) !important; }
body.style-neon .intro-animation, body.style-neon .intro-animation.state--dark-mode { color: #1d1d1b; }
body.style-neon .intro-animation__logo-animation { filter: brightness(0) !important; animation: none !important; }
body.style-neon .intro-animation .dots__dot { background: #1d1d1b; opacity: .5; }
body.style-neon .text-only { background: #d7ff3b; }
body.style-neon .title-media-title-wrapper, body.style-neon .text-title-title-wrapper, body.style-neon .column-teaser__teaser-title-wrapper { background: #1d1d1b; color: #d7ff3b; }
body.style-neon .title-media__cta, body.style-neon .column-teaser__cta, body.style-neon .text-title__cta { background: #d7ff3b; }
body.style-neon .lottie-animation .animation, body.style-neon .pubcloud .animation { --background-color: #1d1d1b !important; --line-color: rgba(115,128,121,.55) !important; }
body.style-neon .pubcloud { background: #1d1d1b; }
body.style-neon .pubcloud__head { color: #d7ff3b; }
body.style-neon .scroll-teaser { background: #eceee6; }
body.style-neon .scroll-teaser__teaser-index { color: #1d1d1b; background: #d7ff3b; border-radius: 999px; padding: .2em .6em; justify-self: start; }
body.style-neon .scroll-teaser__teaser-index:last-child { justify-self: end; }

/* ---------- B  TRI-TONE: every block takes one of the three card colours in turn */
body.style-tritone .title-media:nth-of-type(3n+1) .title-media-title-wrapper { background: #738079; color: #f2f3ee; }
body.style-tritone .title-media:nth-of-type(3n+2) .title-media-title-wrapper { background: #d7ff3b; color: #1d1d1b; }
body.style-tritone .title-media:nth-of-type(3n) .title-media-title-wrapper { background: #1d1d1b; color: #d7ff3b; }
body.style-tritone .title-media:nth-of-type(3n+1) .title-media__cta { background: #1d1d1b; color: #d7ff3b; }
body.style-tritone .title-media:nth-of-type(3n+2) .title-media__cta { background: #1d1d1b; color: #d7ff3b; }
body.style-tritone .title-media:nth-of-type(3n) .title-media__cta { background: #d7ff3b; color: #1d1d1b; }
body.style-tritone .title-media__cta:after { border-color: transparent transparent transparent currentColor !important; }
body.style-tritone .text-only { background: #1d1d1b; color: #eeeeee; }
body.style-tritone .text-only strong { color: #d7ff3b; }
body.style-tritone .scroll-teaser { background: #738079; color: #f2f3ee; }
body.style-tritone .scroll-teaser .dots__dot { background: #1d1d1b; opacity: .45; }
body.style-tritone .scroll-teaser__title, body.style-tritone .scroll-teaser__teaser-index { color: #d7ff3b; }
body.style-tritone .column-teaser__teaser-title-wrapper { background: #d7ff3b; }
body.style-tritone .covers, body.style-tritone .pubs { color: #1d1d1b; }

/* ---------- C  INK: a dark site, neon as the only accent, sage kept for the animated panels */
body.style-ink { background: #121211; color: #e9ebe6; --color-gray: #232321; }
body.style-ink .title-media-title-wrapper, body.style-ink .text-only, body.style-ink .text-title-title-wrapper, body.style-ink .text-title__text,
body.style-ink .column-teaser__teaser-title-wrapper, body.style-ink .scroll-teaser, body.style-ink .livecard__title, body.style-ink div.livecard__row, body.style-ink .footer__service { color: #e9ebe6; }
body.style-ink .title-media__cta, body.style-ink .column-teaser__cta, body.style-ink .text-title__cta { color: #d7ff3b; }
body.style-ink .title-media__cta:after, body.style-ink .column-teaser__cta:after, body.style-ink .text-title__cta:after { border-color: transparent transparent transparent #d7ff3b; }
body.style-ink .text-only strong, body.style-ink .scroll-teaser__teaser-index { color: #d7ff3b; }
body.style-ink .livecard__label, body.style-ink .livecard__k { color: #9aa29c; }
body.style-ink .footer__logo-image { filter: invert(1); }
body.style-ink .pubs, body.style-ink .covers__label { color: #e9ebe6; }
body.style-ink .pubs__meta { color: #9aa29c; }
body.style-ink .pubs__filter button { color: #e9ebe6; border-color: #e9ebe6; }
body.style-ink .pubs__filter button.is-on { background: #d7ff3b; color: #1d1d1b; border-color: #d7ff3b; }
body.style-ink .pubs__year { border-top-color: rgba(233,235,230,.2); }
body.style-ink .header__logo img { filter: invert(1); }
body.style-ink { --nav-ink: #d7ff3b; }
body.style-ink.nav-on-light { --nav-ink: #d7ff3b; }
body.style-neon .text-title__text { background: #d7ff3b; }
body.style-tritone .text-title__text { background: #1d1d1b; color: #eeeeee; }
body.style-tritone .text-title__text strong { color: #d7ff3b; }
body.style-tritone .text-title-title-wrapper { background: #738079; color: #f2f3ee; }
body.style-tritone .text-title__cta { background: #d7ff3b; }

/* ---------- D  FLOW: the animated panels drift through sage, neon and ink */
@property --flow-a { syntax: '<color>'; inherits: true; initial-value: #738079; }
@property --flow-b { syntax: '<color>'; inherits: true; initial-value: #5f6b65; }
@property --flow-x { syntax: '<percentage>'; inherits: true; initial-value: 20%; }
@property --flow-y { syntax: '<percentage>'; inherits: true; initial-value: 30%; }
@keyframes flow-colours {
  0%   { --flow-a: #738079; --flow-b: #4f5a54; }
  30%  { --flow-a: #7d8c5a; --flow-b: #2a2d27; }
  50%  { --flow-a: #2c2f2a; --flow-b: #1d1d1b; }
  70%  { --flow-a: #5d6b4a; --flow-b: #738079; }
  100% { --flow-a: #738079; --flow-b: #4f5a54; }
}
@keyframes flow-glow { 0% { --flow-x: 18%; --flow-y: 30%; } 33% { --flow-x: 78%; --flow-y: 22%; } 66% { --flow-x: 62%; --flow-y: 82%; } 100% { --flow-x: 18%; --flow-y: 30%; } }
body.style-flow :is(.intro-animation__background, .lottie-animation__background, .pubcloud, .brand-panel) {
  background:
    radial-gradient(42% 55% at var(--flow-x) var(--flow-y), rgba(215, 255, 59, .62), rgba(215, 255, 59, 0) 70%),
    linear-gradient(125deg, var(--flow-a), var(--flow-b));
  animation: flow-colours 28s ease-in-out infinite, flow-glow 19s ease-in-out infinite;
}
body.style-flow :is(.intro-animation__background, .lottie-animation__background, .pubcloud, .brand-panel) .animation { --background-color: transparent !important; }
body.style-flow .intro-animation__logo-animation { animation: logo-shift 16s ease-in-out infinite; }
body.style-flow .title-media__cta, body.style-flow .column-teaser__cta, body.style-flow .text-title__cta {
  background: linear-gradient(90deg, #eeeeee 0%, #eeeeee 40%, #d7ff3b 50%, #eeeeee 60%, #eeeeee 100%); background-size: 300% 100%; animation: flow-sweep 9s ease-in-out infinite;
}
@keyframes flow-sweep { 0% { background-position: 100% 0 } 100% { background-position: 0 0 } }
@media (prefers-reduced-motion: reduce) { body.style-flow * { animation: none !important; } }
@keyframes flow-logo { 0%, 32% { filter: none } 42%, 62% { filter: invert(1) } 72%, 100% { filter: none } }
body.style-flow:not(.is-scrolled) .header__logo img { animation: flow-logo 28s ease-in-out infinite; }
/* flow: the light rays turn white between their neon phases */
@property --flow-line { syntax: '<color>'; inherits: true; initial-value: rgba(215, 255, 59, .45); }
@keyframes flow-rays { 0%, 22% { --flow-line: rgba(215, 255, 59, .45); } 34%, 56% { --flow-line: rgba(255, 255, 255, .5); } 68%, 86% { --flow-line: rgba(215, 255, 59, .45); } 93% { --flow-line: rgba(255, 255, 255, .42); } 100% { --flow-line: rgba(215, 255, 59, .45); } }
body.style-flow :is(.intro-animation__background, .lottie-animation__background, .pubcloud, .brand-panel) .animation { --line-color: var(--flow-line) !important; animation: flow-rays 22s ease-in-out infinite; }
/* flow, simplified: sage <-> ink only, no neon glow, logo stays neon, rays alternate neon and white */
@keyframes flow-colours-2 { 0%, 100% { --flow-a: #738079; --flow-b: #66726c; } 50% { --flow-a: #2a2d2a; --flow-b: #1d1d1b; } }
body.style-flow :is(.intro-animation__background, .lottie-animation__background, .pubcloud, .brand-panel) {
  background: linear-gradient(125deg, var(--flow-a), var(--flow-b));
  animation: flow-colours-2 30s ease-in-out infinite;
}
body.style-flow .intro-animation__logo-animation { animation: none; filter: none; }
body.style-flow:not(.is-scrolled) .header__logo img { animation: flow-logo-2 30s ease-in-out infinite; }
@keyframes flow-logo-2 { 0%, 30% { filter: none } 42%, 58% { filter: invert(1) } 70%, 100% { filter: none } }
body.style-flow .title-media__cta, body.style-flow .column-teaser__cta, body.style-flow .text-title__cta { background: var(--color-gray); animation: none; }
