/* ==========================================================================
   Dwaraka 369 — shareable flip book (thedwaraka.com/369)
   ========================================================================== */
:root {
  --em: #0F3D26; --em-2: #17533A; --em-3: #071F13; --ivory: #FAF8F3; --gold: #C49A3A; --gold-2: #D9B867; --gold-3: #A47E27;
  --gold-grad: linear-gradient(135deg, #EBD18A 0%, #C49A3A 40%, #A47E27 65%, #D9B867 100%);
  --serif: "Playfair Display", Georgia, serif; --sans: "Inter", system-ui, sans-serif;
  --top: 60px; --bar: 76px; --ease: cubic-bezier(.22, 1, .36, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; overflow: hidden; background: var(--em-3); color: var(--ivory); font-family: var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

/* ---------- Atmosphere ---------- */
.bk-bg { position: fixed; inset: 0; overflow: hidden; background: radial-gradient(120% 90% at 50% 40%, #1E6644 0%, #0F3D26 45%, #071F13 100%); }
.bk-bg__forest { position: absolute; inset: 0; background: url("../img/forest.jpg") center / cover; opacity: .08; mix-blend-mode: luminosity; }
.bk-bg__mandala { position: absolute; width: min(160vmin, 1400px); left: 50%; top: 50%; translate: -50% -50%; color: var(--gold); opacity: .09; animation: bk-spin 180s linear infinite; }
@keyframes bk-spin { to { rotate: 360deg; } }
.bk-dust i { position: absolute; left: var(--x); bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: var(--gold-2); opacity: 0; box-shadow: 0 0 10px var(--gold-2); animation: bk-rise var(--d) linear var(--delay) infinite; }
@keyframes bk-rise { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .5; } 80% { opacity: .25; } 100% { transform: translateY(-105vh) translateX(20px); opacity: 0; } }

/* ---------- Top bar ---------- */
.bk-top { position: fixed; inset: 0 0 auto; height: var(--top); z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(14px, 3vw, 32px); background: linear-gradient(180deg, rgba(7,31,19,.7), rgba(7,31,19,0)); }
.bk-top__logo img { height: 30px; width: auto; }
.bk-top__actions { display: flex; align-items: center; gap: 8px; }
.bk-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(217,184,103,.35); background: rgba(250,248,243,.06); backdrop-filter: blur(8px); transition: background .3s, border-color .3s; }
.bk-icon svg { width: 18px; height: 18px; }
.bk-icon:hover { background: rgba(217,184,103,.2); border-color: var(--gold-2); }
.bk-pill { height: 42px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; background: var(--gold-grad); color: var(--em-3); font-size: 13px; font-weight: 600; letter-spacing: .04em; box-shadow: 0 6px 20px -6px rgba(196,154,58,.6); }

/* ---------- Stage & book ---------- */
.bk-stage { position: fixed; inset: var(--top) 0 calc(var(--bar) + var(--safe-b)); display: grid; place-items: center; z-index: 5; perspective: 2200px; }
.bk-holder { position: relative; width: var(--book-w, 900px); max-width: calc(100vw - 24px); transition: transform 1.2s var(--ease), filter 1.2s var(--ease); transform-style: preserve-3d; }
.bk-holder::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -26px; height: 40px; background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.55), transparent 70%); filter: blur(8px); z-index: -1; transition: opacity 1s; }
.bk-book { filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
.bk-page { background: #fff; overflow: hidden; }
.bk-page img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.bk-page--hard { background: var(--em); }

/* Intro: closed book floats, tilted, with a gold glow */
.is-intro .bk-holder { transform: scale(.66) translateX(var(--shift, 0%)) translateY(12%) rotateY(-16deg) rotateX(8deg); animation: bk-float 5s ease-in-out infinite; }
.is-intro .bk-holder::before { content: ""; position: absolute; inset: -10%; background: radial-gradient(40% 45% at 62% 50%, rgba(217,184,103,.35), transparent 70%); z-index: -2; filter: blur(20px); animation: bk-glow 3s ease-in-out infinite alternate; }
@keyframes bk-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes bk-glow { from { opacity: .5; } to { opacity: 1; } }

.bk-intro { position: absolute; top: 3%; left: 0; right: 0; text-align: center; pointer-events: none; transition: opacity .6s, transform .8s var(--ease); z-index: 3; }
.bk-intro__eyebrow { margin: 0; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-2); }
.bk-intro__title { margin: 8px 0 0; font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 4.2vw, 48px); line-height: 1.02; }
.bk-intro__title em { color: var(--gold-2); font-weight: 400; }
body:not(.is-intro) .bk-intro { opacity: 0; transform: translateY(-20px); }

