/*===================================================
Project: "Zanna VirtualMind Solutions" - website
One continuous dark canvas, told in chapters.
====================================================*/

@font-face {
  font-family: 'Outfit';
  src: url("../fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --red: #C00000;
  --red-bright: #E5142E;
  --ink: #08090C;
  --ink-2: #111318;
  --line: rgba(255, 255, 255, .09);
  --text: #EDEDEF;
  --muted: #8E929B;
  /* the page colour and the overlay colour, as channels for rgba() */
  --bg: 8, 9, 12;
  --fg: 255, 255, 255;
  /* greys for text, from brightest to faintest */
  --soft-2: #DADCE1;
  --soft: #C5C8CF;
  --soft-3: #B9BCC4;
  --dim: #9AA0AB;
  --tag: #A6A6A6;
  --faint: #6B7180;
  --faint-2: #5F636B;
  /* surfaces of the small illustrations */
  --panel: #12141A;
  --panel-2: #1B1F2A;
  --panel-3: #2A2F3C;
  --panel-line: #3A4050;
  --pink: #F3C7CC;
  --dot: #fff;
  --on-tint: #fff;
  --on-red: #EDEDEF;
  --on-amber: #08090C;
  --amber-text: #F6C077;
  --ok: #7FD49B;
  --error: #FF8A95;
  /* strength of the shadows and of the ambient glow */
  --shade: 1;
  --glow: 1;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  /* room on the right of every chapter, clear of the chapter rail */
  --right: calc((var(--gutter) + 90px) * 1.4);
  /* room on the left of every chapter, three times the page margin */
  --left: calc(var(--gutter) * 3);
  --p: 0;
  /* page scroll progress 0..1, set by home.js */
}


/* Light theme, chosen with the button in the header: the same design on warm paper.
   Only the tokens change. */
[data-theme="light"] {
  --red-bright: #D4102A;
  --ink: #F5F2ED;
  --ink-2: #ECE8E1;
  --line: rgba(20, 22, 30, .13);
  --text: #14161B;
  --muted: #5C616C;
  --bg: 245, 242, 237;
  --fg: 20, 22, 30;
  --soft-2: #262A32;
  --soft: #3A3E48;
  --soft-3: #4A4F5A;
  --dim: #5C616C;
  --tag: #6E727B;
  --faint: #7A7F8A;
  --faint-2: #8A8F99;
  --panel: #FFFFFF;
  --panel-2: #FFFFFF;
  --panel-3: #E4E0D9;
  --panel-line: #CFCAC1;
  --pink: #A30D1F;
  --dot: #14161B;
  --on-tint: #A30D1F;
  --on-red: #fff;
  --amber-text: #8A5200;
  --ok: #1E7A43;
  --error: #B4001A;
  --shade: .22;
  --glow: .45;
}

/* pictures that have one version per theme */
[data-theme="light"] .theme-dark,
:root:not([data-theme="light"]) .theme-light {
  display: none;
}

/* on paper the two cards (the call and the form) are white sheets */
[data-theme="light"] .call,
[data-theme="light"] .contact-form {
  background: #fff;
  box-shadow: 0 30px 60px -30px rgba(20, 22, 30, .28);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: var(--ink);
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--red-bright);
}

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/*============== Ambient background ==========*/
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient span {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.ambient span:nth-child(1) {
  width: 60vmax;
  height: 60vmax;
  left: 40vw;
  top: -20vmax;
  background: radial-gradient(circle, rgba(192, 0, 0, calc(.30 * var(--glow))), rgba(192, 0, 0, calc(.08 * var(--glow))) 40%, transparent 70%);
  transform: translate(calc(var(--p) * -55vw), calc(var(--p) * 70vh));
}

.ambient span:nth-child(2) {
  width: 45vmax;
  height: 45vmax;
  left: -15vmax;
  top: 55vh;
  background: radial-gradient(circle, rgba(229, 20, 46, calc(.16 * var(--glow))), transparent 65%);
  transform: translate(calc(var(--p) * 60vw), calc(var(--p) * -40vh));
}

.ambient span:nth-child(3) {
  width: 35vmax;
  height: 35vmax;
  right: -10vmax;
  bottom: -15vmax;
  background: radial-gradient(circle, rgba(120, 130, 160, .10), transparent 65%);
  transform: translate(calc(var(--p) * -30vw), 0);
}

/* fine grain, so the dark doesn't look flat */
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main,
.footer {
  position: relative;
  z-index: 1;
}

/*============== Header ==========*/
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background-color 300ms, backdrop-filter 300ms;
}

.header.scrolled {
  background-color: rgba(var(--bg), .6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.header .logo img {
  height: 82px;
  width: auto;
  transition: height 300ms;
}

.header.scrolled .logo img {
  height: 70px;
}

.logo-tag {
  margin-top: 5px;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--tag);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-switch button {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
}

.lang-switch button[aria-pressed="true"] {
  color: var(--ink);
  background-color: var(--text);
}

/* sun on the dark theme, moon on the light one */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 16px;
  color: var(--muted);
  transition: color 200ms, border-color 200ms;
}

.theme-toggle:hover {
  border-color: rgba(var(--fg), .35);
  color: var(--text);
}

.btn-ghost {
  padding: 9px 18px;
  border: 1px solid rgba(var(--fg), .22);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 200ms, border-color 200ms;
}

.btn-ghost:hover {
  background-color: var(--red);
  border-color: var(--red);
}

/*============== Chapter rail ==========*/
.rail {
  position: fixed;
  right: var(--gutter);
  top: 50%;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(-50%);
  font-size: 13px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms, visibility 400ms;
}

/* hidden over the hero, shown once the chapters start */
.rail.show {
  opacity: 1;
  visibility: visible;
}

.rail.show.hide {
  opacity: 0;
  visibility: hidden;
}

.rail>* {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
}

.rail>* span {
  position: absolute;
  right: calc(100% + 12px);
  white-space: nowrap;
}

.rail b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.rail>*::after {
  content: "";
  width: 14px;
  height: 1px;
  background-color: currentColor;
  transition: width 300ms;
}

.rail>* span {
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 250ms, transform 250ms;
}

.rail:hover>* span,
.rail .active span {
  opacity: 1;
  transform: none;
}

.rail .active {
  color: var(--text);
}

.rail .active::after {
  width: 34px;
  background-color: var(--red-bright);
}

.rail .soon {
  opacity: .4;
}

/*============== Shared ==========*/
.eyebrow,
.chapter-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--red-bright);
  box-shadow: 0 0 12px var(--red-bright);
}

