/* footer-ref-top — [n] markers top-aligned with footnote body */
body.friso-signature .friso-section-container.footer .super li {
  display: grid !important;
  grid-template-columns: 2.35em minmax(0, 1fr) !important;
  align-items: start !important;
  column-gap: 0 !important;
  flex-direction: unset !important;
  flex-wrap: unset !important;
  justify-content: unset !important;
  gap: 0 !important;
}
body.friso-signature .friso-section-container.footer .super li:before,
body.friso-signature .friso-section-container.footer .super li::before {
  display: block !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: start !important;
  justify-self: start !important;
  position: static !important;
  left: auto !important;
  top: 0 !important;
  transform: none !important;
  translate: none !important;
  vertical-align: top !important;
  padding: 0 0.35em 0 0 !important;
  margin: 0 !important;
  line-height: 1.35 !important;
  height: auto !important;
  flex: none !important;
  width: 2.35em !important;
  min-width: 2.35em !important;
  max-width: 2.35em !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
  font-size: inherit !important;
}
body.friso-signature .friso-section-container.footer .super li .footer-ref-body {
  display: block !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: start !important;
  flex: none !important;
  min-width: 0 !important;
  width: auto !important;
  line-height: 1.35 !important;
}
body.friso-signature .friso-section-container.footer .super li.is-multiline,
body.friso-signature .friso-section-container.footer .super li.is-multiline:before,
body.friso-signature .friso-section-container.footer .super li.is-multiline::before,
body.friso-signature .friso-section-container.footer .super li.is-multiline .footer-ref-body {
  display: block !important;
  vertical-align: top !important;
  table-layout: unset !important;
  align-self: start !important;
}
body.friso-signature .friso-section-container.footer .super li.is-multiline {
  display: grid !important;
  align-items: start !important;
}

/* superscript-top-align — CF sizes; top: flush mark top with parent text top
   brand 1em → top:0; ref 0.5em → top:-1em (= (1-0.5)/0.5 in own-em) */
body.friso-signature .sup-brand,
body.friso-signature:not(.education) .sup-brand,
body.friso-signature.education .sup-brand,
body.friso-signature .friso-section-container.footer .super li .footer-ref-body .sup-brand,
body.friso-signature .navbar .friso-rect-button .sup-brand {
  font-size: 1em !important;
  top: 0 !important;
  line-height: 1 !important;
  overflow: visible !important;
  position: relative !important;
  display: inline !important;
  vertical-align: baseline !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-variant-position: normal !important;
  font-feature-settings: "sups" 0, "subs" 0 !important;
  font-family: "Noto Sans HK", "Noto Sans SC", "Arial", sans-serif !important;
}
body.friso-signature:not(.education) sup:not(.sup-brand),
body.friso-signature.education sup:not(.sup-brand),
body.friso-signature .friso-section-container.footer .super li .footer-ref-body sup:not(.sup-brand),
body.friso-signature .navbar .friso-rect-button sup:not(.sup-brand) {
  font-size: 0.5em !important;
  top: -1em !important;
  line-height: 1 !important;
  position: relative !important;
  display: inline !important;
  vertical-align: baseline !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-variant-position: normal !important;
  font-feature-settings: "sups" 0, "subs" 0 !important;
}

/* Windows: ® sits low vs CJK (YaHei/JhengHei metrics), esp. tin-carousel CTA.
   0.7em + top:-0.43em (= -(1-0.7)/0.7) — larger than footnote 0.5em, still
   top-flush. Mac keeps .sup-brand 1em / top:0. */
html.is-windows body.friso-signature .sup-brand,
html.is-windows body.friso-signature:not(.education) .sup-brand,
html.is-windows body.friso-signature.education .sup-brand,
html.is-windows body.friso-signature .friso-rect-button .sup-brand,
html.is-windows body.friso-signature .product-btn-container .sup-brand,
html.is-windows body.friso-signature .product-btn-container .friso-rect-button .sup-brand,
html.is-windows body.friso-signature #product .product-btn-container .friso-rect-button .sup-brand,
html.is-windows body.friso-signature .navbar .friso-rect-button .sup-brand {
  font-size: 0.7em !important;
  top: -0.43em !important;
  line-height: 1 !important;
  position: relative !important;
  display: inline !important;
  vertical-align: baseline !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-variant-position: normal !important;
  font-feature-settings: "sups" 0, "subs" 0 !important;
}

