/* timeline.css — #193 S18 Timeline, a universal section (sections/timeline.liquid): a horizontal strip of points — photo, number (year · time ·
   step), heading, text, optionally a product chip with «View». Spec docs/superpowers/specs/2026-11-06-about-timeline-design.md (S18); the approved
   spikes …-spike.html §2 (desktop) and …-spike-mobile.html «B · Arrows» (phones). From 1024 px: the frame sticks flush under the header
   (--ext-timeline-top, pin-top.js) and the strip rides with the page's scroll under a fixed lime marker; below 1024 (phones and tablets): no sticky
   frame — the strip swipes sideways with snap, ‹ › by the number. timeline.js marks the section data-ready and drives --ext-tl-shift (desktop), --s /
   --o (each photo's scale and dim), --lo (labels), .is-hot (the tick under the marker), --p (progress), the digit strips' transform, data-state and
   aria-current. Without the script the CSS shows a plain row of cards. Number in sand (#E6E1D4, «Solid» — no gradient); lime only for the marker, the
   hot tick, the progress bar and the buttons. Motion: transform / opacity only. */

/* #193 sand for the number; the spike's motion curve; the photo's height (Photo height, --ext-tl-img; capped on desktop below), its 4:5 width and the
   step between the photos' centres on desktop: a photo's width + 64 */
.ext-timeline {
  --ext-tl-sand: 230 225 212; --ext-tl-ease: cubic-bezier(.7, 0, .15, 1);
  --ext-tl-cap: var(--ext-tl-img, 42vh); --ext-tl-h: var(--ext-tl-cap); --ext-tl-w: calc(var(--ext-tl-h) * .8); --ext-tl-pitch: calc(var(--ext-tl-w) + 64px);
  /* #227 the point's heading size (Archivo 800, 26–38 px) — on a low desktop screen the number's size is counted from it */
  --ext-tl-hs: clamp(26px, 2.2vw, 38px);
}
/* #193 from 1024 the photo also gives way to the frame's other parts, by layout (review fix 1, controller's ruling): the stage (photos + the ruler's
   76 px) takes what the head, the number, the heading and the text leave of the frame — up to the photo's height + 76 — and is a size container, so
   the photo is at most its height less the ruler (100cqh − 76px). The section's paddings, a heading on two lines or a text on three are accounted
   for by the layout, nothing is counted by hand (before: 42vh only fitted from ~890 px high and the point's text was cut off below that).
   #227 (2026-11-10, a 14" laptop not in full screen): a 4:5 photo narrowed with a low screen's height and squeezed the product bar. The photo is now
   never narrower than 340 px — a square on a low screen, wider than 4:5 as the screen grows, back to 4:5 from 425 px of photo height (one smooth
   rule, no jump at a screen height); object-fit: cover keeps the middle of the picture */
@media screen and (min-width: 1024px) {
  .ext-timeline { --ext-tl-h: min(var(--ext-tl-cap), 100cqh - 76px); --ext-tl-w: max(var(--ext-tl-h) * .8, min(var(--ext-tl-h), 340px)); }
}

/* #193 the frame is a Concept .section, whose ground is a positioned ::before: its parts stand on it as positioned boxes (else it paints over them) */
.ext-timeline__frame > *, .ext-timeline:not([data-ready]) :is(.ext-timeline__head-point, .ext-timeline__text) { position: relative; }

/* #193 the section's head: eyebrow + heading (Archivo 800, 34–54 px, one word in outline) on the left; the range and the progress bar on the right */
.ext-timeline .ext-timeline__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; width: 100%; padding-block: 6vh 4vh; }
.ext-timeline__title .heading { margin: 12px 0 0; font-family: var(--font-heading-family); font-weight: 800; font-size: clamp(34px, 3.2vw, 54px); line-height: 1; letter-spacing: -.02em; }
.ext-timeline__meta { display: flex; align-items: center; gap: 12px; flex: none; }
.ext-timeline__range { margin: 0; font-size: 14px; font-weight: 500; line-height: 1; color: rgb(var(--color-foreground) / .6); }
/* #193 the progress bar: 120 × 2, foreground 16 %, lime filling with the scroll (--p, 0 → 1) */
.ext-timeline__progress { width: 120px; height: 2px; border-radius: 2px; overflow: hidden; background: rgb(var(--color-foreground) / .16); }
.ext-timeline__progress > i { display: block; height: 100%; background: rgb(var(--color-highlight)); transform: scaleX(var(--p, 0)); transform-origin: var(--transform-origin-start, left); }