.chapter-label b {
  font-weight: 500;
  color: var(--red-bright);
}

/* words split by home.js */
.split .w {
  display: inline-block;
}

/*============== Hero ==========*/
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .55fr);
  align-items: center;
  padding: 170px var(--gutter) 130px;
  overflow: hidden;
}

.voice-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-copy {
  position: relative;
  max-width: 760px;
  /* the hero text sits 75% further in than the chapters below */
  margin-left: calc(var(--left) * 1.75 - var(--gutter));
}

.hero h1 {
  margin: 22px 0 26px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.1rem, 7vw, 7.4rem);
  line-height: .95;
  letter-spacing: -.01em;
}

.hero .lead {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 300;
  color: var(--soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 34px;
  margin-top: 40px;
}

.voice-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 26px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: rgba(var(--fg), .04);
  text-align: left;
  transition: border-color 250ms, background-color 250ms;
}

.voice-btn:hover {
  border-color: rgba(229, 20, 46, .6);
  background-color: rgba(229, 20, 46, .08);
}

.voice-btn-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--red);
  font-size: 26px;
}

.voice-btn-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid var(--red-bright);
  border-radius: 50%;
  animation: ring 2.4s ease-out infinite;
}

.voice-btn.playing .voice-btn-icon::after {
  animation-duration: 1s;
}

.voice-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.voice-btn-name {
  font-weight: 500;
}

.voice-btn-lang {
  font-size: 13px;
  color: var(--muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(var(--fg), .35);
  font-weight: 500;
  transition: gap 200ms, border-color 200ms;
}

.link-arrow:hover {
  gap: 14px;
  border-color: var(--red-bright);
}

.hero-figure {
  position: relative;
  justify-self: center;
  /* moves the robot and its voice ring left (about 180px clear of the right edge at 1440px)
     without narrowing its column */
  left: calc(var(--gutter) * -2.45);
}

.hero-figure img {
  height: min(64vh, 520px);
  width: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, calc(.6 * var(--shade))));
}

/* soft floor under the sneakers */
.hero-figure::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 220%;
  height: 40px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(229, 20, 46, .35), transparent 65%);
  filter: blur(6px);
}

.hero-foot {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.scroll-cue i {
  animation: nudge 1.8s ease-in-out infinite;
}

.marquee {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee-track span {
  padding: 0 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--soft-3);
}

.lang-count {
  white-space: nowrap;
  color: var(--text);
}

/*============== Chapter 01: statement ==========*/
.statement {
  height: 230vh;
}

.statement-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 34px;
  padding: 0 var(--right) 0 var(--left);
}

.statement p {
  max-width: 1150px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -.005em;
}

.statement .w {
  opacity: .14;
  transition: opacity 250ms;
}

.statement .w.on {
  opacity: 1;
}

/*============== Chapter 01: the stage, one agent at a time ==========*/
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.stage {
  --c1: #C00000;
  --c2: #E5142E;
  --c3: #C00000;
  position: relative;
}

.stage-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* the colours of the agent's flag light the stage */
.stage-light span {
  position: absolute;
  top: 18%;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  opacity: .32;
  background: radial-gradient(circle, currentColor, transparent 62%);
  transition: color 900ms ease;
}

.stage-light span:nth-child(1) {
  left: calc(50% - 40vmax);
  color: var(--c1);
}

.stage-light span:nth-child(2) {
  left: calc(50% - 23vmax);
  top: 4%;
  color: var(--c2);
}

.stage-light span:nth-child(3) {
  left: calc(50% - 6vmax);
  color: var(--c3);
}

.stage-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage-head {
  position: absolute;
  top: 140px;
  left: var(--left);
  max-width: 24rem;
  z-index: 2;
}

.stage-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.4vw, 4.4rem);
  line-height: 1;
}

.stage-head p {
  margin-top: 14px;
  color: var(--muted);
}

.stage-figures {
  position: absolute;
  left: 50%;
  bottom: 120px;
  width: 0;
  height: min(60vh, 540px);
  z-index: 1;
}

.stage-agent {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  width: auto;
  max-width: none;
  opacity: 0;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, calc(.7 * var(--shade))));
  transform: translateX(calc(-50% + 90px)) scale(.94);
  transition: opacity 500ms, transform 700ms cubic-bezier(.2, .7, .2, 1);
}

.stage-agent.before {
  transform: translateX(calc(-50% - 90px)) scale(.94);
}

.stage-agent.active {
  opacity: 1;
  transform: translateX(-50%);
}

/* a lit floor under the sneakers */
.stage-figures::after {
  content: "";
  position: absolute;
  left: -260px;
  bottom: -16px;
  width: 520px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(229, 20, 46, .45), transparent 65%);
}

