/* Layout: one reading column on narrow screens (the name, centered, then the text); two columns from 820px (see the end of this sheet). */
:root {
  /* single night-sky look, by choice: the page stays dark in every viewer theme */
  color-scheme: dark;
  --bg: #0A0F24;
  --bg-glow: #1A2350;
  --surface: #121935;
  --surface-2: #1B2447;
  --ink: #E7EBF8;
  --muted: #9BA7CA;
  --line: #2A3561;
  --accent: #9DB4FF;
  --accent-ink: #0A0F24;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'DejaVu Sans Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
body {
  background: radial-gradient(900px 420px at 50% 0, var(--bg-glow), transparent 72%) no-repeat var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}
.app {
  max-width: 640px;
  margin: 0 auto;
  padding-inline: 16px;
  padding-block: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
button { font: inherit; color: inherit; cursor: pointer; }
.eyebrow { margin: 0; }
h1 {
  margin: 0;
  font-size: 2.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: center;
}
/* the text: one thought to a paragraph */
.story { display: flex; flex-direction: column; gap: 14px; max-width: 60ch; margin-inline: auto; }
.story p { margin: 0; font-size: 1rem; line-height: 1.65; color: color-mix(in srgb, var(--ink) 86%, var(--muted)); }
.app.about .fineprint { margin-inline: auto; }
/* the text ends on two centred lines */
.story h2 { margin: 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.story ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 10px; }
.story li { font-size: 1rem; line-height: 1.65; color: color-mix(in srgb, var(--ink) 86%, var(--muted)); }
.story li::marker { color: var(--accent); }
.story li strong { color: var(--ink); font-weight: 600; }
.story .verse { margin-top: 6px; text-align: center; font-size: 1.06rem; color: var(--ink); }
.fineprint { margin: 0; font-size: 0.82rem; color: var(--muted); max-width: 60ch; }
.legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.62rem;   /* small enough that the longest translation stays clearly shorter than the company name */
  color: var(--muted);
  text-align: center;
}
.legal p { margin: 0; }
.legal .org {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink);
}

/* the language drop-down (a flag) sits in the bar across the top. Moving between pages is done from the bar along the bottom
   on phones and tablets, and from the bar across the top on computers (see the end of this sheet). */
.app > header { display: block; }
.app > header::after { content: ""; display: block; clear: both; }
.app > header h1 + .lede, .app > header .titleline + .lede { margin-top: 6px; }
.tools { float: right; display: flex; flex-direction: column; gap: 6px; margin: 0 0 8px 14px; }
.langpick { position: relative; }
.langbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}
.langbtn[aria-expanded="true"] { border-color: var(--accent); }
/* the one line at the bottom of every page sits in the middle, over the company name */
.fineprint, #awScreen .fineprint { max-width: none; margin-inline: auto; text-align: center; }
/* a short line set beside the title */
.titleline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.titleline .eyebrow { font-size: 0.64rem; letter-spacing: 0.06em; white-space: nowrap; }
.langpick svg { display: block; width: 26px; height: 18px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16); }
.langmenu {
  position: absolute;
  z-index: 4;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.langmenu button {
  display: flex;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}
.langmenu button:hover { background: var(--surface-2); }
.langmenu button[aria-selected="true"] { background: var(--surface-2); border-color: var(--accent); }
.langbtn:focus-visible, .langmenu button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* longer words in other languages still fit the tabs on narrow phones */
@media (max-width: 380px) { .tab { padding: 10px 3px; gap: 5px; font-size: 0.84rem; } }

/* ================= website format =================
   A bar across the top of every page: the mark and the name on the left, the flag in the right corner.
   On phones and tablets the pages run along the bottom, each a sign over its name; a play bar that sticks
   to the bottom of a page rests on top of them (--dock-bottom). On computers the pages move up into the
   bar across the top. */
:root { --nav-h: 56px; --tabbar-h: 60px; --dock-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
body { padding-top: var(--nav-h); padding-bottom: var(--tabbar-h); }

.topbar {
  position: fixed;
  z-index: 6;
  top: 0;
  left: 0;
  right: 0;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.topbar-in { display: flex; align-items: center; gap: 10px; height: var(--nav-h); max-width: 1200px; margin: 0 auto; padding-inline: 16px; }
.brand { flex: none; display: flex; align-items: center; gap: 11px; color: var(--ink); font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; border-radius: 8px; }
.brandmark { display: block; width: auto; height: 28px; overflow: visible; }
.brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.topbar .tools { flex: none; float: none; margin: 0 0 0 auto; }

/* the pages, along the bottom */
.navlinks {
  position: fixed;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  height: calc(var(--tabbar-h) - 1px);   /* with its top line, the bar is --tabbar-h tall */
  padding: 0 max(6px, calc(50% - 280px)) env(safe-area-inset-bottom, 0px);
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.navlinks a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  border-radius: 10px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.navlinks a svg { display: block; width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.navlinks a:hover { color: var(--ink); }
.navlinks a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.navlinks a[aria-current="page"] svg { stroke-width: 2.1; }
.navlinks a:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
/* a dot on Account says someone is signed in */
.navlinks a[data-in="true"]::after { content: ""; position: absolute; top: 7px; left: calc(50% + 6px); width: 8px; height: 8px; border: 2px solid var(--surface); border-radius: 50%; background: var(--ok, #5FD3C0); }
/* six names side by side: smaller letters on narrower phones, so the longest (Générateur, Protocolos) still fit */
@media (max-width: 380px) { .navlinks { padding-inline: 2px; } .navlinks a { font-size: 0.64rem; letter-spacing: -0.01em; } }
@media (max-width: 340px) { .navlinks a { font-size: 0.58rem; } .navlinks a svg { width: 23px; height: 23px; } }

/* computers (a wide screen worked with a mouse or trackpad): the pages sit in the bar across the top */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  :root { --nav-h: 64px; --dock-bottom: env(safe-area-inset-bottom, 0px); }
  body { padding-bottom: 0; }
  .topbar { background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .topbar-in { gap: 14px; padding-inline: 32px; }
  .brandmark { height: 30px; }
  .topbar .tools { margin-left: 0; }
  .navlinks { position: static; display: flex; gap: 2px; height: auto; margin-left: auto; padding: 0; border: 0; background: none; }
  .navlinks a { flex-direction: row; gap: 8px; padding: 8px 13px; border-radius: 8px; font-size: 0.93rem; }
  .navlinks a svg { display: none; }
  .navlinks a:hover { background: var(--surface); }
  .navlinks a[aria-current="page"] { background: var(--surface-2); }
  .navlinks a:focus-visible { outline-offset: 3px; }
  .navlinks a[data-in="true"]::after { position: static; border: 0; }
}

/* the opening words of the page: the name, then the first thought, a little larger than the text that follows */
.app.about > header { display: flex; flex-direction: column; gap: 20px; margin-bottom: -6px; }
.app.about > header::after { content: none; }
.app.about .lead { margin: 0 auto; max-width: 60ch; font-size: 1.12rem; line-height: 1.55; color: var(--ink); }
.kicker, .wave { display: none; }

/* Below 820px the same opening as on a computer, stacked: the label, the name, the first thought and the wave,
   then the text, all aligned to the left. */
@media (max-width: 819.98px) {
  body { background: radial-gradient(900px 420px at 50% 0, var(--bg-glow), transparent 72%) no-repeat var(--bg); }
  .app.about { padding-top: 34px; }
  .app.about > header { gap: 0; margin: 0 0 6px; }
  .kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--accent); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }
  .kicker::before { content: ""; flex: none; width: 24px; height: 1px; background: currentColor; }
  .app.about h1 { font-size: clamp(2.5rem, 11vw, 3rem); letter-spacing: -0.025em; text-align: left; }
  .app.about .lead { max-width: 30ch; margin: 18px 0 0; font-size: clamp(1.22rem, 5.4vw, 1.4rem); line-height: 1.4; letter-spacing: -0.01em; text-wrap: pretty; }
  .wave { display: block; width: 100%; max-width: 460px; height: auto; margin: 28px 0 0; overflow: visible; }
  .app.about .story { margin: 0; gap: 18px; }
  .app.about .story .verse br { display: none; }
  .app.about .story .verse .l2::before { content: " "; }
  .app.about .story p { font-size: 1.02rem; line-height: 1.7; }
  .app.about .story .verse { margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); text-align: left; font-size: 1.14rem; line-height: 1.5; color: var(--ink); }
  .app.about > .fineprint { margin-top: 36px; }
}

/* From 820px the page opens into two columns: the name, the first thought and a wave on the left;
   the text on the right. */
@media (min-width: 820px) {
  body { background: radial-gradient(1400px 520px at 50% 0, var(--bg-glow), transparent 72%) no-repeat var(--bg); }
  .app.about { max-width: 1200px; padding-inline: clamp(20px, 3vw, 32px); padding-block: 64px 40px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(36px, 6vw, 88px); row-gap: 0; align-items: start; }
  .app.about > header { grid-column: 1; grid-row: 1; gap: 0; margin: 0; }
  .kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--accent); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; }
  .kicker::before { content: ""; flex: none; width: 28px; height: 1px; background: currentColor; }
  .app.about h1 { font-size: clamp(2.8rem, 5.2vw, 3.8rem); letter-spacing: -0.025em; text-align: left; }
  .app.about .lead { max-width: 26ch; margin: 26px 0 0; font-size: clamp(1.3rem, 2.1vw, 1.6rem); line-height: 1.4; letter-spacing: -0.01em; text-wrap: pretty; }
  .wave { display: block; width: 100%; max-width: 460px; height: auto; margin-top: 44px; overflow: visible; }
  .app.about .story { grid-column: 2; grid-row: 1; max-width: none; margin: 0; padding-top: 14px; gap: 20px; }
  .app.about .story p { font-size: 1.08rem; line-height: 1.7; }
  .app.about .story .verse { margin-top: 10px; padding-top: 28px; border-top: 1px solid var(--line); text-align: left; font-size: 1.2rem; line-height: 1.5; color: var(--ink); }
  .app.about > .fineprint { grid-column: 1 / -1; grid-row: 2; margin-top: 72px; }
  .app.about > .legal { grid-column: 1 / -1; grid-row: 3; margin-top: 16px; }
}
/* the left column stays in view while the text scrolls (on screens tall enough to hold it) */
@media (min-width: 820px) and (min-height: 700px) {
  .app.about > header { position: sticky; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 40px); }
}

/* the tagline under the wave */
.app.about .tagline { width: 100%; max-width: 460px; text-align: center; margin: 22px 0 0; color: var(--accent); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
@media (min-width: 820px) { .app.about .tagline { margin-top: 30px; font-size: 0.86rem; } }

/* 19 Oct 2026 · Science of Frequency article */
.app.science .story { padding-bottom: 8px; }
.app.science .story h2 { font-size: clamp(1.6rem, 5vw, 2rem); letter-spacing: -0.015em; }
.app.science .story h3 { margin: 14px 0 0; font-size: 1.08rem; font-weight: 600; color: var(--accent); }
.app.science .story ul.bands { margin-top: 8px; gap: 4px; font-family: var(--font-mono, inherit); }
.app.science .story ul.bands li { font-size: 0.94rem; }
.app.about.science > header { min-height: 0; }
/* the article fills the whole page width (no title column) */
.app.about.science { display: block; }
.app.about.science .story { max-width: none; margin: 0; padding-top: 8px; }
@media (min-width: 820px) {
  .app.about.science .story { grid-column: auto; grid-row: auto; padding-top: 0; }
  .app.about.science > .fineprint { margin-top: 72px; }
}
/* one article after another, with a line between them */
.app.science .science-article + .science-article { margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--line); }
/* a picture at the top of an article */
.app.science .science-hero { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); margin: 0 0 12px; }
.app.science .science-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 820px) { .app.science .science-hero { aspect-ratio: 21 / 8; margin-bottom: 20px; } }

