/* MarcusLabs — homepage: the multicolor wordmark with its chameleon, the slide tool as it was,
   then one screen each for Eikus, Kritus, Kyklus and the book. Tokens only. */

/* ---------- hero: the wordmark is the stage ---------- */
.home-hero { min-height: 0; padding: calc(120 * var(--u)) 0 calc(36 * var(--u)); }
.home-hero .hero-wrap { padding-block: 0; }
.home-hero .hero-apps { margin-bottom: clamp(calc(28 * var(--u)), calc(6vh * var(--f)), calc(72 * var(--u))); margin-left: -.058em; }   /* the E's side bearing: its ink starts on the M's and the picture's left edge */
.logo-stage { position: relative; }
.home .hero-mark { position: relative; z-index: 1; font-family: "ML Logo", var(--sans); font-stretch: normal; letter-spacing: -.022em; }
.home .hero-mark .lt { color: var(--c); }
/* the M's own left side bearing (0.056 em) would set its stem in from the column edge the rows above and below start on */
.home .hero-mark .hm { margin-left: -.058em; }
.logo-cham { position: absolute; z-index: 2; pointer-events: none; max-width: none; }   /* wider than the stage on purpose */
.home-hero .hero-slogan { margin-top: clamp(calc(14 * var(--u)), 2.2cqi, calc(30 * var(--u))); }
/* the picture under the wordmark and slogan */
.hero-image { margin: clamp(calc(36 * var(--u)), calc(6vh * var(--f)), calc(72 * var(--u))) 0 0; }
.hero-image img { display: block; width: 100%; height: auto; }

/* On wide screens the whole hero is one screen: the app names sit level with the header's small items,
   everything below keeps its spacing, and the picture takes the rest of the height, uncropped. */
