/* SELVO round 17 (2026-11-20 night): launch hero, tools with small working previews, matching page heads,
   tighter section rhythm. Motion: glides and fades only, reduced motion respected. */

/* ---------- hero: the name huge behind the bike ---------- */
.hx { position: relative; height: 100svh; min-height: 620px; max-height: 1040px; background: var(--grey); overflow: hidden; display: flex; flex-direction: column; isolation: isolate; }
.hx-stage { position: relative; flex: 1 1 auto; min-height: 0; }
.hx-word { position: absolute; left: 0; right: 0; top: calc(60px + clamp(4px, 2.4vh, 34px)); z-index: 1; margin: 0; text-align: center; white-space: nowrap; pointer-events: none;
  font: 600 clamp(120px, 23vw, 390px)/.86 'Clash Display', 'Satoshi', sans-serif; color: #e1e1e5; translate: 0 calc(var(--hp, 0) * -18%); }
.hx-w { display: inline-block; overflow: hidden; padding: 0 .02em .05em; vertical-align: top; }
.hx-c { display: inline-block; transition: transform 1s var(--out) calc(var(--d, 0) * 42ms + 80ms), opacity .5s linear calc(var(--d, 0) * 42ms + 80ms); }
.hx-bikes { position: absolute; left: 50%; bottom: 0; z-index: 2; width: min(86vw, 1264px, calc((100svh - 230px) * 1.49)); aspect-ratio: 1264 / 848;
  translate: -50% calc(var(--hp, 0) * -5%); scale: calc(1 - var(--hp, 0) * .05); transform-origin: 50% 80%; transition: opacity 1s linear .2s, transform 1.4s var(--out) .15s; }
.hx-b { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; opacity: 0; transition: opacity .7s linear, transform 1.1s var(--out); }
.hx-b.on { opacity: 1; }
.hx-b.from { transform: translateX(3.5%); transition: none; }
.hx-b.away { opacity: 0; transform: translateX(-3.5%); }
.hx-bar { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px 40px; padding-block: 14px clamp(22px, 4vh, 42px); }
.hx-bar > * { transition: opacity .7s linear .55s, translate .9s var(--out) .55s; }
.hx-copy { max-width: 540px; }
.hx-k { font-size: 15px; font-weight: 600; color: var(--mute); }
.hx-line { font-size: clamp(20px, 1.9vw, 26px); font-weight: 500; line-height: 1.3; margin-top: 6px; text-wrap: balance; }
.hx-p { font-size: 14px; color: var(--mute); margin-top: 8px; }
.hx [data-hx] { transition: opacity .25s linear, translate .45s var(--out); }
.hx [data-hx].swap { opacity: 0; translate: 0 6px; }
.hx-side { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.hx-tabs { position: relative; display: flex; gap: 22px; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12); }
.hx-tabs button { position: relative; padding: 4px 0 10px; border: 0; background: none; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--mute); transition: color .2s linear; }
.hx-tabs button[aria-selected="true"], .hx-tabs button:hover { color: var(--ink); }
.hx-pr { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden; }
.hx-pr::before { content: ''; position: absolute; inset: 0; background: rgba(29, 29, 31, .28); transform: scaleX(0); transform-origin: 0 50%; }
.hx-tabs button.run .hx-pr::before { animation: hx-run var(--hx-t, 7s) linear forwards; }
@keyframes hx-run { to { transform: scaleX(1); } }
.hx-hl { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--ink); border-radius: 2px; transition: transform .45s var(--out), width .45s var(--out); }
.hx-acts { display: flex; align-items: center; gap: 14px 24px; flex-wrap: wrap; justify-content: flex-end; }
.hx-tag { position: absolute; right: var(--pad); top: calc(60px + 14px); z-index: 3; font-size: 12px; color: var(--mute); }
/* entrance: letters rise, the bike settles, the copy follows (hidden only while the scripts run; js-safe shows all) */
.js .hx:not(.in) .hx-c { transform: translateY(104%); opacity: 0; }
.js .hx:not(.in) .hx-bikes { opacity: 0; transform: translateY(26px) scale(.985); }
.js .hx:not(.in) .hx-bar > * { opacity: 0; translate: 0 14px; }
.js.js-safe .hx:not(.in) .hx-c, .js.js-safe .hx:not(.in) .hx-bikes, .js.js-safe .hx:not(.in) .hx-bar > * { opacity: 1; transform: none; translate: 0 0; }
.hx-word.out .hx-c { transform: translateY(-104%); opacity: 0; transition: transform .5s cubic-bezier(.5, 0, .75, 0) calc(var(--d, 0) * 22ms), opacity .3s linear calc(var(--d, 0) * 22ms + 120ms); }
.hx-word.pre .hx-c { transform: translateY(104%); opacity: 0; transition: none; }
html.dark .hx-b { mix-blend-mode: normal; }
@media (max-width: 760px) {
  .hx { height: auto; min-height: 0; max-height: none; }
  .hx-stage { height: min(118vw, 62svh); flex: none; }
  .hx-word { font-size: 31vw; top: calc(60px + 18px); }
  .hx-bikes { width: 124vw; bottom: 2%; }
  .hx-bar { flex-direction: column; align-items: stretch; gap: 18px; padding-top: 6px; }
  .hx-side { align-items: stretch; }
  .hx-tabs { justify-content: flex-start; }
  .hx-acts { justify-content: flex-start; }
  .hx-tag { top: auto; bottom: 8px; }
}
@media (max-height: 560px) and (orientation: landscape) { .hx { height: auto; min-height: 0; } .hx-stage { height: 82svh; flex: none; } .hx-word { font-size: 17vw; } .hx-bikes { width: min(70vw, calc((82svh - 60px) * 1.49)); } }
@media (prefers-reduced-motion: reduce) {
  .hx-c, .hx-bikes, .hx-bar > *, .hx-b, .hx [data-hx] { transition-duration: .01s !important; transition-delay: 0s !important; }
  .hx-word, .hx-bikes { translate: none; scale: none; } .hx-bikes { translate: -50% 0; }
  .hx-tabs button.run .hx-pr::before { animation: none; }
}