/* cf-no-additive-icons — last win; match d14j587mdy11hp.cloudfront.net */
@media screen and (max-width: 768px) {
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container {
    max-width: 220px !important;
    width: 220px !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: flex-start !important;
    gap: 0 !important;
    margin-top: 2em !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container > div {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    text-align: center !important;
  }
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container > div > div:first-child {
    width: auto !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container img.no-additive-icon,
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container img[src*="vanilla"],
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container img[src*="sugar"],
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container > div > div:first-child img,
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container img {
    width: 66% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: inline-block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    object-fit: contain !important;
  }
}
/* desktop: 「全系列不添加」+ icons/labels page H-center (mobile-like),
   not L/R flush to title edges. */
@media screen and (min-width: 769px) {
  body.friso-signature:not(.education) {
    --no-added-title-w: calc(672px * 256 / 652);
    /* asset 782×97 → rendered H from locked W */
    --no-added-title-h: calc(var(--no-added-title-w) * 97 / 782);
    --no-added-icon-w: 99.18px; /* 104.4 × 0.95 */
  }
  /* tin-girl +10% vs tin-girl-cf-align 44vh */
  body.friso-signature:not(.education) .baby,
  body.friso-signature:not(.education) .baby-container {
    --baby-sticky-height: 48.4vh !important; /* 44vh × 1.1 */
  }
  body.friso-signature:not(.education) .baby-container-btm .baby-container {
    height: calc(var(--baby-sticky-height) * 1.18) !important;
  }
  body.friso-signature:not(.education) .baby-container-btm .baby-container img,
  body.friso-signature:not(.education) .baby-container-btm .baby-container picture img {
    height: calc(var(--baby-sticky-height) * 1.18) !important;
    width: auto !important;
    max-width: none !important;
  }
  body.friso-signature:not(.education) .baby-slide-2 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    max-width: min(92vw, var(--no-added-title-w)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    /* move headline + icons + labels up by 1 headline height */
    margin-top: calc(-1 * var(--no-added-title-h)) !important;
  }
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt > picture,
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt > img,
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt img[src*="013-no-added-sugar"],
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt picture img[src*="013-no-added-sugar"] {
    display: block !important;
    width: var(--no-added-title-w) !important;
    max-width: min(92vw, var(--no-added-title-w)) !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container {
    width: auto !important;
    max-width: 100% !important;
    margin-top: 2em !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 2.2rem !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: flex-start !important;
  }
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container > div,
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container > div:first-child,
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container > div:last-child {
    flex: 0 0 auto !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    flex-basis: auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: var(--no-added-icon-w) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container > div > div:first-child {
    width: var(--no-added-icon-w) !important;
    max-width: var(--no-added-icon-w) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    justify-content: center !important;
  }
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container img,
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container > div > div:first-child img,
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container img.no-additive-icon {
    width: var(--no-added-icon-w) !important;
    max-width: var(--no-added-icon-w) !important;
    min-width: var(--no-added-icon-w) !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    object-fit: contain !important;
  }
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container .txt-semibold {
    text-align: center !important;
    white-space: nowrap !important;
    width: max-content !important;
    max-width: none !important;
    margin-top: 0.55em !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* natural-container [12]: same treatment as compare Y-結構[6]; Windows 0.57em. */
body.friso-signature:not(.education) .natural-container .txt-semibold > sup,
body.friso-signature:not(.education) .natural-container .txt-semibold sup {
  font-size: 0.5em !important;
  font-weight: 400 !important;
  font-family: "Baufra", "Noto Sans HK", "Noto Sans SC", "Arial", sans-serif !important;
  top: -1em !important;
  line-height: 1 !important;
  position: relative !important;
  display: inline !important;
  vertical-align: baseline !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-variant-position: normal !important;
  font-feature-settings: "sups" 0, "subs" 0 !important;
letter-spacing: 2px !important;
  }
html.is-windows body.friso-signature:not(.education) .natural-container .txt-semibold > sup,
html.is-windows body.friso-signature:not(.education) .natural-container .txt-semibold sup {
  font-size: 0.57em !important;
  top: -0.7544em !important;
}
/* footer [n] markers: same letter-spacing as compare Y-結構[6] */
body.friso-signature .friso-section-container.footer .super li:before,
body.friso-signature .friso-section-container.footer .super li::before {
  letter-spacing: 2px !important;
}








/* trackeasy-mobile-unwrap — nowrap was overflowing 86vw and skewing L/R gutters.
   Desktop keeps exact <br>+nowrap line breaks. */
@media screen and (max-width: 768px) {
  body.friso-signature:not(.education) #product .track-easy-container-inner-left.mobile-only .track-easy-text .txt-normal.trackeasy-p1 .nowrap,
  body.friso-signature:not(.education) #product .track-easy-container-inner-left.mobile-only .track-easy-text .txt-normal.trackeasy-p2 .nowrap,
  body.friso-signature:not(.education) #product .track-easy-container-inner-left.mobile-only .track-easy-text .txt-normal .nowrap,
  body.friso-signature:not(.education) #product .track-easy-container-inner-left.mobile-only .nowrap {
    white-space: normal !important;
  }
}



/* farm-title-screen-full-m — mobile step0 title area locked to 393×852 ref; headline up */
@media screen and (max-width: 768px) {
  body.friso-signature:not(.education) .farm-animation-pin {
    --farm-ref-w: 393px;
    --farm-ref-h: 852px;
    /* same 4/5 × top-third as before, but fixed to 852 so all phones match */
    --farm-title-band: calc(var(--farm-ref-h) / 3 * 4 / 5); /* 227.2px */
    --farm-pin-title-side: calc(var(--farm-ref-w) * 0.02); /* 2% of 393 ≈ 7.86px */
    --farm-pin-title-w: calc(100% - 2 * var(--farm-pin-title-side));
    --farm-pin-title-h: calc(50 / 368.3 * (var(--farm-ref-w) - 2 * var(--farm-pin-title-side)));
  }
  body.friso-signature:not(.education) .farm-animation-pin .farm-pin-title,
  body.friso-signature:not(.education) .farm-pin-title,
  body.friso-signature:not(.education) .patented-technology-title.farm-pin-title {
    flex: 0 0 var(--farm-title-band) !important;
    height: var(--farm-title-band) !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: var(--farm-pin-title-side) !important;
    padding-right: var(--farm-pin-title-side) !important;
    /* more bottom pad + less top → headline sits higher (flex-end) */
    padding-bottom: calc(var(--farm-pin-title-h) * 0.75) !important;
    padding-top: 40px !important; /* was 52px */
    box-sizing: border-box !important;
    align-items: flex-end !important;
    justify-content: center !important;
  }
  body.friso-signature:not(.education) .farm-animation-pin .farm-pin-title h2,
  body.friso-signature:not(.education) .farm-pin-title h2,
  body.friso-signature:not(.education) .farm-pin-title picture {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: block !important;
  }
  body.friso-signature:not(.education) .farm-animation-pin .farm-pin-title .patented-technology-title__img,
  body.friso-signature:not(.education) .farm-pin-title .patented-technology-title__img,
  body.friso-signature:not(.education) .farm-pin-title picture .patented-technology-title__img,
  body.friso-signature:not(.education) img.patented-technology-title__img,
  body.friso-signature:not(.education) img[src*="009-patented-technology-title"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    aspect-ratio: 368.3 / 50 !important;
    display: block !important;
    margin: 0 !important;
    object-fit: contain !important;
    transform: none !important;
  }
}






/* signature-content-before-stronger — only ::before bg (user gradient) */
@media screen and (min-width: 769px) {
  body.friso-signature:not(.education) .signature-content::before {
    background: linear-gradient(
      to bottom,
      rgba(12, 5, 1, 0.0) 0%,
      rgba(12, 5, 1, 0.85) 22%,
      rgba(12, 5, 1, 0.8) 48%,
      rgba(12, 5, 1, 0.8) 80%,
      rgba(11, 5, 1, 0.12) 88%,
      transparent 100%
    ) !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
}



/* fala-img-revealed-after — wrapper::after user gradient (desktop) */
@media screen and (min-width: 769px) {
  body.friso-signature:not(.education) .fala-signature-container-img-wrapper::after {
    content: "" !important;
    display: block !important;
    background: linear-gradient(to bottom, rgba(31, 12, 6, 0) 0%, rgba(31, 12, 6, 0.12) 28%, rgba(31, 12, 6, 0.4) 52%, rgba(31, 12, 6, 0.72) 74%, rgba(31, 12, 6, 0.72) 90%, rgba(31, 12, 6, 0) 100%) !important;
  }
}

/* baby-slide-txt-hcenter-1024 — ipad-pro-13 / 1024×1080: content-box + 4vw
   pad on absolute width:100% slides shifts flex mid ~+4vw. Keep pad, box-sizing
   border-box so title + icons sit on viewport H-center. */
@media screen and (min-width: 769px) and (max-width: 1180px) {
  body.friso-signature:not(.education) .baby-slide-1,
  body.friso-signature:not(.education) .baby-slide-2 {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt {
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center !important;
  }
}

/* ==========================================================================
   tablet-lt1024-1080 — width < 1024 @ ~1080 tall
   1) DYK chart + headline: H-center (match 1024; was top-right)
   2) KV soft-ground: start under feet (not mid-shin dark bar)
   3) BL ball: shrink 40.5vw → 28vw
   ========================================================================== */
@media screen and (min-width: 769px) and (max-width: 1023px) {
  /* DYK — H-center stack; wider chart for clear labels (680 remains exact-1024) */
  body.friso-signature:not(.education) #did-you-know {
    justify-content: center !important;
  }
  body.friso-signature:not(.education) #did-you-know .did-you-know-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
  body.friso-signature:not(.education) #did-you-know .did-you-know-container .did-you-know-video,
  body.friso-signature:not(.education) #did-you-know .did-you-know-video {
    width: min(88vw, 640px) !important;
    max-width: min(88vw, 640px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    align-self: center !important;
  }
  body.friso-signature:not(.education) #did-you-know .did-you-know-content {
    width: min(88%, 560px) !important;
    max-width: min(88%, 560px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    align-self: center !important;
  }
  body.friso-signature:not(.education) #did-you-know .did-you-know-content .dyk-title-seq,
  body.friso-signature:not(.education) #did-you-know .did-you-know-content .dyk-title-seq h2,
  body.friso-signature:not(.education) #did-you-know .did-you-know-content .dyk-title-seq picture,
  body.friso-signature:not(.education) #did-you-know .did-you-know-content .did-you-know-title__img,
  body.friso-signature:not(.education) #did-you-know .did-you-know-title__img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    transform: none !important;
    transform-origin: center center !important;
  }
  body.friso-signature:not(.education) #did-you-know .did-you-know-video .hd-video-container,
  body.friso-signature:not(.education) #did-you-know .did-you-know-video canvas {
    /* Do not height-cap — squash blurred chart axis/labels */
    max-height: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
  }

  /* BL ball — was 40.5vw (~365@900); too large on tall tablets */
  body.friso-signature:not(.education) .key-visual {
    --kv-ball-container-width: 28vw !important;
    --kv-ball-container-min-width: 28vw !important;
  }
  body.friso-signature:not(.education) .key-visual-ball-container-wrapper {
    width: 28vw !important;
    height: 28vw !important;
    min-width: 28vw !important;
    min-height: 28vw !important;
    left: -6vw !important;
    right: auto !important;
    bottom: auto !important;
    top: calc(100vh - 32vw) !important;
    top: calc(100lvh - 32vw) !important;
    transform: none !important;
  }
}

/* kv-tablet-soft-ground — <1024: wash under fala/tin/girl feet.
   Trimmed mobile plates ≤900; desktop plates 901–1023 (re-enable wash —
   kv-band-shadow-desktop turns sequence::after off from 901). */
@media screen and (min-width: 769px) and (max-width: 900px) {
  body.friso-signature:not(.education) .key-visual {
    /* Match kv-plate-alpha-trim mobile seats (not legacy 100vw×2100/1170). */
    --kv-m-fala-feet: calc(45.3286vh + 55.8974vw * 722 / 654);
    --kv-m-girl-feet: calc(48.8886vh + 31.0154vw * 655 / 336);
    /* Soft start just above the higher foot so ankles ground, not mid-shin. */
    --kv-m-shadow-top: calc(
      min(var(--kv-m-fala-feet), var(--kv-m-girl-feet), 100vh, 100lvh) - 3vh
    );
  }
  body.friso-signature:not(.education) .key-visual-sequence {
    isolation: isolate;
  }
  body.friso-signature:not(.education) .key-visual-sequence::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    top: var(--kv-m-shadow-top) !important;
    bottom: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    background: linear-gradient(
      180deg,
      rgba(33, 15, 3, 0) 0%,
      rgba(33, 15, 3, 0.28) 28%,
      rgba(33, 15, 3, 0.65) 55%,
      #210f03 78%,
      #210f03 100%
    ) !important;
    opacity: 1 !important;
    z-index: 7 !important;
    pointer-events: none !important;
  }
}
@media screen and (min-width: 769px) and (max-width: 900px) and (min-height: 900px) {
  /* BR orb beside girl — 80vw×1.1 overwhelms tall tablet */
  body.friso-signature:not(.education) .key-visual-ball-container .key-visual-sequence-video.kv-seq-fadein-4 .kv-ball-video.mobile-only,
  html.is-safari body.friso-signature:not(.education) .key-visual-ball-container .key-visual-sequence-video.kv-seq-fadein-4 .kv-ball-canvas.mobile-only {
    width: 52vw !important;
    transform: scale(1) !important;
    bottom: -10px !important;
    right: calc(-1 * 52vw * 0.35 / 6 + 1.5vw) !important;
  }
}

/* kv-lt810-shadow-br — width < 810 tablet: soft-ground under feet (not mid-shin);
   BR orange ball was still ~52vw/416px @800 — larger than phone ~343px. */
@media screen and (min-width: 769px) and (max-width: 809px) {
  body.friso-signature:not(.education) .key-visual {
    --kv-m-fala-feet: calc(45.3286vh + 55.8974vw * 722 / 654);
    --kv-m-girl-feet: calc(48.8886vh + 31.0154vw * 655 / 336);
    /* Closer under feet than general tablet (−3vh) — less shin dark bar @narrow. */
    --kv-m-shadow-top: calc(
      min(var(--kv-m-fala-feet), var(--kv-m-girl-feet), 100vh, 100lvh) - 1.25vh
    );
  }
  body.friso-signature:not(.education) .key-visual-sequence {
    isolation: isolate;
  }
  body.friso-signature:not(.education) .key-visual-sequence::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    top: var(--kv-m-shadow-top) !important;
    bottom: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    background: linear-gradient(
      180deg,
      rgba(33, 15, 3, 0) 0%,
      rgba(33, 15, 3, 0.22) 22%,
      rgba(33, 15, 3, 0.55) 48%,
      #210f03 72%,
      #210f03 100%
    ) !important;
    opacity: 1 !important;
    z-index: 7 !important;
    pointer-events: none !important;
  }
  /* BR orb ~phone visual (~40vw, no 1.1 scale) */
  body.friso-signature:not(.education) .key-visual-ball-container .key-visual-sequence-video.kv-seq-fadein-4 .kv-ball-video.mobile-only,
  html.is-safari body.friso-signature:not(.education) .key-visual-ball-container .key-visual-sequence-video.kv-seq-fadein-4 .kv-ball-canvas.mobile-only {
    width: 40vw !important;
    max-width: 40vw !important;
    transform: scale(1) !important;
    transform-origin: right bottom !important;
    bottom: -8px !important;
    right: calc(-1 * 40vw * 0.35 / 6 + 1.25vw) !important;
  }
}
/* 901–1023: desktop plates; fala feet ≈99vh (girl often below fold). */
@media screen and (min-width: 901px) and (max-width: 1023px) {
  body.friso-signature:not(.education) .key-visual-sequence {
    isolation: isolate;
  }
  body.friso-signature:not(.education) .key-visual-sequence::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    /* Soft into lower legs; solid under feet → section edge */
    top: 92vh !important;
    top: 92lvh !important;
    bottom: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    background: linear-gradient(
      180deg,
      rgba(33, 15, 3, 0) 0%,
      rgba(33, 15, 3, 0.28) 28%,
      rgba(33, 15, 3, 0.65) 55%,
      #210f03 78%,
      #210f03 100%
    ) !important;
    opacity: 1 !important;
    z-index: 7 !important;
    pointer-events: none !important;
  }
}

/* kv-tablet-hide-br-ball — tablet <1024: remove 1st-section bottom-right orange ball
   (mobile BR plate ≤900; desktop hero-br overlay 901–1023). Phone ≤768 unchanged. */
@media screen and (min-width: 769px) and (max-width: 1023px) {
  body.friso-signature:not(.education) .key-visual-ball-container > .key-visual-sequence-video.kv-seq-fadein-4,
  body.friso-signature:not(.education) .key-visual-ball-container .key-visual-sequence-video.kv-seq-fadein-4 .kv-ball-video.mobile-only,
  body.friso-signature:not(.education) .key-visual-ball-container .key-visual-sequence-video.kv-seq-fadein-4 .kv-ball-canvas.mobile-only,
  html.is-safari body.friso-signature:not(.education) .key-visual-ball-container .key-visual-sequence-video.kv-seq-fadein-4 .kv-ball-canvas.mobile-only,
  body.friso-signature:not(.education) .key-visual-sequence-video.kv-seq-fadein-4 .kv-ball-video.mobile-only,
  body.friso-signature:not(.education) .key-visual-sequence-video.kv-seq-fadein-4 .key-visual-sequence-video-canvas.desktop-only.kv-hero-ball-br,
  body.friso-signature:not(.education) .key-visual-sequence-video.kv-seq-fadein-4 .kv-ball-video.kv-hero-ball-br,
  body.friso-signature:not(.education) .key-visual-sequence-video.kv-seq-fadein-4 .kv-ball-canvas.kv-hero-ball-br {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* dyk-1024-hcenter — exact 1024×1080: stack + H-center chart & headline
   (desktop row @≥1024 was flex-start / left). Keep 680 enlarge. */
@media screen and (min-width: 1024px) and (max-width: 1024px) {
  body.friso-signature:not(.education) #did-you-know {
    justify-content: center !important;
  }
  body.friso-signature:not(.education) #did-you-know .did-you-know-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body.friso-signature:not(.education) #did-you-know .did-you-know-content {
    flex: none !important;
    width: min(88vw, 680px) !important;
    max-width: min(88vw, 680px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    text-align: center !important;
    align-self: center !important;
  }
  body.friso-signature:not(.education) #did-you-know .did-you-know-content .dyk-title-seq,
  body.friso-signature:not(.education) #did-you-know .did-you-know-content .dyk-title-seq h2,
  body.friso-signature:not(.education) #did-you-know .did-you-know-content .dyk-title-seq picture,
  body.friso-signature:not(.education) #did-you-know .did-you-know-content .did-you-know-title__img,
  body.friso-signature:not(.education) #did-you-know .did-you-know-title__img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    transform: none !important;
    transform-origin: center center !important;
  }
  body.friso-signature:not(.education) #did-you-know .did-you-know-container .did-you-know-video,
  body.friso-signature:not(.education) #did-you-know .did-you-know-video {
    --chart-image-width: 100% !important;
    flex: none !important;
    width: min(88vw, 680px) !important;
    max-width: min(88vw, 680px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center !important;
    overflow: visible !important;
  }
  body.friso-signature:not(.education) #did-you-know .did-you-know-video .hd-video-container,
  body.friso-signature:not(.education) #did-you-know .did-you-know-video canvas {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
    display: block !important;
  }
}

