/* Responsive layer (25.11.2026): hero. Only rules inside @media (max-width:1899px). The approved look at 1920+ must not change.
   Fixer A: header, hero scene, partner marks. JS companions (all guarded by innerWidth < 1900): scene/embed.js (lockup docked in
   the bar, copy-width test for the tablet band, touch height-only resize ignored, html.sce-rowin, --sce-ea), scene/ui.js (side tags flip). */

@media (max-width:1899px){
  /* ---------- partner lockup: docked at the right end of the header bar (embed.js puts it there, no glide) ---------- */
  html.sx-page.sce-on .header-bar{ max-width:none }
  html.sx-page.sce-on .site-header .sbr-lock{ gap:10px; padding:0 12px; height:34px }
  html.sx-page.sce-on .site-header .sbr-j .sbr-dk{ height:12px }
  html.sx-page.sce-on .site-header .sbr-j .sbr-lt{ height:14px }
  html.sx-page.sce-on .site-header .sbr-i{ height:26px }
  html.sx-page.sce-on .site-header .sbr-lock .sbr-k{ font-size:9.5px }
  /* the header glass: calmer, no soft grey shadow over the light mist joins */
  html.sx-page .site-header.scrolled{ background:rgba(6,26,58,.96); box-shadow:0 1px 0 rgba(255,255,255,.08) }

  /* ---------- hero copy over the picture (wide layout, 1021-1899 and 1024-1199 landscape): the 2056 proportions, scaled ---------- */
  html.sx-page.sce-on:is(.sce-wide,.sce-still):not(.sce-tab) .sce-hero .sce-copy{ max-width:calc(var(--scl-x) + 27vw); padding-top:96px; padding-bottom:clamp(56px,5vw,72px) }
  html.sx-page.sce-on:is(.sce-wide,.sce-still):not(.sce-tab) .sce-hero .scl-eyebrow{ font-size:clamp(11px,.63vw,12px); gap:10px }
  html.sx-page.sce-on:is(.sce-wide,.sce-still):not(.sce-tab) .sce-hero .scl-h1{ font-size:clamp(34px,3.1vw,64px); margin-top:clamp(14px,1.15vw,22px) }
  html.sx-page.sce-on:is(.sce-wide,.sce-still):not(.sce-tab) .sce-hero .scl-lead{ font-size:clamp(14px,.89vw,17px); line-height:1.62; margin-top:clamp(14px,1.25vw,24px); max-width:none }
  html.sx-page.sce-on:is(.sce-wide,.sce-still):not(.sce-tab) .sce-hero .scl-ctas{ margin-top:clamp(20px,1.75vw,34px); gap:12px }
  html.sx-page.sce-on:is(.sce-wide,.sce-still):not(.sce-tab) .sce-hero .scl-btn{ height:clamp(42px,2.5vw,48px); padding:0 clamp(18px,1.45vw,28px); font-size:clamp(13px,.73vw,14px) }

  /* the dark edge fade at the far left of the picture: soft while the picture reaches the screen edge (embed.js --sce-ea) */
  html.sx-page.sce-on .sce-ext::after{ background:linear-gradient(90deg,rgba(6,26,58,var(--sce-ea,1)),rgba(6,26,58,calc(.55 * var(--sce-ea,1))) 45%,rgba(6,26,58,0)) }

  /* time track: the sun / moon knob no longer sits on the 00 / 18 labels */
  html.sx-page.sce-on .scu-track{ height:52px }
  html.sx-page.sce-on .scu-ticks span{ bottom:0 }

  /* nameplate under the boiler cabinets: readable at the smallest picture scale (plate scale >= .78 -> text >= 9.5 px,
     Jäspi >= 12 px, Intergrid >= 16 px) */
  html.sx-page.sce-on .sbr-layer .sbr-plate{ font-size:11px }
  html.sx-page.sce-on .sbr-layer .sbr-pl{ width:70px }
  html.sx-page.sce-on .sbr-layer .sbr-pj{ height:18px }
  html.sx-page.sce-on .sbr-layer .sbr-pi{ height:25px; margin:-3px 0 -3px -1px }
  /* phones: both rows as well (was the Jäspi badge only), compact */
  html.sx-page.sce-on .sbr-layer.sbr-phone .sbr-plate{ padding:6px 8px 6px 7px; gap:4px; border-radius:7px; background:rgba(6,26,58,.66);
    border-color:rgba(255,255,255,.16); opacity:.95 }
  html.sx-page.sce-on .sbr-layer.sbr-phone .sbr-plate.is-hid{ opacity:0 }
  html.sx-page.sce-on .sbr-layer.sbr-phone .sbr-pr2{ display:flex }
  html.sx-page.sce-on .sbr-layer.sbr-phone .sbr-pt{ display:inline }
  html.sx-page.sce-on .sbr-layer.sbr-phone .sbr-pl{ width:64px }
  html.sx-page.sce-on .sbr-layer.sbr-phone .sbr-pr{ gap:6px }
}

