/* TruceAI's home page: one idea per screen. Whole screens of type, the real app as the picture, and the page cutting
   between black, white and (for Ultra) orange as it scrolls. Loaded after site.css, which keeps the shared parts
   (the top bar's layout, buttons, News, Terms, the footer). home.js drives the scenes. */

/* ---------- the fields: every screen is black, white or orange, whatever the system's theme ---------- */
body.home,
.f-dark {
  --bg: #141413;
  --surface: #1e1e1d;
  --group: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.1);
  --border: #2d2d2b;
  --text: #ecebe6;
  --text-2: #c4c2bb;
  --muted: #8f8d86;
  --ink: #ecebe6;
  --ink-text: #141413;
  --btn: rgba(255, 255, 255, 0.1);
  --btn-hover: rgba(255, 255, 255, 0.16);
  --blue: #7b9bff;
  --dot: rgba(255, 255, 255, 0.11);
  --dot-near: rgba(255, 255, 255, 0.55);
  color-scheme: dark;
}
.f-light {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --group: rgba(20, 20, 19, 0.055);
  --line: rgba(20, 20, 19, 0.12);
  --border: #e2e0da;
  --text: #161615;
  --text-2: #45443f;
  --muted: #6c6a64;
  --ink: #161615;
  --ink-text: #fbfbfa;
  --btn: rgba(20, 20, 19, 0.08);
  --btn-hover: rgba(20, 20, 19, 0.14);
  --blue: #2f6ae0;
  color-scheme: light;
}
.f-orange {
  --bg: #f07a2b;
  --text: #161615;
  --text-2: #33200f;
  --muted: #5a3413;
  --ink: #161615;
  --ink-text: #f07a2b;
  --btn: rgba(22, 22, 21, 0.14);
  --line: rgba(22, 22, 21, 0.28);
  color-scheme: light;
}
body.home {
  background: var(--bg);
  color: var(--text);
}
.f-light,
.f-orange {
  position: relative;
  z-index: 1;
  background: var(--bg);
  color: var(--text);
}
/* the white screens carry the same dots, in ink */
.f-light {
  background-image: radial-gradient(circle at center, rgba(20, 20, 19, 0.13) 1px, transparent 1.5px);
  background-size: 22px 22px;
}
::selection {
  background: var(--text);
  color: var(--bg);
}

/* ---------- the top bar floats over every field, in the ink of the field under it (home.js says which) ---------- */
.home .top {
  position: fixed;
  left: 0;
  right: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: #ecebe6;
  transition: color 0.25s;
}
.home .top nav {
  color: inherit;
}
.home .top nav a:not(.pill) {
  opacity: 0.74;
  transition: opacity 0.2s;
}
.home .top nav a:not(.pill):hover {
  color: inherit;
  opacity: 1;
}
.home .top .pill.ink,
.home .top .pill.ink:hover {
  background: #ecebe6;
  color: #141413;
  transition:
    background-color 0.25s,
    color 0.25s;
}
html[data-bar='light'] .home .top,
html[data-bar='orange'] .home .top {
  color: #161615;
}
html[data-bar='light'] .home .top .pill.ink {
  background: #161615;
  color: #fbfbfa;
}
html[data-bar='orange'] .home .top .pill.ink {
  background: #161615;
  color: #f07a2b;
}
.brand .eye {
  width: 30px;
  height: 30px;
}

/* ---------- the mark: the app's own, drawn and moved by the app's mark engine (mark.js) ---------- */
.eye {
  display: block;
  overflow: visible;
}
/* its black outline keeps one width on screen at any size (home.js sets --mark-stroke, as the app does) */
.eye [stroke] {
  stroke-width: var(--mark-stroke, 3);
}

