@media screen {
    .magnatus-scene {
        --scene-surface: #f4f1eb;
        --scene-ink: #20262d;
        --scene-link: #173d82;
        --scene-copy-inset: 4%;
        --scene-copy-end: 37%;
        --scene-fade-end: 55%;
        --scene-image: var(--scene-desktop-light);
        --scene-ratio: 3 / 1;
    }

    :root[data-omni-theme="dark"] .magnatus-scene {
        --scene-surface: #15212d;
        --scene-desk-edge: linear-gradient(to bottom, black calc(100% - 16px), transparent calc(100% - 4px));
        --scene-ink: #f3f6fb;
        --scene-link: #bcd5ff;
        --scene-image: var(--scene-desktop-dark);
    }

    .magnatus-hero-slide-exchange {
        --desk-texture: url("../img/magnatus/approved-scenes/exchange-wood-light.webp?v=679997aa4541");
        --scene-desktop-light: url("../img/magnatus/approved-scenes/exchange-desk-pearl-portrait-desktop.webp?v=1c532c69c5be");
        --scene-desktop-dark: url("../img/magnatus/approved-scenes/exchange-desk-graphite-portrait-desktop.webp?v=64d88277839e");
        --scene-mobile-light: url("../img/magnatus/approved-scenes/exchange-desk-pearl-portrait-mobile-paper.webp?v=969d7998a042");
        --scene-mobile-dark: url("../img/magnatus/approved-scenes/exchange-desk-graphite-portrait-mobile-paper.webp?v=473b09dcb940");
    }

    :is(.magnatus-hero-slide-contacts, .magnatus-section-hero--contacts) {
        --scene-desktop-light: url("../img/magnatus/approved-scenes/contacts-parker-light-desktop-a24af1d516e0.webp?v=a24af1d516e0");
        --scene-desktop-dark: url("../img/magnatus/approved-scenes/contacts-parker-dark-desktop-fbf160668632.webp?v=fbf160668632");
        --scene-mobile-light: url("../img/magnatus/approved-scenes/contacts-parker-light-mobile-81c10c753aa8.webp?v=81c10c753aa8");
        --scene-mobile-dark: url("../img/magnatus/approved-scenes/contacts-parker-dark-mobile-b19a6c8b18b2.webp?v=b19a6c8b18b2");
    }

    :is(.magnatus-hero-slide-reviews, .magnatus-section-hero--reviews) {
        --reviews-desk: url("../img/magnatus/approved-scenes/reviews-table-light.webp?v=220980d657cc");
        --reviews-upper: url("../img/magnatus/approved-scenes/reviews-upper-light.webp?v=c3d491d45c03");
        --reviews-still-light: url("../img/magnatus/approved-scenes/reviews-still-light-ru.webp?v=3be2bea50045");
        --reviews-still-dark: url("../img/magnatus/approved-scenes/reviews-still-dark-ru.webp?v=0552abe51079");
        --reviews-still: var(--reviews-still-light);
        --scene-desktop-light: url("../img/magnatus/approved-scenes/reviews-porcelain-ru-desktop.webp?v=4d7ff84fe12b");
        --scene-desktop-dark: url("../img/magnatus/approved-scenes/reviews-slate-ru-desktop.webp?v=e03e4f14ba8e");
        --scene-mobile-light: url("../img/magnatus/approved-scenes/reviews-porcelain-ru-mobile.webp?v=e6861b57669e");
        --scene-mobile-dark: url("../img/magnatus/approved-scenes/reviews-slate-ru-mobile.webp?v=9d3ee3e8cf85");
    }

    :root[data-omni-theme="dark"] :is(.magnatus-hero-slide-reviews, .magnatus-section-hero--reviews) {
        --reviews-desk: url("../img/magnatus/approved-scenes/reviews-table-dark.webp?v=4e6a3f5521b1");
        --reviews-upper: url("../img/magnatus/approved-scenes/reviews-upper-dark.webp?v=1cfc6b974481");
        --reviews-still: var(--reviews-still-dark);
    }

    :is(.magnatus-hero-slide-reviews, .magnatus-section-hero--reviews):lang(en) {
        --reviews-still-light: url("../img/magnatus/approved-scenes/reviews-still-light-en.webp?v=26b6621c4012");
        --reviews-still-dark: url("../img/magnatus/approved-scenes/reviews-still-dark-en.webp?v=9f98b72fbc23");
        --scene-desktop-light: url("../img/magnatus/approved-scenes/reviews-porcelain-en-desktop.webp?v=6feed83c63bb");
        --scene-desktop-dark: url("../img/magnatus/approved-scenes/reviews-slate-en-desktop.webp?v=29fb049a108a");
        --scene-mobile-light: url("../img/magnatus/approved-scenes/reviews-porcelain-en-mobile.webp?v=6859352c9f67");
        --scene-mobile-dark: url("../img/magnatus/approved-scenes/reviews-slate-en-mobile.webp?v=5c4061bda358");
    }

    :is(.magnatus-hero-slide-faq, .magnatus-section-hero--faq) {
        --scene-surface: #dedede;
        --scene-desktop-light: url("../img/magnatus/approved-scenes/faq-grounded-compact-light.webp?v=8d7cd166e04d");
        --scene-desktop-dark: url("../img/magnatus/approved-scenes/faq-windowlit-compact-dark.webp?v=6c48ccc14a92");
        --scene-mobile-light: var(--scene-desktop-light);
        --scene-mobile-dark: var(--scene-desktop-dark);
        --faq-panorama: url("../img/magnatus/approved-scenes/faq-grounded-panorama-light.webp?v=6301ffcee901");
        --faq-right-desk: url("../img/magnatus/approved-scenes/faq-books-stationery-desk-right-light.webp?v=28fd5438c140");
    }

    :root[data-omni-theme="light"] :is(.magnatus-hero-slide-faq, .magnatus-section-hero--faq) {
        --faq-table-grade: url("../img/magnatus/approved-scenes/faq-table-grade-light.svg?v=93838914b5c2");
        --faq-table-compact: url("../img/magnatus/approved-scenes/faq-table-grade-light.svg?v=93838914b5c2#compact");
        --faq-table-blend: soft-light;
        --faq-compact-print: url("../img/magnatus/approved-scenes/faq-enamel-profile-compact-light.svg?v=8c0ef9bff92e");
        --faq-panorama-print: url("../img/magnatus/approved-scenes/faq-enamel-profile-light.svg?v=a71efc619d2c");
    }

    :root[data-omni-theme="dark"] :is(.magnatus-hero-slide-faq, .magnatus-section-hero--faq) {
        --scene-surface: #2b2b2b;
        --faq-compact-print: url("../img/magnatus/approved-scenes/faq-windowlit-profile-compact-dark.svg?v=261c7fc7c703");
        --faq-panorama-print: url("../img/magnatus/approved-scenes/faq-windowlit-profile-dark.svg?v=68a02a0b3c5e");
        --faq-panorama: url("../img/magnatus/approved-scenes/faq-windowlit-panorama-dark.webp?v=d9f756194765");
        --faq-right-desk: url("../img/magnatus/approved-scenes/faq-windowlit-right-dark.webp?v=6c623586cd04");
    }

    :is(.magnatus-hero-slide-partner, .magnatus-section-hero--partner) {
        --scene-desktop-light: url("../img/magnatus/approved-scenes/partner-desk-light-ru-desktop.webp?v=85b12d63bb2a");
        --scene-desktop-dark: url("../img/magnatus/approved-scenes/partner-desk-dark-ru-desktop.webp?v=f1ca8506d660");
        --scene-mobile-light: url("../img/magnatus/approved-scenes/partner-aligned-light-ru-mobile.webp?v=efceccce9776");
        --scene-mobile-dark: url("../img/magnatus/approved-scenes/partner-cafe-dark-ru-mobile.webp?v=071d2a4906fb");
    }

    :is(.magnatus-hero-slide-partner, .magnatus-section-hero--partner):lang(en) {
        --scene-desktop-light: url("../img/magnatus/approved-scenes/partner-desk-light-en-desktop.webp?v=5248e4441906");
        --scene-desktop-dark: url("../img/magnatus/approved-scenes/partner-desk-dark-en-desktop.webp?v=635c2f64ff16");
        --scene-mobile-light: url("../img/magnatus/approved-scenes/partner-aligned-light-en-mobile.webp?v=6b36e4765d79");
        --scene-mobile-dark: url("../img/magnatus/approved-scenes/partner-cafe-dark-en-mobile.webp?v=d9ba558d7e18");
    }

    :is(.magnatus-hero-slide-terms, .magnatus-section-hero--terms) {
        --scene-surface: #f4f6fa;
        --scene-desktop-light: url("../img/magnatus/approved-scenes/terms-light-ru-desktop.webp?v=2c58f650f284");
        --scene-desktop-dark: url("../img/magnatus/approved-scenes/terms-dark-ru-desktop.webp?v=c5afd8776eb9");
        --scene-mobile-light: url("../img/magnatus/approved-scenes/terms-light-ru-mobile.webp?v=4ff7150b1e5e");
        --scene-mobile-dark: url("../img/magnatus/approved-scenes/terms-dark-ru-mobile.webp?v=b32d94f3d218");
    }

    :is(.magnatus-hero-slide-terms, .magnatus-section-hero--terms):lang(en) {
        --scene-desktop-light: url("../img/magnatus/approved-scenes/terms-light-en-desktop.webp?v=01956400d69c");
        --scene-desktop-dark: url("../img/magnatus/approved-scenes/terms-dark-en-desktop.webp?v=80f9ddcfd8b9");
        --scene-mobile-light: url("../img/magnatus/approved-scenes/terms-light-en-mobile.webp?v=df18a6b162bf");
        --scene-mobile-dark: url("../img/magnatus/approved-scenes/terms-dark-en-mobile.webp?v=be516771814a");
    }

    .magnatus-section-hero--aml {
        --scene-desktop-light: url("../img/magnatus/approved-scenes/aml-loupe-light-desktop.webp");
        --scene-desktop-dark: url("../img/magnatus/approved-scenes/aml-loupe-dark-desktop.webp");
        --scene-mobile-light: url("../img/magnatus/approved-scenes/aml-loupe-light-mobile.webp");
        --scene-mobile-dark: url("../img/magnatus/approved-scenes/aml-loupe-dark-mobile.webp");
    }

    .magnatus-section-hero--video {
        --video-desk: url("../img/magnatus/approved-scenes/video-terms-desk-light.webp?v=b4cce3df180b");
        --video-panorama: url("../img/magnatus/approved-scenes/video-verification-desk-light.webp?v=77e36d2701bf");
        --video-portrait: url("../img/magnatus/approved-scenes/video-verification-desk-light-mobile.webp?v=fd4a3651b88a");
    }

    :root[data-omni-theme="dark"] .magnatus-section-hero--video {
        --video-desk: url("../img/magnatus/approved-scenes/video-terms-desk-dark.webp?v=b829086a498d");
        --video-panorama: url("../img/magnatus/approved-scenes/video-verification-desk-dark.webp?v=937ab8d834ae");
        --video-portrait: url("../img/magnatus/approved-scenes/video-verification-desk-dark-mobile.webp?v=daaf9ac0ae5d");
    }

    :root[data-omni-theme="dark"] .magnatus-passport-example {
        content: url("../img/magnatus/approved-scenes/verification-example-dark.webp?v=77c8968445d5");
    }

    .magnatus-scene__photo {
        grid-area: 1 / 1;
        aspect-ratio: var(--scene-ratio);
        pointer-events: none;
    }

    .magnatus-scene:not([hidden]) > .magnatus-scene__photo {
        background: linear-gradient(90deg, var(--scene-surface) var(--scene-copy-end), transparent var(--scene-fade-end)),
            var(--scene-image) center / contain no-repeat;
    }

    .magnatus-scene > .magnatus-scene__copy {
        grid-area: 1 / 1;
        z-index: 1;
        align-self: center;
        box-sizing: border-box;
        inline-size: calc(var(--scene-copy-end) - var(--scene-copy-inset));
        margin-inline-start: var(--scene-copy-inset);
        padding-block: 10px;
        color: var(--scene-ink);
        overflow-wrap: anywhere;
    }

    .magnatus-scene .magnatus-scene__copy :is(h1, h2, p, .h4) {
        max-width: 100%;
        color: inherit;
    }

    :is(.magnatus-hero-slide-faq, .magnatus-hero-slide-partner, .magnatus-hero-slide-terms) .magnatus-scene__copy h2,
    :is(.magnatus-section-hero--faq, .magnatus-section-hero--partner, .magnatus-section-hero--terms,
        .magnatus-section-hero--aml, .magnatus-section-hero--video) .magnatus-scene__copy h1 {
        font-size: clamp(25px, 2.5vw, 42px);
    }

    .magnatus-scene .magnatus-scene__copy a:not(:hover, :focus-visible) {
        color: var(--scene-link);
    }
}