.bk-open { position: absolute; bottom: 4%; left: 50%; translate: -50% 0; z-index: 6; display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 26px 0 20px; border-radius: 999px; background: var(--gold-grad); color: var(--em-3); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; box-shadow: 0 12px 30px -8px rgba(196,154,58,.7); transition: opacity .5s, transform .5s var(--ease); }
.bk-open__ring { width: 12px; height: 12px; border-radius: 50%; background: var(--em); box-shadow: 0 0 0 0 rgba(15,61,38,.5); animation: bk-ping 1.6s ease-out infinite; }
@keyframes bk-ping { to { box-shadow: 0 0 0 12px rgba(15,61,38,0); } }
body:not(.is-intro) .bk-open { opacity: 0; transform: translateY(20px); pointer-events: none; }

.bk-hint { position: absolute; bottom: 1%; left: 0; right: 0; margin: 0; text-align: center; font-size: 12px; color: rgba(250,248,243,.7); opacity: 0; transition: opacity .6s; pointer-events: none; }
.bk-hint__hand { display: inline-block; color: var(--gold-2); animation: bk-swipe 1.4s ease-in-out infinite; margin-right: 6px; }
@keyframes bk-swipe { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
body.show-hint .bk-hint { opacity: 1; }

/* ---------- Bottom bar ---------- */
.bk-bar { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--bar) + var(--safe-b)); padding: 0 clamp(14px, 4vw, 40px) var(--safe-b); z-index: 20; display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 26px); background: linear-gradient(0deg, rgba(7,31,19,.85), rgba(7,31,19,0)); transition: opacity .6s, transform .6s var(--ease); }
.is-intro .bk-bar { opacity: 0; transform: translateY(20px); pointer-events: none; }
.bk-nav { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(250,248,243,.08); border: 1px solid rgba(217,184,103,.4); transition: background .3s, transform .3s var(--ease); flex-shrink: 0; }
.bk-nav svg { width: 20px; height: 20px; }
.bk-nav:hover { background: var(--gold); color: var(--em-3); }
.bk-nav:active { transform: scale(.94); }
.bk-nav[disabled] { opacity: .3; pointer-events: none; }
.bk-meter { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 14px; }
.bk-meter__track { flex: 1; height: 3px; border-radius: 3px; background: rgba(250,248,243,.15); overflow: hidden; }
.bk-meter__track i { display: block; height: 100%; width: 100%; background: var(--gold-grad); transform-origin: left; transform: scaleX(0); transition: transform .6s var(--ease); }
.bk-meter__count { font-size: 12px; letter-spacing: .1em; color: rgba(250,248,243,.7); font-variant-numeric: tabular-nums; min-width: 62px; text-align: right; }
.bk-meter__count b { color: var(--ivory); font-weight: 600; }

