/* IFUNDA Website — Version 22
   Café background, animated navigation, branded header, footer and product showcase. */

:root {
    --coffee-dark: #21140f;
    --coffee-deep: #2f1c13;
    --coffee-mid: #5b3825;
    --coffee-light: #a7774f;
    --cream: #fff6e8;
    --gold: #e5b55f;
    --gold-bright: #ffd98a;
    --nav-size: 430px;
    --menu-transition: 560ms cubic-bezier(.2, .85, .2, 1);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background-color: var(--coffee-dark);
    background-image:
        linear-gradient(90deg, rgba(24, 14, 10, .03) 0%, rgba(24, 14, 10, .04) 52%, rgba(24, 14, 10, .22) 100%),
        image-set(
            url("../images/coffee-shop-study-background.avif") type("image/avif"),
            url("../images/coffee-shop-study-background.webp") type("image/webp")
        );
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    color: var(--cream);
    font-family: Aptos, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.page-canvas {
    position: relative;
    min-height: 100vh;
}

.page-anchor {
    position: absolute;
    inset: 0 auto auto 0;
}

.half-moon-nav {
    position: fixed;
    z-index: 20;
    top: 50%;
    right: 0;
    width: 390px;
    height: var(--nav-size);
    transform: translateY(-50%);
    pointer-events: none;
    isolation: isolate;
}

.moon-surface {
    position: absolute;
    z-index: -1;
    top: 50%;
    right: calc(var(--nav-size) / -2);
    width: var(--nav-size);
    height: var(--nav-size);
    overflow: hidden;
    border: 1px solid rgba(255, 224, 171, .22);
    border-radius: 50%;
    opacity: 0;
    background:
        radial-gradient(circle at 22% 34%, rgba(255, 224, 171, .18), transparent 28%),
        linear-gradient(145deg, rgba(80, 49, 31, .94), rgba(28, 16, 11, .97));
    box-shadow:
        -25px 0 70px rgba(12, 6, 3, .55),
        inset 20px 0 55px rgba(255, 210, 138, .08),
        inset -15px 0 42px rgba(0, 0, 0, .34);
    backdrop-filter: blur(18px) saturate(118%);
    transform: translateY(-50%) scale(.7) rotate(8deg);
    transform-origin: right center;
    transition:
        opacity 300ms ease,
        transform var(--menu-transition);
}

.half-moon-nav.is-open .moon-surface {
    opacity: 1;
    transform: translateY(-50%) scale(1) rotate(0deg);
}

.moon-surface::before,
.moon-surface::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 217, 138, .12);
    border-radius: 50%;
}

.moon-surface::before {
    inset: 34px;
}

.moon-surface::after {
    inset: 72px;
}

.moon-glow {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 214, 136, .13);
    filter: blur(1px);
}

.moon-glow-one {
    top: 76px;
    left: 76px;
    width: 48px;
    height: 48px;
}

.moon-glow-two {
    bottom: 82px;
    left: 98px;
    width: 25px;
    height: 25px;
}

.nav-items {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.nav-link {
    position: absolute;
    display: flex;
    width: 180px;
    min-height: 58px;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    border-radius: 999px;
    color: rgba(255, 246, 232, .82);
    font-size: .92rem;
    font-weight: 650;
    letter-spacing: .01em;
    line-height: 1;
    opacity: 0;
    outline: none;
    text-decoration: none;
    transform: translate(82px, 0) scale(.6);
    transform-origin: right center;
    transition:
        color 220ms ease,
        opacity 280ms ease,
        transform var(--menu-transition);
}

.half-moon-nav.is-open .nav-link {
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, 0) scale(1);
}

.nav-link-home {
    top: 48px;
    right: 17px;
    transition-delay: 40ms;
}

.nav-link-products {
    top: 130px;
    right: 94px;
    transition-delay: 90ms;
}

.nav-link-about {
    right: 94px;
    bottom: 130px;
    transition-delay: 140ms;
}

.nav-link-contact {
    right: 17px;
    bottom: 48px;
    transition-delay: 190ms;
}

.nav-label {
    padding: 11px 0 11px 18px;
    opacity: .86;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
    transform: translateX(6px);
    transition: opacity 200ms ease, transform 260ms ease;
}

.nav-icon {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    place-items: center;
    border: 1px solid rgba(255, 221, 161, .25);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(142, 91, 51, .72), rgba(55, 31, 20, .9));
    box-shadow:
        0 10px 25px rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255, 255, 255, .13);
    transition: transform 260ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.nav-icon svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
    color: var(--gold-bright);
}

.nav-link:hover .nav-label,
.nav-link:focus-visible .nav-label {
    opacity: 1;
    transform: translateX(0);
}

.nav-link:hover .nav-icon,
.nav-link:focus-visible .nav-icon,
.nav-link.is-active .nav-icon {
    border-color: rgba(255, 221, 161, .62);
    background: linear-gradient(145deg, rgba(179, 115, 57, .9), rgba(75, 40, 23, .96));
    box-shadow:
        0 13px 30px rgba(0, 0, 0, .36),
        0 0 24px rgba(229, 181, 95, .16),
        inset 0 1px 0 rgba(255, 255, 255, .18);
    transform: translateX(-5px) scale(1.08);
}

.moon-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 20px;
    display: grid;
    width: 88px;
    height: 88px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 226, 177, .4);
    border-radius: 50%;
    pointer-events: auto;
    cursor: pointer;
    color: var(--cream);
    background:
        radial-gradient(circle at 32% 26%, rgba(255, 222, 161, .2), transparent 30%),
        linear-gradient(145deg, rgba(126, 77, 43, .97), rgba(43, 24, 16, .98));
    box-shadow:
        0 18px 44px rgba(0, 0, 0, .38),
        0 0 0 7px rgba(255, 232, 193, .06),
        inset 0 1px 0 rgba(255, 255, 255, .15);
    transform: translateY(-50%);
    transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.moon-toggle:hover,
.moon-toggle:focus-visible {
    border-color: rgba(255, 220, 151, .8);
    box-shadow:
        0 22px 50px rgba(0, 0, 0, .46),
        0 0 0 9px rgba(255, 220, 151, .09),
        0 0 32px rgba(229, 181, 95, .18),
        inset 0 1px 0 rgba(255, 255, 255, .2);
    outline: none;
    transform: translateY(-50%) scale(1.04);
}

.half-moon-nav.is-open .moon-toggle {
    border-color: rgba(255, 220, 151, .72);
    transform: translateY(-50%) rotate(180deg);
}

.half-moon-nav.is-open .moon-toggle:hover,
.half-moon-nav.is-open .moon-toggle:focus-visible {
    transform: translateY(-50%) rotate(180deg) scale(1.04);
}

.toggle-icon {
    position: relative;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
}

.toggle-icon svg {
    position: absolute;
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
    transition: opacity 220ms ease, transform 360ms ease;
}

.icon-menu {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.icon-close {
    opacity: 0;
    transform: scale(.45) rotate(-90deg);
}

.half-moon-nav.is-open .icon-menu {
    opacity: 0;
    transform: scale(.45) rotate(90deg);
}

.half-moon-nav.is-open .icon-close {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.toggle-text {
    position: absolute;
    bottom: 14px;
    font-size: .57rem;
    font-weight: 750;
    letter-spacing: .15em;
    opacity: .72;
    text-transform: uppercase;
}

.toggle-ripple {
    position: absolute;
    inset: -1px;
    border: 1px solid rgba(255, 219, 151, .32);
    border-radius: inherit;
    animation: moon-pulse 2.8s ease-out infinite;
}

.half-moon-nav.is-open .toggle-ripple {
    animation-play-state: paused;
    opacity: 0;
}

@keyframes moon-pulse {
    0%, 35% {
        opacity: .5;
        transform: scale(1);
    }
    75%, 100% {
        opacity: 0;
        transform: scale(1.45);
    }
}

@media (max-width: 768px) {
    :root {
        --nav-size: 360px;
    }

    body {
        background-position: 28% center;
        background-attachment: scroll;
    }

    .half-moon-nav {
        width: 320px;
    }

    .nav-link {
        width: 156px;
        min-height: 50px;
        font-size: .82rem;
    }

    .nav-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .nav-icon svg {
        width: 20px;
        height: 20px;
    }

    .nav-link-home {
        top: 35px;
        right: 7px;
    }

    .nav-link-products {
        top: 106px;
        right: 72px;
    }

    .nav-link-about {
        right: 72px;
        bottom: 106px;
    }

    .nav-link-contact {
        right: 7px;
        bottom: 35px;
    }

    .moon-toggle {
        right: 12px;
        width: 76px;
        height: 76px;
    }

    .toggle-text {
        bottom: 11px;
        font-size: .52rem;
    }
}

@media (max-width: 430px) {
    :root {
        --nav-size: 330px;
    }

    .half-moon-nav {
        width: 288px;
    }

    .nav-link {
        width: 145px;
    }

    .nav-label {
        padding-left: 10px;
    }

    .nav-link-products,
    .nav-link-about {
        right: 62px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* Version 05 — IFUNDA brand header */
.site-header {
    position: fixed;
    z-index: 18;
    top: 0;
    left: 0;
    display: flex;
    width: min(760px, calc(100vw - 150px));
    min-height: 126px;
    align-items: center;
    padding: 26px 34px 24px 38px;
    background:
        linear-gradient(90deg, rgba(22, 13, 9, .92) 0%, rgba(32, 19, 12, .78) 58%, rgba(32, 19, 12, 0) 100%);
    pointer-events: none;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 222, 157, .13), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 58%);
    pointer-events: none;
}

.brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: var(--cream);
    outline: none;
    pointer-events: auto;
    text-decoration: none;
    animation: brand-arrive 900ms cubic-bezier(.16, .84, .24, 1) both;
}

.brand-mark {
    position: relative;
    display: grid;
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    place-items: center;
    border: 1px solid rgba(255, 222, 157, .35);
    border-radius: 21px;
    background:
        radial-gradient(circle at 26% 18%, rgba(255, 245, 205, .16), transparent 32%),
        linear-gradient(145deg, rgba(112, 67, 37, .92), rgba(36, 20, 13, .98));
    box-shadow:
        0 18px 45px rgba(0, 0, 0, .38),
        0 0 0 5px rgba(236, 188, 95, .06),
        inset 0 1px 0 rgba(255, 255, 255, .13);
    transform: rotate(-3deg);
    transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: -1px;
    overflow: hidden;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 32%, rgba(255, 245, 206, .24) 46%, transparent 59%);
    background-size: 220% 100%;
    mix-blend-mode: screen;
    animation: brand-sheen 5.2s ease-in-out infinite 1.1s;
    pointer-events: none;
}

.brand-mark svg {
    width: 48px;
    height: 48px;
    overflow: visible;
}

.brand-orbit,
.brand-spine {
    fill: none;
    stroke: url(#brandGold);
    stroke-linecap: round;
    stroke-width: 2.4;
}

.brand-book,
.brand-star {
    fill: url(#brandGold);
}

.brand-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.brand-name {
    position: relative;
    display: inline-block;
    width: fit-content;
    color: #fff8eb;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 760;
    letter-spacing: .16em;
    line-height: .9;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .5);
}

.brand-name::after {
    content: "";
    position: absolute;
    right: .12em;
    bottom: -9px;
    left: 0;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--gold-bright), rgba(229, 181, 95, .18), transparent);
    transform: scaleX(0);
    transform-origin: left;
    animation: brand-rule 800ms cubic-bezier(.2, .8, .2, 1) forwards 580ms;
}

.brand-tagline {
    margin-top: 9px;
    color: rgba(255, 240, 214, .82);
    font-size: clamp(.76rem, 1.25vw, .96rem);
    font-weight: 560;
    letter-spacing: .12em;
    line-height: 1.35;
    text-transform: uppercase;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .48);
}

.header-rule {
    position: absolute;
    right: 18%;
    bottom: 0;
    left: 38px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 218, 144, .5), rgba(255, 218, 144, .08), transparent);
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
    border-color: rgba(255, 226, 166, .78);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, .46),
        0 0 0 7px rgba(236, 188, 95, .09),
        0 0 34px rgba(229, 181, 95, .18),
        inset 0 1px 0 rgba(255, 255, 255, .17);
    transform: rotate(0deg) scale(1.04);
}

.brand:focus-visible {
    border-radius: 20px;
    box-shadow: 0 0 0 3px rgba(255, 217, 138, .38);
}

@keyframes brand-arrive {
    from {
        opacity: 0;
        transform: translate3d(-28px, -8px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes brand-rule {
    to { transform: scaleX(1); }
}

@keyframes brand-sheen {
    0%, 64%, 100% { background-position: 150% 0; opacity: 0; }
    72% { opacity: .7; }
    84% { background-position: -70% 0; opacity: 0; }
}

@media (max-width: 768px) {
    .site-header {
        width: calc(100vw - 84px);
        min-height: 104px;
        padding: 20px 18px 20px 22px;
        background: linear-gradient(90deg, rgba(22, 13, 9, .94), rgba(32, 19, 12, .7) 72%, transparent);
    }

    .brand {
        gap: 12px;
    }

    .brand-mark {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        border-radius: 17px;
    }

    .brand-mark svg {
        width: 40px;
        height: 40px;
    }

    .brand-name {
        font-size: clamp(1.55rem, 7vw, 2.25rem);
        letter-spacing: .12em;
    }

    .brand-tagline {
        max-width: 260px;
        font-size: .68rem;
        letter-spacing: .08em;
    }

    .header-rule {
        left: 22px;
    }
}

@media (max-width: 430px) {
    .site-header {
        width: calc(100vw - 66px);
        min-height: 92px;
        padding: 17px 10px 16px 16px;
    }

    .brand {
        gap: 10px;
    }

    .brand-mark {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 15px;
    }

    .brand-mark svg {
        width: 35px;
        height: 35px;
    }

    .brand-name {
        font-size: 1.42rem;
        letter-spacing: .1em;
    }

    .brand-tagline {
        max-width: 188px;
        font-size: .57rem;
        letter-spacing: .06em;
        line-height: 1.35;
    }
}


/* Version 06 — premium legal and copyright footer */
.site-footer {
    position: fixed;
    z-index: 16;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 220, 154, .2);
    background:
        linear-gradient(90deg, rgba(22, 13, 9, .96), rgba(38, 23, 15, .9) 56%, rgba(22, 13, 9, .94));
    box-shadow:
        0 -18px 50px rgba(7, 3, 2, .26),
        inset 0 1px 0 rgba(255, 255, 255, .035);
    backdrop-filter: blur(18px) saturate(120%);
    animation: footer-rise 850ms cubic-bezier(.16, .84, .24, 1) both 180ms;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 220, 150, .78) 18%, rgba(255, 220, 150, .16) 62%, transparent);
}