@media screen and (width < 700px) {
    .magnatus-scene {
        --scene-image: var(--scene-mobile-light);
        --scene-ratio: 7 / 4;
    }

    :root[data-omni-theme="dark"] .magnatus-scene {
        --scene-image: var(--scene-mobile-dark);
    }

    .magnatus-section-hero--contacts {
        --scene-mobile-light: url("../img/magnatus/approved-scenes/contacts-shelves-light-mobile-17244b45de48.webp");
        --scene-mobile-dark: url("../img/magnatus/approved-scenes/contacts-shelves-dark-mobile-15e46d0d59ef.webp");
        --contacts-mobile-panorama: url("../img/magnatus/approved-scenes/contacts-shelves-light-wide-mobile-d220bf906050.webp");
    }

    :root[data-omni-theme="dark"] .magnatus-section-hero--contacts {
        --contacts-mobile-panorama: url("../img/magnatus/approved-scenes/contacts-shelves-dark-wide-mobile-386b0e653204.webp");
    }

    .magnatus-scene > .magnatus-scene__copy {
        inline-size: 100%;
        margin-inline-start: 0;
        padding: 16px clamp(16px, 5vw, 28px) 12px;
    }

    .magnatus-scene__photo {
        grid-area: 2 / 1;
    }

    .magnatus-scene:not([hidden]) > .magnatus-scene__photo {
        background: var(--scene-image) center / contain no-repeat;
    }
}

@media screen {
    .magnatus-hero {
        --hero-copy-inset: var(--public-gutter);
        --hero-nav-fill: rgb(255 252 245 / 88%);
        --hero-nav-line: rgb(62 51 37 / 20%);
        --hero-nav-shadow: rgb(30 26 22 / 13%);
        --magnatus-dot: #566470;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(16px, 1fr) auto auto minmax(16px, 1fr);
    }

    [data-omni-theme="dark"] .magnatus-hero {
        --hero-nav-fill: rgb(18 31 46 / 91%);
        --hero-nav-line: rgb(194 208 225 / 32%);
        --hero-nav-shadow: rgb(0 0 0 / 22%);
        --magnatus-dot: #b7c3cf;
    }

    /* All captions size the same row, so switching slides never moves the controls. */
    .magnatus-hero__slide.magnatus-scene {
        display: grid;
        grid-area: 1 / 1 / -1;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: subgrid;
        padding: 0;
        background: var(--scene-surface);
    }

    .magnatus-hero__slide.magnatus-scene[hidden] { display: grid !important; }

    .magnatus-hero__slide > .magnatus-scene__copy {
        grid-area: 2 / 1;
        align-self: start;
        inline-size: min(32%, 560px);
        margin: 0 0 0 var(--hero-copy-inset);
        padding: 0;
    }

    .magnatus-hero__slide > .magnatus-scene__photo {
        position: absolute;
        inset: 0;
        grid-area: auto;
        aspect-ratio: auto;
    }

    .magnatus-hero, .magnatus-section-hero--faq {
        --scene-photo-wash: 248 248 247;
    }

    :root[data-omni-theme="dark"] :is(.magnatus-hero, .magnatus-section-hero--faq) {
        --scene-photo-wash: 12 18 25;
    }

    :root[data-omni-storefront="magnatus"] .magnatus-section-hero--faq > .magnatus-scene__photo,
    .magnatus-hero__slide:not([hidden]) > .magnatus-scene__photo {
        position: absolute;
        inset: 0;
        grid-area: auto;
        aspect-ratio: auto;
        background: var(--scene-image) center / cover no-repeat;
    }

    :is(.magnatus-hero__slide:not([hidden], .magnatus-hero-slide-terms), .magnatus-section-hero--faq) > .magnatus-scene__photo::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgb(var(--scene-photo-wash) / .76), rgb(var(--scene-photo-wash) / .63) var(--hero-wash-stop, 30%), transparent 62%);
    }

    .magnatus-hero .magnatus-hero__controls:not([hidden]) {
        grid-area: 3 / 1;
        position: relative;
        inset: auto;
        z-index: 2;
        display: flex;
        align-items: center;
        align-self: start;
        justify-self: start;
        justify-content: start;
        gap: 0;
        margin: 8px 0 0 var(--hero-copy-inset);
        isolation: isolate;
    }

    .magnatus-hero__controls::before {
        content: "";
        position: absolute;
        inset: 7px 2px;
        z-index: -1;
        border: 1px solid var(--hero-nav-line);
        border-radius: 99px;
        background: var(--hero-nav-fill);
        box-shadow: 0 1px 4px var(--hero-nav-shadow);
        backdrop-filter: blur(4px);
    }

    .magnatus-hero__controls :is(.magnatus-hero__arrow, .magnatus-hero__dots) { position: static; transform: none; }
    .magnatus-hero__controls [data-hero-next] { order: 1; }
    .magnatus-hero__controls .magnatus-hero__dots { gap: 0; }
    .magnatus-hero__dots button::before { width: 7px; height: 7px; box-shadow: none; }
    .magnatus-hero__dots button[aria-current]::before { width: 20px; }
    .magnatus-hero__arrow svg { width: 30px; height: 30px; background: transparent; box-shadow: none; }
}

@media screen and (width >= 700px) {

    .magnatus-hero {
        box-sizing: border-box;
        inline-size: 100%;
        min-block-size: 0;
        margin: 0;
        overflow: hidden;
    }

    /* The photograph sets a preferred height. Wrapped or enlarged captions can grow the grid. */
    .magnatus-hero::before {
        content: "";
        grid-area: 1 / 1 / -1;
        inline-size: 100%;
        aspect-ratio: var(--magnatus-banner-ratio);
        /* The overlay is part of the photograph's 720px height limit. */
        max-block-size: calc(720px - var(--magnatus-menu-inset, 0px));
        align-self: start;
        pointer-events: none;
    }

    .magnatus-hero-slide-exchange .magnatus-scene__copy h2 { font-size: clamp(27px, 2.7vw, 46px); }

}

@media screen and (width >= 1600px) {
    /* The full-width tabletop and the objects are in one photograph. */
    .magnatus-hero-slide-exchange {
        --scene-desktop-light: url("../img/magnatus/approved-scenes/exchange-desk-pearl-portrait-panorama.webp?v=080a33315d7a");
        --scene-desktop-dark: url("../img/magnatus/approved-scenes/exchange-desk-graphite-portrait-panorama.webp?v=aedec770b0c3");
    }
    .magnatus-hero-slide-exchange:not([hidden]) > .magnatus-scene__photo {
        background-position: right center;
    }
}

@media screen and (width >= 2160px) {
    .magnatus-hero__slide:not([hidden], .magnatus-hero-slide-exchange, .magnatus-hero-slide-faq, .magnatus-hero-slide-reviews, .magnatus-hero-slide-contacts) > .magnatus-scene__photo {
        container-type: size;
        background-size: auto 100%;
        background-position: right center;
    }

    .magnatus-hero__slide:not([hidden], .magnatus-hero-slide-exchange, .magnatus-hero-slide-faq, .magnatus-hero-slide-reviews, .magnatus-hero-slide-contacts) > .magnatus-scene__photo::before {
        content: "";
        position: absolute;
        /* The right 90% of the 3:1 photo spans 2.7 times its rendered height. */
        inset: 0 min(100%, 270cqh) 0 0;
        background: var(--scene-image) left center / 1000% 100% no-repeat;
    }
}

@media screen and (width >= 1024px) {
    .magnatus-hero {
        /* Follow the heading inside the centered exchange directions container. */
        --hero-copy-inset: calc(max(0px, (100% - var(--omni-ui-content-width)) / 2) + var(--public-gutter) + var(--magnatus-directions-inset));
        --hero-wash-stop: max(30%, calc(var(--hero-copy-inset) + min(32%, 560px)));
    }

    /* Both themes use the same tabletop composition and caption width. */
    .magnatus-hero-slide-exchange {
        --exchange-desk-end: max(31.6vw, calc(100vw - 1478px));
    }

    .magnatus-hero-slide-exchange:not([hidden]) > .magnatus-scene__photo::after {
        content: none;
    }

    .magnatus-hero-slide-exchange > .magnatus-scene__copy {
        --caption-start: calc(max(0px, (100vw - var(--omni-ui-content-width)) / 2) + var(--public-gutter) + var(--magnatus-directions-inset));
    }

    .magnatus-hero-slide-exchange .magnatus-scene__copy > h2 + .h4 {
        max-inline-size: calc(var(--exchange-desk-end) - var(--caption-start) - 8px);
    }

    .magnatus-hero-slide-exchange:lang(en) .magnatus-scene__copy h2 {
        /* The screen starts farther left than the keyboard. The longer line is about 8.7em wide. */
        --exchange-heading-width: calc(var(--exchange-desk-end) - var(--caption-start) - 32px);
        font-size: clamp(27px, min(2.7vw, var(--exchange-heading-width) / 8.7), 46px);
    }
}

@media screen and (width >= 700px) {
    .magnatus-hero-slide-exchange:lang(en) .magnatus-scene__copy h2 br { display: inline; }
}

@media screen and (700px <= width < 768px) {
    .magnatus-hero-slide-exchange:lang(en) .magnatus-scene__copy h2 {
        font-size: clamp(19px, calc(19px + (100vw - 700px) / 20), 22px);
    }
}

@media screen and (700px <= width < 992px) {
    .magnatus-hero__slide > .magnatus-scene__copy { inline-size: max(35%, 290px); }
    .magnatus-hero__slide .magnatus-scene__copy h2 { font-size: clamp(22px, 2.8vw, 27px); }

    .magnatus-hero__slide:not([hidden], .magnatus-hero-slide-terms) > .magnatus-scene__photo::after {
        background: linear-gradient(90deg, rgb(var(--scene-photo-wash) / .84), rgb(var(--scene-photo-wash) / .78) 49%, transparent 78%);
    }

    :root[data-omni-theme="light"]:not([data-omni-high-contrast]) .magnatus-hero-slide-faq:not([hidden]) > .magnatus-scene__photo::after {
        background: linear-gradient(90deg, rgb(var(--scene-photo-wash) / .3), transparent 40%);
    }
}

@media screen and (700px <= width < 1024px) {
    /* Keep the pen and the right page inside a taller tablet banner. */
    :root[data-omni-storefront="magnatus"] .magnatus-hero-slide-exchange:not([hidden]) > .magnatus-scene__photo {
        background-position: 85% center;
    }

    :root[data-omni-theme="light"] .magnatus-hero-slide-exchange:not([hidden]) > .magnatus-scene__photo {
        background-size: auto 100%;
    }

    :root[data-omni-storefront="magnatus"] .magnatus-hero-slide-exchange:not([hidden]) > .magnatus-scene__photo::after {
        --exchange-caption-end: calc(var(--hero-copy-inset) + max(35%, 290px));
        background: linear-gradient(90deg, rgb(var(--scene-photo-wash) / .84),
            rgb(var(--scene-photo-wash) / .78) calc(var(--exchange-caption-end) - 36px),
            transparent calc(var(--exchange-caption-end) + 24px));
        mask-image: linear-gradient(transparent, black 25%, black 72%, transparent 96%);
    }
}