.stage-info {
  position: absolute;
  right: calc(var(--gutter) + 40px);
  top: 50%;
  z-index: 2;
  width: min(30vw, 380px);
  transform: translateY(-50%);
  transition: opacity 220ms, transform 220ms;
}

.stage-info.swap {
  opacity: 0;
}

.stage-info.swap {
  transform: translateY(calc(-50% + 10px));
}

.stage-hello {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  line-height: 1;
  color: var(--red-bright);
}

.stage-name {
  margin: 6px 0 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 1;
}

.stage-lang {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stage-flag {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(var(--fg), .12), 0 10px 30px -6px rgba(0, 0, 0, calc(.8 * var(--shade)));
}

.stage-lang strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 500;
}

.stage-lang small {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

.stage-play {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding: 7px 24px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: rgba(var(--fg), .04);
  font-weight: 500;
  transition: border-color 250ms, background-color 250ms;
}

.stage-play:hover {
  border-color: rgba(229, 20, 46, .6);
  background-color: rgba(229, 20, 46, .08);
}

.stage-play-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--red);
  font-size: 24px;
  box-shadow: 0 10px 30px -8px rgba(192, 0, 0, .8);
}

.stage-count {
  margin-top: 26px;
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.stage-count b {
  font-weight: 500;
  color: var(--text);
}

.stage-thumbs {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 2;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.stage-thumbs button {
  position: relative;
  width: 52px;
  height: 52px;
  border: 2px solid transparent;
  border-radius: 50%;
  overflow: hidden;
  background-color: rgba(var(--fg), .06);
  opacity: .55;
  transition: opacity 250ms, border-color 250ms, transform 250ms;
}

.stage-thumbs button img {
  position: absolute;
  left: 50%;
  top: 2px;
  width: 150%;
  max-width: none;
  transform: translateX(-50%);
}

.stage-thumbs button:hover {
  opacity: .9;
  transform: translateY(-3px);
}

.stage-thumbs button[aria-current="true"] {
  opacity: 1;
  border-color: var(--red-bright);
}

/*============== Chapter 02: measure ==========*/
.measure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  padding: 0 var(--right) 0 var(--left);
}

.measure-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.big-number {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: clamp(6rem, 15vw, 14rem);
  line-height: .85;
  color: var(--red-bright);
  font-variant-numeric: tabular-nums;
}

.big-number .unit {
  font-style: italic;
}

/* "more than" above the number in chapter 07 */
.big-pre {
  display: block;
  margin-bottom: .12em;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-style: italic;
  line-height: 1;
  color: var(--text);
}

.pin-lead {
  max-width: 28rem;
  margin-top: 18px;
  color: var(--muted);
}

.measure-pin h2,
.pin-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1;
}

/* narrow enough to leave room for the robot on the right */
.measure-pin .big-number,
.measure-pin h2,
.measure-pin p {
  position: relative;
  z-index: 1;
}

.measure-pin h2 {
  max-width: 7em;
}

.measure-pin p {
  max-width: 22rem;
  margin-top: 18px;
  color: var(--muted);
}

.measure-robot {
  position: absolute;
  right: -50px;
  bottom: 8vh;
  height: min(58vh, 510px, 36vw);
  width: auto;
  opacity: .9;
}

.measure-list {
  list-style: none;
  padding: 30vh 0;
}

.measure-item {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 32px;
  border-left: 1px solid var(--line);
  opacity: .25;
  transition: opacity 400ms, border-color 400ms;
}

.measure-item.active {
  opacity: 1;
  border-color: var(--red-bright);
}

.measure-index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--red-bright);
}

.measure-item h3 {
  margin: 6px 0 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  line-height: 1.05;
}

.measure-item p {
  max-width: 30rem;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--soft);
}

/* small illustrations in the style of the platform; they play once (.seen) */
.mini {
  max-width: 34rem;
  margin-top: 34px;
}

.measure-item .mini p {
  font-size: inherit;
}

/* a: call scorecard */
.score-body {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 12px;
}

.score-tile {
  flex: none;
  display: grid;
  place-items: center;
  align-content: center;
  width: 118px;
  height: 100px;
  border-radius: 12px;
  background-color: #FBCB7E;
  color: var(--on-amber);
  opacity: 0;
  transform: scale(.85);
  transition: opacity 500ms, transform 600ms cubic-bezier(.3, 1.5, .5, 1);
}

.score-tile span {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.score-tile b {
  font-family: var(--serif);
  font-size: 54px;
  font-weight: 400;
  line-height: .9;
}

.score-bars {
  flex: 1;
  min-width: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.score-bars li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  font-size: 13px;
  color: var(--soft);
}

.score-bars b {
  font-weight: 600;
  color: var(--text);
}

.score-bars i {
  position: relative;
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 4px;
  background-color: rgba(var(--fg), .08);
  overflow: hidden;
}

.score-bars i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v) * 100%);
  border-radius: 4px;
  background-color: var(--red-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
}

.score-bars li:nth-child(2) i::after {
  transition-delay: 120ms;
}

.score-bars li:nth-child(3) i::after {
  transition-delay: 240ms;
}

.score-bars li:nth-child(4) i::after {
  transition-delay: 360ms;
}

.seen .score-tile {
  opacity: 1;
  transform: none;
}

.seen .score-bars i::after {
  transform: none;
}

/* b: risks waiting for review */
.risk-stats,
.live-kpis {
  display: flex;
  gap: 40px;
  margin: 12px 0 16px;
}

.risk-stats p,
.live-kpis p {
  display: grid;
  gap: 4px;
}

.risk-stats b,
.live-kpis b {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  color: var(--text);
}

.risk-stats span,
.live-kpis span {
  font-size: 12px;
  color: var(--muted);
}