/* ---------- lockup: room in the bar on laptop widths (no words, tighter menu) ---------- */
@media (max-width:1599px){ html.sx-page.sce-on .site-header .sbr-lock .sbr-k{ display:none } }
@media (max-width:1399px) and (min-width:1021px){
  html.sx-page .nav-left{ margin-right:36px } html.sx-page .nav-right{ margin-left:36px }
  html.sx-page .nav-group a{ padding:10px 11px }
}
@media (max-width:1240px) and (min-width:1021px){
  html.sx-page.sce-on .header-bar{ padding:0 16px }
  html.sx-page .nav-left{ margin-right:16px } html.sx-page .nav-right{ margin-left:16px }
  html.sx-page .nav-group a{ padding:10px 8px }
  html.sx-page.sce-on .site-header .sbr-lock{ gap:8px; padding:0 10px }
  html.sx-page.sce-on .site-header .sbr-j .sbr-dk{ height:11px }
  html.sx-page.sce-on .site-header .sbr-i{ height:23px }
}
@media (max-width:1120px) and (min-width:1021px){
  html.sx-page .nav-left{ margin-right:16px } html.sx-page .nav-right{ margin-left:16px }
  html.sx-page .nav-group a{ padding:10px 7px; font-size:11px; letter-spacing:.4px }
  html.sx-page .logo-tab{ padding:0 18px }
  html.sx-page .logo-tab img{ width:150px }
  html.sx-page.sce-on .site-header .sbr-lock{ gap:6px; padding:0 8px }
  html.sx-page.sce-on .site-header .sbr-j .sbr-dk{ height:10.5px }
  html.sx-page.sce-on .site-header .sbr-i{ height:21px }
}

/* ---------- tablet band (html.sce-tab: copy above the picture), any width < 1900 ---------- */
@media (max-width:1899px){
  html.sx-page.sce-on.sce-tab .sce-top .sce-copy{ padding:calc(var(--sce-hh,64px) + 16px) var(--scl-x) 18px;
    grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); grid-template-areas:"eb lead" "h1 lead" "cta lead" "cta row"; column-gap:clamp(24px,3.4vw,48px) }
  html.sx-page.sce-on.sce-tab .sce-top .scl-eyebrow{ font-size:11px; gap:10px }
  html.sx-page.sce-on.sce-tab .sce-top .scl-h1{ font-size:clamp(28px,3.6vw,40px); line-height:1.12; margin-top:10px }
  html.sx-page.sce-on.sce-tab .sce-top .scl-lead{ font-size:14.5px; line-height:1.5; align-self:start; margin-top:2px }
  html.sx-page.sce-on.sce-tab .sce-top .scl-ctas{ margin-top:16px; gap:10px; flex-wrap:nowrap; align-self:start }
  html.sx-page.sce-on.sce-tab .sce-top .scl-btn{ height:44px; padding:0 18px; font-size:13.5px }
  html.sx-page.sce-on.sce-tab .sce-top .sbr-row{ grid-area:row; margin:14px 0 0; align-self:start }
}