@media screen and (width < 700px) {
    .magnatus-hero {
        grid-template-rows: 16px auto minmax(12px, 1fr) auto;
        min-block-size: calc(max(292px, 100vw * 4 / 7 + 48px) + var(--magnatus-menu-inset, 0px));
    }

    /* The header provides the upper line of the edge-to-edge mobile banner. */
    .magnatus-hero::after {
        content: "";
        position: absolute;
        inset: auto 0 0;
        z-index: 1;
        border-block-end: 1px solid var(--omni-ui-line);
        pointer-events: none;
    }

    .magnatus-hero__slide.magnatus-scene { grid-row-end: 4; }

    .magnatus-hero__slide > .magnatus-scene__copy {
        align-self: start;
        inline-size: min(82%, 25rem);
        margin-inline: var(--hero-copy-inset);
    }

    .magnatus-hero-slide-exchange:lang(en) .magnatus-scene__copy h2 br { display: none; }

    .magnatus-hero-slide-exchange:lang(ru) .magnatus-scene__copy > h2 + .h4 {
        text-wrap: balance;
    }

    .magnatus-hero-slide-exchange .magnatus-hero__action {
        min-block-size: 44px;
    }

    :is(.magnatus-hero-slide-faq, .magnatus-hero-slide-reviews) .magnatus-hero__action {
        /* Only 6px fit above the link before the caption. Put the remaining tap space below. */
        --tap-padding-end: max(0px, calc(44px - 1lh - 6px));
        padding-block: 6px var(--tap-padding-end);
        margin-block: -6px calc(-1 * var(--tap-padding-end));
    }

    .magnatus-hero-slide-exchange {
        --exchange-handwriting: url("../img/magnatus/approved-scenes/exchange-handwriting-mob-light.svg?v=2ec68d5d69c9");
    }

    [data-omni-theme="dark"] .magnatus-hero-slide-exchange {
        --exchange-handwriting: url("../img/magnatus/approved-scenes/exchange-handwriting-mob-dark.svg?v=ad053203aacb");
    }

    .magnatus-hero-slide-exchange:not([hidden]) > .magnatus-scene__photo {
        background-image: var(--exchange-handwriting), var(--scene-image);
        /* The last 176 source rows supply spare tabletop for narrow phones. */
        background-size: auto max(calc(100% * 1188 / 1012), calc(100vw * 1188 / 1659));
        background-position: 88% top;
    }

    .magnatus-hero-slide-exchange > .magnatus-scene__copy {
        inline-size: min(54%, 25rem);
    }

    .magnatus-hero-slide-reviews {
        --scene-panorama: var(--scene-desktop-light);
    }
    [data-omni-theme="dark"] .magnatus-hero-slide-reviews {
        --scene-panorama: var(--scene-desktop-dark);
    }

    :root[data-omni-storefront="magnatus"]:not([data-omni-high-contrast]) .magnatus-hero-slide-reviews:not([hidden]) > .magnatus-scene__photo {
        background: var(--scene-panorama) left top / 350% 100% no-repeat;
    }

    /* Keep the phone lettering and the five stars together, beside the caption. */
    .magnatus-hero-slide-reviews:not([hidden]) > .magnatus-scene__photo::before {
        content: "";
        position: absolute;
        inset: auto auto 0 32%;
        inline-size: 75%;
        aspect-ratio: 7 / 4;
        background: var(--scene-image) center / cover no-repeat;
        mask-image: linear-gradient(90deg, transparent, black 23%), linear-gradient(180deg, transparent, black 7%);
        mask-composite: intersect;
    }

    .magnatus-hero-slide-partner > .magnatus-scene__copy {
        inline-size: clamp(188px, 53%, 20rem);
    }

    :is(.magnatus-hero-slide-reviews, .magnatus-hero-slide-contacts) > .magnatus-scene__copy {
        inline-size: clamp(172px, 49%, 19rem);
    }

    .magnatus-hero-slide-partner:not([hidden]) > .magnatus-scene__photo {
        background: var(--scene-desktop-light) left center / 320% 100% no-repeat;
    }
    :root[data-omni-theme="dark"] .magnatus-hero-slide-partner:not([hidden]) > .magnatus-scene__photo {
        background-image: var(--scene-desktop-dark);
    }

    :is(.magnatus-hero__slide, .magnatus-section-hero--faq, .magnatus-section-hero--terms) > .magnatus-scene__copy {
        position: relative;
        isolation: isolate;
    }

    /* Follow the actual caption height, including wrapped translations. */
    :is(.magnatus-hero__slide, .magnatus-section-hero--faq, .magnatus-section-hero--terms) > .magnatus-scene__copy::before {
        content: "";
        position: absolute;
        z-index: -1;
        pointer-events: none;
        inset: -16px -52px -30px calc(0px - var(--hero-copy-inset, 0px));
        background-color: rgb(var(--scene-photo-wash, var(--section-veil)) / .79);
        mask-image: linear-gradient(90deg, black calc(100% - 52px), transparent),
            linear-gradient(180deg, black calc(100% - 30px), transparent);
        mask-composite: intersect;
    }

    .magnatus-hero-slide-exchange > .magnatus-scene__copy::before {
        inset-inline-end: -28px;
        mask-image: linear-gradient(90deg, black calc(100% - 28px), transparent),
            linear-gradient(180deg, black calc(100% - 30px), transparent);
    }

    :root[data-omni-theme="light"] .magnatus-hero-slide-exchange > .magnatus-scene__copy::before {
        inset-block-start: -24px;
        inset-inline-end: -16px;
        background-color: rgb(var(--scene-photo-wash) / .78);
        mask-image: linear-gradient(90deg, black calc(100% - 36px),
                rgb(0 0 0 / .85) calc(100% - 16px), transparent),
            linear-gradient(180deg, transparent, black 22px, black calc(100% - 30px), transparent);
    }

    .magnatus-hero .magnatus-hero__controls:not([hidden]) {
        grid-row: 4;
        margin-block-start: 0;
        margin-inline-start: 0;
        justify-self: center;
    }

    :is(.magnatus-hero__slide:not([hidden]), .magnatus-section-hero--faq) > .magnatus-scene__photo::after {
        background: none;
    }

    .magnatus-hero-slide-partner > .magnatus-scene__copy::before {
        inset-inline-end: -24px;
    }

    :is(.magnatus-hero-slide-reviews, .magnatus-hero-slide-contacts) > .magnatus-scene__copy::before {
        inset-inline-end: -10px;
        mask-image: linear-gradient(90deg, black var(--caption-wash-stop, 65%), transparent),
            linear-gradient(180deg, black calc(100% - 35px), transparent);
    }

    :root[data-omni-theme="light"] .magnatus-hero-slide-contacts {
        --caption-wash-stop: 84%;
    }

}

@media screen and (width <= 480px) {
    .magnatus-hero .magnatus-hero__arrow { display: grid; }
    .magnatus-hero__dots button {
        width: clamp(24px, calc((100vw - 2 * var(--hero-copy-inset) - 88px) / 6), 44px);
    }
}

@media screen and (width <= 370px) {
    .magnatus-hero-slide-exchange:not([hidden]) > .magnatus-scene__photo {
        /* Leave room for the pen and the stitched corner on narrow phones. */
        background-size: auto max(100%, calc(138vw * 1188 / 1659));
    }
}

/* Leave a gap after the laptop badge as the phone crop widens. */
@media screen and (360px < width <= 480px) {
    :root[data-omni-theme="dark"] .magnatus-hero-slide-exchange .magnatus-hero__action {
        margin-inline-start: min(4rem, calc(50vw - 165px));
    }
}

@media screen {
    :root[data-omni-storefront="magnatus"] .magnatus-section-hero--faq {
        position: relative;
        isolation: isolate;
        min-block-size: 0;
        aspect-ratio: var(--magnatus-section-ratio);
    }

    /* The empty top and left margins of the FAQ photograph can extend to fit
       the banner. Keep its pencils, books and camera at their natural ratio. */
    :is(.magnatus-section-hero--faq, .magnatus-hero-slide-faq) > .magnatus-scene__photo {
        container-type: size;
        --faq-group-inset: max(0px, calc((100cqw - var(--omni-ui-content-width)) / 2 - 5cqh));
        --faq-exposure-height: max(100cqh, calc(100cqw * 538 / 6656));
        --faq-photo-height: min(calc(100cqw * 838 / 1877), 100cqh);
        --faq-photo-slice: 0 88% 93% 0 fill;
        --faq-photo-width: 0 calc(var(--faq-photo-height) * 1877 / 838 * .88) calc(var(--faq-photo-height) * .93) 0;
    }

    :is(.magnatus-section-hero--faq, .magnatus-hero-slide-faq:not([hidden])) > .magnatus-scene__photo::before {
        content: "";
        position: absolute;
        inset: 0;
        border-image: var(--scene-image) var(--faq-photo-slice) / var(--faq-photo-width);
    }
}

@media screen and (width >= 700px) {
    :root[data-omni-storefront="magnatus"] .magnatus-section-hero--faq > .magnatus-scene__photo,
    .magnatus-hero-slide-faq:not([hidden]) > .magnatus-scene__photo {
        background-image: none;
    }

    @container (aspect-ratio >= 1877 / 838) {
        @media (width >= 992px) {
            :is(.magnatus-section-hero--faq, .magnatus-hero-slide-faq:not([hidden])) > .magnatus-scene__photo::after {
                mask-image: linear-gradient(black 68%, rgb(0 0 0 / .18) 89%);
            }
        }
    }

    :is(.magnatus-section-hero--faq, .magnatus-hero-slide-faq:not([hidden])) > .magnatus-scene__photo::before {
        border-image: none;
        background: var(--faq-panorama-print) right center / cover no-repeat,
            var(--faq-panorama) right center / cover no-repeat;

        @media (width >= 1488px) {
            /* Follow the centered menu as the outer margins grow. Both photos share the same horizon. */
            background-image: var(--faq-panorama-print), var(--faq-panorama), var(--faq-right-desk);
            background-size: auto var(--faq-exposure-height);
            background-position: right var(--faq-group-inset) center, right var(--faq-group-inset) center,
                right calc(var(--faq-group-inset) - var(--faq-exposure-height) * 1800 / 538) center;
            background-repeat: no-repeat, no-repeat, repeat-x;
        }
    }

    @media (width >= 1488px) {
        :root[data-omni-theme="light"] :is(.magnatus-section-hero--faq, .magnatus-hero-slide-faq:not([hidden])) > .magnatus-scene__photo::before {
            /* Fade the books' shadow into the tabletop extension. */
            --faq-desk-join: calc(100% - var(--faq-group-inset));
            --faq-panorama-position: right var(--faq-group-inset) center;
            --faq-panorama-size: auto var(--faq-exposure-height);
            background:
                var(--faq-panorama-print) var(--faq-panorama-position) / var(--faq-panorama-size) no-repeat,
                var(--faq-panorama) var(--faq-panorama-position) / var(--faq-panorama-size) no-repeat,
                radial-gradient(ellipse calc(var(--faq-exposure-height) * .12) calc(var(--faq-exposure-height) * .058)
                    at calc(var(--faq-desk-join) + var(--faq-exposure-height) * .12) 83.5%,
                    rgb(37 47 58 / .12), rgb(37 47 58 / .07) 50%, transparent),
                var(--faq-right-desk) right calc(var(--faq-group-inset) - var(--faq-exposure-height) * 1800 / 538) center / var(--faq-panorama-size) repeat-x;
        }

    }
}