.risk-stats p:nth-child(2) b {
  color: var(--red-bright);
}

.risk-rows {
  list-style: none;
  display: grid;
  gap: 8px;
  /* the rows slide in from the right: keep them from widening the page meanwhile */
  overflow: hidden;
}

.risk-rows li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: rgba(var(--fg), .03);
  font-size: 14px;
  color: var(--soft-2);
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 500ms, transform 600ms cubic-bezier(.2, .7, .2, 1);
}

.risk-rows li:nth-child(2) {
  transition-delay: 150ms;
}

.risk-rows li:nth-child(3) {
  transition-delay: 300ms;
}

.risk-rows span {
  flex: 1;
  min-width: 0;
}

.risk-rows em {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.risk-rows .high i {
  color: var(--red-bright);
}

.risk-rows .high em {
  background-color: var(--red-bright);
  color: #fff;
}

.risk-rows .medium i {
  color: #F2A33A;
}

.risk-rows .medium em {
  background-color: rgba(242, 163, 58, .18);
  color: var(--amber-text);
}

.risk-rows .low i {
  color: var(--muted);
}

.risk-rows .low em {
  background-color: rgba(var(--fg), .08);
  color: var(--soft);
}

.seen .risk-rows li {
  opacity: 1;
  transform: none;
}

/* c: today's calls, live */
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--red-bright);
  box-shadow: 0 0 0 0 rgba(229, 20, 46, .6);
  animation: live 1.6s infinite;
}

.live-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.live-grid {
  fill: none;
  stroke: rgba(var(--fg), .08);
  stroke-width: .6;
  stroke-dasharray: 2 2;
}

.live-area {
  fill: url(#live-fill);
  opacity: 0;
  transition: opacity 800ms 900ms;
}

.live-line {
  fill: none;
  stroke: var(--red-bright);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s cubic-bezier(.4, 0, .2, 1);
}

.live-now {
  fill: var(--dot);
  opacity: 0;
  transition: opacity 300ms 1.5s;
}

.live-pulse {
  fill: none;
  stroke: var(--red-bright);
  stroke-width: 1;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.seen .live-area,
.seen .live-now {
  opacity: 1;
}

.seen .live-line {
  stroke-dashoffset: 0;
}

.seen .live-pulse {
  animation: pulse 1.8s 1.8s infinite;
}

@keyframes pulse {
  from {
    opacity: .9;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(4);
  }
}

.live-hours {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--faint);
}

@media (max-width: 640px) {
  .score-body {
    gap: 18px;
  }

  .score-tile {
    width: 92px;
    height: 86px;
  }

  .score-tile b {
    font-size: 44px;
  }

  .risk-stats,
  .live-kpis {
    gap: 24px;
  }

  .risk-stats b,
  .live-kpis b {
    font-size: 32px;
  }

  .risk-rows li {
    padding: 10px 12px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .score-tile,
  .risk-rows li {
    opacity: 1;
    transform: none;
  }

  .score-bars i::after {
    transform: none;
  }

  .live-area,
  .live-now {
    opacity: 1;
  }

  .live-line {
    stroke-dashoffset: 0;
  }

  .live-dot,
  .live-pulse {
    animation: none;
  }
}

/*============== Motion ==========*/
@keyframes ring {
  from {
    transform: scale(.9);
    opacity: .9;
  }

  to {
    transform: scale(1.45);
    opacity: 0;
  }
}

@keyframes nudge {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes word-in {
  from {
    opacity: 0;
    transform: translateY(.35em);
    filter: blur(8px);
  }
}

.js .intro .w {
  animation: word-in 900ms cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i) * 70ms + 150ms);
}

.js .hero .eyebrow,
.js .hero .lead,
.js .hero-actions,
.js .hero-figure {
  animation: word-in 1s cubic-bezier(.2, .7, .2, 1) both;
}

.js .hero .lead {
  animation-delay: 700ms;
}

.js .hero-actions {
  animation-delay: 900ms;
}

.js .hero-figure {
  animation-delay: 400ms;
}

/*============== Responsive ==========*/
@media (max-width: 1100px) {
  .rail {
    display: none;
  }

  .statement-sticky,
  .measure {
    padding-right: var(--gutter);
  }

  .stage-info {
    right: var(--gutter);
  }
}

@media (max-width: 900px) {
  :root {
    --left: var(--gutter);
  }

  .hero {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 30px;
    padding-top: 120px;
    padding-bottom: 110px;
  }

  .hero-figure {
    left: 0;
  }

  .hero-figure img {
    height: 300px;
  }

  .hero-copy {
    margin-left: 0;
  }

  .lang-count {
    display: none;
  }

  /* small screens: the stage is a normal block, agents change with the faces */
  .stage-sticky {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 12vh var(--gutter) 40px;
  }

  .stage-head,
  .stage-info,
  .stage-thumbs {
    position: relative;
    inset: auto;
    transform: none;
    width: auto;
  }

  .stage-info.swap {
    transform: translateY(10px);
  }

  .stage-figures {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    height: 380px;
    margin: 30px 0 20px;
  }

  .stage-agent,
  .stage-agent.before,
  .stage-agent.active {
    left: 50%;
  }

  .stage-figures::after {
    left: calc(50% - 160px);
    width: 320px;
  }

  .stage-thumbs {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
  }

  .measure {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .measure-pin {
    position: static;
    height: auto;
    padding-top: 14vh;
  }

  .measure-robot {
    display: none;
  }

  .measure-list {
    padding: 6vh 0 0;
  }

  .measure-item {
    min-height: 0;
    padding: 34px 0 34px 22px;
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .header .logo img,
  .header.scrolled .logo img {
    height: 52px;
  }

  .header .logo-tag {
    font-size: 7px;
    margin-top: 3px;
  }

  .btn-ghost {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 13vw, 3.6rem);
  }

  .hero-foot .scroll-cue {
    display: none;
  }

  .statement {
    height: 180vh;
  }

  .footer {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .statement {
    height: auto;
  }

  .statement-sticky {
    position: static;
    height: auto;
    padding-top: 20vh;
    padding-bottom: 10vh;
  }

  .statement .w {
    opacity: 1;
  }

  .stage-sticky {
    height: 100vh;
  }

  .measure-item {
    opacity: 1;
  }
}

/*===================================================
Chapters 03-07
====================================================*/
.chapter-head {
  padding: 22vh var(--right) 8vh var(--left);
}

.display {
  margin: 18px 0 22px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: 1;
}

.chapter-lead {
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  font-weight: 300;
  color: var(--soft);
}

/*============== 03 Learns ==========*/
/* chapters 03 and 05: the main block stays pinned on the left while the rest scrolls on the right */
.side-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  padding: 0 var(--right) 0 var(--left);
}

.side-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 90px;
}

.side-pin .display {
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.flask-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 26px;
}

.flask {
  display: block;
  height: min(21vh, 196px);
  width: auto;
  overflow: visible;
  cursor: grab;
  touch-action: pan-y;
}

.flask.grabbing {
  cursor: grabbing;
}

.side-list {
  padding: 18vh 0;
}

/* each block on the right has the chapter 02 line on its left, red while it is in the middle */
.side-item {
  padding: 7vh 0 7vh 32px;
  border-left: 1px solid var(--line);
  transition: border-color 400ms;
}

.side-item.active {
  border-color: var(--red-bright);
}

.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
}