/* ---------- Closing CTA spread (inside the book) ---------- */
.bk-cta { position: relative; background: var(--ivory); color: #1B241F; }
.bk-cta--left img { position: absolute; inset: 0; object-position: 60% 50%; }
.bk-cta__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,31,19,.1) 35%, rgba(7,31,19,.88) 100%); }
.bk-cta__quote { position: absolute; left: 9%; right: 9%; bottom: 9%; color: var(--ivory); container-type: inline-size; }
.bk-cta__quote span { font-size: max(9px, 3.4cqi); letter-spacing: .28em; text-transform: uppercase; color: var(--gold-2); }
.bk-cta__quote p { font-family: var(--serif); font-size: max(18px, 12cqi); line-height: 1.02; margin: 6px 0 10px; }
.bk-cta__quote em { color: var(--gold-2); }
.bk-cta__quote small { font-size: max(8px, 3.2cqi); letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.bk-cta--right { background: radial-gradient(90% 70% at 100% 0%, rgba(234,219,181,.6), transparent 60%), linear-gradient(180deg, #FAF8F3, #EEF3EF); }
.bk-cta--right::before { content: ""; position: absolute; inset: 4%; border: 1px solid rgba(196,154,58,.5); pointer-events: none; }
.bk-cta__inner { position: absolute; inset: 0; padding: 12% 11%; display: flex; flex-direction: column; justify-content: center; gap: max(6px, 2.6cqi); container-type: inline-size; }
.bk-cta__logo { width: 64%; }
.bk-cta__inner h2 { margin: 0; font-family: var(--serif); font-size: max(20px, 11cqi); line-height: 1; color: var(--em); font-weight: 600; }
.bk-cta__inner h2 em { color: var(--gold-3); font-weight: 400; }
.bk-cta__inner p { margin: 0; font-size: max(10px, 3.5cqi); line-height: 1.5; color: #56635B; }
.bk-cta__inner ul { margin: 0; padding: 0; list-style: none; font-size: max(9px, 3.1cqi); }
.bk-cta__inner li { padding: 4px 0; border-bottom: 1px solid rgba(15,61,38,.12); }
.bk-cta__inner li b { font-family: var(--serif); color: var(--em); margin-right: 6px; }
.bk-cta__mail { font-size: max(9px, 3cqi); color: var(--gold-3); }
.bk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: max(34px, 9.5cqi); padding: 0 16px; border-radius: 999px; font-size: max(10px, 3cqi); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; transition: transform .3s var(--ease), box-shadow .3s; white-space: nowrap; }
.bk-btn svg { width: 16px; height: 16px; }
.bk-btn--gold { background: var(--gold-grad); color: var(--em-3); box-shadow: 0 8px 20px -8px rgba(196,154,58,.7); }
.bk-btn--line { border: 1px solid currentColor; color: var(--em); }
.bk-btn:hover { transform: translateY(-2px); }

/* ---------- Sticky CTA bar (appears as you read) ---------- */
.bk-cta-bar { position: fixed; left: 50%; bottom: calc(var(--bar) + var(--safe-b) + 6px); z-index: 25; translate: -50% calc(100% + var(--bar) + 40px); opacity: 0; visibility: hidden; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; width: min(560px, calc(100vw - 20px)); border-radius: 999px; background: rgba(250,248,243,.96); color: var(--em); box-shadow: 0 20px 50px -15px rgba(0,0,0,.6), 0 0 0 1px rgba(196,154,58,.5); transition: translate .7s var(--ease); }
.bk-cta-bar { transition: translate .7s var(--ease), opacity .5s, visibility 0s .7s; }
.bk-cta-bar.is-on { translate: -50% 0; opacity: 1; visibility: visible; transition: translate .7s var(--ease), opacity .5s; }
.is-intro .bk-cta-bar { visibility: hidden; opacity: 0; }
.bk-cta-bar div { flex: 1; display: grid; line-height: 1.2; min-width: 0; }
.bk-cta-bar b { font-family: var(--serif); font-size: 16px; }
.bk-cta-bar span { font-size: 11.5px; color: #56635B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-btn--sm { min-height: 40px; font-size: 11.5px; padding: 0 16px; }
.bk-cta-bar .bk-btn--line { color: var(--em); }
.bk-cta-bar__x { width: 30px; height: 30px; border-radius: 50%; font-size: 18px; color: #56635B; }

/* ---------- Credit & toast ---------- */
.bk-credit { position: fixed; right: 14px; bottom: calc(var(--bar) + var(--safe-b) + 10px); z-index: 15; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 12px; border-radius: 999px; background: rgba(255,255,255,.92); color: #56635B; font-size: 10px; letter-spacing: .04em; opacity: .75; transition: opacity .3s; }
.bk-credit img { height: 16px; width: auto; }
.bk-credit:hover { opacity: 1; }
.is-reading .bk-credit { opacity: 0; pointer-events: none; }
.bk-toast { position: fixed; top: calc(var(--top) + 10px); left: 50%; translate: -50% -20px; z-index: 30; padding: 10px 18px; border-radius: 999px; background: var(--ivory); color: var(--em); font-size: 13px; font-weight: 500; opacity: 0; transition: opacity .4s, translate .4s var(--ease); pointer-events: none; }
.bk-toast.is-on { opacity: 1; translate: -50% 0; }

/* Full screen */
:fullscreen .bk-top { background: none; }

/* ---------- Phones ---------- */
@media (max-width: 700px) {
  :root { --top: 56px; --bar: 70px; }
  .bk-only-desk { display: none; }
  .bk-top__logo img { height: 24px; }
  .bk-pill { height: 38px; padding: 0 14px; font-size: 12px; }
  .bk-icon { width: 38px; height: 38px; }
  .is-intro .bk-holder { transform: scale(.72) translateX(var(--shift, 0%)) translateY(5%) rotateY(-10deg) rotateX(6deg); }
  .bk-intro { top: 1%; }
  .bk-credit { right: 50%; translate: 50% 0; bottom: calc(var(--safe-b) + 6px); z-index: 21; }
  body:not(.is-intro) .bk-credit { opacity: 0; pointer-events: none; }
  .bk-cta-bar b { font-size: 14px; }
  .bk-cta-bar .bk-btn--line span { display: none; }
  .bk-cta-bar .bk-btn--line { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- Music button: animated equalizer bars ---------- */
.bk-eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.bk-eq i { width: 2.5px; height: 3px; background: currentColor; border-radius: 2px; transition: height .3s; }
.bk-sound.is-on { border-color: var(--gold-2); background: rgba(217,184,103,.18); color: var(--gold-2); }
.bk-sound.is-on .bk-eq i { animation: bk-eq .9s ease-in-out infinite; }
.bk-sound.is-on .bk-eq i:nth-child(2) { animation-delay: -.3s; }
.bk-sound.is-on .bk-eq i:nth-child(3) { animation-delay: -.6s; }
.bk-sound.is-on .bk-eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes bk-eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }
.bk-sound:not(.is-on) .bk-eq i:nth-child(odd) { height: 6px; }

/* ---------- "with music" note on the open button ---------- */
.bk-open__note { font-size: 10px; letter-spacing: .12em; text-transform: none; font-weight: 500; opacity: .75; margin-left: -4px; }

/* ---------- Personal greeting ---------- */
.bk-intro__for { margin: 0 0 10px; display: inline-block; padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(217,184,103,.5); background: rgba(217,184,103,.1); font-size: 12.5px; color: var(--ivory); letter-spacing: .04em; }
.bk-intro__for b { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--gold-2); font-size: 15px; }

/* ---------- Contents panel ---------- */
.bk-toc { position: fixed; inset: 0; z-index: 40; background: rgba(4,18,11,.55); backdrop-filter: blur(6px); display: flex; justify-content: flex-end; }
.bk-toc[hidden] { display: none; }
.bk-toc__panel { width: min(380px, 100vw); height: 100%; overflow: auto; background: linear-gradient(180deg, #0F3D26, #0A2C1B); border-left: 1px solid rgba(217,184,103,.3); padding: 22px 22px 40px; animation: bk-slide .45s var(--ease); }
@keyframes bk-slide { from { transform: translateX(40px); opacity: 0; } }
.bk-toc__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-2); }
.bk-toc__x { width: 40px; height: 40px; border-radius: 50%; font-size: 22px; color: var(--ivory); border: 1px solid rgba(217,184,103,.35); }
.bk-toc ol { list-style: none; margin: 0; padding: 0; }
.bk-toc li button { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 10px; padding: 14px 4px; border-bottom: 1px solid rgba(250,248,243,.1); text-align: left; transition: background .3s, padding .3s var(--ease); }
.bk-toc li button:hover, .bk-toc li button:focus-visible { background: rgba(217,184,103,.08); padding-left: 10px; }
.bk-toc .n { font-size: 11px; color: var(--gold-2); letter-spacing: .1em; }
.bk-toc .t { font-family: var(--serif); font-size: 19px; color: var(--ivory); }
.bk-toc .p { font-size: 11px; color: rgba(250,248,243,.5); }

/* ---------- Gold leaves celebration ---------- */
.bk-leaves { position: fixed; inset: 0; pointer-events: none; z-index: 35; overflow: hidden; }
.bk-leaves i { position: absolute; top: -40px; left: var(--x); width: var(--s); height: calc(var(--s) * 1.6); background: var(--gold-grad); border-radius: 0 100% 0 100%; opacity: 0; box-shadow: 0 0 8px rgba(217,184,103,.5);
  animation: bk-leaf var(--d) cubic-bezier(.3,.1,.5,1) var(--delay) forwards; }
@keyframes bk-leaf {
  0% { opacity: 0; transform: translate(0, 0) rotate(0); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--drift), 105vh) rotate(var(--r)); }
}

/* ---------- Page zoom view (phones) ---------- */
.bk-zoom { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; background: radial-gradient(90% 70% at 50% 40%, #17533A, #071F13); }
.bk-zoom[hidden] { display: none; }
.bk-zoom__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; font-size: 12px; color: rgba(250,248,243,.8); letter-spacing: .08em; }
.bk-zoom__tip { flex: 1; text-align: center; font-size: 11px; color: var(--gold-2); }
.bk-zoom__top .bk-icon { font-size: 22px; }
.bk-zoom__scroll { flex: 1; overflow: auto; display: grid; place-items: center; padding: 0 10px; touch-action: pan-x pan-y pinch-zoom; -webkit-overflow-scrolling: touch; }
.bk-zoom__scroll img { width: 100%; max-width: 620px; height: auto; max-height: 100%; object-fit: contain; box-shadow: 0 20px 50px rgba(0,0,0,.5); background: #fff; animation: bk-zin .35s var(--ease); }
@keyframes bk-zin { from { opacity: 0; transform: scale(.96); } }
.bk-zoom__nav { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 12px 12px calc(14px + var(--safe-b)); }
.is-zoom .bk-cta-bar, .is-zoom .bk-rotate { visibility: hidden; }

/* ---------- "Turn your phone" prompt ---------- */
.bk-rotate { position: fixed; left: 50%; top: calc(var(--top) + 8px); z-index: 26; translate: -50% -20px; display: flex; align-items: center; gap: 12px; width: min(360px, calc(100vw - 20px)); padding: 10px 10px 10px 14px; border-radius: 16px; background: rgba(250,248,243,.97); color: #1B241F; font-size: 12.5px; line-height: 1.35; box-shadow: 0 16px 40px -12px rgba(0,0,0,.55), 0 0 0 1px rgba(196,154,58,.5); opacity: 0; visibility: hidden; transition: opacity .5s, translate .6s var(--ease), visibility 0s .6s; }
.bk-rotate.is-on { opacity: 1; visibility: visible; translate: -50% 0; transition: opacity .5s, translate .6s var(--ease); }
.bk-rotate b { color: var(--em); }
.bk-rotate button { width: 30px; height: 30px; border-radius: 50%; font-size: 18px; color: #56635B; flex-shrink: 0; }
.bk-rotate__phone { width: 18px; height: 30px; border: 2px solid var(--em); border-radius: 4px; flex-shrink: 0; animation: bk-turn 2.2s var(--ease) infinite; }
@keyframes bk-turn { 0%, 25% { rotate: 0deg; } 55%, 85% { rotate: -90deg; } 100% { rotate: 0deg; } }

/* Hints: show the right one for mouse vs touch */
.bk-hint__touch { display: none; }
@media (pointer: coarse) { .bk-hint__desk { display: none; } .bk-hint__touch { display: inline; } }

/* ---------- Phones in portrait: spread fills the width, centred ---------- */
@media (max-width: 699px) and (orientation: portrait) {
  .bk-stage { align-content: center; }
  .bk-holder { max-width: calc(100vw - 12px); }
  .is-intro .bk-holder { transform: scale(1.5) translateX(var(--shift, 0%)) translateY(3%) rotateY(-14deg) rotateX(6deg); }
  body:not(.is-intro) .bk-book { filter: drop-shadow(0 18px 24px rgba(0,0,0,.5)); }
}

/* ---------- Phones in landscape: shrink the chrome, give the book the room ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --top: 44px; --bar: 50px; }
  .bk-top__logo img { height: 20px; }
  .bk-icon { width: 34px; height: 34px; }
  .bk-pill { height: 32px; font-size: 11px; padding: 0 12px; }
  .bk-intro { display: none; }
  .is-intro .bk-holder { transform: scale(.82) translateX(var(--shift, 0%)) rotateY(-14deg) rotateX(6deg); }
  .bk-open { bottom: 2%; height: 42px; }
  .bk-nav { width: 38px; height: 38px; }
  .bk-cta-bar { bottom: calc(var(--bar) + 4px); padding: 5px 6px 5px 14px; }
  .bk-cta-bar span { display: none; }
  .bk-credit, .bk-hint { display: none; }
  .bk-rotate { display: none; }
}

.bk-open { white-space: nowrap; }
.bk-open__note { white-space: nowrap; }
@media (max-width: 380px) { .bk-open { padding: 0 20px 0 16px; gap: 10px; } }

/* Phones sideways: book takes the full height; controls float over it and fade when idle */
@media (max-height: 500px) and (orientation: landscape) {
  body:not(.is-intro) .bk-stage { inset: 0; }
  .bk-top, .bk-bar { transition: opacity .6s, transform .6s var(--ease); }
  body.ui-idle:not(.is-intro):not(.is-zoom) .bk-top { opacity: 0; transform: translateY(-100%); pointer-events: none; }
  body.ui-idle:not(.is-intro):not(.is-zoom) .bk-bar { opacity: 0; transform: translateY(100%); pointer-events: none; }
  body.ui-idle .bk-cta-bar { opacity: 0 !important; }
}

/* ---------- Big screens & sideways phones: no floating CTA over the book ---------- */
.bk-pill--call { display: none; }
@media (min-width: 700px), (max-height: 500px) and (orientation: landscape) {
  .bk-cta-bar { display: none !important; }
  .bk-pill--call { display: inline-flex; gap: 8px; background: rgba(250,248,243,.08); color: var(--ivory); border: 1px solid rgba(217,184,103,.45); box-shadow: none; opacity: 0; transform: translateX(12px); pointer-events: none; transition: opacity .6s, transform .6s var(--ease), background .3s; }
  .bk-pill--call svg { width: 15px; height: 15px; color: var(--gold-2); }
  .bk-pill--call:hover { background: rgba(217,184,103,.2); }
  .cta-ready .bk-pill--call { opacity: 1; transform: none; pointer-events: auto; }
  .cta-ready .bk-pill--book { animation: bk-pulse 2.4s ease-in-out 3; }
  @keyframes bk-pulse { 0%, 100% { box-shadow: 0 6px 20px -6px rgba(196,154,58,.6); } 50% { box-shadow: 0 0 0 8px rgba(217,184,103,.18), 0 6px 24px -4px rgba(196,154,58,.9); } }
  /* keep the credit clear of the page edge on big screens */
  .bk-credit { bottom: calc((var(--bar) - 24px) / 2 + var(--safe-b)); right: clamp(14px, 2vw, 28px); z-index: 21; }
}
@media (max-height: 500px) and (orientation: landscape) { .bk-pill--call span { display: none; } }