/* ---------- what streams in: headlines word by word, the rest rising after ---------- */
[data-stream] .w {
  display: inline-block;
}
html.anim [data-stream] .w {
  opacity: 0;
  transform: translateY(0.32em);
  filter: blur(8px);
}
html.anim [data-stream].in .w {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity 0.45s,
    transform 0.75s cubic-bezier(0.3, 1.15, 0.4, 1),
    filter 0.45s;
  transition-delay: calc(var(--i) * 75ms);
}
html.anim [data-rise] {
  opacity: 0;
  transform: translateY(28px);
}
html.anim [data-rise].in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s,
    transform 0.9s cubic-bezier(0.3, 1.15, 0.4, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
/* letters of the big changing words (home.js writes them) */
.letters span {
  display: inline-block;
  animation: letter-in 0.6s cubic-bezier(0.3, 1.15, 0.4, 1) backwards;
  animation-delay: calc(var(--i) * 42ms);
  transition: transform 0.45s cubic-bezier(0.3, 1.25, 0.4, 1);
}
/* each letter of the big words lifts under the pointer */
.letters span:hover {
  transform: translateY(-0.055em);
}

/* ---------- things that lean toward the pointer while it is over them (home.js: --tx, --ty) ---------- */
html.anim [data-tilt].tilting {
  opacity: 1;
  transform: perspective(900px) rotateX(calc(var(--tx, 0) * 1deg)) rotateY(calc(var(--ty, 0) * 1deg));
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: 0s;
}

.why-dots i {
  cursor: pointer;
}
@keyframes letter-in {
  from {
    opacity: 0;
    transform: translateY(0.22em) scale(0.92);
    filter: blur(10px);
  }
}

/* ---------- 1. the opening: the mark, the line, the button ---------- */
.s-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vh, 34px);
  padding: 96px var(--gutter) 72px;
  text-align: center;
}
/* light behind the line: white, soft, no color */
.s-hero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(1200px, 120vw);
  height: 70vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.085), transparent);
  pointer-events: none;
}
.s-hero > * {
  position: relative;
  /* the opening pulls back as the app comes up (home.js sets --out, 0 to 1) */
  opacity: calc(1 - var(--out, 0) * 1.5);
  transform: translateY(calc(var(--out, 0) * -60px)) scale(calc(1 - var(--out, 0) * 0.07));
}
.hero-eye {
  width: clamp(84px, 12vh, 132px);
  height: clamp(84px, 12vh, 132px);
}
.s-hero h1 {
  font-size: clamp(52px, 9.4vw, 172px);
  line-height: 0.88;
  font-weight: 760;
  letter-spacing: -0.058em;
}
.s-hero .lede {
  max-width: 30em;
  margin: 0;
  color: var(--text-2);
  font-size: clamp(17px, 1.5vw, 21px);
}
.s-hero .acts {
  justify-content: center;
  margin: 0;
}
.card-line {
  margin: 0;
  min-height: 1.6em;
  color: var(--muted);
  font-size: 15px;
}
.card-line[hidden] {
  display: block;
  visibility: hidden;
}
.card-line b {
  color: var(--text);
  font-weight: 600;
}
.s-hero .phone-app-note {
  margin: 0;
}

/* ---------- 2. the story: one huge word, and the real app in front of it, doing it ---------- */
.s-story {
  position: relative;
}
html.anim .s-story {
  height: 520vh;
}
.pin {
  position: relative;
}
html.anim .pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.bgword {
  display: none;
}
html.anim .bgword {
  display: block;
  position: absolute;
  top: 5vh;
  left: 0;
  right: 0;
  text-align: center;
  font-size: min(30vw, 54vh);
  line-height: 0.82;
  font-weight: 800;
  letter-spacing: -0.07em;
  white-space: nowrap;
  color: var(--text);
  user-select: none;
  /* it comes up with the app, and slides a little against the pointer (it is further back than the app) */
  opacity: var(--enter, 1);
  transform: translate(calc(var(--ry, 0) * -5px), calc(var(--rx, 0) * 5px));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.stage-win {
  position: relative;
  width: min(100% - 2 * var(--gutter), 1100px);
  margin: 0 auto;
  aspect-ratio: 1180 / 760;
  border-radius: 16px;
  overflow: hidden;
  background: #141413;
  outline: 1px solid var(--border);
}
html.anim .stage-win {
  position: absolute;
  left: 50%;
  top: 25.5vh;
  width: min(86vw, 56vh * 1180 / 760);
  margin: 0;
  /* rises and grows into place as the scene arrives (--enter) */
  /* ...and it leans toward the pointer (home.js: --rx, --ry) */
  transform: translateX(-50%) translateY(calc((1 - var(--enter, 1)) * 46vh)) scale(calc(0.8 + 0.2 * var(--enter, 1))) perspective(1500px) rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg));
  will-change: transform;
  transform-origin: 50% 0;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
}
.stage-win iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1180px;
  height: 760px;
  border: 0;
  transform: scale(var(--s, 1));
  transform-origin: 0 0;
  pointer-events: none;
  background: #141413;
}
/* the chapters: with script, the one being played is a line under the slider; without, a plain list under the app */
.chapters {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 var(--gutter);
  list-style: none;
  display: grid;
  gap: 28px;
}
.chapter {
  min-height: 0;
  gap: 8px;
}
.chapter h2 {
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text);
}
.chapter p {
  max-width: 30em;
  font-size: 16px;
  color: var(--text-2);
}
html.anim .chapters {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(16px, 3.4vh, 36px);
  max-width: none;
  margin: 0;
  padding: 0;
  display: block;
  /* only once the app has arrived */
  opacity: calc((var(--enter, 1) - 0.82) * 6);
}
html.anim .chapter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.35s,
    transform 0.6s cubic-bezier(0.3, 1.15, 0.4, 1);
  pointer-events: none;
}
html.anim .chapter.on {
  opacity: 1;
  transform: none;
}
/* with script the giant word and the slider say the name; it stays for screen readers */
html.anim .chapter h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
html.anim .chapter p {
  max-width: none;
}

