/*
  brightpulse.ai

  Drawn the way the logo is: heavy black Lexend on white and the logo's
  blue-to-violet line. The line ends the opening sentence with a single beat,
  runs through the steps of each product, carries Taneleer's drawing and lies
  flat on the 404 page. The products are explained by what they do, in small
  drawings of cards and labels; only the two doors in the hero wear the
  products' own brands.
*/

/* ------------------------------------------------------------- fonts */

@font-face {
  font-family: 'Lexend';
  src: url('/fonts/lexend-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Lexend';
  src: url('/fonts/lexend-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Literata';
  src: url('/fonts/literata-latin.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Literata';
  src: url('/fonts/literata-latin-ext.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------- tokens */

:root {
  color-scheme: light;

  /* Bright Pulse, from its logo: black, white and the mark's gradient. */
  --paper: #ffffff;
  --ink: #000000;
  --ink-soft: #4d4d5c;
  --blue: #258be3;
  --violet: #4438f8;
  --accent: var(--violet);
  --line: linear-gradient(90deg, var(--blue), var(--violet));
  --night: #0b0a24;
  --night-ink: #ffffff;
  --night-text: #dcdaf5;
  --night-soft: #b4b2dd;
  --night-accent: #9db8ff;

  /* GEO Booster, from its logo. */
  --geo-navy: #0c1220;
  --geo-creme: #f4f2ea;
  --geo-jade: #49a080;

  /* Factle, from its logo. */
  --factle-paper: #f6f6f3;
  --factle-ink: #1c1b18;

  --card: #ffffff;
  --tint: #f3f3ff;
  --todo: #fff0a0;

  /* Type. Lexend is the wordmark's typeface; Literata sets the text. */
  --sans: 'Lexend', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Literata', Georgia, 'Times New Roman', serif;

  /* A perfect-fourth scale, fluid between a 360px and a 1440px window. */
  --step--1: clamp(0.84rem, 0.81rem + 0.13vw, 0.94rem);
  --step-0: clamp(1.06rem, 1.01rem + 0.23vw, 1.19rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.46vw, 1.56rem);
  --step-2: clamp(1.5rem, 1.31rem + 0.83vw, 2.06rem);
  --step-3: clamp(1.88rem, 1.53rem + 1.53vw, 2.94rem);
  --step-4: clamp(2.25rem, 1.71rem + 2.36vw, 3.88rem);
  --step-5: clamp(2.5rem, 1.6rem + 4vw, 5.75rem);

  /* Layout. */
  --gutter: clamp(1rem, 0.4rem + 3vw, 4rem);
  --measure: 34rem;
  --section: clamp(5rem, 3rem + 8vw, 11rem);
  --room: clamp(4.5rem, 3rem + 6vw, 9rem);
  --radius: clamp(1.25rem, 1rem + 1vw, 2rem);

  /* The line: the logo's stroke, at a weight that suits each place. */
  --stroke: clamp(0.5rem, 0.36rem + 0.6vw, 0.875rem);
}

/* ------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
  font-kerning: normal;
  hanging-punctuation: first;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

main:focus {
  outline: none;
}

h1,
h2,
h3,
h4,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--sans);
  text-wrap: balance;
}

p,
dd {
  text-wrap: pretty;
}

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

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: max(2px, 0.09em);
  text-underline-offset: 0.22em;
  text-decoration-skip-ink: auto;
}

@media (hover: hover) {
  a {
    transition: text-decoration-thickness 140ms ease-out, text-underline-offset 140ms ease-out;
  }

  a:hover {
    text-decoration-thickness: 0.22em;
    text-underline-offset: 0.14em;
  }
}

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

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

.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: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 2;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font: 500 var(--step--1) / 1.2 var(--sans);
  text-decoration: none;
  border-radius: 0.4rem;
  transform: translateY(-200%);
}

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

/* A value in src/content.js that still has to be filled in. Only appears in
   preview builds; the production build refuses to ship it. */
mark.todo {
  background: var(--todo);
  color: #000;
  font-family: var(--sans);
  font-size: 0.8em;
  font-weight: 500;
  padding: 0.05em 0.35em;
  border-radius: 0.25em;
  white-space: nowrap;
}

mark.todo::before {
  content: 'To fill in: ';
  font-weight: 400;
}

/* ------------------------------------------------------------- header and footer */

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  padding-block: clamp(1rem, 0.7rem + 1.2vw, 2rem);
}

.brand {
  display: block;
  padding-block: 0.5rem;
}

.brand img {
  height: clamp(1.15rem, 0.95rem + 0.7vw, 1.55rem);
  width: auto;
}

.site-nav ul,
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1.25rem, 0.8rem + 1.5vw, 2.25rem);
}

.site-nav a,
.footer-nav a {
  display: inline-block;
  padding-block: 0.7rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--step--1);
  line-height: 1.2;
  text-decoration-color: transparent;
}

.site-nav a:hover,
.footer-nav a:hover {
  text-decoration-color: var(--accent);
}

.site-footer {
  margin-top: var(--section);
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 2rem;
  padding-block: 1.5rem 2rem;
}

.footer-nav a {
  color: var(--ink);
}

/* ------------------------------------------------------------- shared section parts */

.section-head h2,
.seen-inner h2 {
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section-head p {
  margin-top: 0.75rem;
  max-width: var(--measure);
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------- hero */

.hero {
  padding-block: clamp(3.5rem, 2rem + 6vw, 8rem) clamp(4rem, 3rem + 5vw, 8rem);
  overflow-x: hidden;
  overflow-x: clip;
}

.hero-title {
  max-width: 15em;
  font-size: var(--step-5);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

/* The last word of a heading and the line after it never part. */
.line-end {
  white-space: nowrap;
}

/*
  The beat is the logo's mark, set in the logo's own units. The wordmark is
  Lexend at 204.2 units, so one unit is 1em / 204.2 next to Lexend: the mark,
  its stroke and its distance from the text keep the logo's proportions at any
  size. The SVG's viewBox is 715 396 449 360; the flat part of the line runs at
  y = 609, 30 units below the baseline of the text, so the sentence seems to
  rest on the line.
*/
.beat {
  --u: calc(1em / 204.2);
  position: relative;
  display: inline-block;
  width: calc(449 * var(--u));
  height: calc(360 * var(--u));
  margin-left: calc(74.5 * var(--u));
  vertical-align: calc(-177 * var(--u));
}

.beat svg {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* The mark's right-hand tail runs on to the edge of the window. It starts
   under the centre of the mark's end cap and continues the logo's diagonal
   gradient: #4043f5 where the mark ends, full violet 80 units further on. */
.beat-tail {
  position: absolute;
  left: calc(416 * var(--u));
  top: calc(180.5 * var(--u));
  width: 100vw;
  height: calc(65 * var(--u));
  background: linear-gradient(90deg, #4043f5, var(--violet) calc(80 * var(--u)));
  transform-origin: 0 50%;
}

.hero-lede {
  display: grid;
  gap: 0.6em clamp(2rem, 1rem + 4vw, 5rem);
  max-width: 66rem;
  margin-top: clamp(2rem, 1.2rem + 3vw, 4rem);
  font-size: var(--step-1);
  line-height: 1.5;
}

.hero-lede p {
  max-width: 30rem;
}

@media (min-width: 52rem) {
  .hero-lede {
    grid-template-columns: 1fr 1fr;
  }
}

/* One orchestrated moment: the mark is drawn, then its tail runs out. */
@media (prefers-reduced-motion: no-preference) {
  .beat-rise,
  .beat-fall {
    stroke-dasharray: 1 2;
    stroke-dashoffset: 1.02;
    animation: beat-draw var(--duration) var(--delay) var(--easing) forwards;
  }

  .beat-rise {
    --duration: 520ms;
    --delay: 300ms;
    --easing: cubic-bezier(0.45, 0, 0.9, 0.6);
  }

  .beat-fall {
    --duration: 420ms;
    --delay: 820ms;
    --easing: linear;
  }

  .beat-tail {
    transform: scaleX(0);
    animation: beat-run 1400ms 1240ms cubic-bezier(0.15, 0.6, 0.25, 1) forwards;
  }
}

@keyframes beat-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes beat-run {
  to {
    transform: scaleX(1);
  }
}

/* Two doors into the product sections below, each in its own brand. */
.tiles {
  display: grid;
  gap: clamp(1rem, 0.5rem + 1.5vw, 1.5rem);
  margin-top: clamp(3rem, 2rem + 4vw, 5.5rem);
}

@media (min-width: 52rem) {
  .tiles {
    grid-template-columns: 1fr 1fr;
  }
}

.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  min-height: clamp(17rem, 13rem + 12vw, 24rem);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
}

.tile-logo img {
  height: clamp(1.7rem, 1.35rem + 1.1vw, 2.4rem);
  width: auto;
}

.tile-kind {
  max-width: 15rem;
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 500;
  line-height: 1.35;
}

.tile--geo {
  --focus: var(--geo-jade);
  background: var(--geo-navy);
  color: var(--geo-creme);
}


.tile--factle {
  --focus: var(--factle-ink);
  background: var(--factle-paper);
  color: var(--factle-ink);
}

.tile--factle .tile-logo img {
  height: clamp(2.4rem, 1.9rem + 1.6vw, 3.4rem);
}

.tile-mark {
  position: absolute;
  z-index: -1;
  right: -2%;
  bottom: -16%;
  height: 84%;
}

.tile-mark img {
  height: 100%;
  width: auto;
}

.tile-mark--geo {
  right: 4%;
  bottom: -20%;
  height: 86%;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile-mark {
    transition: transform 480ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .tile:hover .tile-mark {
    transform: rotate(-7deg) translateY(-0.5rem);
  }
}

/* ------------------------------------------------------------- product sections */

/* Shared by GEO Booster, Factle and Taneleer: name and what it is on the
   left, a few sentences and the website on the right. */
.product,
.engine {
  padding-block: var(--room);
}

.section-intro {
  display: grid;
  gap: 1.5rem 4rem;
  align-items: end;
}

@media (min-width: 60rem) {
  .section-intro {
    grid-template-columns: 5fr 7fr;
  }
}

.section-intro h2 {
  font-size: var(--step-4);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.section-kind {
  margin-top: 0.9rem;
  max-width: 22em;
  font-family: var(--sans);
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.3;
  color: var(--accent);
}

.section-text p:first-child {
  max-width: var(--measure);
}

.section-link {
  margin-top: 1.25rem;
  font-family: var(--sans);
  font-size: var(--step--1);
  line-height: 1.4;
  color: var(--ink-soft);
}

.section-link a {
  margin-left: 0.35em;
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--ink);
}

.section-note {
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.product--factle {
  background: var(--tint);
}

/* The steps of a product, each with a small drawing. On one row, the line of
   the logo runs through the drawings from the first step to the last. */
.steps {
  --art: 15rem;
  position: relative;
  display: grid;
  gap: 3.5rem clamp(2rem, 1rem + 3vw, 4rem);
  margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  counter-reset: step;
}

@media (min-width: 40rem) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  /* Drawings differ in height; a common height keeps the titles in line. */
  .step-art {
    min-height: 12rem;
  }
}

.step {
  counter-increment: step;
}

.step-art {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.step h3 {
  margin-top: 2rem;
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.step h3::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  vertical-align: 0.12em;
}

.step p {
  margin-top: 0.6rem;
  max-width: 22rem;
  color: var(--ink-soft);
}

/* Three steps fit on one row from 64rem, four from 80rem. */
@media (min-width: 64rem) {
  .steps--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps--3 .step-art {
    min-height: var(--art);
  }

  .steps--3::before {
    content: '';
  }
}

@media (min-width: 80rem) {
  .steps--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps--4 .step-art {
    min-height: var(--art);
  }

  .steps--4::before {
    content: '';
  }
}

.steps::before {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--art) / 2);
  height: var(--stroke);
  margin-top: calc(var(--stroke) / -2);
  border-radius: var(--stroke);
  background: var(--line);
}

/* The drawings: cards with an ink outline, words in Lexend, violet for
   what matters. */
.art {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.25;
}

.art-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.art--topics,
.claim,
.art--pages li,
.answer,
.art--stack,
.art--bubbles li {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 1rem;
}

.bars {
  display: inline-flex;
  gap: 0.35rem;
  vertical-align: middle;
}

.bars span {
  display: inline-block;
  width: 2.6rem;
  height: 0.5rem;
  border-radius: 0.25rem;
  background: color-mix(in srgb, var(--ink) 16%, transparent);
}

.bars span:nth-child(2) {
  width: 1.6rem;
}

/* Reads the business: the topics AI should be able to answer. */
.art--topics {
  width: min(100%, 15.5rem);
  padding: 0.85rem 1.1rem 0.4rem;
}

.art--topics ul {
  margin-top: 0.35rem;
}

.art--topics li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.5rem;
}

.art--topics li + li {
  border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}

.state {
  padding: 0.2rem 0.55rem;
  border-radius: 99rem;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1.5px solid var(--ink);
}

.state--differs {
  border-color: var(--violet);
  background: var(--violet);
  color: #fff;
}

.state--missing {
  border-style: dashed;
  border-color: var(--ink-soft);
  color: var(--ink-soft);
}

/* Finds the gaps: two sources that disagree. */
.art--conflict {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(100%, 15.5rem);
}

.claim {
  display: grid;
  gap: 0.2rem;
  width: 13rem;
  padding: 0.75rem 1rem;
}

.claim--other {
  margin-left: 2.25rem;
}

.claim-source {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.claim-sign {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin: -0.7rem 0 -0.7rem 5.5rem;
  border-radius: 50%;
  background: var(--violet);
}

.claim-sign svg {
  width: 1.3rem;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
}

/* Publishes the facts: an AI page, an FAQ and a blog post. */
.art--pages {
  position: relative;
  width: min(100%, 17rem);
  height: 11.5rem;
}

.art--pages li {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 7.6rem;
  height: 10rem;
  padding: 0.9rem 0.85rem;
}

.art--pages li:nth-child(1) {
  left: 0;
  top: 1.25rem;
  rotate: -6deg;
}

.art--pages li:nth-child(2) {
  left: 4.6rem;
  top: 0.6rem;
}

.art--pages li:nth-child(3) {
  left: 9.2rem;
  top: 1.25rem;
  rotate: 6deg;
}

.art--pages .bars {
  flex-direction: column;
  gap: 0.45rem;
}

.art--pages .bars span,
.art--pages .bars span:nth-child(2) {
  width: 100%;
}

.art--pages .bars span:last-child {
  width: 65%;
}

/* Checks the results: an answer that names the business, and visitors. */
.art--answer {
  width: min(100%, 15.5rem);
}

.answer {
  padding: 0.85rem 1.1rem 1rem;
  border-radius: 1.2rem 1.2rem 1.2rem 0.3rem;
}

.answer-text {
  margin-top: 0.55rem;
  line-height: 2;
}

.named {
  padding: 0.2rem 0.55rem;
  border-radius: 0.4rem;
  background: var(--violet);
  color: #fff;
  white-space: nowrap;
}

.trend {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.9rem;
  padding: 0.6rem 0.9rem;
  width: fit-content;
  border-radius: 99rem;
  background: var(--card);
  border: 2px solid var(--ink);
  font-size: 0.8rem;
}

.trend svg {
  width: 3rem;
  height: auto;
}

/* One knowledge base: a small stack of pages. */
.art--stack {
  width: min(100%, 15.5rem);
  padding: 0.4rem 1.2rem;
  box-shadow:
    0.55rem 0.55rem 0 -2px var(--card),
    0.55rem 0.55rem 0 0 var(--ink),
    1.1rem 1.1rem 0 -2px var(--card),
    1.1rem 1.1rem 0 0 var(--ink);
}

.art--stack li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-block: 0.8rem;
}

.art--stack li + li {
  border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}

.art--stack li::before {
  content: '';
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 0.2rem;
  background: var(--violet);
}

/* An MCP per subject. */
.art--pills {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

.art--pills li {
  padding: 0.7rem 1.2rem;
  border-radius: 99rem;
  background: var(--ink);
  color: var(--paper);
}

.art--pills li:nth-child(2) {
  margin-left: 2rem;
}

.art--pills li:nth-child(3) {
  margin-left: 1rem;
}

/* In Claude and ChatGPT. */
.art--bubbles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  font-size: var(--step-0);
}

.art--bubbles li {
  padding: 0.9rem 1.35rem;
  border-radius: 1.3rem 1.3rem 1.3rem 0.3rem;
}

.art--bubbles li:nth-child(2) {
  margin-left: 2.75rem;
  border-radius: 1.3rem 1.3rem 0.3rem 1.3rem;
}

/* ------------------------------------------------------------- Taneleer */

.engine {
  background: var(--night);
  color: var(--night-ink);
  border-top: var(--stroke) solid var(--violet);
  border-image: var(--line) 1;
  --focus: var(--night-accent);
}

.engine .section-kind {
  color: var(--night-accent);
}

.engine .section-text p:first-child {
  color: var(--night-text);
}

.engine-status {
  margin-top: 1.25rem;
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--night-soft);
}

.engine-figure {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
}

.diagram {
  width: 100%;
  height: auto;
  overflow: visible;
}

.d-stroke {
  fill: none;
  stroke-width: 10;
}

.d-engine {
  fill: rgba(68, 56, 248, 0.12);
}

.d-block {
  fill: none;
  stroke: var(--night-ink);
  stroke-width: 3;
}

.d-space {
  fill: var(--night);
  stroke: var(--night-soft);
  stroke-width: 2.5;
}

.d-page {
  fill: none;
  stroke: var(--night-ink);
  stroke-width: 2.5;
}

.d-page-line {
  fill: none;
  stroke: var(--night-soft);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.d-line {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
}

.diagram text {
  font-family: var(--sans);
  stroke: none;
}

.d-name {
  font-size: 22px;
  font-weight: 600;
  fill: var(--night-ink);
}

.d-name--small {
  font-size: 17px;
}

.d-title {
  font-size: 26px;
  font-weight: 700;
  fill: var(--night-ink);
}

.d-soft {
  font-size: 15px;
  font-weight: 400;
  fill: var(--night-soft);
}

.d-marker circle {
  fill: var(--violet);
  stroke: var(--night);
  stroke-width: 4;
}

.d-marker text {
  font-size: 16px;
  font-weight: 700;
  fill: #fff;
}

.diagram--tall {
  display: none;
}

@media (max-width: 40rem) {
  .diagram--wide {
    display: none;
  }

  .diagram--tall {
    display: block;
    max-width: 22rem;
    margin-inline: auto;
  }
}

/* What the engine does; the numbers match the markers in the drawing. */
.engine-does {
  display: grid;
  gap: 2rem clamp(2rem, 1rem + 3vw, 4rem);
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  counter-reset: does;
}

@media (min-width: 56rem) {
  .engine-does {
    grid-template-columns: repeat(3, 1fr);
  }
}

.engine-does li {
  counter-increment: does;
}

.engine-does h3 {
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.25;
}

.engine-does h3::before {
  content: counter(does);
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  vertical-align: 0.12em;
}

.engine-does p {
  margin-top: 0.5rem;
  max-width: 24rem;
  color: var(--night-text);
}

/* ------------------------------------------------------------- where you saw us */

.seen {
  padding-top: var(--section);
}

.seen-inner {
  display: grid;
  gap: clamp(2rem, 1.5rem + 2vw, 3rem) 4rem;
}

.seen-inner h2 {
  max-width: 12em;
}

.seen-list {
  display: grid;
  gap: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
}

.seen-list dt {
  font-family: var(--sans);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.seen-list dd {
  margin-top: 0.45rem;
  max-width: var(--measure);
}

/* ------------------------------------------------------------- company details */

.details {
  padding-top: var(--section);
}

.details-inner {
  display: grid;
  gap: clamp(2rem, 1.5rem + 2vw, 3rem) 4rem;
}

@media (min-width: 60rem) {
  .seen-inner,
  .details-inner {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}

/* Made to be screenshotted or printed for a supplier file. */
.card {
  position: relative;
  max-width: 44rem;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  border: 3px solid var(--ink);
  border-radius: 1.25rem;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: var(--stroke);
  background: var(--line);
}

.card-logo img {
  height: clamp(1.1rem, 0.95rem + 0.5vw, 1.4rem);
  width: auto;
}

.facts {
  display: grid;
  gap: 1.5rem 2.5rem;
  margin-top: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
}

@media (min-width: 34rem) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }
}

.fact dt {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink-soft);
}

.fact dd {
  margin-top: 0.3rem;
  font-family: var(--sans);
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.fact--number dd {
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------- privacy statement */

.prose {
  max-width: 38rem;
  padding-top: clamp(3rem, 2rem + 5vw, 7rem);
}

.prose h1 {
  font-size: var(--step-4);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.prose-meta {
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.prose h2 {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.prose h2 + p {
  margin-top: 0.6rem;
}

.prose p + p {
  margin-top: 1em;
}

/* ------------------------------------------------------------- 404 */

.page-404 main {
  overflow-x: hidden;
  overflow-x: clip;
}

.lost {
  padding-top: clamp(4rem, 2rem + 9vw, 11rem);
}

.lost-title {
  max-width: 12em;
  font-size: var(--step-5);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

/* The same line as on the home page, without the beat. */
.flatline {
  --u: calc(1em / 204.2);
  position: relative;
  display: inline-block;
  width: calc(74.5 * var(--u));
  height: 0;
}

.flatline::after {
  content: '';
  position: absolute;
  left: calc(74.5 * var(--u));
  top: calc(30 * var(--u) - 32.5 * var(--u));
  width: 100vw;
  height: calc(65 * var(--u));
  border-radius: calc(32.5 * var(--u)) 0 0 calc(32.5 * var(--u));
  background: var(--line);
}

.lost p {
  max-width: var(--measure);
  margin-top: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
  font-size: var(--step-1);
  line-height: 1.5;
}

.lost p + p {
  margin-top: 0.75rem;
}

/* ------------------------------------------------------------- print */

@media print {
  :root {
    --paper: #fff;
    --ink: #000;
    --ink-soft: #444;
    --section: 2.5rem;
    --room: 2.5rem;
  }

  .product,
  .engine {
    --card: #fff;
    --tint: #fff;
    --night: #fff;
    --night-ink: #000;
    --night-text: #000;
    --night-soft: #444;
    --night-accent: #000;
    background: none;
    color: #000;
  }

  .site-nav,
  .skip-link,
  .beat-tail,
  .flatline,
  .tiles {
    display: none;
  }

  /* Print the finished mark, whatever point the animation had reached. */
  .beat-rise,
  .beat-fall {
    animation: none;
    stroke-dasharray: none;
  }

  .card,
  .step,
  .engine-figure,
  .seen-list > div {
    break-inside: avoid;
  }

  .prose a[href^='http']::after,
  .seen a[href^='http']::after,
  .details-inner > .section-head a[href^='http']::after {
    content: ' (' attr(href) ')';
    font-weight: 400;
  }
}
