/* eloai.io, the Elo site (owner, 20 Nov 2026, Q546): "a multi-page website inspired by [foundable.com] ... something
   clean like this", with the clay Elos' real skeletons in it. Foundable's quiet light grey, big tight headlines, white
   cards, sky panels and one dark panel; the clay Elos (live three.js, src/elo3d.js) where Foundable shows its product. */

:root {
  --bg: #f5f5f7;
  --ink: #0e0e14;
  --ink-2: #4a4a55;
  --ink-3: #777783;
  --line: rgba(14, 14, 20, 0.08);
  --card: #fff;
  --r-xl: 34px;
  --r-lg: 28px;
  --r-md: 22px;
  --shadow: 0 1px 2px rgba(14, 14, 20, 0.04), 0 10px 30px -8px rgba(14, 14, 20, 0.08);
  --shadow-up: 0 2px 4px rgba(14, 14, 20, 0.05), 0 22px 44px -14px rgba(14, 14, 20, 0.18);
  --grad: linear-gradient(92deg, #4b63ff 0%, #8257ff 55%, #b064f2 100%);
  --sky: linear-gradient(180deg, #6fa9f0 0%, #98c4f6 36%, #cbe2fb 70%, #eef5fd 100%);
  --lilac: linear-gradient(160deg, #a493ff 0%, #cdc3ff 100%);
  --mint: linear-gradient(160deg, #7ccdaa 0%, #c6ecda 100%);
  --peach: linear-gradient(160deg, #ffb487 0%, #ffe1cc 100%);
  --skyc: linear-gradient(160deg, #6aa4f2 0%, #c4dcfb 100%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* A faint dot grid behind the top of every page, as on Foundable. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1100px;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(14, 14, 20, 0.07) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid #4b63ff; outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: 10px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  clip-path: inset(50%);
}
.skip:focus { clip-path: none; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 40px); }
.center { text-align: center; }

/* Type ------------------------------------------------------------------------------------------------------------- */
.display {
  font-size: clamp(42px, 6.8vw, 76px);
  line-height: 1.01;
  letter-spacing: -0.042em;
  font-weight: 650;
  margin: 20px auto 0;
  max-width: 14.5ch;
  text-wrap: balance;
}
.title {
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.036em;
  font-weight: 640;
  margin: 12px 0 0;
  text-wrap: balance;
}
.lead {
  font-size: clamp(17px, 1.6vw, 19.5px);
  line-height: 1.5;
  color: var(--ink-2);
  margin: 20px auto 0;
  max-width: 34em;
  text-wrap: pretty;
}
.eyebrow { font-size: 14px; font-weight: 600; color: var(--ink-3); margin: 0; letter-spacing: -0.005em; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.fine { font-size: 14px; color: var(--ink-3); margin: 16px 0 0; }
.fine a { color: var(--ink-2); }
:lang(he) .display { letter-spacing: -0.022em; font-weight: 700; }
:lang(he) .title { letter-spacing: -0.018em; font-weight: 700; }
:lang(he) .feature h3, :lang(he) .story-step h3, :lang(he) .fact h3 { letter-spacing: -0.01em; }

/* Buttons ---------------------------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 6px 16px -6px rgba(14, 14, 20, 0.45); }
.btn-dark:hover { background: #262631; }
.btn-light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(14, 14, 20, 0.05); }
.btn-light:hover { background: #fafafa; }
.btn-sm { height: 40px; padding: 0 17px; font-size: 14.5px; }
.btn svg { flex: none; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 2px;
}
.more::after { content: "\2192"; transition: transform 0.2s; }
:dir(rtl) .more::after, [dir="rtl"] .more::after { content: "\2190"; }
.more:hover::after { transform: translateX(3px); }
[dir="rtl"] .more:hover::after { transform: translateX(-3px); }

/* Header ----------------------------------------------------------------------------------------------------------- */
.top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245, 245, 247, 0.76);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 10px; display: block; }
.nav { display: flex; gap: 2px; }
.nav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: #2b2b35;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s;
}
.nav a:hover { background: rgba(14, 14, 20, 0.05); }
.nav a[aria-current="page"] { background: rgba(14, 14, 20, 0.07); color: var(--ink); }
.top-end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.lang { font-size: 15px; font-weight: 500; color: #2b2b35; text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.lang:hover { background: rgba(14, 14, 20, 0.05); }
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, top 0.25s ease;
}
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
.sheet {
  position: fixed;
  inset: 66px 0 0;
  background: var(--bg);
  padding: 18px 20px 40px;
  overflow-y: auto;
  z-index: 59;
}
.sheet a.big {
  display: block;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.03em;
  padding: 12px 4px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.sheet .btn { margin-top: 26px; width: 100%; }
.sheet .lang { display: inline-block; margin-top: 14px; padding-inline: 4px; }
@media (max-width: 900px) {
  .nav, .top-end > .lang { display: none; }
  .menu-btn { display: inline-block; }
}

/* Sections --------------------------------------------------------------------------------------------------------- */
.hero { padding: clamp(46px, 8vw, 104px) 0 0; text-align: center; }
.hero-tight { padding-bottom: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(14, 14, 20, 0.04);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}
[dir="rtl"] .chip { padding: 6px 6px 6px 14px; }
.chip img { width: 24px; height: 24px; border-radius: 50%; display: block; }
.chip.plain { padding: 6px 14px; }
.sec { padding-top: clamp(84px, 11vw, 140px); }
.sec-tight { padding-top: clamp(36px, 5vw, 56px); }
.sec-head { text-align: center; max-width: 780px; margin: 0 auto clamp(36px, 5vw, 60px); }
.sec-head .lead { margin-top: 16px; }

/* The stage: a sky with the Elo standing in it ------------------------------------------------------------------- */
.sky { background: var(--sky); border-radius: var(--r-xl); position: relative; overflow: hidden; isolation: isolate; }
/* Every stage holds its own canvas (the Privacy page's small one sits in a card, not a sky). */
[data-stage] { position: relative; overflow: hidden; isolation: isolate; }
.stage {
  height: clamp(460px, 56vw, 660px);
  margin-top: clamp(44px, 6vw, 72px);
  box-shadow: 0 40px 80px -40px rgba(38, 92, 168, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  transition: background 1.2s ease;
  user-select: none;
  -webkit-user-select: none;
}
.stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5));
  pointer-events: none;
}
[data-stage] > canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.7s ease;
  touch-action: pan-y;
  cursor: grab;
  z-index: 2;
}
[data-stage] > canvas:active { cursor: grabbing; }
[data-stage].ready > canvas { opacity: 1; }
[data-stage] > .poster {
  position: absolute;
  left: 50%;
  bottom: 17%;
  height: 58%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  transition: opacity 0.5s ease;
  z-index: 1;
  pointer-events: none;
}
[data-stage].ready > .poster { opacity: 0; }
.clouds { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.clouds i {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.55) 60%, rgba(255, 255, 255, 0));
  animation: drift 70s linear infinite;
}
.clouds i:nth-child(1) { width: 380px; height: 120px; top: 10%; left: -6%; animation-duration: 90s; }
.clouds i:nth-child(2) { width: 260px; height: 86px; top: 26%; left: 64%; animation-duration: 75s; animation-delay: -30s; }
.clouds i:nth-child(3) { width: 200px; height: 66px; top: 6%; left: 38%; animation-duration: 110s; animation-delay: -60s; opacity: 0.8; }
.clouds i:nth-child(4) { width: 460px; height: 140px; top: 44%; left: 78%; animation-duration: 120s; animation-delay: -10s; opacity: 0.7; }
@keyframes drift { from { transform: translateX(-12vw); } to { transform: translateX(12vw); } }
.bubble {
  position: absolute;
  top: 9%;
  left: 50%;
  z-index: 4;
  transform: translate(calc(-50% + var(--bx, 0px)), 10px) scale(0.94);
  background: #fff;
  color: var(--ink);
  padding: 13px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-up);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.25);
  max-width: min(78%, 380px);
  text-align: center;
  pointer-events: none;
}
.bubble.on { opacity: 1; transform: translate(calc(-50% + var(--bx, 0px)), 0) scale(1); }
.stage-hint {
  position: absolute;
  top: 18px;
  inset-inline-start: 18px;
  z-index: 3;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(14, 14, 20, 0.62);
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 7px 13px;
  border-radius: 999px;
}
.picker {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-radius: 999px;
  box-shadow: 0 12px 30px -12px rgba(20, 50, 100, 0.35);
  max-width: calc(100% - 24px);
  overflow-x: auto;
  scrollbar-width: none;
}
.picker::-webkit-scrollbar { display: none; }
.picker button {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.picker button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.picker button:hover { transform: translateY(-2px); }
.picker button[aria-selected="true"] { box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px var(--ink); }
@media (max-width: 560px) {
  .picker button { width: 38px; height: 38px; }
  .stage-hint { font-size: 12.5px; }
}

/* Stage times of day (the How page's story) */
.stage[data-sky="noon"] { background: linear-gradient(180deg, #4f97ec 0%, #8cc0f7 40%, #d3e8fc 75%, #f1f7fe 100%); }
.stage[data-sky="evening"] { background: linear-gradient(180deg, #8d7fd8 0%, #e6a2b6 42%, #f9cfae 74%, #fdeee2 100%); }
.stage[data-sky="night"] { background: linear-gradient(180deg, #1a2149 0%, #2e3a76 46%, #5263a6 80%, #7686c4 100%); }
.stage[data-sky="night"]::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 220, 170, 0.18)); }
.stage[data-sky="night"] .clouds i { opacity: 0.12 !important; }
.stars { position: absolute; inset: 0 0 40%; z-index: -1; opacity: 0; transition: opacity 1.2s ease; pointer-events: none;
  background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 28% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 44% 30%, #fff, transparent), radial-gradient(1px 1px at 63% 16%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 78% 28%, #fff, transparent), radial-gradient(1px 1px at 90% 10%, #fff, transparent),
    radial-gradient(1px 1px at 8% 44%, #fff, transparent), radial-gradient(1.5px 1.5px at 56% 8%, #fff, transparent); }
.stage[data-sky="night"] .stars { opacity: 0.9; }

/* The Elos page: the stage with the Elo's card beside it */
.stage-big { height: clamp(560px, 60vw, 700px); margin-top: 0; }
.elo-info {
  position: absolute;
  z-index: 3;
  inset-inline-start: clamp(16px, 4vw, 48px);
  top: 50%;
  transform: translateY(-50%);
  width: min(380px, 40%);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-radius: 26px;
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-up);
}
.info-name { font-size: clamp(36px, 4vw, 48px); letter-spacing: -0.04em; line-height: 1; margin: 8px 0 0; font-weight: 680; }
.info-hello { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; margin: 16px 0 0; line-height: 1.35; }
.info-promise { color: var(--ink-2); margin: 10px 0 0; }
.info-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.btn[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
@media (max-width: 860px) {
  .stage-big { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .stage-big .stage-room { position: relative; height: 420px; }
  .elo-info { position: relative; inset: auto; transform: none; width: auto; margin: 0 12px 76px; }
}
.stage-room { position: absolute; inset: 0; }

/* Elo cards -------------------------------------------------------------------------------------------------------- */
.elo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .elo-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.elo-card {
  display: block;
  width: 100%;
  background: #fff;
  border: 0;
  border-radius: var(--r-md);
  padding: 9px;
  text-align: start;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
}
.elo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-up); }
/* The Elo in each card: live 3D on its own colour (elo3d.js mountCards), the cut-out picture until it comes. */
.card-stage {
  display: block;
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 45%, #fff) 0%, var(--tint) 100%);
}
.card-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease; }
.card-stage.ready canvas { opacity: 1; }
.card-stage .poster {
  position: absolute;
  left: 50%;
  bottom: 10%;
  height: 76%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  transition: opacity 0.4s ease;
  animation: bob 2.6s ease-in-out infinite;
}
.card-stage.ready .poster { opacity: 0; }
.elo-card:nth-child(2n) .poster { animation-delay: -0.9s; }
.elo-card:nth-child(3n) .poster { animation-delay: -1.7s; }

/* The group photo, alive (elo3d.js mountGroup). */
.group-stage {
  position: relative;
  aspect-ratio: 1;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #ddd6f5 0%, #c9bfeb 100%);
}
.group-wide { aspect-ratio: 16 / 10; border-radius: var(--r-xl); }
.group-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.7s ease; z-index: 1; }
.group-stage.ready canvas { opacity: 1; }
.group-stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s ease; }
.group-stage.ready .poster { opacity: 0; }
.group-stage .bubble { top: 10%; }
.group-stage .stage-hint { opacity: 0; transition: opacity 0.4s ease; }
.group-stage.ready .stage-hint { opacity: 1; }
@media (max-width: 860px) { .group-wide { aspect-ratio: 1; } }

/* The small Elos bob too: the picker and the chat. */
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -5%); } }
@keyframes bob-small { 0%, 100% { transform: translateY(0) rotate(0deg); } 30% { transform: translateY(-3px) rotate(-4deg); } 60% { transform: translateY(0) rotate(3deg); } }
.picker button img, .elo-say img { animation: bob-small 2.4s ease-in-out infinite; }
.picker button:nth-child(2n) img { animation-delay: -0.8s; }
.picker button:nth-child(3n) img { animation-delay: -1.6s; }
.elo-say + .elo-say img { animation-delay: -1.1s; }
@media (prefers-reduced-motion: reduce) {
  .card-stage .poster, .picker button img, .elo-say img { animation: none; }
}
.elo-card .nm { display: block; font-weight: 660; font-size: 19px; letter-spacing: -0.025em; margin: 12px 8px 0; }
.elo-card .tr { display: block; color: var(--ink-3); font-size: 14.5px; margin: 2px 8px 8px; line-height: 1.35; }
.elo-card[aria-current="true"] { box-shadow: 0 0 0 2.5px var(--ink), var(--shadow-up); }

