/* LH Rental - catalogues landing page + flip-book viewer (v2: deep green / ink palette, motion) */

.cat-page,
.cbk-page {
    --ink: #0b1220;
    --muted: rgba(11, 18, 32, .66);
    --line: rgba(11, 18, 32, .09);
    --g950: #06201a;
    --g900: #0b2f27;
    --g800: #12443a;
    --g700: #1b5a4b;
    --mint: #5eead4;
    --accent: #0f766e;
    --mist: #eef3f1;
    --mist2: #dce8e4;
    --radius: 26px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    color: var(--ink);
    background:
        radial-gradient(900px 420px at 12% -90px, #e3f2ee 0%, rgba(227, 242, 238, 0) 70%),
        #fff;
    padding: 0 20px 84px;
    overflow-x: clip;
}

.cat-page *, .cat-page *::before, .cat-page *::after,
.cbk-page *, .cbk-page *::before, .cbk-page *::after,
.cbk__zoom, .cbk__zoom *, .cbk__zoom *::before, .cbk__zoom *::after { box-sizing: border-box; }

/* ---------- scroll reveal (only hidden when JS is running; failsafe adds .cat-force) ---------- */
.cat-js:not(.cat-force) [data-reveal] { opacity: 0; transform: translateY(34px) scale(.985); will-change: opacity, transform; }
.cat-js:not(.cat-force) [data-reveal].is-in {
    opacity: 1; transform: none;
    transition: opacity .8s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms);
}

/* ---------- buttons ---------- */
.cat-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 46px; padding: 11px 22px; border-radius: 999px; border: 1px solid transparent;
    font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s ease, border-color .2s ease, color .2s ease;
}
.cat-btn:hover { transform: translateY(-2px); }
.cat-btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.cat-btn:hover svg { transform: translateX(2px); }
.cat-btn--primary { background: var(--ink); color: #fff; }
.cat-btn--primary:hover { background: #000; box-shadow: 0 14px 30px rgba(11, 18, 32, .28); }
.cat-btn--ghost { background: #fff; color: var(--ink); border-color: rgba(11, 18, 32, .16); }
.cat-btn--ghost:hover { border-color: var(--ink); box-shadow: 0 10px 22px rgba(11, 18, 32, .10); }
.cat-btn--light { background: #fff; color: var(--ink); }
.cat-btn--light:hover { box-shadow: 0 14px 34px rgba(94, 234, 212, .30); }
.cat-btn--ghost-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(8px); }
.cat-btn--ghost-light:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }

/* ---------- hero ---------- */
.cat-hero {
    position: relative; isolation: isolate; overflow: hidden; color: #fff;
    display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
    max-width: 1180px; margin: 26px auto 44px; border-radius: 34px;
    background:
        radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.3px) 0 0 / 24px 24px,
        radial-gradient(640px 340px at 90% 0%, rgba(94, 234, 212, .20), transparent 62%),
        radial-gradient(520px 320px at 0% 100%, rgba(27, 90, 75, .55), transparent 65%),
        linear-gradient(135deg, var(--ink) 0%, var(--g900) 62%, var(--g800) 100%);
    box-shadow: 0 32px 80px rgba(6, 32, 26, .30);
}
.cat-hero::before, .cat-hero::after {
    content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(30px); pointer-events: none;
}
.cat-hero::before { width: 420px; height: 420px; right: -90px; top: -150px; background: radial-gradient(circle, rgba(94, 234, 212, .38), transparent 66%); animation: orb 15s ease-in-out infinite alternate; }
.cat-hero::after { width: 360px; height: 360px; left: -120px; bottom: -160px; background: radial-gradient(circle, rgba(52, 211, 153, .26), transparent 66%); animation: orb 19s ease-in-out infinite alternate-reverse; }

.cat-hero__copy { padding: 58px 48px 54px; }
.cat-eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 8px 15px 8px 13px; border-radius: 999px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .9); font-size: .84rem; letter-spacing: .03em; backdrop-filter: blur(6px);
}
.cat-eyebrow::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
    box-shadow: 0 0 0 0 rgba(94, 234, 212, .7); animation: pulse 2.2s ease-out infinite;
}
.cat-hero h1 { margin: 0 0 16px; font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.02; letter-spacing: -.02em; }
.cat-hero p { margin: 0; max-width: 560px; font-size: 1.05rem; line-height: 1.75; color: rgba(255, 255, 255, .84); }
.cat-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.cat-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.cat-stat {
    min-width: 98px; padding: 13px 18px; border-radius: 18px; background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .13); backdrop-filter: blur(8px);
}
.cat-stat b { display: block; font-size: 1.65rem; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.cat-stat span { display: block; margin-top: 5px; font-size: .78rem; color: rgba(255, 255, 255, .68); }

/* floating covers */
.cat-fan { position: relative; align-self: stretch; min-height: 430px; }
.cat-fan__item { position: absolute; width: 41%; animation: floatY 7s ease-in-out infinite alternate; }
.cat-fan__item:nth-child(1) { left: 4%; top: 19%; --r: -9deg; animation-delay: -1s; }
.cat-fan__item:nth-child(2) { left: 29%; top: 7%; --r: 2deg; z-index: 2; animation-delay: -3.5s; }
.cat-fan__item:nth-child(3) { left: 54%; top: 23%; --r: 10deg; animation-delay: -5.5s; }
.cat-fan__item img {
    display: block; width: 100%; height: auto; border-radius: 4px 8px 8px 4px; background: #fff;
    transform: rotate(var(--r)); box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06);
    animation: coverIn 1.1s var(--ease) both; animation-delay: calc(.35s + var(--i, 0) * .16s);
}