/* Tint only the wood. The grade is registered to the same crop as the photograph. */
@media screen and (forced-colors: none) {
    :root[data-omni-theme="light"]:not([data-omni-high-contrast]) .magnatus-faq-table {
        position: absolute;
        inset: 0;
        pointer-events: none;
        mix-blend-mode: var(--faq-table-blend);
        background: var(--faq-table-grade) right center / cover no-repeat;

        @media (width >= 1488px) {
            background-position: right var(--faq-group-inset) center;
            background-size: auto var(--faq-exposure-height);

            &::after {
                content: "";
                position: absolute;
                inset: 0 0 0 auto;
                width: var(--faq-group-inset);
                background: var(--faq-table-grade) left center / auto var(--faq-exposure-height) no-repeat;
            }
        }
        @media (width < 700px) {
            background: none;
            border-image: var(--faq-table-compact) var(--faq-photo-slice) / var(--faq-photo-width);
        }
    }
}

@media screen and (width < 700px) {
    :root[data-omni-theme] :is(.magnatus-section-hero--faq, .magnatus-hero-slide-faq:not([hidden])) > .magnatus-scene__photo::after {
        /* Both the official badge and the book lettering follow the photographic crop. */
        border-image: var(--faq-compact-print) var(--faq-photo-slice) / var(--faq-photo-width);
    }

    :root[data-omni-storefront="magnatus"] .magnatus-section-hero.magnatus-section-hero--faq {
        grid-template-rows: auto;
        aspect-ratio: auto;
        min-block-size: calc(var(--magnatus-section-photo-height) + var(--magnatus-menu-inset, 0px));
    }

    :root[data-omni-storefront="magnatus"][data-omni-theme="dark"]:not([data-omni-high-contrast]) :is(.magnatus-section-hero--faq, .magnatus-hero-slide-faq:where(:not([hidden]))) {
        background: var(--omni-ui-bg);

        > .magnatus-scene__photo {
            mask-image: var(--scene-desk-edge);
        }
    }

    .magnatus-section-hero--faq > .magnatus-scene__copy {
        align-self: start;
        inline-size: min(85%, 27rem);
    }

    /* Keep the reading shade over the pencils and let the camera catch the light. */
    :root[data-omni-theme="dark"] :is(.magnatus-section-hero--faq, .magnatus-hero-slide-faq) > .magnatus-scene__copy::before {
        mask-image: linear-gradient(90deg, black min(56vw, calc(100% - 52px)), transparent min(74vw, 100%)),
            linear-gradient(180deg, black calc(100% - 30px), transparent);
    }

    :root[data-omni-theme="dark"] .magnatus-section-hero--faq .magnatus-scene__copy > p {
        position: relative;
        isolation: isolate;
    }

    :root[data-omni-theme="dark"] .magnatus-section-hero--faq .magnatus-scene__copy > p::before {
        content: "";
        position: absolute;
        inset: -.3em -.5em;
        z-index: -1;
        pointer-events: none;
        background: radial-gradient(ellipse closest-side, rgb(var(--scene-photo-wash) / .42) 48%, transparent);
    }
}


@media screen {
    :root[data-omni-storefront="magnatus"] .magnatus-section-hero.magnatus-scene:not(.magnatus-section-hero--faq) {
        position: relative;
        isolation: isolate;
        aspect-ratio: var(--magnatus-section-ratio);
        grid-template-rows: auto;
        min-block-size: min-content;
    }

    .magnatus-section-hero {
        --section-veil: 248 248 247;
        --section-backdrop: var(--scene-desktop-light);
    }

    :root[data-omni-theme="dark"] .magnatus-section-hero {
        --section-veil: 12 18 25;
        --section-backdrop: var(--scene-desktop-dark);
    }

    :root[data-omni-storefront="magnatus"] .magnatus-section-hero:where(:not(.magnatus-section-hero--faq)) > .magnatus-scene__photo {
        position: absolute;
        inset: 0;
        grid-area: auto;
        aspect-ratio: auto;
        container-type: size;
        background: var(--scene-image) center / cover no-repeat;
    }

    .magnatus-section-hero:where(:not(.magnatus-section-hero--faq)) > .magnatus-scene__photo::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgb(var(--section-veil) / .82), rgb(var(--section-veil) / .66) 33%, transparent 65%);
    }
}

@media screen and (width >= 700px) {
    /* Extend the quiet left part of the panorama under the copy. The right
       65% keeps its natural proportions and fits the banner from top to bottom. */
    .magnatus-section-hero:where(:not(.magnatus-section-hero--faq)) > .magnatus-scene__photo::before {
        content: "";
        position: absolute;
        inset: 0;
        border-image-source: var(--scene-image);
        border-image-slice: 0 65% 0 0 fill;
        border-image-width: 0 min(65cqw, 195cqh) 0 0;
    }

    /* Frame a single photo so the far desk edge, hands, chair and lamp stay together.
       Stop panning when either edge of the room reaches the viewport. */
    :root[data-omni-storefront="magnatus"]:not([data-omni-high-contrast]) :is(.magnatus-section-hero--contacts, .magnatus-hero-slide-contacts:where(:not([hidden]))) > .magnatus-scene__photo::before {
        content: "";
        position: absolute;
        inset: 0;
        --contacts-ratio: calc(6130 / 790);
        --contacts-face-x: calc(3326 / 790);
        --contacts-cover-height: max(100cqh, 100cqw / var(--contacts-ratio));
        --contacts-menu-safe-height: calc((100cqh - (var(--magnatus-menu-inset, 64px) - 8px)) / (1 - 170 / 790));
        --contacts-height: max(var(--contacts-cover-height), min(calc(1.14 * var(--contacts-cover-height)), var(--contacts-menu-safe-height)));
        --contacts-center-x: calc(50cqw + min(22cqw, 330px));
        --contacts-pan: clamp(0px, calc((100vw - 900px) * .05), 50px);
        --contacts-edge: calc(100cqw - var(--contacts-height) * var(--contacts-ratio));
        --contacts-aligned-left: clamp(var(--contacts-edge),
            calc(var(--contacts-center-x) - var(--contacts-height) * var(--contacts-face-x)), 0px);
        --contacts-left: min(0px, max(
            calc(var(--contacts-edge) + min(2px, 0px - var(--contacts-edge))),
            calc(var(--contacts-aligned-left) - var(--contacts-pan))));
        border-image: none;
        background: var(--scene-image) var(--contacts-left) bottom / auto var(--contacts-height) no-repeat;

        @media (width < 900px) {
            --contacts-height: calc(var(--contacts-cover-height) * 1.08);
            --contacts-center-x: calc(100cqw - 300px);
        }

        @media (900px <= width < 1200px) {
            --contacts-menu-safe-height: calc((100cqh - var(--magnatus-menu-inset, 64px)) / (1 - 170 / 790));
        }
    }

    :root[data-omni-storefront="magnatus"][data-omni-theme]:not([data-omni-high-contrast]) .magnatus-section-hero--contacts {
        min-block-size: calc(var(--magnatus-menu-inset, 64px) + 224px);
    }

    :root[data-omni-storefront="magnatus"][data-omni-theme="dark"]:not([data-omni-high-contrast]) :is(.magnatus-section-hero--contacts, .magnatus-hero-slide-contacts:where(:not([hidden]))) {
        > .magnatus-scene__photo::before {
            --contacts-face-x: calc(3350 / 790);
            --contacts-hairline: calc(163 / 790);
            --contacts-menu-inset: var(--magnatus-menu-inset, 64px);
            --contacts-cover-height: max(100cqh, 100cqw / var(--contacts-ratio),
                calc(var(--contacts-menu-inset) / var(--contacts-hairline)));
            background-position-y: clamp(calc(100cqh - var(--contacts-height)),
                calc(var(--contacts-menu-inset) - var(--contacts-height) * var(--contacts-hairline)), 0px);

            @media (width < 900px) {
                --contacts-height: var(--contacts-cover-height);
                --contacts-center-x: calc(100cqw - 270px);
            }
        }
    }

    /* Tablet carousel controls occupy their own row below the photograph. */
    @media (width < 1200px) {
        :root[data-omni-storefront="magnatus"][data-omni-theme]:not([data-omni-high-contrast]) .magnatus-hero-slide-contacts:not([hidden]) > .magnatus-scene__photo::before {
            --contacts-height: max(100cqh, 100cqw / var(--contacts-ratio));
            background-position-y: bottom;

            @media (width < 900px) {
                --contacts-center-x: calc(100cqw - 300px);
            }
        }
    }

    @media (840px <= width < 900px) {
        :root[data-omni-storefront="magnatus"][data-omni-theme="light"]:not([data-omni-high-contrast]) :is(.magnatus-section-hero--contacts, .magnatus-hero-slide-contacts:where(:not([hidden]))) > .magnatus-scene__photo::before {
            /* Give the portrait clearance below Reserves without exposing the top edge. */
            --contacts-drop: clamp(0px, calc((100vw - 840px) * .5), 17px);
            background-position-y: min(0px, calc(100cqh - var(--contacts-height) + var(--contacts-drop)));
        }
    }

    @media (width < 900px) {
        :root[data-omni-storefront="magnatus"]:not([data-omni-high-contrast]) .magnatus-section-hero--contacts > .magnatus-scene__copy {
            inline-size: min(41%, calc(100vw - 475px));
        }
    }
}

@media screen {
    :root[data-omni-storefront="magnatus"]:not([data-omni-high-contrast]) :is(.magnatus-section-hero--contacts, .magnatus-hero-slide-contacts:where(:not([hidden]))) {
        > .magnatus-scene__photo {
            container-type: size;
            background: none;
        }

        > .magnatus-scene__photo::after,
        > .magnatus-scene__copy::before {
            content: none;
        }

        > .magnatus-scene__copy > :is(h1, p) {
            text-shadow: none;
        }
    }

    :root[data-omni-storefront="magnatus"][data-omni-theme="light"]:not([data-omni-high-contrast]) .magnatus-section-hero--contacts > .magnatus-scene__copy {
        position: relative;
        --scene-ink: #151a20;
    }

    :root[data-omni-storefront="magnatus"][data-omni-theme]:not([data-omni-high-contrast]) :is(.magnatus-section-hero--contacts, .magnatus-hero-slide-contacts:where(:not([hidden]))) {
        background-color: var(--omni-ui-bg);

        > .magnatus-scene__photo {
            mask-image: var(--scene-desk-edge);
        }
    }

    :root[data-omni-theme="light"] :is(.magnatus-section-hero--contacts, .magnatus-hero-slide-contacts) {
        /* The front lip occupies the last 2–3.5% of the light photograph. */
        --scene-desk-edge: linear-gradient(to bottom, black 93%, rgb(0 0 0 / .55) 94.5%, rgb(0 0 0 / .06) 96.5%, transparent);
    }
}

.magnatus-reviews-stage, .magnatus-reviews-mug, .magnatus-reviews-phone-edge { display: none; }