.duo i {
  font-size: 24px;
  color: var(--red-bright);
}

.duo h3 {
  margin: 12px 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.1;
}

.duo p {
  max-width: 32rem;
  color: var(--muted);
}

/*============== 04 Acts ==========*/
.act-scroll {
  height: 280vh;
  margin-top: 10vh;
}

.act-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: center;
  gap: 60px;
  padding: 90px var(--right) 30px var(--left);
}

.act-points {
  list-style: none;
  display: grid;
  gap: 16px;
  margin-top: 34px;
  max-width: 34rem;
}

.act-points li {
  display: flex;
  gap: 14px;
  font-size: 15px;
  color: var(--muted);
}

.act-points i {
  flex: none;
  font-size: 20px;
  color: var(--red-bright);
}

.call {
  position: relative;
  display: flex;
  flex-direction: column;
  height: min(74vh, 620px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(var(--fg), .06), rgba(var(--fg), .015));
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, calc(.9 * var(--shade)));
}

.call-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.call-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--red-bright);
  box-shadow: 0 0 0 0 rgba(229, 20, 46, .7);
  animation: live 1.6s infinite;
}

.call-who {
  font-weight: 500;
}

.call-time {
  margin-left: auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.call-feed {
  flex: 1;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 4px 8px;
  overflow: hidden;
}

.call-feed li {
  animation: word-in 500ms cubic-bezier(.2, .7, .2, 1) both;
}

.js .call-feed li:not(.shown) {
  display: none;
}

.msg {
  max-width: 82%;
  padding: 11px 15px;
  font-size: 15px;
  line-height: 1.45;
}

.msg.agent {
  align-self: flex-start;
  border-radius: 18px 18px 18px 4px;
  background-color: rgba(var(--fg), .09);
}

.msg.customer {
  align-self: flex-end;
  border-radius: 18px 18px 4px 18px;
  background-color: var(--red);
}

.chip {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px dashed rgba(229, 20, 46, .6);
  border-radius: 999px;
  font-size: 13px;
  color: var(--pink);
}

.chip i {
  color: var(--red-bright);
}

.chip.done {
  border-style: solid;
  background-color: rgba(229, 20, 46, .15);
}

.call-note {
  padding-top: 8px;
  font-size: 12px;
  text-align: center;
  color: var(--faint-2);
}

.usecases {
  padding: 16vh var(--right) 4vh var(--left);
}

.usecases-title {
  margin-bottom: 30px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.usecases ol {
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.usecases li {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.usecases li::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(229, 20, 46, .14), transparent 70%);
  opacity: 0;
  transition: opacity 300ms;
}

.usecases li:hover::before {
  opacity: 1;
}

.uc-num {
  position: relative;
  font-size: 14px;
  color: var(--red-bright);
}

.uc-name {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  line-height: 1;
  transition: transform 300ms, color 300ms;
}

.usecases li:hover .uc-name {
  transform: translateX(12px);
  color: var(--red-bright);
}

.uc-text {
  position: relative;
  color: var(--muted);
}

/*============== 05 Protects ==========*/
/* pinned on the left like chapter 03: the title and, centred below, the HVA inside the client's infrastructure */
.infra {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  max-height: 40vh;
  margin: 40px auto 0;
  overflow: visible;
}

.infra-wall {
  fill: rgba(var(--fg), .02);
  stroke: rgba(var(--fg), .22);
  stroke-width: 1.2;
  stroke-dasharray: 6 5;
}

.infra-title {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  fill: var(--dim);
}

.infra-shield path {
  fill: var(--ink);
  stroke: var(--red-bright);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.infra-shield .infra-check {
  fill: none;
  stroke-linecap: round;
}

.infra-link {
  fill: none;
  stroke: rgba(var(--fg), .12);
  stroke-width: 1.4;
}

/* data moving between the HVA and the client's systems, always inside the wall */
.infra-flow,
.infra-call {
  fill: none;
  stroke: var(--red-bright);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 3 12;
  animation: infra-flow 1.4s linear infinite;
}

.infra-flow:nth-of-type(odd) {
  animation-duration: 1.8s;
}

.infra-call {
  stroke-dasharray: 2 7;
}

@keyframes infra-flow {
  to {
    stroke-dashoffset: -30;
  }
}

.infra-customer circle,
.infra-customer path {
  fill: none;
  stroke: var(--soft);
  stroke-width: 1.6;
}

.infra-node rect {
  fill: var(--panel);
  stroke: rgba(var(--fg), .2);
  stroke-width: 1.2;
}

.infra-node text,
.infra-hva text {
  font-family: var(--sans);
  font-size: 12px;
  text-anchor: middle;
  fill: var(--soft-2);
}

.infra-hva rect {
  fill: rgba(229, 20, 46, .16);
  stroke: var(--red-bright);
  stroke-width: 1.6;
}

.infra-hva text {
  font-weight: 600;
  letter-spacing: .12em;
  fill: var(--on-tint);
}

.infra-glow {
  fill: rgba(229, 20, 46, .18);
  transform-box: fill-box;
  transform-origin: center;
  animation: infra-glow 2.6s ease-in-out infinite;
}

@keyframes infra-glow {
  50% {
    opacity: .3;
    transform: scale(1.25);
  }
}

.infra-voice rect {
  fill: var(--on-tint);
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: infra-voice 1.1s ease-in-out infinite;
}

.infra-voice rect:nth-child(2) {
  animation-delay: -.3s;
}

.infra-voice rect:nth-child(3) {
  animation-delay: -.6s;
}

.infra-voice rect:nth-child(4) {
  animation-delay: -.15s;
}

.infra-voice rect:nth-child(5) {
  animation-delay: -.45s;
}

@keyframes infra-voice {
  50% {
    transform: scaleY(.35);
  }
}

/* on the right: the sectors, then the security points */
.protect-sector {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  line-height: 1.15;
  color: var(--soft-3);
}

.side-point i {
  font-size: 24px;
  color: var(--red-bright);
}

.side-point h3 {
  margin: 12px 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.1;
}

.side-point p {
  max-width: 32rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {

  .infra-flow,
  .infra-call,
  .infra-glow,
  .infra-voice rect {
    animation: none;
  }
}

/*============== 06 Starts ==========*/
.start-scroll {
  height: 260vh;
  margin-top: 12vh;
}

.start-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5vh;
  padding: 90px var(--right) 30px var(--left);
}

.start-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 0 40px;
}

.start-head .chapter-label {
  grid-column: 1 / -1;
  margin-bottom: 10px;
}

.start-big {
  font-family: var(--serif);
  line-height: .8;
}

.start-num {
  font-size: clamp(8rem, 18vw, 16rem);
  color: var(--red-bright);
}

.start-big em {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  color: var(--text);
}

.start-head h2 {
  max-width: 22rem;
  padding-bottom: 14px;
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--muted);
}

.track {
  --run: 0;
  position: relative;
  height: 160px;
}

.track-line {
  position: absolute;
  left: 0;
  right: 30px;
  bottom: 6px;
  height: 2px;
  background-color: var(--line);
}

.track-line span {
  display: block;
  height: 100%;
  background-color: var(--red-bright);
  box-shadow: 0 0 12px var(--red-bright);
  transform: scaleX(var(--run));
  transform-origin: left;
}

.track-ostrich {
  position: absolute;
  bottom: 4px;
  left: calc(var(--run) * (100% - 210px));
  height: 150px;
  width: auto;
  animation: gallop .45s ease-in-out infinite alternate;
}

.track-flag {
  position: absolute;
  right: 18px;
  bottom: 8px;
  font-size: 28px;
  color: var(--red-bright);
}

@keyframes gallop {
  to {
    translate: 0 -6px;
  }
}

.track-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.track-steps li {
  opacity: .3;
  transition: opacity 400ms;
}

.track-steps li.on {
  opacity: 1;
}

.step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--red-bright);
  border-radius: 50%;
  font-size: 14px;
  color: var(--red-bright);
}