/* sig-exp-lt1024-icon-spread — match 1024×1080 icon separation (~324px gap).
   Cap so 2 columns still fit; last-win over prior 2.75rem tablet crush. */
@media screen and (min-width: 769px) and (max-width: 1023px) {
  body.friso-signature:not(.education) {
    --sig-exp-col-w: 240px;
    --sig-exp-icon-w: 116.64px;
    --sig-exp-icon-gap-ratio: 0.9;
    --sig-exp-icon-gap: min(
      calc(
        var(--sig-exp-title-w, calc(672px * 512 / 652)) * var(--sig-exp-icon-gap-ratio)
        - (var(--sig-exp-col-w) - var(--sig-exp-icon-w))
      ),
      calc(100vw - 2 * var(--sig-exp-col-w) - 48px)
    );
  }
  body.friso-signature:not(.education) #signature-experience .contact-container {
    gap: max(3rem, var(--sig-exp-icon-gap)) !important;
    justify-content: center !important;
    width: auto !important;
    max-width: none !important;
  }
  body.friso-signature:not(.education) #signature-experience .contact-container > div {
    width: var(--sig-exp-col-w) !important;
    max-width: var(--sig-exp-col-w) !important;
  }
}

/* compare-lt810-mobile-stack — width below 810×1080 (and through <1024):
   stacked mobile Compare Y like 1024×1080. Last-win vs restore-2col. */