/* the slider: which of the four the app is doing, and the way to the others (the look of TruceAI's own older slider:
   a soft track, and a light pill that slides under the names) */
.seg {
  display: none;
}
html.anim .seg {
  position: absolute;
  left: 50%;
  bottom: clamp(54px, 8.4vh, 86px);
  transform: translateX(-50%);
  display: flex;
  width: min(430px, 100vw - 2 * var(--gutter));
  padding: 3px;
  border-radius: 999px;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
  /* only once the app has arrived */
  opacity: calc((var(--enter, 1) - 0.82) * 6);
}
.seg-pill {
  position: absolute;
  z-index: 1;
  top: 3px;
  bottom: 3px;
  left: calc(3px + var(--at, 0) * (100% - 6px) / 4);
  width: calc((100% - 6px) / 4);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #ecebe6 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 6px 16px -10px rgba(236, 235, 230, 0.7);
  pointer-events: none;
  transition:
    left 0.34s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.25s;
}
.seg.none .seg-pill {
  opacity: 0;
}
.seg-btn {
  position: relative;
  z-index: 2;
  flex: 1 1 0;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.26s;
}
.seg-btn:hover {
  color: var(--text);
}
.seg-btn.active,
.seg-btn.active:hover {
  color: #141413;
}

/* ---------- 3. made: the white screen, a video that opens up ---------- */
.s-made {
  padding: clamp(96px, 16vh, 190px) 0 clamp(96px, 16vh, 190px);
}
.mega {
  max-width: 11em;
  margin: 0 0 clamp(36px, 7vh, 80px);
  font-size: clamp(46px, 8.6vw, 158px);
  line-height: 0.88;
  font-weight: 760;
  letter-spacing: -0.058em;
}
.cinema {
  position: relative;
  margin: 0 0 14px;
  aspect-ratio: 832 / 480;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}
html.anim .cinema {
  /* opens from a small frame to the whole width as it arrives (--p, 0 to 1) */
  clip-path: inset(calc((1 - var(--p, 1)) * 14%) calc((1 - var(--p, 1)) * 20%) round calc(16px + (1 - var(--p, 1)) * 26px));
}
.cinema video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1.18 - 0.18 * var(--p, 1)));
}
.cinema figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  display: flex;
  gap: 10px;
  padding: 9px 13px;
  border-radius: 10px;
  background: rgba(20, 20, 19, 0.78);
  color: #ecebe6;
  font-size: 14px;
}
.cinema figcaption span {
  color: #b9b7b0;
}
.s-made .made-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(190px, 19vw, 270px);
}
.made-item.wide-sheet,
.s-made .made-item.sheet:last-child {
  grid-column: 1 / -1;
}
.s-made .made-item.wide-sheet {
  grid-row: auto;
}
.s-made .answer {
  font-size: clamp(22px, 3.2vw, 46px);
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.03em;
}