.track-steps h3 {
  margin: 14px 0 6px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.1;
}

.track-steps p {
  font-size: 15px;
  color: var(--muted);
}

/*============== 07 Talk ==========*/
.about-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px 56px;
  padding: 16vh var(--right) 10vh var(--left);
}

/* the chapter starts here: its label spans the whole band */
.about-band .chapter-label {
  grid-column: 1 / -1;
  margin-bottom: 10px;
}

.about-num {
  font-family: var(--serif);
  font-size: clamp(7rem, 15vw, 13rem);
  line-height: .8;
}

.about-band h3 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.05;
}

.about-band div p {
  max-width: 42rem;
  color: var(--muted);
}

.faq-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 30px 60px;
  padding: 8vh var(--right) 8vh var(--left);
}

.faq-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  line-height: 1.05;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-size: 1.15rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: .8;
  color: var(--red-bright);
  transition: transform 300ms;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 46rem;
  padding-bottom: 24px;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 60px;
  padding: 16vh var(--right) 14vh var(--left);
}

.contact-copy {
  position: relative;
}

.contact-info {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-info i {
  color: var(--red-bright);
}

.contact-info a:hover {
  color: var(--red-bright);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 32px;
  align-content: start;
  align-self: start;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(var(--fg), .05), rgba(var(--fg), .01));
}

.field {
  position: relative;
}

.field.full,
.consent,
.form-footer {
  grid-column: 1 / -1;
}