/* ---------- small header (<= 1020): navy bar, lockup docked between the logo tab and the menu button ---------- */
@media (max-width:1020px){
  html.sx-page .site-header, html.sx-page .site-header.scrolled{ background:rgba(6,26,58,.97) }
  html.sx-page.sce-on .site-header .sbr-lock, html.sx-page.sce-on .site-header .sbr-lock.sbr-off, html.sx-page.sce-on .site-header .sbr-lock:not([style]){
    display:flex; visibility:visible; position:absolute; left:auto; right:68px; top:calc((var(--header-h,64px) - 34px) / 2); transform:none; will-change:auto;
    margin:0; height:34px; padding:0 12px; gap:10px; border-radius:17px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); box-shadow:none;
    -webkit-backdrop-filter:none; backdrop-filter:none; color:rgba(255,255,255,.72); opacity:1; transition:opacity .3s ease }
  html.sx-page.sce-on .site-header .sbr-lock .sbr-dk{ opacity:1; height:13px }
  html.sx-page.sce-on .site-header .sbr-lock .sbr-lt{ opacity:0 }
  html.sx-page.sce-on .site-header .sbr-i{ height:25px }
  /* the hero's own partner row: readable logos */
  html.sx-page.sce-on .sce-copy .sbr-row{ gap:12px; font-size:11px; letter-spacing:.16em; flex-wrap:wrap; row-gap:8px }
  html.sx-page.sce-on .sbr-row .sbr-dk{ height:15.5px }
  html.sx-page.sce-on .sbr-row .sbr-i{ height:28px }
}
@media (max-width:560px){ html.sx-page.sce-on .site-header .sbr-lock .sbr-k{ display:none } }