/* #193 the photos: 4:5, radius 16, the ink shadow; the image dims by --o over the dark ground (opacity only), the photo scales by --s from its foot */
/* #230 no clipping on the photo (the eye's tooltip rises above it, as the theme's does): the image, the placeholder and the bar take its rounding */
.ext-timeline__item { position: relative; margin: 0; border-radius: 16px; background: rgb(var(--color-placeholder)); box-shadow: 0 24px 48px -16px rgb(9 9 11 / .7); }
.ext-timeline__item > img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: var(--o, 1); border-radius: inherit; }
/* #193 a point without an image: an empty box over the photo's dark ground (the figure's placeholder colour) — Shopify's placeholder_svg_tag there */
.ext-timeline__item > .ext-timeline__placeholder { display: block; width: 100%; height: 100%; border-radius: inherit; }

/* #193 the product: thumbnail, title, price and the eye (Concept's quick view on the point's variant, as Shop the feed's); only the centred photo's
   shows (timeline.js fades the others and hides them at 0, so they catch no clicks). Two looks, the section's «Product» setting (data-tl-product on
   the section, the panel switches it live; one markup):
   #229 «Card» (the default): a rounded glass card inset at the photo's foot — thumbnail, title, price — and the eye on its own in the photo's top
   right corner, so the title has the card's whole width. .ext-timeline__product is a layer over the whole photo (a grid: the eye's row on top, the
   card's row at the foot) that lets clicks through.
   #230 (Artem 2026-11-10: «hover только на нижнюю карточку») the card is an element of its own — .ext-timeline__card, the glass on it (was the
   layer's ::before; the same box: padding + the 1 px border = the 9 px the parts stood in) — and one link to the product: the title's link
   stretched over it (::after), so a click anywhere on the card opens the product and the hover lights the whole card, never the photo; the eye
   stays the quick view */