/* ---------- sections ---------- */
.cat-section { margin: 0 auto 52px; max-width: 1180px; }
.cat-section__head { margin-bottom: 22px; }
.cat-section__head h2 { position: relative; display: inline-block; margin: 0 0 14px; padding-bottom: 14px; font-size: clamp(1.55rem, 2.8vw, 2.05rem); letter-spacing: -.01em; }
.cat-section__head h2::after {
    content: ''; position: absolute; inset-inline-start: 0; bottom: 0; width: 64px; height: 4px; border-radius: 4px;
    background: linear-gradient(90deg, var(--accent), var(--mint)); transform-origin: left center;
    transition: transform .9s var(--ease) .3s;
}
[dir="rtl"] .cat-section__head h2::after { transform-origin: right center; }
.cat-js:not(.cat-force) .cat-section__head:not(.is-in) h2::after { transform: scaleX(0); }
.cat-section__head p { display: block; margin: 0; max-width: 760px; color: var(--muted); line-height: 1.7; }

/* ---------- cards ---------- */
.cat-cell { display: flex; }
.cat-cell > .cat-card { flex: 1; min-width: 0; }
.cat-card {
    position: relative; display: grid; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 16px 40px rgba(11, 18, 32, .06);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s ease;
}
.cat-card__cover {
    display: block; padding: 34px 30px 28px; perspective: 1100px; overflow: hidden;
    background: radial-gradient(120% 100% at 50% 0%, #f8fcfb 0%, var(--mist) 46%, var(--mist2) 100%);
}
/* the cover shown as a standing book */
.cat-book { display: block; max-width: 220px; margin: 0 auto; }
.cat-book__body {
    display: block; position: relative; overflow: hidden; border-radius: 3px 8px 8px 3px;
    transform-origin: 0 50%; transform: rotateY(-15deg);
    transition: transform .8s var(--ease), box-shadow .8s var(--ease);
    box-shadow: 1px 0 0 #cdd9d5, 2px 0 0 #fff, 3px 0 0 #cdd9d5, 4px 0 0 #fff, 5px 0 0 #c3d0cb, 16px 22px 32px rgba(6, 32, 26, .30);
}
.cat-book__body img { display: block; width: 100%; height: auto; background: #fff; }
.cat-book__body::before {   /* spine fold */
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 0, 0, .32) 0, rgba(255, 255, 255, .22) 2.5%, rgba(0, 0, 0, .10) 5.5%, transparent 12%);
}
.cat-book__body::after {    /* gloss sweep */
    content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .42) 50%, transparent 62%) 130% 0 / 260% 100% no-repeat;
    transition: background-position 1.1s var(--ease);
}