/* ---------- phones (<= 767): small header, picture right after the headline ---------- */
@media (max-width:767px){
  html.sx-page{ --header-h:52px }
  html.sx-page .header-bar{ padding:0 8px 0 18px }
  html.sx-page .logo-tab{ height:52px; padding:0 14px; border-radius:0 0 10px 10px }
  html.sx-page .logo-tab img{ width:104px }
  html.sx-page .nav-toggle{ width:42px; height:42px; padding:9px }
  html.sx-page.sce-on .site-header .sbr-lock, html.sx-page.sce-on .site-header .sbr-lock.sbr-off, html.sx-page.sce-on .site-header .sbr-lock:not([style]){
    right:58px; top:10px; height:32px; padding:0 10px; gap:8px }
  html.sx-page.sce-on .site-header .sbr-lock .sbr-dk{ height:13px }
  html.sx-page.sce-on .site-header .sbr-i{ height:23px }

  /* order: eyebrow + headline, picture, caption + controls, lead, buttons, partner row (CSS only, the DOM is unchanged) */
  html.sx-page.sce-on.sce-phone .sce-stage{ display:grid; grid-template-columns:minmax(0,1fr); grid-template-areas:"eb" "h1" "host" "dock" "lead" "cta" "row";
    padding-bottom:24px; overflow:hidden;
    background:linear-gradient(180deg,rgba(6,26,58,.8),rgba(6,26,58,.92) 60%,#061a3a) 0 0/100% 300px no-repeat,
      linear-gradient(#061a3a,#061a3a) 0 300px/100% 100% no-repeat, url(../scene/left/img/extension-sm.jpg) 100% 0/100% auto no-repeat, #061a3a }
  html.sx-page.sce-on.sce-phone .sce-hero, html.sx-page.sce-on.sce-phone .sce-hero .sce-copy{ display:contents }
  html.sx-page.sce-on.sce-phone .sce-copy::before{ display:none }
  html.sx-page.sce-on.sce-phone .sce-copy > *{ margin-left:20px; margin-right:20px }
  html.sx-page.sce-on.sce-phone .scl-eyebrow{ grid-area:eb; margin-top:calc(var(--header-h) + 22px); font-size:11px; letter-spacing:.13em; gap:10px }
  html.sx-page.sce-on.sce-phone .scl-eyebrow::before{ width:22px }
  html.sx-page.sce-on.sce-phone .scl-h1{ grid-area:h1; font-size:30px; line-height:1.14; margin-top:12px; margin-bottom:20px }
  html.sx-page.sce-on.sce-phone .sce-host{ grid-area:host }
  html.sx-page.sce-on.sce-phone .sce-dock{ grid-area:dock }
  html.sx-page.sce-on.sce-phone .scl-lead{ grid-area:lead; font-size:15.5px; line-height:1.55; margin-top:24px; max-width:60ch }
  html.sx-page.sce-on.sce-phone .scl-ctas{ grid-area:cta; margin-top:22px; gap:10px }
  html.sx-page.sce-on.sce-phone .scl-btn{ height:46px; font-size:14px }
  html.sx-page.sce-on.sce-phone .sbr-row{ grid-area:row; margin-top:22px }
  /* the picture melts into the navy above and below it (no hard edges) */
  html.sx-page.sce-on.sce-phone .sce-host::before, html.sx-page.sce-on.sce-phone .sce-host::after{ content:""; position:absolute; left:0; right:0; z-index:3; pointer-events:none }
  html.sx-page.sce-on.sce-phone .sce-host::before{ top:0; height:44px; background:linear-gradient(#061a3a,rgba(6,26,58,0)) }
  html.sx-page.sce-on.sce-phone .sce-host::after{ bottom:0; height:56px; background:linear-gradient(rgba(6,26,58,0),#061a3a) }
  /* caption + controls below the picture */
  html.sx-page.sce-on.sce-phone .scu-bar.scu-docked{ padding:6px 20px 4px }
  html.sx-page.sce-on.sce-phone .scu-docked .scu-title{ font-size:17px; line-height:23px }
}
/* unfolded phones (600-767): headline left, buttons right; lead after the picture */
@media (min-width:600px) and (max-width:767px){
  html.sx-page.sce-on.sce-phone .sce-stage{ grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); grid-template-areas:"eb eb" "h1 cta" "host host" "dock dock" "lead lead" "row row"; column-gap:0 }
  html.sx-page.sce-on.sce-phone .scl-h1{ margin-right:12px }
  html.sx-page.sce-on.sce-phone .scl-ctas{ margin-top:12px; margin-left:0; flex-direction:column; align-items:stretch; align-self:start }
  html.sx-page.sce-on.sce-phone .scl-btn{ width:100%; padding:0 16px }
}
@media (max-width:360px){
  html.sx-page.sce-on.sce-phone .sce-copy > *{ margin-left:18px; margin-right:18px }
  html.sx-page.sce-on.sce-phone .scl-h1{ font-size:28px }
  html.sx-page.sce-on.sce-phone .scl-eyebrow{ font-size:10.5px; letter-spacing:.1em }
  html.sx-page.sce-on.sce-phone .scl-eyebrow::before{ display:none }
}
@media (max-width:400px){
  html.sx-page.sce-on .site-header .sbr-lock, html.sx-page.sce-on .site-header .sbr-lock.sbr-off, html.sx-page.sce-on .site-header .sbr-lock:not([style]){
    padding:0 2px; gap:7px; background:none; border-color:transparent; right:54px }
  html.sx-page .logo-tab{ padding:0 12px }
  html.sx-page .logo-tab img{ width:100px }
}
/* laptop widths: the two hero buttons stay on one row like at 2056 (they may run a little past the text column, into the extension) */
@media (min-width:1200px) and (max-width:1899px){ html.sx-page.sce-on:is(.sce-wide,.sce-still):not(.sce-tab) .sce-hero .scl-ctas{ flex-wrap:nowrap } }
/* narrow laptop column (1021-1199): the eyebrow stays on one line (it may run a little over the sky) */
@media (max-width:1199px) and (min-width:768px){ html.sx-page.sce-on:is(.sce-wide,.sce-still):not(.sce-tab) .sce-hero .scl-eyebrow{ white-space:nowrap; letter-spacing:.12em } }
@media (max-width:1199px) and (min-width:768px){ html.sx-page.sce-on:is(.sce-wide,.sce-still):not(.sce-tab) .sce-hero .sce-copy{ padding-bottom:132px } }

/* ===================== round 2 (25.11) ===================== */
@media (max-width:1899px){
  /* control bar small print: tick labels and legend at least 10.5 px */
  html.sx-page.sce-on .scu-ticks span{ font-size:10.5px }
  html.sx-page.sce-on .scu-key{ font-size:12.5px }
  /* header mark, laptops: Jäspi 65x17, Intergrid 73x26 */
  html.sx-page.sce-on .site-header .sbr-j .sbr-dk{ height:17px }
  html.sx-page.sce-on .site-header .sbr-i{ height:26px }
}
@media (max-width:1399px) and (min-width:1241px){
  html.sx-page .nav-left{ margin-right:28px } html.sx-page .nav-right{ margin-left:28px }
  html.sx-page .nav-group a{ padding:10px 9px }
  html.sx-page.sce-on .site-header .sbr-lock{ gap:8px; padding:0 10px }
  html.sx-page.sce-on .site-header .sbr-sep{ display:none }
}
@media (max-width:1240px) and (min-width:1021px){
  html.sx-page.sce-on .site-header .sbr-lock{ gap:8px; padding:0 8px }
  html.sx-page.sce-on .site-header .sbr-sep{ display:none }
  html.sx-page .nav-group a{ padding:10px 6px }
  html.sx-page .logo-tab{ padding:0 16px }
  html.sx-page .logo-tab img{ width:140px }
}
@media (max-width:1120px) and (min-width:1021px){
  html.sx-page.sce-on .header-bar{ padding:0 12px }
  html.sx-page .nav-left{ margin-right:12px } html.sx-page .nav-right{ margin-left:12px }
  html.sx-page .nav-group a{ padding:10px 5px; font-size:11px; letter-spacing:.3px }
  html.sx-page .logo-tab{ padding:0 12px }
  html.sx-page .logo-tab img{ width:128px }
  /* the eyebrow box spans its text, so the tag mask (embed.js) keeps GAMYBA out from under it */
}
@media (max-width:1199px) and (min-width:768px){ html.sx-page.sce-on:is(.sce-wide,.sce-still):not(.sce-tab) .sce-hero .scl-eyebrow{ width:max-content; max-width:none } }
/* header mark, phones and tablets: Jäspi 61x16, Intergrid 73x26, always visible */
@media (max-width:1020px){
  html.sx-page.sce-on .site-header .sbr-lock .sbr-dk{ height:16px }
  html.sx-page.sce-on .site-header .sbr-i{ height:26px }
  html.sx-page.sce-on .sbr-layer .sbr-plate{ font-size:10.5px }
  html.sx-page.sce-on .sbr-layer .sbr-pj{ height:17px }
  html.sx-page.sce-on .sbr-layer .sbr-pi{ height:23px; margin:-2px 0 -2px -1px }
}
@media (max-width:767px){
  html.sx-page.sce-on .site-header .sbr-lock, html.sx-page.sce-on .site-header .sbr-lock.sbr-off, html.sx-page.sce-on .site-header .sbr-lock:not([style]){ top:9px; height:34px }
  html.sx-page.sce-on.sce-phone .scl-h1{ font-size:30px }
  html.sx-page.sce-on.sce-phone .scl-lead{ font-size:15px }
  html.sx-page.sce-on.sce-phone .sbr-row{ margin-top:24px }
  html.sx-page.sce-on.sce-phone .sce-stage{ padding-bottom:16px }
  html.sx-page.sce-on.sce-phone .scu-docked .scu-title{ text-wrap:balance }
}
@media (max-width:429px){ html.sx-page.sce-on.sce-phone .scl-h1{ font-size:28px } }
@media (max-width:360px){ html.sx-page.sce-on.sce-phone .scl-h1{ font-size:26px } html.sx-page.sce-on.sce-phone .scu-docked .scu-title{ font-size:16px } }
@media (max-width:400px){
  html.sx-page.sce-on .site-header .sbr-sep{ display:none }
  html.sx-page.sce-on .site-header .sbr-lock, html.sx-page.sce-on .site-header .sbr-lock.sbr-off, html.sx-page.sce-on .site-header .sbr-lock:not([style]){ gap:8px; right:56px; padding:0 }
  html.sx-page .logo-tab{ padding:0 11px }
  html.sx-page .logo-tab img{ width:96px }
}
/* unfolded phones: headline wider, caption + controls laid over the picture's lower fade, chips on one row */
@media (min-width:600px) and (max-width:767px){
  html.sx-page.sce-on.sce-phone .sce-stage{ grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) }
  html.sx-page.sce-on.sce-phone .scl-eyebrow{ margin-top:calc(var(--header-h) + 16px) }
  html.sx-page.sce-on.sce-phone .scl-h1{ margin-bottom:14px }
  html.sx-page.sce-on.sce-phone .sce-dock{ grid-area:host; align-self:end; position:relative; z-index:5 }
  html.sx-page.sce-on.sce-phone .scu-bar.scu-docked{ background:transparent; padding:0 20px 14px }
  html.sx-page.sce-on.sce-phone .sce-host::after{ height:42%; background:linear-gradient(rgba(6,26,58,0),rgba(6,26,58,.55) 45%,rgba(6,26,58,.9)) }
  html.sx-page.sce-on.sce-phone .scu-docked .scu-chips, html.sx-page.sce-on.sce-phone .scu-phone .scu-chips{ flex:0 0 auto }
  html.sx-page.sce-on.sce-phone .scu-docked .scu-track, html.sx-page.sce-on.sce-phone .scu-phone .scu-track{ flex:1 1 110px }
  html.sx-page.sce-on.sce-phone .scu-ctl{ flex-wrap:nowrap }
}
/* laptops: the lowering block's bottom edge fades into the navy from the first frames of the lowering (was opacity = l, too weak early) */
@media (max-width:1899px){ html.sx-page.sce-on.sce-wide .sce-host::after{ height:140px; opacity:calc(var(--sce-l,0) * 6) } }
@media (min-width:600px) and (max-width:767px){
  html.sx-page.sce-on.sce-phone .scl-eyebrow{ margin-top:calc(var(--header-h) + 10px) }
  html.sx-page.sce-on.sce-phone .scl-h1{ margin-top:8px; margin-bottom:8px }
  html.sx-page.sce-on.sce-phone .sce-host .sc-ui > .scu-bar{ padding-bottom:8px }
}
@media (min-width:600px) and (max-width:767px){
  html.sx-page.sce-on.sce-phone .scl-ctas{ margin-top:6px; gap:8px }
  html.sx-page.sce-on.sce-phone .scl-btn{ height:42px }
}
/* round 3: narrow laptops (1021-1240): the GAMYBA tag stays hidden while the hero text is on screen, independent of when the
   tag mask last ran (visibility, because the tag fade-in animation owns the opacity) */
@media (min-width:1021px) and (max-width:1240px){ html.sx-page.sce-on.sce-wide .sce-hero:not(.sce-gone) .scu-tags > .scu-hs:first-child{ visibility:hidden } }
