/* repsalot.com home page (canvas "Web · 50 úvodných obrazoviek", round R13: R13Whole on a computer, MobHome13 on a
   phone). Built by scripts/utils/build-home.js on top of web.css (tokens, header, footer, buttons, store badges).
   A computer gets nine full-screen blocks drawn at 1240 × 820 (the hero at 1440 × 900) and zoomed to the window
   (--z, --zh from home.js); a phone (≤ 900 px) gets one column.
   html[data-mode] is the look in use (light / dark, set before the first paint and kept in step by home.js);
   html[data-js] marks that the entrances run; html[data-sec] is the block on screen. */

:root {
  --menu: #FFFFFF; --sel: #EEF3FF; --ink-go: #2563EB; --ph-shadow: drop-shadow(-14px 32px 32px rgba(20, 24, 34, .22));
  --dev-shadow: drop-shadow(0 26px 34px rgba(20, 24, 34, .22)); --pill-bg: rgba(255, 255, 255, .78);
}
html[data-mode="dark"] {
  --menu: #17191F; --sel: rgba(255, 255, 255, .09); --ink-go: #5B8CFF; --ph-shadow: drop-shadow(-16px 36px 36px rgba(0, 0, 0, .55));
  --dev-shadow: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); --pill-bg: rgba(255, 255, 255, .08);
}

