/* Earshot website.
   A white page of text, a black notch at the top, and one color: the highlighter
   that marks the word being spoken. Literata for anything read aloud; the system
   font for everything else. */

:root {
  --page: #ffffff;
  --ink: #16161a;
  --soft: #6b6b73;      /* secondary text */
  --wash: #f3f3f5;      /* quiet surfaces */
  --marker: #ffe04a;
  --marker-ink: #1c1700;
  --notch: #000000;
  --reading: "Literata", "New York", Georgia, serif;
  --ui: system-ui, -apple-system, "Segoe UI", sans-serif;
  --bar: 34px;          /* menu bar and notch height */
  --ease: cubic-bezier(0.3, 1.18, 0.4, 1);
  /* The highlighter drifts through this, starting and ending on marker yellow so it loops without a seam. */
  --spectrum: linear-gradient(90deg, #ffe04a, #ffb86b, #ff8fa3, #c7a6ff, #8fd3ff, #9bf0c2, #ffe04a);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ---------- Color that moves ---------- */

.marker, .logo .ear::before, .voices button.playing .who b, .screen-notch p i.now, .progress i, .keys-flow {
  background-image: var(--spectrum);
  background-size: 1400px 100%;
  animation: flow 38s linear infinite;
}
@keyframes flow { to { background-position: -1400px 0; } }

/* A soft wash of the same colors behind the top of the page. It turns up while the page is being read. */
body::before {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  inset: -12rem -10% auto -10%; height: 34rem;
  background:
    radial-gradient(40% 60% at 22% 40%, #ffe04a 0, transparent 70%),
    radial-gradient(38% 60% at 55% 30%, #ff8fa3 0, transparent 70%),
    radial-gradient(40% 60% at 82% 45%, #8fd3ff 0, transparent 70%);
  filter: blur(70px) saturate(1.1);
  opacity: 0.3;
  animation: wash 26s ease-in-out infinite alternate;
  transition: opacity 0.8s ease;
}
body.is-reading::before { opacity: 0.55; }
@keyframes wash {
  0% { transform: translate3d(-4%, 0, 0) scale(1); filter: blur(70px) hue-rotate(0deg); }
  50% { transform: translate3d(3%, 2%, 0) scale(1.08); filter: blur(70px) hue-rotate(40deg); }
  100% { transform: translate3d(5%, -1%, 0) scale(1.02); filter: blur(70px) hue-rotate(-35deg); }
}

/* ---------- Menu bar ---------- */

.menubar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: var(--bar);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
  font-size: 0.8125rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
}
.menubar a { text-decoration: none; }
/* The logo: "Ear" marked with the highlighter. The marker swipes in once when the page loads. */
.logo { font: 600 1.06rem/1 var(--reading); letter-spacing: -0.012em; color: var(--ink); white-space: nowrap; }
.logo.on-dark { color: #fff; font-size: 0.86rem; }
.logo .ear { position: relative; isolation: isolate; padding: 0 0.07em; margin: 0 -0.07em 0 0; color: var(--marker-ink); }
.logo .ear::before {
  content: ""; position: absolute; inset: -0.16em 0 -0.2em 0; z-index: -1;
  border-radius: 0.2em; background-color: var(--marker);
  transform-origin: left center; animation: logo-swipe 0.75s cubic-bezier(0.3, 0.9, 0.3, 1) 0.35s both;
}
.logo .ear::before { animation: logo-swipe 0.75s cubic-bezier(0.3, 0.9, 0.3, 1) 0.35s both, flow 38s linear infinite; }
.logo.still .ear::before, .logo.on-dark .ear::before { animation: flow 38s linear infinite; }
@keyframes logo-swipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.menubar-link { font-weight: 500; }
.menubar-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Notch ---------- */

.notch {
  --w: 196px; --h: var(--bar); --r: 12px;
  position: fixed; top: 0; left: 50%; z-index: 30;
  width: min(var(--w), calc(100vw - 28px)); height: var(--h);
  transform: translateX(-50%);
  background: var(--notch); color: #fff;
  border-radius: 0 0 var(--r) var(--r);
  transition: width 0.5s var(--ease), height 0.5s var(--ease), border-radius 0.4s ease, box-shadow 0.4s ease;
  font-family: var(--ui);
}
/* The corners where the notch meets the top of the screen flare outward. */
.notch::before, .notch::after {
  content: ""; position: absolute; top: 0; width: 10px; height: 10px;
}
.notch::before { left: -10px; background: radial-gradient(circle at 0 100%, transparent 9.5px, var(--notch) 10px); }
.notch::after { right: -10px; background: radial-gradient(circle at 100% 100%, transparent 9.5px, var(--notch) 10px); }

.notch[data-state="idle"] { --w: 560px; --h: 146px; --r: 30px; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22); }
.notch[data-state="reading"] { --w: 580px; --h: 236px; --r: 30px; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22); }
/* While reading, the spectrum glows under the notch. */
.notch-glow {
  position: fixed; top: 0; left: 50%; z-index: 29; pointer-events: none;
  width: min(560px, 92vw); height: 250px; transform: translateX(-50%);
  background-image: var(--spectrum); background-size: 1400px 100%;
  animation: flow 38s linear infinite;
  filter: blur(46px); opacity: 0; transition: opacity 0.6s ease;
}
body.is-reading .notch-glow { opacity: 0.55; }

.notch > * { opacity: 0; visibility: hidden; transition: opacity 0.12s ease; }

/* Tucked away: a voice wave breathes in the middle, the spectrum glows out from underneath,
   and a highlighter line along the bottom edge fills as you scroll down the page. */
.notch .notch-rest { position: absolute; inset: 0; pointer-events: none; }
.notch[data-state="closed"] .notch-rest { opacity: 1; visibility: visible; transition: opacity 0.4s ease 0.25s; }
.rest-wave { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 3px; height: 14px; z-index: 1; }
.rest-wave i {
  width: 2.5px; height: 100%; border-radius: 2px;
  background-image: var(--spectrum); background-size: 1400px 100%; background-attachment: fixed;
  animation: flow 38s linear infinite, rest-breathe 2.6s ease-in-out infinite;
  transform: scaleY(0.25);
}
.rest-wave i:nth-child(1) { animation-delay: 0s, -0.0s; }
.rest-wave i:nth-child(2) { animation-delay: 0s, -0.22s; }
.rest-wave i:nth-child(3) { animation-delay: 0s, -0.44s; }
.rest-wave i:nth-child(4) { animation-delay: 0s, -0.66s; }
.rest-wave i:nth-child(5) { animation-delay: 0s, -0.88s; }
.rest-wave i:nth-child(6) { animation-delay: 0s, -1.1s; }
.rest-wave i:nth-child(7) { animation-delay: 0s, -1.32s; }
@keyframes rest-breathe {
  0%, 100% { transform: scaleY(0.22); opacity: 0.55; }
  30% { transform: scaleY(1); opacity: 1; }
  60% { transform: scaleY(0.4); opacity: 0.75; }
}
.rest-line { position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; z-index: 1; }
.rest-line b {
  position: absolute; inset: 0; transform-origin: left center; transform: scaleX(var(--read, 0));
  background-image: var(--spectrum); background-size: 1400px 100%; animation: flow 38s linear infinite;
  transition: transform 0.15s linear;
}
.rest-halo {
  position: absolute; left: 6%; right: 6%; top: 55%; height: 34px; z-index: -1;
  background-image: var(--spectrum); background-size: 1400px 100%;
  animation: flow 38s linear infinite, rest-halo 5.2s ease-in-out infinite;
  filter: blur(16px); opacity: 0.6; border-radius: 50%;
}
@keyframes rest-halo { 0%, 100% { opacity: 0.38; transform: scaleX(0.9); } 50% { opacity: 0.7; transform: scaleX(1.05); } }
.notch[data-state="closed"]:hover .rest-wave i { animation-duration: 38s, 1.1s; }

/* Inside the panel: the spectrum glows up from the bottom edge, so the black has depth and color. */
.notch .notch-aura {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none;
}
.notch-aura i {
  position: absolute; left: -10%; right: -10%; bottom: -46%; height: 82%;
  background-image: var(--spectrum); background-size: 1400px 100%;
  animation: flow 38s linear infinite;
  filter: blur(38px); opacity: 0.5;
  transition: opacity 0.6s ease;
}
.notch-aura::after {
  /* a thin line of the same light along the bottom edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background-image: var(--spectrum); background-size: 1400px 100%;
  animation: flow 38s linear infinite; opacity: 0.75;
}
.notch[data-state="idle"] .notch-aura, .notch[data-state="reading"] .notch-aura { opacity: 1; visibility: visible; transition: opacity 0.5s ease 0.2s; }
.notch[data-state="reading"] .notch-aura i { opacity: 0.7; }
.notch.paused .notch-aura i { opacity: 0.35; }
.notch[data-state="idle"] .notch-ears, .notch[data-state="idle"] .notch-idle,
.notch[data-state="reading"] .notch-ears, .notch[data-state="reading"] .notch-reading {
  opacity: 1; visibility: visible; transition: opacity 0.25s ease 0.16s;
}
.notch-idle, .notch-reading { position: absolute; inset: var(--bar) 0 0 0; z-index: 1; }
.notch-ears { position: relative; z-index: 1; }

.notch-ears {
  height: var(--bar); padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem; font-weight: 500; color: rgba(255, 255, 255, 0.7);
}
.ear-left { display: flex; align-items: center; gap: 9px; }
.notch[data-state="idle"] .bars, .notch[data-state="idle"] .speed { display: none; }
.ready { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.75); }
.ready i { width: 7px; height: 7px; border-radius: 50%; background-image: var(--spectrum); background-size: 1400px 100%; animation: flow 38s linear infinite, ready-pulse 2.4s ease-in-out infinite; }
@keyframes ready-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 224, 74, 0.5); } 50% { box-shadow: 0 0 0 5px rgba(255, 224, 74, 0); } }
.ear-keys { display: none; gap: 4px; }
.notch[data-state="idle"] .ear-keys { display: inline-flex; }
.ear-keys kbd { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 5px; display: inline-grid; place-items: center; font: 500 11px/1 var(--ui); background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.8); box-shadow: none; }
.notch[data-state="idle"] .ear-label { color: rgba(255, 255, 255, 0.92); }

.bars { display: inline-flex; align-items: center; gap: 2.5px; height: 14px; }
.bars i { width: 2.5px; height: 14px; border-radius: 2px; background: #ffe04a; transform: scaleY(0.18); transition: transform 0.07s linear; }

.speed {
  height: 22px; padding: 0 9px; border-radius: 11px;
  background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.88);
  font-size: 0.75rem; font-weight: 500; font-variant-numeric: tabular-nums;
}
.speed:hover { background: rgba(255, 255, 255, 0.22); }
.notch :focus-visible { outline-color: #fff; }

/* Idle */
.notch-idle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding-bottom: 12px; }
.idle-line { margin: 0; font: 400 1.0625rem/1.2 var(--reading); }
.idle-actions { display: flex; align-items: center; gap: 12px; }
.idle-hint { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.5); }
.pill { height: 30px; padding: 0 14px; border-radius: 15px; font-size: 0.8125rem; font-weight: 600; }
.pill.primary { background: #fff; color: #000; }
.pill.primary:hover { background: #e4e4e7; }

/* Reading */
.notch-reading { padding: 8px 24px 0; display: flex; flex-direction: column; }
.caption {
  position: relative; isolation: isolate;
  margin: 0; height: 96px; overflow: hidden;
  font: 400 1.125rem/1.72 var(--reading);
  color: rgba(255, 255, 255, 0.4);
}
.caption .w { position: relative; transition: color 0.12s ease; }
.caption .w.said { color: #fff; }
.caption .w.now { color: var(--marker-ink); }

.transport { display: flex; align-items: center; height: 44px; }
.count { flex: 1; font-size: 0.75rem; color: rgba(255, 255, 255, 0.45); font-variant-numeric: tabular-nums; }
.transport-buttons { display: flex; align-items: center; gap: 10px; }
.transport-end { flex: 1; display: flex; justify-content: flex-end; }
.icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.icon:hover { background: rgba(255, 255, 255, 0.14); }
.icon svg { width: 16px; height: 16px; fill: #fff; }
.icon.small svg { width: 13px; height: 13px; }
.play { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: transform 0.12s ease; }
.play:active { transform: scale(0.94); }
.play svg { width: 16px; height: 16px; fill: #000; grid-area: 1 / 1; }
.play .i-play { display: none; }
.notch.single #prev, .notch.single #next { visibility: hidden; }
.notch.paused .play .i-play { display: block; }
.notch.paused .play .i-pause { display: none; }
.progress { height: 2px; margin-top: 8px; border-radius: 1px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background-color: #ffe04a; border-radius: 1px; }

/* The highlighter: one element that slides from word to word. */
.marker {
  position: absolute; left: 0; top: 0; z-index: -1;
  width: 0; height: 0; border-radius: 0.3em;
  background-color: var(--marker);
  opacity: 0;
  transition: transform 0.2s cubic-bezier(0.3, 0.9, 0.3, 1), width 0.2s cubic-bezier(0.3, 0.9, 0.3, 1), opacity 0.15s ease;
  pointer-events: none;
}
.marker.on { opacity: 1; }

/* ---------- Page ---------- */

main { max-width: 44rem; margin: 0 auto; padding: 0 1.5rem; }
section { margin-top: 7.5rem; }

.hero { margin-top: 0; padding-top: 17.5rem; }
h1 {
  margin: 0;
  font: 600 clamp(3.4rem, 11.5vw, 7.25rem)/0.94 var(--reading);
  letter-spacing: -0.03em;
}
h2 {
  margin: 0 0 1.25rem;
  font: 600 clamp(1.85rem, 4.6vw, 2.6rem)/1.08 var(--reading);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p { margin: 0; max-width: 38rem; }
.lede {
  margin-top: 2.25rem;
  font: 400 clamp(1.3rem, 2.9vw, 1.7rem)/1.5 var(--reading);
}

/* Anything the page can read aloud. */
[data-read] { position: relative; isolation: isolate; cursor: pointer; border-radius: 6px; }
[data-read] .w { position: relative; }
[data-read]::before {
  content: ""; position: absolute; left: -1.5rem; top: 0.55em;
  border: 0.32em solid transparent; border-left: 0.52em solid var(--ink); border-right: 0;
  opacity: 0; transition: opacity 0.15s ease;
}
[data-read]:hover::before, [data-read].reading::before { opacity: 0.35; }
[data-read].reading::before { opacity: 0.9; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }
.button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: 3rem; padding: 0 1.5rem; border-radius: 1.5rem;
  background: var(--ink); color: var(--page);
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease;
}
.button:hover { background: #000; }
.button:active { transform: scale(0.97); }
.button.quiet { background: var(--wash); color: var(--ink); }
.button.quiet:hover { background: #e8e8ec; }
.button svg { width: 0.9rem; height: 0.9rem; fill: currentColor; }

.note { margin-top: 1.25rem; font-size: 0.9375rem; color: var(--soft); }

/* Steps: a real sequence, so they are numbered. */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 3.25rem; margin-top: 1.75rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -0.28em;
  font: 600 2.1rem/1.3 var(--reading); color: var(--ink);
}
.steps p[data-read] { font-size: 1.125rem; }
.keys { display: flex; gap: 0.4rem; margin-top: 0.9rem; }
kbd {
  display: inline-grid; place-items: center;
  min-width: 2.6rem; height: 2.6rem; padding: 0 0.8rem;
  border-radius: 0.6rem; background: var(--wash);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(0, 0, 0, 0.07);
  font: 500 1.05rem var(--ui);
}

/* Voices */
.voices {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 0.5rem;
}
.voices button {
  width: 100%; display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.85rem; border-radius: 0.75rem; text-align: left;
  background: var(--wash); transition: background 0.15s ease;
}
.voices button:hover { background: #e8e8ec; }
.print { display: inline-flex; align-items: center; gap: 2px; width: 30px; height: 24px; flex: none; }
.print i { width: 2.5px; border-radius: 2px; background: var(--ink); opacity: 0.35; }
.voices button:hover .print i, .voices button.playing .print i { opacity: 0.9; }
.who { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; min-width: 0; }
.who b { font-weight: 600; font-size: 0.9375rem; padding: 0 0.3rem; margin-left: -0.3rem; border-radius: 0.3rem; transition: background 0.15s ease; }
.who small { font-size: 0.8125rem; color: var(--soft); }
.voices button.playing .who b { background-color: var(--marker); color: var(--marker-ink); }

/* Code and math */
.examples { display: grid; gap: 1rem; margin-top: 2.25rem; }
.example {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-rows: auto 1fr; grid-auto-flow: column;
  column-gap: 1.75rem; row-gap: 0.6rem; padding: 1.4rem 1.6rem 1.6rem; border-radius: 1.2rem;
  background: #0c0c10; color: #fff; box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.5);
}
.example::after { content: ""; position: absolute; z-index: -1; left: 40%; right: -10%; bottom: -70%; height: 110%; background-image: var(--spectrum); background-size: 1400px 100%; animation: flow 38s linear infinite; filter: blur(50px); opacity: 0.35; }
.label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); }
.example .label { color: rgba(255, 255, 255, 0.45); }
.example code {
  align-self: start; justify-self: start; padding: 0.7rem 0.9rem; border-radius: 0.7rem;
  background: #1e1e24; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font: 500 0.98rem/1.4 ui-monospace, Menlo, monospace; color: #9cdcfe; white-space: pre-wrap; word-break: break-word;
}
.spoken { font: italic 400 1.25rem/1.5 var(--reading); color: #fff; }
.example .spoken[data-read]::before { display: none; }
.example .marker.on { opacity: 0.45; }
@media (max-width: 640px) { .example { grid-template-columns: 1fr; grid-auto-flow: row; padding: 1.2rem; } .example .label + .spoken, .example code + .label { margin-top: 0.4rem; } }

.lede.small { font-size: 1.25rem; margin-top: 1rem; }

/* ---------- Scenes: a Mac screen where the product plays out ---------- */

.scene {
  --u: 1cqw; /* everything inside scales with the scene's width */
  container-type: inline-size;
  position: relative; display: block; margin: 1.75rem 0 0;
  width: min(60rem, calc(100vw - 2rem)); left: 50%; transform: translateX(-50%);
  aspect-ratio: 16 / 10.4; overflow: hidden; border-radius: 1.1rem;
  background:
    radial-gradient(60% 70% at 15% 20%, #3b6a8c 0, transparent 70%),
    radial-gradient(60% 80% at 90% 80%, #4a3a6e 0, transparent 70%),
    linear-gradient(160deg, #24435b, #131f2e);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 40px 80px -40px rgba(0, 0, 0, 0.55);
  font-family: var(--ui); color: #1d1d22;
}
.scene * { box-sizing: border-box; }

/* The notch inside a scene */
.sc-notch {
  position: absolute; z-index: 5; top: 0; left: 50%; transform: translateX(-50%);
  width: 19cqw; height: 3.1cqw; overflow: hidden;
  background: #000; color: #fff; border-radius: 0 0 1.3cqw 1.3cqw;
  transition: width 0.55s var(--ease), height 0.55s var(--ease), border-radius 0.4s ease, box-shadow 0.4s ease;
}
.scene[data-step="open"] .sc-notch, .scene[data-step="speak"] .sc-notch {
  width: 50cqw; height: 16.5cqw; border-radius: 0 0 2.8cqw 2.8cqw; box-shadow: 0 1.6cqw 3.6cqw rgba(0, 0, 0, 0.45);
}
.sc-notch::after { /* the same color glow as the real notch */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -55%; height: 85%;
  background-image: var(--spectrum); background-size: 1400px 100%; animation: flow 38s linear infinite;
  filter: blur(3.4cqw); opacity: 0; transition: opacity 0.6s ease; pointer-events: none;
}
.scene[data-step="open"] .sc-notch::after { opacity: 0.35; }
.scene[data-step="speak"] .sc-notch::after { opacity: 0.65; }
.sc-notch > * { position: relative; z-index: 1; opacity: 0; transition: opacity 0.12s ease; }
.scene[data-step="open"] .sc-notch > *, .scene[data-step="speak"] .sc-notch > * { opacity: 1; transition: opacity 0.3s ease 0.25s; }
.sc-ears { display: flex; align-items: center; gap: 0.8cqw; height: 3.1cqw; padding: 0 1.5cqw; font-size: 1.15cqw; font-weight: 500; color: rgba(255, 255, 255, 0.65); }
.sc-bars { display: inline-flex; align-items: center; gap: 0.25cqw; height: 1.3cqw; }
.sc-bars i { width: 0.25cqw; height: 1.3cqw; border-radius: 1cqw; background: #ffe04a; transform: scaleY(0.2); transition: transform 0.08s linear; }
.sc-style { margin-left: auto; padding: 0.25cqw 0.8cqw; border-radius: 2cqw; background: rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.9); }
.sc-caption { margin: 0.9cqw 2cqw 0; max-width: none; height: 8.6cqw; overflow: hidden; font: 400 1.72cqw/1.62 var(--reading); color: rgba(255, 255, 255, 0.42); }
.sc-caption.waiting { color: rgba(255, 255, 255, 0.5); }
.sc-caption i { font-style: normal; transition: color 0.12s ease; }
.sc-caption i.said { color: #fff; }
.sc-caption i.now {
  color: var(--marker-ink); border-radius: 0.25em; padding: 0.04em 0.16em; margin: 0 -0.16em;
  background-color: var(--marker); background-image: var(--spectrum); background-size: 1400px 100%; animation: flow 38s linear infinite;
}
.sc-progress { margin: 1.1cqw 2cqw 0; height: 0.22cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.sc-progress i { display: block; height: 100%; width: 0; border-radius: 1cqw; background-image: var(--spectrum); background-size: 1400px 100%; animation: flow 38s linear infinite; transition: width 0.25s ease; }

/* The shortcut, shown as it is pressed */
.sc-keys {
  position: absolute; z-index: 6; left: 50%; bottom: 4.5cqw; transform: translate(-50%, 1.5cqw) scale(0.92);
  display: flex; gap: 0.6cqw; padding: 0.9cqw 1.1cqw; border-radius: 1.6cqw;
  background: rgba(20, 20, 24, 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.25s ease, transform 0.35s var(--ease); pointer-events: none;
}
.sc-keys kbd { min-width: 3.4cqw; height: 3.4cqw; padding: 0 1cqw; border-radius: 0.8cqw; font-size: 1.5cqw; background: #f3f3f5; box-shadow: inset 0 -0.25cqw 0 rgba(0, 0, 0, 0.12); }
.scene[data-step="keys"] .sc-keys { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* A picture Earshot drew */
.picture {
  --yellow: #ffe04a; --apricot: #ffb86b; --rose: #ff8fa3; --lilac: #c7a6ff; --sky: #8fd3ff; --mint: #9bf0c2; --dim: rgba(255, 255, 255, 0.5); --faint: rgba(255, 255, 255, 0.16);
  position: relative; margin: 2.25rem 0 0; padding: 0.5rem 0.75rem 0; border-radius: 1.4rem; overflow: hidden; isolation: isolate;
  background: #000; color: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}
.picture::after { content: ""; position: absolute; z-index: -1; left: -10%; right: -10%; bottom: -38%; height: 60%; background-image: var(--spectrum); background-size: 1400px 100%; animation: flow 38s linear infinite; filter: blur(46px); opacity: 0.5; }
.picture svg { display: block; width: 100%; height: auto; }
.picture svg text { fill: #fff; font: 13px var(--ui); }
.picture [data-step] { opacity: 0; transition: opacity 0.55s ease; }
.picture [data-step].on { opacity: 1; }
.picture figcaption { padding: 0.4rem 0.75rem 1.2rem; min-height: 3.6em; font: 400 1.1rem/1.5 var(--reading); }


/* ---------- A real Mac: wallpaper, menu bar, Chrome ----------
   Sizes are written in points of a 1100-point-wide screen ("pp", converted at build time),
   so everything keeps the proportions of macOS and Chrome at any width. */

.scene {
  --p: calc(100cqw / 1100);
  background:
    radial-gradient(70% 90% at 0% 100%, #f39a5a 0, rgba(243, 154, 90, 0) 55%),
    radial-gradient(60% 70% at 32% 104%, #e0548a 0, rgba(224, 84, 138, 0) 60%),
    radial-gradient(80% 80% at 100% 0%, #5b3fc4 0, rgba(91, 63, 196, 0) 60%),
    radial-gradient(70% 70% at 85% 95%, #2d77d6 0, rgba(45, 119, 214, 0) 60%),
    linear-gradient(165deg, #1d2a6b, #12163a 60%, #0d0f26);
}
.scene::before { /* soft light falling across the wallpaper */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 40% at 40% 30%, rgba(255, 255, 255, 0.12), transparent 70%);
}

.mac-bar {
  position: absolute; inset: 0 0 auto 0; z-index: 4; height: calc(34 * var(--p));
  display: flex; align-items: center; gap: calc(19 * var(--p)); padding: 0 calc(18 * var(--p));
  background: rgba(10, 12, 30, 0.28); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  color: #fff; font: 500 calc(13 * var(--p))/1 var(--ui); white-space: nowrap;
}
.mac-bar .apple { font-size: calc(15 * var(--p)); margin-right: calc(3 * var(--p)); }
.mac-bar b { font-weight: 700; }
.mac-bar .right { margin-left: auto; display: flex; align-items: center; gap: calc(15 * var(--p)); }
.mac-bar svg { width: calc(16 * var(--p)); height: calc(16 * var(--p)); fill: #fff; display: block; }
.mac-bar .clock { margin-left: calc(3 * var(--p)); }

.sc-notch { width: 15cqw; height: calc(34 * var(--p)); }

/* Chrome */
.cr {
  position: absolute; left: calc(70 * var(--p)); right: calc(70 * var(--p)); top: calc(58 * var(--p)); bottom: calc(24 * var(--p)); z-index: 2;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: calc(11 * var(--p)); background: #fff; color: #1f1f1f;
  box-shadow: 0 0 0 calc(0.5 * var(--p)) rgba(0, 0, 0, 0.5), 0 calc(22 * var(--p)) calc(60 * var(--p)) rgba(0, 0, 0, 0.5), inset 0 calc(0.5 * var(--p)) 0 rgba(255, 255, 255, 0.4);
  font: 400 calc(13 * var(--p))/1.45 var(--ui);
  transition: filter 0.5s ease;
}
.cr svg { width: calc(18 * var(--p)); height: calc(18 * var(--p)); fill: #474747; flex: none; display: block; }
.cr-tabs { flex: none; height: calc(41 * var(--p)); display: flex; align-items: flex-end; gap: calc(2 * var(--p)); padding: 0 calc(8 * var(--p)) 0 calc(12 * var(--p)); background: #dfe4ea; }
.cr-lights { align-self: center; display: flex; gap: calc(8 * var(--p)); margin: 0 calc(14 * var(--p)) 0 calc(2 * var(--p)); }
.cr-lights i { width: calc(12 * var(--p)); height: calc(12 * var(--p)); border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 calc(0.5 * var(--p)) rgba(0, 0, 0, 0.12); }
.cr-lights i:nth-child(2) { background: #febc2e; } .cr-lights i:nth-child(3) { background: #28c840; }
.cr-tab {
  position: relative; display: flex; align-items: center; gap: calc(8 * var(--p));
  width: calc(220 * var(--p)); height: calc(34 * var(--p)); padding: 0 calc(9 * var(--p)) 0 calc(12 * var(--p)); margin-bottom: 0;
  border-radius: calc(9 * var(--p)) calc(9 * var(--p)) 0 0; font-size: calc(12 * var(--p)); color: #3c4043; white-space: nowrap;
}
.cr-tab span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.cr-tab svg { width: calc(14 * var(--p)); height: calc(14 * var(--p)); fill: #5f6368; }
.cr-tab:not(.on) + .cr-tab:not(.on)::before { content: ""; position: absolute; left: calc(-2 * var(--p)); top: calc(9 * var(--p)); bottom: calc(9 * var(--p)); width: calc(1 * var(--p)); background: #b9bec5; }
.cr-tab.on { background: #fff; color: #1f1f1f; }
.cr-tab.on::before, .cr-tab.on::after { /* the curve where the tab flows into the toolbar */
  content: ""; position: absolute; bottom: 0; width: calc(9 * var(--p)); height: calc(9 * var(--p));
}
.cr-tab.on::before { left: calc(-9 * var(--p)); background: radial-gradient(circle at 0 0, transparent calc(8.6 * var(--p)), #fff calc(9 * var(--p))); }
.cr-tab.on::after { right: calc(-9 * var(--p)); background: radial-gradient(circle at 100% 0, transparent calc(8.6 * var(--p)), #fff calc(9 * var(--p))); }
.fav { flex: none; width: calc(16 * var(--p)); height: calc(16 * var(--p)); border-radius: calc(4 * var(--p)); display: grid; place-items: center; font: 700 calc(10 * var(--p))/1 var(--ui); color: #fff; }
.fav svg { width: calc(16 * var(--p)); height: calc(16 * var(--p)); }
.cr-new { align-self: center; width: calc(28 * var(--p)); height: calc(28 * var(--p)); display: grid; place-items: center; margin-left: calc(4 * var(--p)); }
.cr-new svg { width: calc(18 * var(--p)); height: calc(18 * var(--p)); }
.cr-tabs .cr-down { align-self: center; margin-left: auto; width: calc(28 * var(--p)); height: calc(28 * var(--p)); display: grid; place-items: center; border-radius: 50%; background: #d3d9e1; }
.cr-tabs .cr-down svg { width: calc(16 * var(--p)); height: calc(16 * var(--p)); }

.cr-bar { flex: none; height: calc(42 * var(--p)); display: flex; align-items: center; gap: calc(4 * var(--p)); padding: 0 calc(8 * var(--p)); background: #fff; }
.cr-bar > svg { width: calc(30 * var(--p)); height: calc(30 * var(--p)); padding: calc(6 * var(--p)); }
.cr-bar > svg.off { fill: #b3b3b3; }
.cr-omni {
  flex: 1; min-width: 0; height: calc(32 * var(--p)); margin: 0 calc(6 * var(--p)); display: flex; align-items: center; gap: calc(8 * var(--p)); padding: 0 calc(8 * var(--p)) 0 calc(5 * var(--p));
  border-radius: calc(16 * var(--p)); background: #e9eef6; font-size: calc(14 * var(--p)); white-space: nowrap;
}
.cr-omni .tune { width: calc(24 * var(--p)); height: calc(24 * var(--p)); padding: calc(4 * var(--p)); border-radius: 50%; background: #fff; }
.cr-omni .file { padding: calc(2 * var(--p)) calc(9 * var(--p)); border-radius: calc(11 * var(--p)); background: #fff; font-size: calc(12.5 * var(--p)); color: #1f1f1f; }
.cr-omni .host { color: #1f1f1f; }
.cr-omni .path { color: #5f6368; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.cr-omni .star { width: calc(20 * var(--p)); height: calc(20 * var(--p)); margin-left: auto; }
.cr-me { flex: none; width: calc(24 * var(--p)); height: calc(24 * var(--p)); margin: 0 calc(5 * var(--p)); border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #7aa7ff, #b48cff); color: #fff; font: 600 calc(11 * var(--p))/1 var(--ui); }

.cr-marks { flex: none; height: calc(30 * var(--p)); display: flex; align-items: center; gap: calc(4 * var(--p)); padding: 0 calc(10 * var(--p)) calc(2 * var(--p)); background: #fff; border-bottom: calc(1 * var(--p)) solid #e3e3e3; font-size: calc(12 * var(--p)); color: #3c4043; white-space: nowrap; overflow: hidden; }
.cr-marks span { display: inline-flex; align-items: center; gap: calc(7 * var(--p)); padding: calc(3 * var(--p)) calc(8 * var(--p)); border-radius: calc(12 * var(--p)); }
.cr-marks i { width: calc(14 * var(--p)); height: calc(14 * var(--p)); border-radius: calc(3 * var(--p)); background: var(--c, #9aa0a6); }
.cr-marks span:last-child { margin-left: auto; }
.cr-marks span:last-child i { background: none; border: calc(1.4 * var(--p)) solid #5f6368; border-radius: calc(2 * var(--p)); }

.cr-page { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.scene .cr p { margin: 0; max-width: none; }

/* Text selected the way macOS selects it */
.sel { background: linear-gradient(#b3d7ff, #b3d7ff) no-repeat 0 0 / 0% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 0s; }
.scene:not([data-step="rest"]) .sel { background-size: 100% 100%; transition: background-size 0.9s cubic-bezier(0.4, 0, 0.2, 1); }

/* ---------- Gmail ---------- */
.gml { position: absolute; inset: 0; display: grid; grid-template-columns: calc(232 * var(--p)) 1fr calc(52 * var(--p)); grid-template-rows: calc(62 * var(--p)) 1fr; background: #f6f8fc; font-family: var(--ui); color: #1f1f1f; }
.gml svg { width: calc(20 * var(--p)); height: calc(20 * var(--p)); fill: #444746; }
.gml-top { grid-column: 1 / -1; display: flex; align-items: center; gap: calc(14 * var(--p)); padding: 0 calc(14 * var(--p)) 0 calc(18 * var(--p)); }
.gml-top > svg { width: calc(22 * var(--p)); height: calc(22 * var(--p)); }
.gml-logo { display: flex; align-items: center; gap: calc(6 * var(--p)); width: calc(172 * var(--p)); font: 400 calc(21 * var(--p))/1 var(--ui); color: #5f6368; letter-spacing: -0.01em; }
.gml-logo i { width: calc(26 * var(--p)); height: calc(20 * var(--p)); border-radius: calc(3 * var(--p)); background: #fff; box-shadow: inset 0 0 0 calc(1.5 * var(--p)) #c5221f; position: relative; overflow: hidden; }
.gml-logo i::after { content: ""; position: absolute; left: calc(2 * var(--p)); right: calc(2 * var(--p)); top: calc(-8 * var(--p)); height: calc(18 * var(--p)); border: calc(2.4 * var(--p)) solid #c5221f; border-top: 0; border-left-color: transparent; border-right-color: transparent; transform: rotate(0); border-radius: 0 0 calc(3 * var(--p)) calc(3 * var(--p)); }
.gml-search { flex: 1; max-width: calc(560 * var(--p)); height: calc(44 * var(--p)); display: flex; align-items: center; gap: calc(14 * var(--p)); padding: 0 calc(16 * var(--p)); border-radius: calc(22 * var(--p)); background: #e9eef6; color: #444746; font-size: calc(15 * var(--p)); }
.gml-search span { flex: 1; }
.gml-right { margin-left: auto; display: flex; align-items: center; gap: calc(16 * var(--p)); }
.gml-me { width: calc(30 * var(--p)); height: calc(30 * var(--p)); border-radius: 50%; display: grid; place-items: center; background: #7b5ad6; color: #fff; font: 500 calc(14 * var(--p))/1 var(--ui); font-style: normal; }
.gml-nav { display: flex; flex-direction: column; gap: calc(1 * var(--p)); padding: calc(6 * var(--p)) calc(14 * var(--p)) 0 calc(8 * var(--p)); font-size: calc(13.5 * var(--p)); color: #1f1f1f; }
.gml-compose { align-self: flex-start; display: flex; align-items: center; gap: calc(12 * var(--p)); height: calc(52 * var(--p)); padding: 0 calc(22 * var(--p)) 0 calc(16 * var(--p)); margin: 0 0 calc(14 * var(--p)); border-radius: calc(16 * var(--p)); background: #c2e7ff; font-weight: 500; font-size: calc(14 * var(--p)); }
.gml-nav span { display: flex; align-items: center; gap: calc(16 * var(--p)); height: calc(31 * var(--p)); padding: 0 calc(12 * var(--p)) 0 calc(18 * var(--p)); border-radius: 0 calc(16 * var(--p)) calc(16 * var(--p)) 0; }
.gml-nav span svg { width: calc(19 * var(--p)); height: calc(19 * var(--p)); }
.gml-nav span em { margin-left: auto; font-style: normal; font-size: calc(12 * var(--p)); }
.gml-nav .on { background: #d3e3fd; font-weight: 700; }
.gml-nav .lab { margin-top: calc(12 * var(--p)); font-size: calc(15 * var(--p)); font-weight: 500; padding-left: calc(18 * var(--p)); height: calc(34 * var(--p)); display: flex; align-items: center; }
.gml-card { position: relative; min-width: 0; background: #fff; border-radius: calc(16 * var(--p)) calc(16 * var(--p)) 0 0; padding: 0 calc(22 * var(--p)); overflow: hidden; }
.gml-tools { height: calc(48 * var(--p)); display: flex; align-items: center; gap: calc(18 * var(--p)); margin: 0 calc(-8 * var(--p)); padding: 0 calc(2 * var(--p)); }
.gml-tools svg { width: calc(19 * var(--p)); height: calc(19 * var(--p)); }
.gml-tools .sep { width: calc(1 * var(--p)); height: calc(20 * var(--p)); background: #dadce0; }
.gml-tools small { margin-left: auto; font-size: calc(12 * var(--p)); color: #444746; }
.gml-subject { display: flex; align-items: center; gap: calc(10 * var(--p)); padding: calc(8 * var(--p)) 0 calc(16 * var(--p)) calc(52 * var(--p)); font: 400 calc(22 * var(--p))/1.25 var(--ui); color: #1f1f1f; }
.gml-subject em { font: 400 calc(12 * var(--p))/1 var(--ui); font-style: normal; padding: calc(3 * var(--p)) calc(6 * var(--p)); border-radius: calc(4 * var(--p)); background: #ddd; color: #444746; }
.gml-subject svg { margin-left: auto; } .gml-subject svg + svg { margin-left: 0; }
.gml-from { display: flex; align-items: flex-start; gap: calc(12 * var(--p)); }
.gml-face { flex: none; width: calc(40 * var(--p)); height: calc(40 * var(--p)); border-radius: 50%; display: grid; place-items: center; background: #0b8043; color: #fff; font: 500 calc(17 * var(--p))/1 var(--ui); }
.gml-who { flex: 1; min-width: 0; font-size: calc(14 * var(--p)); line-height: 1.35; }
.gml-who b { font-weight: 700; }
.gml-who small { font-size: calc(12 * var(--p)); color: #5e5e5e; }
.gml-who .to { display: block; font-size: calc(12 * var(--p)); color: #5e5e5e; }
.gml-when { display: flex; align-items: center; gap: calc(14 * var(--p)); font-size: calc(12 * var(--p)); color: #5e5e5e; white-space: nowrap; }
.gml-when svg { width: calc(18 * var(--p)); height: calc(18 * var(--p)); }
.gml-body { margin: calc(14 * var(--p)) 0 0 calc(52 * var(--p)); font: 400 calc(14.5 * var(--p))/1.55 Arial, Helvetica, sans-serif; color: #222; }
.gml-body p + p { margin-top: calc(13 * var(--p)) !important; }
.gml-acts { display: flex; gap: calc(10 * var(--p)); margin: calc(22 * var(--p)) 0 0 calc(52 * var(--p)); }
.gml-acts span { display: inline-flex; align-items: center; gap: calc(8 * var(--p)); height: calc(36 * var(--p)); padding: 0 calc(18 * var(--p)) 0 calc(14 * var(--p)); border-radius: calc(18 * var(--p)); border: calc(1 * var(--p)) solid #747775; font-size: calc(14 * var(--p)); font-weight: 500; color: #444746; }
.gml-acts svg { width: calc(18 * var(--p)); height: calc(18 * var(--p)); }
.gml-rail { display: flex; flex-direction: column; align-items: center; gap: calc(22 * var(--p)); padding-top: calc(18 * var(--p)); }
.gml-rail i { width: calc(20 * var(--p)); height: calc(20 * var(--p)); border-radius: calc(5 * var(--p)); background: var(--c); }
.gml-rail hr { width: calc(20 * var(--p)); border: 0; border-top: calc(1 * var(--p)) solid #c4c7c5; margin: 0; }

/* ---------- Chrome's PDF viewer ---------- */
.pdv { position: absolute; inset: 0; display: grid; grid-template-columns: calc(196 * var(--p)) 1fr; grid-template-rows: calc(52 * var(--p)) 1fr; background: #525659; color: #f1f1f1; }
.pdv svg { width: calc(20 * var(--p)); height: calc(20 * var(--p)); fill: #f1f1f1; }
.pdv-top { grid-column: 1 / -1; display: flex; align-items: center; gap: calc(14 * var(--p)); padding: 0 calc(18 * var(--p)); background: #323639; box-shadow: 0 calc(2 * var(--p)) calc(6 * var(--p)) rgba(0, 0, 0, 0.35); z-index: 1; font-size: calc(14 * var(--p)); white-space: nowrap; }
.pdv-name { width: calc(300 * var(--p)); overflow: hidden; text-overflow: ellipsis; }
.pdv-mid { display: flex; align-items: center; gap: calc(12 * var(--p)); margin: 0 auto 0 calc(30 * var(--p)); }
.pdv-mid b { font-weight: 400; padding: calc(2 * var(--p)) calc(6 * var(--p)); background: #191b1c; border-radius: calc(2 * var(--p)); }
.pdv-mid .sep { width: calc(1 * var(--p)); height: calc(20 * var(--p)); background: rgba(255, 255, 255, 0.3); margin: 0 calc(4 * var(--p)); }
.pdv-mid em { font-style: normal; padding: calc(2 * var(--p)) calc(6 * var(--p)); background: #191b1c; border-radius: calc(2 * var(--p)); }
.pdv-right { display: flex; gap: calc(18 * var(--p)); }
.pdv-side { background: #323639; padding: calc(18 * var(--p)) 0; display: flex; flex-direction: column; align-items: center; gap: calc(12 * var(--p)); overflow: hidden; font-size: calc(11 * var(--p)); color: #c8c8c8; }
.pdv-thumb { width: calc(92 * var(--p)); height: calc(120 * var(--p)); background: #fff; padding: calc(9 * var(--p)) calc(8 * var(--p)); display: grid; align-content: start; gap: calc(4 * var(--p)); }
.pdv-thumb i { height: calc(2.4 * var(--p)); background: #c9c9c9; } .pdv-thumb i:nth-child(1) { width: 55%; height: calc(4 * var(--p)); background: #888; margin-bottom: calc(3 * var(--p)); } .pdv-thumb i:nth-child(4) { width: 70%; } .pdv-thumb i:nth-child(6) { width: 40%; margin: calc(4 * var(--p)) auto; }
.pdv-thumb.on { outline: calc(4 * var(--p)) solid #8ab4f8; }
.pdv-main { overflow: hidden; padding-top: calc(16 * var(--p)); }
.pdv-page {
  width: calc(590 * var(--p)); min-height: calc(760 * var(--p)); margin: 0 auto; padding: calc(46 * var(--p)) calc(62 * var(--p)); background: #fff; color: #111;
  box-shadow: 0 calc(2 * var(--p)) calc(8 * var(--p)) rgba(0, 0, 0, 0.5);
  font: 400 calc(14 * var(--p))/1.5 "STIX Two Text", "Times New Roman", serif; text-align: justify; hyphens: auto;
}
.pdv-head { display: flex; justify-content: space-between; font-size: calc(12 * var(--p)); font-style: italic; margin-bottom: calc(26 * var(--p)); color: #222; }
.pdv-page h5 { margin: 0 0 calc(10 * var(--p)); font: 700 calc(17 * var(--p))/1.25 "STIX Two Text", serif; }
.pdv-page h5 span { margin-right: calc(14 * var(--p)); }
.pdv-page p + p { margin-top: calc(9 * var(--p)) !important; }
.pdv-page .eq { margin: calc(12 * var(--p)) 0; text-align: center; font-style: italic; white-space: nowrap; }
.pdv-page .eq span { font-style: normal; }
.pdv-page .qed { float: right; }
.pdv-page b { font-weight: 700; }
.pdv-page .it { font-style: italic; }

/* ---------- A news site, cluttered ---------- */
.nws { position: absolute; inset: 0; overflow: hidden; background: #fff; color: #121212; font-family: var(--ui); }
.nws-ad { display: grid; place-items: center; padding: calc(8 * var(--p)) 0 calc(10 * var(--p)); background: #f3f3f3; }
.nws-ad small, .nws-mpu small { display: block; font-size: calc(9 * var(--p)); letter-spacing: 0.06em; text-transform: uppercase; color: #888; margin-bottom: calc(4 * var(--p)); text-align: center; }
.nws-banner { width: calc(600 * var(--p)); height: calc(62 * var(--p)); display: flex; align-items: center; gap: calc(18 * var(--p)); padding: 0 calc(22 * var(--p)); border-radius: calc(2 * var(--p)); background: linear-gradient(100deg, #0b4fa8, #1680e5 60%, #5bc0ff); color: #fff; }
.nws-banner b { font: 800 calc(22 * var(--p))/1 var(--ui); letter-spacing: -0.01em; }
.nws-banner span { font-size: calc(13 * var(--p)); opacity: 0.9; }
.nws-banner em { margin-left: auto; white-space: nowrap; font-style: normal; font-weight: 700; font-size: calc(13 * var(--p)); padding: calc(8 * var(--p)) calc(16 * var(--p)); border-radius: calc(20 * var(--p)); background: #ffd23f; color: #0b2a55; }
.nws-mast { display: flex; align-items: center; justify-content: space-between; padding: calc(10 * var(--p)) calc(26 * var(--p)) calc(8 * var(--p)); }
.nws-mast small { font-size: calc(12 * var(--p)); color: #555; width: calc(180 * var(--p)); }
.nws-mast h6 { margin: 0; font: 800 calc(34 * var(--p))/1 "Literata", Georgia, serif; letter-spacing: -0.02em; }
.nws-mast .acts { width: calc(180 * var(--p)); display: flex; justify-content: flex-end; align-items: center; gap: calc(12 * var(--p)); font-size: calc(12.5 * var(--p)); }
.nws-mast .acts em { font-style: normal; font-weight: 700; padding: calc(6 * var(--p)) calc(14 * var(--p)); border-radius: calc(3 * var(--p)); background: #c70000; color: #fff; }
.nws-nav { display: flex; gap: calc(22 * var(--p)); padding: calc(8 * var(--p)) calc(26 * var(--p)); border-top: calc(1 * var(--p)) solid #121212; border-bottom: calc(1 * var(--p)) solid #ddd; font-size: calc(13 * var(--p)); font-weight: 600; }
.nws-nav .on { color: #c70000; box-shadow: 0 calc(2 * var(--p)) 0 #c70000; }
.nws-tick { display: flex; gap: calc(12 * var(--p)); padding: calc(6 * var(--p)) calc(26 * var(--p)); background: #121212; color: #fff; font-size: calc(12 * var(--p)); white-space: nowrap; overflow: hidden; }
.nws-tick b { color: #ff5a5a; text-transform: uppercase; letter-spacing: 0.05em; }
.nws-grid { display: grid; grid-template-columns: 1fr calc(236 * var(--p)); gap: calc(30 * var(--p)); padding: calc(16 * var(--p)) calc(26 * var(--p)) 0; }
.nws-kick { font-size: calc(12 * var(--p)); font-weight: 700; color: #c70000; text-transform: uppercase; letter-spacing: 0.05em; }
.nws-main h1 { margin: calc(4 * var(--p)) 0 calc(6 * var(--p)); font: 800 calc(33 * var(--p))/1.08 "Literata", Georgia, serif; letter-spacing: -0.02em; }
.nws-stand { font: 400 calc(16 * var(--p))/1.4 "Literata", Georgia, serif; color: #444; margin-bottom: calc(10 * var(--p)) !important; }
.nws-by { display: flex; align-items: center; gap: calc(9 * var(--p)); padding: calc(8 * var(--p)) 0; margin-bottom: calc(12 * var(--p)); border-top: calc(1 * var(--p)) solid #e5e5e5; border-bottom: calc(1 * var(--p)) solid #e5e5e5; font-size: calc(12 * var(--p)); color: #555; }
.nws-by i { width: calc(26 * var(--p)); height: calc(26 * var(--p)); border-radius: 50%; background: linear-gradient(135deg, #f0b48a, #a0637a); }
.nws-by b { color: #121212; }
.nws-by span:last-child { margin-left: auto; display: flex; gap: calc(8 * var(--p)); }
.nws-by span:last-child u { width: calc(22 * var(--p)); height: calc(22 * var(--p)); border-radius: 50%; border: calc(1 * var(--p)) solid #ccc; }
.scene .nws-main p.body { font: 400 calc(16.5 * var(--p))/1.6 "Literata", Georgia, serif; color: #121212; }
.nws-main p.body[data-read]::before { display: none; }
.nws-photo { margin-top: calc(14 * var(--p)); border-radius: calc(2 * var(--p)); overflow: hidden; }
.nws-photo svg { display: block; width: 100%; height: auto; }
.nws-side h6 { margin: 0 0 calc(8 * var(--p)); padding-top: calc(6 * var(--p)); border-top: calc(3 * var(--p)) solid #121212; font: 800 calc(15 * var(--p))/1.2 "Literata", Georgia, serif; }
.nws-side ol { margin: 0; padding: 0; list-style: none; display: grid; gap: calc(10 * var(--p)); }
.nws-side li { display: grid; grid-template-columns: calc(26 * var(--p)) 1fr; font-size: calc(12.5 * var(--p)); line-height: 1.3; font-weight: 600; padding-bottom: calc(10 * var(--p)); border-bottom: calc(1 * var(--p)) solid #eee; }
.nws-side li b { font: 800 calc(22 * var(--p))/1 "Literata", Georgia, serif; color: #c70000; }
.nws-mpu { margin-top: calc(14 * var(--p)); }
.nws-mpu div { height: calc(190 * var(--p)); display: grid; align-content: end; padding: calc(14 * var(--p)); border-radius: calc(2 * var(--p)); color: #fff; background: radial-gradient(80% 70% at 70% 30%, #ffb15c, #e2512c 60%, #7a1d33); }
.nws-mpu b { font: 800 calc(19 * var(--p))/1.1 var(--ui); } .nws-mpu span { font-size: calc(12 * var(--p)); opacity: 0.9; }
.nws-pop {
  position: absolute; z-index: 3; right: calc(100 * var(--p)); top: calc(250 * var(--p)); width: calc(250 * var(--p)); padding: calc(18 * var(--p)); border-radius: calc(10 * var(--p));
  background: #fff; color: #121212; box-shadow: 0 calc(10 * var(--p)) calc(40 * var(--p)) rgba(0, 0, 0, 0.35); font-size: calc(12.5 * var(--p));
}
.nws-pop b { display: block; font: 800 calc(17 * var(--p))/1.2 "Literata", Georgia, serif; margin-bottom: calc(6 * var(--p)); }
.nws-pop span { display: block; color: #555; margin-bottom: calc(10 * var(--p)); }
.nws-pop u { display: block; text-decoration: none; padding: calc(8 * var(--p)) calc(10 * var(--p)); border: calc(1 * var(--p)) solid #ccc; border-radius: calc(4 * var(--p)); color: #999; margin-bottom: calc(8 * var(--p)); }
.nws-pop em { display: block; font-style: normal; font-weight: 700; text-align: center; padding: calc(9 * var(--p)); border-radius: calc(4 * var(--p)); background: #c70000; color: #fff; }
.nws-pop i { position: absolute; right: calc(12 * var(--p)); top: calc(10 * var(--p)); font-style: normal; color: #888; font-size: calc(16 * var(--p)); }
.nws-cookie {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: calc(18 * var(--p));
  padding: calc(16 * var(--p)) calc(26 * var(--p)); background: #fff; box-shadow: 0 calc(-6 * var(--p)) calc(30 * var(--p)) rgba(0, 0, 0, 0.18); font-size: calc(12.5 * var(--p)); color: #333;
}
.nws-cookie p { flex: 1; } .nws-cookie p b { display: block; color: #121212; font-size: calc(14 * var(--p)); margin-bottom: calc(2 * var(--p)); }
.nws-cookie em, .nws-cookie u { font-style: normal; text-decoration: none; font-weight: 700; padding: calc(9 * var(--p)) calc(18 * var(--p)); border-radius: calc(4 * var(--p)); white-space: nowrap; }
.nws-cookie em { background: #121212; color: #fff; } .nws-cookie u { border: calc(1 * var(--p)) solid #121212; }
.nws-pop, .nws-cookie { transition: opacity 0.7s ease, transform 0.6s var(--ease); }

/* Clutter falls away when the page is read */
.junk, .keepme-soft { transition: opacity 0.7s ease, filter 0.7s ease; }
.scene.clutter[data-step="open"] .junk, .scene.clutter[data-step="speak"] .junk { opacity: 0.12; filter: grayscale(1) blur(0.12cqw); }
.scene.clutter[data-step="open"] .keepme-soft, .scene.clutter[data-step="speak"] .keepme-soft { opacity: 0.4; }
.scene.clutter[data-step="open"] .nws-pop, .scene.clutter[data-step="speak"] .nws-pop,
.scene.clutter[data-step="open"] .nws-cookie, .scene.clutter[data-step="speak"] .nws-cookie { opacity: 0; transform: translateY(calc(40 * var(--p))); filter: none; }

/* ---------- A coding problem with its editorial, for the first picture ---------- */
.prb { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: calc(8 * var(--p)); padding: calc(8 * var(--p)); background: #f0f0f0; }
.prb-pane { min-width: 0; background: #fff; border-radius: calc(8 * var(--p)); overflow: hidden; box-shadow: 0 0 0 calc(1 * var(--p)) #e3e3e3; }
.prb-tabs { display: flex; gap: calc(4 * var(--p)); height: calc(36 * var(--p)); align-items: center; padding: 0 calc(10 * var(--p)); background: #fafafa; border-bottom: calc(1 * var(--p)) solid #eee; font-size: calc(12.5 * var(--p)); color: #5c5c5c; }
.prb-tabs span { padding: calc(5 * var(--p)) calc(9 * var(--p)); border-radius: calc(5 * var(--p)); }
.prb-tabs .on { color: #1a1a1a; font-weight: 600; background: #fff; box-shadow: 0 0 0 calc(1 * var(--p)) #e6e6e6; }
.prb-doc { padding: calc(16 * var(--p)) calc(20 * var(--p)); font-size: calc(13.5 * var(--p)); line-height: 1.62; color: #262626; }
.prb-doc h5 { margin: 0 0 calc(8 * var(--p)); font: 650 calc(19 * var(--p))/1.25 var(--ui); color: #1a1a1a; }
.prb-chips { display: flex; gap: calc(6 * var(--p)); margin-bottom: calc(14 * var(--p)); }
.prb-chips span { font-size: calc(11.5 * var(--p)); padding: calc(2 * var(--p)) calc(9 * var(--p)); border-radius: calc(12 * var(--p)); background: #f2f2f2; color: #555; }
.prb-chips .mid { background: #fff4e5; color: #c77800; font-weight: 600; }
.prb-doc h6 { margin: calc(14 * var(--p)) 0 calc(6 * var(--p)); font: 650 calc(14 * var(--p))/1.3 var(--ui); }
.prb-doc p + p { margin-top: calc(10 * var(--p)) !important; }
.prb-doc code { font: calc(12.5 * var(--p))/1 ui-monospace, Menlo, monospace; padding: calc(1 * var(--p)) calc(5 * var(--p)); border-radius: calc(4 * var(--p)); background: #f2f2f2; }
.prb-code { background: #1e1e1e; color: #d4d4d4; box-shadow: none; }
.prb-code .prb-tabs { background: #252526; border-color: #333; color: #a8a8a8; }
.prb-code .prb-tabs .on { background: #1e1e1e; color: #fff; box-shadow: none; }
.prb-code pre { margin: 0; padding: calc(14 * var(--p)) 0; font: calc(11.5 * var(--p))/1.8 ui-monospace, Menlo, monospace; counter-reset: ln; white-space: pre; }
.prb-code pre span.l { display: block; padding-left: calc(46 * var(--p)); position: relative; }
.prb-code pre span.l::before { counter-increment: ln; content: counter(ln); position: absolute; left: 0; width: calc(30 * var(--p)); text-align: right; color: #6e7681; }
.kw { color: #c586c0; } .fn { color: #dcdcaa; } .ty { color: #4ec9b0; } .nm { color: #b5cea8; } .vr { color: #9cdcfe; }

/* The first picture is a still: the notch is already open and reading */
.scene.shot { margin-top: 3.25rem; }
.scene.shot .sc-notch { width: 46cqw; height: auto; padding-bottom: 1.6cqw; border-radius: 0 0 2.8cqw 2.8cqw; box-shadow: 0 1.6cqw 3.6cqw rgba(0, 0, 0, 0.45); }
.scene.shot .sc-notch::after { opacity: 0.6; }
.scene.shot .sc-notch > * { opacity: 1; }
.scene.shot .sc-caption { height: auto; color: #fff; }
.scene.shot .sc-caption i { color: rgba(255, 255, 255, 0.42); }
.scene.shot .sc-caption i.said { color: #fff; }
.scene.shot .sc-caption i.now { color: var(--marker-ink); }
.scene.shot .sc-progress i { width: 38%; }
.scene.shot .sel { background-size: 100% 100%; }
.sc-bars.live i { transform-origin: center; animation: sn-bars 1.1s ease-in-out infinite; }
.sc-bars.live i:nth-child(2) { animation-delay: -0.3s; } .sc-bars.live i:nth-child(3) { animation-delay: -0.6s; } .sc-bars.live i:nth-child(4) { animation-delay: -0.15s; } .sc-bars.live i:nth-child(5) { animation-delay: -0.45s; }
@keyframes sn-bars { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1.2); } }
.sc-ctl { display: flex; justify-content: center; align-items: center; gap: 2.4cqw; margin-top: 1.1cqw; }
.sc-ctl svg { width: 1.6cqw; height: 1.6cqw; fill: #fff; }
.sc-ctl span { width: 3cqw; height: 3cqw; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.sc-ctl span svg { fill: #000; width: 1.4cqw; height: 1.4cqw; }

/* The button that plays the real audio */
.sc-play {
  position: absolute; z-index: 7; right: 1.6cqw; bottom: 1.6cqw;
  display: inline-flex; align-items: center; gap: 0.5rem; height: 2.5rem; padding: 0 1.1rem; border-radius: 1.25rem;
  background: #fff; color: #000; font: 600 0.9rem var(--ui); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease;
}
.sc-play::before { content: ""; border: 0.34rem solid transparent; border-left: 0.55rem solid #000; border-right: 0; }
.scene.live .sc-play::before { border: 0; width: 0.6rem; height: 0.6rem; border-radius: 2px; background: #000; }
.sc-play:hover { transform: scale(1.03); } .sc-play:active { transform: scale(0.97); }
.case-intro { color: var(--soft); margin: -0.4rem 0 0; }
.case .answer { margin-top: 1.75rem; }

/* Explain and Summarize: the text as it was, then what Earshot says */
.cases { display: grid; gap: 3rem; margin-top: 2.75rem; }
.case h3 { margin: 0 0 0.9rem; font: 600 1.25rem/1.2 var(--reading); }
.source {
  margin: 0; padding: 1rem 1.15rem; border-radius: 0.8rem;
  background: var(--wash); color: var(--soft);
  font-size: 0.875rem; line-height: 1.6;
}
.answer {
  margin-top: 1.1rem; padding-left: 1.15rem;
  font: 400 1.15rem/1.6 var(--reading);
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, #ffe04a, #ff8fa3, #8fd3ff) 1;
  border-radius: 0;
}
.answer::before { left: -1.5rem; }
.aside { margin-top: 1.5rem; padding: 1rem 1.15rem; border-radius: 0.8rem; background: var(--wash); font-size: 0.9375rem; }
.aside strong { font-weight: 600; }

/* Everything in the notch */
.everything { margin: 2rem 0 0; }
.everything > div {
  display: grid; grid-template-columns: 13rem 1fr; gap: 0.5rem 1.5rem; align-items: baseline;
  padding: 0.95rem 0; border-top: 1px solid #e6e6ea;
}
.everything > div:last-child { border-bottom: 1px solid #e6e6ea; }
.everything dt { font-weight: 600; }
.everything dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; color: var(--soft); }
.everything dd span { margin-left: 0.35rem; }
.everything dd span:first-child { margin-left: 0; }
.everything kbd { min-width: 1.9rem; height: 1.9rem; padding: 0 0.55rem; border-radius: 0.45rem; font-size: 0.85rem; color: var(--ink); }

/* Download */
.get { margin-top: 9rem; }
.get h2 { font-size: clamp(2.6rem, 8vw, 4.5rem); letter-spacing: -0.025em; margin-bottom: 0; }
.get-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; margin-top: 2rem; }
.download {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 0.9rem;
  padding: 0.95rem 1.6rem 0.95rem 1.25rem; border-radius: 1.1rem; background: #0c0c10; color: #fff; text-decoration: none;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55); transition: transform 0.15s ease;
}
.download::after { content: ""; position: absolute; z-index: -1; inset: -2px; border-radius: 1.2rem; background-image: var(--spectrum); background-size: 1400px 100%; animation: flow 38s linear infinite; filter: blur(14px); opacity: 0.55; }
.download:hover { transform: translateY(-2px); } .download:active { transform: scale(0.98); }
.download svg { width: 1.6rem; height: 1.6rem; fill: #fff; }
.download span { display: grid; line-height: 1.25; }
.download b { font-size: 1.1rem; font-weight: 650; }
.download small { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); }
.needs { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--soft); }
.install { margin: 2.25rem 0 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 0.9rem; max-width: 36rem; }
.install li { counter-increment: st; position: relative; padding-left: 2.6rem; color: var(--soft); }
.install li::before { content: counter(st); position: absolute; left: 0; top: -0.05rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--wash); color: var(--ink); font: 600 0.85rem/1 var(--ui); }
.install b { color: var(--ink); font-weight: 600; }
.oneline { margin-top: 2.5rem; max-width: 40rem; }
.oneline > p:first-child { color: var(--soft); margin: 0; }
.oneline b { color: var(--ink); font-weight: 600; }
.cmd { display: flex; align-items: center; gap: 0.5rem; margin: 0.9rem 0 0; padding: 0.45rem 0.45rem 0.45rem 1rem; border-radius: 0.8rem; background: #0c0c10; color: #e8e8ee; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 500 0.88rem/1.6 ui-monospace, Menlo, monospace; scrollbar-width: none; }
.cmd button { flex: none; padding: 0.4rem 0.85rem; border-radius: 0.55rem; background: #fff; color: #000; font: 600 0.8rem var(--ui); }
.cmd button:hover { background: #e4e4e7; }

footer {
  max-width: 44rem; margin: 7rem auto 0; padding: 1.5rem 1.5rem 3rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  font-size: 0.8125rem; color: var(--soft);
  border-top: 1px solid #e6e6ea;
}
footer p { margin: 0; }
footer p:first-child { flex-basis: 100%; margin-bottom: 0.5rem; }
footer .logo { font-size: 1.3rem; }

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .hero { padding-top: 13.5rem; }
  section { margin-top: 5.5rem; }
  [data-read]::before { display: none; }
  .notch[data-state="reading"] { --h: 252px; }
  .caption { font-size: 1.0625rem; height: 112px; }
  .idle-hint { display: none; }
  .steps li { padding-left: 2.5rem; }
  .everything > div { grid-template-columns: 1fr; }
  .sc-play { height: 2.1rem; font-size: 0.8rem; padding: 0 0.85rem; }
  .voices { grid-template-columns: 1fr 1fr; }
  .voices button { padding: 0.6rem 0.65rem; gap: 0.55rem; }
  .notch[data-state="closed"] { --w: 150px; }
}

/* Scenes on a phone: the same Mac, seen closer, with one column of each page */
@media (max-width: 640px) {
  .scene { --p: calc(100cqw / 540); aspect-ratio: 1 / 1.18; border-radius: 0.9rem; }
  .mac-bar { gap: calc(14 * var(--p)); padding: 0 calc(14 * var(--p)); }
  .mac-bar .menu, .mac-bar .right svg:nth-of-type(n+3) { display: none; }
  .sc-notch { width: 30cqw; height: calc(34 * var(--p)); border-radius: 0 0 2.4cqw 2.4cqw; }
  .scene[data-step="open"] .sc-notch, .scene[data-step="speak"] .sc-notch { width: 92cqw; height: 37cqw; border-radius: 0 0 5cqw 5cqw; }
  .sc-ears { height: calc(34 * var(--p)); font-size: 2.4cqw; padding: 0 3cqw; gap: 1.4cqw; }
  .sc-bars { height: 2.6cqw; gap: 0.5cqw; } .sc-bars i { width: 0.5cqw; height: 2.6cqw; }
  .sc-style { padding: 0.5cqw 1.6cqw; }
  .sc-caption { font-size: 3.7cqw; height: 18.6cqw; margin: 1.6cqw 4cqw 0; }
  .sc-progress { margin: 2.4cqw 4cqw 0; height: 0.45cqw; }
  .sc-keys { bottom: 17cqw; padding: 1.6cqw 2cqw; gap: 1.2cqw; border-radius: 3cqw; }
  .sc-keys kbd { min-width: 7cqw; height: 7cqw; font-size: 3cqw; border-radius: 1.6cqw; padding: 0 2cqw; }
  .scene.shot .sc-notch { width: 80cqw; height: auto; }
  .scene.shot .sc-caption { font-size: 3.2cqw; margin-top: 0.6cqw; }
  .scene.shot .sc-caption { height: auto; }
  .sc-ctl svg { width: 3.2cqw; height: 3.2cqw; } .sc-ctl span { width: 6cqw; height: 6cqw; } .sc-ctl span svg { width: 2.8cqw; height: 2.8cqw; }
  .sc-ctl { gap: 5cqw; margin-top: 2cqw; } .scene.shot .sc-notch { padding-bottom: 3cqw; }

  .cr { left: calc(12 * var(--p)); right: calc(12 * var(--p)); top: calc(50 * var(--p)); bottom: calc(-10 * var(--p)); border-radius: calc(11 * var(--p)) calc(11 * var(--p)) 0 0; }
  .cr-tab:not(.on), .cr-new, .cr-marks, .cr-bar > svg:nth-of-type(2), .cr-bar > svg:last-of-type, .cr-bar .puzzle { display: none; }
  .cr-tab { width: calc(230 * var(--p)); }

  .gml { grid-template-columns: 1fr; grid-template-rows: calc(58 * var(--p)) 1fr; }
  .gml-nav, .gml-rail, .gml-logo, .gml-right > svg, .gml-search svg:last-child { display: none; }
  .gml-card { border-radius: 0; padding: 0 calc(16 * var(--p)); }
  .gml-tools svg:nth-of-type(n+5), .gml-tools .sep { display: none; }
  .gml-subject { padding-left: 0; font-size: calc(20 * var(--p)); } .gml-subject svg { display: none; }
  .gml-when svg { display: none; }
  .gml-body, .gml-acts { margin-left: 0; }

  .pdv { grid-template-columns: 1fr; }
  .pdv-side, .pdv-right, .pdv-mid .sep, .pdv-mid svg { display: none; }
  .pdv-name { width: auto; flex: 1; } .pdv-mid { margin: 0; }
  .pdv-page { width: calc(500 * var(--p)); padding: calc(34 * var(--p)) calc(34 * var(--p)); }

  .nws-grid { grid-template-columns: 1fr; padding: calc(12 * var(--p)) calc(18 * var(--p)) 0; }
  .nws-side, .nws-pop, .nws-mast small, .nws-nav span:nth-child(n+5) { display: none; }
  .nws-banner { width: calc(480 * var(--p)); } .nws-banner span { display: none; }
  .nws-mast { padding: calc(10 * var(--p)) calc(18 * var(--p)) calc(8 * var(--p)); } .nws-mast .acts { width: auto; }
  .nws-nav, .nws-tick { padding-left: calc(18 * var(--p)); padding-right: calc(18 * var(--p)); }
  .nws-cookie { padding: calc(12 * var(--p)) calc(18 * var(--p)); } .nws-cookie u { display: none; }

  .prb { grid-template-columns: 1fr; } .prb-code { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .notch, .notch > *, .marker, .bars i { transition: none !important; }
  .logo .ear::before, .marker, .progress i, .notch-glow, .notch-aura i, .rest-wave i, .rest-line b, .rest-halo, .ready i, .example::after, .download::after, .notch-aura::after, body::before, .sc-notch::after, .sc-caption i.now, .sc-progress i, .picture::after, .sc-bars.live i { animation: none !important; }
}