.footer-inner {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 90px;
    align-items: center;
    gap: 26px;
    grid-template-columns: auto minmax(260px, 1fr) auto;
    padding: 15px 126px 15px 34px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 13px;
    color: #fff6e8;
    outline: none;
    text-decoration: none;
}

.footer-brand-mark {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border: 1px solid rgba(255, 220, 154, .32);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(119, 72, 39, .82), rgba(39, 22, 14, .96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 8px 20px rgba(0, 0, 0, .24);
    transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.footer-brand-mark svg {
    width: 29px;
    height: 29px;
    fill: var(--gold);
}

.footer-brand-mark .footer-book-spine {
    fill: none;
    stroke: #ffe0a2;
    stroke-linecap: round;
    stroke-width: 1.3;
}

.footer-brand-name {
    font-size: .9rem;
    font-weight: 760;
    letter-spacing: .17em;
}

.footer-brand:hover .footer-brand-mark,
.footer-brand:focus-visible .footer-brand-mark {
    border-color: rgba(255, 224, 166, .72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 24px rgba(0, 0, 0, .3), 0 0 20px rgba(229, 181, 95, .12);
    transform: translateY(-2px) rotate(-2deg);
}

.footer-brand:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 217, 138, .35);
}

.footer-copy {
    min-width: 0;
}

.copyright,
.footer-message {
    margin: 0;
}

.copyright {
    color: rgba(255, 248, 235, .92);
    font-size: .82rem;
    font-weight: 620;
    letter-spacing: .015em;
}

.footer-message {
    margin-top: 5px;
    color: rgba(255, 235, 203, .58);
    font-size: .68rem;
    letter-spacing: .055em;
}

.footer-message span {
    display: inline-block;
    padding: 0 5px;
    color: var(--gold);
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.footer-link {
    position: relative;
    appearance: none;
    padding: 9px 10px;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    color: rgba(255, 239, 213, .7);
    background: transparent;
    font: inherit;
    font-size: .69rem;
    font-weight: 620;
    letter-spacing: .035em;
    outline: none;
    text-decoration: none;
    white-space: nowrap;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.footer-link::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 5px;
    left: 10px;
    height: 1px;
    border-radius: 99px;
    background: var(--gold-bright);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: #ffe4ac;
    background: rgba(255, 224, 166, .07);
    transform: translateY(-1px);
}

.footer-link:hover::after,
.footer-link:focus-visible::after {
    transform: scaleX(1);
}

.footer-link:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 217, 138, .3);
}

.footer-ambient {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(12px);
}

.footer-ambient-one {
    top: -58px;
    left: 13%;
    width: 160px;
    height: 110px;
    background: rgba(229, 181, 95, .08);
}

.footer-ambient-two {
    right: 23%;
    bottom: -72px;
    width: 190px;
    height: 130px;
    background: rgba(137, 81, 43, .12);
}

.legal-dialog {
    width: min(560px, calc(100vw - 34px));
    max-width: none;
    padding: 0;
    border: 1px solid rgba(255, 222, 163, .28);
    border-radius: 24px;
    color: var(--cream);
    background: transparent;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .58);
}

.legal-dialog::backdrop {
    background: rgba(15, 8, 5, .7);
    backdrop-filter: blur(8px);
}

.legal-dialog[open] {
    animation: dialog-arrive 280ms cubic-bezier(.2, .8, .2, 1) both;
}

.legal-dialog-card {
    padding: 28px;
    border-radius: inherit;
    background:
        radial-gradient(circle at 12% 0, rgba(255, 223, 161, .12), transparent 34%),
        linear-gradient(145deg, rgba(67, 39, 25, .98), rgba(28, 16, 11, .99));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.legal-dialog-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.legal-dialog-icon {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    place-items: center;
    border: 1px solid rgba(255, 220, 154, .3);
    border-radius: 15px;
    background: rgba(255, 224, 166, .07);
}

.legal-dialog-icon svg {
    width: 27px;
    height: 27px;
    fill: var(--gold-bright);
}

.legal-dialog-eyebrow {
    margin: 0 0 5px;
    color: var(--gold);
    font-size: .62rem;
    font-weight: 760;
    letter-spacing: .18em;
}

.legal-dialog h2 {
    margin: 0;
    color: #fff7e9;
    font-size: clamp(1.3rem, 4vw, 1.75rem);
    line-height: 1.1;
}

.legal-dialog-copy {
    margin: 22px 0 0;
    color: rgba(255, 240, 215, .76);
    font-size: .93rem;
    line-height: 1.7;
}

.legal-dialog-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

.legal-dialog-close {
    min-width: 108px;
    padding: 11px 18px;
    border: 1px solid rgba(255, 220, 154, .38);
    border-radius: 999px;
    cursor: pointer;
    color: #2a180f;
    background: linear-gradient(135deg, #ffe2a8, #dca950);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
    font: inherit;
    font-size: .78rem;
    font-weight: 760;
    letter-spacing: .04em;
    outline: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.legal-dialog-close:hover,
.legal-dialog-close:focus-visible {
    box-shadow: 0 14px 28px rgba(0, 0, 0, .3), 0 0 0 4px rgba(255, 220, 154, .12);
    transform: translateY(-2px);
}

@keyframes footer-rise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes dialog-arrive {
    from { opacity: 0; transform: translateY(16px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1040px) {
    .footer-inner {
        gap: 18px;
        grid-template-columns: auto 1fr;
        padding-right: 112px;
    }

    .footer-copy {
        text-align: right;
    }

    .footer-links {
        grid-column: 1 / -1;
        justify-content: space-between;
        margin-top: -7px;
        padding-left: 53px;
    }

    .site-footer {
        min-height: 118px;
    }
}

@media (max-width: 640px) {
    .footer-inner {
        min-height: 130px;
        gap: 8px 12px;
        grid-template-columns: auto 1fr;
        padding: 13px 82px 12px 16px;
    }

    .footer-brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .footer-brand-mark svg {
        width: 26px;
        height: 26px;
    }

    .footer-brand-name {
        display: none;
    }

    .footer-copy {
        text-align: left;
    }

    .copyright {
        font-size: .72rem;
    }

    .footer-message {
        max-width: 270px;
        font-size: .59rem;
        line-height: 1.4;
    }

    .footer-links {
        gap: 0;
        grid-column: 1 / -1;
        justify-content: flex-start;
        margin-top: 0;
        padding-left: 0;
        flex-wrap: wrap;
    }

    .footer-link {
        padding: 7px 8px;
        font-size: .61rem;
    }

    .footer-link:first-child {
        padding-left: 0;
    }

    .footer-link:first-child::after {
        left: 0;
    }

    .legal-dialog-card {
        padding: 22px 20px 20px;
    }
}

/* ================================================================
   VERSION 07 — SCROLLABLE PRODUCTS SHOWCASE
   ================================================================ */

.products-dialog {
    width: min(1180px, calc(100vw - 40px));
    max-width: none;
    height: min(88vh, 920px);
    max-height: none;
    padding: 0;
    border: 1px solid rgba(255, 221, 158, .28);
    border-radius: 30px;
    overflow: hidden;
    color: var(--cream);
    background: transparent;
    box-shadow: 0 34px 120px rgba(0, 0, 0, .72);
}

.products-dialog::backdrop {
    background: rgba(14, 8, 5, .76);
    backdrop-filter: blur(11px) saturate(85%);
}

.products-dialog[open] {
    animation: products-arrive 420ms cubic-bezier(.2, .82, .2, 1) both;
}

.products-shell {
    display: grid;
    height: 100%;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
    border-radius: inherit;
    background:
        radial-gradient(circle at 4% 0%, rgba(255, 219, 151, .12), transparent 27%),
        radial-gradient(circle at 96% 11%, rgba(122, 68, 34, .19), transparent 32%),
        linear-gradient(145deg, rgba(55, 32, 21, .995), rgba(22, 13, 9, .998));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.products-dialog-header {
    display: flex;
    min-height: 128px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    padding: 28px 30px 20px;
    border-bottom: 1px solid rgba(255, 225, 174, .1);
}

.products-title-group {
    min-width: 0;
}

.products-kicker,
.product-category {
    margin: 0;
    color: var(--gold);
    font-size: .66rem;
    font-weight: 780;
    letter-spacing: .19em;
}

.products-dialog-header h2 {
    max-width: 800px;
    margin: 7px 0 0;
    color: #fff7e9;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -.03em;
}

.products-dialog-header p:last-child {
    margin: 10px 0 0;
    color: rgba(255, 239, 213, .65);
    font-size: .9rem;
    line-height: 1.55;
}

.products-close,
.screenshot-dialog-topbar button {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 222, 163, .24);
    border-radius: 50%;
    cursor: pointer;
    color: #ffe2aa;
    background: rgba(255, 225, 171, .06);
    outline: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.products-close svg,
.screenshot-dialog-topbar button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.products-close:hover,
.products-close:focus-visible,
.screenshot-dialog-topbar button:hover,
.screenshot-dialog-topbar button:focus-visible {
    border-color: rgba(255, 221, 158, .68);
    background: rgba(255, 225, 171, .12);
    transform: rotate(5deg) scale(1.06);
}

.products-jump-nav {
    display: flex;
    gap: 10px;
    padding: 13px 30px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(255, 225, 174, .1);
    background: rgba(23, 13, 9, .58);
    scrollbar-width: none;
}

.products-jump-nav::-webkit-scrollbar {
    display: none;
}

.product-jump {
    display: inline-flex;
    min-width: max-content;
    align-items: center;
    gap: 9px;
    padding: 9px 15px 9px 10px;
    border: 1px solid rgba(255, 220, 158, .16);
    border-radius: 999px;
    cursor: pointer;
    color: rgba(255, 240, 216, .7);
    background: rgba(255, 255, 255, .025);
    font: inherit;
    font-size: .76rem;
    font-weight: 690;
    outline: none;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.product-jump-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 224, 166, .07);
}

.product-jump svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
}

.product-jump:hover,
.product-jump:focus-visible,
.product-jump.is-active {
    border-color: rgba(255, 219, 151, .5);
    color: #ffe0a4;
    background: rgba(229, 181, 95, .09);
    transform: translateY(-1px);
}

.products-scroll {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(229, 181, 95, .55) rgba(255, 255, 255, .04);
    scrollbar-width: thin;
}

.products-scroll::-webkit-scrollbar {
    width: 10px;
}

.products-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .025);
}

.products-scroll::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 999px;
    background: rgba(229, 181, 95, .5);
    background-clip: padding-box;
}

.product-showcase {
    padding: 54px 30px 62px;
    scroll-margin-top: 12px;
}

.product-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.product-intro > div {
    position: relative;
    max-width: 820px;
    padding-left: 74px;
}

.product-number {
    position: absolute;
    top: -8px;
    left: 0;
    color: rgba(255, 220, 158, .18);
    font-size: 3.7rem;
    font-weight: 800;
    letter-spacing: -.08em;
    line-height: 1;
}

.product-intro h3 {
    margin: 8px 0 12px;
    color: #fff8eb;
    font-size: clamp(2.05rem, 5vw, 4.4rem);
    line-height: .98;
    letter-spacing: -.055em;
}

.product-lead {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 239, 216, .73);
    font-size: clamp(.95rem, 1.5vw, 1.08rem);
    line-height: 1.72;
}

.product-status {
    display: inline-flex;
    min-width: max-content;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 219, 151, .2);
    border-radius: 999px;
    color: #f3c977;
    background: rgba(255, 224, 166, .05);
    font-size: .68rem;
    font-weight: 730;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.product-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e5b55f;
    box-shadow: 0 0 0 5px rgba(229, 181, 95, .1);
}

.product-media-grid {
    display: grid;
    align-items: stretch;
    gap: 22px;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr);
    margin-top: 36px;
}

.product-video-card,
.product-feature-panel {
    margin: 0;
    border: 1px solid rgba(255, 222, 163, .14);
    border-radius: 23px;
    background: rgba(255, 255, 255, .025);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .2);
}

.product-video-card {
    padding: 10px 10px 14px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #100a07;
    aspect-ratio: 16 / 9;
}

.video-frame video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #100a07;
}

.media-badge {
    position: absolute;
    top: 13px;
    left: 13px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 224, 166, .25);
    border-radius: 999px;
    pointer-events: none;
    color: #3b2112;
    background: rgba(255, 218, 147, .93);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
    font-size: .59rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.product-video-card figcaption {
    padding: 12px 8px 1px;
    color: rgba(255, 239, 215, .58);
    font-size: .73rem;
    line-height: 1.5;
}

