/* ==========================================================================
   tvbeat.com

   Plain CSS, no build step: edit this file and deploy.

   1. Fonts and tokens
   2. Base
   3. Layout helpers
   4. Buttons and links
   5. Header and navigation
   6. Hero (home) and page hero (inner pages)
   7. Home sections
   8. How we do it
   9. About
   10. Legal pages
   11. Call to action and footer
   12. Motion
   ========================================================================== */

/* 1. Fonts and tokens ---------------------------------------------------- */

@font-face {
  font-family: "Overpass2";
  src: url("../fonts/overpass2-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  ascent-override: 106.2%;
  descent-override: 37.8%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Overpass2";
  src: url("../fonts/overpass2-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  ascent-override: 106.2%;
  descent-override: 37.8%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Overpass2";
  src: url("../fonts/overpass2-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  ascent-override: 106.2%;
  descent-override: 37.8%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Overpass2";
  src: url("../fonts/overpass2-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  ascent-override: 106.2%;
  descent-override: 37.8%;
  line-gap-override: 0%;
}

:root {
  /* Brand */
  --blue: #2c37f1;
  --blue-deep: #252fcc;
  --indigo: #14175c;
  --violet: #be2cf1;
  --pink: #ffb5f7;
  --yellow: #fdd82d;
  --tint: #eff0ff;
  --tint-strong: #e4e6ff;

  /* Neutrals, tinted towards the brand blue */
  --ink: #1c1b1f;
  --text: #43515f;
  --muted: #646877;
  --line: #e1e2ee;
  --paper: #fdfdff;
  --surface: #f6f6fc;
  --on-blue: #f8f8ff;
  --on-blue-soft: rgb(248 248 255 / 0.84);
  --on-blue-line: rgb(248 248 255 / 0.18);

  /* Type */
  --font: "Overpass2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-display: clamp(2.75rem, 5.2vw + 1rem, 5.25rem);
  --text-h1: clamp(2.5rem, 4vw + 1rem, 4.25rem);
  --text-h2: clamp(2rem, 2.4vw + 1.25rem, 3.125rem);
  --text-h3: 1.375rem;
  --text-lead: clamp(1.125rem, 0.5vw + 1rem, 1.3125rem);
  --text-body: 1.0625rem;
  --text-small: 0.9375rem;

  /* Space */
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --max: 75rem;
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --header-h: 4.5rem;

  /* Shape and motion */
  --radius-sm: 0.75rem;
  --radius: 1.25rem;
  --radius-lg: 1.75rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. Base ---------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h2 {
  font-size: var(--text-h2);
}

h3 {
  font-size: var(--text-h3);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

p,
ul,
ol,
dl,
dd,
figure,
address {
  margin: 0;
}

p {
  text-wrap: pretty;
}

address {
  font-style: normal;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--blue-deep);
}

strong {
  font-weight: 700;
  color: var(--ink);
}

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

::selection {
  background: var(--blue);
  color: var(--on-blue);
}

/* 3. Layout helpers ------------------------------------------------------ */

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

.section--tint {
  background: var(--surface);
}

.lead {
  font-size: var(--text-lead);
  line-height: 1.55;
}

.list-plain {
  list-style: none;
  padding: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Sections with a brand-coloured or dark background */
.on-blue {
  color: var(--on-blue-soft);
}

.on-blue h1,
.on-blue h2,
.on-blue h3,
.on-blue strong {
  color: var(--on-blue);
}

.on-blue a {
  color: var(--on-blue);
}

.on-blue :focus-visible {
  outline-color: var(--yellow);
}

.on-blue ::selection {
  background: var(--on-blue);
  color: var(--blue);
}

/* Light type on a dark ground reads thinner: give it a little more air */
.on-blue p,
.on-blue li,
.on-blue dd {
  letter-spacing: 0.005em;
}

/* 4. Buttons and links --------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.875rem 1.625rem 0.75rem; /* Overpass sits high: trim the bottom */
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

.on-blue .btn--light {
  background: var(--on-blue);
  color: var(--blue);
}

.on-blue .btn--light:hover {
  background: var(--tint-strong);
  color: var(--blue-deep);
}

.on-blue .btn--ghost {
  border-color: rgb(248 248 255 / 0.5);
  color: var(--on-blue);
}

.on-blue .btn--ghost:hover {
  border-color: var(--on-blue);
  background: rgb(248 248 255 / 0.1);
}

.btn--sm {
  min-height: 2.75rem;
  padding: 0.625rem 1.125rem 0.5rem;
  font-size: var(--text-small);
}

.btn--lg {
  min-height: 3.75rem;
  padding-inline: 2.25rem;
  font-size: 1.1875rem;
}

.btn svg {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: -0.125rem;
  transition: transform 0.25s var(--ease-out);
}

.btn:hover svg {
  transform: translateX(3px);
}

/* 5. Header and navigation ----------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: var(--blue);
  transition: box-shadow 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

/* At the top of the page the header lets the hero show through */
.js .site-header:not(.is-scrolled):not(.is-open) {
  background: transparent;
}

.site-header.is-scrolled {
  box-shadow:
    0 1px 0 var(--on-blue-line),
    0 16px 32px -20px rgb(13 16 80 / 0.7);
}

/* Frosted glass once the page has scrolled; solid again while the menu is open */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.is-scrolled:not(.is-open) {
    background: rgb(44 55 241 / 0.8);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    backdrop-filter: blur(18px) saturate(170%);
    box-shadow:
      inset 0 -1px 0 rgb(255 255 255 / 0.18),
      0 16px 32px -20px rgb(13 16 80 / 0.55);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  flex: none;
}

.brand img {
  width: 9.25rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.125rem 0.875rem 0;
  border-radius: 0.5rem;
  color: var(--on-blue);
  font-size: var(--text-small);
  text-decoration: none;
  transition: background-color 0.2s var(--ease-out);
}

.site-nav li a:hover {
  background: rgb(248 248 255 / 0.12);
}

.site-nav li a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.5em;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: none;
  color: var(--on-blue);
  cursor: pointer;
}

.nav-toggle span[aria-hidden] {
  position: absolute;
  left: 0.6875rem;
  width: 1.375rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out);
}

.nav-toggle span[aria-hidden]:nth-child(1) {
  top: 1rem;
}

.nav-toggle span[aria-hidden]:nth-child(2) {
  top: 1.625rem;
}

.is-open .nav-toggle span[aria-hidden]:nth-child(1) {
  transform: translateY(0.3125rem) rotate(45deg);
}

.is-open .nav-toggle span[aria-hidden]:nth-child(2) {
  transform: translateY(-0.3125rem) rotate(-45deg);
}

@media (max-width: 53.99rem) {
  :root {
    --header-h: 4rem;
  }

  .brand img {
    width: 8rem;
  }

  /* Without JavaScript the header keeps only the logo and the demo button;
     every link is also in the footer. */
  .site-nav ul {
    display: none;
  }

  .js .nav-toggle {
    display: block;
  }

  .js .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    padding: 0.5rem var(--gutter) 1.75rem;
    overflow-y: auto;
    background: var(--blue);
    box-shadow: 0 24px 32px -24px rgb(13 16 80 / 0.7);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition:
      opacity 0.2s var(--ease-out),
      transform 0.3s var(--ease-out),
      visibility 0s 0.3s;
  }

  .js .is-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }

  .js .site-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .js .site-nav li a {
    display: flex;
    min-height: 3.5rem;
    padding-inline: 0;
    border-bottom: 1px solid var(--on-blue-line);
    border-radius: 0;
    font-size: 1.25rem;
  }

  .js .site-nav li a:hover {
    background: none;
  }

  .js .site-nav .btn {
    min-height: 3.25rem;
    font-size: 1.0625rem;
  }
}

/* 6. Hero (home) and page hero (inner pages) ------------------------------ */

.hero,
.page-hero,
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--blue);
}

