/* numai.io
   Identity by Manel Font (FONT STUDIO): symbol of ellipses, Favorit Light and Regular,
   black, white, mist grey, with pink and violet as the two brand colours. */

@font-face {
  font-family: "ABC Favorit";
  src: url("../fonts/ABCFavorit-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ABC Favorit";
  src: url("../fonts/ABCFavorit-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* layout idea: quiet white and mist bands with wide margins and hairlines;
     the symbol, stretched edge to edge, is the one loud element */
  --ink: #000000;
  --paper: #ffffff;
  --mist: #c1b9c9;
  --mist-soft: #ece9ef;
  --pink: #fa38f2;
  --violet: #9953f3;

  --font: "ABC Favorit", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --t-display: clamp(2.5rem, 1.35rem + 5.1vw, 6rem);
  --t-h2: clamp(1.9rem, 1.3rem + 2.7vw, 3.6rem);
  --t-h3: clamp(1.3rem, 1.15rem + 0.65vw, 1.7rem);
  --t-lead: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
  --t-body: clamp(1rem, 0.97rem + 0.14vw, 1.0625rem);
  --t-small: 0.875rem;

  --gutter: clamp(20px, 4.4vw, 64px);
  --sec: clamp(72px, 10vw, 152px);
  --bar-h: 60px;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--bar-h);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--t-body);
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 300; text-wrap: balance; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sl { color: var(--accent, currentColor); }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 30;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------- top bar ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--bar-h);
  padding: 0 var(--gutter);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  --accent: var(--pink);
}

.logo { display: inline-flex; align-items: center; padding: 8px 0; color: var(--violet); }
.logo svg { width: 76px; height: auto; fill: currentColor; }

.nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  flex-direction: column;
  padding: 8px var(--gutter) 28px;
  background: var(--paper);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.nav.open { display: flex; }
.nav a {
  padding: 14px 0;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.2;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.bar-end { display: flex; align-items: center; gap: 6px; }

.lang { display: flex; align-items: center; }
.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 6px;
  font-size: var(--t-small);
  line-height: 1;
  color: rgba(0, 0, 0, 0.5);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.menu-btn {
  min-height: 36px;
  padding: 0 0 0 10px;
  border: 0;
  background: none;
  font-size: var(--t-small);
  white-space: nowrap;
  cursor: pointer;
}

.bar .bar-cta { display: none; }

/* ---------- pills ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: var(--t-body);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.pill-ink { background: var(--ink); color: var(--paper); }
.pill-ink:hover { background: var(--pink); border-color: var(--pink); color: var(--ink); }
.pill-line { background: transparent; color: var(--ink); }
.pill-line:hover { background: var(--ink); color: var(--paper); }
.pill-pink { background: var(--pink); border-color: var(--pink); color: var(--ink); min-height: 36px; padding: 0 16px; font-size: var(--t-small); }
.pill-pink:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

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

.hero {
  background: var(--mist);
  margin-top: calc(var(--bar-h) * -1);
  padding-top: calc(var(--bar-h) + clamp(36px, 6vw, 96px));
}

.hero-copy {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(36px, 5.5vw, 80px);
}

.hero h1 {
  font-size: var(--t-display);
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 12ch;
}

.hero-side { display: grid; gap: 24px; align-content: end; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.38;
  max-width: 34ch;
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* the symbol adapts to its format: it is stretched as one piece, never per shape */
.mark {
  position: relative;
  height: clamp(250px, 22vw + 170px, 480px);
  overflow: hidden;
}
.symbol {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--ink);
  transform-origin: 50% 50%;
}
.symbol-paper { fill: var(--paper); }

.symbol .s {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: open 1.25s var(--ease) both;
}
.symbol .s2 { animation-delay: 0.07s; }
.symbol .s3 { animation-delay: 0.14s; }
.symbol .s4 { animation-delay: 0.21s; }
.symbol .s5 { animation-delay: 0.28s; }
.mark-end .symbol .s { animation: none; }

@keyframes open {
  from { transform: scaleY(0.035); }
  to { transform: scaleY(1); }
}

.band {
  position: absolute;
  inset: 0;
  color: var(--paper);
  font-size: clamp(0.75rem, 0.55rem + 0.8vw, 1.15rem);
  line-height: 1;
  animation: band-in 0.9s 0.55s var(--ease) both;
}
.mark-end .band { animation: none; }
@keyframes band-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.band-ink { color: var(--ink); }
.band > span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
}
/* each label sits on a shape of the symbol: n, m and a */
.band-logo { left: 7.7%; }
.band-logo svg { width: clamp(46px, 5.2vw, 96px); height: auto; fill: currentColor; }
.band-desc { left: 39.2%; }
.band-role { left: 72.8%; display: none; }

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