/* 19 Oct 2026 · Science of Frequency: the topics, each with its picture */
.sci-hub { display: flex; flex-direction: column; gap: 10px; }
.sci-hub h1 { margin: 0; font-size: clamp(2rem, 7vw, 3rem); letter-spacing: -0.025em; text-align: left; }
.sci-sub { margin: 0 0 18px; color: var(--muted); font-size: 1.05rem; }
.sci-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .sci-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .sci-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sci-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface, #0E1530); color: var(--ink); text-decoration: none; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
a.sci-card:hover, a.sci-card:focus-visible { transform: translateY(-3px); border-color: var(--k); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--k); outline: none; }
.sci-card.soon { opacity: 0.8; }
.sci-art { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #071433; }
.sci-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.sci-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 20, 51, 0) 45%, rgba(7, 20, 51, 0.55) 100%); box-shadow: inset 0 -2px 0 var(--k); pointer-events: none; }
a.sci-card:hover .sci-art img { transform: scale(1.05); }
.sci-tag { position: absolute; z-index: 1; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(5, 10, 28, 0.85); border: 1px solid var(--line); font: 600 0.7rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--k); }
.sci-cap { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.sci-cap strong { font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.sci-cap strong::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--k); box-shadow: 0 0 8px var(--k); vertical-align: 2px; }
.sci-cap small { font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.74rem; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .sci-card, .sci-art img { transition: none; } }