.cat-card__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; }
.cat-card__kicker { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.cat-card__title { margin: 0; font-size: 1.4rem; line-height: 1.18; letter-spacing: -.01em; }
.cat-card__title a { color: inherit; text-decoration: none; }
.cat-card__text { margin: 0; color: var(--muted); line-height: 1.7; font-size: .96rem; }
.cat-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
.cat-card__meta li { padding: 6px 12px; border-radius: 999px; background: var(--mist); color: rgba(11, 18, 32, .78); font-size: .81rem; }
.cat-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 12px; }

@media (hover: hover) {
    .cat-card:hover { transform: translateY(-8px); box-shadow: 0 34px 70px rgba(8, 40, 32, .18); border-color: rgba(15, 118, 110, .25); }
    .cat-card:hover .cat-book__body { transform: rotateY(-30deg) translateY(-6px) scale(1.04); box-shadow: 1px 0 0 #cdd9d5, 2px 0 0 #fff, 3px 0 0 #cdd9d5, 4px 0 0 #fff, 5px 0 0 #c3d0cb, 26px 34px 44px rgba(6, 32, 26, .38); }
    .cat-card:hover .cat-book__body::after { background-position: -30% 0; }
}

/* featured (flagship) catalogue */
.cat-card--featured {
    grid-template-columns: minmax(280px, 38%) 1fr; color: #fff; border-color: rgba(255, 255, 255, .08);
    background:
        radial-gradient(520px 300px at 100% 0%, rgba(94, 234, 212, .20), transparent 62%),
        linear-gradient(135deg, var(--g950) 0%, var(--g800) 100%);
    box-shadow: 0 30px 70px rgba(6, 32, 26, .28);
}
.cat-card--featured .cat-card__cover { display: flex; align-items: center; padding: 48px 38px; background: radial-gradient(70% 62% at 50% 55%, rgba(94, 234, 212, .24), transparent 72%); }
.cat-card--featured .cat-book { max-width: 300px; }
.cat-card--featured .cat-book__body { transform: rotateY(calc(-16deg + var(--ry, 0deg))) rotateX(var(--rx, 0deg)); transition: transform .35s var(--ease), box-shadow .8s var(--ease); box-shadow: 1px 0 0 #cdd9d5, 2px 0 0 #fff, 3px 0 0 #cdd9d5, 4px 0 0 #fff, 5px 0 0 #c3d0cb, 24px 32px 50px rgba(0, 0, 0, .55); }
.cat-card--featured .cat-card__body { padding: 40px 44px; justify-content: center; }
.cat-card--featured .cat-card__kicker { color: var(--mint); }
.cat-card--featured .cat-card__title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.cat-card--featured .cat-card__text { color: rgba(255, 255, 255, .8); font-size: 1.04rem; max-width: 640px; }
.cat-card--featured .cat-card__meta li { background: rgba(255, 255, 255, .10); color: rgba(255, 255, 255, .92); border: 1px solid rgba(255, 255, 255, .10); }
.cat-card--featured .cat-card__actions { margin-top: 14px; }
.cat-card--featured .cat-btn--primary { background: #fff; color: var(--ink); }
.cat-card--featured .cat-btn--primary:hover { background: #fff; box-shadow: 0 14px 34px rgba(94, 234, 212, .35); }
.cat-card--featured .cat-btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .3); }
.cat-card--featured .cat-btn--ghost:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .55); box-shadow: none; }
@media (hover: hover) {
    .cat-card--featured:hover { border-color: rgba(94, 234, 212, .35); box-shadow: 0 40px 90px rgba(6, 32, 26, .42); }
    .cat-card--featured:hover .cat-book__body { transform: rotateY(calc(-26deg + var(--ry, 0deg))) rotateX(var(--rx, 0deg)) translateY(-6px) scale(1.04); }
}