.sec { padding-block: var(--sec); }
.sec-paper { background: var(--paper); color: var(--ink); --accent: var(--pink); --line: rgba(0, 0, 0, 0.14); --muted: rgba(0, 0, 0, 0.7); --faint: rgba(0, 0, 0, 0.58); }
.sec-mist { background: var(--mist); color: var(--ink); --accent: var(--ink); --line: rgba(0, 0, 0, 0.22); --muted: rgba(0, 0, 0, 0.8); --faint: rgba(0, 0, 0, 0.72); }
.sec-ink { background: var(--ink); color: var(--paper); --accent: var(--pink); --line: rgba(255, 255, 255, 0.22); }
.sec-violet { background: var(--violet); color: var(--ink); --accent: var(--ink); --line: rgba(0, 0, 0, 0.28); }

.kicker {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  margin-bottom: clamp(28px, 4vw, 56px);
  font-size: var(--t-body);
  line-height: 1.2;
}
h2.kicker { font-weight: 400; letter-spacing: 0; max-width: none; }
.kicker + .team { margin-top: 0; }

h2 {
  font-size: var(--t-h2);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 17ch;
}
h2.narrow { max-width: 15ch; }
h2.display {
  font-size: var(--t-display);
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 14ch;
}

.intro {
  font-size: var(--t-lead);
  line-height: 1.4;
  max-width: 36ch;
}
.display + .intro, h2 + .intro { margin-top: clamp(20px, 2.6vw, 36px); }

.two { display: grid; gap: clamp(20px, 3vw, 40px); }
.two h2 + .intro { margin-top: 0; }

/* 1 / areas */
.areas {
  display: grid;
  margin-top: clamp(40px, 6vw, 88px);
  border-top: 1px solid var(--line);
}
.areas li {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  column-gap: 8px;
  row-gap: 6px;
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--line);
}
.areas .idx {
  grid-row: 1 / span 2;
  padding-top: 0.42em;
  font-size: var(--t-small);
  color: var(--faint);
}
.areas h3 { font-size: var(--t-h3); line-height: 1.15; letter-spacing: -0.01em; }
.areas p { max-width: 44ch; color: var(--muted); }

/* text beside a photo window */
.split { display: grid; gap: clamp(32px, 5vw, 64px); }

/* example dashboard, made-up figures */
.dash {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 560px;
  margin: 0;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: 22px;
  background: var(--paper);
  --accent: var(--pink);
  --line: rgba(0, 0, 0, 0.12);
  --muted: rgba(0, 0, 0, 0.64);
}
.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  font-size: var(--t-small);
}
.dash .tag { font-size: var(--t-small); padding: 6px 12px 7px; }
.dash-who { margin-top: -10px; font-size: var(--t-small); color: var(--muted); }
.dash-k { margin-bottom: 6px; font-size: 0.8125rem; color: var(--muted); }
.dash-big {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: clamp(2.25rem, 1.7rem + 2.2vw, 3.25rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.025em;
}
.delta {
  padding: 4px 9px 5px;
  border-radius: 999px;
  background: var(--mist-soft);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}
.bars {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  height: 96px;
  border-bottom: 1px solid var(--line);
}
.bars span { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; align-items: end; height: 100%; }
.bars i { display: block; border-radius: 3px 3px 0 0; }
.bars i:first-child { height: calc(var(--a) * 1%); background: var(--mist); }
.bars i:last-child { height: calc(var(--b) * 1%); background: var(--ink); }
/* weekly sales of the example: last year and this year, as a share of the chart height */
.bars span:nth-child(1) { --a: 76; --b: 83; }
.bars span:nth-child(2) { --a: 79; --b: 86; }
.bars span:nth-child(3) { --a: 80; --b: 88; }
.bars span:nth-child(4) { --a: 81; --b: 86; }
.bars span:nth-child(5) { --a: 82; --b: 90; }
.bars span:nth-child(6) { --a: 84; --b: 92; }
.bars span:nth-child(7) { --a: 84; --b: 90; }
.bars span:nth-child(8) { --a: 85; --b: 94; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: 0.8125rem; color: var(--muted); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.key { width: 10px; height: 10px; border-radius: 2px; }
.key-now { background: var(--ink); }
.key-ly { background: var(--mist); }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; border-top: 1px solid var(--line); }
.dash-grid > div { display: grid; gap: 4px; align-content: start; padding: 12px 0 13px; border-bottom: 1px solid var(--line); }
.dash-grid dt { font-size: 0.8125rem; color: var(--muted); }
.dash-grid dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.trust { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; gap: 12px; align-items: center; font-size: var(--t-small); }
.meter { height: 6px; border-radius: 999px; background: var(--mist-soft); overflow: hidden; }
.meter span { display: block; width: 96%; height: 100%; border-radius: 999px; background: var(--pink); }
.dash-note { font-size: 0.8125rem; color: var(--muted); }
@media (min-width: 560px) {
  .dash-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* people */
.principles {
  display: grid;
  margin-top: clamp(44px, 6vw, 88px);
  border-top: 1px solid var(--line);
}
.principles li {
  display: grid;
  gap: 8px;
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--line);
}
.principles h3 { font-size: var(--t-h3); line-height: 1.15; letter-spacing: -0.01em; }
.principles p { max-width: 36ch; color: var(--muted); }

/* 2 / steps */
.steps {
  display: grid;
  gap: 0;
  margin-top: clamp(36px, 5vw, 72px);
}
.steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: center;
  padding: 10px 0;
}
.steps .dot {
  display: grid;
  place-items: center;
  width: 64px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--mist);
  font-size: var(--t-small);
  transition: background-color 0.3s var(--ease);
}
.steps li:hover .dot { background: var(--pink); }
@media (prefers-reduced-motion: no-preference) {
  .steps .dot { animation: turn 12.5s cubic-bezier(0.37, 0, 0.63, 1) infinite; }
  .steps li:nth-child(2) .dot { animation-delay: 2.5s; }
  .steps li:nth-child(3) .dot { animation-delay: 5s; }
  .steps li:nth-child(4) .dot { animation-delay: 7.5s; }
  .steps li:nth-child(5) .dot { animation-delay: 10s; }
}
@keyframes turn {
  0% { background-color: var(--mist); }
  14%, 20% { background-color: var(--pink); }
  40%, 100% { background-color: var(--mist); }
}
.steps h3 { font-size: var(--t-h3); line-height: 1.15; letter-spacing: -0.01em; }
.steps p { color: rgba(0, 0, 0, 0.72); }