.field input,
.field textarea {
  width: 100%;
  padding: 24px 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(var(--fg), .22);
  border-radius: 0;
  background: transparent;
  font: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 250ms;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--red-bright);
}

.field label {
  position: absolute;
  left: 0;
  top: 24px;
  color: var(--muted);
  pointer-events: none;
  transition: top 200ms, font-size 200ms, color 200ms;
}

.field input:focus+label,
.field textarea:focus+label,
.field input:not(:placeholder-shown)+label,
.field textarea:not(:placeholder-shown)+label {
  top: 0;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.hp {
  position: absolute;
  left: -9999px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.consent input {
  margin-top: 4px;
  accent-color: var(--red);
}

.consent a {
  text-decoration: underline;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.send {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 30px;
  border-radius: 999px;
  background-color: var(--red);
  font-size: 17px;
  font-weight: 500;
  transition: background-color 200ms, gap 200ms;
}

.send:hover {
  gap: 18px;
  background-color: var(--red-bright);
}

.send:disabled {
  opacity: .6;
  cursor: progress;
}

.form-status {
  font-size: 15px;
}

.form-status.ok {
  color: var(--ok);
}

.form-status.error {
  color: var(--error);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding: 34px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.footer-copy {
  margin-right: auto;
}

.footer a:hover {
  color: var(--text);
}

@keyframes live {
  70% {
    box-shadow: 0 0 0 9px rgba(229, 20, 46, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(229, 20, 46, 0);
  }
}

/*============== Chapters 03-07: responsive ==========*/
@media (max-width: 1100px) {

  .chapter-head,
  .side-layout,
  .act-sticky,
  .usecases,
  .start-sticky,
  .about-band,
  .faq-block,
  .contact {
    padding-right: var(--gutter);
  }
}

@media (max-width: 900px) {

  .side-layout,
  .duo,
  .faq-block,
  .contact {
    grid-template-columns: 1fr;
  }

  .side-layout {
    gap: 0;
  }

  .side-pin {
    position: static;
    height: auto;
    padding-top: 14vh;
  }

  .flask {
    height: 168px;
  }

  .side-list {
    padding: 8vh 0 6vh;
  }

  .side-item {
    padding: 34px 0 34px 22px;
  }

  .chapter-head {
    padding-top: 14vh;
  }

  .act-scroll,
  .start-scroll {
    height: auto;
  }

  .act-sticky,
  .start-sticky {
    position: static;
    height: auto;
    padding-top: 12vh;
  }

  .act-sticky {
    grid-template-columns: 1fr;
  }

  .call {
    height: auto;
  }

  .js .call-feed .msg:not(.shown) {
    display: block;
  }

  .js .call-feed .chip:not(.shown) {
    display: inline-flex;
  }

  .usecases li {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .uc-text {
    grid-column: 2;
  }

  .infra {
    max-height: none;
  }

  .track-steps {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .track-steps li {
    opacity: 1;
  }

  .about-band {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .contact-form {
    grid-template-columns: 1fr;
    padding: 26px 22px;
  }

  .track {
    height: 110px;
  }

  .track-ostrich {
    height: 100px;
    left: calc(var(--run) * (100% - 130px));
  }

  .footer-copy {
    margin-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  .act-scroll,
  .start-scroll {
    height: auto;
  }

  .act-sticky,
  .start-sticky {
    position: static;
    height: auto;
    padding-top: 14vh;
  }

  .call {
    height: auto;
  }

  .js .call-feed .msg:not(.shown) {
    display: block;
  }

  .js .call-feed .chip:not(.shown) {
    display: inline-flex;
  }

  .track {
    --run: 1 !important;
  }

  .track-steps li {
    opacity: 1;
  }

  .bubble {
    left: var(--x);
    top: var(--y);
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  .radar-shape {
    transform: none;
  }

  .lab-verdict {
    opacity: 1;
    transform: translateX(-50%);
  }
}

/*============== 03 Learns: product-style panels ==========*/
.showcase {
  /* both panels of the chapter share the same size */
  --viz: 460px;
  display: grid;
  gap: 30px;
}

.showcase-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid rgba(229, 20, 46, .45);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pink);
}

.showcase-tag i {
  color: var(--red-bright);
}

.showcase-copy h3 {
  margin: 18px 0 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  line-height: 1.02;
}

.showcase-copy p {
  max-width: 30rem;
  color: var(--muted);
}

.showcase-legend {
  list-style: none;
  display: grid;
  gap: 6px;
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}

.showcase-legend b {
  display: inline-block;
  width: 22px;
  color: var(--red-bright);
}

/* the illustrative charts sit straight on the page background */
.product-panel {
  position: relative;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  padding: 0 4px 6px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.panel-head > * {
  white-space: nowrap;
}

.panel-head strong {
  font-weight: 500;
  color: var(--soft);
}

.panel-head span {
  color: var(--faint);
}

.panel-head span::before {
  content: "·";
  margin-right: 12px;
}

/* A/B quadrant */
.quadrant {
  position: relative;
  height: calc(var(--viz) - 66px);
  margin: 26px 30px 40px 58px;
}

.quadrant-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.quadrant-grid path {
  fill: none;
  stroke: rgba(var(--fg), .07);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  vector-effect: non-scaling-stroke;
}

.quadrant-grid .quadrant-axis {
  stroke: rgba(229, 20, 46, .55);
  stroke-dasharray: none;
  stroke-width: 1.5;
}

.q-label {
  position: absolute;
  font-size: 11px;
  color: var(--faint);
}

.q-y {
  left: -42px;
  top: 0;
  transform: translateY(-50%);
}

.q-y.q-mid {
  top: 50%;
}

.q-x {
  bottom: -26px;
  right: 0;
}

.q-x.q-mid {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

.bubble {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--size);
  height: var(--size);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.3);
  transition: left 1.3s cubic-bezier(.2, .7, .2, 1), top 1.3s cubic-bezier(.2, .7, .2, 1), transform 1.3s cubic-bezier(.2, .7, .2, 1), opacity 400ms;
  transition-delay: var(--delay);
}

.in .bubble {
  left: var(--x);
  top: var(--y);
  opacity: 1;
  transform: translate(-50%, -50%);
}

.bubble img {
  width: 100%;
  height: 100%;
  border: 2px solid var(--panel-line);
  border-radius: 50%;
  background-color: var(--panel-2);
  object-fit: cover;
  object-position: 50% 0;
}

.bubble b {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--panel-3);
  font-size: 12px;
  font-weight: 600;
}

.bubble.winner img {
  border-color: var(--red-bright);
  box-shadow: 0 0 0 6px rgba(229, 20, 46, .18), 0 0 40px rgba(229, 20, 46, .55);
}

.bubble.winner b {
  background-color: var(--red-bright);
}

.bubble.winner i {
  position: absolute;
  top: -12px;
  right: -8px;
  font-size: 18px;
  color: #F1BF00;
}

/* HVA Lab: radar and verdict */
.lab-body {
  position: relative;
  display: flex;
  justify-content: center;
  height: var(--viz);
  padding: 16px 0 64px;
}

.lab-verdict {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  background-color: var(--text);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%) scale(.8);
  transition: opacity 400ms 1.6s, transform 400ms 1.6s cubic-bezier(.3, 1.6, .5, 1);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, calc(.8 * var(--shade)));
}

.lab-verdict i {
  color: var(--red);
}

.in .lab-verdict {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.radar {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.radar-grid polygon,
.radar-grid line {
  fill: none;
  stroke: rgba(var(--fg), .09);
  stroke-width: 1;
}

.radar-shape {
  transform: scale(0);
  transition: transform 1.4s cubic-bezier(.2, .7, .2, 1) .3s;
}

.in .radar-shape {
  transform: none;
}

.radar-shape polygon {
  fill: rgba(229, 20, 46, .2);
  stroke: var(--red-bright);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.radar-shape circle {
  fill: var(--dot);
}

.radar-labels text {
  font-family: var(--sans);
  font-size: 9.5px;
  fill: var(--dim);
}

.radar.compact .radar-labels text {
  font-size: 13px;
}

@media (max-width: 900px) {
  .showcase {
    --viz: 320px;
  }

  .quadrant {
    margin: 20px 18px 36px 46px;
  }
}

@media (max-width: 640px) {

  .lab-body {
    padding: 14px 6px 64px;
  }

  .bubble {
    width: calc(var(--size) * .7);
    height: calc(var(--size) * .7);
  }
}

/*============== Privacy policy (privacy-policy.html) ==========*/
.legal {
  padding: 22vh var(--right) 14vh var(--left);
}

.legal-head {
  max-width: 52rem;
  margin-bottom: 8vh;
}

.legal-summary {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.legal-summary li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--soft-2);
}

.legal-summary i {
  color: var(--red-bright);
}

/* numbered like the chapters, with the line on top */
.legal-section {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0 24px;
  max-width: 58rem;
  padding: 34px 0 38px;
  border-top: 1px solid var(--line);
}

.legal-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  line-height: 1.1;
  color: var(--red-bright);
}

.legal-section h2 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  line-height: 1.1;
}

.legal-section p {
  max-width: 44rem;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--soft);
}

.legal-section a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-section a:hover {
  color: var(--red-bright);
}

@media (max-width: 1100px) {
  .legal {
    padding-right: var(--gutter);
  }
}

@media (max-width: 640px) {
  .legal {
    padding-top: 16vh;
  }

  .legal-section {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/*============== Page not found (404.html) ==========*/
.lost {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 40px 70px;
  padding: 140px var(--right) 80px var(--left);
}

/* the egg sits on the big number, with a soft red light under it */
.lost-art {
  position: relative;
  display: grid;
  place-items: center;
}

.lost-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(9rem, 22vw, 19rem);
  line-height: .8;
  color: var(--red-bright);
  opacity: .9;
}

.lost-egg {
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: 120px;
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 30px rgba(229, 20, 46, .45));
  animation: lost-wobble 3.2s ease-in-out infinite;
  transform-origin: 50% 100%;
}

@keyframes lost-wobble {

  0%,
  70%,
  100% {
    transform: translateX(-50%) rotate(0);
  }

  76% {
    transform: translateX(-50%) rotate(-5deg);
  }

  82% {
    transform: translateX(-50%) rotate(4deg);
  }

  88% {
    transform: translateX(-50%) rotate(-2deg);
  }
}

.lost-copy h1 {
  margin: 18px 0 34px;
  max-width: 14em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 1;
}

.lost-home {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 999px;
  background-color: var(--red);
  font-weight: 500;
  transition: background-color 200ms, transform 200ms;
}

.lost-home:hover {
  background-color: var(--red-bright);
  transform: translateY(-2px);
}

@media (max-width: 1100px) {
  .lost {
    padding-right: var(--gutter);
  }
}

@media (max-width: 900px) {
  .lost {
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .lost-num {
    font-size: 11rem;
  }

  .lost-egg {
    width: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lost-egg {
    animation: none;
  }
}

/*============== Text on the brand red ==========*/
/* it keeps its light colour in both themes */
.btn-ghost:hover,
.voice-btn-icon,
.stage-play-icon,
.msg.customer,
.send,
.bubble.winner b,
.lost-home {
  color: var(--on-red);
}

/*============== Particle background ==========*/
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