.product-feature-panel {
    padding: 24px;
}

.feature-heading {
    margin: 0 0 20px;
    color: #fff0d1;
    font-size: 1.03rem;
    font-weight: 720;
}

.product-feature-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-feature-list li {
    display: grid;
    align-items: start;
    gap: 12px;
    grid-template-columns: 32px 1fr;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 226, 177, .08);
    color: rgba(255, 239, 216, .7);
    font-size: .79rem;
    line-height: 1.5;
}

.product-feature-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.product-feature-list li span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    color: #efc16c;
    background: rgba(229, 181, 95, .09);
    font-size: .61rem;
    font-weight: 790;
}

.screenshot-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 48px;
}

.screenshot-heading h4 {
    margin: 7px 0 0;
    color: #fff3dd;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    letter-spacing: -.025em;
}

.screenshot-heading > p {
    margin: 0 0 4px;
    color: rgba(255, 239, 216, .5);
    font-size: .73rem;
}

.screenshot-gallery {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.screenshot-card {
    display: block;
    min-width: 0;
    padding: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 222, 163, .13);
    border-radius: 18px;
    cursor: zoom-in;
    color: inherit;
    background: rgba(255, 255, 255, .022);
    font: inherit;
    text-align: left;
    outline: none;
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.screenshot-card:hover,
.screenshot-card:focus-visible {
    border-color: rgba(255, 219, 151, .46);
    background: rgba(229, 181, 95, .055);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .25);
    transform: translateY(-5px);
}

.screenshot-card img {
    display: block;
    width: 100%;
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #170e0a;
}

.screenshot-card > span {
    display: grid;
    gap: 4px;
    padding: 12px 8px 7px;
}

.screenshot-card strong {
    color: #fff0d2;
    font-size: .8rem;
}

.screenshot-card small {
    overflow: hidden;
    color: rgba(255, 239, 216, .5);
    font-size: .68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-divider {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 30px;
}

.product-divider::before,
.product-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(255, 219, 151, .18), transparent);
}

.product-divider span {
    width: 8px;
    height: 8px;
    border: 1px solid rgba(255, 219, 151, .5);
    transform: rotate(45deg);
}

.products-dialog-footer {
    display: grid;
    align-items: center;
    gap: 16px;
    grid-template-columns: auto 1fr auto;
    margin: 0 30px 30px;
    padding: 24px;
    border: 1px solid rgba(255, 222, 163, .14);
    border-radius: 22px;
    background:
        radial-gradient(circle at 0 0, rgba(229, 181, 95, .11), transparent 38%),
        rgba(255, 255, 255, .025);
}