.ext-timeline__product { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 10px; pointer-events: none; }
.ext-timeline__card { grid-row: 2; position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 13px 8px 8px; border-radius: 14px; pointer-events: auto;
  background: rgb(24 25 29 / .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgb(var(--color-foreground) / .12);
  transition: background-color var(--animation-primary), border-color var(--animation-primary); }
.ext-timeline__card .ext-timeline__product-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ext-timeline__eye { grid-row: 1; justify-self: end; align-self: start; position: relative; display: flex; flex: none; pointer-events: auto; }
.ext-timeline__product .ext-timeline__view { position: relative; }
/* #230 (Artem 2026-11-10: «используй наш системный tooltip») the eye wears the theme's tooltip — Concept's .color-swatch .tooltip, the one on the
   swatches and on Shop the feed's thumbnails: the same markup (tooltip opacity-0 pointer-events-none text-xs rounded-full z-10) and Concept's own
   declarations, only anchored on .ext-timeline__eye (.color-swatch would bring the swatch's rings): the foreground pill over the eye, centred, 15 px
   above, a 10 px arrow down, scale .75 → 1 with the opacity on hover (pointer: fine); a sibling of the button (Concept's .button clips). A keyboard
   focus on the eye shows it too */
.ext-timeline__eye .tooltip { --tw-translate-x: -50%; --tw-scale-x: .75; --tw-scale-y: .75; background-color: rgb(var(--color-foreground)); inset-block-end: calc(100% + 15px); color: rgb(var(--color-background)); padding: var(--sp-1d5) var(--sp-5); width: max-content; }
.ext-timeline__eye .tooltip, .ext-timeline__eye .tooltip::after { position: absolute; inset-inline-start: 50%; transform: translate(calc(var(--tw-translate-x) * var(--transform-logical)), var(--tw-translate-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.ext-timeline__eye .tooltip::after { --tw-translate-x: -50%; --tw-translate-y: 0; border-color: rgb(var(--color-foreground)) transparent; border-style: solid; border-width: 10px 10px 0; inset-block-end: -7px; content: ""; display: block; width: 0; }
@media screen and (pointer: fine) { .ext-timeline__eye:hover .tooltip { --tw-scale-x: 1; --tw-scale-y: 1; opacity: 1; transition: transform var(--animation-primary), opacity var(--animation-primary); } }
.ext-timeline__eye:has(:focus-visible) .tooltip { --tw-scale-x: 1; --tw-scale-y: 1; opacity: 1; }
/* #227 «Bar»: across the photo's full width at its very foot — matte glass with no rounding of its own (the photo's corners round it), a light line
   on top, the eye at its end */
[data-tl-product="bar"] .ext-timeline__product { inset: auto 0 0; display: flex; gap: 12px; padding: 12px 14px; pointer-events: auto;
  background: rgb(24 25 29 / .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid rgb(var(--color-foreground) / .12); }
/* #230 the bar is the card: its box goes, the title's link stretches over the bar (the eye above it), the tooltip beside the bar's eye */
[data-tl-product="bar"] .ext-timeline__card { display: contents; }
[data-tl-product="bar"] .ext-timeline__product { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; } /* the photo's foot corners (#230: the photo no longer clips) */
/* #227 the button: the eye alone, everywhere (no «View»): Concept's small primary button as a circle — 40 px in the photo's corner (#229), 36 in the
   bar; its aria-label names the product */
.ext-timeline__view.button { --buttons-radius: var(--rounded-full); width: 40px; height: 40px; min-width: 0; padding: 0; flex: none; justify-content: center; }
[data-tl-product="bar"] .ext-timeline__view.button { width: 36px; height: 36px; }
.ext-timeline__view .btn-text { display: inline-flex; }
.ext-timeline__view .icon { width: var(--sp-4, 16px); height: var(--sp-4, 16px); } /* the eye at 16 px, as it was in the icon-with-text button */
.ext-timeline__product-media { position: relative; display: block; width: 48px; height: 48px; flex: none; border-radius: 10px; }
.ext-timeline__product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--animation-primary); }
.ext-timeline__product-info { flex: 1; min-width: 0; text-align: start; font-size: 13px; line-height: 1.3; color: rgb(var(--color-foreground) / .62); }
.ext-timeline__product-title { display: block; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: rgb(var(--color-foreground)); }
/* #193 (Artem 2026-11-09) the link is Concept's inline .reversed-link inside the title block, as in its product cards: the hover underline is a
   background on the line boxes, so it runs under each line of a two-line title; on the clamped block itself it drew one line under the first line
   only, across the second */
.ext-timeline__product-title a { color: inherit; }
/* #193 from 1024 the title may take two lines (a 1440 laptop cut «Whey Protein · Classic» to «Whey Protein · …»); phones keep one line (spec) */
@media screen and (min-width: 1024px) {
  .ext-timeline__product-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; white-space: normal; }
  /* #193 2026-11-09 the chip follows its photo's width (a 14" MacBook): the chip is a container — under 200 px of content (a very low screen only,
     since #227 the photo is at least 340 px or a square) the thumbnail goes (the product is in the photo). The quick view inside the chip is
     unaffected — the chip's backdrop-filter already makes it the drawer's containing block */
  .ext-timeline__product { container-type: inline-size; }
  @container (max-width: 199.98px) {
    .ext-timeline__product-media { display: none; }
    .ext-timeline__product-info { padding-inline-start: 4px; }
  }
}

/* #193 the big number: Archivo 900, sand; each digit a strip of 20 cells (0–9 twice) behind a 1em window, set by timeline.js to the cell the scroll
   reached (translateY(−cell em)) — no transition: it rolls with the scroll, not on a timer; «time» has a fixed colon after the second digit */
.ext-timeline__number { display: flex; align-items: flex-start; justify-content: center; font-family: var(--font-heading-family); font-weight: 900; font-size: clamp(64px, 5.6vw, 100px); line-height: 1; letter-spacing: -.05em; color: rgb(var(--ext-tl-sand)); }
.ext-timeline .ext-odo { display: block; height: 1em; overflow: hidden; }
.ext-timeline .ext-odo__strip { display: block; }
.ext-timeline .ext-odo__strip b { display: block; height: 1em; font-weight: inherit; }
.ext-timeline__colon { display: inline-block; width: .32em; text-align: center; transform: translateY(-.04em); }

/* #193 the point's heading (Archivo 800, 26–38 px, one word in outline) and text (16 px, 62 %) */
.ext-timeline__head-point { margin: 0; font-family: var(--font-heading-family); font-weight: 800; font-size: var(--ext-tl-hs); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.ext-timeline__text { max-width: 460px; margin: 0 auto; font-size: 16px; line-height: 1.5; color: rgb(var(--color-foreground) / .62); }

/* #193 the ruler's parts: ticks (foreground 20 %, the point's big one 42 %, the one under the marker lime) and the years — buttons (a tap or Enter
   moves the strip to the point), Archivo 800, 60 %, fading as they come to the marker (--lo); the lime marker 2 px wide */
.ext-timeline__tick { position: absolute; left: calc(100% * var(--x, 0) / max(1, var(--ext-tl-n, 2) - 1)); width: 1px; margin-left: -.5px; background: rgb(var(--color-foreground) / .2); }
.ext-timeline__tick--big { background: rgb(var(--color-foreground) / .42); }
.ext-timeline__tick.is-hot { background: rgb(var(--color-highlight)); }
[data-ticks="false"] .ext-timeline__tick:not(.ext-timeline__tick--big) { display: none; }
.ext-timeline__label { position: absolute; left: calc(100% * var(--x, 0) / max(1, var(--ext-tl-n, 2) - 1)); transform: translateX(-50%); padding: 6px 8px; border: 0; border-radius: 6px; background: none; cursor: pointer;
  font-family: var(--font-heading-family); font-weight: 800; font-size: 16px; line-height: 1; letter-spacing: .01em; white-space: nowrap; color: rgb(var(--color-foreground) / .6); opacity: var(--lo, 1); transition: color .3s; }
/* #193 a focused year shows, with its ring, even at the marker where it otherwise fades out (review fix 1, WCAG 2.4.7); timeline.js makes only the
   years inside the frame tab stops */
.ext-timeline__label:focus-visible { opacity: 1; outline: 2px solid rgb(var(--color-foreground)); outline-offset: 0; }
.ext-timeline__marker { display: block; width: 2px; border-radius: 2px; background: rgb(var(--color-highlight)); z-index: 2; }

/* #193 the arrows by the number (phones only): Concept's round buttons, 44 px, outline foreground 24 %, a chevron; off at the ends (28 %) */
.ext-timeline__nav.button { --buttons-radius: var(--rounded-full); --buttons-border-width: 1px; --color-button-border: var(--color-foreground); --border-opacity: .24;
  width: 44px; height: 44px; min-width: 0; padding: 0; flex: none; color: rgb(var(--color-foreground)); transition: opacity .3s; }
.ext-timeline__nav.button[disabled] { opacity: .28; }
/* #193 hover only where there is one (a tap on a phone left the arrow lit) */
@media (hover: hover) {
  /* #230 the card's hover (only the card, never the photo): the glass a shade denser, its line brighter, the title's underline (Concept's
     .reversed-link hover), the thumbnail 1.05 (Concept's .horizontal-product__media) */
  .ext-timeline__card:hover { background-color: rgb(24 25 29 / .78); border-color: rgb(var(--color-foreground) / .3); }
  .ext-timeline__card:hover .reversed-link { background-position-x: var(--transform-origin-start); background-size: 100% 1px; }
  .ext-timeline__card:hover .ext-timeline__product-media img { transform: scale(1.05); }
  .ext-timeline__label:hover { color: rgb(var(--color-foreground)); }
  .ext-timeline__nav.button:hover:not([disabled]) { --border-opacity: 1; }
}

/* #193 the strip — without the script (and until it starts), and on phones: a row of 4:5 cards with its own sideways scroll and snap; a card is 62 %
   of the screen, 12 apart, the side paddings (19 %) set the first and the last in the middle, the next one peeks ≈ 60 px. With 19 % paddings the
   track's content box is 62 % wide, so a card is 100 % of it */
/* #224 a low screen (a phone in landscape): the card is at most 70 % of the screen's height (its width 56svh) — the side paddings grow instead, so the
   card stays in the middle and pos = scrollLeft / step holds */
.ext-timeline { --ext-tl-pad: max(19%, 50% - 28svh); }
.ext-timeline__track { position: relative; display: flex; gap: 12px; padding: 0 var(--ext-tl-pad); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ext-timeline__track::-webkit-scrollbar { display: none; }
.ext-timeline__track > .ext-timeline__item { flex: 0 0 100%; aspect-ratio: 4 / 5; scroll-snap-align: center; border-radius: 14px; }
/* #193 without the script: no ruler, marker or number (they need it); the headings and texts as a list under the row, each heading over its text */
.ext-timeline:not([data-ready]) :is(.ext-timeline__ruler, .ext-timeline__marker, .ext-timeline__counter, .ext-timeline__meta) { display: none; }
.ext-timeline:not([data-ready]) .ext-timeline__frame { display: flex; flex-direction: column; gap: 12px; padding-block-end: max(var(--section-padding-bottom, 0px), 48px); }
.ext-timeline:not([data-ready]) :is(.ext-timeline__heads, .ext-timeline__texts) { display: contents; }
.ext-timeline:not([data-ready]) :is(.ext-timeline__head-point, .ext-timeline__text) { margin: 0; padding-inline: var(--page-padding, 24px); }
.ext-timeline:not([data-ready]) .ext-timeline__head-point { margin-top: 24px; }
.ext-timeline:not([data-ready]) .ext-timeline__text { max-width: none; }
.ext-timeline:not([data-ready]) .ext-timeline__head-point:nth-child(1) { order: 2; }
.ext-timeline:not([data-ready]) .ext-timeline__text:nth-child(1) { order: 3; }
.ext-timeline:not([data-ready]) .ext-timeline__head-point:nth-child(2) { order: 4; }
.ext-timeline:not([data-ready]) .ext-timeline__text:nth-child(2) { order: 5; }
.ext-timeline:not([data-ready]) .ext-timeline__head-point:nth-child(3) { order: 6; }
.ext-timeline:not([data-ready]) .ext-timeline__text:nth-child(3) { order: 7; }
.ext-timeline:not([data-ready]) .ext-timeline__head-point:nth-child(4) { order: 8; }
.ext-timeline:not([data-ready]) .ext-timeline__text:nth-child(4) { order: 9; }
.ext-timeline:not([data-ready]) .ext-timeline__head-point:nth-child(5) { order: 10; }
.ext-timeline:not([data-ready]) .ext-timeline__text:nth-child(5) { order: 11; }
.ext-timeline:not([data-ready]) .ext-timeline__head-point:nth-child(6) { order: 12; }
.ext-timeline:not([data-ready]) .ext-timeline__text:nth-child(6) { order: 13; }
.ext-timeline:not([data-ready]) .ext-timeline__head-point:nth-child(7) { order: 14; }
.ext-timeline:not([data-ready]) .ext-timeline__text:nth-child(7) { order: 15; }
.ext-timeline:not([data-ready]) .ext-timeline__head-point:nth-child(8) { order: 16; }
.ext-timeline:not([data-ready]) .ext-timeline__text:nth-child(8) { order: 17; }
@media screen and (min-width: 1024px) {
  /* #193 without the script on desktop: the same row, cards at the photo's height */
  .ext-timeline:not([data-ready]) .ext-timeline__track { padding-inline: calc(50% - var(--ext-tl-w) / 2); }
  .ext-timeline:not([data-ready]) .ext-timeline__track > .ext-timeline__item { flex-basis: var(--ext-tl-w); height: var(--ext-tl-h); aspect-ratio: auto; border-radius: 16px; }
}

/* #193 with the script — both modes: the points' headings in one grid cell (aligned to the foot) and their texts in another under them, centred,
   at most 640 wide; the number between the strip and the heading */
.ext-timeline[data-ready] :is(.ext-timeline__heads, .ext-timeline__texts) { display: grid; width: min(640px, 100% - 2 * var(--page-padding, 24px)); margin-inline: auto; text-align: center; }
.ext-timeline[data-ready] :is(.ext-timeline__heads, .ext-timeline__texts) > * { grid-area: 1 / 1; }
.ext-timeline[data-ready] .ext-timeline__head-point { align-self: end; }
.ext-timeline[data-ready] .ext-timeline__text { align-self: start; }
.ext-timeline[data-ready] .ext-timeline__counter { display: flex; align-items: center; justify-content: center; gap: 18px; }
.ext-timeline[data-ready] .ext-timeline__heads { margin-top: 18px; }
.ext-timeline[data-ready] .ext-timeline__texts { margin-top: 4px; } /* #227 the text closer to its heading (was 10) */
/* #193 a point's heading changes on arrival (round(pos)), as S17's: its words rise one by one from under their line (55 ms apart, 160 ms in), the old
   one's leave upward; the line is cut by clip-path (top and foot only — the outline's stroke keeps its sides) */
.ext-timeline[data-ready] .ext-timeline__head-point .ext-word { display: inline-block; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; clip-path: inset(0 -.2em); }
.ext-timeline[data-ready] .ext-timeline__head-point .ext-word > span { display: inline-block; transition: transform .75s var(--ext-tl-ease); }
.ext-timeline[data-ready] .ext-timeline__head-point[data-state="next"] .ext-word > span { transform: translateY(108%); }
.ext-timeline[data-ready] .ext-timeline__head-point[data-state="past"] .ext-word > span { transform: translateY(-108%); transition-duration: .5s; }
.ext-timeline[data-ready] .ext-timeline__head-point[data-state="on"] .ext-word > span { transition-delay: calc(var(--k, 0) * 55ms + 160ms); }
/* #193 the text comes in after its heading (.4 s) and leaves with it */
.ext-timeline[data-ready] .ext-timeline__text { transition: opacity .5s, transform .6s var(--ext-tl-ease); }
.ext-timeline[data-ready] .ext-timeline__text[data-state="next"] { opacity: 0; transform: translateY(14px); }
.ext-timeline[data-ready] .ext-timeline__text[data-state="past"] { opacity: 0; transform: translateY(-14px); }
.ext-timeline[data-ready] .ext-timeline__text[data-state="on"] { transition-delay: .4s; }
/* #193 the first state after a load (and a switch across 1024) is set at once (data-instant for two frames): a reload in the middle shows its point */
.ext-timeline[data-instant] *, .ext-timeline[data-instant] *::after { transition: none !important; }

/* #193 from 1024 — pinned. The section is (N − 1) steps of scroll («Scroll per point», --ext-tl-step) plus a screen; the frame sticks flush under the
   header (--ext-timeline-top — the shown header's foot) and fills the screen below it. overflow: clip, not hidden: the frame is no scroll container,
   so a year focused far along the strip cannot scroll it sideways */
@media screen and (min-width: 1024px) {
  .ext-timeline[data-ready] { height: calc((var(--ext-tl-n, 2) - 1) * var(--ext-tl-step, 70vh) + 100svh); }
  /* #224 the frame keeps a foot under the text (3vh, at least 16 px): on a low screen the stage gives way down to it, the text never touches the edge */
  .ext-timeline[data-ready] .ext-timeline__frame { position: sticky; top: var(--ext-timeline-top, 0px); height: calc(100svh - var(--ext-timeline-top, 0px)); overflow: hidden; overflow: clip; display: flex; flex-direction: column;
    padding-bottom: max(var(--section-padding-bottom, 0px), 3vh, 16px); }
  /* #193 the stage: the photos' height plus the ruler's 76 px — the frame's free space, at most that (the rest of the free space stays under the text,
     the number right under the ruler), the first to give way when there is none (min-height 0; the others keep their content's height); a size
     container, so the photo's height follows it (100cqh − 76px above). The photos and the ruler stand from its centre (point k at k steps) and shift
     together by --ext-tl-shift (−pos × step, timeline.js); the marker and the darkened edges stay */
  .ext-timeline[data-ready] .ext-timeline__track { display: block; flex: 1 1 0; min-height: 0; max-height: calc(var(--ext-tl-cap) + 76px); container-type: size; padding: 0; overflow: visible; scroll-snap-type: none; }
  .ext-timeline[data-ready] .ext-timeline__track > .ext-timeline__item { position: absolute; top: 0; left: calc(50% + var(--ext-tl-i, 0) * var(--ext-tl-pitch)); width: var(--ext-tl-w); height: var(--ext-tl-h); margin-left: calc(var(--ext-tl-w) / -2); aspect-ratio: auto; border-radius: 16px;
    transform: translate3d(var(--ext-tl-shift, 0px), 0, 0) scale(var(--s, 1)); transform-origin: 50% 100%; will-change: transform; }
  .ext-timeline[data-ready] .ext-timeline__ruler { position: absolute; top: var(--ext-tl-h); left: 50%; width: calc((var(--ext-tl-n, 2) - 1) * var(--ext-tl-pitch)); height: 76px; transform: translate3d(var(--ext-tl-shift, 0px), 0, 0); will-change: transform; }
  .ext-timeline[data-ready] .ext-timeline__tick { top: 22px; height: 8px; }
  .ext-timeline[data-ready] .ext-timeline__tick--big { top: 18px; height: 16px; }
  .ext-timeline[data-ready] .ext-timeline__label { top: 38px; }
  .ext-timeline[data-ready] .ext-timeline__marker { position: absolute; top: calc(var(--ext-tl-h) + 12px); left: 50%; height: 28px; margin-left: -1px; }
  /* #193 the edges darken into the ground (14 % of the width each side), so the strip runs into the background */
  .ext-timeline[data-ready] .ext-timeline__track::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgb(var(--color-background)), rgb(var(--color-background) / 0) 14%, rgb(var(--color-background) / 0) 86%, rgb(var(--color-background))); }
  .ext-timeline__nav.button { display: none; }
}
/* #227 (2026-11-10, a 14" laptop not in full screen) — screens up to 900 px high from 1024 wide: under the strip one row split at the lime marker
   instead of the stack (the number, then the heading, then the text — ~200 px of height the photo gets back); tall screens keep the stack.
   The frame is a grid: the head across; the stage across (its row minmax(0, photo height + 76), the stage still the first to give way); then
   the number in the left half ending 22 px left of the marker, the point's heading and text in the right half starting 22 px right of it;
   the last row takes what is left. The number's size follows the heading's: its digits (Archivo 900 — digit height .70 em, top .135 em below
   its 1 em box) run from the heading's cap line (.173 × heading below the heading's box: Archivo cap .687, ascent .88, descent .21,
   line-height 1.05) to the text's first baseline (16 px Instrument Sans, line-height 1.5 — 1.11 × 16 below the text's top):
   N = (.877 × heading + gap 4 + 17.76 px) / .70 — 65 px at 1512 (heading 27); a text's further lines run below the digits. --ext-tl-row: the space under the
   ruler */
@media screen and (min-width: 1024px) and (max-height: 900px) {
  /* the row's heading a size smaller than the stack's (Artem: smaller heading and number here) — 27 px at 1512, the number with it ≈ 65 */
  .ext-timeline { --ext-tl-hs: clamp(24px, 1.8vw, 30px); --ext-tl-gap: 4px; --ext-tl-row: 20px; --ext-tl-ns: calc((.877 * var(--ext-tl-hs) + var(--ext-tl-gap) + 17.76px) / .7); }
  .ext-timeline[data-ready] .ext-timeline__frame { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 44px;
    grid-template-rows: auto minmax(0, calc(var(--ext-tl-cap) + 76px)) auto auto minmax(0, 1fr); }
  .ext-timeline[data-ready] .ext-timeline__head { grid-column: 1 / -1; grid-row: 1; }
  .ext-timeline[data-ready] .ext-timeline__track { grid-column: 1 / -1; grid-row: 2; }
  .ext-timeline[data-ready] .ext-timeline__counter { grid-column: 1; grid-row: 3 / span 2; justify-content: flex-end; align-self: start; padding-inline-start: var(--page-padding, 24px);
    margin-top: calc(var(--ext-tl-row) + .173 * var(--ext-tl-hs) - .135 * var(--ext-tl-ns)); }
  .ext-timeline[data-ready] .ext-timeline__number { font-size: var(--ext-tl-ns); }
  .ext-timeline[data-ready] .ext-timeline__heads { grid-column: 2; grid-row: 3; width: auto; max-width: 520px; margin: var(--ext-tl-row) var(--page-padding, 24px) 0 0; text-align: start; justify-self: start; align-self: start; }
  .ext-timeline[data-ready] .ext-timeline__texts { grid-column: 2; grid-row: 4; width: auto; max-width: 440px; margin: var(--ext-tl-gap) var(--page-padding, 24px) 0 0; text-align: start; justify-self: start; align-self: start; }
  /* the headings share one cell: each stands at its top, so the number meets the first line's caps whatever the other points' headings take */
  .ext-timeline[data-ready] .ext-timeline__head-point { align-self: start; }
  .ext-timeline[data-ready] .ext-timeline__text { margin: 0; }
}
/* #193 low screens from 1024 (a laptop ~720 px high and below, a tablet in landscape): the head's paddings and the space under the ruler tighten;
   the photo takes what is left (the stage gives way by layout, above). #224 (2026-11-09): nothing is hidden by the screen's height — before, the
   point's text went at 720 and the range with the progress bar at 640 (a 1366 × 768 laptop, an iPad in landscape lost the text), and the photos
   were cut to 32vh at 820 even where the frame had room. #227: these screens have the split row, its number sized from the heading */
@media screen and (min-width: 1024px) and (max-height: 720px) {
  .ext-timeline .ext-timeline__head { padding-block: 4vh 3vh; }
  .ext-timeline { --ext-tl-row: 14px; }
}
@media screen and (min-width: 1024px) and (max-height: 640px) {
  .ext-timeline .ext-timeline__head { padding-block: 3vh 2vh; }
}

/* #193 below 1024 — swipe (Artem's B): the frame does not stick, the page scrolls past it; the head over the strip (heading 28 px, no range); the ruler
   rides inside the strip under the cards — one ruler from the first card's centre to the last's, a step (card + 12) per point; the lime marker stays
   in the middle (sticky to the strip's scrollport); the number 56 px between ‹ ›, the heading 23 px and the text (at most 3 lines) under it */
@media screen and (max-width: 1023px) {
  .ext-timeline .ext-timeline__head { padding-block: 22px 14px; }
  .ext-timeline__title .heading { margin-top: 10px; font-size: 28px; line-height: 1.02; }
  .ext-timeline__meta { display: none; }
  .ext-timeline[data-ready] .ext-timeline__track { padding-bottom: 52px; }
  .ext-timeline[data-ready] .ext-timeline__track > .ext-timeline__item { transform: scale(var(--s, 1)); transform-origin: 50% 100%; will-change: transform; }
  .ext-timeline[data-ready] .ext-timeline__ruler { position: absolute; bottom: 0; left: 50%; width: calc((var(--ext-tl-n, 2) - 1) * (100% - 2 * var(--ext-tl-pad) + 12px)); height: 52px; }
  .ext-timeline[data-ready] .ext-timeline__tick { top: 12px; height: 7px; }
  .ext-timeline[data-ready] .ext-timeline__tick--big { top: 8px; height: 14px; }
  .ext-timeline[data-ready] .ext-timeline__label { top: 22px; font-size: 13px; }
  /* #193 the marker: the strip's last flex item (its −14 px margin cancels the gap and its width), stuck at the scrollport's middle by `right`; it hangs
     4–28 px under the cards (its −28 px foot margin) */
  .ext-timeline[data-ready] .ext-timeline__marker { position: sticky; right: calc(50% - 1px); flex: none; align-self: flex-end; height: 24px; margin: 0 0 -28px -14px; }
  .ext-timeline__number { font-size: 56px; }
  .ext-timeline[data-ready] .ext-timeline__counter { margin-top: 4px; }
  .ext-timeline[data-ready] .ext-timeline__heads { margin-top: 10px; }
  .ext-timeline__head-point { font-size: 23px; line-height: 1.06; }
  .ext-timeline[data-ready] .ext-timeline__texts { margin: 8px auto 48px; }
  /* #224 the text in full, no 3-line cut (the texts share one grid cell, so the block is as tall as the longest — nothing jumps) */
  .ext-timeline__text { max-width: 330px; font-size: 14.5px; line-height: 1.45; }
  /* #193 the chip in one line on a card: thumbnail 40, title, price; #229 the card inset 8, radius 12, the eye 36 in the corner; #227 the bar
     across the card's foot */
  .ext-timeline__product { padding: 8px; }
  .ext-timeline__card { gap: 10px; padding: 6px 11px 6px 6px; border-radius: 12px; }

  .ext-timeline__view.button { width: 36px; height: 36px; }
  [data-tl-product="bar"] .ext-timeline__product { gap: 10px; padding: 8px 10px; }
  .ext-timeline__product-media { width: 40px; height: 40px; border-radius: 8px; }
  .ext-timeline__product-info { font-size: 12px; }
  .ext-timeline__product-title { font-size: 13px; }
}

/* #193 reduced motion: the digits snap (timeline.js), the strip jumps (no smooth scrolling), the heading and the text change at once */
@media (prefers-reduced-motion: reduce) {
  .ext-timeline[data-ready] :is(.ext-timeline__head-point .ext-word > span, .ext-timeline__text, .ext-timeline__nav, .ext-timeline__label) { transition: none; }
  .ext-timeline[data-ready] .ext-timeline__head-point:not([data-state="on"]) { visibility: hidden; }
  .ext-timeline[data-ready] .ext-timeline__head-point[data-state] .ext-word > span, .ext-timeline[data-ready] .ext-timeline__text[data-state] { transform: none; }
}