.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cat-grid .cat-card { grid-template-rows: auto 1fr; }

/* ---------- how it works ---------- */
.cat-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cat-tip {
    position: relative; padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(11, 18, 32, .05); overflow: hidden;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.cat-tip::after { content: ''; position: absolute; inset-inline-end: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, rgba(94, 234, 212, .25), transparent 70%); }
.cat-tip:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(8, 40, 32, .12); }
.cat-tip__n {
    display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 12px;
    background: linear-gradient(135deg, var(--g800), var(--accent)); color: #fff; font-weight: 700;
}
.cat-tip strong { display: block; margin-bottom: 6px; font-size: 1.08rem; }
.cat-tip p { margin: 0; color: var(--muted); line-height: 1.65; font-size: .95rem; position: relative; z-index: 1; }

/* ---------- call to action ---------- */
.cat-cta {
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding: 38px 44px; border-radius: 30px; color: #fff;
    background:
        radial-gradient(420px 220px at 95% 0%, rgba(94, 234, 212, .26), transparent 65%),
        linear-gradient(135deg, var(--ink) 0%, var(--g900) 70%, var(--g800) 100%);
    box-shadow: 0 28px 70px rgba(6, 32, 26, .26);
}
.cat-cta h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 2.7vw, 1.9rem); }
.cat-cta p { margin: 0; max-width: 620px; color: rgba(255, 255, 255, .82); line-height: 1.65; }

/* ======================================================================
   Viewer page
   ====================================================================== */
.cbk-page { padding-bottom: 60px; }
.cbk-head { max-width: 1240px; margin: 0 auto; padding: 18px 4px 14px; }
.cbk-crumbs { margin: 0 0 6px; font-size: .84rem; color: #7b8794; }
.cbk-crumbs a { color: #7b8794; text-decoration: none; }
.cbk-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.cbk-crumbs span { color: var(--ink); font-weight: 700; }
.cbk-head__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.cbk-head h1 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.95rem); line-height: 1.15; letter-spacing: -.01em; }
.cbk-head__kicker { margin: 0; color: var(--muted); font-size: .98rem; }

