
/* ---------- /coloring — «Всесвіт усередині» ---------- */
body.page-coloring { background: #070a1f; }
.page-coloring .page-header { background: transparent; }
.coloring { max-width: none; margin: 0; --navy: #0b1030; --deep: #070a1f; --gold: #e8c46a; --gold2: #f6dea0; --pink: #e0409a; --cyan: #3fd8f0; --violet: #7a4dff; position: relative; overflow: clip; color: #e9e6f5; background: radial-gradient(ellipse 120% 70% at 70% 0%, #17215a 0%, #0b1030 45%, #070a1f 100%); }
.coloring em { font-style: normal; color: var(--gold); }
.coloring h1, .coloring h2 { font-family: 'EB Garamond', Georgia, serif; font-weight: 400; letter-spacing: -.01em; text-wrap: balance; }
.coloring h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; margin: 12px 0 0; color: #f4f1ff; }
.cl-eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.cl-link { color: var(--gold2); font-size: 15px; }
.cl-link:hover { color: #fff; }
.cl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 30px; }
.coloring .pill.lime i { background: var(--gold); color: #2a1e05; }
.coloring .pill { border-color: #e8c46a66; background: linear-gradient(90deg, #e8c46a1f, #0000); }

/* hero */
.cl-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 70px); align-items: center; width: min(1320px, calc(100% - 2 * var(--gutter))); margin: 0 auto; min-height: min(92vh, 900px); padding: clamp(20px, 4vw, 60px) 0 clamp(50px, 6vw, 90px); }
.cl-stars { position: absolute; inset: -80px calc(50% - 50vw) 0; width: 100vw; height: calc(100% + 80px); z-index: -1; pointer-events: none; }
.cl-ink { position: absolute; inset: 0 calc(50% - 50vw); z-index: -2; pointer-events: none; filter: blur(60px) saturate(1.2); opacity: .55; }
.cl-ink i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: cl-drift 24s ease-in-out infinite alternate; }
.cl-ink i:nth-child(1) { width: 38vw; height: 30vw; left: 52%; top: 4%; background: var(--violet); }
.cl-ink i:nth-child(2) { width: 30vw; height: 26vw; left: 68%; top: 40%; background: var(--pink); animation-duration: 30s; animation-delay: -8s; }
.cl-ink i:nth-child(3) { width: 34vw; height: 24vw; left: 44%; top: 55%; background: var(--cyan); opacity: .7; animation-duration: 27s; animation-delay: -14s; }
.cl-ink i:nth-child(4) { width: 26vw; height: 22vw; left: -6%; top: 10%; background: #2b3ea8; animation-duration: 34s; }
@keyframes cl-drift { 0% { transform: translate(0, 0) scale(1) rotate(0); } 50% { transform: translate(-6vw, 4vw) scale(1.18) rotate(20deg); } 100% { transform: translate(4vw, -3vw) scale(.92) rotate(-12deg); } }
.cl-hero-text h1 { font-size: clamp(56px, 8.4vw, 132px); line-height: .92; margin: 18px 0 0; color: #fff; }
.cl-hero-text h1 span { display: block; background: linear-gradient(100deg, #b9f3ff 0%, #f0b3ff 40%, #ffd98f 75%, #b9f3ff 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: cl-shimmer 9s ease-in-out infinite; }
.cl-hero-text h1 em { display: block; font-size: .72em; margin-top: .08em; color: var(--gold); }
@keyframes cl-shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.cl-lead { margin-top: 26px; max-width: 52ch; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.7; color: #cfd0ea; }
.cl-hero-text > * { animation: panel-enter .9s var(--ease) both; }
.cl-hero-text > :nth-child(2) { animation-delay: .1s; } .cl-hero-text > :nth-child(3) { animation-delay: .2s; } .cl-hero-text > :nth-child(4) { animation-delay: .3s; }

/* paintable cover */
.cl-paint { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; perspective: 1400px; }
.cl-paint-stage { position: relative; width: min(100%, 520px); aspect-ratio: 1000 / 1283; transition: transform .6s var(--ease); transform-style: preserve-3d; animation: cl-float 7s ease-in-out infinite; --gx: 50%; --gy: 30%; }
.cl-paint-stage:after { content: ""; position: absolute; inset: 1% 5% 3% 2%; border-radius: 6px; pointer-events: none; background: radial-gradient(circle at var(--gx) var(--gy), #ffffff2e, #fff0 45%); mix-blend-mode: soft-light; }
@keyframes cl-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.cl-paint-color, .cl-paint-sketch { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cl-paint-sketch { cursor: none; touch-action: pan-y; transition: opacity 1.4s ease; opacity: 0; }
.cl-paint.is-ready .cl-paint-sketch { opacity: 1; }
.cl-paint.is-done .cl-paint-sketch { opacity: 0 !important; pointer-events: none; }
.cl-brush { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(circle, #ffffffcc 0 2px, #fff0 3px), conic-gradient(from 0deg, #3fd8f0, #e0409a, #7a4dff, #e8c46a, #3fd8f0); -webkit-mask: radial-gradient(circle, #000 2px, #0000 3px 12px, #000 13px 15px, #0000 16px); mask: radial-gradient(circle, #000 2px, #0000 3px 12px, #000 13px 15px, #0000 16px); filter: drop-shadow(0 0 8px #e8c46a); }
.cl-paint figcaption { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px; min-height: 44px; text-align: center; }
.cl-paint-hint { font-family: 'EB Garamond', Georgia, serif; font-size: 18px; color: var(--gold2); width: 100%; }
.cl-paint-btn { font: inherit; font-size: 13px; padding: 9px 16px; border-radius: 30px; border: 1px solid #e8c46a88; background: #e8c46a1a; color: var(--gold2); cursor: pointer; transition: background .25s, color .25s; }
.cl-paint-btn:hover { background: var(--gold); color: #2a1e05; }
.cl-paint-btn.ghost { background: transparent; border-color: #ffffff33; color: #cfd0ea; }
.cl-paint.is-done .cl-paint-hint { animation: panel-enter .6s var(--ease) both; }

/* facts */
.cl-facts { width: min(1320px, calc(100% - 2 * var(--gutter))); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid #e8c46a33; }
.cl-facts div { padding: 28px 20px; display: flex; flex-direction: column; gap: 6px; }
.cl-facts div + div { border-left: 1px solid #e8c46a22; }
.cl-facts b { font-family: 'EB Garamond', Georgia, serif; font-weight: 400; font-size: clamp(44px, 4.6vw, 64px); line-height: 1; color: var(--gold); }
.cl-facts span { font-size: 14px; color: #b9bbd8; line-height: 1.45; }

/* about + flip */
.cl-about { width: min(1320px, calc(100% - 2 * var(--gutter))); margin: clamp(70px, 9vw, 130px) auto 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.cl-about-text { position: sticky; top: 18vh; }
.cl-about-text p:not(.cl-eyebrow) { margin-top: 20px; font-size: 17px; line-height: 1.75; color: #cfd0ea; max-width: 52ch; }
.cl-flip { height: 220vh; }
.cl-flip-sticky { position: sticky; top: 8vh; height: 84vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; perspective: 1600px; }
.cl-flip-book { --shade: 0; position: relative; width: min(100%, 440px); aspect-ratio: 1000 / 1283; transform-origin: 50% 60%; will-change: transform; }
.cl-flip-book img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 30px 50px #0009) brightness(calc(1 - var(--shade) * .45)); transition: opacity .12s linear; }
.cl-flip-book[data-side="front"] .cl-flip-back, .cl-flip-book[data-side="back"] .cl-flip-front, .cl-flip-book:not([data-side]) .cl-flip-back { opacity: 0; }
/* soft light sweeping across the page while it turns */
.cl-flip-book:after { content: ""; position: absolute; inset: 2% 6% 3% 3%; pointer-events: none; opacity: calc(var(--shade) * 1.2); background: linear-gradient(100deg, #fff0 20%, #ffffff55 50%, #fff0 80%); mix-blend-mode: soft-light; }
.cl-flip-label { font-family: 'EB Garamond', Georgia, serif; font-size: 22px; color: var(--gold2); text-align: center; }
.cl-flip-label small { display: block; font-family: 'DM Sans', Arial, sans-serif; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #8f92b8; margin-top: 4px; }

/* journey */
.cl-journey, .cl-for { width: min(1120px, calc(100% - 2 * var(--gutter))); margin: clamp(70px, 9vw, 130px) auto 0; }
.cl-journey-head { max-width: 720px; }
.cl-journey-head p:not(.cl-eyebrow) { margin-top: 18px; font-size: 17px; line-height: 1.7; color: #cfd0ea; }
.cl-chapters { --progress: 0; list-style: none; margin: 50px 0 0; padding: 0 0 0 clamp(26px, 4vw, 60px); position: relative; display: grid; gap: 22px; }
.cl-chapters:before, .cl-chapters:after { content: ""; position: absolute; left: clamp(8px, 1.4vw, 20px); top: 10px; bottom: 10px; width: 2px; border-radius: 2px; }
.cl-chapters:before { background: #ffffff14; }
.cl-chapters:after { background: linear-gradient(#5c6f95, #b23a55, #2a6f73, #8f7fd1, #f2c44d); transform-origin: top; transform: scaleY(var(--progress)); box-shadow: 0 0 14px #e8c46a66; }
.cl-chapter { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 40px); align-items: center; padding: clamp(22px, 3vw, 36px); border-radius: 22px; border: 1px solid #ffffff1a; background: #0d1338b3; opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .8s; }
.cl-chapter.is-in { opacity: 1; transform: none; border-color: color-mix(in srgb, var(--c2) 45%, transparent); }
.cl-bloom { position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -12%; top: 50%; border-radius: 50%; background: radial-gradient(circle at 40% 40%, var(--c2), transparent 60%), radial-gradient(circle at 70% 60%, var(--c1), transparent 55%), radial-gradient(circle at 30% 75%, var(--c3), transparent 50%); filter: blur(34px); opacity: 0; transform: translateY(-50%) scale(.2); transition: transform 1.6s var(--ease) .15s, opacity 1.4s ease .15s; }
.cl-chapter.is-in .cl-bloom { opacity: .55; transform: translateY(-50%) scale(1); }
.cl-num { font-family: 'EB Garamond', Georgia, serif; font-size: clamp(54px, 6vw, 92px); line-height: 1; min-width: 1.6em; text-align: center; background: linear-gradient(160deg, var(--c3), var(--c2) 50%, var(--c1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cl-chapter h3 { font-family: 'EB Garamond', Georgia, serif; font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; color: #fff; }
.cl-chapter p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: #cfd0ea; max-width: 56ch; }
.cl-palette { display: flex; gap: 8px; margin-top: 16px; }
.cl-palette i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 2px #ffffff30, 0 4px 12px #0006; transform: scale(0); transition: transform .5s var(--ease); }
.cl-chapter.is-in .cl-palette i { transform: scale(1); }
.cl-chapter.is-in .cl-palette i:nth-child(2) { transition-delay: .12s; } .cl-chapter.is-in .cl-palette i:nth-child(3) { transition-delay: .24s; }

/* symbols marquee */
.cl-symbols { margin: clamp(70px, 9vw, 130px) 0 0; text-align: center; }
.cl-symbols-lead { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.cl-marquee { overflow: hidden; margin-top: 22px; padding-block: 18px; border-block: 1px solid #e8c46a26; -webkit-mask: linear-gradient(90deg, #0000, #000 12%, #000 88%, #0000); mask: linear-gradient(90deg, #0000, #000 12%, #000 88%, #0000); }
.cl-marquee div { display: flex; width: max-content; gap: 34px; align-items: center; animation: cl-marquee 36s linear infinite; }
.cl-marquee span { font-family: 'EB Garamond', Georgia, serif; font-size: clamp(30px, 4vw, 56px); color: #f4f1ff; white-space: nowrap; }
.cl-marquee i { font-style: normal; color: var(--gold); font-size: 20px; }
@keyframes cl-marquee { to { transform: translateX(-50%); } }

/* spread + quote */
.cl-spread { width: min(1100px, calc(100% - 2 * var(--gutter))); margin: clamp(60px, 8vw, 110px) auto 0; }
.cl-spread img { width: 100%; height: auto; display: block; filter: drop-shadow(0 40px 60px #000a); }
.cl-quote { width: min(980px, calc(100% - 2 * var(--gutter))); margin: clamp(60px, 8vw, 110px) auto 0; text-align: center; }
.cl-quote p { font-family: 'EB Garamond', Georgia, serif; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.3; color: #f4f1ff; }
.cl-quote p:before { content: "\201C"; display: block; font-size: 2.2em; line-height: .6; color: var(--gold); margin-bottom: 14px; }

/* audience */
.cl-for-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.cl-card { padding: 28px; border-radius: 20px; border: 1px solid #ffffff1a; background: linear-gradient(160deg, #141b4a, #0d1236); transition: border-color .3s, translate .4s var(--ease); }
.cl-card:hover { border-color: #e8c46a66; translate: 0 -4px; }
.cl-card svg { color: var(--gold); }
.cl-card h3 { font-family: 'EB Garamond', Georgia, serif; font-weight: 400; font-size: 26px; margin-top: 16px; color: #fff; }
.cl-card p { margin-top: 8px; color: #cfd0ea; line-height: 1.6; font-size: 15px; }

/* order */
.cl-order { width: min(1120px, calc(100% - 2 * var(--gutter))); margin: clamp(70px, 9vw, 130px) auto clamp(60px, 8vw, 110px); display: grid; grid-template-columns: minmax(160px, .5fr) 1fr; gap: clamp(20px, 4vw, 60px); align-items: center; padding: clamp(24px, 4vw, 50px); border-radius: 28px; border: 1px solid #e8c46a44; background: radial-gradient(ellipse at 10% 20%, #3a2a8a88, #0000 60%), radial-gradient(ellipse at 90% 90%, #b3337a55, #0000 60%), #0d1236; }
.cl-order img { width: 100%; height: auto; filter: drop-shadow(0 24px 40px #000a); transform: rotate(-6deg); }
.cl-order p:not(.cl-eyebrow) { margin-top: 14px; color: #cfd0ea; font-size: 17px; }

/* reveal */
.cl-reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.cl-reveal.is-in { opacity: 1; transform: none; }

@media(max-width:900px) {
  .cl-hero { grid-template-columns: 1fr; min-height: 0; text-align: left; }
  .cl-paint-stage { width: min(78vw, 440px); }
  .cl-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-facts div:nth-child(3) { border-left: 0; }
  .cl-facts div:nth-child(n+3) { border-top: 1px solid #e8c46a22; }
  .cl-about { grid-template-columns: 1fr; }
  .cl-about-text { position: static; }
  .cl-flip { height: 180vh; }
  .cl-for-grid { grid-template-columns: 1fr; }
}
@media(max-width:600px) {
  .cl-hero-text h1 { font-size: clamp(50px, 16vw, 72px); }
  .cl-facts div { padding: 20px 12px; }
  .cl-chapter { grid-template-columns: 1fr; gap: 6px; }
  .cl-num { text-align: left; min-width: 0; font-size: 56px; }
  .cl-chapters { padding-left: 22px; }
  .cl-chapters:before, .cl-chapters:after { left: 4px; }
  .cl-order { grid-template-columns: 1fr; text-align: left; }
  .cl-order img { width: 60%; margin: 0 auto; }
  .cl-flip-sticky { height: 76vh; top: 12vh; }
  .cl-flip-book { width: min(72vw, 360px); }
}
@media(prefers-reduced-motion:reduce) {
  .cl-ink i, .cl-paint-stage, .cl-marquee div, .cl-hero-text h1 span { animation: none !important; }
  .cl-reveal, .cl-chapter { opacity: 1; transform: none; }
}

/* order modal */
.cl-link-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
html.cl-modal-open { overflow: hidden; }
.cl-modal { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; background: transparent; color: #e9e6f5; overflow: visible; }
.cl-modal::backdrop { background: #04061499; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cl-modal[open] { animation: cl-modal-in .45s var(--ease) both; }
.cl-modal[open]::backdrop { animation: cl-fade .35s ease both; }
@keyframes cl-modal-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes cl-fade { from { opacity: 0; } }
.cl-modal-card { position: relative; max-height: calc(100dvh - 24px); overflow: auto; padding: clamp(24px, 4vw, 40px); border-radius: 26px; border: 1px solid #e8c46a55; background: radial-gradient(ellipse at 0% 0%, #3a2a8acc, #0000 55%), radial-gradient(ellipse at 100% 100%, #b3337a88, #0000 55%), #0d1236f2; box-shadow: 0 40px 100px #000c, inset 0 0 0 1px #ffffff0d; }
.cl-modal-book { position: absolute; right: 66px; top: 18px; width: 64px; height: auto; transform: rotate(8deg); filter: drop-shadow(0 16px 26px #000b); pointer-events: none; }
.cl-modal h2 { font-family: 'EB Garamond', Georgia, serif; font-weight: 400; font-size: clamp(32px, 4vw, 44px); line-height: 1.05; margin-top: 10px; color: #fff; padding-right: 90px; }
.cl-modal h2 em { font-style: normal; color: var(--gold, #e8c46a); }
.cl-modal-lead { margin: 12px 0 22px; color: #cfd0ea; line-height: 1.6; font-size: 15px; }
.cl-modal-close { position: absolute; left: auto; right: 14px; top: 14px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #ffffff2a; background: #0b1030cc; color: #e9e6f5; cursor: pointer; transition: background .25s, color .25s; }
.cl-modal-close:hover { background: #e8c46a; color: #2a1e05; }
.cl-modal-book + .cl-eyebrow { margin-top: 4px; }
.cl-modal form { grid-column: auto; grid-row: auto; padding: 0; border: 0; background: none; box-shadow: none; }
.cl-modal input, .cl-modal textarea { background: #0a0f2e99; border-color: #3a3f78; color: #fff; padding: 15px 16px; }
.cl-modal input { min-height: 54px; margin-bottom: 12px; }
.cl-modal textarea { height: 120px; min-height: 100px; }
.cl-modal input:focus, .cl-modal textarea:focus { background: #111845; border-color: #e8c46a; box-shadow: 0 0 24px #e8c46a1f; }
.cl-modal input::placeholder, .cl-modal textarea::placeholder { color: #9a9dc4; }
.cl-modal .submit { margin-top: 14px; border-color: #e8c46a66; background: linear-gradient(90deg, #e8c46a2a, #0000); }
.cl-modal .submit i { background: #e8c46a; color: #2a1e05; }
.cl-modal .form-consent { color: #9a9dc4; }
.cl-modal .form-consent a { color: #d9d3ef; }
.cl-modal .form-status { color: #f6dea0; }
.cl-modal form.is-sent .form-status { padding: 12px 14px; border-radius: 12px; background: #e8c46a1f; border: 1px solid #e8c46a55; }
@media(max-width:600px) {
  .cl-modal { width: calc(100% - 16px); }
  .cl-modal-card { border-radius: 20px; padding: 24px 18px 20px; }
  .cl-modal-book { width: 48px; top: 16px; right: 62px; }
  .cl-modal h2 { padding-right: 40px; }
}

/* ---------- chapters: spreads (fallback list) → flipbook (JS) ---------- */
.cl-chapters:before, .cl-chapters:after { content: none; }
.cl-chapters { padding-left: 0; gap: 28px; }
.cl-chapter { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; }
.cl-chapter-spread { margin: 0; border-radius: 10px; overflow: hidden; }
.cl-chapter-spread img { width: 100%; height: auto; display: block; }
.cl-chapter-text .cl-num { display: block; text-align: left; min-width: 0; }
.cl-art { margin-top: 10px !important; font-size: 14px !important; color: #b9bbd8 !important; }
.cl-art b { font-family: 'EB Garamond', Georgia, serif; font-weight: 400; font-size: 18px; color: var(--gold2, #f6dea0); }
.cl-palette { flex-wrap: wrap; }
.cl-palette i { width: 24px; height: 24px; }

.cl-book-sticky { display: none; }
.cl-book.is-flipbook { height: 520vh; }
.cl-book.is-flipbook .cl-chapters { display: none; }
.cl-book.is-flipbook .cl-book-sticky { position: sticky; top: 8vh; height: 84vh; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, 1fr); grid-template-rows: 1fr auto; column-gap: clamp(24px, 3.5vw, 56px); row-gap: 18px; align-items: center; }
.cl-book-stage { --k: 0; position: relative; grid-row: 1; aspect-ratio: 1800 / 968; width: 100%; max-height: 72vh; perspective: 2400px; perspective-origin: 50% 40%; filter: drop-shadow(0 34px 50px #000b); }
.cl-half { position: absolute; top: 0; bottom: 0; width: 50%; background-size: 200% 100%; background-repeat: no-repeat; }
.cl-half[data-side="l"] { background-position: 0 0; }
.cl-half[data-side="r"] { background-position: 100% 0; }
.cl-base-left { left: 0; }
.cl-base-right { right: 0; }
/* shadow the turning page casts on the pages below */
.cl-base-right:after, .cl-base-left:after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.cl-base-right:after { background: linear-gradient(90deg, #000a, #0000 55%); opacity: calc(var(--k) * (1 - var(--k)) * 3.2); }
.cl-base-left:after { background: linear-gradient(270deg, #000a, #0000 55%); opacity: calc(var(--k) * (1 - var(--k)) * 3.2); }
.cl-leaf { position: absolute; top: 0; bottom: 0; left: 50%; width: 50%; transform-origin: 0 50%; transform-style: preserve-3d; z-index: 3; will-change: transform; }
.cl-leaf .cl-half { width: 100%; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cl-leaf-back { transform: rotateY(180deg); }
.cl-leaf .cl-half:after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.cl-leaf-front:after { background: linear-gradient(90deg, #0008, #0000 35%, #ffffff14 70%, #0003); opacity: clamp(0, calc(var(--k) * 2.4), .95); }
.cl-leaf-back:after { background: linear-gradient(270deg, #0008, #0000 35%, #ffffff14 70%, #0003); opacity: clamp(0, calc((1 - var(--k)) * 2.4), .95); }
.cl-book-info { grid-row: 1; align-self: center; }
.cl-book-info .cl-num { display: block; font-family: 'EB Garamond', Georgia, serif; font-size: clamp(64px, 7vw, 110px); line-height: .9; background: linear-gradient(160deg, var(--c3), var(--c2) 50%, var(--c1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cl-book-info h3 { font-family: 'EB Garamond', Georgia, serif; font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; color: #fff; margin-top: 10px; }
.cl-book-info > p:not(.cl-art) { margin-top: 12px; font-size: 16px; line-height: 1.6; color: #cfd0ea; }
.cl-book-info .cl-palette { display: flex; gap: 9px; margin-top: 18px; }
.cl-book-info .cl-palette i { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 2px #ffffff30, 0 4px 12px #0006; }
.cl-book-info.is-swap > * { animation: panel-enter .55s var(--ease) both; }
.cl-book-info.is-swap > :nth-child(2) { animation-delay: .05s; } .cl-book-info.is-swap > :nth-child(3) { animation-delay: .1s; } .cl-book-info.is-swap > :nth-child(4) { animation-delay: .15s; }
.cl-book-info.is-swap .cl-palette i { animation: cl-dot .5s calc(.2s + var(--k) * 60ms) var(--ease) both; }
@keyframes cl-dot { from { transform: scale(0); } to { transform: scale(1); } }
.cl-book-dots { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: center; gap: 10px; }
.cl-book-dots button { font-family: 'EB Garamond', Georgia, serif; font-size: 17px; min-width: 46px; height: 40px; padding: 0 10px; border-radius: 30px; border: 1px solid #ffffff26; background: #0d1338b3; color: #cfd0ea; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.cl-book-dots button:hover { border-color: #e8c46a88; color: #fff; }
.cl-book-dots button[aria-current="true"] { background: #e8c46a; border-color: #e8c46a; color: #2a1e05; }

@media(max-width:900px) {
  .cl-chapter { grid-template-columns: 1fr; }
  .cl-book.is-flipbook { height: 480vh; }
  .cl-book.is-flipbook .cl-book-sticky { top: 70px; height: calc(100vh - 80px); grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; align-content: start; row-gap: 14px; }
  .cl-book-stage { grid-row: 1; max-height: none; }
  .cl-book-dots { grid-row: 2; }
  .cl-book-info { grid-row: 3; align-self: start; }
  .cl-book-info .cl-num { font-size: 52px; }
  .cl-book-info .cl-palette i { width: 26px; height: 26px; }
}
@media(max-width:600px) {
  .cl-book-dots { gap: 6px; }
  .cl-book-dots button { min-width: 0; flex: 1; height: 36px; font-size: 15px; padding: 0 4px; }
  .cl-book-info h3 { font-size: 24px; }
  .cl-book-info > p:not(.cl-art) { font-size: 15px; }
}

/* wider stage for the flipbook */
.cl-journey { width: min(1380px, calc(100% - 2 * var(--gutter))); }
.cl-journey-head { max-width: 760px; }
.cl-book.is-flipbook .cl-book-sticky { grid-template-columns: minmax(0, 2.3fr) minmax(240px, 1fr); }
@media(max-width:900px) { .cl-book.is-flipbook .cl-book-sticky { grid-template-columns: 1fr; } }

/* v3: flipbook turns on purpose (no scroll hijack), about-book turns itself */
.cl-flip { height: auto; }
.cl-flip-sticky { position: static; height: auto; padding: 20px 0; }
.cl-flip-book { cursor: pointer; }
.cl-book.is-flipbook { height: auto; }
.cl-book.is-flipbook .cl-book-sticky { position: relative; top: auto; height: auto; min-height: 0; padding: 30px 0 10px; }
.cl-book-stage { outline: none; }
.cl-book-stage:focus-visible { box-shadow: 0 0 0 2px #e8c46a; border-radius: 8px; }
.cl-page-sketch { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity 1.2s ease; pointer-events: none; }
.cl-page-brush { z-index: 2; }
.cl-book-arrow { position: absolute; top: 50%; z-index: 5; width: 46px; height: 46px; margin-top: -23px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #e8c46a66; background: #0b1030d9; color: #f6dea0; cursor: pointer; backdrop-filter: blur(6px); transition: background .25s, color .25s, opacity .25s; }
.cl-book-arrow.prev { left: -23px; }
.cl-book-arrow.next { right: -23px; }
.cl-book-arrow:hover:not(:disabled) { background: #e8c46a; color: #2a1e05; }
.cl-book-arrow:disabled { opacity: .25; cursor: default; }
@media(max-width:900px) {
  .cl-book.is-flipbook .cl-book-sticky { top: auto; height: auto; padding-top: 20px; }
  .cl-book-arrow { width: 38px; height: 38px; margin-top: -19px; }
  .cl-book-arrow.prev { left: -8px; }
  .cl-book-arrow.next { right: -8px; }
}

/* paint the right page by hand */
.cl-base-right.is-paintable .cl-page-sketch { pointer-events: auto; cursor: none; touch-action: pan-y; }
.cl-page-hint { position: absolute; left: 6%; right: 22%; bottom: 17%; z-index: 3; text-align: center; font-family: 'EB Garamond', Georgia, serif; font-size: clamp(13px, 1.3vw, 18px); color: #3a2c6b; background: #fffdf4e6; border: 1px solid #e8c46a88; border-radius: 30px; padding: 6px 12px; pointer-events: none; transition: opacity .4s; box-shadow: 0 6px 18px #0002; }
.cl-page-hint:empty { opacity: 0; }
.cl-book-paint { margin-left: 8px; }
.cl-book-paint[hidden] { display: none; }
@media(max-width:600px) { .cl-page-hint { font-size: 11px; padding: 4px 8px; bottom: 14%; right: 18%; left: 4%; } .cl-book-dots { flex-wrap: wrap; } .cl-book-paint { flex-basis: 100%; margin: 6px 0 0; } }