/* 19 Oct 2026 · Cymatics: the two water patterns side by side */
.cym-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 3vw, 32px); margin: 8px 0 0; }
.cym-box { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cym-box canvas { display: block; width: 100%; max-width: 380px; aspect-ratio: 1; border-radius: 50%; background: #050814; box-shadow: 0 0 0 1px var(--line), 0 0 40px rgba(95, 230, 255, 0.08); transition: box-shadow 0.6s ease; filter: drop-shadow(0 0 6px rgba(95, 230, 255, 0.25)); -webkit-touch-callout: none; user-select: none; }
.cym-box.on canvas { box-shadow: 0 0 0 1px #5FE6FF, 0 0 60px rgba(95, 230, 255, 0.28); }
.cym-play { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface, #0E1530); color: var(--ink); font: 600 1rem/1 var(--font-mono, monospace); letter-spacing: 0.04em; cursor: pointer; }
.cym-play:hover, .cym-play:focus-visible, .cym-play[aria-pressed="true"] { border-color: #5FE6FF; color: #5FE6FF; outline: none; }
.cym-play svg { width: 18px; height: 18px; fill: currentColor; }
.cym-play .i-stop, .cym-play[aria-pressed="true"] .i-play { display: none; }
.cym-play[aria-pressed="true"] .i-stop { display: block; }
.app.science .story .cym-note { margin-top: -4px; text-align: center; font-size: 0.8rem; color: var(--muted); }
@media (min-width: 1100px) { .sci-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.app.science .science-hero.contain { background: #050814; }
.app.science .science-hero.contain img { object-fit: contain; }

/* 19 Oct 2026 · harmonic table on the 432 Hz page */
.harm-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.harm { width: 100%; border-collapse: collapse; font-family: var(--font-mono, monospace); font-size: 0.95rem; text-align: center; }
.harm th { padding: 10px 8px; font-weight: 600; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.harm td { padding: 9px 8px; color: var(--ink); border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); white-space: nowrap; }
.harm tbody tr:last-child td { border-bottom: 0; }
.harm td:nth-child(2), .harm td:nth-child(3), .harm th:nth-child(2), .harm th:nth-child(3) { background: rgba(111, 214, 255, 0.06); }
.harm b.nine { color: #6FD6FF; font-size: 1.05em; text-shadow: 0 0 8px rgba(111, 214, 255, 0.6); }
.harm b.dr { color: var(--muted); font-weight: 600; }
@media (max-width: 480px) { .harm { font-size: 0.82rem; } .harm td, .harm th { padding: 8px 5px; } }
.app.science .science-hero.contain.black { background: #000; }

/* 19 Oct 2026 · Circle of Fifths: a moving circle (orbit, star and a light that walks the fifths) */
.app.science .cof-hero { aspect-ratio: auto; display: grid; place-items: center; padding: clamp(10px, 3vw, 28px); background: radial-gradient(closest-side, #121a44, #050814 90%); }
.cof { display: block; width: 100%; max-width: 640px; height: auto; overflow: visible; }
.cof text { font-family: var(--font-sans, Inter, system-ui, sans-serif); user-select: none; -webkit-user-select: none; }
.cof-k { font-size: 40px; font-weight: 700; fill: #EAF0FF; animation: cofLit 36s linear infinite; animation-delay: calc(var(--d) * 3s - 36s); }
.cof-m { font-size: 22px; font-weight: 500; fill: #A9B8E8; animation: cofLitM 36s linear infinite; animation-delay: calc(var(--d) * 3s - 36s); }
.cof-c { font-family: var(--font-mono, monospace) !important; font-size: 13px; letter-spacing: .08em; fill: #F2B84B; fill-opacity: .8; }
.cof-c.a { font-size: 11px; fill-opacity: .6; }
.cof-mark { font-family: var(--font-mono, monospace) !important; font-size: 12px; letter-spacing: .3em; fill: #fff; fill-opacity: .35; }
.cof-orbit, .cof-star, .cof-inner, .cof-pulse { transform-origin: 500px 500px; }
.cof-orbit { animation: cofSpin 120s linear infinite; }
.cof-inner { animation: cofSpin 60s linear infinite reverse; }
.cof-star { animation: cofSpin 90s linear infinite reverse; }
.cof-pulse { animation: cofSpin 36s linear infinite; }
.cof-dot { transform-box: fill-box; transform-origin: center; animation: cofDot 36s ease-out infinite; animation-delay: calc(var(--d) * 3s - 36s); }
.cof-w { animation: cofWedge 36s linear infinite; animation-delay: calc(var(--d) * 3s - 36s); }
@keyframes cofSpin { to { transform: rotate(360deg); } }
@keyframes cofLit { 0% { fill: #fff; filter: drop-shadow(0 0 10px #6FD6FF); } 7% { fill: #EAF0FF; filter: none; } 100% { fill: #EAF0FF; } }
@keyframes cofLitM { 0% { fill: #fff; } 7%, 100% { fill: #A9B8E8; } }
@keyframes cofDot { 0% { transform: scale(1.55); } 8%, 100% { transform: scale(1); } }
@keyframes cofWedge { 0% { fill-opacity: .55; } 8%, 100% { fill-opacity: .14; } }
@media (prefers-reduced-motion: reduce) { .cof * { animation: none !important; } }

/* 19 Oct 2026 · the 12 notes, found one 3rd harmonic at a time (each chip lights in turn, like the circle) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: baseline; gap: 6px; min-width: 52px; justify-content: center; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface, #0E1530); font: 700 1.05rem/1 var(--font-sans, inherit); color: var(--ink); animation: chipLit 36s linear infinite; animation-delay: calc(var(--d) * 3s - 36s); }
.chip small { font: 600 0.68rem/1 var(--font-mono, monospace); color: #F2B84B; }
.chip.back { border-style: dashed; opacity: .75; animation: none; }
.chips.chroma .chip { min-width: 44px; }
@keyframes chipLit { 0% { border-color: #6FD6FF; box-shadow: 0 0 16px rgba(111, 214, 255, .55); color: #fff; } 8%, 100% { border-color: var(--line); box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .chip { animation: none; } }
/* on the fifths table the 432 columns are 3rd and 4th */
.app.science #circle-of-fifths .harm td:nth-child(2), .app.science #circle-of-fifths .harm th:nth-child(2) { background: none; font-weight: 700; }
.app.science #circle-of-fifths .harm td:nth-child(3), .app.science #circle-of-fifths .harm td:nth-child(4), .app.science #circle-of-fifths .harm th:nth-child(3), .app.science #circle-of-fifths .harm th:nth-child(4) { background: rgba(111, 214, 255, 0.06); }
.harm .nw { font-size: 0.8em; color: var(--muted); }
.app.science #circle-of-fifths .harm td:nth-child(6) b.nine { color: var(--muted); text-shadow: none; font-size: 1em; }

/* 19 Oct 2026 · Harmonic Series: the vibrating string, each harmonic moves and can be heard */
.hs-wrap { border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(120% 90% at 60% 40%, #0F1740, #050814 80%); padding: clamp(6px, 2vw, 18px); overflow: hidden; }
.hs { display: block; width: 100%; height: auto; }
.hs text { font-family: var(--font-sans, Inter, system-ui, sans-serif); user-select: none; -webkit-user-select: none; }
.hs-t1 { font-size: 22px; font-weight: 700; fill: #EAF0FF; }
.hs-t2 { font-size: 15px; fill: #9FB0DA; }
.hs-f { font-size: 14px; font-weight: 700; fill: var(--k); }
.hs-r { font-family: var(--font-mono, monospace) !important; font-size: 13px; fill: #9FB0DA; }
.hs-mark { font-family: var(--font-mono, monospace) !important; font-size: 13px; letter-spacing: .3em; fill: #fff; fill-opacity: .3; }
.hs-hit { fill: transparent; transition: fill .3s ease; }
.hs-row { cursor: pointer; outline: none; }
.hs-row:hover .hs-hit, .hs-row:focus-visible .hs-hit { fill: rgba(111, 214, 255, .05); }
.hs-row.on .hs-hit { fill: rgba(111, 214, 255, .09); }
.hs-ghost { fill: none; stroke: var(--k); stroke-opacity: .18; stroke-width: 1; }
.hs-str { fill: color-mix(in srgb, var(--k) 14%, transparent); stroke: var(--k); stroke-width: 2.2; stroke-linejoin: round; }
.hs-vib { animation: hsVib calc(1.6s / var(--n)) ease-in-out infinite alternate; }
.hs-row.on .hs-vib { animation-duration: calc(0.5s / var(--n)); }
.hs-row.on .hs-str { filter: drop-shadow(0 0 6px var(--k)); stroke-width: 3; }
.hs-row.on .hs-t1 { fill: var(--k); }
@keyframes hsVib { from { transform: scaleY(1); } to { transform: scaleY(-1); } }
.hs-actions { display: flex; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .hs-vib { animation: none; } }
@media (max-width: 600px) {
  .hs-t1 { font-size: 36px; } .hs-t2 { display: none; }
  .hs-f { font-size: 22px; } .hs-r { font-size: 24px; } .hs-r.minor { display: none; } .hs-mark { font-size: 20px; }
}

/* 19 Oct 2026 · Melodic Intervals: keyboard explorer and chord builder */
.tool { display: flex; flex-direction: column; gap: 14px; padding: clamp(12px, 3vw, 22px); border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(120% 100% at 50% 0, #121a44, #070b1c 85%); }
.kb-svg { display: block; width: 100%; max-width: 640px; margin: 0 auto; height: auto; }
.kb-w { fill: #E3E9F8; stroke: #8E9BC4; stroke-width: 1; transition: fill .25s ease; }
.kb-b { fill: #10152E; stroke: #000; transition: fill .25s ease; }
.kb-l { font: 600 14px var(--font-sans, system-ui); fill: #5B6690; pointer-events: none; }
.kb-w.on { fill: #6FD6FF; animation: kbIn .35s ease both; } .kb-b.on { fill: #3C8DFF; animation: kbIn .35s ease both; }
.kb-w.on.root { fill: #9B6BFF; } .kb-b.on.root { fill: #7A4DFF; }
@keyframes kbIn { from { fill-opacity: .2; } to { fill-opacity: 1; } }
.ivx-mode { display: flex; gap: 6px; justify-content: center; }
.ivx-mode button, .ivx-chip { border: 1px solid var(--line); background: var(--surface, #0E1530); color: var(--ink); border-radius: 999px; cursor: pointer; font: 600 0.9rem/1 var(--font-sans, inherit); }
.ivx-mode button { padding: 9px 16px; }
.ivx-mode button[aria-pressed="true"], .ivx-chip[aria-pressed="true"] { border-color: #6FD6FF; color: #6FD6FF; box-shadow: 0 0 14px rgba(111, 214, 255, .35); }
.ivx-chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ivx-chip { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 4px; border-radius: 12px; }
.ivx-chip small { font: 600 0.7rem/1 var(--font-mono, monospace); color: #F2B84B; }
.ivx-chip.wide { padding: 11px 4px; }
.chx-chips { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ivx-info { min-height: 84px; text-align: center; }
.app.science .story .ivx-info p { margin: 0; }
.app.science .story .ivx-name { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.app.science .story .ivx-desc { font-family: var(--font-mono, monospace); font-size: 0.92rem; color: #9FB0DA; margin-top: 6px; }
.app.science .story .ivx-song { font-size: 0.95rem; color: #F2B84B; margin-top: 6px; }
.harm.chords .sym { font-size: 1.05rem; color: #6FD6FF; }
@media (max-width: 600px) { .ivx-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); } .chx-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kb-l { font-size: 18px; } }
/* the live picture: background layer + animation, same 9:5 shape on every screen */
.app.science .science-hero.ivh { position: relative; aspect-ratio: 9 / 5; background: #03060F; }
.app.science .science-hero.ivh img, .app.science .science-hero.ivh canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 19 Oct 2026 · moving pictures at the top of the Science pages (assets/hero-motion.js) */
.app.science .science-hero { position: relative; }
.app.science .science-hero .hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.app.science .science-hero.fx-on img { visibility: hidden; }
.app.science .cof-hero .hero-fx { z-index: 0; } .app.science .cof-hero svg { position: relative; z-index: 1; }

/* 19 Oct 2026 · The Emotional Language of Chords */
.emo-moods { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.emo-mood { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--k) 45%, var(--line)); background: radial-gradient(120% 120% at 0 0, color-mix(in srgb, var(--k) 16%, transparent), var(--surface, #0E1530) 70%); color: var(--ink); text-align: left; cursor: pointer; transition: transform .2s ease, box-shadow .3s ease; }
.emo-mood b { font: 700 1.5rem/1 var(--font-mono, monospace); color: var(--k); }
.emo-mood .n { font-weight: 700; font-size: 0.98rem; }
.emo-mood .w { font-size: 0.88rem; color: #A9B6DC; line-height: 1.4; }
.emo-mood:hover, .emo-mood:focus-visible { transform: translateY(-2px); outline: none; border-color: var(--k); }
.emo-mood[aria-pressed="true"] { border-color: var(--k); box-shadow: 0 0 24px color-mix(in srgb, var(--k) 55%, transparent); }
.emo-list { display: flex; flex-direction: column; gap: 10px; }
.emo-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface, #0E1530); }
.emo-row .emo-play { flex: none; width: 46px; height: 46px; padding: 0; justify-content: center; }
.emo-r { min-width: 0; }
.emo-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.emo-num { font: 600 0.82rem/1 var(--font-mono, monospace); color: #F2B84B; margin-right: 6px; }
.emo-chip { padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line); font: 700 0.95rem/1 var(--font-mono, monospace); color: var(--ink); transition: all .2s ease; }
.emo-chip.on { border-color: #6FD6FF; color: #fff; background: rgba(111, 214, 255, .15); box-shadow: 0 0 14px rgba(111, 214, 255, .5); }
.emo-chips i { font-style: normal; color: var(--muted); }
.app.science .story .emo-d { margin: 6px 0 0; font-size: 0.95rem; color: #A9B6DC; }
.app.science .science-hero.r95 { aspect-ratio: 9 / 5; }
.emo-moods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .emo-moods { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 19 Oct 2026 · Emotional Language of Chords: mood finder and builder */
.emo-feels { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.emo-feel, .emo-btn, .emo-pal button, .emo-opt button { border: 1px solid var(--line); background: var(--surface, #0E1530); color: var(--ink); border-radius: 12px; cursor: pointer; font: 600 0.92rem/1.1 var(--font-sans, inherit); }
.emo-feel { padding: 12px 8px; }
.emo-feel[aria-pressed="true"], .emo-opt button[aria-pressed="true"] { border-color: #6FD6FF; color: #6FD6FF; box-shadow: 0 0 14px rgba(111, 214, 255, .35); }
.emo-find-out { min-height: 70px; padding-top: 4px; }
.emo-slots { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.emo-slot { display: grid; place-items: center; min-height: 52px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font: 600 0.8rem/1 var(--font-mono, monospace); }
.emo-slot.full { border-style: solid; color: var(--ink); font-size: 1rem; }
.emo-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.emo-btn { padding: 10px 16px; }
.emo-pal { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.emo-pal button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px; }
.emo-pal button b { font: 700 0.98rem/1 var(--font-mono, monospace); }
.emo-pal button small { font: 600 0.68rem/1 var(--font-mono, monospace); color: #F2B84B; }
.emo-pal button:active { border-color: #6FD6FF; }
.emo-opts { display: flex; flex-wrap: wrap; gap: 14px 22px; justify-content: center; }
.emo-opt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.emo-opt-t { font: 600 0.78rem/1 var(--font-mono, monospace); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.emo-opt > div { display: flex; gap: 4px; flex-wrap: wrap; }
.emo-opt button { padding: 8px 11px; font-size: 0.85rem; }
@media (max-width: 600px) { .emo-slots, .emo-pal { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 21 Oct 2026 · new Science of Frequency topics */
.sf-pads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 8px 0 4px; }
.sf-pads .cym-play { justify-content: center; padding: 12px 8px; font-size: 0.95rem; }
.sf-pads .cym-play[data-hz="528"] { border-color: rgba(255, 200, 87, 0.55); }
.sf-pads .cym-play[data-hz="528"][aria-pressed="true"] { border-color: #FFC857; color: #FFC857; }
.sch-play { display: flex; justify-content: center; margin: 8px 0 4px; }
.rs-box { margin: 8px 0 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rs-box canvas { display: block; width: 100%; max-width: 760px; aspect-ratio: 16 / 9; border-radius: 16px; background: radial-gradient(ellipse at center, #0B1230, #03050C); box-shadow: 0 0 0 1px var(--line); -webkit-touch-callout: none; user-select: none; }
.rs-box figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rs-link .rs-off, .rs-link[aria-pressed="true"] .rs-on { display: none; }
.rs-link[aria-pressed="true"] .rs-off { display: inline; }
.app.science .science-hero.r32 { aspect-ratio: 3 / 2; }
.app.science .science-hero.r169 { aspect-ratio: 2576 / 1444; }
.nz-pads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 8px 0 12px; }
.nz-pads .cym-play { justify-content: center; padding: 12px 8px; }
.nz-pads .cym-play[aria-pressed="true"], .nz-pads .cym-play:hover { border-color: var(--nc); color: var(--nc); }
.nz-box, .ear-box, .ot-box { margin: 0 0 8px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.nz-box canvas, .ot-box canvas { display: block; width: 100%; max-width: 760px; aspect-ratio: 5 / 2; -webkit-touch-callout: none; user-select: none; border-radius: 16px; background: radial-gradient(ellipse at center, #0B1230, #03050C); box-shadow: 0 0 0 1px var(--line); }
.nz-box figcaption { display: flex; justify-content: space-between; width: 100%; max-width: 760px; font: 500 0.75rem/1 var(--font-mono, monospace); color: var(--muted); }
.ear-box canvas { display: block; width: 100%; max-width: 420px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at center, #0B1230, #03050C); box-shadow: 0 0 0 1px var(--line); }
.ear-ctl, .ot-ctl { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 520px; }
.ear-range, .ot-range { width: 100%; accent-color: #FFC857; }
.app.science .story .ear-ends { display: flex; justify-content: space-between; width: 100%; max-width: 520px; margin: 0; font-size: 0.8rem; color: var(--muted); }
.br-box, .mb-box { margin: 8px 0 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.br-box canvas { display: block; width: 100%; max-width: 380px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at center, #0B1230, #03050C); box-shadow: 0 0 0 1px var(--line); }
.g40-box { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 4px; }
.mb-box canvas { display: block; width: 100%; max-width: 760px; aspect-ratio: 1000 / 640; border-radius: 16px; background: radial-gradient(ellipse at center, #0B1230, #03050C); box-shadow: 0 0 0 1px var(--line); }
.mb-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 760px; }
.mb-chips .cym-play { justify-content: center; padding: 10px 8px; font-size: 0.85rem; text-align: center; }
.mb-chips .cym-play[aria-pressed="true"], .mb-chips .cym-play:hover { border-color: var(--nc); color: var(--nc); }
.app.science .story .mb-txt { max-width: 760px; margin: 0; text-align: center; }
@media (max-width: 520px) { .mb-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mb-scan { margin: 8px 0 0; }
.mb-scan-img { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.mb-scan-img img { display: block; width: 100%; height: auto; }
.mb-scan figcaption { display: grid; grid-template-columns: 1fr 1fr; text-align: center; margin-top: 8px; font-size: 0.85rem; color: var(--muted); }
.mb-box canvas { aspect-ratio: 1000 / 640; }
.mb-scan { max-width: 760px; margin-left: auto; margin-right: auto; }
.mb-scan-img.light { background: #fff; }
.conn-scale { display: flex; align-items: center; gap: 10px; max-width: 520px; margin: 10px auto 0; font-size: 0.8rem; color: var(--muted); }
.conn-scale i { flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #00F0FF, #7F7FFF, #FF00FF); }
.conn-scale i.pet { background: linear-gradient(90deg, #000060, #1E50FF, #00C850, #FFF000, #FF6A00, #FF0028, #FF9AC8); }
.app.science .story ol.steps40 { list-style: none; counter-reset: s40; padding: 0; margin: 8px 0; display: grid; gap: 12px; }
.app.science .story ol.steps40 li { counter-increment: s40; position: relative; padding: 16px 18px 16px 64px; border: 1px solid rgba(127,240,255,0.25); border-radius: 14px; background: linear-gradient(135deg, rgba(14,24,56,0.9), rgba(10,16,40,0.9)); }
.app.science .story ol.steps40 li::before { content: counter(s40); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #3FE3FF; color: #3FE3FF; font: 600 0.95rem/1 var(--font-mono, monospace); box-shadow: 0 0 14px rgba(63,227,255,0.35); }
.app.science .story ol.steps40 li:nth-child(2)::before { border-color: #9D8CFF; color: #9D8CFF; box-shadow: 0 0 14px rgba(157,140,255,0.35); }
.app.science .story ol.steps40 li:nth-child(3)::before { border-color: #5FE6C8; color: #5FE6C8; }
.app.science .story ol.steps40 li:nth-child(4)::before { border-color: #FFC857; color: #FFC857; box-shadow: 0 0 14px rgba(255,200,87,0.35); }
.app.science .story ol.steps40 strong { display: block; margin-bottom: 4px; color: var(--ink); }
.app.science .story ol.steps40 span { color: var(--muted); }
.app.science .story p.proof40 { padding: 14px 18px; border: 1px solid rgba(255,200,87,0.45); border-radius: 14px; background: rgba(255,200,87,0.06); }
.app.science .story p.proof40 strong { display: block; color: #FFC857; margin-bottom: 4px; }
.nums40 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 12px; }
.app.science .story .nums40 p { margin: 0; padding: 16px; border: 1px solid rgba(127,240,255,0.25); border-radius: 14px; background: rgba(14,24,56,0.7); display: flex; flex-direction: column; gap: 6px; }
.nums40 b { font: 600 clamp(1.6rem, 5vw, 2.2rem)/1 var(--font-mono, monospace); color: #3FE3FF; text-shadow: 0 0 18px rgba(63,227,255,0.45); }
.nums40 span { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 560px) { .nums40 { grid-template-columns: 1fr; } }
.app.science .story ol.sources { margin: 4px 0 0; padding-left: 22px; display: grid; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.app.science .story ol.sources a { color: var(--muted); text-decoration: underline; text-decoration-color: rgba(127,240,255,0.35); text-underline-offset: 3px; word-break: break-word; }
.app.science .story ol.sources a:hover { color: #7FF0FF; }
.bs-box, .vb-box { margin: 8px 0 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.bs-box canvas, .vb-box canvas { display: block; width: 100%; max-width: 760px; aspect-ratio: 16 / 7; border-radius: 16px; background: radial-gradient(ellipse at center, #0B1230, #03050C); box-shadow: 0 0 0 1px var(--line); }
.vb-ctl { display: grid; gap: 12px; width: 100%; max-width: 560px; justify-items: center; }
.vb-ctl label { display: grid; grid-template-columns: 110px 1fr 80px; align-items: center; gap: 12px; width: 100%; font-size: 0.9rem; color: var(--muted); }
.vb-ctl input { width: 100%; accent-color: #3FE3FF; }
.vb-ctl b { font: 600 0.95rem/1 var(--font-mono, monospace); color: var(--ink); text-align: right; }

.app.science .science-hero.rth { aspect-ratio: 2576 / 1444; }
/* 21 Oct 2026: quotes (Tesla, Einstein) */
.app.science .story .sci-quote { margin: 0 0 8px; padding: 18px 20px; border-left: 3px solid #FFC857; border-radius: 12px; background: var(--surface, #0E1530); }
.app.science .story .sci-quote p { margin: 0 0 8px; font-size: 1.15rem; font-style: italic; color: var(--ink); }
.app.science .story .sci-quote cite { font: 600 0.85rem/1.2 var(--font-mono, monospace); color: #FFC857; font-style: normal; }
.app.science .story .sci-qnote { font-size: 0.95rem; color: var(--muted); }
.ts-box, .ph-box, .jar-box { margin: 8px 0 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ts-box canvas, .ph-box canvas, .jar-box canvas { display: block; width: 100%; max-width: 760px; aspect-ratio: 16 / 7; border-radius: 16px; background: radial-gradient(ellipse at center, #0B1230, #03050C); box-shadow: 0 0 0 1px var(--line); }
/* 21 Oct 2026: waves page (comparison, equation, spectrum) */
.wv-table { overflow-x: auto; margin: 4px 0 12px; border: 1px solid var(--line); border-radius: 14px; }
.wv-table table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 520px; }
.wv-table th, .wv-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.wv-table tr:last-child td { border-bottom: 0; }
.wv-table th { font: 700 0.8rem/1.2 var(--font-mono, monospace); letter-spacing: 0.06em; text-transform: uppercase; background: var(--surface, #0E1530); }
.wv-table th:nth-child(2) { color: #FFC857; } .wv-table th:nth-child(3) { color: #5FE6FF; }
.wv-table td:first-child { font-weight: 600; color: var(--muted); white-space: nowrap; }
.app.science .story .wv-eq { margin: 8px auto 12px; max-width: 320px; padding: 16px; text-align: center; font: 700 1.6rem/1 var(--font-mono, monospace); color: #7FE3A0; border: 1px solid rgba(127, 227, 160, 0.45); border-radius: 14px; background: var(--surface, #0E1530); box-shadow: 0 0 24px rgba(127, 227, 160, 0.15); }
.em-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 10px; }
.em-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: 12px; background: var(--surface, #0E1530); }
.em-card b { color: var(--c); font-size: 0.98rem; }
.em-card .em-num { font: 600 0.78rem/1.2 var(--font-mono, monospace); color: var(--ink); }
.em-card small { font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.em-bar { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; margin-bottom: 8px; border-radius: 10px; font: 600 0.75rem/1.3 var(--font-mono, monospace); color: #0A0F24; background: linear-gradient(90deg, #FF5C5C, #FF9F43, #FFC857, #7FE3A0, #5FE6FF, #B36BFF); }
/* 21 Oct 2026: photos inside a topic */
.app.science .story .sci-fig { margin: 8px auto 16px; max-width: 280px; text-align: center; }
.app.science .story .sci-fig.wide { max-width: 760px; }
.app.science .story .sci-fig img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.app.science .story .sci-fig figcaption { margin-top: 8px; font-size: 0.82rem; color: var(--muted); }
/* 21 Oct 2026: topics grouped on the Science of Frequency page */
.sci-hub .sci-group { margin: 34px 0 14px; font: 600 0.8rem/1 var(--font-mono, monospace); letter-spacing: 0.18em; text-transform: uppercase; color: #8FB9E6; display: flex; align-items: center; gap: 14px; }
.sci-hub .sci-group::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(143, 208, 255, 0.4), transparent); }
.sci-hub .sci-sub + .sci-group { margin-top: 18px; }
/* 22 Oct 2026: 9 new topics (geometry, atom, fields, quantum locking, Doppler…) */
.geo-box { margin: 8px 0 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.geo-box canvas { display: block; width: 100%; max-width: 760px; aspect-ratio: 16 / 9; border-radius: 16px; background: radial-gradient(ellipse at center, #0B1230, #03050C); box-shadow: 0 0 0 1px var(--line); touch-action: manipulation; }
.geo-box.sq canvas { max-width: 520px; aspect-ratio: 1 / 1; }
.geo-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 760px; }
.geo-chips .cym-play { padding: 9px 14px; font-size: 0.86rem; gap: 6px; }
.geo-chips .cym-play b { font-weight: 600; opacity: 0.7; }
.geo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.geo-hz { font: 600 0.95rem/1 var(--font-mono, monospace); color: var(--ink); }
.geo-hz small { color: var(--muted); font-weight: 500; }
.app.science .story .geo-tip { margin: 0; text-align: center; font-size: 0.9rem; color: var(--muted); }
.hum-pads { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 420px; margin-left: auto; margin-right: auto; }

/* compact tables (no empty gaps, fit on phones) */
.wv-table.fit { max-width: 620px; overflow-x: visible; }
.wv-table.fit table { min-width: 0; }
.wv-table.fit th, .wv-table.fit td { padding: 9px 10px; }
.wv-table.fit td:first-child { white-space: normal; }
@media (max-width: 520px) { .wv-table.fit table { font-size: 0.86rem; } }

/* 23 Oct 2026 · bigger, colourful topic groups on the Science page */
.sci-hub .sci-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.sci-hub .sci-jump a { padding: 9px 16px; border-radius: 999px; font: 600 0.92rem/1.2 var(--font-body); color: #0A0F22; text-decoration: none; background: linear-gradient(90deg, var(--ga), var(--gb)); box-shadow: 0 4px 18px -6px var(--ga); transition: transform .15s ease; }
.sci-hub .sci-jump a:hover, .sci-hub .sci-jump a:focus-visible { transform: translateY(-2px); }
.sci-hub .sci-group { scroll-margin-top: 80px; margin: 52px 0 18px; padding: 0 0 12px 18px; font: 800 clamp(1.6rem, 1.1rem + 2.2vw, 2.5rem)/1.1 var(--font-body); letter-spacing: -0.01em; text-transform: none; color: var(--ga); position: relative; display: block; border-bottom: 2px solid transparent; border-image: linear-gradient(90deg, var(--ga), transparent) 1; }
.sci-hub .sci-group::before { content: ""; position: absolute; left: 0; top: 0.08em; bottom: 14px; width: 6px; border-radius: 6px; background: linear-gradient(180deg, var(--ga), var(--gb)); box-shadow: 0 0 16px var(--ga); }
.sci-hub .sci-group::after { display: none; }
.sci-hub .sci-group span { background: linear-gradient(90deg, var(--ga), var(--gb)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sci-hub .sci-jump + .sci-group { margin-top: 30px; }

/* 23 Oct 2026 · Back button on Science topic pages */
.sci-backbar { display: flex; gap: 10px; align-items: center; margin: 4px 0 14px; position: sticky; top: calc(var(--nav-h, 56px) + env(safe-area-inset-top, 0px) + 8px); z-index: 5; }
.sci-backbar a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px; font: 600 0.95rem/1 var(--font-body); color: var(--ink, #E6EAF2); text-decoration: none; background: rgba(14, 21, 48, 0.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(143, 208, 255, 0.35); transition: border-color .15s, transform .15s; }
.sci-backbar a:hover, .sci-backbar a:focus-visible { border-color: #8FD0FF; transform: translateY(-1px); }
.sci-backbar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sci-backbar .sci-back svg { stroke-width: 2.6; }
.sci-backbar .sci-all { color: #8FD0FF; }


/* 23 Oct Part 2: EEG note, tappable brain map */
.app.science .story .eeg-note { padding: 12px 16px; border-left: 3px solid #3FE3FF; background: rgba(63,227,255,0.06); border-radius: 0 12px 12px 0; }
.app.science .story .eeg-note strong { color: #3FE3FF; }
.mb-box canvas { cursor: pointer; }

/* 23 Oct Part 2: proposal and "today" boxes */
.app.science .story .sci-propose, .app.science .story .sci-today { margin: 18px 0; padding: 14px 18px 6px; border-radius: 16px; }
.app.science .story .sci-propose { border: 1px solid rgba(255,200,87,0.5); background: linear-gradient(135deg, rgba(255,200,87,0.10), rgba(179,107,255,0.08)); }
.app.science .story .sci-today { border: 1px solid rgba(63,227,255,0.4); background: rgba(63,227,255,0.06); }
.app.science .story .sci-propose h3 { margin-top: 6px; color: #FFC857; }
.app.science .story .sci-today h3 { margin-top: 4px; color: #3FE3FF; }
.app.science .story .sci-ptag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #0A0F24; background: linear-gradient(90deg, #FFC857, #FF8F5A); }
.tn-box canvas, .nd-box canvas { aspect-ratio: 16 / 7; }
.app.science .story .sci-propose p, .app.science .story .sci-today p { margin: 0 0 12px; }
.app.science .story .sci-today ul { margin: 0 0 12px; }
.app.science .story .sci-propose .sci-psub { margin: -4px 0 12px; font-size: 0.85rem; letter-spacing: 0.04em; color: rgba(255,200,87,0.8); }
.app.science .story .nuh-full { margin: 4px 0 14px; border-top: 1px solid rgba(255,200,87,0.3); padding-top: 10px; }
.app.science .story .nuh-full summary { cursor: pointer; font-weight: 700; color: #FFC857; padding: 6px 0; list-style-position: inside; }
.app.science .story .nuh-full h4 { margin: 16px 0 8px; color: #FFD98A; font-size: 1rem; }
.app.science .story .nuh-full ul { margin: 0 0 12px; }
.app.science .story .nuh-tw { overflow-x: auto; margin: 0 0 12px; }
.app.science .story .nuh-t { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.app.science .story .nuh-t th, .app.science .story .nuh-t td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid rgba(255,200,87,0.2); }
.app.science .story .nuh-t th { color: #FFC857; }
.app.science .story .nuh-t td:first-child { font-weight: 600; min-width: 9em; }
.app.science .story .vec { display: inline-block; position: relative; font-style: italic; font-family: Georgia, serif; padding: 0 2px; }
.app.science .story .vec::before { content: ""; position: absolute; left: 1px; right: 0; top: -1px; height: 6px; background: no-repeat center/100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 6'%3E%3Cpath d='M0 3h10M8 1l2.5 2L8 5' fill='none' stroke='%23E6EAF2' stroke-width='1.2'/%3E%3C/svg%3E"); }
.app.science .story .sci-propose > h4 { margin: 18px 0 8px; color: #FFD98A; font-size: 1.02rem; }
/* NUH papers: one block per language, formulas */
.app.science .story .nuh-l { display: none; }
html[lang="en"] .app.science .story .nuh-l[data-l="en"], html[lang="fr"] .app.science .story .nuh-l[data-l="fr"], html[lang="pt"] .app.science .story .nuh-l[data-l="pt"], html[lang="es"] .app.science .story .nuh-l[data-l="es"] { display: block; }
.app.science .story .nuh-full h4.nuh-paper { font-size: 1.15rem; color: #FFC857; margin: 18px 0 6px; }
.app.science .story .nuh-full h5 { margin: 12px 0 6px; font-size: 0.95rem; color: #FFE3A8; }
.app.science .story .nuh-full ol { margin: 0 0 12px; padding-left: 1.4em; }
.app.science .story .nuh-full ol ul { margin: 6px 0 0; }
.app.science .story .nuh-hr { border: 0; border-top: 1px dashed rgba(255,200,87,0.35); margin: 22px 0 6px; }
.app.science .story .m { font-family: "Cambria Math", "STIX Two Math", Georgia, "Times New Roman", serif; font-size: 1.05em; white-space: nowrap; }
.app.science .story .m sub, .app.science .story .m sup, .app.science .story .nuh-f sub, .app.science .story .nuh-f sup { font-size: 0.72em; }
.app.science .story .nuh-f { margin: 10px 0 14px; padding: 12px 14px; border-radius: 12px; background: rgba(5,8,20,0.55); border: 1px solid rgba(255,200,87,0.25); text-align: center; font-family: "Cambria Math", "STIX Two Math", Georgia, "Times New Roman", serif; font-size: 1.12rem; overflow-x: auto; white-space: nowrap; }
.app.science .story .nuh-t4 td:first-child { min-width: 7em; }
.app.science .story .nuh-t4 { min-width: 640px; }
@media (max-width: 520px) { .app.science .story .nuh-f { font-size: 0.86rem; padding: 10px 8px; } }
/* 23 Oct Part 3: NUH v2 (hidden page) */
.app.science .story .fr { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; font-size: 0.86em; line-height: 1.15; margin: 0 2px; }
.app.science .story .fr > span:first-child { border-bottom: 1px solid currentColor; padding: 0 3px 1px; }
.app.science .story .fr > span:last-child { padding: 1px 3px 0; }
.app.science .story .ovl { text-decoration: overline; }
.app.science .story .nuh-ver { margin: -2px 0 10px; font-size: 0.82rem; letter-spacing: 0.04em; color: rgba(255,200,87,0.75); }
.app.science .story .nuh-refs li { margin-bottom: 4px; }
.app.science .story .nuh-full > .nuh-l > ul { margin: 0 0 10px; }
.app.science .story .sci-propose .nuh-sw > h4 { margin: 18px 0 8px; color: #FFD98A; font-size: 1.02rem; }
/* 23 Oct Part 3: standalone research paper page (outside Science of Frequency) */
.app.paper { max-width: 860px; margin-inline: auto; display: block; padding-bottom: 48px; }
.app.paper .topbar .tools { margin-left: auto; }
.app.paper .story { margin-top: 12px; }
.app.science .story .nuh-note { margin: 0 0 14px; padding: 10px 12px; border-left: 3px solid #4DA8FF; border-radius: 8px; background: rgba(77,168,255,0.08); font-size: 0.92rem; color: rgba(230,234,242,0.9); }
.app.science .nuh-hero .nuh-hero-t { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 6%; text-align: center; font-weight: 700; font-size: clamp(1.35rem, 4.4vw, 2.6rem); line-height: 1.15; letter-spacing: 0.01em; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.85), 0 0 22px rgba(0,0,0,0.75); pointer-events: none; }
.app.science .nuh-hero .nuh-hero-t { flex-direction: column; gap: 0.35em; }
.app.science .nuh-hero .nuh-hero-t small { font-size: 0.5em; font-weight: 600; letter-spacing: 0.03em; color: rgba(255,255,255,0.92); }
.app.science .nuh-hero .nuh-hero-t small { font-size: max(0.5em, 0.82rem); }
@media (max-width: 520px) { .app.science .story .nuh-f .nuh-br { display: block; height: 4px; font-size: 0; } }
/* paper page: wide layout like Home, full-bleed hero */
html:has(.app.paper) { overflow-x: clip; }
.app.paper { max-width: 1180px; padding-inline: clamp(16px, 3vw, 32px); padding-top: 0; }
.app.paper .story { margin-top: 0; }
.app.paper .science-hero.nuh-hero { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-top: 0; margin-bottom: clamp(20px, 3vw, 36px); border: 0; border-radius: 0; aspect-ratio: 16 / 9; }
@media (min-width: 820px) { .app.paper .science-hero.nuh-hero { aspect-ratio: 21 / 7; } }
.app.paper .nuh-hero .nuh-hero-t { font-size: clamp(1.6rem, 5vw, 3.6rem); }
.app.paper .story > .sci-propose { margin-top: 0; }
.app.science .nuh-hero .nuh-hero-t .nuh-stamp { margin-top: 0.55em; font-style: normal; font-size: max(0.24em, 0.62rem); font-weight: 600; letter-spacing: 0.42em; padding-left: 0.42em; color: rgba(255,255,255,0.38); text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.app.science .nuh-hero .nuh-hero-t .nuh-stamp { margin-top: 1.6em; font-size: max(0.3em, 0.78rem); color: rgba(255,255,255,0.62); text-shadow: 0 1px 8px rgba(0,0,0,0.75); }
.app.science .nuh-hero .nuh-hero-t .nuh-stamp { position: absolute; left: 0; right: 0; bottom: 7%; margin: 0; text-align: center; }
@media (max-width: 600px) { .app.science .nuh-hero .nuh-hero-t .nuh-stamp { font-size: 0.56rem; letter-spacing: 0.3em; padding-left: 0.3em; bottom: 6%; } }

/* 24 Oct 2026 · whole progressions on The Emotional Language of Chords */
.science-article p.emo-sub, .emo-sub { margin: 18px 0 8px; font: 600 0.78rem/1.2 var(--font-mono, monospace); letter-spacing: 0.12em; text-transform: uppercase; color: #8FB9E6; }
.emo-tag { padding: 4px 8px; margin-right: 6px; border-radius: 99px; font: 600 0.72rem/1 var(--font-mono, monospace); letter-spacing: 0.04em; color: #0A0F24; background: #F2B84B; }

/* Cymatics Generator link on the Cymatics page (26 Oct 2026) */
.cym-open{margin:18px 0 6px}
.cym-open a{display:inline-flex;align-items:center;gap:8px;padding:11px 18px;border-radius:12px;background:linear-gradient(90deg,#1aa9c9,#6d48e0,#c43fb0);color:#fff;font-weight:700;text-decoration:none;box-shadow:0 0 18px #9b6bff44}
.cym-open a::before{content:"✦"}

/* 26 Oct 2026 · Sport and Breath · CO₂ vibrations */
.co2-box { margin: 10px 0 4px; padding: 12px; border-radius: 16px; border: 1px solid rgba(255,122,168,.35); background: radial-gradient(120% 90% at 50% 20%, rgba(255,122,168,.08), rgba(5,8,20,.6)); display: flex; flex-direction: column; gap: 10px; }
.co2-box canvas { width: 100%; height: 400px; display: block; }
@media (max-width: 520px) { .co2-box canvas { height: 300px; } }
.co2-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.co2-modes button { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(230,234,242,.2); background: transparent; color: var(--ink); font: inherit; font-size: .88rem; cursor: pointer; }
.co2-modes button[aria-pressed="true"] { border-color: var(--k); box-shadow: 0 0 0 1px var(--k), 0 0 18px -6px var(--k); color: #fff; }
.co2-read { display: flex; flex-direction: column; gap: 8px; }
.app.science .story .co2-read p.co2-nums { margin: 0; font-family: ui-monospace, monospace; font-size: .88rem; color: #E6EAF2; }
.co2-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .9rem; }
.co2-sw { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.co2-row > span:nth-child(2) { flex: 1; min-width: 180px; }
.co2-play { padding: 8px 14px; border-radius: 999px; border: 0; background: linear-gradient(90deg,#FF7AA8,#FF9F5A); color: #0A0F24; font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; }
.co2-play[aria-pressed="true"] { background: #E6EAF2; }
.co2-t td:nth-child(2), .co2-t td:nth-child(3), .co2-t td:nth-child(4) { font-family: ui-monospace, monospace; white-space: nowrap; }
.co2-ath { font-weight: 600; color: #FF9F5A; }

/* 26 Oct 2026 · Sport and Breath · the Bohr effect curve */
.bohr-box { margin: 10px 0 4px; padding: 12px; border-radius: 16px; border: 1px solid rgba(255,107,122,.35); background: radial-gradient(120% 90% at 50% 10%, rgba(255,107,122,.08), rgba(5,8,20,.6)); display: flex; flex-direction: column; gap: 12px; }
.bohr-box canvas { width: 100%; height: 320px; display: block; }
@media (max-width: 520px) { .bohr-box canvas { height: 260px; } }
.bohr-pre { display: flex; flex-wrap: wrap; gap: 8px; }
.bohr-pre button, .bohr-tones button { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(230,234,242,.2); background: transparent; color: var(--ink); font: inherit; font-size: .88rem; cursor: pointer; }
.bohr-pre button[aria-pressed="true"] { border-color: #FF6B7A; box-shadow: 0 0 0 1px #FF6B7A, 0 0 18px -6px #FF6B7A; color: #fff; }
.bohr-sls { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 16px; margin-top: 10px; }
.bohr-sl { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: rgba(230,234,242,.75); }
.bohr-sl > span { display: flex; justify-content: space-between; gap: 8px; font-family: ui-monospace, monospace; letter-spacing: .06em; font-size: .76rem; }
.bohr-sl b { color: #E6EAF2; letter-spacing: 0; text-transform: none; font-size: .85rem; }
.bohr-sl input { width: 100%; accent-color: #FF6B7A; }
.bohr-cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.bohr-cell { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(230,234,242,.12); background: rgba(5,8,20,.5); }
.bohr-cell span { font-family: ui-monospace, monospace; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(230,234,242,.6); }
.bohr-cell b { font-size: 1.25rem; color: #E6EAF2; }
.bohr-cell small { font-size: .75rem; color: rgba(230,234,242,.6); }
.bohr-cell.up { border-color: rgba(255,107,122,.55); box-shadow: 0 0 18px -8px #FF6B7A; }
.bohr-cell.up b { color: #FF8A96; }
.bohr-cell.down b { color: #5FE6FF; }
.bohr-col { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: rgba(230,234,242,.8); }
.bohr-sw { height: 16px; border-radius: 99px; box-shadow: 0 0 20px -6px rgba(226,28,44,.8); }
.bohr-tones { display: flex; flex-wrap: wrap; gap: 8px; }
.bohr-tones button[aria-pressed="true"] { background: #E6EAF2; color: #0A0F24; }
.co2-t td:nth-child(2), .co2-t td:nth-child(3) { font-family: ui-monospace, monospace; white-space: nowrap; }

/* 26 Oct 2026 · Sport and Breath · breath and heart (HRV) */
.hrv-box { margin: 10px 0 4px; padding: 12px; border-radius: 16px; border: 1px solid rgba(185,140,255,.35); background: radial-gradient(120% 90% at 50% 10%, rgba(185,140,255,.10), rgba(5,8,20,.6)); display: flex; flex-direction: column; gap: 12px; }
.hrv-box canvas { width: 100%; height: 330px; display: block; }
@media (max-width: 520px) { .hrv-box canvas { height: 280px; } }
.hrv-ctl { display: flex; flex-direction: column; gap: 10px; }
.hrv-row { display: flex; flex-direction: column; gap: 6px; }
.hrv-row > span { font-family: ui-monospace, monospace; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(230,234,242,.6); }
.hrv-row > div { display: flex; flex-wrap: wrap; gap: 8px; }
.hrv-row button { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(230,234,242,.2); background: transparent; color: var(--ink); font: inherit; font-size: .88rem; cursor: pointer; }
.hrv-row button[aria-pressed="true"] { border-color: #B98CFF; box-shadow: 0 0 0 1px #B98CFF, 0 0 18px -6px #B98CFF; color: #fff; }
.hrv-cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.hrv-cell { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(230,234,242,.12); background: rgba(5,8,20,.5); }
.hrv-cell span { font-family: ui-monospace, monospace; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(230,234,242,.6); }
.hrv-cell b { font-size: 1.2rem; color: #E6EAF2; font-variant-numeric: tabular-nums; }
.hrv-cell small { font-size: .75rem; color: rgba(230,234,242,.6); }
.hrv-cell.on { border-color: rgba(75,227,138,.55); box-shadow: 0 0 18px -8px #4BE38A; }
.hrv-cell.on small { color: #4BE38A; font-weight: 600; }
.hrv-sw { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; transition: background .3s; }
.hrv-play { align-self: flex-start; padding: 8px 14px; border-radius: 999px; border: 0; background: linear-gradient(90deg, #B98CFF, #FF5FA2); color: #0A0F24; font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; }
.hrv-play[aria-pressed="true"] { background: #E6EAF2; }
.hrv-note { font-size: .72rem; color: rgba(230,234,242,.5); }
.hrv-cell span { padding-right: 24px; }

/* 26 Oct 2026 · Sport and Breath · breathing-muscle training */
.rmt-box { margin: 10px 0 4px; padding: 12px; border-radius: 16px; border: 1px solid rgba(255,200,87,.35); background: radial-gradient(120% 90% at 50% 10%, rgba(255,200,87,.08), rgba(5,8,20,.6)); display: flex; flex-direction: column; gap: 16px; }
.rmt-calc, .rmt-emg { display: flex; flex-direction: column; gap: 10px; }
.rmt-emg { padding-top: 14px; border-top: 1px dashed rgba(255,200,87,.25); }
.rmt-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 14px; align-items: end; }
.rmt-age, .rmt-load { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; color: rgba(230,234,242,.7); }
.rmt-age > span, .rmt-load > span, .rmt-fat > span { font-family: ui-monospace, monospace; letter-spacing: .08em; font-size: .72rem; text-transform: uppercase; display: flex; justify-content: space-between; gap: 8px; }
.rmt-age input { width: 100%; box-sizing: border-box; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(230,234,242,.2); background: rgba(5,8,20,.6); color: #E6EAF2; font: inherit; font-size: 1rem; }
.rmt-age small { font-size: .72rem; }
.rmt-load b { color: #E6EAF2; text-transform: none; }
.rmt-load input, .rmt-fat input { width: 100%; accent-color: #FFC857; }
.rmt-sex { display: flex; gap: 8px; }
.rmt-sex button { flex: 1; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(230,234,242,.2); background: transparent; color: var(--ink); font: inherit; font-size: .88rem; cursor: pointer; }
.rmt-sex button[aria-pressed="true"] { border-color: #FFC857; box-shadow: 0 0 0 1px #FFC857, 0 0 18px -6px #FFC857; color: #fff; }
.rmt-res, .rmt-cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.rmt-card, .rmt-cell { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(230,234,242,.12); background: rgba(5,8,20,.5); }
.rmt-card span, .rmt-cell span { font-family: ui-monospace, monospace; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(230,234,242,.6); padding-right: 24px; }
.rmt-card b, .rmt-cell b { font-size: 1.2rem; color: #E6EAF2; }
.rmt-card small, .rmt-cell small { font-size: .75rem; color: rgba(230,234,242,.6); }
.rmt-card:nth-child(2) { border-color: rgba(255,200,87,.5); box-shadow: 0 0 18px -8px #FFC857; }
.rmt-card:nth-child(2) b { color: #FFC857; }
.rmt-gauge { position: relative; height: 10px; border-radius: 99px; background: rgba(230,234,242,.08); }
.rmt-gauge i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, #FF9F5A, #FFC857); box-shadow: 0 0 12px -2px #FFC857; transition: width .3s; }
.rmt-gauge em { position: absolute; top: -4px; width: 2px; height: 18px; background: #E6EAF2; box-shadow: 0 0 6px #E6EAF2; transition: left .3s; }
.rmt-emg canvas { width: 100%; height: 240px; display: block; }
.rmt-fat { display: flex; flex-direction: column; gap: 6px; }
.rmt-fat i { font-style: normal; color: rgba(230,234,242,.55); }
.rmt-fat b { color: #FFC857; }
.rmt-sw { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; }
.rmt-play { align-self: flex-start; padding: 8px 14px; border-radius: 999px; border: 0; background: linear-gradient(90deg, #FF9F5A, #FFC857); color: #0A0F24; font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; }
.rmt-play[aria-pressed="true"] { background: #E6EAF2; }
.rmt-note { font-size: .72rem; color: rgba(230,234,242,.5); }

/* 26 Oct 2026 · Sport and Breath · tempo engine (HUD) */
.tempo-box { --tc: #4BE38A; margin: 10px 0 4px; padding: 14px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--tc) 40%, transparent); display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px;
  background: radial-gradient(120% 90% at 30% 0%, color-mix(in srgb, var(--tc) 12%, transparent), transparent 60%), linear-gradient(180deg, rgba(10,15,36,.9), rgba(5,8,20,.95));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 20px 50px -28px var(--tc); transition: border-color .4s, box-shadow .4s; }
@media (min-width: 860px) { .tempo-box { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; } }
.tempo-hud canvas { width: 100%; aspect-ratio: 1; max-height: 440px; display: block; margin: 0 auto; }
.tempo-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tempo-ctl { display: flex; flex-direction: column; gap: 10px; }
.tempo-row { display: flex; flex-direction: column; gap: 6px; }
.tempo-lab { font-family: ui-monospace, monospace; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(230,234,242,.65); display: flex; justify-content: space-between; gap: 8px; }
.tempo-lab:empty { display: none; }
.tempo-lab b { color: var(--tc); letter-spacing: 0; text-transform: none; font-size: .85rem; }
.tempo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tempo-chips button { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(230,234,242,.18); background: rgba(5,8,20,.5); color: var(--ink); font: inherit; font-size: .88rem; cursor: pointer; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.tempo-chips button[aria-pressed="true"] { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 18%, rgba(5,8,20,.6)); box-shadow: inset 0 0 18px -6px var(--tc); color: #fff; }
.tempo-sl { display: flex; flex-direction: column; gap: 4px; }
.tempo-sl input { width: 100%; accent-color: var(--tc); }
.tempo-cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tempo-cell { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--tc) 22%, transparent); background: rgba(5,8,20,.55); overflow: hidden; }
.tempo-cell::before { content: ''; position: absolute; left: 0; top: 0; width: 26px; height: 2px; background: var(--tc); box-shadow: 0 0 10px var(--tc); }
.tempo-cell span { font-family: ui-monospace, monospace; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(230,234,242,.6); padding-right: 24px; }
.tempo-cell b { font-size: 1.2rem; color: #E6EAF2; font-variant-numeric: tabular-nums; }
.tempo-cell small { font-size: .74rem; color: rgba(230,234,242,.6); }
.tempo-sw { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; }
.tempo-play { padding: 11px 16px; border-radius: 12px; border: 0; background: linear-gradient(90deg, var(--tc), #5FE6FF); color: #0A0F24; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; box-shadow: 0 0 24px -6px var(--tc); }
.tempo-play[aria-pressed="true"] { background: #E6EAF2; }

/* 26 Oct 2026 · Sport and Breath · your level on each topic (colour follows your progress) */
.sl-hud { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "dots name" "next next" "bar bar"; gap: 6px 14px; align-items: center; margin: 4px 0 18px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--lv) 45%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--lv) 16%, rgba(5,8,20,.7)), rgba(5,8,20,.6)); box-shadow: 0 14px 36px -22px var(--lv); transition: border-color .8s, box-shadow .8s, background .8s; }
.sl-dots { grid-area: dots; display: flex; gap: 6px; }
.sl-dots i { width: 14px; height: 14px; transform: rotate(45deg); border-radius: 3px; border: 1px solid rgba(230,234,242,.22); background: rgba(230,234,242,.05); }
.sl-dots i.on { border: 0; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 0 10px -2px var(--c1); }
.sl-dots i.cur { border-color: var(--c1); animation: slPulse 2.2s ease-in-out infinite; }
@keyframes slPulse { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 12px var(--c1); } }
.sl-name { grid-area: name; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.app.science .story .sl-name b { font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; background: linear-gradient(90deg, var(--lv), var(--lv2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sl-name span { font-family: ui-monospace, monospace; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(230,234,242,.6); }
.sl-next { grid-area: next; font-size: .88rem; color: rgba(230,234,242,.85); }
.sl-peak .sl-next { color: var(--lv2); font-weight: 600; }
.sl-bar { grid-area: bar; height: 4px; border-radius: 99px; background: rgba(230,234,242,.08); overflow: hidden; }
.sl-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lv), var(--lv2)); box-shadow: 0 0 10px var(--lv); transition: width .8s; }
.sl-up { position: absolute; right: 12px; top: -14px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; color: #0A0F24; background: linear-gradient(90deg, var(--lv), var(--lv2)); box-shadow: 0 0 26px var(--lv); animation: slUp 3s ease forwards; }
@keyframes slUp { 0% { opacity: 0; transform: translateY(8px) scale(.9); } 15% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
/* the live tools and the quiz card take the level colour */
.sl-on .co2-box, .sl-on .bohr-box, .sl-on .hrv-box, .sl-on .rmt-box, .sl-on .tempo-box { border-color: color-mix(in srgb, var(--lv) 55%, transparent); box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 22px 54px -26px var(--lv); transition: border-color .8s, box-shadow .8s; }
.app.science .story.sl-on h3 { text-shadow: 0 0 18px color-mix(in srgb, var(--lv) 35%, transparent); }
.app.science .story.sl-on .nuh-f { border-color: color-mix(in srgb, var(--lv) 35%, transparent); }
.quiz-cta-wrap.sl-on .quiz-cta { border-color: var(--lv); background: linear-gradient(135deg, color-mix(in srgb, var(--lv) 16%, transparent), rgba(18, 25, 53, 0.9)); }
.quiz-cta-wrap.sl-on .quiz-cta-ic { background: var(--lv); }
.sl-peak::before { content: ''; position: absolute; inset: -2px; pointer-events: none; border-radius: 20px; background: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--lv2) 12%, transparent), transparent 40%); opacity: .5; }
.sl-flash .sl-hud { animation: slFlash 1.2s ease; }
@keyframes slFlash { 40% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--lv) 40%, transparent), 0 0 50px var(--lv); } }
@media (prefers-reduced-motion: reduce) { .sl-dots i.cur, .sl-up, .sl-flash .sl-hud { animation: none; } }