/* ---------- shared ---------- */
.home { background: var(--b1); }
.hm-ph img, .hm-dev img, .hm-wb, .hm-wf img { display: block; width: 100%; height: auto; }
.hm-ph img.sd { display: none; }
html[data-mode="dark"] .hm-ph img.sl { display: none; }
html[data-mode="dark"] .hm-ph img.sd { display: block; }
.hm-ink { background-image: linear-gradient(90deg, var(--ink-go) 0 50%, var(--pale) 50% 100%); background-size: 200% 100%; background-position: 0 0; -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .1em .18em 0; margin: 0 -.1em -.18em 0; }
.hm-pill { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px 0 11px; border-radius: 999px; font: 600 14px/1 Inter, system-ui, sans-serif; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hm-pill i { width: 8px; height: 8px; border-radius: 50%; background: #30D158; box-shadow: 0 0 0 4px rgba(48, 209, 88, .22); }
.hm-xp { position: relative; list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 16px 0 0; font: 600 12.5px/1.3 Inter, system-ui, sans-serif; color: var(--muted); }
.hm-xp::before, .hm-xp .hm-xpbar { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 3px; border-radius: 2px; background: var(--pale); }
.hm-xp .hm-xpbar { background: var(--ink-go); transform-origin: 0 50%; }
.hm-xp b { color: var(--accent); font-weight: 800; }
.hm-fnote { margin: 12px 0 0; font: 500 10px/1.4 Inter, system-ui, sans-serif; color: var(--faint); opacity: .8; max-width: 560px; }
.hm-fnote a, .hm-cond { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.hm-cond { color: var(--faint); font-weight: 600; white-space: nowrap; }
.hm-lead a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.hm-list .mb { display: none; }

/* the language menu (header) */
.hm-lang { position: relative; }
.hm-lang summary { list-style: none; cursor: pointer; }
.hm-lang summary::-webkit-details-marker { display: none; }
.lang { height: 42px; padding: 0 9px 0 10px; border-radius: 12px; background: var(--ghost); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); display: flex; align-items: center; gap: 7px; font: 700 13.5px Inter, system-ui, sans-serif; }
.lang img, .hm-langm img { width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); flex: none; object-fit: cover; }
.hm-langm { position: absolute; right: 0; top: 50px; z-index: 40; width: 236px; padding: 6px; border-radius: 16px; background: var(--menu); border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(10, 16, 40, .25); display: grid; gap: 1px; }
.hm-langm a { height: 38px; padding: 0 10px; border-radius: 10px; display: flex; align-items: center; gap: 10px; font: 600 14px Inter, system-ui, sans-serif; color: var(--ink); }
.hm-langm a:hover { background: var(--ghost); }
.hm-langm a[aria-current] { background: var(--sel); }

/* FAQ */
.hm-faq details { border-bottom: 1px solid var(--line); }
.hm-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; list-style: none; cursor: pointer; font: 650 16px/1.35 Inter, system-ui, sans-serif; color: var(--ink); }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary span { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 13px; color: var(--faint); transition: transform .3s, color .3s; }
.hm-faq details[open] summary span { transform: rotate(45deg); color: var(--ink); }
.hm-faq details p { margin: -4px 0 0; padding: 0 34px 16px 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* About: phones with their screens (both looks: the dark one wipes in and out), the Light / Dark switch */
.hm-dev { position: relative; margin: 0; }
.hm-dev .fr { position: relative; z-index: 3; display: block; width: 100%; height: auto; pointer-events: none; filter: var(--dev-shadow); }
.hm-dev .scr { position: absolute; z-index: 1; overflow: hidden; background: #000; isolation: isolate; box-shadow: 0 0 0 2px #000; }
/* the screen box ends on the very pixel where the frame opening starts, so both edges are half-covered there and the
   light page showed through as a thin white rim (owner 23.11.2026, Chrome / Safari); the black spread runs on under
   the bezel and fills that pixel */
.hm-dev.i .scr { left: 4.249%; top: 2.048%; width: 91.502%; height: 95.903%; border-radius: 14% / 6.45%; }
.hm-dev.a .scr { left: 4.184%; top: 2.022%; width: 90.78%; height: 96.23%; border-radius: 14% / 6.3%; }
.hm-dev .t { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.hm-dev img.l, .hm-dev img.d { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* the dark look wipes in from the left over the light one, with a blue line on its edge */
.hm-dev img.d { clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.65, 0, .25, 1); }
.hm-dev figcaption { position: absolute; left: 0; right: 0; top: calc(100% + 16px); text-align: center; font: 600 14px/1 Inter, system-ui, sans-serif; color: var(--faint); }
.hm-in[data-dark="1"] .hm-dev img.d { clip-path: inset(0 0 0 0); }
/* once the dark look has wiped in, the light one underneath goes, or its white edge shows through the anti-aliased
   rim of the screen (owner 23.11.2026); back to light it is there at once, under the dark one wiping out */
.hm-in[data-dark="1"] .hm-dev img.l { visibility: hidden; transition: visibility 0s .9s; }
.hm-in[data-tab="0"] .hm-dev .t0, .hm-in[data-tab="1"] .hm-dev .t1, .hm-in[data-tab="2"] .hm-dev .t2, .hm-in[data-tab="3"] .hm-dev .t3, .hm-in[data-tab="4"] .hm-dev .t4 { opacity: 1; z-index: 2; }
/* About: the watches. The whole watch (.hm-wb) lies under the phone, the case with the screen (.hm-wf) over it, so the
   strap loop goes behind the phone's edge; the screen follows the same data-tab as the phones */
.hm-wb, .hm-wf { margin: 0; pointer-events: none; }
.hm-wb { filter: var(--dev-shadow); }
/* Safari (iPhone) cut the shadow of a revealed device off at the image edge, a grey square around the watches and
   phones (owner 23.11.2026); a layer of its own for the filtered image keeps the whole shadow */
.hm-dev .fr, .hm-wb, .hm-ph img { will-change: filter; }
.hm-wf { position: relative; }
.hm-wf .t { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .45s ease; }
.hm-wf .t0 { position: relative; }
.hm-in[data-tab="0"] .hm-wf .t0, .hm-in[data-tab="1"] .hm-wf .t1, .hm-in[data-tab="2"] .hm-wf .t2, .hm-in[data-tab="3"] .hm-wf .t3, .hm-in[data-tab="4"] .hm-wf .t4 { opacity: 1; }
.hm-mode { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 208px; height: 42px; padding: 3px; box-sizing: border-box; border-radius: 13px; background: var(--ghost); box-shadow: inset 0 0 0 1px var(--line); }
.hm-mode button { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0; border: 0; background: none; cursor: pointer; font: 700 13.5px/1 Inter, system-ui, sans-serif; color: var(--muted); transition: color .3s; }
.hm-mode .knob { position: absolute; left: 3px; top: 3px; width: calc(50% - 3px); height: calc(100% - 6px); border-radius: 10px; background: var(--ink); transition: transform .35s cubic-bezier(.65, 0, .25, 1); }
.hm-in[data-dark="0"] .hm-mode .ml, .hm-in[data-dark="1"] .hm-mode .md { color: var(--b1); }
.hm-in[data-dark="1"] .hm-mode .knob { transform: translateX(100%); }
.hm-tabs { margin: 0; padding: 0; list-style: none; }
.hm-tabs .row { width: 100%; margin: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; color: var(--faint); transition: color .3s; -webkit-tap-highlight-color: transparent; }
.hm-tabs .row:hover { color: var(--muted); }
.hm-tabs svg { fill: currentColor; flex: none; }
.hm-tabs .pg { position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--ink-go); transform: scaleX(0); transform-origin: 0 50%; }
.hm-in[data-tab="0"] .hm-tabs .r0, .hm-in[data-tab="1"] .hm-tabs .r1, .hm-in[data-tab="2"] .hm-tabs .r2, .hm-in[data-tab="3"] .hm-tabs .r3, .hm-in[data-tab="4"] .hm-tabs .r4 { color: var(--ink); }
.hm-in[data-tab="0"] .hm-tabs .r0 .pg, .hm-in[data-tab="1"] .hm-tabs .r1 .pg, .hm-in[data-tab="2"] .hm-tabs .r2 .pg, .hm-in[data-tab="3"] .hm-tabs .r3 .pg, .hm-in[data-tab="4"] .hm-tabs .r4 .pg { transform: none; }
/* while the tabs take turns, the line under the current one fills up until the next */
@keyframes hmFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hm-in[data-auto][data-tab="0"] .hm-tabs .r0 .pg, .hm-in[data-auto][data-tab="1"] .hm-tabs .r1 .pg, .hm-in[data-auto][data-tab="2"] .hm-tabs .r2 .pg, .hm-in[data-auto][data-tab="3"] .hm-tabs .r3 .pg, .hm-in[data-auto][data-tab="4"] .hm-tabs .r4 .pg { animation: hmFill 4.8s linear both; }

/* the closing block: the fist bump, and under it a dark footer in both looks (E3, 4.11.2026) */
.hm-ft { background: #0B0B0C; border-top: 1px solid rgba(255, 255, 255, .08); --b1: #0B0B0C; --ghost: rgba(255, 255, 255, .06); --ink: #F4F5F7; --muted: #C2C7D0; --faint: #9AA1AD; --line: rgba(255, 255, 255, .12); }
.hm-ft .mk-l { display: none; }
.hm-ft .mk-d { display: inline; }
.hm-ft .logo b { background-image: linear-gradient(90deg, #4FA7DF, #5B7CFF); }
.hm-ft .ft-tm { grid-column: 1 / -1; margin: 0 0 18px; font: 500 12px/1.5 Inter, system-ui, sans-serif; color: var(--faint); }
.hm-ft .ft-tm a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.hm-end { position: relative; overflow: hidden; background: #0B0B0C; color: #fff; }
.hm-kp { position: absolute; background: url(/assets/home/fistbump.webp) 50% 50% / cover no-repeat; }
html[data-mode="dark"] .hm-kp { filter: grayscale(1) contrast(1.06); }
.hm-kc { position: relative; z-index: 2; }
.hm-kh { margin: 0 0 20px; font: 800 76px/1.02 'Schibsted Grotesk', system-ui, sans-serif; letter-spacing: -.045em; color: #fff; }
.hm-kl { margin: 0 0 26px; font-size: 18.5px; line-height: 1.5; color: rgba(255, 255, 255, .74); }
.hm-kc .hm-pill { margin-bottom: 22px; }


/* ====================================================================================================== */
/* ---------- a computer ---------- */
@media (min-width: 901px) {
  /* a block settles at the top when the scroll ends near its start (proximity), and a quick scroll glides past
     blocks instead of stopping at every one (owner 4.11.2026: smoother) */
  html { scroll-snap-type: y proximity; }
  .hm-hero, .hm-blk, .hm-end { scroll-snap-align: start; }

  /* header: transparent over the hall, its glass comes in as you scroll (--s 0 → 1); the logo starts big */
  .hm-hd { position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: transparent; border-bottom: 0; }
  /* the header lines up with the hero's stage: the logo sits exactly above the headline at any window size */
  .hm-hd .hd-in { height: 80px; max-width: calc(1440px * var(--zh, 1)); padding: 0 calc(100px * var(--zh, 1)) 0 calc(60px * var(--zh, 1)); }
  .hm-hd::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: var(--s, 1); background: var(--head-bg); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
  html[data-mode="dark"] .hm-hd .hd-nav a, html[data-big] .hm-hd .hd-nav a { color: rgba(255, 255, 255, .72); }
  /* light look (D1, 4.11.2026): the hall and the header over it look the same as in the dark look; only the app
     screens in the phones are light. The header turns light once you scroll into the light blocks. */
  html[data-mode="light"][data-big] .hm-hd { --ghost: rgba(255, 255, 255, .08); --line: rgba(255, 255, 255, .16); --ink: #F4F5F7; --b1: #0B0B0C; --muted: #C2C7D0; --faint: #9AA1AD; }
  html[data-mode="light"][data-big] .hm-hd .hm-langm { --ink: #111317; --line: rgba(17, 19, 23, .12); --ghost: rgba(17, 19, 23, .045); }
  html[data-mode="dark"] .hm-hd .hd-nav a:hover { color: #fff; }
  /* the Features menu (M4): light text over the hall like the links; its panel keeps the page's own look */
  html[data-mode="dark"] .hm-hd .nav-dd summary, html[data-big] .hm-hd .nav-dd summary { color: rgba(255, 255, 255, .72); }
  html[data-mode="dark"] .hm-hd .nav-dd summary:hover, html[data-big] .hm-hd .nav-dd summary:hover, html[data-big] .hm-hd .nav-dd[open] summary { color: #fff; }
  html[data-mode="light"][data-big] .hm-hd .nav-ddp { --ink: #111317; --line: rgba(17, 19, 23, .12); --ghost: rgba(17, 19, 23, .045); --muted: #3F4550; --faint: #5E646E; }
  html[data-sec="training"] .hm-hd .nav-dd summary, html[data-sec="nutrition"] .hm-hd .nav-dd summary, html[data-sec="community"] .hm-hd .nav-dd summary, html[data-sec="tools"] .hm-hd .nav-dd summary, html[data-sec="profile"] .hm-hd .nav-dd summary { color: var(--ink); }
  .hm-logo { transform-origin: 0 50%; transform: translateY(calc((1 - var(--s, 1)) * 100px)) scale(calc(1 + (1 - var(--s, 1)) * 1.4)); transition: color .2s; }
  html[data-mode="light"][data-big] .hm-logo { color: #fff; }
  html[data-mode="light"][data-big] .hm-logo b { background-image: linear-gradient(90deg, #4FA7DF, #5B7CFF); }
  html[data-mode="light"][data-big] .hm-logo .mk-l { display: none; }
  html[data-mode="light"][data-big] .hm-logo .mk-d { display: inline; }
  .hm-hd .hd-nav { gap: 19px; margin-left: 22px; }
  @media (min-width: 1200px) { .hm-hd .hd-nav { gap: 30px; font-size: 16px; margin-left: 28px; } }
  .hm-hd .hd-nav a { position: relative; transition: color .2s; }
  .hm-hd .hd-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 1px; background: currentColor; transform: scaleX(0); transition: transform .3s; }
  html[data-sec="about"] .hd-nav a[data-to="about"], html[data-sec="training"] .hd-nav a[data-to="training"], html[data-sec="nutrition"] .hd-nav a[data-to="nutrition"], html[data-sec="community"] .hd-nav a[data-to="community"], html[data-sec="tools"] .hd-nav a[data-to="tools"], html[data-sec="profile"] .hd-nav a[data-to="profile"], html[data-sec="faq"] .hd-nav a[data-to="faq"] { color: var(--ink); }
  html[data-sec="about"] .hd-nav a[data-to="about"]::after, html[data-sec="training"] .hd-nav a[data-to="training"]::after, html[data-sec="nutrition"] .hd-nav a[data-to="nutrition"]::after, html[data-sec="community"] .hd-nav a[data-to="community"]::after, html[data-sec="tools"] .hd-nav a[data-to="tools"]::after, html[data-sec="profile"] .hd-nav a[data-to="profile"]::after, html[data-sec="faq"] .hd-nav a[data-to="faq"]::after { transform: none; }

  /* hero: the hall photo (16:10 box, at least the window × 1.1) with its lamps; the stage is 1440 × 900 */
  .hm-hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: #0B0B0C; display: flex; justify-content: center; align-items: safe center; }
  .hm-room { position: absolute; inset: 0; }
  .hm-photo { position: absolute; left: 0; top: 0; width: max(1584px, 110vw, 176vh); aspect-ratio: 16 / 10; }
  .hm-photo:first-child::before { content: ''; position: absolute; inset: 0; background: url(/assets/img/hall-dark.webp) 0 0 / 100% auto no-repeat; filter: brightness(1.02); }
  .hm-lamps { z-index: 2; }
  .hm-wash { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8, 8, 9, .5) 0, rgba(8, 8, 9, 0) 120px), radial-gradient(64% 60% at 22% 64%, rgba(8, 8, 9, .84), rgba(8, 8, 9, .55) 55%, rgba(8, 8, 9, .14) 100%); }
  .hm-stage { position: relative; z-index: 3; flex: none; width: 1440px; height: 900px; zoom: var(--zh, 1); }
  .hm-copy { position: absolute; left: 60px; top: 262px; width: 600px; z-index: 4; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; color: #F4F5F7; }
  .hm-copy .hm-pill { margin-bottom: -4px; }
  .hm-h1 { margin: 0 0 30px; font: 800 60px/1.08 'Schibsted Grotesk', system-ui, sans-serif; letter-spacing: -.04em; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
  .hm-h1 > span { display: block; }
  .hm-wd { position: relative; display: inline-block; white-space: nowrap; }
  .hm-h1 .hm-ink { --pale: #3A3E46; background-image: linear-gradient(90deg, #5B8CFF 0 50%, var(--pale) 50% 100%); text-shadow: none; }
  .hm-jt { position: absolute; z-index: 6; top: calc(100% + 7px); right: 0; transform-origin: 100% 50%; white-space: nowrap; font: 600 16px/1.2 Inter, system-ui, sans-serif; letter-spacing: -.01em; color: #C2C7D0; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); opacity: 0; pointer-events: none; }
  .hm-jt::before { content: attr(data-xp); font-weight: 800; color: #8AB0FF; }
  .hm-jt::after { content: "\a0" attr(data-what); }
  .hm-sub { margin: 0; max-width: 480px; font-size: 18px; line-height: 1.5; color: #C2C7D0; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
  .hm-st { margin-top: 4px; }
  .hm-ph { position: absolute; }
  .hm-hero .hm-ph img { filter: drop-shadow(-16px 36px 36px rgba(0, 0, 0, .5)); }
  .hm-p1 { left: 676px; top: 156px; width: 476px; z-index: 3; }
  .hm-p2 { left: 1040px; top: 214px; width: 372px; z-index: 2; }
  /* "What's inside" stays at the bottom of the window even when the stage runs past it (--foot-b, home.js) */
  .hm-foot { position: absolute; left: 60px; bottom: var(--foot-b, 30px); z-index: 4; display: flex; align-items: center; gap: 20px; }
  .hm-cue { display: flex; align-items: center; gap: 10px; font: 600 14px/1 Inter, system-ui, sans-serif; color: rgba(255, 255, 255, .78); }
  .hm-cue span { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); display: grid; place-items: center; }
  .hm-cap { margin: 0; font: 600 12.5px/1.2 Inter, system-ui, sans-serif; letter-spacing: .01em; color: rgba(255, 255, 255, .62); text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }

  /* the hero's first seconds: the lamps come on in three groups, the hall brightens, the words fill with an XP line
     under each (6.6 s, once). The end state is the base style, so no motion = the finished picture. */
  @keyframes hmBright{0%{filter:brightness(.34) saturate(.5)}15.152%{filter:brightness(.34) saturate(.5);animation-timing-function:cubic-bezier(.3,.8,.3,1)}25.758%{filter:brightness(.567) saturate(.67)}35.606%{filter:brightness(.567) saturate(.67);animation-timing-function:cubic-bezier(.3,.8,.3,1)}46.212%{filter:brightness(.793) saturate(.83)}56.061%{filter:brightness(.793) saturate(.83);animation-timing-function:cubic-bezier(.3,.8,.3,1)}66.667%{filter:brightness(1.02) saturate(1)}100%{filter:brightness(1.02) saturate(1)}}
  @keyframes hmL0{0%{opacity:0}15.909%{opacity:0;animation-timing-function:cubic-bezier(.3,.8,.3,1)}17.879%{opacity:1}19.091%{opacity:.6}21.212%{opacity:1}100%{opacity:1}}
  @keyframes hmL1{0%{opacity:0}36.364%{opacity:0;animation-timing-function:cubic-bezier(.3,.8,.3,1)}38.333%{opacity:1}39.545%{opacity:.6}41.667%{opacity:1}100%{opacity:1}}
  @keyframes hmL2{0%{opacity:0}56.818%{opacity:0;animation-timing-function:cubic-bezier(.3,.8,.3,1)}58.788%{opacity:1}60%{opacity:.6}62.121%{opacity:1}100%{opacity:1}}
  @keyframes hmI0{0%{background-position:100% 0}15.152%{background-position:100% 0;animation-timing-function:cubic-bezier(.3,.8,.3,1)}24.242%{background-position:0% 0}100%{background-position:0% 0}}
  @keyframes hmI1{0%{background-position:100% 0}35.606%{background-position:100% 0;animation-timing-function:cubic-bezier(.3,.8,.3,1)}44.697%{background-position:0% 0}100%{background-position:0% 0}}
  @keyframes hmI2{0%{background-position:100% 0}56.061%{background-position:100% 0;animation-timing-function:cubic-bezier(.3,.8,.3,1)}65.152%{background-position:0% 0}100%{background-position:0% 0}}
  @keyframes hmX0{0%{opacity:0;transform:translate(0,8px)}10.606%{opacity:0;transform:translate(0,8px);animation-timing-function:cubic-bezier(.3,.8,.3,1)}14.394%{opacity:1;transform:none}26.515%{opacity:1;transform:none;animation-timing-function:cubic-bezier(.3,.8,.3,1)}31.061%{opacity:0;transform:translate(0,-10px) scale(.92)}100%{opacity:0;transform:translate(0,-10px) scale(.92)}}
  @keyframes hmX1{0%{opacity:0;transform:translate(0,8px)}31.061%{opacity:0;transform:translate(0,8px);animation-timing-function:cubic-bezier(.3,.8,.3,1)}34.848%{opacity:1;transform:none}46.97%{opacity:1;transform:none;animation-timing-function:cubic-bezier(.3,.8,.3,1)}51.515%{opacity:0;transform:translate(0,-10px) scale(.92)}100%{opacity:0;transform:translate(0,-10px) scale(.92)}}
  @keyframes hmX2{0%{opacity:0;transform:translate(0,8px)}51.515%{opacity:0;transform:translate(0,8px);animation-timing-function:cubic-bezier(.3,.8,.3,1)}55.303%{opacity:1;transform:none}67.424%{opacity:1;transform:none;animation-timing-function:cubic-bezier(.3,.8,.3,1)}71.97%{opacity:0;transform:translate(0,-10px) scale(.92)}100%{opacity:0;transform:translate(0,-10px) scale(.92)}}
  .hm-photo:first-child::before { animation: hmBright 6.6s linear both; }
  .hm-hero .lamp.g0 { animation: hmL0 6.6s linear both; }
  .hm-hero .lamp.g1 { animation: hmL1 6.6s linear both; }
  .hm-hero .lamp.g2 { animation: hmL2 6.6s linear both; }
  .hm-h1 .hm-ink.w0 { animation: hmI0 6.6s linear both; }
  .hm-h1 .hm-ink.w1 { animation: hmI1 6.6s linear both; }
  .hm-h1 .hm-ink.w2 { animation: hmI2 6.6s linear both; }
  .hm-jt.j0 { animation: hmX0 6.6s linear both; }
  .hm-jt.j1 { animation: hmX1 6.6s linear both; }
  .hm-jt.j2 { animation: hmX2 6.6s linear both; }

  /* the blocks: 1240 × 820 under the 80 px header, zoomed to the window by home.js (--z) */
  .hm-blk { position: relative; min-height: 100vh; min-height: 100svh; display: flex; justify-content: center; align-items: center; padding: 80px 0 0; overflow: hidden; background: var(--b1); }
  .hm-blk.alt { background: var(--b2); }
  html[data-mode="light"] .hm-blk { border-top: 1px solid rgba(17, 19, 23, .06); }
  .hm-in { position: relative; flex: none; width: 1240px; min-height: 820px; zoom: var(--z, 1); }
  .hm-media { position: absolute; inset: 0; pointer-events: none; }
  .hm-blk .hm-ph img { filter: var(--ph-shadow); }
  .hm-h2 { margin: 0 0 22px; font: 800 54px/1.05 'Schibsted Grotesk', system-ui, sans-serif; letter-spacing: -.04em; color: var(--ink); }
  .hm-h2 > span { display: block; width: max-content; max-width: 100%; }
  .hm-lead { margin: 0 0 30px; font-size: 18.5px; line-height: 1.5; color: var(--muted); max-width: 520px; }
  .hm-list { list-style: none; margin: 0 0 30px; padding: 0; border-top: 1px solid var(--line); }
  .hm-list li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; color: var(--muted); }
  .hm-list b, .hm-cols b { color: var(--ink); font-weight: 700; }
  .hm-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 24px; margin: 0 0 30px; }
  .hm-cols div { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; color: var(--muted); }
  .hm-cols b { font-size: 16px; }

  /* About: copy + the five tabs left, iPhone + Android right */
  .hm-copy2.ab { width: 560px; padding-top: 84px; }
  .hm-tabs { border-top: 1px solid var(--line); }
  .hm-tabs .row { position: relative; display: grid; grid-template-columns: 22px 104px 1fr; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); font: 500 15.5px/1.4 Inter, system-ui, sans-serif; color: var(--faint); }
  .hm-tabs b { font-weight: 700; font-size: 16.5px; }
  /* Š1: Apple Watch left of the iPhone, the round watch right of the Android phone; cases and screens stay beside
     the phones (only the strap loop's far end is behind them), everything inside the 1240 frame */
  .hm-devs { position: absolute; left: 572px; top: 0; width: 683px; height: 820px; }
  .hm-dev { position: absolute; z-index: 2; }
  .hm-dev.i { left: 133.2px; top: 110px; width: 190px; }
  .hm-dev.a { left: 347.2px; top: 100px; width: 190px; }
  .hm-wb, .hm-wf { position: absolute; }
  .hm-wb { z-index: 1; }
  .hm-wf { z-index: 3; }
  /* canvas "Web · hodinky" round 4 V1: phone edge 130.2 px into the Apple layer, 48.4 px into the round one */
  .hm-wb.aw, .hm-wf.aw { left: 3px; top: 265px; width: 189.7px; }
  .hm-wb.ga, .hm-wf.ga { left: 488.8px; top: 267px; width: 187.6px; }
  .hm-dev figcaption { left: 50%; right: auto; display: flex; align-items: center; gap: 9px; white-space: nowrap; transform: translateX(-50%); }
  .hm-dev figcaption svg { flex: none; width: 31px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .hm-mode { position: absolute; left: 231px; top: 600px; }

  /* Training: phones left, copy right */
  .hm-copy2.tr { margin-left: 650px; width: 590px; padding-top: 86px; }
  .tr1 { left: 16px; top: 118px; width: 316px; }
  .tr2 { left: 226px; top: 72px; width: 350px; z-index: 2; }
  /* Nutrition: copy left, phones right (the Analyst behind) */
  .hm-copy2.nu { width: 640px; padding-top: 86px; }
  .nu1 { left: 690px; top: 88px; width: 330px; z-index: 2; }
  .nu2 { left: 950px; top: 130px; width: 306px; }
  /* Community: phones left, copy right */
  .hm-copy2.co { margin-left: 620px; width: 620px; padding-top: 86px; }
  .co1 { left: 226px; top: 72px; width: 350px; z-index: 2; }
  .co2 { left: 16px; top: 118px; width: 316px; z-index: 1; }
  /* Tools: headline left, lead right, four phones in a row with their lines */
  .hm-copy2.to { display: grid; grid-template-columns: 640px 520px; column-gap: 60px; padding-top: 24px; }
  .to-lead { padding-top: 16px; }
  .to-lead .hm-lead { margin: 0; }
  .to-lead .hm-xp { margin-top: 18px; }
  .hm-swipe { position: relative; display: grid; grid-template-columns: repeat(4, 290px); column-gap: 26px; margin-top: 10px; }
  .hm-tool .tp { position: relative; width: 226px; margin: 0 auto; }
  .hm-tool .tc { display: flex; flex-direction: column; gap: 5px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.42; color: var(--muted); }
  .hm-tool .tc > b { font-size: 16px; color: var(--ink); }
  .hm-tool .hm-ph { position: relative; }
  .hm-dots { display: none; }
  /* Profile: copy left, one phone right */
  .hm-copy2.pr { width: 600px; padding-top: 84px; }
  .pr1 { left: 800px; top: 52px; width: 372px; }
  /* FAQ: headline left, two columns of questions, one open at a time */
  #faq .hm-in { display: grid; grid-template-columns: 330px 840px; column-gap: 70px; align-items: start; }
  .hm-copy2.fq { padding-top: 96px; }
  .hm-copy2.fq .hm-lead { font-size: 17px; }
  .hm-more { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; background: var(--ghost); box-shadow: inset 0 0 0 1px var(--line); font: 700 14px/1 Inter, system-ui, sans-serif; color: var(--ink); }
  .hm-faq { margin-top: 96px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; align-items: start; }
  .hm-faq > div { border-top: 1px solid var(--line); }
  .hm-all, .hm-fqlink { display: none; }

  /* closing block: the fist bump, copy left in white (both looks) */
  .hm-end { height: calc(100vh - var(--fh, 230px)); height: calc(100svh - var(--fh, 230px)); min-height: 520px; }
  .hm-kp { left: 30%; top: 0; right: 0; bottom: 0; }
  .hm-kw { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #0B0B0C 0, #0B0B0C 30%, rgba(11, 11, 12, .75) 42%, rgba(11, 11, 12, .1) 62%, rgba(11, 11, 12, 0) 100%); }
  .hm-kc { position: absolute; left: max(40px, calc(50% - 620px)); bottom: 16%; width: 600px; }
  .hm-ft { scroll-snap-align: end; }
  .hm-ft .ft-in { padding-top: 30px; }
  .hm-ft .ft-base { margin-top: 24px; height: 52px; }
  .hm-ft .ft-tm { margin: -6px 0 18px; }

  /* section dots on the right (hidden on the hero) */
  .hm-dots-nav { position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 25; display: flex; flex-direction: column; gap: 10px; transition: opacity .4s; --dot: var(--ink); }
  html:not([data-sec]) .hm-dots-nav, html[data-sec="top"] .hm-dots-nav { opacity: 0; pointer-events: none; }
  html[data-sec="get"] .hm-dots-nav { --dot: #fff; }
  .hm-dots-nav a { display: block; width: 8px; height: 8px; border-radius: 4px; background: var(--dot); opacity: .32; transition: height .3s, opacity .3s; }
  .hm-dots-nav a:hover { opacity: .7; }
  html[data-sec="about"] .hm-dots-nav a[data-to="about"], html[data-sec="training"] .hm-dots-nav a[data-to="training"], html[data-sec="nutrition"] .hm-dots-nav a[data-to="nutrition"], html[data-sec="community"] .hm-dots-nav a[data-to="community"], html[data-sec="tools"] .hm-dots-nav a[data-to="tools"], html[data-sec="profile"] .hm-dots-nav a[data-to="profile"], html[data-sec="faq"] .hm-dots-nav a[data-to="faq"], html[data-sec="get"] .hm-dots-nav a[data-to="get"] { height: 24px; opacity: 1; }

  /* arriving in a block: phones rise, the second headline line fills, the rows and XP come in (home.js sets
     data-on on the block; without JS everything simply shows) */
  .hm-blk .hm-ph, .hm-blk .hm-dev, .hm-blk .hm-wb, .hm-blk .hm-wf { transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
  .hm-blk .tr2, .hm-blk .nu2, .hm-blk .co2, .hm-blk .hm-dev.a { transition-delay: .12s; }
  .hm-blk .hm-wb, .hm-blk .hm-wf { transition-delay: .2s; }
  .hm-blk .hm-tool .hm-ph { transition-delay: calc(var(--k) * .1s); }
  .hm-blk .hm-h2 .hm-ink { transition: background-position .8s cubic-bezier(.4, 0, .2, 1) .3s; }
  .hm-blk .hm-xpbar { transition: transform 1.2s cubic-bezier(.3, .6, .2, 1) .5s; }
  .hm-blk .hm-xp li:not(.hm-xpbar), .hm-blk .hm-tool .tc, .hm-blk .hm-tabs li, .hm-blk .hm-faq details { transition: opacity .5s ease, transform .5s ease; transition-delay: calc(.7s + var(--k, 0) * .3s); }
  .hm-blk .hm-faq details { transition-delay: calc(.4s + var(--k, 0) * .05s); }
  html[data-js] .hm-blk:not([data-on]) .hm-ph, html[data-js] .hm-blk:not([data-on]) .hm-dev, html[data-js] .hm-blk:not([data-on]) .hm-wb, html[data-js] .hm-blk:not([data-on]) .hm-wf { opacity: 0; transform: translateY(90px); }
  html[data-js] .hm-blk:not([data-on]) .hm-h2 .hm-ink { background-position: 100% 0; }
  html[data-js] .hm-blk:not([data-on]) .hm-xpbar { transform: scaleX(0); }
  html[data-js] .hm-blk:not([data-on]) .hm-xp li:not(.hm-xpbar), html[data-js] .hm-blk:not([data-on]) .hm-tool .tc, html[data-js] .hm-blk:not([data-on]) .hm-tabs li, html[data-js] .hm-blk:not([data-on]) .hm-faq details { opacity: 0; transform: translateY(8px); }
}

/* ====================================================================================================== */
/* ---------- a phone (and a narrow window) ---------- */
@media (max-width: 900px) {
  .hd-nav, .hd-cta, .seg { display: none; }
  .hd-cycle, .mnu { display: grid; }
  .hm-logo { margin-right: auto; }
  .mnu-sheet .seg, .ft-set .seg { display: flex; }
  /* the header sits on the hall (M1, 4.11.2026): transparent, light text, in both looks */
  .hm-hd { position: absolute; left: 0; right: 0; top: 0; z-index: 30; background: transparent; border-bottom: 0; --ghost: rgba(255, 255, 255, .08); --line: rgba(255, 255, 255, .16); --ink: #F4F5F7; --b1: #0B0B0C; --muted: #C2C7D0; --faint: #9AA1AD; }
  .hm-hd .hm-logo { color: #fff; }
  .hm-hd .hm-logo b { background-image: linear-gradient(90deg, #4FA7DF, #5B7CFF); }
  .hm-hd .hm-logo .mk-l { display: none; }
  .hm-hd .hm-logo .mk-d { display: inline; }
  .hm-hd .hm-langm { --ink: #111317; --line: rgba(17, 19, 23, .12); --ghost: rgba(17, 19, 23, .045); }
  html[data-mode="dark"] .hm-hd .hm-langm { --ink: #F4F5F7; --line: rgba(255, 255, 255, .12); --ghost: rgba(255, 255, 255, .07); }
  .lang { padding: 0 10px; }
  .lang span, .lang svg { display: none; }
  .hm-langm { top: 50px; right: -50px; }
  .hm-dots-nav { display: none; }

  /* hero: the hall (white in light mode), copy, two phones, the caption */
  .hm-hero { position: relative; overflow: hidden; background: #0B0B0C; color: #F4F5F7; padding: 92px 20px 0; }
  .hm-room { position: absolute; inset: 0; }
  .hm-photo { position: absolute; left: calc(50% - 801px); top: -10px; width: 1368px; aspect-ratio: 16 / 10; }
  .hm-photo:first-child::before { content: ''; position: absolute; inset: 0; background: url(/assets/img/hall-dark.webp) 0 0 / 100% auto no-repeat; }
  .hm-lamps { z-index: 2; }
  /* the top of the hall dimmer on a phone (owner, 4.11.2026): the lamp over the header is the brightest spot */
  .hm-wash { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(8, 8, 9, .66) 0, rgba(8, 8, 9, .8) 30%, rgba(8, 8, 9, .86) 60%, rgba(8, 8, 9, .4) 100%); }
  .hm-hero .lamp { opacity: .5; }
  .hm-hero .lamp.g0 { opacity: .3; }
  .hm-stage { position: relative; z-index: 3; max-width: 560px; margin: 0 auto; }
  .hm-copy { position: relative; }
  .hm-copy .hm-pill { height: 30px; padding: 0 12px 0 10px; margin-bottom: 18px; gap: 8px; font-size: 13px; }
  .hm-h1 { margin: 0 0 14px; font: 800 38px/1.05 'Schibsted Grotesk', system-ui, sans-serif; letter-spacing: -.045em; }
  .hm-h1 > span { display: block; }
  .hm-h1 .hm-ink { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #7FA6FF; padding: 0; margin: 0; }
  .hm-jt { display: none; }
  .hm-sub { margin: 0 0 18px; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .8); }
  .hm-st { margin-top: 24px; }
  .hm-st .st img { height: 46px !important; max-width: 100%; }
  .hm-st .cs, .hm-st2 .cs { height: 46px; }
  .hm-ph img { filter: drop-shadow(-10px 22px 24px rgba(20, 24, 34, .22)); }
  html[data-mode="dark"] .hm-ph img { filter: drop-shadow(-10px 24px 26px rgba(0, 0, 0, .55)); }
  .hm-hero .hm-ph img { filter: drop-shadow(-10px 24px 26px rgba(0, 0, 0, .6)); }
  .hm-stage { display: grid; grid-template-columns: 1fr; }
  .hm-p1, .hm-p2 { grid-row: 2; grid-column: 1; position: relative; z-index: 3; margin-top: 24px; justify-self: center; }
  .hm-p1 { width: 180px; margin-right: 130px; z-index: 4; }
  .hm-p2 { width: 146px; margin-left: 152px; margin-top: 64px; }
  .hm-cue { display: none; }
  .hm-foot { grid-row: 3; }
  .hm-cap { position: relative; z-index: 3; margin: 0; padding: 18px 0 16px; text-align: center; font: 600 12px/1 Inter, system-ui, sans-serif; color: rgba(255, 255, 255, .55); }

  /* blocks: one column */
  .hm-blk { padding: 42px 20px 38px; background: var(--b1); }
  .hm-blk.alt { background: var(--b2); }
  html[data-mode="light"] .hm-blk { border-top: 1px solid rgba(17, 19, 23, .06); }
  .hm-in { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; }
  .hm-copy2 { display: contents; }
  .hm-h2 { order: 1; margin: 0 0 12px; font: 800 31px/1.06 'Schibsted Grotesk', system-ui, sans-serif; letter-spacing: -.04em; color: var(--ink); }
  .hm-h2 > span { display: block; }
  .hm-h2 .hm-ink { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--fill); padding: 0; margin: 0; }
  .hm-lead { order: 2; margin: 0 0 20px; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
  .hm-media { order: 3; position: relative; height: 334px; margin: 0 -20px 20px; }
  .hm-media .hm-ph { position: absolute; }
  .hm-media .pa { left: 40px; top: 0; width: 164px; z-index: 2; }
  .hm-media .pb { left: 186px; top: 34px; width: 150px; }
  @media (min-width: 420px) { .hm-media { width: 380px; margin-left: auto; margin-right: auto; } }
  .hm-media.one { height: auto; margin: 0 auto 20px; width: 184px; }
  .hm-media.one .hm-ph { position: relative; }
  .hm-list { order: 4; list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); }
  .hm-list li { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; color: var(--muted); }
  .hm-list b { color: var(--ink); font-size: 15px; margin-right: 6px; }
  .hm-list .dt { display: none; }
  .hm-list .mb { display: inline; }
  .hm-cols { order: 4; margin: 0 0 18px; border-top: 1px solid var(--line); }
  .hm-cols div { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; color: var(--muted); }
  .hm-cols b { color: var(--ink); font-size: 15px; margin-right: 6px; }
  .hm-xp { order: 5; gap: 6px 14px; padding-top: 14px; }
  .hm-xp::before { background: var(--fill); }
  .hm-xp .hm-xpbar { display: none; }
  .hm-xp b { margin-right: 2px; }
  .hm-fnote { order: 6; font-size: 9.5px; }

  /* About: phones, the switch, then the tab names */
  /* align-items: start, or the iPhone stretches to the taller Android and its screen runs out under the frame */
  .hm-devs { order: 3; position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 12px; width: 296px; margin: 0 auto 26px; }
  .hm-dev.a { margin-top: 12px; }
  .hm-dev figcaption { top: calc(100% + 8px); font-size: 13px; line-height: 1.25; }
  .hm-dev figcaption svg { display: none; }
  /* the watches whole under their phones (back + front in the same cell), below the two-line captions */
  .hm-dev.i { grid-column: 1; grid-row: 1; }
  .hm-dev.a { grid-column: 2; grid-row: 1; }
  .hm-wb, .hm-wf { grid-row: 2; justify-self: center; width: 100%; max-width: 132px; margin-top: 46px; }
  .hm-wb.aw, .hm-wf.aw { grid-column: 1; }
  .hm-wb.ga, .hm-wf.ga { grid-column: 2; }
  .hm-wf { z-index: 1; }
  .hm-mode { grid-column: 1 / -1; grid-row: 3; width: 200px; height: 40px; margin: 26px auto 0; }
  .hm-tabs { order: 4; display: flex; border-bottom: 1px solid var(--line); }
  .hm-tabs li { flex: 1 1 auto; }
  .hm-tabs .row { position: relative; display: flex; justify-content: center; padding: 11px 0; font-size: 14.5px; line-height: 1.2; color: var(--faint); }
  .hm-tabs .row svg, .hm-tabs .row span { display: none; }
  .hm-tabs b { font-size: 14px; }

  /* Tools: swipe through the four, dots under them */
  .to-lead { display: contents; }
  .hm-swipe { order: 3; display: flex; gap: 16px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 6px; scroll-padding: 0 20px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .hm-swipe::-webkit-scrollbar { display: none; }
  .hm-tool { flex: 0 0 214px; scroll-snap-align: start; }
  .hm-tool .tp { width: 166px; margin: 0 auto 14px; }
  .hm-tool .tc { display: flex; flex-direction: column; gap: 5px; font-size: 14.5px; line-height: 1.42; color: var(--muted); }
  .hm-tool .tc > b { font-size: 16px; color: var(--ink); padding-top: 12px; border-top: 1px solid var(--line); }
  .hm-dots { order: 4; display: flex; justify-content: center; gap: 6px; margin: 18px 0; }
  .hm-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line); transition: width .25s; }
  .hm-dots i.on { width: 20px; background: var(--ink); }
  .to-xp { order: 5; }

  /* FAQ: the first six, then "Show all" */
  .hm-more { display: none; }
  .hm-faq { order: 3; border-top: 1px solid var(--line); }
  .hm-faq > div { display: contents; }
  .hm-faq summary { padding: 15px 0; gap: 14px; }
  .hm-faq details p { padding: 0 0 16px; font-size: 15px; line-height: 1.55; }
  .hm-faq[data-collapsed] details.more { display: none; }
  .hm-all { order: 4; width: 100%; margin-top: 18px; }
  .hm-faq:not([data-collapsed]) ~ .hm-all { display: none; }
  .hm-fqlink { order: 5; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--muted); }

  /* closing block */
  .hm-end { height: calc(100vh - var(--fh, 240px)); height: calc(100svh - var(--fh, 240px)); min-height: 400px; display: flex; flex-direction: column; justify-content: flex-end; }
  .hm-kp { left: 0; right: 0; top: 0; bottom: 38%; background-position: 78% 55%; }
  .hm-kw { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11, 11, 12, 0) 0, rgba(11, 11, 12, .35) 34%, #0B0B0C 62%); }
  .hm-kc { padding: 0 20px 26px; width: 100%; max-width: 600px; margin: 0 auto; }
  .hm-kc .hm-pill { height: 30px; padding: 0 12px 0 10px; gap: 8px; font-size: 13px; margin-bottom: 18px; }
  .hm-kh { margin: 0 0 12px; font-size: 40px; line-height: 1; }
  .hm-kl { margin: 0 0 16px; font-size: 16px; color: rgba(255, 255, 255, .75); }
  /* the footer on a phone: three short, aligned columns (the email is on the Contact page) */
  .hm-ft .ft-in { grid-template-columns: minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.25fr); column-gap: 12px; row-gap: 0; padding: 20px 20px 0; }
  .hm-ft .ft-brand { grid-column: 1 / -1; margin-bottom: 14px; }
  .hm-ft .ft-brand p { display: none; }
  .hm-ft .ft-logo { font-size: 19px; }
  .hm-ft .ft-logo img { width: 28px; height: 28px; }
  .hm-ft nav { gap: 7px; font-size: 13px; line-height: 1.25; }
  .hm-ft nav b { margin-bottom: 2px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
  .hm-ft nav a[href^="mailto:"] { display: none; }
  .hm-ft .ft-base { grid-column: 1 / -1; margin-top: 16px; padding: 12px 0 14px; height: auto; flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; }
  .hm-ft .ft-tm { margin: -4px 0 16px; font-size: 11px; }
  .hm-st2 .st img { height: 46px !important; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after { animation: none !important; transition: none !important; }
  html { scroll-snap-type: none; }
}

/* skip link: shows when it gets focus */
.home > a.sr:focus { position: fixed; left: 12px; top: 12px; z-index: 100; width: auto; height: auto; clip: auto; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--b1); font-weight: 700; }

/* a computer with a header that doesn't fit (narrow window, long words): first tighter, then the ☰ menu (home.js) */
@media (min-width: 901px) {
  .hm-hd .hd-nav { flex: 0 1 auto; min-width: 0; white-space: nowrap; }
  html[data-nav="tight"] .hm-hd .hd-nav { gap: 14px; font-size: 13.5px; margin-left: 16px; }
  html[data-nav="menu"] .hm-hd .hd-nav { display: none; }
  html[data-nav="menu"] .hm-hd .mnu { display: grid; }
  html[data-nav="menu"] .hm-logo { margin-right: auto; }
  .hm-hd .mnu-sheet { left: auto; right: 24px; top: calc(100% + 6px); width: 320px; border-radius: 18px; border: 1px solid var(--line); }
  /* each headline line stays on one line: home.js shrinks the size (--h1) for long languages */
  .hm-h1 { font-size: var(--h1, 60px); }
  .hm-h1 { align-self: stretch; }
  .hm-h1 > span, .hm-h2 > span { white-space: nowrap; }
}

/* Japanese breaks between any two characters: on a phone the headlines get a size at which a line fits whole */
@media (max-width: 900px) {
  html[lang="ja"] .hm-h1 { font-size: 30px; }
  html[lang="ja"] .hm-h2 { font-size: 25px; }
}

/* Features ▾ on the home page: the panel keeps its own ink (the header's white links over the hall photo end at the
   panel) and no hover underline inside it (22.11.2026) */
html .hm-hd .hd-nav .nav-ddp a, html[data-big] .hm-hd .hd-nav .nav-ddp a, html[data-mode="dark"] .hm-hd .hd-nav .nav-ddp a { color: var(--ink); }
.hm-hd .hd-nav .nav-ddp a::after { display: none; }

/* Quick links under a section (owner 23.11.2026, V2): topic and calculator pages */
.hm-qk { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 40px; }
.hm-qk a { font: 600 14px/1 Inter, system-ui, sans-serif; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; background: transparent; transition: background-color .15s, border-color .15s; }
.hm-qk a:hover { border-color: var(--muted); }
.hm-qk a:focus-visible { outline: 2px solid #4F7BFF; outline-offset: 2px; }
.to-lead .hm-qk { margin: 20px 0 0; }
@media (max-width: 900px) {
  .hm-qk { order: 5; margin: 16px 0 4px; }
  .to-lead .hm-qk { order: 5; margin: 16px 0 0; }
  .hm-qk a { font-size: 13.5px; padding: 8px 12px; }
}

/* inline links inside a section's list (Training: Live workout → Workout log, watch row → Apple Watch · Wear OS) */
.hm-list a.hm-tl { color: inherit; text-decoration: underline; text-decoration-color: rgba(79, 123, 255, .7); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hm-list a.hm-tl:hover { text-decoration-color: #4F7BFF; }