/* ---------- 4. yours: one word at a time, as big as the screen ---------- */
.s-why {
  position: relative;
}
.s-why .why-pin {
  padding: clamp(96px, 16vh, 180px) var(--gutter);
}
html.anim .s-why {
  height: 420vh;
}
html.anim .s-why .why-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  text-align: center;
  overflow: hidden;
}
.why-title {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--text-2);
}
html.anim .why-title {
  align-self: end;
  padding-bottom: 2vh;
}
.why-big {
  display: none;
}
html.anim .why-big {
  display: block;
  /* as big as its letters allow (--n of them) */
  font-size: min(58vh, calc(150vw / var(--n, 2)));
  line-height: 0.84;
  font-weight: 800;
  letter-spacing: -0.07em;
  white-space: nowrap;
}
.why-cap {
  display: none;
}
html.anim .why-cap {
  display: block;
  align-self: start;
  padding-top: 3vh;
  color: var(--text-2);
  font-size: clamp(18px, 1.8vw, 26px);
}
/* with script the list is read out by the big word; without, it is the section */
html.anim .s-why .why-grid {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.why-dots {
  display: none;
}
html.anim .why-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 6vh, 56px);
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.why-dots i {
  width: 34px;
  height: 3px;
  /* easier to press than it looks */
  padding: 12px 0;
  background-clip: content-box;
  box-sizing: content-box;
  background-color: var(--line);
  transition: background-color 0.4s;
}
.why-dots i.on {
  background-color: var(--text);
}

/* ---------- 5. the phone: white again ---------- */
.s-pair {
  padding: clamp(96px, 16vh, 190px) 0;
}
/* the line takes what is left between the two, however little */
.s-pair .pair-line {
  width: 0;
  min-width: 0;
}
.s-pair .pair-pc {
  box-shadow: 0 40px 100px rgba(20, 20, 19, 0.22);
}
html.anim .s-pair .pair-phone {
  opacity: 0;
  transform: translateX(-46%) scale(0.86);
}
html.anim .s-pair .pair-row.in .pair-phone {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.5s 0.35s,
    transform 1s cubic-bezier(0.3, 1.15, 0.4, 1) 0.35s;
}
html.anim .s-pair .wire {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
html.anim .s-pair .pair-row.in .wire {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}
html.anim .s-pair .pulse {
  opacity: 0;
}
html.anim .s-pair .pair-row.in .pulse {
  opacity: 1;
  transition: opacity 0.3s 1.1s;
}

/* ---------- 6. Ultra: the whole screen in its orange ---------- */
.s-ultra {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 5vh, 56px);
  padding: clamp(96px, 14vh, 160px) 0;
}
.ultra-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(28px, 5vh, 56px);
  width: 100%;
}
.s-ultra .ultra-switch {
  cursor: pointer;
  gap: 18px;
  color: var(--text);
  font-size: clamp(22px, 2.4vw, 34px);
}
.s-ultra .ultra-switch i {
  width: 88px;
  height: 52px;
  border-radius: 15px;
  background: rgba(22, 22, 21, 0.22);
  transition: background-color 0.35s;
}
.s-ultra .ultra-switch i::after {
  top: 7px;
  right: auto;
  left: 7px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f07a2b;
  transition: transform 0.55s cubic-bezier(0.3, 1.25, 0.4, 1);
}
.s-ultra .on .ultra-switch i,
html:not(.anim) .s-ultra .ultra-switch i {
  background: #161615;
}
.s-ultra .on .ultra-switch i::after,
html:not(.anim) .s-ultra .ultra-switch i::after {
  transform: translateX(36px);
}
.s-ultra h2 {
  max-width: 9em;
  font-size: clamp(52px, 10.4vw, 190px);
  line-height: 0.86;
  font-weight: 780;
  letter-spacing: -0.06em;
}
.s-ultra .ultra-chips {
  gap: 10px;
}
.s-ultra .ultra-chips li {
  padding: 14px 22px;
  border-radius: 13px;
  background: none;
  box-shadow: inset 0 0 0 2px rgba(22, 22, 21, 0.32);
  color: var(--text);
  font-size: clamp(16px, 1.5vw, 21px);
  transition:
    background-color 0.45s,
    color 0.45s,
    box-shadow 0.45s;
}
.s-ultra .ultra-chips li.on,
html:not(.anim) .s-ultra .ultra-chips li {
  background: #161615;
  box-shadow: inset 0 0 0 2px #161615;
  color: #f07a2b;
}