/* control: photo through the symbol */
.control { padding-bottom: 0; }
.control-copy { padding-bottom: clamp(40px, 6vw, 88px); }
.control h2.display { max-width: 16ch; }
.control .intro { color: rgba(255, 255, 255, 0.78); }

.window {
  background-color: #1b1b1b;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
.window picture, .window img { display: block; width: 100%; height: 100%; max-width: none; }
.window img { object-fit: cover; object-position: 50% 50%; }
/* a single letter of the symbol used as a window: m, three ellipses */
.window-m img { object-position: 50% 26%; }
.window-m {
  height: clamp(300px, 78vw, 440px);
  -webkit-mask-image: url("../img/mask-m.svg");
  mask-image: url("../img/mask-m.svg");
}
.window-symbol {
  height: clamp(250px, 22vw + 170px, 500px);
  -webkit-mask-image: url("../img/mask-symbol.svg");
  mask-image: url("../img/mask-symbol.svg");
}

/* 3 / tools */
.tools {
  margin-top: clamp(40px, 6vw, 88px);
  border-top: 1px solid var(--line);
}
.tools > div {
  display: grid;
  gap: 12px;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--line);
}
.tools dt { color: rgba(0, 0, 0, 0.62); }
.tools dd { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.tools dd span {
  font-size: var(--t-h3);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* 4 / clients */
.names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1em 0.38em;
  margin-top: clamp(36px, 5vw, 72px);
  font-size: clamp(1.75rem, 1.1rem + 3.1vw, 4.25rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.names li { display: inline-flex; gap: 0.38em; }
.names li::before { content: "/"; color: var(--paper); }
.note { margin-top: clamp(28px, 4vw, 56px); max-width: 44ch; }

/* 5 / team */
.team {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  margin-top: clamp(40px, 6vw, 88px);
}
.team li { display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: start; }
.face {
  width: 72px;
  height: 132px;
  border-radius: 50%;
  background: var(--ink);
}
.team h3 { margin-bottom: 14px; line-height: 1; }
.tag {
  display: inline-block;
  padding: 7px 14px 8px;
  border-radius: 999px;
  background: var(--pink);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1;
}
.team p { max-width: 46ch; color: rgba(0, 0, 0, 0.78); }

/* contact */
.contact { padding-bottom: 0; }
.ways {
  display: grid;
  gap: 0;
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line);
}
.ways > div {
  display: grid;
  gap: 4px;
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--line);
}
.ways dt { font-size: var(--t-small); }
.ways dd { font-size: clamp(1.5rem, 1.1rem + 2vw, 3rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.ways a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  text-decoration-color: rgba(0, 0, 0, 0.35);
  transition: text-decoration-color 0.25s var(--ease);
}
.ways a:hover { text-decoration-color: currentColor; }
.mark-end { margin-top: var(--sec); height: clamp(170px, 20vw + 90px, 360px); }

/* footer */
.foot {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--t-small);
  padding-block: 28px;
  --accent: var(--pink);
}
.foot-row { display: grid; gap: 8px; }
.foot-name { color: var(--paper); }

/* ---------- from 760px ---------- */

@media (min-width: 760px) {
  :root { --bar-h: 68px; }

  .logo svg { width: 88px; }

  .band-role { display: block; }

  .areas { grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 80px); }

  .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 80px); border-top: 0; }
  .principles li { border-top: 1px solid var(--line); border-bottom: 0; padding: 22px 0 0; align-content: start; }
  .areas li { padding: 28px 0 32px; }

  /* the five steps become a chain of circles that touch */
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .steps li {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
    align-content: start;
    padding: 0;
  }
  .steps .dot { width: 100%; font-size: var(--t-body); }
  .steps li > div { padding-right: 16px; }

  .tools > div { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: baseline; gap: 24px; padding: 24px 0 26px; }

  .team { grid-template-columns: 1fr 1fr; }
  .team li { grid-template-columns: 96px 1fr; gap: 28px; }
  .face { width: 96px; height: 176px; }

  .ways > div { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: baseline; gap: 24px; padding: 22px 0 26px; }
  .ways dt { font-size: var(--t-body); }

  .foot-row { grid-template-columns: 1fr auto auto; gap: 40px; align-items: baseline; }
}