@media screen and (width >= 700px) {
    /* Keep the wood grain at the same scale under the heading and the still life.
       Beyond the reading column the subjects follow the right edge of the menu. */
    :root[data-omni-storefront="magnatus"] :is(.magnatus-section-hero--reviews, .magnatus-hero-slide-reviews:not([hidden])) > .magnatus-scene__photo {
        container-type: size;
        background: var(--reviews-desk) center / auto 100% repeat-x;
    }

    :is(.magnatus-section-hero--reviews, .magnatus-hero-slide-reviews:not([hidden])) > .magnatus-scene__photo::before {
        content: none;
    }

    .magnatus-reviews-stage {
        --reviews-photo-width: min(100cqw, 300cqh, 1610px);
        --reviews-still-mask: url("../img/magnatus/approved-scenes/reviews-still-light-mask.svg?v=3");
        --reviews-cup-glaze: url("../img/magnatus/approved-scenes/reviews-cup-glaze-light.svg");
        --reviews-nfc-image: url("../img/magnatus/approved-scenes/reviews-nfc-light.webp?v=b6bccfaa8fd1");
        --reviews-nfc-x: 40.296%;
        display: block;
        position: absolute;
        inset: 0 max(0px, calc((100cqw - var(--omni-ui-content-width)) / 2 - 4cqh)) 0 auto;
        inline-size: var(--reviews-photo-width);
        background: var(--reviews-upper) right top / calc(100% * 880 / 2172) auto no-repeat;
    }

    .magnatus-reviews-stage::before, .magnatus-reviews-mug {
        content: "";
        position: absolute;
        inset: 0;
        background-image: var(--reviews-cup-glaze), var(--reviews-still);
        background-position: calc(50% + var(--reviews-phone-offset, 0px)) var(--reviews-still-y, 50%);
        background-size: 100% auto;
        background-repeat: no-repeat;
        background-blend-mode: darken, normal;
        /* The first mask separates the phone from the mug on tablets. The
           second follows the photo so its original contact shadow stays put. */
        mask-image: var(--reviews-phone-mask, linear-gradient(black, black)), var(--reviews-still-mask, linear-gradient(black, black));
        mask-size: 100% 100%, 100% auto;
        mask-position: var(--reviews-phone-offset, 0px) 0, calc(50% + var(--reviews-phone-offset, 0px)) var(--reviews-still-y, 50%);
        mask-repeat: no-repeat;
        mask-composite: intersect;
    }

    :root[data-omni-theme="light"] .magnatus-reviews-phone-edge {
        --phone-position: calc(50% + var(--reviews-phone-offset, 0px)) 50%;
        display: block;
        position: absolute;
        inset: 0;
        background: var(--reviews-still) var(--phone-position) / 100% auto no-repeat;
        mask: url("../img/magnatus/approved-scenes/reviews-phone-light-edge.svg") var(--phone-position) / 100% auto no-repeat;
        filter: grayscale(.85) brightness(2.6) contrast(.55) brightness(1.2);
    }

    .magnatus-reviews-stage::after {
        content: "";
        position: absolute;
        left: var(--reviews-nfc-x);
        top: calc(50% + var(--reviews-photo-width) * .077);
        width: 8%;
        aspect-ratio: 328 / 191;
        background: var(--reviews-nfc-image) center / contain no-repeat;
        transform: translateY(-50%) perspective(550px) rotateX(11deg) rotateZ(7deg) skewX(-3deg);
        filter: brightness(.93) drop-shadow(-1px 2px 1px rgb(0 0 0 / .47));
    }

    :root[data-omni-storefront="magnatus"]:not([data-omni-high-contrast]) :is(.magnatus-section-hero--reviews, .magnatus-hero-slide-reviews:not([hidden])) > .magnatus-scene__photo::after {
        background: none;
    }
    :root[data-omni-theme="dark"] .magnatus-reviews-stage {
        --reviews-still-mask: url("../img/magnatus/approved-scenes/reviews-still-dark-mask.svg?v=2");
        --reviews-cup-glaze: url("../img/magnatus/approved-scenes/reviews-cup-glaze-dark.svg");
        --reviews-nfc-image: url("../img/magnatus/approved-scenes/reviews-nfc-dark.webp?v=7e2eac5823b2");
        --reviews-nfc-x: 38.088%;
    }
}

@media screen and (960px <= width < 1366px) {
    /* The diagonal follows the strip of bare desk between the coaster and the phone. */
    .magnatus-section-hero--reviews {
        --reviews-phone-mask: linear-gradient(110deg, transparent 71%, black 71.8%);
        --reviews-mug-display: block;
    }
    :root[data-omni-theme="light"] .magnatus-section-hero--reviews .magnatus-reviews-stage::before,
    :root[data-omni-theme="light"] .magnatus-section-hero--reviews .magnatus-reviews-phone-edge {
        --reviews-phone-offset: 22px;
    }
    .magnatus-reviews-mug {
        display: var(--reviews-mug-display, none);
        --reviews-phone-mask: linear-gradient(110deg, black 71%, transparent 71.8%);
    }
    .magnatus-section-hero--reviews .magnatus-reviews-mug {
        --reviews-still-y: calc(50% + var(--magnatus-menu-inset, 64px) - var(--reviews-rim-inset, 10px));
    }
    :root[data-omni-theme="dark"] .magnatus-reviews-mug {
        --reviews-rim-inset: 20px;
    }
}

@media screen and (width: 1024px) and (height: 768px) {
    :root[data-omni-theme="light"] .magnatus-hero-slide-reviews {
        --reviews-phone-mask: linear-gradient(110deg, transparent 71%, black 71.8%);
        --reviews-mug-display: block;
    }
    :root[data-omni-theme="light"] .magnatus-hero-slide-reviews .magnatus-reviews-mug {
        --reviews-still-y: calc(50% + 20px);
    }
}

@media screen and (width < 700px) {
    :root[data-omni-storefront="magnatus"] .magnatus-section-hero.magnatus-scene:not(.magnatus-section-hero--faq) {
        aspect-ratio: auto;
        min-block-size: calc(var(--magnatus-section-photo-height) + var(--magnatus-menu-inset, 0px));
    }

    .magnatus-section-hero:where(:not(.magnatus-section-hero--faq)) > .magnatus-scene__copy {
        align-self: start;
        inline-size: min(62%, 27rem);
    }

    /* Use the quiet left side of the panorama behind the copy. The mobile subject
       sits at its original aspect ratio towards the bottom right. */
    :root[data-omni-storefront="magnatus"] .magnatus-section-hero:where(:not(.magnatus-section-hero--faq)) > .magnatus-scene__photo {
        background-image: var(--section-backdrop);
        background-size: 320% auto;
        background-position: left center;
    }

    .magnatus-section-hero:where(:not(.magnatus-section-hero--faq)) > .magnatus-scene__photo::before {
        content: "";
        position: absolute;
        inset: auto 0 0 auto;
        inline-size: 69%;
        aspect-ratio: 7 / 4;
        background: var(--scene-image) center / cover no-repeat;
        mask-image: linear-gradient(to right, transparent, black 16%), linear-gradient(to bottom, transparent, black 12%);
        mask-composite: intersect;
    }

    /* Keep the face, laptop and camera in one continuous shot. */
    :root[data-omni-storefront="magnatus"] :is(.magnatus-section-hero--contacts, .magnatus-section-hero--video) > .magnatus-scene__photo {
        background-size: cover;
        background-position: 79% center;
    }

    .magnatus-section-hero.magnatus-section-hero--contacts > .magnatus-scene__copy {
        inline-size: min(54%, 27rem);
    }

    :root[data-omni-storefront="magnatus"][data-omni-theme]:not([data-omni-high-contrast]) .magnatus-section-hero--contacts {
        min-block-size: calc(var(--magnatus-menu-inset, 64px) + min(224px, var(--magnatus-section-photo-height)));

        @media (width >= 480px) {
            > .magnatus-scene__copy { inline-size: min(44%, 263px); }

            /* In a wider, shallow frame the panorama keeps the face below the menu. */
            > .magnatus-scene__photo::before {
                --contacts-face-x: calc(1876 / 790);
                --contacts-center-x: calc(35cqw + 153px);
                background: var(--contacts-mobile-panorama) calc(var(--contacts-center-x) - var(--contacts-face-x) * 100cqh)
                    bottom / auto 100cqh no-repeat;
            }
        }
    }

    .magnatus-section-hero:is(.magnatus-section-hero--contacts, .magnatus-section-hero--video) > .magnatus-scene__photo::before {
        content: none;
    }

    :root[data-omni-storefront="magnatus"]:not([data-omni-high-contrast]) :is(.magnatus-section-hero--contacts, .magnatus-hero-slide-contacts:where(:not([hidden]))) > .magnatus-scene__photo::before {
        position: absolute;
        --contacts-mobile-zoom: 1.12;
        --contacts-mobile-size: calc(max(100cqw, 100cqh) * var(--contacts-mobile-zoom));
        --contacts-mobile-edge: calc(100cqw - var(--contacts-mobile-size));
        --contacts-mobile-origin: calc(var(--contacts-mobile-edge) * .45);
        --contacts-mobile-pan: clamp(0px, calc((700px - 100vw) * .04), 5px);
        --contacts-mobile-left: max(var(--contacts-mobile-edge),
            calc(var(--contacts-mobile-origin) - var(--contacts-mobile-pan)));
        content: "";
        inset: 0;
        inline-size: auto;
        aspect-ratio: auto;
        mask: none;
        border-image: none;
        background: var(--scene-image) var(--contacts-mobile-left) bottom / auto var(--contacts-mobile-size) no-repeat;

        @media (width <= 360px) {
            --contacts-mobile-zoom: 1.08;
            --contacts-mobile-origin: 0px;
            --contacts-mobile-pan: clamp(0px, calc(2px + (100vw - 320px) * .06), 5px);
        }
    }

    @media (width <= 360px) {
        :root[data-omni-storefront="magnatus"]:not([data-omni-high-contrast]) .magnatus-section-hero--contacts > .magnatus-scene__copy {
            inline-size: 55%;
        }
    }

    .magnatus-section-hero.magnatus-section-hero--reviews > .magnatus-scene__copy {
        inline-size: 52%;
    }

    .magnatus-section-hero:where(:not(.magnatus-section-hero--faq)) > .magnatus-scene__photo::after {
        background: linear-gradient(90deg, rgb(var(--section-veil) / .93), rgb(var(--section-veil) / .78) 38%, transparent 65%);
    }

    .magnatus-section-hero.magnatus-section-hero--video > .magnatus-scene__copy {
        inline-size: clamp(236px, 70%, 345px);
        padding-inline-end: 2px;
        padding-block-start: 7px;
    }
    .magnatus-section-hero.magnatus-section-hero--video > .magnatus-scene__copy h1 {
        font-size: clamp(20px, 5.4vw, 25px);
        text-wrap: balance;
    }
    .magnatus-section-hero.magnatus-section-hero--video > .magnatus-scene__copy p {
        font-size: clamp(14px, 3.7vw, 16px);
        line-height: 1.32;
    }

    .magnatus-section-hero--reviews > .magnatus-scene__photo::after {
        background: linear-gradient(90deg, rgb(var(--section-veil) / .91), rgb(var(--section-veil) / .74) 32%, transparent 55%);
    }

    /* The mobile still has its own crop. Use the bare desk at its natural proportions
       underneath it and keep the existing text treatment. */
    :root[data-omni-storefront="magnatus"]:not([data-omni-high-contrast]) :is(.magnatus-section-hero--reviews, .magnatus-hero-slide-reviews:not([hidden])) > .magnatus-scene__photo {
        background: var(--reviews-desk) center / auto 100% repeat-x;
    }
}


@media screen and (width < 700px) {
    :root[data-omni-storefront="magnatus"] :is(.magnatus-hero-slide-partner, .magnatus-section-hero--partner) {
        --partner-journal: url("../img/magnatus/approved-scenes/partner-journal-dark-tilt.webp?v=5660b49d8b2a");
        --partner-table: url("../img/magnatus/approved-scenes/partner-terms-desk-light.webp?v=f66322148dd9");
    }

    .magnatus-section-hero--partner {
        --partner-section-wash: linear-gradient(90deg, rgb(var(--section-veil) / .93), rgb(var(--section-veil) / .78) 38%, transparent 65%);
    }

    /* The foreground journal sits on the desk below the laptop. */
    :root[data-omni-storefront="magnatus"] :is(.magnatus-hero-slide-partner:not([hidden]), .magnatus-section-hero--partner) > .magnatus-scene__photo::after {
        background:
            var(--partner-journal) right max(8px, 2%) bottom max(12px, 5%) / min(34%, calc(42% - 36px)) auto no-repeat,
            var(--partner-section-wash, none);
    }

    /* Frame the laptop and both partners together beside the mobile caption. */
    :root[data-omni-storefront="magnatus"] :is(.magnatus-hero-slide-partner:not([hidden]), .magnatus-section-hero--partner) > .magnatus-scene__photo::before {
        content: "";
        position: absolute;
        inset: clamp(11px, 3.2vw, 18px) 0 auto auto;
        width: 73%;
        height: auto;
        aspect-ratio: 7 / 4;
        background: var(--scene-mobile-light) center / cover no-repeat;
        mask-image: linear-gradient(90deg, transparent, black 27%), linear-gradient(180deg, transparent, black 8% 78%, transparent);
        mask-composite: intersect;
    }

    :root[data-omni-theme="dark"][data-omni-storefront="magnatus"] :is(.magnatus-hero-slide-partner:not([hidden]), .magnatus-section-hero--partner) > .magnatus-scene__photo::before {
        background-image: var(--scene-mobile-dark);
    }

}