/* ---------- 7. get it ---------- */
.s-get {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vh, 44px);
  padding: 110px var(--gutter) 90px;
  text-align: center;
}
.s-get::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1300px, 130vw);
  height: 80vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.09), transparent);
  pointer-events: none;
}
.s-get > * {
  position: relative;
}
.get-eye {
  width: clamp(96px, 15vh, 170px);
  height: clamp(96px, 15vh, 170px);
}
.s-get .huge {
  font-size: clamp(60px, 14.6vw, 270px);
  line-height: 0.84;
  font-weight: 780;
  letter-spacing: -0.065em;
}
.s-get .acts {
  justify-content: center;
  margin: 0;
}
.ver {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.ver[hidden] {
  display: none;
}
.home .foot {
  position: relative;
  z-index: 1;
  background: var(--bg);
}

/* ---------- the Updates page (scripts/build-updates.mjs): every release, newest first ---------- */
.u-hero {
  max-width: 1240px;
  min-height: 64vh;
  margin: 0 auto;
  padding: 150px var(--gutter) clamp(40px, 7vh, 72px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  gap: clamp(22px, 4vh, 40px);
}
.u-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 3vw, 44px);
}
.u-hero h1 {
  font-size: clamp(60px, 15.5vw, 260px);
  line-height: 0.84;
  font-weight: 780;
  letter-spacing: -0.065em;
  /* room for the p's tail, so nothing below runs into it */
  padding-bottom: 0.16em;
}
.u-eye {
  flex: none;
  width: clamp(56px, 11vw, 170px);
  height: clamp(56px, 11vw, 170px);
}
.u-now {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 22px;
}
.u-list {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(96px, 14vh, 170px);
  list-style: none;
}
/* a day: its date on the left (it stays in view while the day's releases pass), the releases on the right */
.u-day {
  display: grid;
  grid-template-columns: minmax(150px, 0.2fr) 1fr;
  gap: 0 clamp(16px, 3vw, 48px);
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
}
.u-date {
  position: sticky;
  top: 84px;
  align-self: start;
  color: var(--muted);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.u-rel {
  display: grid;
  grid-template-columns: minmax(96px, 0.17fr) 1fr;
  gap: 0 clamp(14px, 2.4vw, 36px);
  align-items: baseline;
  scroll-margin-top: 96px;
}
.u-rel + .u-rel {
  margin-top: 24px;
}
.u-v {
  font-size: clamp(19px, 1.9vw, 26px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.u-rel ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.45;
}
.u-quiet {
  color: var(--muted);
}
/* a range of versions is too wide for the version column: its count goes under it */
.u-rel.range {
  grid-template-columns: 1fr;
  gap: 4px;
}
/* the newest one says it bigger */
.u-rel.newest {
  grid-template-columns: 1fr;
  gap: 12px;
}
.u-rel.newest .u-v {
  font-size: clamp(44px, 7vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.055em;
}
.u-rel.newest ul {
  color: var(--text);
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.015em;
}
/* a list scrolls under the bar here, so the bar gets the page's ground behind it */
.home.updates .top {
  background: color-mix(in srgb, #141413 84%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.home .top nav a[aria-current='page'] {
  opacity: 1;
}

/* ---------- narrower screens ---------- */
@media (max-width: 1099px) {
  html.anim .stage-win {
    top: 23vh;
    width: min(88vw, 50vh * 1180 / 760);
  }
  html.anim .bgword {
    top: 7vh;
    font-size: min(32vw, 30vh);
  }
  .chapter p {
    font-size: 15px;
  }
}
@media (max-width: 760px) {
  .u-day {
    grid-template-columns: 1fr;
  }
  .u-date {
    position: static;
    margin-bottom: 14px;
  }
  .u-rel {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  /* the phone's app, at a phone's shape */
  .stage-win {
    width: min(74vw, 330px);
    aspect-ratio: 390 / 700;
  }
  html.anim .stage-win {
    top: 16.5vh;
    width: min(66vw, 56vh * 390 / 700);
  }
  .stage-win iframe {
    width: 390px;
    height: 700px;
  }
  html.anim .bgword {
    top: 7vh;
    font-size: min(40vw, 20vh);
  }
  html.anim .chapters {
    bottom: clamp(10px, 2vh, 20px);
  }
  html.anim .seg {
    bottom: clamp(64px, 10.5vh, 96px);
  }
  .seg-btn {
    min-height: 38px;
    font-size: 14px;
  }
  .chapter h2 {
    font-size: 22px;
  }
  .chapter p {
    font-size: 14px;
    line-height: 1.4;
  }
  .s-made .made-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }
  .s-ultra .ultra-switch i {
    width: 70px;
    height: 42px;
  }
  .s-ultra .ultra-switch i::after {
    top: 6px;
    left: 6px;
    width: 30px;
    height: 30px;
  }
  .s-ultra .on .ultra-switch i::after,
  html:not(.anim) .s-ultra .ultra-switch i::after {
    transform: translateX(28px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .letters span {
    transition: none;
    animation: none;
  }
}