/* ---------- from 1040px: full navigation in the bar ---------- */

@media (min-width: 1040px) {
  .hero-copy { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .hero-side { justify-items: start; }
  .two { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
  .dash { justify-self: end; }
  .window-m { height: clamp(440px, 40vw, 600px); }
  .split-top { align-items: start; }

  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team li { grid-template-columns: 72px 1fr; gap: 22px; }
  .face { width: 72px; height: 132px; }

  .nav .nav-contact { display: none; }
  .menu-btn { display: none; }
  .bar .bar-cta { display: inline-flex; margin-left: 10px; }
  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    gap: clamp(16px, 2vw, 32px);
    padding: 0;
    border: 0;
    background: none;
  }
  .nav a {
    padding: 8px 0;
    font-size: var(--t-small);
    font-weight: 400;
    border: 0;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size 0.3s var(--ease);
  }
  .nav a:hover { background-size: 100% 1px; }
}

/* ---------- scroll-linked flow, where the browser supports it ---------- */

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .window-symbol img {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    @keyframes drift {
      from { object-position: 50% 30%; }
      to { object-position: 50% 70%; }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .symbol .s, .band { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

@media print {
  .bar { position: static; }
}

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

.lost { min-height: calc(100vh - var(--bar-h)); min-height: calc(100svh - var(--bar-h)); }
.lost h1 {
  font-size: var(--t-display);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.lost .intro span { display: block; }
.lost .actions { margin-top: clamp(28px, 4vw, 48px); }

/* ---------- the example dashboard comes alive when it scrolls into view ----------
   The script adds .ready on load and .live once the card is on screen. */

.dash.ready .bars i { transform: scaleY(0); transform-origin: 50% 100%; }
.dash.ready .meter span { transform: scaleX(0); transform-origin: 0 50%; }
.dash.ready [data-count], .dash.ready .delta { opacity: 0; }
.dash.live .bars i { transform: none; transition: transform 0.9s var(--ease); }
.dash.live .bars span:nth-child(2) i { transition-delay: 0.06s; }
.dash.live .bars span:nth-child(3) i { transition-delay: 0.12s; }
.dash.live .bars span:nth-child(4) i { transition-delay: 0.18s; }
.dash.live .bars span:nth-child(5) i { transition-delay: 0.24s; }
.dash.live .bars span:nth-child(6) i { transition-delay: 0.30s; }
.dash.live .bars span:nth-child(7) i { transition-delay: 0.36s; }
.dash.live .bars span:nth-child(8) i { transition-delay: 0.42s; }
.dash.live .meter span { transform: none; transition: transform 1.3s var(--ease) 0.45s; }
.dash.live [data-count] { opacity: 1; transition: opacity 0.4s var(--ease); }
.dash.live .delta { opacity: 1; transition: opacity 0.5s var(--ease) 1.1s; }

/* ---------- data stream through the symbol ---------- */

.stream {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s var(--ease) 1s;
  -webkit-mask: url("../img/mask-symbol.svg") center / 100% 100% no-repeat;
  mask: url("../img/mask-symbol.svg") center / 100% 100% no-repeat;
}
.stream.on { opacity: 1; }
.mark-end .stream { transition-delay: 0s; }

/* ---------- content settles into place as it enters the screen ----------
   The script marks what starts below the fold (.pre) and releases it (.shown) when it comes into view. */

.pre { opacity: 0; transform: translateY(28px); }
.pre.shown {
  opacity: 1;
  transform: none;
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s), transform 1.5s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s);
}
@media print {
  .pre { opacity: 1; transform: none; }
}

/* ---------- footer links ---------- */

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 24px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.foot-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}
.foot-legal a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- legal page ---------- */

.legal h1 {
  font-size: var(--t-h2);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.legal h1 + .intro { margin-top: clamp(20px, 2.6vw, 36px); }
.legal-index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(24px, 3vw, 40px); }
.legal-index a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: var(--t-small);
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.legal-index a:hover { background: var(--ink); color: var(--paper); }
.legal-sec {
  max-width: 72ch;
  margin-top: clamp(48px, 7vw, 96px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line);
}
.legal-sec h2 { font-size: var(--t-h3); line-height: 1.15; letter-spacing: -0.01em; max-width: none; }
.legal-sec h3 { margin-top: 32px; font-size: var(--t-body); font-weight: 400; }
.legal-sec p { margin-top: 10px; color: var(--muted); }
.legal-sec a { text-underline-offset: 3px; }
.legal-owner { margin-top: 18px; border-top: 1px solid var(--line); }
.legal-owner > div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal-owner dt { font-size: var(--t-small); color: var(--faint); }
.pending { padding: 2px 8px 3px; border-radius: 999px; background: var(--pink); color: var(--ink); font-size: 0.8125rem; white-space: nowrap; }
.legal-updated { max-width: 72ch; margin-top: clamp(40px, 5vw, 64px); font-size: var(--t-small); color: var(--faint); }
.legal .actions { margin-top: 24px; }
@media (min-width: 560px) {
  .legal-owner > div { grid-template-columns: 11rem 1fr; gap: 16px; align-items: baseline; }
}

/* ---------- sections flow into each other ----------
   The lower half of the symbol hangs from one section into the next, in the colour of the section above.
   Each drop lengthens and shortens slowly at its own pace. Two slow movements with different periods are
   combined, both easing in and out and both reversing, so nothing ever jumps and the edge moves like a liquid. */

.drip { height: clamp(60px, 11vw, 176px); overflow: hidden; background: var(--to); }
.drip svg { display: block; width: 100%; height: 100%; fill: var(--from); }
.drip-flip svg { transform: scaleX(-1); }
.drip .s { transform-box: fill-box; transform-origin: 50% 50%; }
.drip-paper-mist { --from: var(--paper); --to: var(--mist); }
.drip-mist-paper { --from: var(--mist); --to: var(--paper); }
.drip-paper-ink { --from: var(--paper); --to: var(--ink); }
.drip-paper-violet { --from: var(--paper); --to: var(--violet); }
.drip + .sec { padding-top: calc(var(--sec) * 0.62); }

@media (prefers-reduced-motion: no-preference) {
  .drip .s {
    animation-name: drop-long, drop-short;
    animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1);
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-play-state: paused;
  }
  .drip.in .s { animation-play-state: running; }
  .drip .s1 { animation-duration: 11s, 17s; animation-delay: -2s, -9s; }
  .drip .s2 { animation-duration: 13s, 19s; animation-delay: -8s, -3s; }
  .drip .s3 { animation-duration: 10s, 23s; animation-delay: -4s, -15s; }
  .drip .s4 { animation-duration: 14s, 16s; animation-delay: -12s, -6s; }
  .drip .s5 { animation-duration: 12s, 21s; animation-delay: -6s, -18s; }
  @keyframes drop-long {
    from { transform: scaleY(0.42); }
    to { transform: scaleY(1); }
  }
  @keyframes drop-short {
    from { scale: 1 0.8; }
    to { scale: 1 1; }
  }
}

/* reading progress along the bottom edge of the bar */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .bar::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: -1px;
      height: 2px;
      background: var(--pink);
      transform: scaleX(0);
      transform-origin: 0 50%;
      animation: progress linear both;
      animation-timeline: scroll(root block);
    }
    @keyframes progress {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
  }
}