@media screen and (min-width: 769px) and (max-width: 1023px) {
  body.friso-signature:not(.education) .compare .friso-section-content {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.friso-signature:not(.education) .compare .friso-section-content > div {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.friso-signature:not(.education) .compare .y-shape-canvas-container,
  body.friso-signature:not(.education) .compare .steps-num,
  body.friso-signature:not(.education) .compare .compare-text {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  body.friso-signature:not(.education) .compare br.desktop-only {
    display: none !important;
  }
  body.friso-signature:not(.education) .compare br.mobile-only {
    display: inline !important;
  }
}

/* farm-step-title-lt810 — milktruck「1」/「2」gold subtitles below 810×1080:
   same 19.5px as other tablet. Size only — do not retarget padding/park. */
@media screen and (min-width: 769px) and (max-width: 809px) {
  body.friso-signature:not(.education) {
    --farm-d-step-title-h: 19.5px;
  }
  body.friso-signature:not(.education) .farm-animation-overlay .patented-technology-step-title,
  body.friso-signature:not(.education) .farm-animation-content-1 .patented-technology-step-title,
  body.friso-signature:not(.education) .farm-animation-overlay picture .patented-technology-step-title {
    height: var(--farm-d-step-title-h) !important;
    max-height: var(--farm-d-step-title-h) !important;
    min-height: 0 !important;
  }
}

/* milktruck-step-park-restore — tablet+desktop step park at 15%. Last-win. */
@media screen and (min-width: 769px) {
  body.friso-signature:not(.education) .farm-animation-overlay,
  body.friso-signature:not(.education) .farm-animation-overlay.farm-animation-content-1,
  body.friso-signature:not(.education) .farm-video-stage .farm-animation-overlay.farm-animation-content-1,
  body.friso-signature:not(.education) .farm-animation-overlay.farm-animation-content-2,
  body.friso-signature:not(.education) .farm-video-stage .farm-animation-overlay.farm-animation-content-2 {
    top: 15% !important;
  }
}

/* signature-content-800-1080 — @800×1080: margin-top -3vh (beats tablet -8vh). */
@media screen and (min-width: 769px) and (max-width: 809px) and (min-height: 1000px) {
  body.friso-signature:not(.education) .signature-content {
    margin-top: -3vh !important;
  }
}

/* nav-tablet-sizes — 769–991 (hamburger layout): phone kept 160/34/90@crush;
   scale logo + hamburger up and restore readable Signature Experience CTA
   (overrides nav-cta-tablet-narrow 10px / 7.75rem). */
@media screen and (min-width: 769px) and (max-width: 991.98px) {
  body.friso-signature:not(.education) .navbar__logo img {
    width: 175px !important;
    max-width: 175px !important;
    height: auto !important;
  }
  body.friso-signature:not(.education) .navbar__btn-toggler img,
  body.friso-signature:not(.education) .navbar__btn-toggler .navbar-menu-humburger-signature,
  body.friso-signature:not(.education) .navbar-menu-humburger-signature {
    width: 42px !important;
    max-width: 42px !important;
    height: auto !important;
  }
  /* V-center hamburger with Signature Experience CTA (was flex-start / top-aligned). */
  body.friso-signature:not(.education) .navbar__header {
    align-items: center !important;
  }
  body.friso-signature:not(.education) .navbar__header .navbar__btn-toggler {
    align-self: center !important;
    display: flex !important;
    align-items: center !important;
    margin-top: calc(8px + env(safe-area-inset-top, 0px)) !important;
  }
  body.friso-signature:not(.education) .navbar__header .navbar__btn-cta-wrapper,
  body.friso-signature:not(.education) .navbar__header .navbar__btn-cta-wrapper.mobile,
  body.friso-signature:not(.education) .navbar__header .navbar__btn-cta-wrapper.desktop {
    max-width: none !important;
    flex-shrink: 0 !important;
    margin-left: 0.35rem !important;
    align-self: center !important;
    margin-top: calc(8px + env(safe-area-inset-top, 0px)) !important;
  }
  body.friso-signature:not(.education) .navbar__header .friso-rect-button,
  body.friso-signature:not(.education) .navbar__header .navbar__btn-cta-wrapper .friso-rect-button,
  body.friso-signature:not(.education) .navbar .friso-rect-button {
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    padding: 0.5rem 0.65rem !important;
    box-sizing: border-box !important;
    white-space: normal !important;
  }
  body.friso-signature:not(.education) .navbar__header .friso-rect-button .nav-cta-line {
    display: block !important;
    text-align: center !important;
    line-height: 1.15 !important;
  }
  body.friso-signature:not(.education) .navbar__header .friso-rect-button br {
    display: none !important;
  }
}

/* 992–1023: desktop nav row still on tablet widths — bump logo + CTA
   (nav-cta-no-crop-1152 used 154px / 11px). */
@media screen and (min-width: 992px) and (max-width: 1023px) {
  body.friso-signature:not(.education) .navbar__logo img {
    width: 170px !important;
    max-width: 170px !important;
    height: auto !important;
  }
  body.friso-signature:not(.education) .navbar .friso-rect-button,
  body.friso-signature:not(.education) .navbar__btn-cta-wrapper .friso-rect-button {
    width: auto !important;
    min-width: 9.5rem !important;
    max-width: 11.5rem !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    padding: 0.5rem 0.75rem !important;
  }
}

/* ==========================================================================
   simplify-mobile-kv-no-balls — mobile (≤768): drop 1st-section orange balls
   (BL wrapper, BR fadein-4, TR mobile ball, legacy heroballs). Desktop unchanged.
   ========================================================================== */
@media screen and (max-width: 768px) {
  body.friso-signature:not(.education) .key-visual-ball-container,
  body.friso-signature:not(.education) .key-visual-ball-container-wrapper,
  body.friso-signature:not(.education) .key-visual-ball-container-wrapper-inner,
  body.friso-signature:not(.education) .key-visual-ball-container > .key-visual-sequence-video.kv-seq-fadein-4,
  body.friso-signature:not(.education) .key-visual-sequence-video.kv-seq-fadein-4,
  body.friso-signature:not(.education) .key-visual-sequence-video.kv-seq-fadein-4 .kv-ball-video,
  body.friso-signature:not(.education) .key-visual-sequence-video.kv-seq-fadein-4 .kv-ball-canvas,
  body.friso-signature:not(.education) .key-visual-mobile-ball,
  body.friso-signature:not(.education) .heroball-container,
  body.friso-signature:not(.education) .heroball-container .heroball {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}


/* compare-y-mobile-still — phone: static frame, no canvas loop */
@media screen and (max-width: 768px) {
  body.friso-signature:not(.education) .compare .y-shape-canvas-container #canvas-y-shape,
  body.friso-signature:not(.education) .compare .y-shape-canvas-container video.y-shape-video {
    display: none !important;
  }
  body.friso-signature:not(.education) .compare .y-shape-canvas-container img.y-shape-still {
    display: block !important;
    width: 118.8% !important;
    margin-left: -9.4% !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 1920 / 1080;
    object-fit: contain;
    position: relative !important;
    left: 0 !important;
    box-sizing: border-box !important;
  }
}
@media screen and (min-width: 769px) {
  body.friso-signature:not(.education) .compare .y-shape-canvas-container img.y-shape-still {
    display: none !important;
  }
}


/* simplify mobile: IgG ball-loop only — hide girl posters, no pin-hold chrome */
@media screen and (max-width: 768px) {
  body.igg-simplify-ball-only .girl-zoom-poster,
  body.friso-signature.igg-simplify-ball-only .girl-zoom-poster {
    display: none !important;
  }
  body.igg-simplify-ball-only.igg-pin-hold,
  html.igg-simplify-ball-only.igg-pin-hold {
    overscroll-behavior-y: auto;
  }
}


/* simplify docflow ≤768: DYK / ball / CG normal scroll stack */
@media screen and (max-width: 768px) {
  html.friso-simplify-docflow #did-you-know,
  body.friso-simplify-docflow #did-you-know,
  body.friso-signature.friso-simplify-docflow #did-you-know {
    min-height: 0 !important;
    height: auto !important;
    display: block !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
  }

  /* Never collapse CG after IgG — keep it a real following section */
  body.friso-signature.friso-simplify-docflow.igg-cg-consumed .friso-section-container.cg,
  body.friso-signature.igg-simplify-ball-only.igg-cg-consumed .friso-section-container.cg,
  body.friso-signature.friso-simplify-docflow .friso-section-container.cg {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: revert !important;
    padding: revert !important;
    overflow: visible !important;
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
  }

  /* Neutralize split/free-leave fixed chrome on simplify */
  body.friso-simplify-docflow .girl-zoom-canvas-container.igg-cg-split-layer,
  body.friso-simplify-docflow .igg-title-seq.igg-cg-split-layer {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
  }
}


/* simplify: transparent Part3 ball — no dark plate gradients (would float over Y-bg) */
@media screen and (max-width: 768px) {
  body.friso-simplify-docflow .igg .girl-zoom-canvas-container::before,
  body.friso-simplify-docflow .igg .girl-zoom-canvas-container::after,
  body.igg-simplify-ball-only .igg .girl-zoom-canvas-container::before,
  body.igg-simplify-ball-only .igg .girl-zoom-canvas-container::after {
    display: none !important;
    background: none !important;
  }
  body.friso-simplify-docflow #IgG,
  body.igg-simplify-ball-only #IgG,
  body.friso-simplify-docflow .friso-section-container.igg#IgG,
  body.igg-simplify-ball-only .friso-section-container.igg#IgG {
    background: transparent !important;
    background-color: transparent !important;
  }
}


/* simplify: IgG as ONE viewport composition (match pinned /dev).
   Markup has two .igg-girl-video siblings — earlier relative+100svh on both
   stacked an empty first viewport above the canvas, so the headline sat alone
   and the looping ball fell a full screen below (and looked tiny). */
@media screen and (max-width: 768px) {
  body.friso-simplify-docflow .friso-section-container.igg#IgG,
  body.igg-simplify-ball-only .friso-section-container.igg#IgG {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  body.friso-simplify-docflow #IgG .igg-girl-container,
  body.igg-simplify-ball-only #IgG .igg-girl-container {
    position: relative !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100svh !important;
    overflow: visible !important;
  }

  /* Headline overlays the ball stage — same pin seat as revamp/dev. */
  body.friso-simplify-docflow #IgG .igg-girl-content,
  body.igg-simplify-ball-only #IgG .igg-girl-content {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 12 !important;
    padding: 0 !important;
    pointer-events: none !important;
  }
  body.friso-simplify-docflow #IgG .igg-title-seq,
  body.igg-simplify-ball-only #IgG .igg-title-seq {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    /* Pin uses calc(32vh - 22%); without pin park, sit at 32vh. */
    top: 32vh !important;
    top: 32dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 13 !important;
  }
  body.friso-simplify-docflow #IgG .igg-girl-content h2,
  body.igg-simplify-ball-only #IgG .igg-girl-content h2 {
    padding-top: 0 !important;
    margin: 0 !important;
  }

  /* Markup: .igg-girl-content + empty .igg-girl-video + canvas .igg-girl-video.
     Collapse the empty sibling; pin the real one to the single 100svh stage. */
  body.friso-simplify-docflow #IgG .igg-girl-container > .igg-girl-content + .igg-girl-video,
  body.igg-simplify-ball-only #IgG .igg-girl-container > .igg-girl-content + .igg-girl-video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }
  body.friso-simplify-docflow #IgG .within-the-margin-wrapepr,
  body.igg-simplify-ball-only #IgG .within-the-margin-wrapepr {
    display: none !important;
  }

  /* Real ball video + stage fill the single container. */
  body.friso-simplify-docflow #IgG .igg-girl-container > .igg-girl-content + .igg-girl-video + .igg-girl-video,
  body.igg-simplify-ball-only #IgG .igg-girl-container > .igg-girl-content + .igg-girl-video + .igg-girl-video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
  }
  body.friso-simplify-docflow .igg .girl-zoom-canvas-container,
  body.igg-simplify-ball-only .igg .girl-zoom-canvas-container {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    aspect-ratio: auto;
  }
  body.friso-simplify-docflow .igg .girl-zoom-canvas-container.seq-container > div,
  body.igg-simplify-ball-only .igg .girl-zoom-canvas-container.seq-container > div {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    width: 100% !important;
    padding-bottom: 0 !important;
  }
  /* Looping-ball seat — lower under the 32vh headline (was 28%). */
  body.friso-simplify-docflow #girl-zoom-canvas,
  body.igg-simplify-ball-only #girl-zoom-canvas {
    position: absolute !important;
    top: 36% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    transform-origin: 50% 42% !important;
    width: auto !important;
    height: 61.2% !important;
    max-width: none !important;
    max-height: 61.2vh !important;
    max-height: 61.2svh !important;
    display: block !important;
    -webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent 100%) !important;
    mask-image: linear-gradient(to bottom, #000 66%, transparent 100%) !important;
  }
  /* Full-screen Y seat (svh) — auto/0 fought ios 100lvh and made compare→farm slide. */
  body.friso-simplify-docflow .compare,
  body.friso-simplify-docflow .friso-section-container.compare,
  body.igg-simplify-ball-only .compare,
  body.igg-simplify-ball-only .friso-section-container.compare {
    min-height: 100svh !important;
    height: auto !important;
    max-height: none !important;
  }
  body.friso-simplify-docflow.igg-cg-leave-lift .friso-section-container.compare,
  body.friso-simplify-docflow.igg-ball-free-leave .girl-zoom-canvas-container {
    position: relative !important;
    transform: none !important;
  }
  /* Milktruck: pin + stage share one viewport unit. Prefer dvh (visible)
     so the fixed pin does not leave a bottom gap under svh-sized chrome. */
  body.friso-simplify-docflow .farm-animation-pin,
  body.friso-signature.friso-simplify-docflow .farm-animation-pin,
  body.igg-simplify-ball-only .farm-animation-pin {
    height: 100svh !important;
    height: 100dvh !important;
    max-height: none !important;
    --farm-title-band: calc(33.333dvh * 4 / 5);
  }
  body.friso-simplify-docflow .farm-video-stage,
  body.friso-signature.friso-simplify-docflow .farm-video-stage,
  body.igg-simplify-ball-only .farm-video-stage {
    flex: 0 0 100svh !important;
    flex: 0 0 100dvh !important;
    flex-basis: 100dvh !important;
    height: 100svh !important;
    height: 100dvh !important;
    min-height: 100svh !important;
    min-height: 100dvh !important;
    max-height: none !important;
  }
  /* First stop (title-hold): keep stage at 100dvh under the headline band.
     height:auto collapsed the stage (video is absolute → 0 flex height). */
  body.friso-simplify-docflow .farm-animation-pin.is-title-hold,
  body.friso-signature.friso-simplify-docflow .farm-animation-pin.is-title-hold,
  body.igg-simplify-ball-only .farm-animation-pin.is-title-hold {
    overflow: hidden !important;
  }
  body.friso-simplify-docflow .farm-animation-pin.is-title-hold .farm-scroll-track,
  body.friso-signature.friso-simplify-docflow .farm-animation-pin.is-title-hold .farm-scroll-track,
  body.igg-simplify-ball-only .farm-animation-pin.is-title-hold .farm-scroll-track {
    transform: none !important;
  }
  /* Instant expand/revert — 0.55s track tween felt like page sliding off Y. */
  body.friso-simplify-docflow .farm-scroll-track,
  body.friso-signature.friso-simplify-docflow .farm-scroll-track,
  body.igg-simplify-ball-only .farm-scroll-track {
    transition: none !important;
  }
}