/* Feature cards: words on one side, a coloured panel on the other ------------------------------------------------ */
.feature {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  background: #fff;
  border-radius: var(--r-xl);
  padding: clamp(14px, 1.6vw, 18px);
  padding-inline-start: clamp(24px, 4.4vw, 56px);
  box-shadow: var(--shadow);
}
.feature + .feature { margin-top: 18px; }
.feature h3 { font-size: clamp(25px, 2.6vw, 32px); letter-spacing: -0.032em; line-height: 1.1; font-weight: 650; margin: 0; text-wrap: balance; }
.feature p { color: var(--ink-2); font-size: 17px; margin: 14px 0 0; max-width: 30em; }
.feature .fine { font-size: 13.5px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; padding: 12px; }
  .feature-text { padding: 18px 12px 6px; }
}
.art {
  border-radius: 26px;
  min-height: 360px;
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.art-lilac { background: var(--lilac); }
.art-sky { background: var(--skyc); }
.art-mint { background: var(--mint); }
.art-peach { background: var(--peach); }

.moment {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  padding: 13px 16px;
  box-shadow: 0 10px 24px -12px rgba(40, 20, 110, 0.35);
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 360px;
  width: 100%;
}
.moment b { font-variant-numeric: tabular-nums; min-width: 3.2em; color: #5b47d6; font-weight: 700; }
.moment:nth-child(2) { margin-inline-start: 8%; }
.moment:nth-child(3) { margin-inline-start: 16%; }
.moment:nth-child(4) { margin-inline-start: 6%; }
.moment.now { box-shadow: 0 0 0 2px #fff, 0 16px 30px -12px rgba(40, 20, 110, 0.55); }
.moment .dot { width: 9px; height: 9px; border-radius: 50%; background: #34c759; margin-inline-start: auto; flex: none; }

.talk { display: flex; flex-direction: column; gap: 12px; max-width: 440px; width: 100%; margin-inline: auto; }
.say {
  align-self: flex-end;
  background: var(--ink);
  color: #fff;
  border-radius: 20px 20px 6px 20px;
  padding: 12px 16px;
  font-weight: 600;
  max-width: 80%;
}
[dir="rtl"] .say { align-self: flex-start; border-radius: 20px 20px 20px 6px; }
.elo-say { display: flex; gap: 10px; align-items: flex-end; max-width: 92%; }
.elo-say img { width: 38px; height: 38px; border-radius: 50%; flex: none; background: #fff; object-fit: cover; }
.elo-say p {
  margin: 0;
  background: #fff;
  color: var(--ink);
  border-radius: 20px 20px 20px 6px;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.42;
  box-shadow: 0 10px 24px -14px rgba(20, 60, 130, 0.45);
}
[dir="rtl"] .elo-say p { border-radius: 20px 20px 6px 20px; }
.talk .note { font-size: 13px; color: rgba(14, 14, 20, 0.62); text-align: center; margin: 4px 0 0; }

.ask-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  box-shadow: 0 12px 26px -14px rgba(10, 80, 50, 0.5);
  font-weight: 600;
  max-width: 440px;
  width: 100%;
  margin-inline: auto;
}
[dir="rtl"] .ask-pill { padding: 8px 18px 8px 8px; }
.ask-pill span { flex: 1; min-width: 0; }
.ask-pill i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  flex: none;
  display: grid;
  place-items: center;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px auto 6px; max-width: 460px; }
.chips button {
  border: 0;
  background: rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}
.chips button[aria-pressed="true"] { background: #fff; box-shadow: 0 6px 14px -8px rgba(10, 80, 50, 0.6); }
.stones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 460px; width: 100%; margin-inline: auto; }
.stone {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 13px 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 22px -14px rgba(10, 80, 50, 0.55);
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.25);
}
.stone.in { opacity: 1; transform: none; }
.stone small { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 2px; }
.built { text-align: center; font-size: 13px; color: rgba(14, 14, 20, 0.62); margin: 6px 0 0; min-height: 1.3em; }

/* The dark panel --------------------------------------------------------------------------------------------------- */
.dark {
  background: #0e0e14;
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(34px, 6vw, 76px);
  position: relative;
  overflow: hidden;
}
.dark .eyebrow { color: rgba(255, 255, 255, 0.55); }
.dark .title { color: #fff; max-width: 15ch; }
.dark .lead { color: rgba(255, 255, 255, 0.7); margin-inline: 0; }
.day-list { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.day-list li { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 22px; padding: 22px; }
.day-list time {
  display: block;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(92deg, #9fb0ff, #d3b5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.day-list span { display: block; margin-top: 8px; color: rgba(255, 255, 255, 0.84); font-size: 16.5px; line-height: 1.4; }
@media (max-width: 900px) { .day-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .day-list { grid-template-columns: 1fr; } }

/* The privacy band ------------------------------------------------------------------------------------------------- */
.band {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background: #fff;
  border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 60px);
  box-shadow: var(--shadow);
}
.band .title { margin-top: 10px; }
.band .lead { margin-inline: 0; }
.tokens { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tokens li { background: var(--bg); border-radius: 20px; padding: 20px 18px; font-weight: 640; letter-spacing: -0.015em; display: flex; flex-direction: column; gap: 14px; }
.tokens svg { display: block; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }

/* Questions -------------------------------------------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 0 24px; }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-weight: 630;
  font-size: 18px;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 30px; height: 30px; border-radius: 50%; background: var(--bg); position: relative; flex: none; }
.faq summary i::before, .faq summary i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .ans { padding: 0 0 22px; color: var(--ink-2); font-size: 16.5px; max-width: 42em; }
.faq .ans p { margin: 0; }
.faq .ans a { color: var(--ink); }

/* The closing card ------------------------------------------------------------------------------------------------- */
.cta-card {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  background: linear-gradient(160deg, #cbbff3 0%, #e7e1fb 100%);
  border-radius: var(--r-xl);
  padding: clamp(14px, 1.6vw, 18px);
  overflow: hidden;
}
.cta-card picture, .cta-card img { display: block; width: 100%; border-radius: 26px; }
.cta-text { padding: clamp(18px, 4vw, 48px); }
.cta-text .cta-row { justify-content: flex-start; }
.cta-text .title { margin-top: 0; }
@media (max-width: 860px) {
  .cta-card { grid-template-columns: 1fr; }
  .cta-text { text-align: center; }
  .cta-text .cta-row { justify-content: center; }
}

/* How it works: the day as a story, the Elo beside it -------------------------------------------------------------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.story-stage { position: sticky; top: 92px; }
.stage-sticky { height: min(72vh, 620px); margin-top: 0; }
.story-time {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  z-index: 3;
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 7px 13px;
  border-radius: 999px;
}
.story-steps { list-style: none; margin: 0; padding: 0; }
.story-step { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.28; transition: opacity 0.45s ease; }
.story-step.on { opacity: 1; }
.story-step time { font-size: 15px; font-weight: 700; color: #5b47d6; font-variant-numeric: tabular-nums; }
.story-step h3 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.035em; line-height: 1.06; margin: 10px 0 0; font-weight: 650; text-wrap: balance; }
.story-step p { color: var(--ink-2); font-size: 18px; margin: 14px 0 0; max-width: 28em; }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-stage { top: 74px; z-index: 5; }
  .stage-sticky { height: 42vh; border-radius: 26px; }
  .story-step { min-height: 52vh; }
}

/* Three across: steps, facts, about --------------------------------------------------------------------------------- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
.card h3 { font-size: 20px; letter-spacing: -0.022em; margin: 16px 0 0; line-height: 1.25; font-weight: 650; }
.card p { color: var(--ink-2); margin: 8px 0 0; font-size: 16px; }
.card .n {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  font-weight: 700;
  font-size: 15px;
}
.ico { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--bg); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 960px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }

/* Privacy: three cards on the sky, the Elo in the middle one */
.trio { display: grid; grid-template-columns: 1fr 1.18fr 1fr; gap: 16px; padding: clamp(22px, 5vw, 64px); align-items: end; }
.trio .card { box-shadow: 0 18px 40px -22px rgba(20, 60, 130, 0.5); }
.trio-mid { padding-top: 0; overflow: hidden; }
.stage-mini {
  height: 270px;
  margin: 0 -26px 6px;
  border-radius: 0;
  background: linear-gradient(180deg, #e4f0fd 0%, #f7fbff 100%);
  box-shadow: none;
}
.stage-mini::after { display: none; }
.stage-mini > .poster { height: 70%; bottom: 10%; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } .trio-mid { order: -1; } }

/* About */
.quote { margin: 0; background: #fff; border-radius: var(--r-xl); padding: clamp(40px, 8vw, 100px) clamp(24px, 6vw, 80px); text-align: center; box-shadow: var(--shadow); }
.quote blockquote { margin: 0; font-size: clamp(34px, 5.6vw, 68px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
.quote figcaption { margin-top: 20px; color: var(--ink-3); font-size: 17px; }
.photo { margin: 0; }
.photo img { display: block; width: 100%; border-radius: var(--r-xl); }
.photo figcaption { text-align: center; color: var(--ink-3); margin-top: 14px; font-size: 15px; }
.contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  background: #fff;
  border-radius: var(--r-xl);
  padding: clamp(26px, 4.5vw, 48px);
  box-shadow: var(--shadow);
}
.contact h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; margin: 0; line-height: 1.1; }
.contact p { color: var(--ink-2); margin: 8px 0 0; }

/* Footer ----------------------------------------------------------------------------------------------------------- */
.foot { margin-top: clamp(96px, 12vw, 160px); background: #fff; border-top: 1px solid var(--line); padding: 60px 0 30px; }
.foot-top { display: grid; grid-template-columns: 1.1fr 2fr; gap: 40px; }
.foot-brand p { color: var(--ink-2); margin: 14px 0 20px; max-width: 22em; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot h4 { font-size: 13.5px; color: var(--ink-3); font-weight: 600; margin: 0 0 12px; letter-spacing: 0; }
.foot-cols a { display: block; color: var(--ink); text-decoration: none; font-size: 15.5px; padding: 6px 0; }
.foot-cols a:hover { color: #4b63ff; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
}
.foot-bottom a { color: var(--ink-2); text-decoration: none; }
@media (max-width: 760px) {
  .foot-top { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

/* Coming into view ------------------------------------------------------------------------------------------------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .rv.in { opacity: 1; transform: none; }
.still .rv, .still .stone { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .clouds i { animation: none; }
  .stone { transition: none; }
}

/* The Elos page: the Elo stands to the side of its card (the 3D reads --shift; --fill is how tall it stands). */
.stage-room { --shift: 0.2; --fill: 0.62; }
[dir="rtl"] .stage-room { --shift: -0.2; }
.stage-sticky { --fill: 0.58; }
@media (max-width: 860px) { .stage-room, [dir="rtl"] .stage-room { --shift: 0; } }

/* The bubble over the Elo where it stands, beside its card. */
.stage-room .bubble { left: calc(50% + var(--shift) * 100%); }

/* How far the Elo roams in its sky (elo3d.js reads --roam, 0 to 1 of the free width). */
.stage-room { --roam: 0.22; }
.stage-sticky { --roam: 0.35; }
.stage-mini { --roam: 0.25; }

/* The logo in the header and footer (the word "elo" in clay, the "o" an Elo). */
.brand img.logo { width: auto; height: 30px; border-radius: 0; }
.foot-cols { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr 1fr; } }

/* Documents: legal, help, developers, guides, the company pages (docs.py) --------------------------------------- */
.doc-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.crumbs { margin: 0; font-size: 14px; font-weight: 600; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.doc-title { font-size: clamp(36px, 5vw, 56px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 650; margin: 10px 0 0; max-width: 20ch; text-wrap: balance; }
.doc-note { color: var(--ink-3); font-size: 15px; margin: 14px 0 0; max-width: 60em; }
.doc-note a { color: var(--ink-2); }
.doc-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr) 210px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.doc-side, .doc-toc { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; }
.doc-side h4 { font-size: 12.5px; font-weight: 650; color: var(--ink-3); margin: 22px 0 6px; letter-spacing: 0.01em; }
.doc-side h4:first-child { margin-top: 0; }
.doc-side a, .doc-side-m a { display: block; padding: 6px 10px; margin: 0 -10px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.doc-side a:hover { background: rgba(14, 14, 20, 0.05); color: var(--ink); }
.doc-side a[aria-current="page"], .doc-side-m a[aria-current="page"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.doc-side-m { display: none; }
.doc-toc p { font-size: 12.5px; font-weight: 650; color: var(--ink-3); margin: 0 0 8px; }
.doc-toc a { display: block; font-size: 13.5px; color: var(--ink-3); text-decoration: none; padding: 4px 0; line-height: 1.35; }
.doc-toc a:hover { color: var(--ink); }
.doc-prose { background: #fff; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 52px); box-shadow: var(--shadow); min-width: 0; font-size: 16.5px; line-height: 1.68; color: var(--ink-2); }
.doc-prose > :first-child { margin-top: 0; }
.doc-prose h2 { font-size: 25px; line-height: 1.2; letter-spacing: -0.025em; color: var(--ink); margin: 44px 0 12px; font-weight: 650; scroll-margin-top: 90px; }
.doc-prose h3 { font-size: 19px; letter-spacing: -0.015em; color: var(--ink); margin: 30px 0 8px; font-weight: 650; scroll-margin-top: 90px; }
.doc-prose h4 { font-size: 16.5px; color: var(--ink); margin: 24px 0 6px; font-weight: 650; }
.doc-prose p { margin: 0 0 14px; }
.doc-prose strong, .doc-prose b { color: var(--ink); font-weight: 650; }
.doc-prose a { color: #4b3fd6; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc-prose a:hover { color: var(--ink); }
.doc-prose ul, .doc-prose ol { margin: 0 0 16px; padding-inline-start: 1.3em; }
.doc-prose li { margin: 6px 0; }
.doc-prose li::marker { color: #8a7cf0; }
.doc-prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.doc-prose blockquote { margin: 18px 0; padding: 14px 18px; background: var(--bg); border-radius: 14px; color: var(--ink-2); }
.doc-prose code { font: 500 0.88em/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: #f0eff6; color: #2f2a6b; padding: 2px 6px; border-radius: 6px; }
.doc-prose pre { background: #0e0e14; color: #eceaf7; border-radius: 16px; padding: 18px 20px; overflow-x: auto; margin: 0 0 18px; line-height: 1.55; }
.doc-prose pre code { background: none; color: inherit; padding: 0; font-size: 13.5px; white-space: pre; }
.doc-prose .code-label { margin: 18px 0 6px; font-size: 12.5px; font-weight: 650; color: var(--ink-3); letter-spacing: 0.02em; }
.doc-prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14.5px; display: block; overflow-x: auto; }
.doc-prose th, .doc-prose td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-prose th { color: var(--ink); font-weight: 650; background: var(--bg); }
.doc-prose details { background: var(--bg); border-radius: 14px; padding: 12px 16px; margin: 0 0 12px; }
.doc-prose summary { cursor: pointer; font-weight: 600; color: var(--ink); }
@media (max-width: 1080px) {
  .doc-grid { grid-template-columns: 200px minmax(0, 1fr); }
  .doc-toc { display: none; }
}
@media (max-width: 760px) {
  .doc-grid { grid-template-columns: 1fr; gap: 14px; }
  .doc-side { display: none; }
  .doc-side-m { display: block; background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow); }
  .doc-side-m summary { cursor: pointer; font-weight: 650; color: var(--ink); }
  .doc-side-m nav { padding: 8px 0 4px; }
  .doc-side-m h4 { font-size: 12.5px; color: var(--ink-3); margin: 14px 0 4px; }
  .doc-prose { padding: 22px 18px; font-size: 16px; }
}

/* A section's front page: its documents as cards. */
.idx-h { font-size: 15px; font-weight: 650; color: var(--ink-3); margin: 40px 0 14px; letter-spacing: -0.005em; }
.idx-h:first-child { margin-top: 0; }
.idx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .idx-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .idx-grid { grid-template-columns: 1fr; } }
.idx-card { position: relative; display: block; background: #fff; border-radius: 22px; padding: 22px 22px 46px; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease; }
.idx-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.idx-t { display: block; font-size: 18px; font-weight: 650; letter-spacing: -0.02em; color: var(--ink); }
.idx-d { display: block; margin-top: 6px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.idx-go { position: absolute; inset-inline-start: 22px; bottom: 16px; color: #6a5cf0; font-weight: 700; }
[dir="rtl"] .idx-go { transform: scaleX(-1); }

/* Drawn by hand, alive (pencil.py; the pencil scene of Apple's May 2024 film) ---------------------------------- */
:root {
  /* Paper grain: light speckles that darken a colour a little, here and there, as an airbrush does. */
  --noise: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='.42' intercept='.74'/%3E%3CfeFuncG type='linear' slope='.42' intercept='.74'/%3E%3CfeFuncB type='linear' slope='.42' intercept='.74'/%3E%3CfeFuncA type='linear' slope='0' intercept='1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.pl-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* The logo */
.elo-logo { display: block; height: 36px; width: auto; overflow: visible; }
.foot .elo-logo { height: 58px; }
.elo-logo path, .elo-logo circle, .elo-logo ellipse { stroke-linecap: round; stroke-linejoin: round; }
.pl-sketch > * { fill: none; stroke: #3a3a46; stroke-width: 1.3; stroke-opacity: 0.55; stroke-dasharray: 1 1.02; }
.pl-ink > * { fill: none; stroke: #1b1b24; stroke-width: 20.6; stroke-dasharray: 1 1.02; }
.pl-colour > * { fill: none; stroke-width: 17; stroke-dasharray: 1 1.02; }
.pl-e { stroke: url(#pl-g-e); }
.pl-l { stroke: url(#pl-g-l); }
.pl-shade > * { fill: none; stroke: url(#pl-g-shade); stroke-width: 17; stroke-dasharray: 1 1.02; }
.pl-arm ellipse { fill: #f8e9d6; stroke: #1b1b24; stroke-width: 2.1; }
.pl-o-ink { fill: #1b1b24; stroke: #1b1b24; stroke-width: 1.6; }
.pl-o { fill: url(#pl-g-o); }
.pl-o-hatch { opacity: 0.42; }
.pl-eyes circle { fill: #15151d; }
.pl-smile { fill: none; stroke: #15151d; stroke-width: 2.2; }
.pl-hatch { opacity: 0.85; }
.pl-eyes { transform-box: fill-box; transform-origin: center; animation: pl-blink 5.2s 3.2s infinite; }
.pl-arm-r { transform-box: fill-box; transform-origin: 30% 15%; animation: pl-wave 8s 4s infinite; }
@keyframes pl-blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.12); } }
@keyframes pl-wave { 0%, 82%, 100% { transform: rotate(0deg); } 86% { transform: rotate(-48deg); } 90% { transform: rotate(-22deg); } 94% { transform: rotate(-48deg); } }
/* It draws itself: graphite first, then ink and colour along the strokes, the hatching, and the Elo pops in. */
.js .elo-logo:not(.drawn) { opacity: 0; animation: pl-show 0s 3s forwards; }
.elo-logo.drawn .pl-sketch > * { animation: pl-draw 0.75s cubic-bezier(0.5, 0, 0.3, 1) both; }
.elo-logo.drawn .pl-sketch > :nth-child(2) { animation-delay: 0.16s; }
.elo-logo.drawn .pl-sketch > :nth-child(3) { animation-delay: 0.32s; }
.elo-logo.drawn :is(.pl-ink, .pl-colour, .pl-shade) > * { animation: pl-draw 0.8s 0.55s cubic-bezier(0.6, 0, 0.25, 1) both; }
.elo-logo.drawn :is(.pl-ink, .pl-colour, .pl-shade) > :nth-child(2) { animation-delay: 0.78s; }
.elo-logo.drawn .pl-hatch { animation: pl-fade 0.5s 1.35s both; }
.elo-logo.drawn .pl-elo { transform-box: fill-box; transform-origin: 50% 65%; animation: pl-pop 0.6s 1.1s cubic-bezier(0.2, 0.9, 0.3, 1.4) both; }
.elo-logo.drawn .pl-sketch { animation: pl-settle 0.8s 1.6s both; }
@keyframes pl-draw { from { stroke-dashoffset: 1.02; } to { stroke-dashoffset: 0; } }
@keyframes pl-fade { from { opacity: 0; } }
@keyframes pl-show { to { opacity: 1; } }
@keyframes pl-pop { from { opacity: 0; transform: scale(0.35) rotate(-14deg); } }
@keyframes pl-settle { to { opacity: 0.5; } }
.brand:hover .elo-logo .pl-arm-r { animation: pl-wave-now 1.1s ease-in-out; }
@keyframes pl-wave-now { 0%, 100% { transform: rotate(0deg); } 25%, 75% { transform: rotate(-48deg); } 50% { transform: rotate(-20deg); } }

/* The colourful words: a pencil outline first, the colour sweeping in, grain, a hand drawn underline. */
.display, .title, .doc-title, .info-name { position: relative; }
.js .grad.pl {
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: 0 50%;
  -webkit-text-stroke: 1.2px rgba(27, 27, 36, 0.55);
  filter: url(#pl-text);
  transition: background-size 1.15s cubic-bezier(0.6, 0, 0.2, 1) 0.15s, -webkit-text-stroke-color 0.9s ease 1.25s;
}
[dir="rtl"] .js .grad.pl { background-position: 100% 50%; }
.js .grad.pl.on { background-size: 100% 100%; -webkit-text-stroke-color: rgba(27, 27, 36, 0.2); }
.pl-under { position: absolute; pointer-events: none; overflow: visible; z-index: 1; }
.pl-under path { fill: none; stroke: url(#pl-g-word); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1.02; stroke-dashoffset: 1.02; }
.pl-under.on path { animation: pl-draw 0.75s 1.05s cubic-bezier(0.5, 0, 0.3, 1) both; }
.pl-under.on path + path { animation-delay: 1.5s; animation-duration: 0.35s; }
.dark .pl-under path { stroke: #c9b8ff; }

/* Grain on the coloured panels: airbrushed, not printed. */
.art-lilac { background: var(--noise), var(--lilac); background-size: 180px 180px, 100% 100%; background-blend-mode: multiply, normal; }
.art-sky { background: var(--noise), var(--skyc); background-size: 180px 180px, 100% 100%; background-blend-mode: multiply, normal; }
.art-mint { background: var(--noise), var(--mint); background-size: 180px 180px, 100% 100%; background-blend-mode: multiply, normal; }
.art-peach { background: var(--noise), var(--peach); background-size: 180px 180px, 100% 100%; background-blend-mode: multiply, normal; }
.sky { background-image: var(--noise), var(--sky); background-size: 180px 180px, 100% 100%; background-blend-mode: multiply, normal; }
.group-stage { background-image: var(--noise), linear-gradient(180deg, #ddd6f5 0%, #c9bfeb 100%); background-size: 180px 180px, 100% 100%; background-blend-mode: multiply, normal; }
.cta-card { background-image: var(--noise), linear-gradient(160deg, #cbbff3 0%, #e7e1fb 100%); background-size: 180px 180px, 100% 100%; background-blend-mode: multiply, normal; }
.card-stage { background-image: var(--noise), linear-gradient(180deg, color-mix(in srgb, var(--tint) 45%, #fff) 0%, var(--tint) 100%); background-size: 180px 180px, 100% 100%; background-blend-mode: multiply, normal; }

/* Pencil frames: drawn round a panel when it comes into view, round a card or a button when you point at it. */
.pl-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 3; }
.pl-frame path { fill: none; stroke: #1b1b24; stroke-width: 1.4; stroke-opacity: 0.6; stroke-linecap: round; stroke-dasharray: 1 1.02; stroke-dashoffset: 1.02; filter: url(#pl-rough); }
.pl-frame path + path { stroke-opacity: 0.32; stroke-width: 1; }
.pl-frame.on path { animation: pl-draw 1.1s cubic-bezier(0.5, 0, 0.3, 1) both; }
.pl-frame.on path + path { animation-delay: 0.35s; }
.art, .btn-dark, .elo-card .card-stage { position: relative; }
.btn-dark .pl-frame path { stroke: #1b1b24; stroke-opacity: 0.55; }
.btn-dark .pl-frame { inset: -6px -8px; width: calc(100% + 16px); height: calc(100% + 12px); }
.btn-dark .pl-frame.on path { animation-duration: 0.55s; }
.btn-dark .pl-frame.on path + path { animation-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  .elo-logo, .elo-logo * { animation: none !important; }
  .js .elo-logo:not(.drawn) { opacity: 1; }
  .js .grad.pl { background-size: 100% 100%; transition: none; filter: none; -webkit-text-stroke-color: rgba(27, 27, 36, 0.2); }
  .pl-under path, .pl-frame path { stroke-dashoffset: 0; animation: none !important; }
}

/* The home page opens on the logo drawing itself, big, as the event film opens on Apple's. */
.hero-logo { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero-logo .elo-logo { height: clamp(84px, 11vw, 132px); }
.hero-tag { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.01em; }
.js .hero-tag { opacity: 0; animation: pl-fade-in 0.6s 1.7s both; }
@keyframes pl-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.p-home .hero .display { margin-top: 26px; }