/* Purple glow in the lower right, as in the brand gradient */
.hero,
.page-hero,
.cta {
  background-image:
    radial-gradient(38% 46% at 88% 108%, rgb(255 139 240 / 0.75) 0%, rgb(255 139 240 / 0) 100%),
    radial-gradient(70% 85% at 100% 100%, var(--violet) 0%, rgb(190 44 241 / 0) 70%);
}

/* Dot grid, fading out from the upper right */
.hero::before,
.page-hero::before,
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgb(248 248 255 / 0.42) 1.5px, transparent 2.1px);
  background-size: 2.375rem 2.375rem;
  background-position: right 0.75rem top 0.5rem;
  -webkit-mask-image: radial-gradient(56% 78% at 100% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(56% 78% at 100% 0%, #000 25%, transparent 78%);
}

/* Film grain over the gradient */
.hero::after,
.page-hero::after,
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='.33 .33 .33 0 0 .33 .33 .33 0 0 .33 .33 .33 0 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2.4' intercept='-.7'/%3E%3CfeFuncG type='linear' slope='2.4' intercept='-.7'/%3E%3CfeFuncB type='linear' slope='2.4' intercept='-.7'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
}

.hero {
  padding-top: calc(var(--header-h) + clamp(3.5rem, 7vw, 6.5rem));
  padding-bottom: clamp(4rem, 8vw, 7.5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero h1 {
  font-size: var(--text-display);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero h1 span {
  display: block;
  width: fit-content;
  padding-right: 0.06em; /* keeps the last glyph inside the clipped gradient */
  color: var(--pink);
  background: linear-gradient(90deg, #ffa4f6 0%, #c78cff 50%, #7bb8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lead {
  max-width: 34rem;
  margin-top: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--on-blue);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(2rem, 3vw, 2.5rem);
}

.hero__note {
  max-width: 30rem;
  margin-top: 1.5rem;
  font-size: var(--text-small);
  line-height: 1.5;
}

/* Signals flowing into one node */
.hero {
  overflow: clip;
}

.net {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.net__halo,
.net__glow,
.net__ring {
  transform-box: fill-box;
  transform-origin: center;
}

.net__ring {
  opacity: 0;
}

@media (min-width: 60rem) {
  .net {
    width: 116%;
    max-width: none;
    margin: -6% -8%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .net__flow {
    display: none;
  }
}

/* Product illustration in a floating panel */
.shot {
  padding: clamp(0.75rem, 2vw, 1.5rem);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow:
    0 0 0 1px rgb(248 248 255 / 0.5),
    0 2.5rem 5rem -2rem rgb(13 16 80 / 0.65);
}

.shot img {
  width: 100%;
}

.shot--light {
  margin-top: 2.5rem;
  box-shadow:
    0 0 0 1px var(--line),
    0 2rem 4rem -2.5rem rgb(44 55 241 / 0.35);
}

.page-hero {
  padding-top: calc(var(--header-h) + clamp(3.5rem, 7vw, 6rem));
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.page-hero h1 {
  max-width: 18ch;
}

.page-hero .lead {
  max-width: 40rem;
  margin-top: clamp(1.25rem, 2vw, 1.75rem);
}

/* Slim variant used on the legal pages: just a band behind the header */
.page-hero--slim {
  padding: var(--header-h) 0 0;
  height: calc(var(--header-h) + 0.5rem);
}

@media (max-width: 59.99rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__visual {
    max-width: 34rem;
  }
}

@media (max-width: 30rem) {
  .hero__actions .btn {
    flex: 1 1 100%;
  }
}

/* 7. Home sections ------------------------------------------------------- */

/* Client logos */
.logos {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.logos p {
  margin-bottom: 2.25rem;
  color: var(--muted);
  font-size: var(--text-small);
}

.logos p {
  text-align: center;
}

.logos ul {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: center;
  gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
}

.logos li {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Every logo sits in the same box, so wide and square marks carry equal weight */
.logos img {
  width: 100%;
  max-width: 6.75rem;
  height: 2.25rem;
  object-fit: contain;
}

@media (max-width: 68rem) {
  .logos ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 30rem) {
  .logos ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* What the platform does */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.split__head {
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
}

.split__head p {
  margin-top: 1.5rem;
}

.split__head .btn {
  margin-top: 2rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 3vw, 3rem);
}

.features li {
  padding-block: 1.625rem 1.875rem;
  border-top: 1px solid var(--line);
}

.features h3 {
  margin-bottom: 0.5rem;
}

.features p {
  line-height: 1.6;
}

/* Leadership: a narrower intro leaves more room for the portraits */
.split--team {
  grid-template-columns: minmax(0, 9fr) minmax(0, 15fr);
  gap: clamp(2rem, 4vw, 4rem);
}

@media (max-width: 59.99rem) {
  .split,
  .split--team {
    grid-template-columns: minmax(0, 1fr);
  }

  .split__head {
    position: static;
  }
}

@media (max-width: 36rem) {
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Scale figures */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
}

.stats div {
  display: flex;
  flex-direction: column;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.stats dd {
  order: -1;
  color: var(--blue);
  font-size: clamp(2.75rem, 4vw + 1rem, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.stats dt {
  margin-top: 0.5rem;
  color: var(--text);
}

@media (max-width: 48rem) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 8. How we do it -------------------------------------------------------- */

.phase {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}

.phase:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.phase:last-of-type {
  padding-bottom: 0;
}

/* The three steps hang off one rail that fills as you scroll */
.journey {
  --rail: clamp(2.75rem, 6vw, 4.5rem);
  position: relative;
  padding-left: var(--rail);
}

.journey__rail {
  position: absolute;
  top: 0.25rem;
  bottom: 0;
  left: calc(1rem - 1px);
  width: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.journey__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--blue), var(--violet));
  transform-origin: 0 0;
}

.js .journey__fill {
  transform: scaleY(var(--p, 0));
}

.phase {
  position: relative;
}

.phase__node {
  position: absolute;
  top: clamp(3.5rem, 7vw, 6rem);
  left: calc(-1 * var(--rail));
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-top: -0.25rem;
  padding-top: 0.125rem;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0.4rem rgb(44 55 241 / 0.14);
  color: #fff;
  font-size: var(--text-small);
  font-weight: 700;
  transition: background 0.4s, border-color 0.4s, color 0.4s, box-shadow 0.4s;
}

.phase:first-of-type .phase__node {
  top: 0;
}

.js .phase:not(.is-active) .phase__node {
  border-color: var(--line);
  background: var(--paper);
  box-shadow: 0 0 0 0.4rem var(--paper);
  color: var(--muted);
}

/* Dotted link between the two parts of a step */
.pillar + .pillar {
  position: relative;
}

.pillar + .pillar::before {
  content: "";
  position: absolute;
  top: calc(-1 * clamp(2.5rem, 5vw, 4rem) + 0.5rem);
  left: calc(clamp(6.5rem, 14vw, 10rem) / 2 - 1px);
  width: 2px;
  height: calc(clamp(2.5rem, 5vw, 4rem) - 1rem);
  background: repeating-linear-gradient(to bottom, #5c64f1 0 4px, transparent 4px 10px);
}

.phase__head {
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
  align-self: start;
}

.phase__step {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--blue);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.phase__head p {
  margin-top: 1rem;
}

.pillars {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.pillar {
  display: grid;
  grid-template-columns: clamp(6.5rem, 14vw, 10rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.pillar img {
  width: 100%;
  border-radius: var(--radius);
  background: var(--surface);
}

.pillar h3 {
  margin-bottom: 0.75rem;
  font-size: 1.625rem;
  letter-spacing: -0.025em;
}

.pillar p {
  max-width: 36rem;
}

@media (max-width: 59.99rem) {
  .phase {
    grid-template-columns: minmax(0, 1fr);
  }

  .phase__head {
    position: static;
  }
}

@media (max-width: 30rem) {
  .pillar .icon {
    width: 7rem;
  }

  .pillar + .pillar::before {
    left: calc(3.5rem - 1px);
  }

  .pillar {
    grid-template-columns: minmax(0, 1fr);
  }

  .pillar img {
    width: 7.5rem;
  }
}

/* 9. About --------------------------------------------------------------- */

.mission {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}

.mission h2 {
  font-size: clamp(1.75rem, 2vw + 1.125rem, 2.625rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
}

.team img {
  width: 100%;
  max-width: 18.5rem;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--tint);
}

.team h3 {
  margin-top: 1.25rem;
}

.team p {
  color: var(--muted);
  font-size: var(--text-small);
}

.values {
  position: relative;
  background: var(--blue) url("../images/graphics/bar-mesh.svg") center / cover no-repeat;
}

.values__head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.values__head p {
  margin-top: 1.25rem;
}

.values__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 6vw, 6rem);
}

.values__list li {
  padding-block: 1.75rem 2.25rem;
  border-top: 1px solid rgb(248 248 255 / 0.3);
}

.values__list h3 {
  margin-bottom: 0.625rem;
  font-size: 1.625rem;
  letter-spacing: -0.025em;
}

.values__list p {
  max-width: 30rem;
}

.investors {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.investors ul {
  display: grid;
  grid-template-columns: repeat(4, auto);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.investors img {
  height: 2.75rem;
  width: auto;
}

.offices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.offices img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

.offices h3 {
  margin: 1.5rem 0 0.5rem;
}

.offices address {
  font-size: var(--text-small);
  line-height: 1.6;
}

@media (max-width: 59.99rem) {
  .mission,
  .investors {
    grid-template-columns: minmax(0, 1fr);
  }

  .investors ul {
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    gap: 2rem 3.5rem;
  }
}

@media (max-width: 44rem) {
  .team {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .team li {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    column-gap: 1.25rem;
    align-items: center;
  }

  .team img {
    grid-row: span 2;
    border-radius: var(--radius-sm);
  }

  .team h3 {
    align-self: end;
    margin-top: 0;
  }

  .team p {
    align-self: start;
  }

  .values__list,
  .offices {
    grid-template-columns: minmax(0, 1fr);
  }

  .offices img {
    aspect-ratio: 2 / 1;
  }
}

/* 10. Legal pages -------------------------------------------------------- */

.legal-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 44rem);
  gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(3rem, 6vw, 5rem) var(--section);
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 5rem);
  overflow-y: auto;
  font-size: var(--text-small);
}

.toc p {
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.toc a {
  display: block;
  padding: 0.4375rem 0 0.3125rem 1rem;
  color: var(--text);
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover {
  color: var(--blue);
}

.legal h1 {
  font-size: clamp(2rem, 2.4vw + 1.25rem, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.legal h2 {
  margin-top: 3rem;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.legal p,
.legal ul,
.legal ol {
  margin-top: 1rem;
  line-height: 1.7;
}

.legal ul,
.legal ol {
  padding-left: 1.25rem;
}

.legal li + li {
  margin-top: 0.5rem;
}

.legal h1 + p {
  color: var(--muted);
}

.legal .table-container {
  margin-top: 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.legal table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: var(--text-small);
}

.legal th,
.legal td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--surface);
  color: var(--ink);
}

.legal tr:last-child td {
  border-bottom: 0;
}

.legal th p,
.legal td p {
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 59.99rem) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    display: none;
  }
}

/* 11. Call to action and footer ------------------------------------------ */

.cta {
  padding-block: clamp(5rem, 10vw, 9rem);
  text-align: center;
}

/* Brand waves across the band, kept faint; no dot grid here */
.cta::before {
  background: url("../images/graphics/waves-light-blue.svg") center 55% / max(100%, 70rem) auto no-repeat;
  opacity: 0.16;
  -webkit-mask-image: none;
  mask-image: none;
}

.cta h2 {
  max-width: 18ch;
  margin-inline: auto;
  font-size: clamp(2.25rem, 3.6vw + 1.125rem, 4rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.cta .lead {
  max-width: 36rem;
  margin: 1.5rem auto 0;
  color: var(--on-blue);
}

.cta .btn {
  margin-top: 2.5rem;
}

.site-footer {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
  background: var(--ink) url("../images/tvbeat-bars.svg") right bottom / min(41rem, 80vw) auto no-repeat;
  color: #b4b5c1;
  font-size: var(--text-small);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr));
  gap: 2.5rem clamp(1.5rem, 4vw, 4rem);
}

.site-footer__brand img {
  width: 9.25rem;
}

.site-footer__brand p {
  max-width: 20rem;
  margin-top: 1.25rem;
}

.site-footer h2 {
  margin-bottom: 0.75rem;
  color: var(--on-blue);
  font-size: var(--text-small);
  letter-spacing: 0;
  line-height: 1.65;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: #d5d6e0;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--on-blue);
  text-decoration: underline;
}

.site-footer :focus-visible {
  outline-color: var(--yellow);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgb(248 248 255 / 0.14);
  color: #a3a5b2;
}

@media (max-width: 48rem) {
  .site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 26rem) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 12. Motion ------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  /* Hero network: the core breathes, rings ripple out, nodes twinkle */
  .hero .net {
    animation: fade-in 1.4s var(--ease-out) 0.15s both;
  }

  .net__halo,
  .net__glow {
    animation: net-breathe 4.5s ease-in-out infinite alternate;
  }

  .net__ring {
    animation: net-ring 3.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
  }

  .net__ring--2 {
    animation-delay: -1.8s;
  }

  .net__nodes > g {
    animation: net-twinkle var(--t) ease-in-out var(--d) infinite alternate;
  }

  .hero__copy > * {
    animation: rise-in 0.8s var(--ease-out) both;
  }

  .hero__copy > :nth-child(2) {
    animation-delay: 80ms;
  }

  .hero__copy > :nth-child(3) {
    animation-delay: 160ms;
  }

  .hero__copy > :nth-child(4) {
    animation-delay: 240ms;
  }

  /* Scroll reveal, only when JavaScript is running */
  .js .reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition:
      opacity 0.7s var(--ease-out),
      transform 0.7s var(--ease-out);
  }

  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@media print {
  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .site-header,
  .cta,
  .toc {
    display: none;
  }
}

/* 13. Animated icons ------------------------------------------------------ */

.icon {
  display: block;
  width: 4.25rem;
  height: 4.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid #e2e3eb;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.875rem 1.5rem -1rem rgb(44 55 241 / 0.32);
}

.icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.icon rect,
.icon circle,
.icon g {
  transform-box: fill-box;
  transform-origin: center;
}

.icon .bar {
  transform-origin: 50% 100%;
}

.icon .trend {
  stroke-dasharray: 1;
}

.ic-currency g {
  color: #5c64f1;
}

.ic-currency rect {
  fill: #eff0ff;
}

.ic-currency g:first-child {
  color: #fff;
}

.ic-currency g:first-child rect {
  fill: #2c37f1;
}

.ic-linear rect {
  fill: var(--c);
}

.ic-linear .playhead {
  opacity: 0;
}

.icon .flow {
  stroke-dasharray: 3 3;
}

.icon .ping {
  opacity: 0;
}

.ic-configure .tog rect {
  fill: var(--on, #2c37f1);
}

.ic-configure .tog circle {
  transform: translateX(10px);
}

/* Larger tiles beside the How pillars */
.pillar .icon {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin: 0;
  border-radius: var(--radius);
}

@media (max-width: 30rem) {
  .pillar .icon {
    width: 6rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .icon .flow {
    animation: ic-flow 0.9s linear infinite;
  }

  .icon .pulse {
    animation: ic-pulse 1.8s ease-in-out infinite alternate;
  }

  .icon .step {
    animation: ic-step 4.8s ease-out infinite backwards;
    animation-delay: calc(var(--i) * 0.7s);
  }

  .icon .wander {
    animation: ic-wander var(--t) ease-in-out infinite;
  }

  .icon .ping {
    animation: ic-ping 2.4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
  }

  .ic-configure .tog rect {
    animation: ic-tog-bg 5s ease-in-out infinite backwards;
    animation-delay: calc(var(--i) * 0.5s);
  }

  .ic-configure .tog circle {
    animation: ic-tog-knob 5s var(--ease-out, ease-out) infinite backwards;
    animation-delay: calc(var(--i) * 0.5s);
  }

  .pillar + .pillar::before {
    animation: link-flow 0.8s linear infinite;
  }

  .icon .trend {
    animation: ic-draw 5s ease-in-out infinite;
  }

  .icon .head,
  .icon .show {
    animation: ic-show 5s ease-in-out infinite;
  }

  .icon .from {
    animation: ic-from 5s var(--ease-out, ease-out) infinite;
  }

  .ic-automate .step {
    animation: ic-step 4.8s ease-out infinite backwards;
    animation-delay: calc(var(--i) * 0.7s);
  }

  .ic-currency g {
    animation: ic-on-fg 4.8s linear infinite;
    animation-delay: calc((var(--i) - 4) * 1.2s);
  }

  .ic-currency rect {
    animation: ic-on-bg 4.8s linear infinite;
    animation-delay: calc((var(--i) - 4) * 1.2s);
  }

  .ic-linear rect {
    animation: ic-open 5s ease-out infinite backwards;
    animation-delay: var(--d);
  }

  .ic-linear .playhead {
    animation: ic-sweep 5s linear infinite;
  }

  .ic-yield .bar {
    animation: ic-grow 5s var(--ease-out, ease-out) infinite backwards;
    animation-delay: calc(var(--i) * 0.1s);
  }

  .ic-govern .flow {
    animation: ic-flow 0.9s linear infinite;
  }

  .ic-govern .gate {
    animation: ic-pulse 1.8s ease-in-out infinite alternate;
  }
}

@keyframes ic-grow {
  0%, 8% { transform: scaleY(0.3); }
  42%, 88% { transform: none; }
  100% { transform: scaleY(0.3); }
}

@keyframes ic-draw {
  0%, 12% { stroke-dashoffset: 1; }
  48%, 88% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}

@keyframes ic-show {
  0%, 38% { opacity: 0; }
  50%, 88% { opacity: 1; }
  96%, 100% { opacity: 0; }
}

@keyframes ic-wander {
  0%, 100% { transform: none; }
  35% { transform: translateX(var(--a)); }
  70% { transform: translateX(var(--b)); }
}

@keyframes ic-from {
  0%, 15% { transform: translate(var(--fx), var(--fy)); }
  45%, 88% { transform: none; }
  100% { transform: translate(var(--fx), var(--fy)); }
}

@keyframes ic-step {
  0% { opacity: 0; transform: scale(0.6); }
  10%, 72% { opacity: 1; transform: none; }
  82%, 100% { opacity: 0; transform: none; }
}

@keyframes ic-on-fg {
  0%, 20% { color: #fff; }
  25%, 95% { color: #5c64f1; }
  100% { color: #fff; }
}

@keyframes ic-on-bg {
  0%, 20% { fill: #2c37f1; }
  25%, 95% { fill: #eff0ff; }
  100% { fill: #2c37f1; }
}

@keyframes ic-open {
  0% { fill: #e6e7ee; }
  6%, 80% { fill: var(--c); }
  90%, 100% { fill: #e6e7ee; }
}

@keyframes ic-sweep {
  0% { opacity: 0; transform: none; }
  4% { opacity: 1; }
  60% { opacity: 1; transform: translateX(44px); }
  66%, 100% { opacity: 0; transform: translateX(44px); }
}

@keyframes ic-flow {
  to { stroke-dashoffset: -6; }
}

@keyframes ic-pulse {
  to { transform: scale(1.07); }
}

@keyframes net-breathe {
  from { transform: scale(0.92); opacity: 0.8; }
  to { transform: scale(1.08); opacity: 1; }
}

@keyframes net-ring {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(4.2); opacity: 0; }
}

@keyframes net-twinkle {
  from { opacity: var(--lo, 0.45); }
  to { opacity: 1; }
}

@keyframes ic-ping {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.8); opacity: 0; }
}

@keyframes ic-tog-bg {
  0%, 12% { fill: #c6c6ce; }
  26%, 86% { fill: var(--on, #2c37f1); }
  100% { fill: #c6c6ce; }
}

@keyframes ic-tog-knob {
  0%, 12% { transform: none; }
  26%, 86% { transform: translateX(10px); }
  100% { transform: none; }
}

@keyframes link-flow {
  to { background-position: 0 10px; }
}