.products-footer-mark {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(255, 220, 154, .33);
    border-radius: 16px;
    color: #372013;
    background: linear-gradient(145deg, #f5ce82, #b57a31);
    font-size: .9rem;
    font-weight: 850;
    letter-spacing: -.04em;
}

.products-dialog-footer strong {
    color: #fff1d4;
    font-size: .92rem;
}

.products-dialog-footer p {
    margin: 5px 0 0;
    color: rgba(255, 239, 216, .52);
    font-size: .7rem;
}

.products-dialog-footer a {
    min-width: max-content;
    padding: 11px 16px;
    border-radius: 999px;
    color: #382012;
    background: linear-gradient(135deg, #ffe0a2, #d7a348);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
    font-size: .72rem;
    font-weight: 780;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.products-dialog-footer a:hover,
.products-dialog-footer a:focus-visible {
    box-shadow: 0 16px 32px rgba(0, 0, 0, .31), 0 0 0 4px rgba(255, 219, 151, .1);
    outline: none;
    transform: translateY(-2px);
}

.screenshot-dialog {
    width: min(1380px, calc(100vw - 34px));
    max-width: none;
    max-height: calc(100vh - 34px);
    padding: 0;
    border: 1px solid rgba(255, 222, 163, .28);
    border-radius: 22px;
    overflow: hidden;
    color: var(--cream);
    background: transparent;
    box-shadow: 0 35px 120px rgba(0, 0, 0, .78);
}

.screenshot-dialog::backdrop {
    background: rgba(12, 7, 5, .84);
    backdrop-filter: blur(12px);
}

.screenshot-dialog[open] {
    animation: products-arrive 300ms cubic-bezier(.2, .82, .2, 1) both;
}

.screenshot-dialog-card {
    padding: 10px;
    background: linear-gradient(145deg, rgba(60, 35, 23, .99), rgba(20, 12, 8, .995));
}

.screenshot-dialog-topbar {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 5px 6px 12px 13px;
}

.screenshot-dialog-topbar h2 {
    margin: 0;
    color: #fff2da;
    font-size: clamp(1rem, 2vw, 1.35rem);
}

.screenshot-dialog-topbar button {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
}

.screenshot-dialog [data-screenshot-image] {
    display: block;
    width: 100%;
    max-height: calc(100vh - 126px);
    border-radius: 14px;
    object-fit: contain;
    background: #120b08;
}

@keyframes products-arrive {
    from { opacity: 0; transform: translateY(26px) scale(.965); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
    .products-dialog {
        width: calc(100vw - 24px);
        height: calc(100vh - 24px);
        border-radius: 24px;
    }

    .products-dialog-header {
        min-height: 112px;
        padding: 22px 20px 16px;
    }

    .products-jump-nav {
        padding: 11px 20px;
    }

    .product-showcase {
        padding: 42px 20px 52px;
    }

    .product-intro {
        display: block;
    }

    .product-status {
        margin: 20px 0 0 74px;
    }

    .product-media-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .products-dialog-footer {
        grid-template-columns: auto 1fr;
        margin: 0 20px 20px;
    }

    .products-dialog-footer a {
        grid-column: 1 / -1;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .products-dialog {
        width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .products-dialog-header {
        gap: 14px;
        padding: 18px 16px 14px;
    }

    .products-dialog-header h2 {
        font-size: 1.45rem;
    }

    .products-dialog-header p:last-child {
        display: none;
    }

    .products-close {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .products-jump-nav {
        padding: 9px 16px;
    }

    .product-showcase {
        padding: 34px 16px 44px;
    }

    .product-intro > div {
        padding-left: 0;
    }

    .product-number {
        position: static;
        display: inline-block;
        margin-bottom: 8px;
        font-size: 2.4rem;
    }

    .product-intro h3 {
        font-size: 2.65rem;
    }

    .product-status {
        margin-left: 0;
    }

    .product-media-grid {
        margin-top: 26px;
    }

    .product-feature-panel {
        padding: 20px;
    }

    .screenshot-heading {
        display: block;
        margin-top: 36px;
    }

    .screenshot-heading > p {
        margin-top: 8px;
    }

    .screenshot-gallery {
        grid-template-columns: 1fr;
    }

    .product-divider {
        padding: 0 16px;
    }

    .products-dialog-footer {
        grid-template-columns: auto 1fr;
        margin: 0 16px 16px;
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .products-dialog[open],
    .screenshot-dialog[open] {
        animation: none;
    }

    .screenshot-card,
    .product-jump,
    .products-close,
    .products-dialog-footer a {
        transition: none;
    }
}


/* ================================================================
   VERSION 08 — STANDALONE PRODUCTS PAGE & TOP NAVIGATION
   Actor review: Product Owner, UX Director, Frontend, Accessibility, QA
   ================================================================ */
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.products-page-body {
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(17,10,7,.76), rgba(24,14,10,.94) 30%, #160d09 72%),
        image-set(url("../images/coffee-shop-study-background.avif") type("image/avif"), url("../images/coffee-shop-study-background.webp") type("image/webp")) center top / cover fixed no-repeat;
}
.product-topbar {
    position: sticky; z-index: 60; top: 0; border-bottom: 1px solid rgba(255,221,158,.15);
    background: rgba(24,14,10,.82); backdrop-filter: blur(22px) saturate(125%);
    box-shadow: 0 12px 38px rgba(0,0,0,.18); transition: background 200ms ease, box-shadow 200ms ease;
}
.product-topbar.is-scrolled { background: rgba(19,11,8,.96); box-shadow: 0 18px 44px rgba(0,0,0,.35); }
.product-topbar-inner { width: min(1240px, calc(100% - 40px)); min-height: 86px; margin: 0 auto; display:flex; align-items:center; justify-content:space-between; gap:32px; }
.topbar-brand { display:inline-flex; align-items:center; gap:12px; min-width:max-content; color:#fff7e8; text-decoration:none; border-radius:14px; outline:none; }
.topbar-brand:focus-visible { box-shadow: 0 0 0 3px rgba(255,217,138,.32); }
.topbar-brand-mark { display:grid; width:49px; height:49px; place-items:center; border:1px solid rgba(255,220,154,.35); border-radius:15px; background:linear-gradient(145deg,rgba(117,70,38,.82),rgba(37,21,14,.97)); box-shadow: inset 0 1px 0 rgba(255,255,255,.1),0 9px 24px rgba(0,0,0,.28); }
.topbar-brand-mark svg { width:37px; height:37px; overflow:visible; }
.topbar-brand-mark .brand-orbit { fill:none; stroke:#e9bd62; stroke-width:1.6; stroke-linecap:round; opacity:.7; }
.topbar-brand-mark .brand-book { fill:url(#pageBrandGold); }
.topbar-brand-mark .brand-spine { fill:none; stroke:#6a3f21; stroke-width:1.35; stroke-linecap:round; }
.topbar-brand-mark .brand-star { fill:#ffe5a9; }
.topbar-brand-copy { display:grid; gap:2px; }
.topbar-brand-copy strong { font-size:1.15rem; letter-spacing:.16em; }
.topbar-brand-copy small { color:rgba(255,239,213,.58); font-size:.61rem; letter-spacing:.055em; }
.product-primary-nav { display:flex; align-items:center; gap:4px; }
.product-primary-nav > a { position:relative; padding:12px 13px; border-radius:11px; color:rgba(255,241,218,.7); font-size:.76rem; font-weight:680; letter-spacing:.025em; text-decoration:none; outline:none; transition:color 180ms ease,background 180ms ease,transform 180ms ease; }
.product-primary-nav > a:not(.topbar-cta)::after { content:""; position:absolute; right:13px; bottom:7px; left:13px; height:1px; background:#f0c56f; transform:scaleX(0); transform-origin:left; transition:transform 200ms ease; }
.product-primary-nav > a:hover,.product-primary-nav > a:focus-visible,.product-primary-nav > a.is-active { color:#ffe2aa; background:rgba(255,224,166,.06); transform:translateY(-1px); }
.product-primary-nav > a:hover::after,.product-primary-nav > a:focus-visible::after,.product-primary-nav > a.is-active::after { transform:scaleX(1); }
.product-primary-nav .topbar-cta { margin-left:8px; padding:12px 17px; color:#382012; background:linear-gradient(135deg,#ffe0a2,#d7a348); box-shadow:0 10px 26px rgba(0,0,0,.24); }
.product-primary-nav .topbar-cta:hover,.product-primary-nav .topbar-cta:focus-visible { color:#2f1b10; background:linear-gradient(135deg,#ffe8bc,#e0ae54); box-shadow:0 14px 30px rgba(0,0,0,.3),0 0 0 4px rgba(255,219,151,.1); }
.topbar-menu-toggle { display:none; width:44px; height:44px; padding:10px; border:1px solid rgba(255,222,163,.22); border-radius:13px; cursor:pointer; background:rgba(255,255,255,.035); }
.topbar-menu-toggle > span:not(.sr-only) { display:block; width:100%; height:2px; margin:4px 0; border-radius:99px; background:#f2c873; transition:transform 220ms ease,opacity 220ms ease; }

.products-page-main { min-height:100vh; }
.products-page-hero { position:relative; overflow:hidden; border-bottom:1px solid rgba(255,222,163,.12); }
.products-page-hero::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(19,11,8,.94),rgba(30,17,11,.7) 56%,rgba(24,14,10,.28)); }
.products-page-hero-inner { position:relative; z-index:2; width:min(1180px,calc(100% - 40px)); margin:0 auto; padding:112px 0 92px; }
.products-page-hero h1 { max-width:900px; margin:12px 0 20px; color:#fff8eb; font-size:clamp(2.75rem,7vw,6.2rem); line-height:.95; letter-spacing:-.06em; }
.products-page-hero-inner > p:last-of-type { max-width:760px; margin:0; color:rgba(255,239,216,.72); font-size:clamp(.98rem,1.5vw,1.16rem); line-height:1.75; }
.products-hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:34px; }
.products-hero-actions button { padding:13px 18px; border:1px solid rgba(255,220,158,.25); border-radius:999px; cursor:pointer; color:#ffe3ac; background:rgba(255,224,166,.06); font:inherit; font-size:.78rem; font-weight:730; outline:none; transition:transform 180ms ease,background 180ms ease,border-color 180ms ease; }
.products-hero-actions button:first-child { color:#382012; background:linear-gradient(135deg,#ffe0a2,#d7a348); border-color:transparent; }
.products-hero-actions button:hover,.products-hero-actions button:focus-visible { transform:translateY(-2px); border-color:rgba(255,220,158,.58); box-shadow:0 0 0 4px rgba(255,219,151,.08); }
.products-page-orb { position:absolute; z-index:1; border-radius:50%; filter:blur(12px); pointer-events:none; }
.products-page-orb-one { top:-110px; right:8%; width:420px; height:420px; background:radial-gradient(circle,rgba(229,181,95,.13),transparent 68%); }
.products-page-orb-two { bottom:-190px; left:35%; width:380px; height:380px; background:radial-gradient(circle,rgba(132,74,38,.17),transparent 70%); }
.products-page-jump { position:sticky; z-index:45; top:86px; padding:11px 20px; background:rgba(24,14,10,.94); backdrop-filter:blur(18px); box-shadow:0 10px 28px rgba(0,0,0,.2); }
.products-page-jump-inner { width:min(1180px,100%); margin:0 auto; display:flex; gap:10px; }
.products-page-content { width:min(1180px,calc(100% - 40px)); margin:0 auto; padding:18px 0 50px; }
.products-page-content .product-showcase { padding:72px 0 78px; scroll-margin-top:150px; }
.products-page-content .product-intro h2 { margin:8px 0 12px; color:#fff8eb; font-size:clamp(2.05rem,5vw,4.4rem); line-height:.98; letter-spacing:-.055em; }
.products-page-content .screenshot-heading h3 { margin:7px 0 0; color:#fff3dd; font-size:clamp(1.35rem,2.5vw,2rem); letter-spacing:-.025em; }
.products-page-content .product-divider { padding:0; }
.products-page-cta { display:grid; align-items:center; gap:16px; grid-template-columns:auto 1fr auto; margin:10px 0 30px; padding:28px; border:1px solid rgba(255,222,163,.16); border-radius:24px; background:radial-gradient(circle at 0 0,rgba(229,181,95,.12),transparent 38%),rgba(255,255,255,.025); box-shadow:0 20px 55px rgba(0,0,0,.2); }
.products-page-cta strong { color:#fff1d4; font-size:1rem; }
.products-page-cta p { margin:6px 0 0; color:rgba(255,239,216,.55); font-size:.75rem; }
.products-page-cta a { min-width:max-content; padding:12px 18px; border-radius:999px; color:#382012; background:linear-gradient(135deg,#ffe0a2,#d7a348); box-shadow:0 12px 28px rgba(0,0,0,.24); font-size:.75rem; font-weight:780; text-decoration:none; transition:transform 180ms ease,box-shadow 180ms ease; }
.products-page-cta a:hover,.products-page-cta a:focus-visible { outline:none; transform:translateY(-2px); box-shadow:0 16px 32px rgba(0,0,0,.31),0 0 0 4px rgba(255,219,151,.1); }
.products-page-body .site-footer { position:relative; }
.products-page-body .footer-inner { padding-right:34px; }

@media (max-width: 980px) {
    .topbar-brand-copy small { display:none; }
    .product-primary-nav > a { padding-inline:9px; }
    .product-primary-nav .topbar-cta { margin-left:2px; }
}
@media (max-width: 800px) {
    .product-topbar-inner { min-height:74px; width:calc(100% - 28px); }
    .topbar-brand-mark { width:44px;height:44px; }
    .topbar-menu-toggle { display:block; }
    .product-primary-nav { position:absolute; top:calc(100% + 1px); right:14px; left:14px; display:grid; gap:4px; padding:14px; border:1px solid rgba(255,222,163,.17); border-radius:0 0 18px 18px; background:rgba(22,13,9,.98); box-shadow:0 24px 50px rgba(0,0,0,.42); transform:translateY(-8px); opacity:0; visibility:hidden; transition:opacity 200ms ease,transform 200ms ease,visibility 200ms; }
    .product-topbar.is-menu-open .product-primary-nav { transform:translateY(0); opacity:1; visibility:visible; }
    .product-primary-nav > a { padding:13px 14px; }
    .product-primary-nav .topbar-cta { margin:4px 0 0; text-align:center; }
    .product-topbar.is-menu-open .topbar-menu-toggle > span:nth-child(1) { transform:translateY(6px) rotate(45deg); }
    .product-topbar.is-menu-open .topbar-menu-toggle > span:nth-child(2) { opacity:0; }
    .product-topbar.is-menu-open .topbar-menu-toggle > span:nth-child(3) { transform:translateY(-6px) rotate(-45deg); }
    .products-page-hero-inner { padding:84px 0 70px; }
    .products-page-jump { top:74px; }
    .products-page-content .product-showcase { padding:56px 0 64px; scroll-margin-top:138px; }
    .products-page-cta { grid-template-columns:auto 1fr; }
    .products-page-cta a { grid-column:1/-1; text-align:center; }
}
@media (max-width: 600px) {
    .product-topbar-inner,.products-page-hero-inner,.products-page-content { width:calc(100% - 28px); }
    .topbar-brand-copy strong { font-size:1rem; }
    .products-page-hero-inner { padding:68px 0 58px; }
    .products-page-hero h1 { font-size:clamp(2.5rem,14vw,4.2rem); }
    .products-page-jump { padding:9px 14px; }
    .products-page-jump-inner { overflow-x:auto; scrollbar-width:none; }
    .products-page-jump-inner::-webkit-scrollbar { display:none; }
    .products-page-content .product-showcase { padding:46px 0 54px; }
    .products-page-content .product-intro > div { padding-left:0; }
    .products-page-content .product-number { position:static; display:inline-block; margin-bottom:8px; font-size:2.4rem; }
    .products-page-content .product-intro h2 { font-size:2.65rem; }
    .products-page-cta { padding:20px; }
    .products-page-body .footer-inner { padding-right:18px; }
}
@media (prefers-reduced-motion: reduce) {
    .product-topbar,.product-primary-nav,.product-primary-nav>a,.products-hero-actions button,.products-page-cta a,.topbar-menu-toggle>span { transition:none; }
}


/* Version 15 — larger window-only rain activated after the homepage video ends. */
.home-body {
    position: relative;
    isolation: isolate;
}

.cafe-scene-effects {
    position: fixed;
    z-index: 2;
    inset: 0;
    display: block;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    opacity: .94;
}

.home-body .page-canvas {
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .cafe-scene-effects {
        opacity: .72;
    }
}

/* Version 12 — installed character cinemagraph layer */
.hero-motion-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--coffee-dark);
    pointer-events: none;
}

/* Permanent still-image layer. It remains beneath the video at all times, so
   the coffee-shop scene is guaranteed to appear when the motion clip fades. */
.hero-motion-poster,
.hero-motion-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

.hero-motion-poster {
    z-index: 0;
    display: block;
    opacity: 1;
    background: var(--coffee-dark);
}

.hero-motion-video {
    z-index: 1;
    opacity: 0;
    transition: opacity .7s ease;
    background: transparent;
}

.hero-motion-stage.is-ready .hero-motion-video,
.hero-motion-stage.is-playing .hero-motion-video,
.hero-motion-stage.is-settling .hero-motion-video {
    opacity: 1;
}

/* The final Canva frame uses a slightly tighter crop. Fade back to the original
   aligned still before the glass-only rain begins. */
.hero-motion-stage.is-complete .hero-motion-video {
    opacity: 0;
}

.hero-motion-control {
    position: fixed;
    left: clamp(22rem, 48vw, 47rem);
    bottom: clamp(6.8rem, 12vh, 9rem);
    z-index: 24;
    display: inline-flex;
    align-items: center;
    gap: .68rem;
    min-height: 2.9rem;
    padding: .66rem 1rem .66rem .72rem;
    border: 1px solid rgba(239, 197, 112, .42);
    border-radius: 999px;
    color: #fff7e8;
    background: linear-gradient(135deg, rgba(42, 25, 18, .88), rgba(83, 52, 31, .72));
    box-shadow: 0 12px 34px rgba(12, 7, 4, .3), inset 0 1px rgba(255,255,255,.12);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    font: 650 .82rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: .035em;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    transition: transform .25s ease, border-color .25s ease, background .25s ease, opacity .25s ease;
}

.hero-motion-control:hover,
.hero-motion-control:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 219, 146, .86);
    background: linear-gradient(135deg, rgba(55, 33, 23, .94), rgba(105, 67, 38, .82));
}

.hero-motion-control:focus-visible {
    outline: 3px solid rgba(255, 219, 146, .36);
    outline-offset: 3px;
}

.hero-motion-control-icon {
    display: grid;
    place-items: center;
    width: 1.72rem;
    height: 1.72rem;
    border-radius: 50%;
    color: #2a1a12;
    background: linear-gradient(145deg, #ffe8ae, #d89b43);
    box-shadow: 0 4px 12px rgba(0,0,0,.23);
}

.hero-motion-control svg {
    width: .92rem;
    height: .92rem;
    fill: currentColor;
}

.motion-icon-pause,
.motion-icon-replay { display: none; }
.hero-motion-control.is-playing .motion-icon-play { display: none; }
.hero-motion-control.is-playing .motion-icon-pause { display: block; }
.hero-motion-control.is-complete .motion-icon-play,
.hero-motion-control.is-complete .motion-icon-pause { display: none; }
.hero-motion-control.is-complete .motion-icon-replay { display: block; }

.hero-motion-control.is-autoplaying {
    opacity: 0;
    transform: translateY(6px);
}

.hero-motion-control.is-autoplaying:hover,
.hero-motion-control.is-autoplaying:focus-visible,
.hero-motion-control.is-playing {
    opacity: 1;
    transform: none;
}

@media (max-width: 980px) {
    .hero-motion-control {
        left: 50%;
        bottom: 7.2rem;
        transform: translateX(-50%);
    }
    .hero-motion-control:hover,
    .hero-motion-control:focus-visible,
    .hero-motion-control.is-playing {
        transform: translate(-50%, -2px);
    }
    .hero-motion-control.is-autoplaying {
        transform: translate(-50%, 6px);
    }
    .hero-motion-control.is-autoplaying:hover,
    .hero-motion-control.is-autoplaying:focus-visible {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .hero-motion-poster,
    .hero-motion-video { object-position: 28% 50%; }
    .hero-motion-control {
        bottom: 7.6rem;
        max-width: calc(100vw - 2rem);
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-motion-video,
    .hero-motion-control { transition: none; }
}


/* Version 17 — cinematic Textbook360 glass panel, visible only during hero video playback. */
.textbook-cinematic-panel {
    position: fixed;
    z-index: 13;
    top: 49%;
    right: clamp(8.8rem, 11.5vw, 11.8rem);
    width: clamp(19rem, 27vw, 25.5rem);
    min-height: 25.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 226, 174, .26);
    border-radius: 1.7rem;
    color: #fff8eb;
    background:
        linear-gradient(145deg, rgba(48, 29, 21, .58), rgba(20, 12, 9, .72)),
        radial-gradient(circle at 15% 0%, rgba(255, 215, 138, .16), transparent 34%);
    box-shadow:
        0 2rem 5rem rgba(10, 5, 3, .42),
        0 0 0 1px rgba(255, 255, 255, .035) inset,
        0 1px 0 rgba(255, 255, 255, .13) inset;
    backdrop-filter: blur(24px) saturate(1.28);
    -webkit-backdrop-filter: blur(24px) saturate(1.28);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(2rem, -46%, 0) scale(.955);
    filter: blur(5px);
    transition:
        opacity 420ms ease,
        transform 720ms cubic-bezier(.16, 1, .3, 1),
        filter 520ms ease;
    isolation: isolate;
}

.textbook-cinematic-panel::before {
    content: "";
    position: absolute;
    z-index: 4;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(112deg, transparent 0 35%, rgba(255,255,255,.095) 47%, transparent 60%) -180% 0 / 52% 100% no-repeat,
        linear-gradient(180deg, rgba(255,255,255,.045), transparent 22%);
    opacity: .8;
}

.textbook-cinematic-panel.is-visible {
    opacity: 1;
    transform: translate3d(0, -50%, 0) scale(1);
    filter: blur(0);
}

.textbook-cinematic-panel.is-leaving {
    opacity: 0;
    transform: translate3d(.9rem, -52%, 0) scale(.98);
    filter: blur(3px);
    transition-duration: 260ms;
}

.textbook-cinematic-panel.is-visible::before {
    animation: textbook-panel-sheen 4.8s ease-out 1;
}

@keyframes textbook-panel-sheen {
    0%, 12% { background-position: -180% 0, 0 0; }
    48%, 100% { background-position: 340% 0, 0 0; }
}

.textbook-panel-ambient {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(18px);
}

.textbook-panel-ambient-one {
    top: -4rem;
    right: -2rem;
    width: 11rem;
    height: 11rem;
    background: rgba(225, 169, 77, .14);
}

.textbook-panel-ambient-two {
    bottom: -5rem;
    left: -3rem;
    width: 10rem;
    height: 10rem;
    background: rgba(117, 67, 36, .18);
}

.textbook-panel-topline {
    position: relative;
    z-index: 5;
    display: flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.15rem;
    border-bottom: 1px solid rgba(255, 225, 171, .12);
    background: rgba(18, 11, 8, .21);
}

.textbook-panel-kicker,
.textbook-panel-counter {
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.textbook-panel-kicker {
    display: inline-flex;
    align-items: center;
    gap: .48rem;
    color: rgba(255, 236, 199, .92);
}

.textbook-panel-counter {
    color: rgba(255, 239, 213, .48);
    font-variant-numeric: tabular-nums;
}

.textbook-panel-live {
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: #ffd88a;
    box-shadow: 0 0 0 .22rem rgba(255, 216, 138, .11), 0 0 1rem rgba(255, 197, 91, .55);
    animation: textbook-live-pulse 1.45s ease-in-out infinite;
}

@keyframes textbook-live-pulse {
    0%, 100% { opacity: .62; transform: scale(.86); }
    50% { opacity: 1; transform: scale(1); }
}

.textbook-panel-viewport {
    position: relative;
    min-height: 20.6rem;
}

.textbook-cinematic-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translate3d(1.1rem, 0, 0) scale(.985);
    transition:
        opacity 330ms ease,
        transform 520ms cubic-bezier(.16, 1, .3, 1);
}

.textbook-cinematic-slide.is-active {
    z-index: 2;
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.textbook-cinematic-slide.is-exiting {
    z-index: 1;
    opacity: 0;
    transform: translate3d(-.8rem, 0, 0) scale(.985);
}

.textbook-slide-media {
    position: relative;
    height: 10.6rem;
    overflow: hidden;
    background: #241610;
}

.textbook-slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: saturate(.86) contrast(1.03) brightness(.83);
    transform: scale(1.035);
    transition: transform 3.2s cubic-bezier(.2, .7, .2, 1), filter .35s ease;
}

.textbook-cinematic-slide.is-active .textbook-slide-media img {
    transform: scale(1.085) translate3d(-.5%, -.5%, 0);
    filter: saturate(1) contrast(1.04) brightness(.9);
}

.textbook-slide-media-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(17,10,7,.08), rgba(17,10,7,.12) 42%, rgba(17,10,7,.88) 100%),
        linear-gradient(90deg, rgba(10,6,4,.18), transparent 50%);
}

.textbook-slide-badge {
    position: absolute;
    right: .8rem;
    bottom: .72rem;
    padding: .38rem .56rem;
    border: 1px solid rgba(255, 224, 166, .22);
    border-radius: 999px;
    color: rgba(255, 242, 218, .88);
    background: rgba(28, 17, 12, .68);
    box-shadow: 0 .35rem 1rem rgba(0,0,0,.22);
    backdrop-filter: blur(9px);
    font-size: .52rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.textbook-slide-copy {
    padding: 1rem 1.15rem 1.08rem;
}

.textbook-slide-eyebrow {
    margin: 0 0 .34rem;
    color: #e8bd69;
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.textbook-slide-copy h2 {
    margin: 0;
    color: #fff9ee;
    font-size: clamp(1.35rem, 2.1vw, 1.82rem);
    line-height: 1.02;
    letter-spacing: -.04em;
    text-shadow: 0 .35rem 1.3rem rgba(0,0,0,.28);
}

.textbook-slide-copy > p:not(.textbook-slide-eyebrow) {
    margin: .62rem 0 .78rem;
    color: rgba(255, 243, 223, .68);
    font-size: .76rem;
    line-height: 1.48;
}

.textbook-slide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .42rem;
}

.textbook-slide-tags span {
    padding: .34rem .52rem;
    border: 1px solid rgba(255, 225, 171, .13);
    border-radius: 999px;
    color: rgba(255, 239, 212, .66);
    background: rgba(255,255,255,.035);
    font-size: .56rem;
    font-weight: 680;
}

.textbook-panel-footer {
    position: relative;
    z-index: 5;
    display: grid;
    min-height: 2.45rem;
    align-items: center;
    gap: .8rem;
    grid-template-columns: 1fr auto;
    padding: 0 1.15rem;
    border-top: 1px solid rgba(255, 225, 171, .11);
    background: rgba(17, 10, 7, .18);
}

.textbook-panel-progress {
    height: 2px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 236, 202, .11);
}

.textbook-panel-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #b77a34, #ffe0a0);
    box-shadow: 0 0 .8rem rgba(255, 207, 116, .45);
    transform-origin: left center;
}

.textbook-panel-dots {
    display: flex;
    gap: .3rem;
}

.textbook-panel-dots span {
    width: .34rem;
    height: .34rem;
    border-radius: 50%;
    background: rgba(255, 238, 207, .2);
    transition: width .28s ease, border-radius .28s ease, background .28s ease;
}

.textbook-panel-dots span.is-active {
    width: .86rem;
    border-radius: 999px;
    background: #edbe68;
}

@media (max-width: 1080px) {
    .textbook-cinematic-panel {
        right: 7.6rem;
        width: clamp(17.5rem, 31vw, 21rem);
        min-height: 23rem;
    }
    .textbook-panel-viewport { min-height: 18.5rem; }
    .textbook-slide-media { height: 8.9rem; }
    .textbook-slide-copy > p:not(.textbook-slide-eyebrow) { font-size: .7rem; }
}

@media (max-width: 780px) {
    .textbook-cinematic-panel {
        top: 48%;
        right: 5.2rem;
        width: min(64vw, 19rem);
        min-height: 20.7rem;
        border-radius: 1.35rem;
    }
    .textbook-panel-topline { min-height: 2.8rem; padding-inline: .85rem; }
    .textbook-panel-viewport { min-height: 15.9rem; }
    .textbook-slide-media { height: 7.35rem; }
    .textbook-slide-copy { padding: .8rem .9rem .85rem; }
    .textbook-slide-copy h2 { font-size: 1.24rem; }
    .textbook-slide-copy > p:not(.textbook-slide-eyebrow) {
        display: -webkit-box;
        margin: .48rem 0 .62rem;
        overflow: hidden;
        font-size: .65rem;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .textbook-slide-tags span:nth-child(2) { display: none; }
    .textbook-panel-footer { min-height: 2rem; padding-inline: .9rem; }
}

@media (max-width: 500px) {
    .textbook-cinematic-panel {
        top: 46%;
        right: 4.4rem;
        width: min(68vw, 16.5rem);
        min-height: 18.5rem;
    }
    .textbook-panel-viewport { min-height: 14.1rem; }
    .textbook-slide-media { height: 6.4rem; }
    .textbook-panel-counter { display: none; }
    .textbook-slide-copy h2 { font-size: 1.05rem; }
    .textbook-slide-copy > p:not(.textbook-slide-eyebrow) { font-size: .6rem; }
    .textbook-slide-tags { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .textbook-cinematic-panel,
    .textbook-cinematic-slide,
    .textbook-slide-media img,
    .textbook-panel-dots span {
        transition: none;
    }
    .textbook-cinematic-panel.is-visible::before,
    .textbook-panel-live { animation: none; }
}

/* Version 17 mobile cinematic composition: use a compact floating story card so
   the product message does not cover the learner's face, writing hand or book. */
@media (max-width: 780px) {
    .textbook-cinematic-panel {
        top: 6.4rem;
        right: .75rem;
        width: min(50vw, 12.25rem);
        min-height: 0;
        border-radius: 1.05rem;
        transform: translate3d(1rem, 0, 0) scale(.96);
    }
    .textbook-cinematic-panel.is-visible {
        transform: translate3d(0, 0, 0) scale(1);
    }
    .textbook-cinematic-panel.is-leaving {
        transform: translate3d(.55rem, -.25rem, 0) scale(.98);
    }
    .textbook-panel-topline {
        min-height: 2.35rem;
        padding-inline: .72rem;
    }
    .textbook-panel-kicker { font-size: .53rem; letter-spacing: .12em; }
    .textbook-panel-counter { display: none; }
    .textbook-panel-viewport { min-height: 8.5rem; }
    .textbook-slide-media { display: none; }
    .textbook-slide-copy { padding: .78rem .78rem .7rem; }
    .textbook-slide-eyebrow { margin-bottom: .26rem; font-size: .5rem; }
    .textbook-slide-copy h2 { font-size: .98rem; line-height: 1.08; }
    .textbook-slide-copy > p:not(.textbook-slide-eyebrow) {
        display: -webkit-box;
        margin: .42rem 0 0;
        overflow: hidden;
        color: rgba(255, 243, 223, .7);
        font-size: .58rem;
        line-height: 1.42;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }
    .textbook-slide-tags { display: none; }
    .textbook-panel-footer {
        min-height: 1.55rem;
        padding-inline: .72rem;
    }
    .textbook-panel-dots span { width: .26rem; height: .26rem; }
    .textbook-panel-dots span.is-active { width: .62rem; }
}

@media (max-width: 420px) {
    .textbook-cinematic-panel {
        top: 6rem;
        width: 11.3rem;
    }
    .textbook-panel-viewport { min-height: 8rem; }
    .textbook-slide-copy > p:not(.textbook-slide-eyebrow) { -webkit-line-clamp: 2; }
}

/* Version 18 — cinematic post-video prompt leading visitors to the right-side menu. */
.menu-discovery-cue {
    position: fixed;
    z-index: 19;
    top: 50%;
    right: 7.05rem;
    display: flex;
    min-width: 17rem;
    min-height: 4.45rem;
    align-items: center;
    justify-content: flex-end;
    gap: .8rem;
    padding: .55rem .3rem .55rem 1rem;
    border: 1px solid rgba(255, 224, 169, .22);
    border-right-color: rgba(255, 224, 169, .08);
    border-radius: 999px 0 0 999px;
    color: #fff6e7;
    background:
        linear-gradient(90deg, rgba(31, 18, 13, .38), rgba(61, 37, 24, .68) 72%, rgba(61, 37, 24, .12)),
        radial-gradient(circle at 72% 40%, rgba(255, 205, 115, .13), transparent 44%);
    box-shadow:
        -.9rem 1.1rem 2.8rem rgba(9, 5, 3, .25),
        inset 0 1px rgba(255,255,255,.09);
    backdrop-filter: blur(16px) saturate(1.18);
    -webkit-backdrop-filter: blur(16px) saturate(1.18);
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    transform: translate3d(-1.15rem, -50%, 0) scale(.96);
    transform-origin: right center;
    transition:
        opacity 360ms ease,
        transform 680ms cubic-bezier(.16, 1, .3, 1),
        border-color 240ms ease,
        background 240ms ease;
    isolation: isolate;
}

.menu-discovery-cue::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: .35rem 0 .35rem .35rem;
    border-radius: inherit;
    background: linear-gradient(105deg, transparent 16%, rgba(255,255,255,.085) 46%, transparent 72%) -130% 0 / 48% 100% no-repeat;
    opacity: 0;
}

.menu-discovery-cue.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, -50%, 0) scale(1);
}

.menu-discovery-cue.is-visible::before {
    opacity: 1;
    animation: menu-cue-sheen 3.4s ease-in-out infinite 1.2s;
}

.menu-discovery-cue.is-immediate {
    transition: none;
}

.menu-discovery-cue:hover,
.menu-discovery-cue:focus-visible {
    border-color: rgba(255, 222, 157, .52);
    color: #fffaf0;
    background:
        linear-gradient(90deg, rgba(38, 22, 15, .48), rgba(87, 52, 30, .76) 72%, rgba(87, 52, 30, .16)),
        radial-gradient(circle at 72% 40%, rgba(255, 208, 120, .19), transparent 46%);
    outline: none;
    transform: translate3d(.35rem, -50%, 0) scale(1.015);
}

.menu-discovery-cue:focus-visible {
    box-shadow:
        -.9rem 1.1rem 2.8rem rgba(9, 5, 3, .25),
        0 0 0 3px rgba(255, 215, 140, .24),
        inset 0 1px rgba(255,255,255,.1);
}

.menu-discovery-copy {
    display: grid;
    min-width: 5.4rem;
    gap: .2rem;
    text-align: right;
    text-shadow: 0 .25rem 1rem rgba(0,0,0,.42);
}

.menu-discovery-copy span {
    color: rgba(255, 234, 200, .55);
    font-size: .52rem;
    font-weight: 760;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.menu-discovery-copy strong {
    color: #ffe0a0;
    font-size: .92rem;
    font-weight: 760;
    letter-spacing: .025em;
}

.menu-discovery-arrows {
    position: relative;
    display: flex;
    width: 8.8rem;
    height: 2.7rem;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    padding-right: .15rem;
    mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 100%);
}

.menu-discovery-arrows::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 213, 135, .17) 28%, rgba(255, 223, 162, .48));
    box-shadow: 0 0 .7rem rgba(255, 204, 111, .22);
}

.menu-discovery-arrows span {
    position: relative;
    z-index: 1;
    display: block;
    width: 1.15rem;
    color: #ffd987;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    opacity: .12;
    text-align: center;
    text-shadow: 0 0 .8rem rgba(255, 195, 84, .48);
    transform: translateX(-.48rem) scale(.82);
    animation: menu-chevron-flow 1.75s cubic-bezier(.2, .7, .2, 1) infinite;
    animation-delay: calc(var(--cue-index) * 105ms);
}

@keyframes menu-chevron-flow {
    0%, 14% {
        opacity: .1;
        transform: translateX(-.5rem) scale(.78);
    }
    38% {
        opacity: 1;
        transform: translateX(0) scale(1.05);
    }
    72% {
        opacity: .48;
        transform: translateX(.4rem) scale(.96);
    }
    100% {
        opacity: .08;
        transform: translateX(.72rem) scale(.84);
    }
}

@keyframes menu-cue-sheen {
    0%, 30% { background-position: -130% 0; }
    68%, 100% { background-position: 260% 0; }
}

@media (max-width: 780px) {
    .menu-discovery-cue {
        right: 5.15rem;
        min-width: 12.1rem;
        min-height: 3.7rem;
        gap: .45rem;
        padding-left: .75rem;
    }
    .menu-discovery-copy { min-width: 4.4rem; }
    .menu-discovery-copy span { font-size: .43rem; }
    .menu-discovery-copy strong { font-size: .78rem; }
    .menu-discovery-arrows { width: 6.55rem; }
    .menu-discovery-arrows span { width: .87rem; font-size: 1.55rem; }
}

@media (max-width: 430px) {
    .menu-discovery-cue {
        top: 54%;
        right: 4.6rem;
        min-width: 10.2rem;
        min-height: 3.35rem;
        padding-left: .6rem;
    }
    .menu-discovery-copy { min-width: 3.8rem; }
    .menu-discovery-copy span { display: none; }
    .menu-discovery-copy strong { font-size: .72rem; }
    .menu-discovery-arrows { width: 5.7rem; }
    .menu-discovery-arrows span { width: .76rem; font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    .menu-discovery-cue,
    .menu-discovery-cue::before,
    .menu-discovery-arrows span {
        animation: none;
        transition: none;
    }
    .menu-discovery-arrows span {
        opacity: .72;
        transform: none;
    }
}



/* Version 22 — cinematic hover previews for the half-moon navigation */
.nav-story-preview {
    position: absolute;
    z-index: 5;
    top: 50%;
    right: 278px;
    width: min(390px, calc(100vw - 650px));
    min-width: 340px;
    padding: 18px 18px 17px;
    overflow: hidden;
    border: 1px solid rgba(255, 224, 168, .24);
    border-radius: 26px;
    pointer-events: none;
    color: #fff5e4;
    opacity: 0;
    background:
        linear-gradient(132deg, rgba(74, 43, 29, .72), rgba(24, 13, 9, .88) 55%, rgba(40, 22, 15, .78)),
        radial-gradient(circle at 12% 12%, rgba(255, 217, 143, .12), transparent 34%);
    box-shadow:
        0 30px 80px rgba(7, 3, 2, .46),
        0 0 0 1px rgba(255, 255, 255, .025) inset,
        0 1px 0 rgba(255, 255, 255, .12) inset;
    backdrop-filter: blur(25px) saturate(132%);
    -webkit-backdrop-filter: blur(25px) saturate(132%);
    transform: translate(28px, -50%) scale(.94) rotateY(-7deg);
    transform-origin: right center;
    transition:
        opacity 240ms ease,
        transform 520ms cubic-bezier(.2,.82,.2,1),
        border-color 240ms ease,
        box-shadow 240ms ease;
}

.half-moon-nav.is-open.has-preview .nav-story-preview {
    opacity: 1;
    transform: translate(0, -50%) scale(1) rotateY(0deg);
    border-color: rgba(255, 224, 168, .34);
    box-shadow:
        0 36px 90px rgba(7, 3, 2, .52),
        -18px 0 55px rgba(229, 181, 95, .08),
        0 0 0 1px rgba(255, 255, 255, .035) inset,
        0 1px 0 rgba(255, 255, 255, .15) inset;
}

.nav-story-preview.is-switching .nav-story-body,
.nav-story-preview.is-switching .nav-story-footer,
.nav-story-preview.is-switching .nav-story-route {
    opacity: .18;
    transform: translateY(7px);
}

.nav-story-refraction {
    position: absolute;
    z-index: -1;
    top: -55%;
    left: -28%;
    width: 46%;
    height: 210%;
    opacity: .34;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    filter: blur(2px);
    transform: rotate(19deg) translateX(-160%);
}

.half-moon-nav.has-preview .nav-story-refraction {
    animation: nav-story-sheen 2.6s cubic-bezier(.3,.7,.2,1) both;
}

.nav-story-ambient {
    position: absolute;
    z-index: -2;
    border-radius: 50%;
    filter: blur(4px);
}

.nav-story-ambient-one {
    top: -45px;
    right: -28px;
    width: 150px;
    height: 150px;
    background: rgba(224, 164, 73, .13);
}

.nav-story-ambient-two {
    bottom: -58px;
    left: 18%;
    width: 126px;
    height: 126px;
    background: rgba(142, 78, 38, .17);
}

.nav-story-topline,
.nav-story-footer,
.nav-story-body {
    position: relative;
    z-index: 2;
}

.nav-story-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 224, 168, .12);
}

.nav-story-route,
.nav-story-status {
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.nav-story-route {
    color: #f4ca79;
    transition: opacity 150ms ease, transform 180ms ease;
}

.nav-story-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 239, 213, .48);
}

.nav-story-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #efbd61;
    box-shadow: 0 0 0 4px rgba(239, 189, 97, .1), 0 0 14px rgba(239, 189, 97, .8);
    animation: nav-story-status 1.8s ease-in-out infinite;
}

.nav-story-body {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 17px;
    align-items: center;
    padding: 19px 0 16px;
    transition: opacity 150ms ease, transform 180ms ease;
}

.nav-story-visual {
    position: relative;
    display: grid;
    width: 104px;
    height: 104px;
    place-items: center;
    border: 1px solid rgba(255, 221, 158, .18);
    border-radius: 27px;
    background:
        linear-gradient(145deg, rgba(255, 222, 165, .08), rgba(44, 24, 15, .34)),
        repeating-linear-gradient(90deg, transparent 0 14px, rgba(255,255,255,.018) 14px 15px),
        repeating-linear-gradient(0deg, transparent 0 14px, rgba(255,255,255,.018) 14px 15px);
    box-shadow: inset 0 1px rgba(255,255,255,.08), 0 16px 35px rgba(0,0,0,.18);
}

.nav-story-visual::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 218, 150, .09);
    border-radius: 20px;
}

.nav-story-visual svg {
    position: relative;
    z-index: 3;
    width: 59px;
    height: 59px;
    overflow: visible;
    fill: rgba(235, 177, 82, .14);
    stroke: #f0c36f;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 6px 14px rgba(229,181,95,.2));
}

.nav-story-glyph { display: none; }
.nav-story-preview[data-scene="home"] .nav-story-glyph-home,
.nav-story-preview[data-scene="products"] .nav-story-glyph-products,
.nav-story-preview[data-scene="about"] .nav-story-glyph-about,
.nav-story-preview[data-scene="contact"] .nav-story-glyph-contact { display: block; animation: nav-story-glyph 520ms cubic-bezier(.2,.8,.2,1) both; }

.nav-story-glyph-detail { opacity: .42; stroke-width: 1.25; }

.nav-story-ring {
    position: absolute;
    border: 1px solid rgba(242, 194, 105, .16);
    border-radius: 50%;
}
.nav-story-ring-one { inset: 18px; animation: nav-story-orbit 9s linear infinite; }
.nav-story-ring-two { inset: 30px; border-style: dashed; animation: nav-story-orbit 6s linear reverse infinite; }
.nav-story-pulse {
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(241, 192, 101, .16), transparent 66%);
    animation: nav-story-pulse 2.4s ease-in-out infinite;
}

.nav-story-copy { min-width: 0; }
.nav-story-kicker {
    margin: 0 0 6px;
    color: #eab75b;
    font-size: .6rem;
    font-weight: 820;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.nav-story-copy h2 {
    margin: 0;
    color: #fff4df;
    font-size: clamp(1.2rem, 1.7vw, 1.52rem);
    font-weight: 720;
    letter-spacing: -.025em;
    line-height: 1.05;
}
.nav-story-copy > p:last-child {
    margin: 9px 0 0;
    color: rgba(255, 241, 219, .67);
    font-size: .78rem;
    line-height: 1.52;
}

.nav-story-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 224, 168, .11);
    transition: opacity 150ms ease, transform 180ms ease;
}
.nav-story-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nav-story-chips span {
    padding: 6px 8px;
    border: 1px solid rgba(255, 219, 151, .13);
    border-radius: 999px;
    color: rgba(255, 237, 207, .62);
    background: rgba(255,255,255,.025);
    font-size: .56rem;
    font-weight: 700;
    letter-spacing: .04em;
}
.nav-story-action {
    flex: 0 0 auto;
    color: #f5c86f;
    font-size: .67rem;
    font-weight: 780;
    letter-spacing: .02em;
    white-space: nowrap;
}
.nav-story-action b {
    display: inline-block;
    margin-left: 4px;
    font-size: .9rem;
    transform: translateY(1px);
    transition: transform 220ms ease;
}

.nav-link.is-preview-active .nav-icon {
    transform: translateX(-8px) scale(1.11);
    border-color: rgba(255, 224, 168, .76);
    box-shadow: 0 15px 34px rgba(0,0,0,.4), 0 0 30px rgba(229,181,95,.22), inset 0 1px rgba(255,255,255,.2);
}
.nav-link.is-preview-active .nav-label { color: #ffdf9e; opacity: 1; transform: translateX(-2px); }

@keyframes nav-story-sheen { 0% { transform: rotate(19deg) translateX(-160%); } 100% { transform: rotate(19deg) translateX(520%); } }
@keyframes nav-story-status { 0%,100% { opacity:.55; transform:scale(.8); } 50% { opacity:1; transform:scale(1.08); } }
@keyframes nav-story-glyph { from { opacity:0; transform:translateY(7px) scale(.86); } to { opacity:1; transform:none; } }
@keyframes nav-story-orbit { to { transform:rotate(360deg); } }
@keyframes nav-story-pulse { 0%,100% { opacity:.45; transform:scale(.86); } 50% { opacity:1; transform:scale(1.1); } }

@media (max-width: 1180px) {
    .nav-story-preview {
        right: 246px;
        width: 330px;
        min-width: 330px;
    }
    .nav-story-body { grid-template-columns: 82px minmax(0,1fr); gap: 14px; }
    .nav-story-visual { width: 82px; height: 82px; border-radius: 22px; }
    .nav-story-visual svg { width: 47px; height: 47px; }
    .nav-story-copy > p:last-child { font-size: .72rem; }
    .nav-story-chips span:nth-child(2) { display: none; }
}

@media (max-width: 1020px), (hover: none) {
    .nav-story-preview {
        position: fixed;
        top: auto;
        right: 14px;
        bottom: 112px;
        width: min(350px, calc(100vw - 28px));
        min-width: 0;
        padding: 14px;
        border-radius: 22px;
        transform: translateY(18px) scale(.96);
    }
    .half-moon-nav.is-open.has-preview .nav-story-preview { transform: translateY(0) scale(1); }
    .nav-story-topline { padding-bottom: 9px; }
    .nav-story-body { grid-template-columns: 62px minmax(0,1fr); gap: 12px; padding: 13px 0 11px; }
    .nav-story-visual { width: 62px; height: 62px; border-radius: 18px; }
    .nav-story-visual svg { width: 36px; height: 36px; }
    .nav-story-ring-one { inset: 11px; }
    .nav-story-ring-two { inset: 18px; }
    .nav-story-copy h2 { font-size: 1.06rem; }
    .nav-story-copy > p:last-child { margin-top: 6px; font-size: .67rem; line-height: 1.4; }
    .nav-story-footer { padding-top: 10px; }
    .nav-story-chips { display: none; }
    .nav-story-action { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .nav-story-status i,
    .nav-story-ring,
    .nav-story-pulse,
    .nav-story-refraction,
    .nav-story-glyph { animation: none !important; }
}

/* Version 33 — permanent homepage content for people and search engines */
.home-body .page-canvas {
    z-index: 3;
}

.home-body .cafe-scene-effects {
    z-index: 2;
}

.home-search-intro {
    position: relative;
    z-index: 4;
    margin-top: 100vh;
    padding: clamp(72px, 9vw, 118px) 24px clamp(178px, 16vw, 230px);
    color: #2a190f;
    background:
        radial-gradient(circle at 14% 20%, rgba(202, 139, 60, .16), transparent 34%),
        linear-gradient(135deg, #fff8ec 0%, #f6ead8 52%, #ead6bb 100%);
    border-top: 1px solid rgba(96, 55, 25, .18);
    box-shadow: 0 -28px 70px rgba(22, 12, 7, .26);
}

.home-search-intro::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 0 48%, rgba(119, 71, 36, .05) 48% 48.15%, transparent 48.15%),
        repeating-linear-gradient(0deg, rgba(86, 47, 22, .025) 0 1px, transparent 1px 32px);
}

.home-search-intro-inner {
    position: relative;
    width: min(1120px, 100%);
    margin: 0 auto;
}

.home-search-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    color: #8a5526;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.home-search-kicker::before {
    content: "";
    width: 42px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #b8792e, #e6ba68);
}

.home-search-intro h2 {
    max-width: 860px;
    margin: 0;
    color: #2c190f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.55rem, 5.7vw, 5.7rem);
    font-weight: 600;
    letter-spacing: -.045em;
    line-height: .98;
}

.home-search-lead {
    max-width: 790px;
    margin: 30px 0 0;
    color: #604936;
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
    line-height: 1.75;
}

.home-search-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.home-search-benefits span {
    padding: 10px 14px;
    border: 1px solid rgba(116, 71, 34, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .48);
    color: #5c3b21;
    font-size: .84rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}

.home-search-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
    margin-top: 38px;
}

.home-search-actions a {
    color: #56351d;
    font-weight: 750;
    text-decoration: none;
    text-underline-offset: 5px;
}

.home-search-actions a:hover,
.home-search-actions a:focus-visible {
    color: #8b531f;
    text-decoration: underline;
}

.home-search-actions .home-search-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 22px;
    border: 1px solid #8a5526;
    border-radius: 15px;
    color: #fff8ed;
    background: linear-gradient(135deg, #7a451f, #3d2416);
    box-shadow: 0 14px 32px rgba(72, 38, 17, .22), inset 0 1px 0 rgba(255, 239, 194, .22);
}

.home-search-actions .home-search-primary:hover,
.home-search-actions .home-search-primary:focus-visible {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

@media (max-width: 720px) {
    .home-search-intro {
        padding: 64px 20px 190px;
    }

    .home-search-intro h2 {
        font-size: clamp(2.35rem, 12vw, 4rem);
        line-height: 1.02;
    }

    .home-search-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-search-actions a {
        width: 100%;
    }

    .home-search-actions .home-search-primary {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-search-actions .home-search-primary {
        transition: none;
    }
}


/* Version 38 — the homepage proposition now opens the cinematic slide sequence.
   Only the responsive picture wrapper remains from the former permanent overlay. */
.hero-motion-picture {
    position: absolute;
    inset: 0;
    display: block;
}

/* Version 36 — homepage trust evidence. */
.home-trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}
.home-trust-strip article {
    padding: 20px;
    border: 1px solid rgba(116, 71, 34, .16);
    border-radius: 17px;
    background: rgba(255,255,255,.44);
    box-shadow: inset 0 1px rgba(255,255,255,.72);
}
.home-trust-strip strong {
    display: block;
    color: #3c2416;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
}
.home-trust-strip span {
    display: block;
    margin-top: 6px;
    color: #71533a;
    font-size: .88rem;
    line-height: 1.5;
}
@media (max-width: 760px) {
    .home-trust-strip { grid-template-columns: 1fr; }
}

/* Version 36 — shared keyboard skip link. */
.global-skip-link {
    position: fixed;
    z-index: 10000;
    left: 16px;
    top: -70px;
    padding: 11px 17px;
    border-radius: 999px;
    color: #25150d;
    background: #ffe0a0;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0,0,0,.28);
    transition: top .2s ease;
}
.global-skip-link:focus { top: 16px; }


/* Version 38 — opening IFUNDA proposition slide. */
.textbook-slide-media-opening {
    display: grid;
    place-items: center;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 220, 146, .18), transparent 31%),
        radial-gradient(circle at 12% 100%, rgba(149, 83, 39, .38), transparent 42%),
        linear-gradient(145deg, #4d2c1a, #21120c 62%, #130b08);
}
.textbook-slide-media-opening::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .28;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent);
}
.textbook-opening-emblem {
    position: relative;
    z-index: 2;
    display: grid;
    width: 5.4rem;
    height: 5.4rem;
    place-items: center;
    border: 1px solid rgba(255, 225, 168, .34);
    border-radius: 1.45rem;
    background: linear-gradient(145deg, rgba(255, 230, 180, .12), rgba(72, 38, 22, .35));
    box-shadow: 0 1.2rem 2.6rem rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.16);
    transform: rotate(-3deg);
}
.textbook-opening-emblem svg { width: 3.65rem; height: 3.65rem; fill: #efc36d; filter: drop-shadow(0 .35rem .75rem rgba(0,0,0,.35)); }
.textbook-opening-emblem .textbook-opening-spine { fill: none; stroke: #fff0c8; stroke-width: 2.3; stroke-linecap: round; }
.textbook-opening-orbit {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(255, 221, 157, .16);
    border-radius: 50%;
}
.textbook-opening-orbit-one { width: 8.8rem; height: 8.8rem; }
.textbook-opening-orbit-two { width: 12.6rem; height: 12.6rem; border-style: dashed; opacity: .56; }
.textbook-cinematic-slide-opening.is-active .textbook-opening-emblem { animation: textbook-opening-arrive 1.15s cubic-bezier(.16, 1, .3, 1) both; }
.textbook-cinematic-slide-opening.is-active .textbook-opening-orbit-one { animation: textbook-opening-orbit 8s linear infinite; }
.textbook-cinematic-slide-opening.is-active .textbook-opening-orbit-two { animation: textbook-opening-orbit 13s linear reverse infinite; }
@keyframes textbook-opening-arrive { from { opacity: 0; transform: translateY(.85rem) rotate(-8deg) scale(.82); } to { opacity: 1; transform: translateY(0) rotate(-3deg) scale(1); } }
@keyframes textbook-opening-orbit { to { transform: rotate(360deg); } }
@media (max-width: 620px) {
    .textbook-opening-emblem { width: 4.4rem; height: 4.4rem; border-radius: 1.15rem; }
    .textbook-opening-emblem svg { width: 2.9rem; height: 2.9rem; }
    .textbook-opening-orbit-one { width: 7rem; height: 7rem; }
    .textbook-opening-orbit-two { width: 9.7rem; height: 9.7rem; }
}
@media (prefers-reduced-motion: reduce) {
    .textbook-cinematic-slide-opening.is-active .textbook-opening-emblem,
    .textbook-cinematic-slide-opening.is-active .textbook-opening-orbit { animation: none; }
}


/* Version 39 — idle Textbook360 capability presentation.
   It begins after the opening scene, pauses on user activity or menu use,
   and returns only when the visitor is idle again. */
.textbook-idle-showcase {
    --idle-accent: #efc36d;
    --idle-accent-soft: rgba(239, 195, 109, .18);
    position: fixed;
    z-index: 15;
    top: 51%;
    right: clamp(9.4rem, 11.7vw, 12.6rem);
    width: clamp(35rem, 43vw, 45rem);
    min-height: 22.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 226, 174, .3);
    border-radius: 2rem;
    color: #fff8eb;
    background:
        radial-gradient(circle at 7% 9%, var(--idle-accent-soft), transparent 31%),
        linear-gradient(138deg, rgba(50, 29, 20, .63), rgba(18, 10, 7, .79));
    box-shadow:
        0 2.4rem 6rem rgba(8, 4, 2, .52),
        0 0 0 1px rgba(255, 255, 255, .035) inset,
        0 1px 0 rgba(255, 255, 255, .15) inset;
    backdrop-filter: blur(28px) saturate(1.32);
    -webkit-backdrop-filter: blur(28px) saturate(1.32);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(2.2rem, -46%, 0) scale(.95);
    filter: blur(7px);
    transition:
        opacity 480ms ease,
        transform 760ms cubic-bezier(.16, 1, .3, 1),
        filter 560ms ease,
        background 520ms ease;
    isolation: isolate;
}

.textbook-idle-showcase::after {
    content: "";
    position: absolute;
    z-index: 5;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(113deg, transparent 0 33%, rgba(255,255,255,.11) 46%, transparent 60%) -190% 0 / 46% 100% no-repeat,
        linear-gradient(180deg, rgba(255,255,255,.055), transparent 24%);
    opacity: .72;
}

.textbook-idle-showcase.is-visible {
    opacity: 1;
    transform: translate3d(0, -50%, 0) scale(1);
    filter: blur(0);
}

.textbook-idle-showcase.is-visible::after {
    animation: idle-showcase-sheen 5.2s ease-out 1;
}

.textbook-idle-showcase.is-leaving {
    opacity: 0;
    transform: translate3d(.9rem, -52%, 0) scale(.98);
    filter: blur(4px);
    transition-duration: 300ms;
}

@keyframes idle-showcase-sheen {
    0%, 10% { background-position: -190% 0, 0 0; }
    52%, 100% { background-position: 340% 0, 0 0; }
}

.idle-showcase-refraction {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .2;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(115deg, rgba(0,0,0,.8), transparent 70%);
}

.idle-showcase-ambient {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(22px);
}

.idle-showcase-ambient-one {
    top: -5rem;
    right: -2rem;
    width: 15rem;
    height: 15rem;
    background: var(--idle-accent-soft);
}

.idle-showcase-ambient-two {
    bottom: -7rem;
    left: 12%;
    width: 16rem;
    height: 16rem;
    background: rgba(111, 57, 31, .2);
}

.idle-showcase-topline {
    position: relative;
    z-index: 6;
    display: grid;
    min-height: 3.7rem;
    align-items: center;
    gap: .8rem;
    grid-template-columns: 1fr auto auto;
    padding: 0 1.45rem;
    border-bottom: 1px solid rgba(255, 225, 171, .13);
    background: rgba(17, 10, 7, .19);
}

.idle-showcase-kicker,
.idle-showcase-state,
.idle-showcase-counter {
    font-size: .62rem;
    font-weight: 820;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.idle-showcase-kicker {
    display: inline-flex;
    align-items: center;
    gap: .52rem;
    color: rgba(255, 240, 210, .93);
}

.idle-showcase-kicker i {
    width: .48rem;
    height: .48rem;
    border-radius: 50%;
    background: var(--idle-accent);
    box-shadow: 0 0 0 .24rem color-mix(in srgb, var(--idle-accent) 14%, transparent), 0 0 1rem var(--idle-accent);
    animation: idle-showcase-pulse 1.55s ease-in-out infinite;
}

.idle-showcase-state { color: rgba(255, 240, 213, .42); }
.idle-showcase-counter { color: rgba(255, 239, 213, .55); font-variant-numeric: tabular-nums; }

@keyframes idle-showcase-pulse {
    0%, 100% { opacity: .58; transform: scale(.84); }
    50% { opacity: 1; transform: scale(1); }
}

.idle-showcase-viewport {
    position: relative;
    min-height: 15.9rem;
}

.idle-showcase-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    gap: clamp(1.4rem, 2.6vw, 2.5rem);
    grid-template-columns: minmax(12rem, 34%) 1fr;
    padding: 1.75rem 2rem 1.55rem;
    opacity: 0;
    transform: translate3d(1.5rem, 0, 0) scale(.985);
    transition: opacity 360ms ease, transform 620ms cubic-bezier(.16, 1, .3, 1);
}

.idle-showcase-slide.is-active {
    z-index: 2;
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.idle-showcase-slide.is-exiting {
    z-index: 1;
    opacity: 0;
    transform: translate3d(-1rem, 0, 0) scale(.985);
}

.idle-showcase-slide[data-accent="circulation"] { --idle-slide-accent: #ffcf7f; }
.idle-showcase-slide[data-accent="scanning"] { --idle-slide-accent: #f0b968; }
.idle-showcase-slide[data-accent="imports"] { --idle-slide-accent: #ffd996; }
.idle-showcase-slide[data-accent="finance"] { --idle-slide-accent: #e7a95c; }
.idle-showcase-slide[data-accent="choice"] { --idle-slide-accent: #ffe5a8; }
.idle-showcase-slide[data-accent="stock"] { --idle-slide-accent: #efc36d; }

.idle-showcase-icon {
    position: relative;
    display: grid;
    width: clamp(9.5rem, 11vw, 11.5rem);
    height: clamp(9.5rem, 11vw, 11.5rem);
    place-items: center;
    justify-self: center;
    border: 1px solid color-mix(in srgb, var(--idle-slide-accent) 34%, transparent);
    border-radius: 2.2rem;
    background:
        radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--idle-slide-accent) 18%, transparent), transparent 42%),
        linear-gradient(145deg, rgba(255, 230, 180, .1), rgba(56, 29, 17, .38));
    box-shadow: 0 1.5rem 3rem rgba(0,0,0,.32), inset 0 1px rgba(255,255,255,.14);
}

.idle-showcase-icon svg {
    position: relative;
    z-index: 2;
    width: 5.5rem;
    height: 5.5rem;
    overflow: visible;
    fill: none;
    stroke: var(--idle-slide-accent);
    stroke-width: 4.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 .45rem .85rem rgba(0,0,0,.38));
}

.idle-showcase-icon .idle-icon-detail {
    stroke: rgba(255, 247, 226, .92);
    stroke-width: 3;
}

.idle-icon-ring {
    position: absolute;
    border: 1px solid color-mix(in srgb, var(--idle-slide-accent) 21%, transparent);
    border-radius: 50%;
}

.idle-icon-ring-one { width: 8rem; height: 8rem; }
.idle-icon-ring-two { width: 13.5rem; height: 13.5rem; border-style: dashed; opacity: .55; }

.idle-showcase-slide.is-active .idle-icon-ring-one { animation: idle-showcase-orbit 9s linear infinite; }
.idle-showcase-slide.is-active .idle-icon-ring-two { animation: idle-showcase-orbit 15s linear reverse infinite; }
.idle-showcase-slide.is-active .idle-showcase-icon { animation: idle-showcase-icon-arrive .9s cubic-bezier(.16, 1, .3, 1) both; }

@keyframes idle-showcase-orbit { to { transform: rotate(360deg); } }
@keyframes idle-showcase-icon-arrive {
    from { opacity: 0; transform: translateY(.9rem) rotate(-4deg) scale(.87); }
    to { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

.idle-showcase-copy { position: relative; z-index: 2; }
.idle-showcase-eyebrow {
    margin: 0 0 .48rem;
    color: var(--idle-slide-accent);
    font-size: .67rem;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.idle-showcase-copy h2 {
    max-width: 23ch;
    margin: 0;
    color: #fff9ee;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: .98;
    text-shadow: 0 .45rem 1.5rem rgba(0,0,0,.3);
}

.idle-showcase-copy > p:not(.idle-showcase-eyebrow) {
    max-width: 48ch;
    margin: .85rem 0 .95rem;
    color: rgba(255, 243, 223, .73);
    font-size: clamp(.86rem, 1.08vw, 1rem);
    line-height: 1.55;
}

.idle-showcase-chip {
    display: inline-flex;
    min-height: 2rem;
    align-items: center;
    padding: 0 .78rem;
    border: 1px solid color-mix(in srgb, var(--idle-slide-accent) 25%, transparent);
    border-radius: 999px;
    color: rgba(255, 241, 214, .78);
    background: color-mix(in srgb, var(--idle-slide-accent) 7%, transparent);
    font-size: .65rem;
    font-weight: 760;
    letter-spacing: .06em;
}

.idle-showcase-footer {
    position: relative;
    z-index: 6;
    display: grid;
    min-height: 3rem;
    align-items: center;
    gap: 1rem;
    grid-template-columns: auto 1fr auto;
    padding: 0 1.45rem;
    border-top: 1px solid rgba(255, 225, 171, .12);
    background: rgba(16, 9, 6, .2);
}

.idle-showcase-hint {
    color: rgba(255, 239, 212, .43);
    font-size: .58rem;
    font-weight: 690;
    letter-spacing: .04em;
}

.idle-showcase-progress {
    height: 2px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 236, 202, .11);
}

.idle-showcase-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #a96d31, var(--idle-accent), #ffe5ac);
    box-shadow: 0 0 .8rem rgba(255, 207, 116, .45);
}

.idle-showcase-dots { display: flex; gap: .32rem; }
.idle-showcase-dots span {
    width: .36rem;
    height: .36rem;
    border-radius: 50%;
    background: rgba(255, 238, 207, .2);
    transition: width .28s ease, border-radius .28s ease, background .28s ease;
}
.idle-showcase-dots span.is-active {
    width: .92rem;
    border-radius: 999px;
    background: var(--idle-accent);
}

@media (max-width: 1260px) {
    .textbook-idle-showcase {
        right: 7.7rem;
        width: min(45rem, 48vw);
    }
    .idle-showcase-slide { grid-template-columns: minmax(9.5rem, 31%) 1fr; padding-inline: 1.45rem; }
    .idle-showcase-icon { width: 9rem; height: 9rem; border-radius: 1.8rem; }
    .idle-showcase-icon svg { width: 4.6rem; height: 4.6rem; }
    .idle-icon-ring-one { width: 6.7rem; height: 6.7rem; }
    .idle-icon-ring-two { width: 10.8rem; height: 10.8rem; }
    .idle-showcase-copy h2 { font-size: clamp(1.8rem, 2.7vw, 2.65rem); }
}

@media (max-width: 900px) {
    .textbook-idle-showcase {
        top: 48%;
        right: 5.4rem;
        width: min(71vw, 38rem);
        min-height: 20.5rem;
        border-radius: 1.55rem;
    }
    .idle-showcase-topline { min-height: 3.2rem; padding-inline: 1rem; }
    .idle-showcase-state { display: none; }
    .idle-showcase-topline { grid-template-columns: 1fr auto; }
    .idle-showcase-viewport { min-height: 14.2rem; }
    .idle-showcase-slide { gap: 1.15rem; grid-template-columns: 8.1rem 1fr; padding: 1.3rem 1.2rem; }
    .idle-showcase-icon { width: 7.6rem; height: 7.6rem; border-radius: 1.45rem; }
    .idle-showcase-icon svg { width: 3.8rem; height: 3.8rem; }
    .idle-icon-ring-one { width: 5.6rem; height: 5.6rem; }
    .idle-icon-ring-two { width: 8.9rem; height: 8.9rem; }
    .idle-showcase-copy h2 { font-size: clamp(1.55rem, 4vw, 2.2rem); }
    .idle-showcase-copy > p:not(.idle-showcase-eyebrow) { font-size: .78rem; }
    .idle-showcase-footer { grid-template-columns: 1fr auto; padding-inline: 1rem; }
    .idle-showcase-hint { display: none; }
}

@media (max-width: 650px) {
    .textbook-idle-showcase {
        top: 47%;
        right: .85rem;
        left: .85rem;
        width: auto;
        min-height: 18.6rem;
    }
    .idle-showcase-topline { min-height: 2.9rem; }
    .idle-showcase-kicker,
    .idle-showcase-counter { font-size: .54rem; }
    .idle-showcase-viewport { min-height: 12.9rem; }
    .idle-showcase-slide {
        gap: .95rem;
        grid-template-columns: 5.9rem 1fr;
        padding: 1rem;
    }
    .idle-showcase-icon { width: 5.5rem; height: 5.5rem; border-radius: 1.1rem; }
    .idle-showcase-icon svg { width: 2.8rem; height: 2.8rem; stroke-width: 4.8; }
    .idle-icon-ring-one { width: 4.2rem; height: 4.2rem; }
    .idle-icon-ring-two { width: 6.7rem; height: 6.7rem; }
    .idle-showcase-eyebrow { margin-bottom: .3rem; font-size: .52rem; letter-spacing: .1em; }
    .idle-showcase-copy h2 { font-size: clamp(1.22rem, 6.7vw, 1.7rem); line-height: 1.02; }
    .idle-showcase-copy > p:not(.idle-showcase-eyebrow) {
        display: -webkit-box;
        margin: .5rem 0 0;
        overflow: hidden;
        font-size: .66rem;
        line-height: 1.42;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }
    .idle-showcase-chip { display: none; }
    .idle-showcase-footer { min-height: 2.4rem; }
}

@media (max-width: 430px) {
    .textbook-idle-showcase { top: 46%; }
    .idle-showcase-slide { grid-template-columns: 4.6rem 1fr; }
    .idle-showcase-icon { width: 4.35rem; height: 4.35rem; border-radius: .95rem; }
    .idle-showcase-icon svg { width: 2.3rem; height: 2.3rem; }
    .idle-icon-ring-one { width: 3.4rem; height: 3.4rem; }
    .idle-icon-ring-two { display: none; }
    .idle-showcase-copy > p:not(.idle-showcase-eyebrow) { -webkit-line-clamp: 2; }
}

@media (prefers-reduced-motion: reduce) {
    .textbook-idle-showcase,
    .idle-showcase-slide,
    .idle-showcase-dots span { transition: none; }
    .textbook-idle-showcase.is-visible::after,
    .idle-showcase-kicker i,
    .idle-showcase-slide.is-active .idle-icon-ring,
    .idle-showcase-slide.is-active .idle-showcase-icon { animation: none; }
}


/* Version 41 — calmer replay control and mobile-safe story placement. */
.idle-showcase-launch {
    position: fixed;
    z-index: 21;
    right: clamp(8.6rem, 10.7vw, 11.5rem);
    bottom: 1.35rem;
    display: inline-flex;
    min-height: 2.8rem;
    align-items: center;
    gap: .65rem;
    padding: .58rem .95rem .58rem .65rem;
    border: 1px solid rgba(241, 202, 126, .34);
    border-radius: 999px;
    color: rgba(255, 247, 230, .94);
    background: linear-gradient(135deg, rgba(39, 23, 16, .86), rgba(82, 50, 30, .72));
    box-shadow: 0 1rem 2.6rem rgba(8, 4, 2, .28), inset 0 1px rgba(255,255,255,.1);
    backdrop-filter: blur(16px) saturate(1.18);
    -webkit-backdrop-filter: blur(16px) saturate(1.18);
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    transform: translateY(.65rem) scale(.97);
    transition: opacity .28s ease, transform .38s cubic-bezier(.16, 1, .3, 1), border-color .22s ease, background .22s ease;
}

.idle-showcase-launch.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.idle-showcase-launch:hover,
.idle-showcase-launch:focus-visible {
    border-color: rgba(255, 220, 151, .76);
    background: linear-gradient(135deg, rgba(52, 31, 21, .94), rgba(104, 65, 37, .82));
    outline: none;
    transform: translateY(-2px) scale(1.01);
}

.idle-showcase-launch:focus-visible {
    box-shadow: 0 1rem 2.6rem rgba(8, 4, 2, .28), 0 0 0 3px rgba(255, 217, 142, .24), inset 0 1px rgba(255,255,255,.1);
}

.idle-showcase-launch-icon {
    display: grid;
    width: 1.72rem;
    height: 1.72rem;
    place-items: center;
    border-radius: 50%;
    color: #332016;
    background: linear-gradient(145deg, #ffe8ae, #d99d48);
    box-shadow: 0 .3rem .85rem rgba(0,0,0,.22);
}

.idle-showcase-launch-icon svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.idle-showcase-launch > span:last-child {
    font-size: .76rem;
    font-weight: 720;
    letter-spacing: .025em;
}

@media (max-width: 700px), (hover: none) and (pointer: coarse) {
    .textbook-idle-showcase {
        top: auto;
        right: .7rem;
        bottom: 5.2rem;
        left: .7rem;
        width: auto;
        min-height: 15.7rem;
        border-radius: 1.35rem;
        transform: translate3d(0, 1.1rem, 0) scale(.97);
    }

    .textbook-idle-showcase.is-visible {
        transform: translate3d(0, 0, 0) scale(1);
    }

    .textbook-idle-showcase.is-leaving {
        transform: translate3d(0, .75rem, 0) scale(.98);
    }

    .idle-showcase-viewport { min-height: 10.8rem; }
    .idle-showcase-slide {
        grid-template-columns: 4.8rem 1fr;
        gap: .8rem;
        padding: .85rem .9rem;
    }
    .idle-showcase-icon { width: 4.55rem; height: 4.55rem; border-radius: 1rem; }
    .idle-showcase-icon svg { width: 2.35rem; height: 2.35rem; }
    .idle-icon-ring-one { width: 3.55rem; height: 3.55rem; }
    .idle-icon-ring-two { display: none; }
    .idle-showcase-copy h2 { font-size: clamp(1.12rem, 5.8vw, 1.52rem); }
    .idle-showcase-copy > p:not(.idle-showcase-eyebrow) {
        margin-top: .42rem;
        font-size: .64rem;
        -webkit-line-clamp: 2;
    }
    .idle-showcase-footer { min-height: 2.25rem; }
    .idle-showcase-launch {
        right: 50%;
        bottom: 1rem;
        max-width: calc(100vw - 1.4rem);
        transform: translate(50%, .65rem) scale(.97);
        white-space: nowrap;
    }
    .idle-showcase-launch.is-visible { transform: translate(50%, 0) scale(1); }
    .idle-showcase-launch:hover,
    .idle-showcase-launch:focus-visible { transform: translate(50%, -2px) scale(1.01); }
}

@media (prefers-reduced-motion: reduce) {
    .idle-showcase-launch { transition: none; }
}

/* Version 42 — top-right homepage quick-action dock. */
.home-action-dock {
    position: fixed;
    z-index: 25;
    top: 1.05rem;
    right: clamp(1rem, 2.4vw, 2.8rem);
    display: flex;
    max-width: calc(100vw - 2rem);
    align-items: center;
    justify-content: flex-end;
    gap: .55rem;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

.home-action-dock > * {
    pointer-events: auto;
}

.home-action-dock .hero-motion-control,
.home-action-dock .idle-showcase-launch {
    position: static;
    inset: auto;
    right: auto;
    bottom: auto;
    left: auto;
    min-height: 2.75rem;
    margin: 0;
    white-space: nowrap;
}

.home-action-dock .hero-motion-control {
    transform: none;
}

.home-action-dock .hero-motion-control:hover,
.home-action-dock .hero-motion-control:focus-visible,
.home-action-dock .hero-motion-control.is-playing {
    transform: translateY(-2px);
}

.home-action-dock .hero-motion-control.is-autoplaying {
    transform: translateY(6px);
}

.home-action-dock .hero-motion-control.is-autoplaying:hover,
.home-action-dock .hero-motion-control.is-autoplaying:focus-visible {
    transform: none;
}

.home-action-dock .idle-showcase-launch {
    transform: translateY(.45rem) scale(.97);
}

.home-action-dock .idle-showcase-launch.is-visible {
    transform: translateY(0) scale(1);
}

.home-action-dock .idle-showcase-launch:hover,
.home-action-dock .idle-showcase-launch:focus-visible {
    transform: translateY(-2px) scale(1.01);
}

.home-pricing-tag {
    position: relative;
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    gap: .62rem;
    padding: .5rem .9rem .5rem .62rem;
    overflow: hidden;
    border: 1px solid rgba(255, 216, 137, .56);
    border-radius: 999px;
    color: #2b1a10;
    background:
        linear-gradient(115deg, rgba(255, 239, 188, .98), rgba(226, 168, 74, .96));
    box-shadow:
        0 .9rem 2.4rem rgba(12, 6, 3, .3),
        inset 0 1px rgba(255, 255, 255, .62);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-decoration: none;
    transition: transform .24s ease, filter .24s ease, box-shadow .24s ease;
}

.home-pricing-tag::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.48) 46%, transparent 65%);
    transform: translateX(-120%);
    transition: transform .55s ease;
    pointer-events: none;
}

.home-pricing-tag:hover,
.home-pricing-tag:focus-visible {
    outline: none;
    filter: brightness(1.04);
    transform: translateY(-2px);
    box-shadow:
        0 1.05rem 2.8rem rgba(12, 6, 3, .36),
        0 0 0 3px rgba(255, 218, 143, .2),
        inset 0 1px rgba(255, 255, 255, .7);
}

.home-pricing-tag:hover::after,
.home-pricing-tag:focus-visible::after {
    transform: translateX(120%);
}

.home-pricing-tag-icon {
    display: grid;
    width: 1.78rem;
    height: 1.78rem;
    flex: 0 0 1.78rem;
    place-items: center;
    border-radius: 50%;
    color: #ffe8ae;
    background: linear-gradient(145deg, #58351f, #28170f);
    box-shadow: 0 .3rem .8rem rgba(0,0,0,.22);
}

.home-pricing-tag-icon svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-pricing-copy {
    display: grid;
    gap: .08rem;
    line-height: 1;
}

.home-pricing-copy strong {
    font-size: .77rem;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.home-pricing-copy small {
    font-size: .65rem;
    font-weight: 690;
    opacity: .8;
}

body:has([data-half-moon-nav].is-open) .home-action-dock {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-.45rem);
}

body:has([data-half-moon-nav].is-open) .home-action-dock > * {
    pointer-events: none;
}

@media (max-width: 1180px) {
    .home-action-dock {
        top: 7.15rem;
        right: 1rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 700px) {
    .home-action-dock {
        top: 6.35rem;
        right: .65rem;
        gap: .4rem;
    }

    .home-action-dock .hero-motion-control,
    .home-action-dock .idle-showcase-launch {
        width: 2.72rem;
        min-width: 2.72rem;
        min-height: 2.72rem;
        justify-content: center;
        padding: .48rem;
    }

    .home-action-dock .hero-motion-control > span:last-child,
    .home-action-dock .idle-showcase-launch > span:last-child {
        display: none;
    }

    .home-pricing-tag {
        min-height: 2.72rem;
        padding: .45rem .68rem .45rem .5rem;
    }

    .home-pricing-copy strong {
        font-size: .68rem;
    }

    .home-pricing-copy small {
        font-size: .58rem;
    }
}

@media (max-width: 430px) {
    .home-action-dock {
        top: 5.9rem;
        right: .45rem;
    }

    .home-pricing-copy small {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-action-dock,
    .home-pricing-tag,
    .home-pricing-tag::after {
        transition: none;
    }
}