/* ---------- tools: one big card, five small ones, each with a small preview ---------- */
.sec.t17 { padding-block: clamp(56px, 6vw, 92px) clamp(20px, 2.5vw, 36px); }
.t17-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 40px; flex-wrap: wrap; }
.t17-head h2 { font-size: clamp(34px, 4.2vw, 58px); }
.t17-head .lede { color: var(--mute); max-width: 420px; }
.t17-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.t17-c { position: relative; display: flex; flex-direction: column; gap: 16px; width: 100%; padding: 14px 14px 20px; border: 0; border-radius: 22px; background: var(--grey); color: var(--ink); text-decoration: none; text-align: left; font: inherit; cursor: pointer; overflow: hidden; transition: background-color .25s linear; }
.t17-c:hover { background: #ececef; }
.t17-c.big { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.t17-t { padding: 0 44px 0 6px; }
.t17-t b { display: block; font: 600 22px/1.15 'Clash Display', sans-serif; }
.t17-c.big .t17-t b { font-size: clamp(26px, 2.6vw, 34px); }
.t17-t span { display: block; font-size: 14.5px; color: var(--mute); margin-top: 4px; }
.t17-c > svg:last-child { position: absolute; right: 22px; bottom: 26px; width: 13px; height: 13px; color: var(--mute); transition: transform .45s var(--out), color .2s linear; }
.t17-c:hover > svg:last-child { transform: translateX(3px); color: var(--ink); }
.tv { position: relative; flex: 1 1 auto; display: grid; place-items: center; min-height: 132px; padding: 16px; border-radius: 14px; background: #fff; overflow: hidden; }
/* finder */
.tv-fd { display: block; padding: clamp(18px, 2.4vw, 30px); }
.fd-top { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--mute); }
.fd-top i { flex: 1; height: 3px; border-radius: 3px; background: var(--grey-2); } .fd-top i b { display: block; height: 100%; border-radius: 3px; background: var(--ink); transition: width .6s var(--out); }
.t17-c.big:hover .fd-top i b { width: 40% !important; }
.fd-q { font: 600 clamp(24px, 2.4vw, 32px)/1.15 'Clash Display', sans-serif; margin-top: 16px; }
.tv-fd ul { position: relative; list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; isolation: isolate; max-width: 460px; }
.tv-fd li { position: relative; z-index: 1; height: 42px; display: flex; align-items: center; padding: 0 14px; font-size: 15px; color: var(--mute); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--grey-2); transition: color .25s linear; }
.tv-fd li.on { color: var(--ink); font-weight: 600; }
.fd-hl { position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 42px; border-radius: 10px; background: var(--grey); transform: translateY(96px); transition: transform .45s var(--out); }
.t17-c.big:hover .fd-hl { transform: translateY(48px); }
.t17-c.big:hover .tv-fd li.on { color: var(--mute); font-weight: 400; } .t17-c.big:hover .tv-fd li:nth-child(2) { color: var(--ink); font-weight: 600; }
.fd-res { display: flex; align-items: center; gap: 14px; margin-top: 18px; max-width: 460px; padding: 10px 12px; border-radius: 12px; background: var(--grey); }
.fd-res img { width: 104px; flex: none; }
.fd-res small { display: block; font-size: 12.5px; color: var(--mute); } .fd-res b { font-size: 16px; }
/* compare */
.tv-cmp svg { width: min(100%, 280px); height: auto; overflow: visible; }
.tv-cmp .ca { color: var(--ink); } .tv-cmp .cb { color: #a1a1a6; transition: transform .6s var(--out); }
.t17-c:hover .tv-cmp .cb { transform: translateX(8px); }
.cmp-k { position: absolute; left: 14px; bottom: 10px; display: flex; gap: 14px; font-size: 12.5px; color: var(--mute); }
.cmp-k i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; } .cmp-k .ka { background: var(--ink); } .cmp-k .kb { background: #a1a1a6; }
/* configure */
.tv-cf { gap: 10px; }
.cf-ph { position: relative; width: min(100%, 250px); aspect-ratio: 1264 / 848; }
.cf-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .5s linear; }
.cf-ph img.on { opacity: 1; }
.t17-c:hover .cf-ph img.on { opacity: 0; } .t17-c:hover .cf-ph img:nth-child(2) { opacity: 1; }
.cf-sw { position: relative; display: flex; gap: 10px; }
.cf-sw i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.cf-ring { position: absolute; left: -4px; top: -4px; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ink); transition: transform .4s var(--out); }
.t17-c:hover .cf-ring { transform: translateX(28px); }
/* size */
.tv-sz { display: block; align-content: center; padding: 18px 22px; }
.sz-t { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); } .sz-t b { color: var(--ink); font-size: 15px; }
.sz-track { position: relative; height: 6px; border-radius: 6px; background: var(--grey-2); margin-top: 14px; }
.sz-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 62%; border-radius: 6px; background: var(--ink); transition: width .5s var(--out); }
.sz-th { position: absolute; left: 62%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25), inset 0 0 0 5px var(--ink); transition: left .5s var(--out); }
.t17-c:hover .sz-fill { width: 74%; } .t17-c:hover .sz-th { left: 74%; }
.sz-s { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; font-weight: 600; color: #a1a1a6; } .sz-s .on { color: var(--ink); }
/* dealer */
.tv-dl svg { width: min(100%, 220px); height: auto; overflow: visible; }
.tv-dl .dl-me { fill: #0071e3; } .tv-dl .dl-near { fill: var(--ink); transition: transform .5s var(--out); transform-origin: 128px 40px; }
.dl-chip { position: absolute; right: 14px; top: 12px; padding: 4px 8px; border-radius: 6px; background: var(--grey); font-size: 12.5px; font-weight: 600; transition: transform .45s var(--out); }
.t17-c:hover .dl-chip { transform: translateY(-2px); } .t17-c:hover .tv-dl .dl-near { transform: scale(1.25); }
/* test ride */
.tv-tr { display: flex; justify-content: center; gap: 8px; isolation: isolate; }
.tv-tr span { position: relative; z-index: 1; display: grid; justify-items: center; align-content: center; width: 58px; height: 68px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--grey-2); }
.tv-tr small { font-size: 12px; color: var(--mute); } .tv-tr b { font: 600 22px 'Clash Display', sans-serif; }
.tr-hl { position: absolute; z-index: 0; width: 58px; height: 68px; left: calc(50% - 95px); top: calc(50% - 34px); border-radius: 12px; background: var(--grey-2); transition: transform .45s var(--out); }
.t17-c:hover .tr-hl { transform: translateX(66px); }
@media (max-width: 960px) { .t17-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .t17-c.big { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 560px) { .t17-grid { grid-template-columns: minmax(0, 1fr); } .tv { min-height: 120px; } }
@media (prefers-reduced-motion: reduce) { .t17 * { transition-duration: .01s !important; } }

/* ---------- section rhythm on home: no double gaps ---------- */
.t17 + .gstrip { padding-top: clamp(36px, 4vw, 64px); }
/* the bike group blends with the hero ground (a transformed box is its own stacking context, so the blend sits on the group) */
.hx-bikes { mix-blend-mode: multiply; } .hx-b { mix-blend-mode: normal; } html.dark .hx-bikes { mix-blend-mode: normal; }

/* finder preview: question and answers on the left, the result on the right */
.t17 .tv.tv-fd { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px clamp(20px, 3vw, 40px); align-items: center; place-items: initial; align-content: center; padding: clamp(20px, 3vw, 38px); }
.t17 .tv-fd .fd-top, .t17 .tv-fd .fd-q { grid-column: 1; }
.t17 .tv-fd ul { grid-column: 1; margin-top: 0; }
.t17 .tv-fd .fd-res { grid-column: 2; grid-row: 1 / span 3; flex-direction: column; align-items: flex-start; gap: 12px; margin: 0; padding: 18px; border-radius: 16px; }
.t17 .tv-fd .fd-res img { width: 100%; }
.t17 .tv-fd .fd-res b { font: 600 22px/1.15 'Clash Display', sans-serif; }
.t17 .fd-q { margin-top: 0; }
@media (max-width: 700px) { .t17 .tv.tv-fd { grid-template-columns: minmax(0, 1fr); } .t17 .tv-fd .fd-res { grid-column: 1; grid-row: auto; flex-direction: row; align-items: center; } .t17 .tv-fd .fd-res img { width: 96px; } }
/* phone hero: the whole bike stays in view */
@media (max-width: 760px) { .hx-bikes { width: 100vw; bottom: 4%; } .hx-stage { height: min(96vw, 56svh); } .hx-word { top: calc(60px + 10px); } }

/* gear cards without a photo yet: a deliberate tile in the item colour, the name set large, the badge as a watermark */
.pp.gx { background: color-mix(in srgb, var(--g1) 12%, #eceae5); overflow: hidden; }
.pp.gx .gx-in { inset: 0; align-items: flex-start; justify-content: flex-start; padding: clamp(12px, 7cqi, 26px); }
.pp.gx .gx-m { position: absolute; right: -14cqi; bottom: -18cqi; width: 78cqi; opacity: .07; transition: transform .7s var(--out); }
.pt-card:hover .pp.gx .gx-m, .gs-card:hover .pp.gx .gx-m { transform: translate(-3cqi, -2cqi); }
.pp.gx .gx-n { position: relative; text-align: left; white-space: normal; font: 600 clamp(15px, 9.4cqi, 30px)/1.05 'Clash Display', sans-serif; color: rgba(29, 29, 31, .86); letter-spacing: 0; text-wrap: balance; max-width: 92%; }
.pp.gx .gx-c { z-index: 1; }
.pp.gx::after { content: 'Concept, photo to come'; position: absolute; right: clamp(10px, 4.6cqi, 20px); bottom: clamp(9px, 4.2cqi, 18px); font: 500 clamp(10px, 3cqi, 12px)/1 'Satoshi', sans-serif; color: rgba(29, 29, 31, .45); }
html[lang="de"] .pp.gx::after { content: 'Konzept, Foto folgt'; }
@container (max-width: 220px) { .pp.gx::after { display: none; } }
.pt-card:hover .pp.gx, .gs-card:hover .pp.gx { background: color-mix(in srgb, var(--g1) 17%, #e6e4df); }
.sec.t17 { padding-top: clamp(28px, 3.4vw, 52px); }
.t17 + .gstrip { padding-top: clamp(40px, 4.4vw, 68px); }
.sec.gstrip { padding-bottom: clamp(44px, 5vw, 76px); }
.cmp-k { top: 12px; bottom: auto; }

/* ---------- sub page heads: grey band like the home hero, big title, bike photo on the right ---------- */
.ph17 { position: relative; isolation: isolate; padding-block: clamp(34px, 4.6vw, 70px) clamp(34px, 4vw, 60px); margin-bottom: clamp(26px, 3vw, 44px); }
.ph17::before { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; translate: -50% 0; background: var(--grey); }
.ph17 h1 { font-size: clamp(46px, 6.6vw, 100px); }
.ph17 .cf-lead { max-width: 560px; }
.ph17.has-ph { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); column-gap: clamp(24px, 4vw, 64px); align-items: end; }
.ph17.has-ph > :not(figure) { grid-column: 1; }
.ph17-f { grid-column: 2; grid-row: 1 / span 8; align-self: end; margin: 0 0 calc(-1 * clamp(18px, 2.4vw, 36px)); }
.ph17-f img { width: 100%; height: auto; mix-blend-mode: multiply; }
/* 2026-11-21 (fewer fade-ins): the head's kicker, lead and photo are simply there; only the h1 letters rise */
.ph17 h1.split .c > span { transition-delay: calc(var(--d) * 26ms); }
html.dark .ph17-f img { mix-blend-mode: normal; }
@media (max-width: 860px) { .ph17.has-ph { grid-template-columns: minmax(0, 1fr); } .ph17-f { grid-column: 1; grid-row: auto; margin: 18px auto -14px; width: min(100%, 520px); } }
/* section rhythm on the sub pages: the first block under a head never adds a second big gap */
.ph17 + .sv-nav, .ph17 + section { margin-top: 0; }
.r11 .sv-sec { padding-top: clamp(40px, 5vw, 72px); }
/* the travelling Brant passes behind the line-up title, not over it */
.lineup .center { position: relative; z-index: 5; } .ghost2 { mix-blend-mode: multiply; }