.cbk {
    position: relative; max-width: 1240px; margin: 0 auto; direction: ltr; overflow: hidden; border-radius: 30px;
    background:
        radial-gradient(70% 55% at 50% 22%, rgba(94, 234, 212, .13), transparent 72%),
        radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.3px) 0 0 / 26px 26px,
        linear-gradient(180deg, #14213a 0%, #0b1322 62%, #080e1b 100%);
    box-shadow: 0 34px 80px rgba(6, 20, 26, .38), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.cbk__stage { position: relative; padding: 28px 14px 26px; }
.cbk__stage::after {      /* floor shadow, sits behind the book */
    content: ''; position: absolute; z-index: 0; left: 50%; bottom: 8px; width: 62%; height: 26px; transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); filter: blur(6px); pointer-events: none;
}
.cbk.is-ready .cbk__stage { animation: bookRise 1s var(--ease) both; }
.cbk__book { position: relative; z-index: 1; width: 100%; margin: 0 auto; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cbk__book.is-hot { cursor: pointer; }
/* the library sizes its wrapper with an aspect-ratio padding that is taller than our box and would swallow clicks on the toolbar */
.cbk__book .stf__wrapper { padding-bottom: 0 !important; height: 100%; }

.cbk__page { background: #fff; overflow: hidden; }
.cbk__page > img {
    display: block; width: 100%; height: 100%; object-fit: fill; background: #fff;
    opacity: 0; transition: opacity .3s ease; -webkit-user-drag: none; pointer-events: none;
}
.cbk__page.is-ready > img { opacity: 1; }
.cbk__page::before {
    content: attr(data-n); position: absolute; inset: 0; display: grid; place-items: center;
    color: rgba(11, 18, 32, .18); font-size: 2.2rem; font-weight: 700;
    background: linear-gradient(110deg, #fff 30%, #f1f5f4 48%, #fff 66%) 0 0 / 220% 100%; animation: shimmer 1.6s linear infinite;
}
.cbk__page.is-ready::before { display: none; }
.cbk__hs { position: absolute; inset: 0; pointer-events: none; }
.cbk__hot { position: absolute; border-radius: 3px; pointer-events: none; transition: background .12s ease, box-shadow .12s ease; }
.cbk__hot.is-over { background: rgba(15, 118, 110, .12); box-shadow: inset 0 0 0 2px rgba(15, 118, 110, .75); }

/* toolbar (glass) */
.cbk__bar {
    display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
    width: fit-content; max-width: calc(100% - 20px); margin: 4px auto 16px; padding: 8px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
}
.cbk__btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .25s var(--ease), opacity .15s ease, box-shadow .25s ease;
}
.cbk__btn:hover:not(:disabled) { background: #fff; color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(94, 234, 212, .28); }
.cbk__btn:disabled { opacity: .3; cursor: default; }
.cbk__btn:focus-visible, .cbk__pageinput:focus-visible, .cbk__toc button:focus-visible { outline: 3px solid rgba(94, 234, 212, .75); outline-offset: 2px; }
.cbk__btn.is-on { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.cbk__btn svg { width: 20px; height: 20px; }
.cbk__btn--wide { width: auto; padding: 0 17px; border-radius: 999px; gap: 8px; grid-auto-flow: column; font-weight: 700; font-size: .9rem; }
.cbk__sep { width: 1px; height: 26px; margin: 0 6px; background: rgba(255, 255, 255, .2); }
.cbk__pager { display: inline-flex; align-items: center; gap: 6px; min-width: 130px; justify-content: center; color: #fff; font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; }
.cbk__pageinput {
    width: 64px; height: 38px; padding: 0 6px; text-align: center; border-radius: 12px; font: inherit; color: #fff;
    border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .10); -moz-appearance: textfield; appearance: textfield;
}
.cbk__pageinput::-webkit-outer-spin-button, .cbk__pageinput::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cbk__total { color: rgba(255, 255, 255, .6); font-weight: 400; }
.cbk__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* contents popover */
.cbk__tocwrap { position: relative; }
.cbk__toc {
    position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%); z-index: 5;
    width: min(330px, 86vw); max-height: min(60vh, 440px); overflow: auto; padding: 8px; border-radius: 18px;
    background: rgba(12, 20, 36, .96); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
    animation: pop .22s var(--ease);
}
.cbk__toc[hidden] { display: none; }
.cbk__toc button {
    display: flex; width: 100%; justify-content: space-between; gap: 14px; padding: 11px 13px; border: 0; border-radius: 11px;
    background: transparent; color: #fff; font: inherit; text-align: start; cursor: pointer;
}
.cbk__toc button:hover { background: rgba(255, 255, 255, .10); }
.cbk__toc button span:last-child { color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; }

.cbk-hint { max-width: 1180px; margin: 16px auto 0; text-align: center; color: var(--muted); font-size: .92rem; line-height: 1.6; }

/* fallback / no js */
.cbk__fallback { display: none; padding: 40px 20px; text-align: center; color: #fff; }
.cbk__fallback img { max-width: 260px; width: 60%; height: auto; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.cbk__fallback p { margin: 18px 0; }
.cbk.is-fallback .cbk__stage, .cbk.is-fallback .cbk__bar { display: none; }
.cbk.is-fallback .cbk__fallback { display: block; }

/* immersive ("full screen") mode */
html.cbk-lock, html.cbk-lock body { overflow: hidden !important; }
.cbk.is-full {
    position: fixed; inset: 0; z-index: 2147483000; max-width: none; margin: 0; border-radius: 0; box-shadow: none;
    display: flex; flex-direction: column; height: 100vh; height: 100dvh;
}
.cbk.is-full .cbk__stage { flex: 1 1 auto; display: flex; align-items: center; padding: 8px 8px 0; min-height: 0; }
.cbk.is-full .cbk__stage::after { display: none; }
.cbk.is-full .cbk__book { margin: auto; }
.cbk.is-full .cbk__bar { flex: none; margin-bottom: calc(14px + env(safe-area-inset-bottom)); }

/* zoom view */
.cbk__zoom {
    position: fixed; inset: 0; z-index: 2147483200; display: flex; flex-direction: column; background: #070c17; color: #fff;
    height: 100vh; height: 100dvh; direction: ltr; animation: fadeIn .25s ease;
}
.cbk__zoom[hidden] { display: none; }
.cbk__zbar {
    flex: none; display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: rgba(12, 20, 36, .96);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.cbk__zbar .cbk__pager { min-width: 0; flex: 1; justify-content: center; }
.cbk__zscroll {
    flex: 1 1 auto; overflow: auto; -webkit-overflow-scrolling: touch; display: flex;
    touch-action: pan-x pan-y pinch-zoom; overscroll-behavior: contain;
}
.cbk__zpages { display: flex; gap: 0; margin: auto; padding: 10px; }
.cbk__zp { position: relative; flex: none; width: var(--zw, 600px); background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.cbk__zp img { display: block; width: 100%; height: auto; }
.cbk__zhot { position: absolute; border-radius: 3px; text-decoration: none; transition: background .12s ease, box-shadow .12s ease; }
.cbk__zhot:hover, .cbk__zhot:focus-visible { background: rgba(15, 118, 110, .14); box-shadow: inset 0 0 0 2px rgba(15, 118, 110, .8); outline: none; }

/* ---------- more catalogues + text ---------- */
.cbk-more { max-width: 1180px; margin: 48px auto 0; }
.cbk-more h2 { margin: 0 0 18px; font-size: 1.6rem; letter-spacing: -.01em; }
.cbk-about { max-width: 1180px; margin: 40px auto 0; display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; }
.cbk-card { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(11, 18, 32, .06); }
.cbk-card h2 { margin: 0 0 14px; font-size: 1.4rem; letter-spacing: -.01em; }
.cbk-card p { margin: 0 0 12px; line-height: 1.75; color: var(--muted); }
.cbk-card .cat-card__meta { margin-bottom: 16px; }
.cbk-card .cat-btn { margin: 4px 6px 0 0; }
.cbk-sections { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.cbk-sections button {
    display: flex; width: 100%; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 0; border-radius: 12px;
    background: transparent; color: var(--ink); font: inherit; text-align: start; cursor: pointer; transition: background .15s ease, padding .2s var(--ease);
}
.cbk-sections button:hover { background: var(--mist); padding-inline-start: 18px; }
.cbk-sections span:last-child { color: rgba(11, 18, 32, .5); font-variant-numeric: tabular-nums; }

/* ---------- keyframes ---------- */
@keyframes orb { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-40px, 40px, 0) scale(1.18); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94, 234, 212, .65); } 70%, 100% { box-shadow: 0 0 0 10px rgba(94, 234, 212, 0); } }
@keyframes floatY { from { transform: translateY(-9px); } to { transform: translateY(11px); } }
@keyframes coverIn { from { opacity: 0; transform: translateY(90px) rotate(0deg) scale(.88); } to { opacity: 1; transform: translateY(0) rotate(var(--r, 0deg)) scale(1); } }
@keyframes bookRise { from { opacity: 0; transform: translateY(34px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes pop { from { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.97); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .cat-hero { grid-template-columns: 1fr; }
    .cat-hero__copy { padding: 40px 30px 8px; }
    .cat-fan { min-height: 330px; }
    .cat-tips { grid-template-columns: 1fr; }
    .cat-card--featured { grid-template-columns: 1fr; }
    .cat-card--featured .cat-card__body { padding: 8px 28px 32px; }
    .cat-card--featured .cat-card__cover { padding: 34px 26px 14px; justify-content: center; }
    .cat-card--featured .cat-book { max-width: 250px; }
    .cbk-about { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .cat-page, .cbk-page { padding-left: 14px; padding-right: 14px; }
    .cat-hero { margin: 16px auto 34px; border-radius: 26px; }
    .cat-hero__copy { padding: 30px 22px 4px; }
    .cat-hero__actions .cat-btn { flex: 1 1 100%; }
    .cat-stat { min-width: 0; flex: 1 1 calc(50% - 5px); padding: 12px 14px; }
    .cat-fan { min-height: 250px; }
    .cat-fan__item { width: 40%; }
    .cat-section { margin-bottom: 40px; }
    .cat-cta { padding: 28px 22px; border-radius: 24px; }
    .cat-cta .cat-btn { width: 100%; }

    /* compact horizontal cards on phones */
    .cat-grid { grid-template-columns: 1fr; gap: 16px; }
    .cat-grid .cat-card { grid-template-columns: 116px 1fr; grid-template-rows: none; align-items: start; }
    .cat-grid .cat-card__cover { grid-row: 1 / span 4; padding: 16px 10px 16px 14px; align-self: stretch; }
    .cat-grid .cat-book__body { transform: rotateY(-10deg); }
    .cat-grid .cat-card__body { display: contents; }
    .cat-grid .cat-card__kicker,
    .cat-grid .cat-card__title,
    .cat-grid .cat-card__text,
    .cat-grid .cat-card__meta { grid-column: 2; padding: 0 16px 0 8px; }
    .cat-grid .cat-card__kicker { padding-top: 16px; font-size: .7rem; }
    .cat-grid .cat-card__title { font-size: 1.12rem; margin-top: 6px; }
    .cat-grid .cat-card__text {
        margin-top: 8px; font-size: .9rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
    }
    .cat-grid .cat-card__meta { margin-top: 10px; padding-bottom: 4px; }
    .cat-grid .cat-card__meta li { font-size: .78rem; padding: 5px 10px; }
    .cat-grid .cat-card__actions { grid-column: 1 / -1; flex-direction: column; padding: 8px 14px 16px; }
    .cat-grid .cat-card__actions .cat-btn { width: 100%; min-height: 42px; padding: 9px 14px; font-size: .9rem; }
    .cat-card--featured .cat-card__actions .cat-btn { flex: 1 1 100%; }

    .cbk-head { padding: 14px 0 10px; }
    .cbk { border-radius: 20px; }
    .cbk__stage { padding: 14px 6px 18px; }
    .cbk__bar { width: calc(100% - 16px); gap: 4px; padding: 8px 8px 10px; border-radius: 22px; margin-bottom: 10px; }
    .cbk__btn { width: 42px; height: 42px; }
    .cbk__sep { display: none; }
    .cbk__btn--wide { width: 42px; padding: 0; }
    .cbk__btn--wide .cbk__lbl { display: none; }
    .cbk__pager { min-width: 0; order: -1; flex: 1 1 100%; justify-content: center; margin-bottom: 4px; }
    .cbk__pageinput { width: 58px; }
    .cbk-card { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .cat-js [data-reveal], .cat-js [data-reveal].is-in { opacity: 1 !important; transform: none !important; transition: none !important; }
    .cat-hero::before, .cat-hero::after, .cat-fan__item, .cat-fan__item img, .cat-eyebrow::before, .cbk.is-ready .cbk__stage,
    .cbk__page::before, .cbk__toc, .cbk__zoom { animation: none !important; }
    .cat-btn, .cat-card, .cat-book__body, .cbk__btn, .cat-tip { transition: none !important; }
    .cat-section__head h2::after { transform: none !important; }
}