@media (min-width: 901px) {
  .home-hero { height: 100svh; min-height: calc(600 * var(--u)); padding: 0 0 calc(24 * var(--u)); justify-content: flex-start; }
  .home-hero .hero-wrap { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .home-hero .hero-apps { margin-top: calc(calc(32 * var(--u)) - .5em); }        /* centred on the 64 px header row */
  .hero-image { flex: 1 1 0; min-height: 0; }
  .hero-image img { width: 100%; height: 100%; object-fit: contain; object-position: center top; }
  /* the big wordmark is right below, so the header's own small mark waits until the page scrolls */
  .home .nav .nav-mark, .home .nav .nav-where { transition: opacity .3s ease; }
  .home .nav:not(.is-solid) .nav-mark, .home .nav:not(.is-solid) .nav-where { opacity: 0; pointer-events: none; }
}
/* the hero's app names sit in the header row at the top of the page: while the header is still clear there, only its own
   controls take clicks (once it turns solid it catches every click again) */
.home .nav:not(.is-solid), .home .nav:not(.is-solid) .nav-in { pointer-events: none; }
.home .nav-in > * { pointer-events: auto; }
/* 901–1080 px: the header shows Menu and the tool's controls right after the hidden mark, so the app names go below it */
@media (min-width: 901px) and (max-width: 1080px) {
  .home-hero .hero-apps { margin-top: calc(80 * var(--u)); }
}

/* ---------- the tool: same markup and behaviour, closer to the wordmark ---------- */
.tool-sec { position: relative; }
.slides-app { --u: 1px; }   /* the AI Slides tool stays exactly as it was, at its own sizes, on any screen */
.home #tool > .hero { padding-top: clamp(calc(48 * var(--u)), calc(8vh * var(--f)), calc(96 * var(--u))) !important; }
/* its own footer moved into the site footer below (same links, same address) */
.home #tool > footer { display: none; }
.home #tool { background-image: var(--grain); background-size: 128px 128px; }

/* ---------- link to the explainer page ----------
   right under the Paddle note, inside the tool's pricing and centred like it (the user, 2026-10-25); no rule above it,
   and set smaller than it was as its own band after the tool */
.slides-app .slides-more { display: grid; justify-items: center; gap: calc(10 * var(--u)); margin-top: clamp(calc(44 * var(--u)), calc(7svh * var(--f)), calc(72 * var(--u))); text-align: center; }
.slides-app .slides-more .k { font-family: var(--mono); font-size: calc(11.5 * var(--u)); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.slides-app .slides-more-link { text-decoration: none; color: var(--ink); text-wrap: balance;
  font-family: var(--sans); font-stretch: var(--expanded); font-weight: 760; font-size: clamp(calc(17 * var(--u)), calc(1.7vw * var(--f)), calc(24 * var(--u))); line-height: 1.25; letter-spacing: -.01em; }
.slides-app .slides-more-link .arr { display: inline-block; margin-left: .4em; color: var(--amber); transition: transform .3s var(--ease-out); }
.slides-app .slides-more-link:hover { color: var(--amber); }
.slides-app .slides-more-link:hover .arr { transform: translateX(calc(6 * var(--u))); }

/* ---------- one screen per product: full, loud, still one screen ----------
   (min-height, not height: a panel whose words don't fit a short or narrow window grows rather than clipping them,
   and the magnet in main.js lets a panel taller than the screen scroll freely) */
.panel { --pmax: var(--max); min-height: max(calc(640 * var(--u)), 100svh); display: flex; align-items: center; padding: calc(84 * var(--u)) 0 calc(28 * var(--u)); overflow: hidden; }
.panel + .panel::before { content: ""; position: absolute; z-index: 3; left: 50%; top: 0; width: min(var(--pmax), 100% - 2 * var(--gutter));
  height: 1px; background: var(--line); transform: translateX(-50%); }
.panel-in { width: min(var(--pmax), 100% - 2 * var(--gutter)); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(calc(28 * var(--u)), calc(4vw * var(--f)), calc(72 * var(--u))); align-items: center; }
.panel-text { margin: 0; }
.panel .eyebrow { margin-bottom: calc(14 * var(--u)); }
.panel .app-mark { display: flex; align-items: center; margin-bottom: calc(14 * var(--u)); gap: calc(12 * var(--u)); }
.panel .app-mark img { width: calc(40 * var(--u)); height: calc(40 * var(--u)); }
.panel .app-mark img.ear { width: auto; }
.panel .app-mark .wm { font-size: calc(20 * var(--u)); }
.panel-h { font-size: clamp(calc(32 * var(--u)), calc(3.4vw * var(--f)), calc(54 * var(--u))); line-height: 1; margin-bottom: 0; }
#kritus .panel-h { font-size: min(calc(32 * var(--u)), calc(9.1vw * var(--f))); }   /* its hand-set lines: 'first understand' fits a 320 px phone */
.panel-book { font-size: clamp(calc(48 * var(--u)), calc(5.6vw * var(--f)), calc(88 * var(--u))); }
.panel .book-sub { max-width: 30em; }
/* what the product makes you do, in one sentence and three plain points */
.panel-core { margin: calc(22 * var(--u)) 0 0; max-width: 36em; font-size: clamp(calc(16 * var(--u)), calc(1.25vw * var(--f)), calc(19 * var(--u))); line-height: 1.55; color: var(--ink); }
.panel-points { list-style: none; counter-reset: pt; margin: calc(22 * var(--u)) 0 0; padding: 0; display: grid; gap: calc(14 * var(--u)); max-width: 36em; }
.panel-points li { counter-increment: pt; display: grid; grid-template-columns: 2.4em 1fr; column-gap: calc(6 * var(--u)); padding-top: calc(12 * var(--u)); border-top: 1px solid var(--line); }
.panel-points li::before { content: "0" counter(pt); grid-row: span 2; font-family: var(--mono); font-size: calc(12 * var(--u)); letter-spacing: .08em; color: var(--accent); padding-top: calc(3 * var(--u)); }
.panel-points b { font-family: var(--sans); font-stretch: var(--expanded); font-weight: 760; font-size: calc(16 * var(--u)); line-height: 1.3; color: var(--ink); text-wrap: balance; }
.panel-points span { font-size: calc(14 * var(--u)); line-height: 1.55; color: var(--ink-2); }
.panel .cta-row { margin-top: calc(24 * var(--u)); }
/* two visuals side by side, same height, never overlapping; each says what it shows */
.panel-visual { min-width: 0; container-type: inline-size; }
.pv-pair { display: flex; justify-content: center; align-items: flex-end; gap: calc(22 * var(--u));
  --h: min(calc(100svh - calc(300 * var(--u))), calc(620 * var(--u)), calc((100cqi - calc(80 * var(--u))) / var(--sum))); }
.pv-item { margin: 0; display: grid; gap: calc(12 * var(--u)); justify-items: center; align-content: end; }
.pv-item figcaption { max-width: 28ch; font-family: var(--mono); font-size: calc(11.5 * var(--u)); line-height: 1.45; letter-spacing: .05em; text-transform: uppercase;
  text-align: center; color: var(--ink-3); }
.pv-dev { position: relative; display: block; padding: var(--bz); }
.pv-dev img { display: block; height: var(--h); width: auto; border-radius: calc(var(--rad) - var(--bz)); }
.pv-dev.pv-plain { padding: 0; }
.pv-dev.pv-plain img { border-radius: 0; border: 1px solid var(--cocoa); }

/* Eikus: the playable tumbler takes the whole visual column (its desk is as wide as the column) */
.pv-toy { display: flex; justify-content: center; }
.pv-toy .pv-item, .pv-toy .widget { width: 100%; }

/* touch screens and paused motion: the browser's own snapping */
html.snap-native { scroll-snap-type: y proximity; }
html.snap-native .panel { scroll-snap-align: start; }

@media (max-width: 860px) {
  .panel { height: auto; min-height: 100svh; padding: calc(96 * var(--u)) 0 calc(64 * var(--u)); }
  .panel-in { grid-template-columns: minmax(0, 1fr); gap: calc(36 * var(--u)); }
  .pv-pair { --h: min(64vw, calc(420 * var(--u)), calc((100cqi - calc(60 * var(--u))) / var(--sum))); gap: calc(14 * var(--u)); }
}
@media (max-width: 640px) {
  /* the tool's own controls (Pricing, Privacy, language, Log in) get a row of their own, under the mark and Menu */
  .home .nav-in { flex-wrap: wrap; height: auto; gap: 0 calc(12 * var(--u)); padding-block: calc(10 * var(--u)) 0; }
  .home .nav-menu { margin-left: auto; }
  .home .nav .nav-r { order: 3; width: 100%; justify-content: space-between; padding: calc(8 * var(--u)) 0 calc(9 * var(--u)); margin-top: calc(10 * var(--u)); border-top: 1px solid var(--line); }
  .home .nav.on-light .nav-r { border-top-color: var(--taupe); }
  .home-hero { padding-top: calc(132 * var(--u)); }
  .panel { padding-top: calc(120 * var(--u)); }
}

/* Kritus: the four onboarding pages as four upright cards in a row, in order from left to right, staggered, and laid
   out like the app's own pages: the illustration large across the top with air around it, then the eyebrow, title and
   text, centred. No phone chrome. Light cards, cream → fog → stone → taupe as the pages go on; all the same height. */
.pv-onboard .pv-item { width: 100%; }
.onboard-cards { list-style: none; margin: 0; padding: 0 0 9cqi; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(calc(8 * var(--u)), 1.6cqi, calc(14 * var(--u))); align-items: start; text-align: center; }
/* each card is the onboarding page itself, scaled down: the same layout and type sizes as on the iPhone (402 pt wide),
   measured from the app and expressed in units of the card's inner width (the card less its 6.5% side margins, so
   1 pt = 100cqi / 350), minus the status bar, Skip,
   the page dots and the button. The card is the phone screen without that bottom strip (402 × 800 pt), with a phone's corners. */
.ob-card { --bg: var(--cream); container-type: inline-size; display: flex; flex-direction: column; align-items: center; padding: 0 6.5%;
  position: relative; border-radius: calc(26 * var(--u)); aspect-ratio: 402 / 800; background: var(--bg); color: var(--charcoal); }
.ob-card:nth-child(1) { top: 8cqi; }
.ob-card:nth-child(2) { --bg: var(--fog); top: 2cqi; }
.ob-card:nth-child(3) { --bg: var(--stone); top: 9cqi; }
.ob-card:nth-child(4) { --bg: var(--taupe); top: 4cqi; }   /* the second highest; the second card is the highest (the user) */
/* the illustration: 160 pt tall, centred across the screen, with the room above it that Skip leaves on the phone.
   Cards 1, 2 and 4 spread theirs to about the card's width, as card 3's already is (the user): --art-w is the drawing's
   width, set from its visible ink so that ink spans ~96% of the card; --art-x centres that ink (the fourth drawing's
   strands sit left of its canvas, whose right side is only faint circles); --grow is the extra height this takes,
   borrowed half from the room above the art and half from the room below it, so the words stay where they were */
.ob-card:nth-child(1) { --art-w: 105.5% auto; --art-x: calc(50% - 1.2cqi); --grow: 15.5cqi; }
.ob-card:nth-child(2) { --art-w: 108% auto; --art-x: calc(50% + 1.1cqi); --grow: 17.2cqi; }
.ob-card:nth-child(4) { --art-w: 110.6% auto; --art-x: calc(50% + 6.5cqi); --grow: 12.4cqi; }
.ob-art { display: block; align-self: stretch; height: calc(45.7cqi + var(--grow, 0cqi)); margin: calc(33.3cqi - var(--grow, 0cqi) / 2) -7.5cqi 0;
  background: var(--charcoal); -webkit-mask-size: var(--art-w, contain); mask-size: var(--art-w, contain); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: var(--art-x, 50%) 50%; mask-position: var(--art-x, 50%) 50%; }
/* eyebrow 12 pt, 122 pt below the art; title 33 pt; text 16 pt on 22 pt lines */
.ob-k { margin: calc(34.8cqi - var(--grow, 0cqi) / 2) 0 0; font-family: var(--mono); font-size: max(3.45cqi, calc(7 * var(--u))); line-height: 1.2; letter-spacing: .2em; text-transform: uppercase; color: var(--cocoa); }
.ob-t { margin: 5.1cqi -6cqi 0; font-family: var(--sans); font-stretch: var(--expanded); font-weight: 760; font-size: 9.4cqi; line-height: 1.1;
  letter-spacing: -.005em; text-wrap: balance; color: var(--charcoal); }
.ob-b { margin: 5.1cqi 0 0; font-family: var(--sans); font-stretch: var(--expanded); font-weight: 400; font-size: max(4.6cqi, calc(7 * var(--u))); line-height: 1.375; color: color-mix(in srgb, var(--charcoal) 78%, transparent); }
/* phones: a sideways strip, a card and a half wide, still in order */
@media (max-width: 860px) {
  .onboard-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(64%, calc(280 * var(--u))); overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; padding-bottom: calc(12 * var(--u)); }
  .ob-card { scroll-snap-align: start; top: 0 !important; }
}

/* Kyklus: two columns. Left: the words, then the family of devices (Mac and iPhone dark, iPad light), a little smaller.
   Right: the browser demo, big, and under it the three points side by side. Phones: words, demo, points, devices. */
.ky-demo { justify-items: start; }
.ky-demo .pv-dev, .ky-demo img { width: 100%; height: auto; }
/* the demo as it lays out in a narrower window (controls stacked), so its words read at this size; on a short screen it
   gives up width before the points under it lose their room */
@media (min-width: 861px) { .ky-demo img { width: auto; max-width: 100%; max-height: calc(100svh - calc(320 * var(--u))); } }
.ky-demo figcaption, .ky-family figcaption { max-width: none; text-align: left; }
.ky-family { width: 100%; justify-items: start; }
/* the three devices, arranged like a product family shot: the Mac square-on in the middle, the iPad held upright on its
   left and the iPhone on its right, each tilted and turned a little in perspective and laid over the Mac's edge.
   Real relative sizes: a 16-inch MacBook Pro screen about 13.6 × 8.5 in, an 11-inch iPad about 6.3 × 9.1 in upright,
   an iPhone about 2.6 × 5.7 in. Near-black bezels with a thin metal edge, as on the real devices. */
.fam { position: relative; width: min(100%, calc(560 * var(--u))); aspect-ratio: 100 / 54; }
.fam img { display: block; width: 100%; height: auto; }
.fam-mac { position: absolute; z-index: 1; left: 23.9%; top: 0; width: 60.2%; }
.fam-lid { padding: 2.2% 2.2% 3.4%; background: #0d0d0f; border-radius: calc(10 * var(--u)) calc(10 * var(--u)) calc(4 * var(--u)) calc(4 * var(--u)); box-shadow: 0 0 0 calc(1.5 * var(--u)) #c7c7cc; }   /* the metal edge only: no drop shadows on the site (the user) */
.fam-lid img { border-radius: calc(2 * var(--u)); }
.fam-base { position: relative; display: block; width: 114%; margin-left: -7%; height: 0; padding-top: 3.6%;
  background: linear-gradient(#e2e2e6, #a9a9ae); border-radius: 0 0 calc(14 * var(--u)) calc(14 * var(--u)) / 0 0 100% 100%; }
.fam-base::after { content: ""; position: absolute; left: 41%; right: 41%; top: 0; height: 34%; background: #9a9aa0; border-radius: 0 0 calc(8 * var(--u)) calc(8 * var(--u)); }
/* the iPad and the iPhone are turned in space, not just tilted flat, and show their metal sides (they have thickness).
   Size, place, turn and perspective were solved from the reference shot (each device's four corners measured there and
   a CSS 3D transform fitted to land on them within 3 px). Live CSS 3D let some browsers project these planes through the
   camera (huge, streaked devices) and blurred the iPad's screen, so they are baked images now (no drop shadow):
   the 3D source is dev/kyklus-family-3d/family.html, re-baked by tools/bake_family.py, which prints these places */
.fam-ipad, .fam-phone { position: absolute; z-index: 2; }
.fam-ipad { left: 0.48%; top: 15.43%; width: 32.02%; }
.fam-phone { left: 81.01%; top: 27.23%; width: 18.75%; }
@media (min-width: 861px) {
  /* three rows: the demo spans the first two (top right), the family the last two (bottom left), so the points and the
     family end on one line and neither column leaves an empty band */
  .ky-in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr auto;
    grid-template-areas: "text demo" "family demo" "family points"; row-gap: clamp(calc(20 * var(--u)), calc(4vh * var(--f)), calc(40 * var(--u))); align-items: start; }
  .ky-in .panel-text { grid-area: text; }
  .ky-in .panel-h { font-size: clamp(calc(32 * var(--u)), calc(3.4vw * var(--f)), calc(52 * var(--u))); }   /* "Loop it. Own it." on one line in the 4.3fr column */
  .ky-demo { grid-area: demo; }
  .ky-in .ky-points { grid-area: points; align-self: end; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(calc(16 * var(--u)), calc(2vw * var(--f)), calc(28 * var(--u)));
    margin: 0 calc(-1 * var(--bleed)) 0 0; max-width: none; }
  /* side by side, each point stacks its number over its title so the text gets the whole column */
  .ky-in .ky-points li { grid-template-columns: minmax(0, 1fr); row-gap: calc(4 * var(--u)); align-content: start; }
  .ky-in .ky-points li::before { grid-row: auto; padding-top: 0; }
  .ky-family { grid-area: family; align-self: end; }
  .ky-family .fam { width: min(100%, calc(560 * var(--u))); }
}

/* wide screens: the Kritus cards, the Kyklus demo and the book's figures run past the column into the page margin (up to 150 px, 24 px short of the edge) */
@media (min-width: 861px) {
  .panel { container-type: inline-size; }
  .panel-in { --bleed: clamp(0px, (100cqw - min(var(--pmax), 100cqw - 2 * var(--gutter))) / 2 - calc(24 * var(--u)), calc(150 * var(--u))); }
  .pv-onboard, .ky-demo, .pv-book, .pv-toy { margin-right: calc(-1 * var(--bleed)); }
  /* the book's two figures, in their own colours, as large as the widened column allows */
  .pv-book { --h: min(calc((100svh - calc(230 * var(--u))) / 1.14), calc(640 * var(--u)), calc((100cqi - calc(28 * var(--u))) / var(--sum))); align-items: flex-start; }
  .pv-book > :nth-child(2) { margin-top: calc(var(--h) * .14); }   /* set off from each other, not lined up */
}

/* desktop: words and spacing scale with the screen's HEIGHT as well as its width, so each panel fills its screen
   (on a tall screen the type grows, on a short one it shrinks) instead of floating in the middle of it */
@media (min-width: 861px) {
  .panel { --pmax: max(var(--max), min(calc(1360 * var(--u)), 125svh)); }   /* wider on big, tall screens */
  .panel .eyebrow, .panel .app-mark { margin-bottom: clamp(calc(8 * var(--u)), calc(1.5svh * var(--f)), calc(16 * var(--u))); }
  .panel .app-mark img { width: clamp(calc(36 * var(--u)), 5svh, calc(52 * var(--u))); height: clamp(calc(36 * var(--u)), 5svh, calc(52 * var(--u))); }
  .panel .app-mark .wm { font-size: clamp(calc(18 * var(--u)), calc(2.4svh * var(--f)), calc(24 * var(--u))); }
  .panel-h { font-size: clamp(calc(28 * var(--u)), min(3.6vw, calc(5.7svh * var(--f))), calc(64 * var(--u))); }
  .panel-book { font-size: clamp(calc(38 * var(--u)), min(5.4vw, calc(8.2svh * var(--f))), calc(92 * var(--u))); }
  .ky-in .panel-h { font-size: clamp(calc(28 * var(--u)), min(3.4vw, calc(6svh * var(--f))), calc(56 * var(--u))); }
  /* Kritus's headline is a long sentence (the user's own words, translated literally): one size down so the panel stays one screen */
  #kritus .panel-h { font-size: clamp(calc(24 * var(--u)), min(2.6vw, calc(4.1svh * var(--f))), calc(46 * var(--u))); text-wrap: balance; }   /* balanced, so 'hearing.' isn't left alone */
  .panel .book-sub { margin-top: clamp(calc(14 * var(--u)), calc(2.4svh * var(--f)), calc(26 * var(--u))); }
  .panel-core { margin-top: clamp(calc(12 * var(--u)), calc(2.1svh * var(--f)), calc(28 * var(--u))); font-size: clamp(calc(15 * var(--u)), min(1.35vw, calc(2.1svh * var(--f))), calc(21 * var(--u))); line-height: 1.5; }
  .panel-points { margin-top: clamp(calc(12 * var(--u)), calc(2.1svh * var(--f)), calc(28 * var(--u))); gap: clamp(calc(8 * var(--u)), calc(1.4svh * var(--f)), calc(18 * var(--u))); }
  .panel-points li { padding-top: clamp(calc(8 * var(--u)), calc(1.2svh * var(--f)), calc(14 * var(--u))); }
  .panel-points b { font-size: clamp(calc(15 * var(--u)), min(1.2vw, calc(1.85svh * var(--f))), calc(19 * var(--u))); text-wrap: balance; }
  .panel-points span { font-size: clamp(calc(13 * var(--u)), min(1.02vw, calc(1.6svh * var(--f))), calc(16 * var(--u))); line-height: 1.5; }
  .panel .cta-row { margin-top: clamp(calc(14 * var(--u)), calc(2.3svh * var(--f)), calc(30 * var(--u))); }
  /* Kritus: a little more room for the four cards */
  #kritus .panel-in { grid-template-columns: minmax(0, 4.4fr) minmax(0, 6.6fr); }
}
/* Eikus's headline is set on the user's own five lines (data-lines): on a short screen it takes one size down so the panel stays one screen */
@media (min-width: 861px) and (max-height: 800px) {
  #eikus .panel-h { font-size: clamp(calc(26 * var(--u)), min(3.2vw, calc(5.1svh * var(--f))), calc(64 * var(--u))); }
}
/* and Kritus's six hand-set lines, one size down on the shortest screens */
@media (min-width: 861px) and (max-height: 740px) {
  #kritus .panel-h { font-size: clamp(calc(22 * var(--u)), min(2.6vw, calc(3.5svh * var(--f))), calc(46 * var(--u))); }
}
/* Kyklus's three point titles stay on one line each at width 125 */
@media (min-width: 861px) { .ky-in .ky-points b { font-size: clamp(calc(13 * var(--u)), min(1.05vw, calc(1.62svh * var(--f))), calc(17 * var(--u))); } }
@media (min-width: 861px) and (min-height: 1000px) and (max-width: 1440px), (min-width: 861px) and (min-height: 1000px) and (max-aspect-ratio: 36/25) { .ky-in .ky-points b { font-size: clamp(calc(13 * var(--u)), min(1.05vw, calc(1.75svh * var(--f))), calc(18.5 * var(--u))); } }
/* 'Lose Your Way' on one line on short screens, sized to its column */
#book .panel-text { container-type: inline-size; }
@media (min-width: 861px) and (max-height: 800px) { .panel-book { font-size: min(clamp(calc(38 * var(--u)), min(5.4vw, calc(8.2svh * var(--f))), calc(92 * var(--u))), 11.5cqi); } }
/* tall desktop screens (1000 px and up): the words take one more step up, so the panel still fills the screen */
@media (min-width: 861px) and (min-height: 1000px) and (max-width: 1440px), (min-width: 861px) and (min-height: 1000px) and (max-aspect-ratio: 36/25) {
  .panel-h { font-size: clamp(calc(28 * var(--u)), min(3.6vw, calc(6.2svh * var(--f))), calc(72 * var(--u))); }
  .panel-core { font-size: clamp(calc(15 * var(--u)), min(1.35vw, calc(2.2svh * var(--f))), calc(23 * var(--u))); }
  .panel-points b { font-size: clamp(calc(15 * var(--u)), min(1.2vw, calc(2svh * var(--f))), calc(21 * var(--u))); }
  .panel-points span { font-size: clamp(calc(13 * var(--u)), min(1.02vw, calc(1.7svh * var(--f))), calc(17.5 * var(--u))); }
}
/* laptop screens up to 900 px tall: the header needs less room above the words */
@media (min-width: 861px) and (max-height: 900px), (min-width: 861px) and (min-aspect-ratio: 8/5) {   /* height / --u at most 900 */
  .panel { padding-top: calc(72 * var(--u)); padding-bottom: calc(20 * var(--u)); }
}

/* narrow desktop windows (861–1100 px): Kritus puts its cards under the words, so the cards stay wider than tall */
@media (min-width: 861px) and (max-width: 1100px) {
  #kritus .panel-in { grid-template-columns: minmax(0, 1fr); }
}