@media screen {
    :root[data-omni-storefront="magnatus"][data-omni-theme="dark"] :is(.magnatus-hero-slide-partner, .magnatus-section-hero--partner) {
        --partner-table: url("../img/magnatus/approved-scenes/reviews-cafe-dark-wood.webp?v=9044036f3d0c");
    }
}
@media screen and (width >= 700px) {
    :root[data-omni-storefront="magnatus"]:not([data-omni-high-contrast]) :is(.magnatus-hero-slide-partner:not([hidden]), .magnatus-section-hero--partner) > .magnatus-scene__photo {
        container-type: size;
        /* Frame the bottom 464px of the 724px panorama, just below eye level. */
        background: var(--scene-image) 62% bottom / auto calc(100% * 724 / 464) no-repeat;
    }

    /* This caption also sizes the carousel's shared text row while its slide is hidden. */
    :root[data-omni-theme] .magnatus-hero-slide-partner > .magnatus-scene__copy {
        max-inline-size: min(32vw, 27rem);
    }

    :root[data-omni-storefront="magnatus"]:not([data-omni-high-contrast]) :is(.magnatus-hero-slide-partner:not([hidden]), .magnatus-section-hero--partner) > .magnatus-scene__photo::before,
    :root[data-omni-storefront="magnatus"]:not([data-omni-high-contrast]) :is(.magnatus-hero-slide-partner:not([hidden]), .magnatus-section-hero--partner) > .magnatus-scene__photo::after {
        content: none;
    }

    :root[data-omni-theme="dark"] :is(.magnatus-hero-slide-partner, .magnatus-section-hero--partner) {
        --partner-office: url("../img/magnatus/approved-scenes/partner-office-dark.webp?v=0216a7e1b5f2");
    }

    /* Reveal more floor and wall as the viewport widens; keep the meeting at native scale. */
    @container (aspect-ratio > 4117 / 464) {
        :root[data-omni-storefront="magnatus"]:not([data-omni-high-contrast]) :is(.magnatus-hero-slide-partner:not([hidden]), .magnatus-section-hero--partner) > .magnatus-scene__photo::before {
            content: "";
            position: absolute;
            inset: 0;
            border-image-source: var(--scene-image);
            inset-inline-end: calc(40cqw - 40cqh * 4117 / 464);
            border-image-slice: 520 0 0 40% fill;
            border-image-width: 0 0 0 calc(60cqw - 20cqh * 4117 / 464);
        }

        :root[data-omni-storefront="magnatus"]:not([data-omni-high-contrast]) :is(.magnatus-hero-slide-partner:not([hidden]), .magnatus-section-hero--partner) > .magnatus-scene__photo::after {
            content: "";
            position: absolute;
            inset: 0 0 0 auto;
            inline-size: calc(40cqw - 40cqh * 4117 / 464);
            background: var(--partner-office, url("../img/magnatus/approved-scenes/partner-office-light.webp?v=4b74433a8c3f")) left bottom / max(100%, calc(100cqh * 1732 / 464)) 100% no-repeat;
        }
    }
}
@media screen and (width < 700px) {
    :root[data-omni-storefront="magnatus"]:not([data-omni-high-contrast]) :is(.magnatus-hero-slide-partner:not([hidden]), .magnatus-section-hero--partner) > .magnatus-scene__photo {
        background: var(--partner-table) left center / cover no-repeat;
    }
    :root[data-omni-theme="dark"] .magnatus-section-hero--partner {
        --partner-section-wash: linear-gradient(90deg, rgb(12 18 25 / .28), transparent 68%);
    }
    :root[data-omni-theme="dark"] .magnatus-hero-slide-partner > .magnatus-scene__copy::before {
        background-color: rgb(12 18 25 / .33);
    }
}

@media screen and (700px <= width < 992px) {
    :root[data-omni-theme] .magnatus-hero-slide-partner > .magnatus-scene__copy {
        inline-size: 31%;
    }
}

@media screen {
    :root[data-omni-theme="light"] :is(.magnatus-section-hero--reviews, .magnatus-hero-slide-reviews, .magnatus-section-hero--aml) {
        --cafe-wood: url("../img/magnatus/approved-scenes/reviews-cafe-wood.webp?v=05ea3a51d218");
        --cafe-corner: url("../img/magnatus/approved-scenes/reviews-cafe-corner.webp?v=a78266d0e55f");
    }
    :root[data-omni-theme="dark"] :is(.magnatus-section-hero--reviews, .magnatus-hero-slide-reviews, .magnatus-section-hero--aml) {
        --cafe-wood: url("../img/magnatus/approved-scenes/reviews-cafe-dark-wood.webp?v=9044036f3d0c");
        --cafe-corner: url("../img/magnatus/approved-scenes/reviews-cafe-dark-corner.webp?v=a907be45f176");
    }
    .magnatus-section-hero--aml {
        --aml-objects: url("../img/magnatus/approved-scenes/aml-objects-light.webp?v=140ad00639ce");
        --aml-mobile-objects: url("../img/magnatus/approved-scenes/aml-objects-light-mobile.webp?v=518e3f732597");
    }
    [data-omni-theme="dark"] .magnatus-section-hero--aml {
        --aml-objects: url("../img/magnatus/approved-scenes/aml-objects-dark.webp?v=271ec8025820");
        --aml-mobile-objects: url("../img/magnatus/approved-scenes/aml-objects-dark-mobile.webp?v=861395c70f64");
    }
    :root[data-omni-storefront="magnatus"][data-omni-theme="dark"]:not([data-omni-high-contrast]) .magnatus-section-hero--aml > .magnatus-scene__photo::before {
        /* Reveal the tabletop around the upper rim. Keep the glass and contact shadow opaque. */
        --aml-lens-x: 86.95%;
        --aml-lens-radius-x: 6.4%;
        mask-image:
            radial-gradient(ellipse var(--aml-lens-radius-x) 17.1% at var(--aml-lens-x) 30.7%,
                black 100%, rgb(0 0 0 / .2) 119% 148%, black 175%),
            linear-gradient(to bottom, transparent 31%, black 45%);
        mask-composite: add;
    }

    :root[data-omni-storefront="magnatus"]:not([data-omni-high-contrast]) .magnatus-section-hero--aml > .magnatus-scene__photo {
        /* Leave tabletop beneath the magnifier when the reading column narrows. */
        --aml-corner-offset: clamp(-52px, calc(35vw - 315px), 0px);
        background: var(--cafe-corner) right var(--aml-corner-offset) bottom / auto 100% no-repeat,
            var(--cafe-wood) right bottom / auto 100% repeat-x;
    }
    :root[data-omni-storefront="magnatus"]:not([data-omni-high-contrast]) .magnatus-section-hero--aml > .magnatus-scene__photo::after {
        content: none;
    }
}

@media screen and (width >= 700px) {
    .magnatus-section-hero--aml > .magnatus-scene__photo::before {
        /* Keep the group beside the same reading column as the heading. */
        --aml-copy-end: calc(max(0px, (100cqw - var(--omni-ui-content-width)) / 2) + var(--public-gutter) + min(41cqw, 35rem));
        /* Keep the notebook below the menu until there is enough room beside it. */
        --aml-menu-clearance: clamp(0px, 1056px - 100cqw, 64px);
        --aml-height: min(88cqh, calc(100cqh - var(--aml-menu-clearance)), calc((100cqw - var(--aml-copy-end) - 32px) / 1.44));
        --aml-book-start: min(calc(var(--aml-copy-end) + clamp(48px, 5.7cqw, 235px)), calc(100cqw - 1.44 * var(--aml-height) - 20px));
    }
    :root[data-omni-storefront="magnatus"]:not([data-omni-high-contrast]) .magnatus-section-hero--aml > .magnatus-scene__photo::before {
        inset: auto auto 5px calc(var(--aml-book-start) - 1.518 * var(--aml-height));
        width: calc(3 * var(--aml-height));
        height: var(--aml-height);
        border-image: none;
        background: var(--aml-objects) center / contain no-repeat;
    }
}

@media screen and (width < 700px) {
    :root[data-omni-storefront="magnatus"][data-omni-theme="dark"]:not([data-omni-high-contrast]) .magnatus-section-hero--aml > .magnatus-scene__photo::before {
        --aml-lens-x: 81.75%;
        --aml-lens-radius-x: 11%;
    }
    :root[data-omni-storefront="magnatus"]:not([data-omni-high-contrast]) .magnatus-section-hero--aml.magnatus-scene {
        grid-template-rows: auto 181px;
        aspect-ratio: auto;
        min-block-size: 0;
    }
    :root[data-omni-storefront="magnatus"]:not([data-omni-high-contrast]) .magnatus-section-hero--aml > .magnatus-scene__copy {
        grid-area: 1 / 1;
        align-self: start;
        inline-size: calc(100% - 45px);
        padding-block: 12px 0;
    }
    :root[data-omni-storefront="magnatus"]:not([data-omni-high-contrast]) .magnatus-section-hero--aml > .magnatus-scene__photo {
        /* Crop into the continuous tabletop so the title and the loupe both sit inside its edge. */
        --aml-corner-offset: min(-64px, calc(30vw - 182px));
        background-size: auto calc(100% + 180px);
    }
    :root[data-omni-storefront="magnatus"]:not([data-omni-high-contrast]) .magnatus-section-hero--aml > .magnatus-scene__photo::before {
        --aml-height: min(163px, 48cqw);
        inset: auto auto 4px calc(44cqw - .9975 * var(--aml-height));
        height: var(--aml-height);
        width: calc(1.75 * var(--aml-height));
        background: var(--aml-mobile-objects) center / contain no-repeat;
        mask-image: none;
    }
}

@media screen {
    :root[data-omni-theme="light"] :is(.magnatus-section-hero--reviews, .magnatus-hero-slide-reviews) {
        --reviews-cafe-window: url("../img/magnatus/approved-scenes/reviews-cafe-window.webp?v=07d4b8881baf");
        --reviews-cafe-ru: url("../img/magnatus/approved-scenes/reviews-cafe-label-ru.svg?v=8b9bf0ca8660");
        --reviews-cafe-en: url("../img/magnatus/approved-scenes/reviews-cafe-label-en.svg?v=e40993333c73");
        --reviews-cafe-surface: #e2e2e2;
        --reviews-cafe-group: url("../img/magnatus/approved-scenes/reviews-cafe-group.webp?v=f0a6eceefeb1");
    }
    :root[data-omni-theme="dark"] :is(.magnatus-section-hero--reviews, .magnatus-hero-slide-reviews) {
        --reviews-cafe-window: url("../img/magnatus/approved-scenes/reviews-cafe-dark-window.webp?v=30c3f8f9c624");
        --reviews-cafe-ru: url("../img/magnatus/approved-scenes/reviews-cafe-dark-label-ru.svg?v=e77abe04d835");
        --reviews-cafe-en: url("../img/magnatus/approved-scenes/reviews-cafe-dark-label-en.svg?v=0a5b940d8a66");
        --reviews-cafe-surface: #232b35;
        --reviews-cafe-group: url("../img/magnatus/approved-scenes/reviews-cafe-dark-group.webp?v=085514f4d7dd");
    }
    :root[data-omni-storefront="magnatus"][data-omni-theme]:not([data-omni-high-contrast]) :is(.magnatus-section-hero--reviews, .magnatus-hero-slide-reviews:not([hidden])) {
        &:lang(en) {
            --reviews-cafe-label: var(--reviews-cafe-en);
        }
        > .magnatus-scene__photo {
            /* Photograph and screen label use identical coordinates at every crop. */
            background-image: var(--reviews-cafe-label, var(--reviews-cafe-ru)), var(--reviews-cafe-window), var(--cafe-wood);
            background-size: auto 100%;
            background-position: right bottom;
            background-repeat: no-repeat, no-repeat, repeat-x;
        }
        .magnatus-reviews-stage {
            display: none;
        }
        > .magnatus-scene__photo::before, > .magnatus-scene__photo::after {
            content: none;
        }

        @media (width >= 1488px) {
            > .magnatus-scene__photo {
                background-image: var(--cafe-corner), var(--cafe-wood);
                background-repeat: no-repeat, repeat-x;
            }
            > .magnatus-scene__photo::before {
                /* Follow the FAQ reading column. Keep the café window anchored to the viewport. */
                --reviews-group-inset: max(0px, calc((100cqw - var(--omni-ui-content-width)) / 2 - 5cqh));
                content: "";
                position: absolute;
                inset: 0;
                border-image: none;
                background-image: var(--reviews-cafe-label, var(--reviews-cafe-ru)), var(--reviews-cafe-group);
                background-size: auto 100%;
                background-position: right var(--reviews-group-inset) bottom;
                background-repeat: no-repeat;
            }
        }
        @media (700px <= width < 1200px) {
            > .magnatus-scene__photo {
                background-size: auto calc(100% - var(--magnatus-menu-inset, 0px));
            }
            > .magnatus-scene__photo::before {
                /* Continue the top of the café photograph behind the compact menu.
                   The cup, phone and caption below keep their original scale. */
                --reviews-tablet-photo-height: calc(100cqh - var(--magnatus-menu-inset, 0px));
                content: "";
                position: absolute;
                inset: 0 0 auto;
                height: calc(var(--magnatus-menu-inset, 0px) + .1 * var(--reviews-tablet-photo-height));
                border-image: none;
                background-image: var(--reviews-cafe-window), var(--cafe-wood);
                background-position: right top;
                background-repeat: no-repeat, repeat-x;
                background-size: calc(3 * var(--reviews-tablet-photo-height)) 1000%,
                    calc(1.5 * var(--reviews-tablet-photo-height)) 1000%;
            }
        }
        @media (width < 700px) {
            grid-template-rows: auto auto;
            background: var(--reviews-cafe-surface) var(--cafe-wood) left top / auto 100% repeat-x;

            > .magnatus-scene__copy {
                inline-size: 100%;
            }
            &.magnatus-hero-slide-reviews > .magnatus-scene__copy {
                grid-area: 1 / 1;
                inline-size: auto;
                margin-inline: var(--hero-copy-inset);
            }
            &.magnatus-hero-slide-reviews > .magnatus-scene__copy::before {
                content: none;
            }
            .magnatus-review-title__brand {
                display: inline;
            }
            > .magnatus-scene__photo {
                position: relative;
                inset: auto;
                grid-area: 2 / 1;
                aspect-ratio: 2 / 1;
            }
        }
    }
}

/* BEGIN Magnatus Terms composition */
@media screen {
    :is(.magnatus-hero-slide-terms, .magnatus-section-hero--terms) {
        --terms-window: url("../img/magnatus/approved-scenes/terms-window-light.webp?v=fd9908eff7b8");
        --terms-window-mobile: url("../img/magnatus/approved-scenes/terms-window-light-mobile.webp?v=b195d2fb465a");
        --terms-desk: url("../img/magnatus/approved-scenes/terms-light-desk.webp?v=1612a65e85aa");
        --terms-notebook: url("../img/magnatus/approved-scenes/terms-light-ru-notebook.webp?v=a23652cb3f15");
    }
    :is(.magnatus-hero-slide-terms, .magnatus-section-hero--terms):lang(en) {
        --terms-notebook: url("../img/magnatus/approved-scenes/terms-light-en-notebook.webp?v=1ac997581b0c");
    }
    [data-omni-theme="dark"] :is(.magnatus-hero-slide-terms, .magnatus-section-hero--terms) {
        --terms-window: url("../img/magnatus/approved-scenes/terms-window-dark.webp?v=f8129c64a8b6");
        --terms-window-mobile: url("../img/magnatus/approved-scenes/terms-window-dark-mobile.webp?v=6c9790cb2699");
        --terms-desk: url("../img/magnatus/approved-scenes/terms-dark-desk.webp?v=931301c7490e");
        --terms-notebook: url("../img/magnatus/approved-scenes/terms-dark-ru-notebook.webp?v=b3265ac7e32a");
    }
    [data-omni-theme="dark"] :is(.magnatus-hero-slide-terms, .magnatus-section-hero--terms):lang(en) {
        --terms-notebook: url("../img/magnatus/approved-scenes/terms-dark-en-notebook.webp?v=8d7ce8f53201");
    }
}

/* Use the same large-print notebook on the mobile Terms page and carousel slide. */
@media screen and (width < 700px) {
    :is(.magnatus-hero-slide-terms, .magnatus-section-hero--terms) {
        --terms-mobile-notebook-width: clamp(73vw, 286px, 86vw);
        --terms-notebook: url("../img/magnatus/approved-scenes/terms-light-ru-notebook-compact.webp?v=f16a1674d643");
    }
    :is(.magnatus-hero-slide-terms, .magnatus-section-hero--terms):lang(en) {
        --terms-notebook: url("../img/magnatus/approved-scenes/terms-light-en-notebook-compact.webp?v=9a58c8b7a204");
    }
    [data-omni-theme="dark"] :is(.magnatus-hero-slide-terms, .magnatus-section-hero--terms) {
        --terms-notebook: url("../img/magnatus/approved-scenes/terms-dark-ru-notebook-compact.webp?v=aac601078906");
    }
    [data-omni-theme="dark"] :is(.magnatus-hero-slide-terms, .magnatus-section-hero--terms):lang(en) {
        --terms-notebook: url("../img/magnatus/approved-scenes/terms-dark-en-notebook-compact.webp?v=053c816fe611");
    }
}

@media screen and (width >= 700px) {
    .magnatus-section-hero--terms {
        /* Match the reading column used by the page heading. */
        --terms-caption-end: calc(max(0px, (100cqw - var(--omni-ui-content-width)) / 2) + var(--public-gutter) + min(41cqw, 35rem));
    }

    .magnatus-section-hero--terms:not([hidden]) > .magnatus-scene__photo::after {
        content: none;
    }

    .magnatus-hero-slide-terms {
        --terms-caption-width: min(34vw, 440px);
        --terms-caption-end: calc(var(--hero-copy-inset) + var(--terms-caption-width));
    }

    .magnatus-hero-slide-terms > .magnatus-scene__copy {
        inline-size: var(--terms-caption-width);
    }

    .magnatus-hero-slide-terms > .magnatus-scene__copy > .h4 {
        text-wrap: balance;
    }

    :root[data-omni-storefront="magnatus"] :is(.magnatus-section-hero--terms, .magnatus-hero-slide-terms):not([hidden]) > .magnatus-scene__photo {
        container-type: size;
        /* Align the lamp base with the top of the notebook as the panorama crops vertically. */
        background: var(--terms-desk) right clamp(48%, calc(138px - 12vw), 0px) / cover no-repeat;
    }
    :root[data-omni-storefront="magnatus"] :is(.magnatus-section-hero--terms, .magnatus-hero-slide-terms):not([hidden]) > .magnatus-scene__photo::before {
        /* The transparent margin around the book leaves space beside the caption. */
        --book-left: max(calc(47cqw - 200px), calc(var(--terms-caption-end) - 16px));
        content: "";
        position: absolute;
        inset: auto auto 2cqh var(--book-left);
        width: min(139cqh, calc(81cqw - var(--book-left)));
        aspect-ratio: 45 / 28;
        border-image: none;
        background: var(--terms-notebook) center / contain no-repeat;
    }
}

/* The close-up desk shares its crop with the 85% lamp and vase on wide screens. */
@media screen and (width >= 2200px) {
    :root[data-omni-storefront="magnatus"] :is(.magnatus-section-hero--terms, .magnatus-hero-slide-terms):not([hidden]) > .magnatus-scene__photo {
        --terms-wide-props: url("../img/magnatus/approved-scenes/terms-light-props-wide.webp?v=4bcc507c30b0");
        background-image: var(--terms-wide-props), var(--terms-desk);
    }
    :root[data-omni-storefront="magnatus"][data-omni-theme="dark"] :is(.magnatus-section-hero--terms, .magnatus-hero-slide-terms):not([hidden]) > .magnatus-scene__photo {
        --terms-wide-props: url("../img/magnatus/approved-scenes/terms-dark-props-wide.webp?v=49f91dad1687");
    }
}

/* Narrow captions leave room for both outer corners of the notebook. */
@media screen and (700px <= width < 992px) {
    .magnatus-hero-slide-terms {
        --terms-caption-width: 29.5vw;
    }
}

/* Every slide shares the same tablet navigation row below the photograph. */
@media screen and (700px <= width < 1200px) {
    .magnatus-hero > .magnatus-hero__controls:not([hidden]) {
        grid-row: 5;
        justify-self: center;
        margin: 0;
    }
}

@media screen and (width < 700px) {
    :root[data-omni-storefront="magnatus"] .magnatus-section-hero--terms.magnatus-scene:not([hidden]) {
        grid-template-rows: auto auto;
        min-block-size: 0;
    }

    .magnatus-section-hero--terms:not([hidden]) > .magnatus-scene__copy {
        grid-area: 1 / 1;
        inline-size: 100%;
    }

    :root[data-omni-storefront="magnatus"] .magnatus-section-hero--terms:not([hidden]) > .magnatus-scene__photo {
        position: static;
        grid-area: 2 / 1;
        inline-size: 100%;
        aspect-ratio: 7 / 4;
        container-type: normal;
        background: var(--scene-image) center / contain no-repeat;
    }

    .magnatus-section-hero--terms:not([hidden]) > .magnatus-scene__photo::before,
    .magnatus-section-hero--terms:not([hidden]) > .magnatus-scene__photo::after {
        content: none;
    }
}
@media screen and (width >= 700px) {
    :root[data-omni-storefront="magnatus"]:not([data-omni-high-contrast]) :is(.magnatus-section-hero--terms, .magnatus-hero-slide-terms):not([hidden]) > .magnatus-scene__photo {
        background: var(--scene-surface);
        &::before { z-index: 1; }
        &::after {
            /* Keep the lamp near the notebook while the right pane opens up on wide displays. */
            --window-height: max(118cqh, 32cqw);
            --window-width: calc(var(--window-height) * 5800 / 900);
            --window-left: clamp(calc(100cqw - var(--window-width)), calc(50.5cqw + 112px - 3.71 * var(--window-height)), 0px);
            --window-top: clamp(calc(100cqh - var(--window-height)), calc(38cqh - .515 * var(--window-height)), 0px);
            content: "";
            position: absolute;
            inset: 0;
            z-index: 0;
            background: var(--terms-window) var(--window-left) var(--window-top) / var(--window-width) auto no-repeat;
            @media (width >= 2200px) {
                --window-height: max(118cqh, min(27.2cqw, 740px), calc(100cqw * 900 / 5800));
                --window-left: clamp(calc(100cqw - var(--window-width)), calc(58cqw - 3.71 * var(--window-height)), 0px);
            }
        }
    }
}
/* END Magnatus Terms composition */

/* Keep the lighting and cast shadows inside the photograph at every viewport size. */
@media screen {
    :root[data-omni-storefront="magnatus"][data-omni-theme="light"]:not([data-omni-high-contrast]) .magnatus-section-hero--video > .magnatus-scene__photo {
        filter: url("../img/magnatus/approved-scenes/video-daylight-desk.svg?v=ef0ee27423d2#panorama");
        @media (width < 700px) {
            filter: url("../img/magnatus/approved-scenes/video-daylight-desk.svg?v=ef0ee27423d2#portrait");
        }
    }
    :root[data-omni-storefront="magnatus"] .magnatus-section-hero--video > .magnatus-scene__photo {
        background: var(--video-desk) left bottom / cover no-repeat var(--scene-surface);
        container-type: size;
    }
    :root[data-omni-storefront="magnatus"] .magnatus-section-hero--video > .magnatus-scene__photo::before {
        content: "";
        position: absolute;
        /* Center the wallet near the Terms notebook while keeping the note clear of the copy. */
        --video-frame-height: min(100cqh, 29cqw);
        --video-frame-width: calc(var(--video-frame-height) * 3464 / 724);
        inset: auto auto 0 max(calc(50.5cqw + 56px - 1.70 * var(--video-frame-height)), calc(min(40cqw, 31rem) + var(--public-gutter) + 14px - 1.21 * var(--video-frame-height)), calc(100cqw - var(--video-frame-width)));
        inline-size: var(--video-frame-width);
        block-size: var(--video-frame-height);
        max-inline-size: none;
        aspect-ratio: auto;
        mask: linear-gradient(90deg, transparent, black 12%);
        border-image: none;
        background: var(--video-panorama) right bottom / contain no-repeat;
        @media (700px <= width < 850px) {
            mask-image: linear-gradient(90deg, transparent, black 12%), linear-gradient(to bottom, transparent, black 10%);
            mask-composite: intersect;
        }
    }
    .magnatus-section-hero.magnatus-section-hero--video > .magnatus-scene__photo::after {
        content: none;
    }
}

@media screen and (width < 700px) {
    :root[data-omni-storefront="magnatus"] .magnatus-section-hero.magnatus-section-hero--video:not([hidden]) {
        min-block-size: clamp(412px, calc(172px + 83vw), 550px);
    }
    :root[data-omni-storefront="magnatus"] .magnatus-section-hero--video > .magnatus-scene__photo {
        background: var(--video-portrait) center bottom / cover no-repeat;
    }
    :root[data-omni-storefront="magnatus"] .magnatus-section-hero--video > .magnatus-scene__photo::before {
        content: none;
    }
}

/* Size the carousel to the section headers, with separate planes for the two props. */
@media screen {
    .magnatus-hero-slide-exchange {
        --exchange-contact-shadow: rgb(29 32 38 / 32%);
        --exchange-cast-shadow: rgb(40 43 49 / 22%);
        --exchange-laptop: url("../img/magnatus/approved-scenes/exchange-laptop-light.webp?v=20cc40d2156b");
        --exchange-stack: url("../img/magnatus/approved-scenes/exchange-stack-light.webp?v=01fd6211ebdb");
        --exchange-stack-ink: url("../img/magnatus/approved-scenes/exchange-stack-ink-light.svg?v=1fe7eddd3b1c");
    }
    [data-omni-theme="dark"] .magnatus-hero-slide-exchange {
        --exchange-contact-shadow: rgb(7 11 17 / 56%);
        --exchange-cast-shadow: rgb(8 13 20 / 43%);
        --desk-texture: url("../img/magnatus/approved-scenes/exchange-wood-dark.webp?v=bea0f43249de");
        --exchange-laptop: url("../img/magnatus/approved-scenes/exchange-laptop-dark.webp?v=0ad730090286");
        --exchange-stack: url("../img/magnatus/approved-scenes/exchange-stack-dark.webp?v=7cceb255133c");
        --exchange-stack-ink: url("../img/magnatus/approved-scenes/exchange-stack-ink-dark.svg?v=98bf8480a8b7");
    }
    :root[data-omni-storefront="magnatus"]:not([data-omni-high-contrast]) .magnatus-hero-slide-exchange:not([hidden]) > .magnatus-scene__photo {
        container-type: size;
        background: var(--desk-texture) left center / auto 100% repeat-x;
        --laptop-center: calc(50cqw + min(2.4cqw, 48px));
        --laptop-width: min(170.8cqh, 46.36cqw);
        --stack-size: min(91cqh, 27.45cqw);
        --prop-gap: clamp(18px, 2.4cqw, 64px);
        @media (700px <= width < 1200px) {
            /* The top lettering starts roughly a sixth of the way down the stack. */
            --stack-size: min(27.45cqw, calc((100cqh - var(--magnatus-menu-inset, 0px) - 4px) / .86));
        }
        &::before, &::after {
            content: "";
            position: absolute;
            pointer-events: none;
            /* The key light falls from the upper right. Keep the tight contact edge
               and let the softer cast shadow scale with the visible object. */
            filter: drop-shadow(-1px 1.5px 1px var(--exchange-contact-shadow))
                drop-shadow(calc(-.025 * var(--shadow-span)) calc(.012 * var(--shadow-span))
                    calc(.017 * var(--shadow-span)) var(--exchange-cast-shadow));
        }
        &::before {
            --shadow-span: calc(.7 * var(--laptop-width));
            inset: 0 auto auto calc(var(--laptop-center) - .527 * var(--laptop-width));
            width: var(--laptop-width);
            aspect-ratio: 1060 / 660;
            background: var(--exchange-laptop) center / contain no-repeat;
        }
        &::after {
            --shadow-span: var(--stack-size);
            inset: auto auto 4px min(calc(100cqw - var(--stack-size)),
                calc(var(--laptop-center) + .414 * var(--laptop-width) + var(--prop-gap) - .077 * var(--stack-size)));
            width: var(--stack-size);
            aspect-ratio: 1;
            background: var(--exchange-stack-ink) center / contain no-repeat,
                var(--exchange-stack) center / contain no-repeat;
            mask-image: none;
        }
    }
}
@media screen and (width >= 700px) {
    :root[data-omni-theme] .magnatus-hero { container-type: inline-size; }
    :root[data-omni-theme] .magnatus-hero::before {
        aspect-ratio: auto;
        block-size: var(--magnatus-section-photo-height);
    }
}
@media screen and (700px <= width < 1200px) {
    :root[data-omni-theme] .magnatus-hero {
        grid-template-rows: minmax(4px, 1fr) auto minmax(4px, 1fr) auto;

        > .magnatus-hero__slide { grid-row-end: 4; }
        > .magnatus-hero__controls:not([hidden]) { grid-row: 4; }
        .magnatus-hero__slide > .magnatus-scene__copy { inline-size: min(44%, 440px); max-inline-size: none; }
        .magnatus-scene__copy h2 { font-size: clamp(21px, 2.8vw, 31px); }
        .magnatus-hero__slide .h4 { font-size: 16px; line-height: 1.3; margin-block-start: 5px; }
        .magnatus-hero-slide-exchange > .magnatus-scene__copy { inline-size: 36%; }
        .magnatus-hero-slide-terms > .magnatus-scene__copy { inline-size: var(--terms-caption-width); }
    }
}
@media screen and (1200px <= width < 1400px) {
    :root[data-omni-theme] .magnatus-hero {
        grid-template-rows: minmax(4px, 1fr) auto auto minmax(4px, 1fr);
    }
}
@media screen and (width < 700px) {
    :root[data-omni-theme] .magnatus-hero {
        min-block-size: calc(var(--magnatus-section-photo-height) + var(--magnatus-menu-inset, 0px));
        grid-template-rows: 4px auto minmax(4px, 1fr) auto;
    }
    :root[data-omni-storefront="magnatus"]:not([data-omni-high-contrast]) .magnatus-hero-slide-exchange:not([hidden]) > .magnatus-scene__photo {
        --laptop-center: 54cqw;
        --laptop-width: min(56cqw, 125cqh);
        --stack-size: min(40cqw, calc(100cqh - var(--magnatus-menu-inset, 0px) - 5px));
        &::before {
            inset-block: auto 3px;
            mask-image: linear-gradient(to bottom, transparent, black 13%);
        }
        &::after { inset: auto 1px 4px auto; }
    }
    :root[data-omni-theme] .magnatus-hero-slide-exchange > .magnatus-scene__copy::before {
        inset-block: -6px 0;
        inset-inline-end: -4px;
        mask-image: linear-gradient(to right, black 63%, rgb(0 0 0 / 90%) 81%, transparent),
            linear-gradient(to bottom, black 76%, transparent);
        mask-composite: intersect;
    }
    :root[data-omni-theme] .magnatus-hero .magnatus-hero-slide-exchange .magnatus-hero__action { margin-inline-start: 0; }
}
@media screen and (width < 480px) {
    :root[data-omni-storefront="magnatus"]:not([data-omni-high-contrast]) .magnatus-hero-slide-exchange:not([hidden]) > .magnatus-scene__photo {
        --laptop-center: 69cqw;
        --laptop-width: min(46cqw, 125cqh);
    }

    .magnatus-hero-slide-faq > .magnatus-scene__photo {
        --faq-photo-height: min(33cqw, 100cqh);
    }

    .magnatus-hero-slide-faq .magnatus-scene__copy > h2 + .h4 {
        max-inline-size: 45vw;
    }

    .magnatus-hero-slide-exchange .magnatus-scene__copy > h2 + .h4 {
        max-inline-size: 48vw;
    }

    :root[data-omni-theme] .magnatus-hero-slide-faq > .magnatus-scene__copy::before {
        inset-inline-end: auto;
        inline-size: 61vw;
        mask-image: linear-gradient(to right, black 65%, transparent),
            linear-gradient(to bottom, black 70%, transparent);
    }

    :root[data-omni-theme] .magnatus-hero {
        .magnatus-hero__slide .magnatus-scene__copy h2 { font-size: 22px; line-height: 1.1; }
        .magnatus-hero__slide .h4 { font-size: 15px; line-height: 1.25; margin-block-start: 4px; }
        .magnatus-hero-slide-exchange > .magnatus-scene__copy { inline-size: 60%; }
        /* Only the active partner layout needs its narrow caption beside the portrait. */
        .magnatus-hero-slide-partner[hidden] > .magnatus-scene__copy { inline-size: max(64%, 200px); }
        .magnatus-hero-slide-contacts > .magnatus-scene__copy { inline-size: 49%; }
    }
}
@media screen and (width < 360px) {
    :root[data-omni-theme] .magnatus-hero {
        grid-template-rows: 0 auto minmax(0, 1fr) auto;
        .magnatus-hero-slide-exchange:lang(en) .magnatus-scene__copy h2 { font-size: 20px; line-height: 1.05; }
    }
}

@media screen {
    .magnatus-scene > .magnatus-scene__copy {
        margin-block-start: var(--magnatus-menu-inset, 0px);
    }
}

@media screen and (width >= 700px) {
    .magnatus-hero::before {
        box-sizing: content-box;
        padding-block-start: var(--magnatus-menu-inset, 0px);
    }
}

@media screen and (width < 700px) {
    /* Keep the shared carousel rows for the other slides. Only the active
       Terms slide contributes the height of its separate photo. */
    .magnatus-hero > .magnatus-hero-slide-terms.magnatus-scene:not([hidden]) {
        grid-template-rows: auto auto;
        align-content: start;
        gap: 12px;
        padding-block-start: 16px;
    }

    .magnatus-hero-slide-terms.magnatus-scene:not([hidden]) > .magnatus-scene__copy {
        grid-area: 1 / 1;
        inline-size: auto;
    }

    .magnatus-hero-slide-terms.magnatus-scene:not([hidden]) > .magnatus-scene__copy::before {
        content: none;
    }

    .magnatus-hero-slide-terms.magnatus-scene:not([hidden]) > .magnatus-scene__photo {
        position: static;
        grid-area: 2 / 1;
        inline-size: 100%;
        aspect-ratio: 7 / 4;
        background-size: contain;
    }
}
