/* Portage — v3 STORYBOOK home (2026-12-02). The visitor's brand is the hero, Portage the guide.
   Our own book look: navy cover with gold foil, cream pages, night chapters with gold sparkles. */
:root { --cream: #F7F1E3; --night: #071F28; --f-s: 'Cormorant Garamond', Georgia, serif; --f-t: 'Cormorant Garamond', Georgia, serif; }
html[lang=ar] { --f-s: 'Amiri', serif; --f-t: 'Aref Ruqaa', 'Amiri', serif; }
.pg-home .hd { background: rgba(247, 241, 227, .94); box-shadow: 0 1px 0 rgba(17, 65, 81, .1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.story { overflow-x: clip; }
.sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

/* ---------- cover: the book opens as you scroll ---------- */
.cover { --p: 0; position: relative; height: 240vh; background: radial-gradient(900px 620px at 50% 58%, #154A5C 0%, var(--night) 70%); }
.cover.static { height: auto; }
.cover__stage { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; padding-top: var(--hd); }
.cover.static .cover__stage { position: relative; height: auto; padding: calc(var(--hd) + 40px) 0 70px; }
.tome { --s: 1; position: relative; z-index: 1; width: min(1120px, 92vw); height: min(640px, calc(100vh - var(--hd) - 100px)); min-height: 500px; perspective: 2400px;
  transform: translateX(calc(var(--s) * -25% * (1 - var(--p)))) scale(calc(.9 + .1 * var(--p))); }
[dir=rtl] .tome { --s: -1; }
.tome__page { position: absolute; top: 0; bottom: 0; left: 50%; width: 50%; border-radius: 4px 16px 16px 4px; overflow: hidden; display: flex; align-items: center;
  padding: clamp(24px, 3.2vw, 48px); color: var(--ink);
  background: radial-gradient(circle at 70% 20%, #fffdf6, transparent 60%), linear-gradient(90deg, #E9DFC8 0%, var(--cream) 7%, #FBF6EA 100%);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .75); }
[dir=rtl] .tome__page { left: 0; border-radius: 16px 4px 4px 16px; background: radial-gradient(circle at 30% 20%, #fffdf6, transparent 60%), linear-gradient(270deg, #E9DFC8 0%, var(--cream) 7%, #FBF6EA 100%); }
.rp { width: 100%; opacity: calc(var(--p) * 1.6 - .5); }
.rp h1 { font-size: clamp(30px, 3.1vw, 48px); font-weight: 900; line-height: 1.05; color: var(--navy); margin-bottom: 16px; }
html[lang=ar] .rp h1 { line-height: 1.35; font-size: clamp(28px, 2.9vw, 44px); }
.rp h1 .ln { display: block; } .rp h1 .ln:nth-child(2) { color: var(--yt); }
.rp h1 .mark { font-style: normal; background: linear-gradient(var(--navy), var(--navy)) no-repeat 0 94% / 0% .09em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
[dir=rtl] .rp h1 .mark { background-position: 100% 94%; }
.cover.is-open .rp h1 .mark { animation: mark .9s .2s var(--ease) forwards; }
.rp .hx__rot { font-size: clamp(16px, 1.4vw, 20px); margin: 0 0 14px; animation: none; }
.rp__lead { color: var(--muted); font-size: 16px; }
.rp__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.rp__k { margin-bottom: 14px; }
.tome__cover { position: absolute; top: 0; bottom: 0; left: 50%; width: 50%; transform-origin: left center; transform-style: preserve-3d;
  transform: rotateY(calc(var(--s) * -180deg * var(--p))); cursor: pointer; z-index: 2; }
[dir=rtl] .tome__cover { left: 0; transform-origin: right center; }
.bc { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; overflow: hidden; border-radius: 4px 16px 16px 4px; }
[dir=rtl] .bc--front { border-radius: 16px 4px 4px 16px; }
.bc--front { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px;
  background: radial-gradient(circle at 50% 35%, #1B5A72 0%, #0D3846 55%, #082733 100%);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .8), inset 0 0 60px rgba(0, 0, 0, .35); }
.bc--front::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 30px; background: linear-gradient(90deg, rgba(0, 0, 0, .45), rgba(255, 255, 255, .06) 60%, transparent); }
[dir=rtl] .bc--front::before { left: auto; right: 0; background: linear-gradient(270deg, rgba(0, 0, 0, .45), rgba(255, 255, 255, .06) 60%, transparent); }
.bc__frame { position: absolute; inset: 22px; border: 2px solid rgba(251, 198, 24, .75); border-radius: 10px; pointer-events: none; }
.bc__frame::after { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(251, 198, 24, .35); border-radius: 6px; }
.bc__mark { width: 92px; height: auto; margin-bottom: 20px; animation: glow 2.6s ease-in-out infinite alternate; }
@keyframes glow { from { filter: drop-shadow(0 0 6px rgba(251, 198, 24, .35)); } to { filter: drop-shadow(0 0 26px rgba(251, 198, 24, .9)); } }
.bc__presents { font: italic 500 20px var(--f-s); color: rgba(255, 255, 255, .78); letter-spacing: .06em; margin: 0 0 4px; }
.bc__title { display: flex; flex-direction: column; margin: 0; font: 700 clamp(40px, 4.8vw, 70px)/1.02 var(--f-t);
  background: linear-gradient(100deg, #E0A800 0%, #FBC618 30%, #FFF1B8 45%, #FBC618 60%, #D99A00 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: foil 6s linear infinite; filter: drop-shadow(0 2px 12px rgba(251, 198, 24, .25)); }
html[lang=ar] .bc__title { line-height: 1.35; }
@keyframes foil { to { background-position: -220% 0; } }
.bc__by { margin: 26px 0 0; font: 600 12px var(--f-h); letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
html[lang=ar] .bc__by { letter-spacing: 0; font-size: 15px; }
.bc--back { transform: rotateY(180deg); border-radius: 16px 4px 4px 16px; display: grid; place-items: end center;
  background: radial-gradient(circle at 50% 60%, #1B5A72 0%, #0B3341 70%); box-shadow: inset 0 0 60px rgba(0, 0, 0, .35); }
[dir=rtl] .bc--back { border-radius: 4px 16px 16px 4px; }
.bc__ring { position: absolute; width: 66%; aspect-ratio: 1; border-radius: 50%; border: clamp(28px, 3.4vw, 46px) solid var(--y); left: 17%; bottom: 10%; box-shadow: 0 0 60px rgba(251, 198, 24, .35); }
.bc__person { position: relative; width: 66%; height: auto; -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent); mask-image: linear-gradient(180deg, #000 85%, transparent); }
.bc__once { position: absolute; top: 26px; left: 0; right: 0; margin: 0; text-align: center; font: italic 600 clamp(20px, 2vw, 28px) var(--f-s); color: #fff; }
.cover__hint { position: absolute; z-index: 3; bottom: 22px; left: 50%; translate: -50% 0; opacity: calc(1 - var(--p) * 2.5); background: rgba(7, 31, 40, .5);
  border: 1px solid rgba(251, 198, 24, .5); color: #fff; border-radius: 999px; padding: 10px 20px; font: 600 14px var(--f-h); cursor: pointer; }
.cover__hint span { display: inline-block; animation: bob 1.4s ease-in-out infinite; color: var(--y); }
@keyframes bob { 50% { translate: 0 5px; } }

/* ---------- chapters ---------- */
.ch { position: relative; overflow: hidden; padding: clamp(90px, 11vw, 150px) 0; }
.ch > .wrap { position: relative; z-index: 1; }
.ch--paper { background: radial-gradient(circle at 15% 10%, rgba(255, 255, 255, .8), transparent 45%), repeating-linear-gradient(0deg, rgba(120, 90, 40, .025) 0 2px, transparent 2px 5px), var(--cream); }
.ch--night { background: radial-gradient(1000px 600px at 50% 0%, #134457 0%, var(--night) 70%); color: #fff; }
.ch__head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; margin: 0 auto 44px; }
.ch__num { font: 700 13px var(--f-h); letter-spacing: .32em; text-transform: uppercase; color: var(--yt); }
html[lang=ar] .ch__num { letter-spacing: 0; font-size: 17px; }
.ch__title { font: 700 clamp(42px, 5.8vw, 82px)/1.02 var(--f-t); color: var(--navy); letter-spacing: 0; }
html[lang=ar] .ch__title { line-height: 1.4; }
.ch--night .ch__title { color: #fff; } .ch--night .ch__num { color: var(--y); }
.ch__orn svg { width: 200px; height: 22px; fill: none; stroke: var(--y); stroke-width: 2; }
.ch__orn path + path, .ch__orn circle { fill: var(--y); }
.ch__narrow { max-width: 840px; }
.ch__intro { max-width: 760px; margin: -14px auto 54px; text-align: center; font: italic 500 clamp(21px, 2vw, 27px)/1.5 var(--f-s); color: var(--muted); }
.ch--night .ch__intro { color: rgba(255, 255, 255, .78); }

/* I — the idea: story text written in ink */
.tale-p { font: 500 clamp(23px, 2.3vw, 31px)/1.55 var(--f-s); color: var(--navy); margin: 0 0 1.1em; }
html[lang=ar] .tale-p { font: 400 clamp(22px, 2.1vw, 29px)/1.95 var(--f-s); }
.tale-p--key { font-style: italic; font-weight: 700; text-align: center; margin-top: 1.4em; }
.tale-p--key::after { content: ''; display: block; width: 90px; height: 4px; border-radius: 4px; background: var(--y); margin: 18px auto 0; }
html[lang=en] .dropcap::first-letter { float: left; font: 700 5.1em/.78 var(--f-s); color: var(--y); margin: .08em .12em 0 0; text-shadow: 3px 3px 0 var(--navy); }
.ink .w { opacity: .13; transition: opacity .45s ease; }
.ink .w.lit { opacity: 1; }
.no-ink .ink .w { opacity: 1; }
.pr--s1 { width: 230px; inset-inline-start: -70px; top: 80px; }
.pr--s2 { width: 200px; inset-inline-end: -30px; bottom: 60px; transform: rotate(-18deg); }
.pr--s3 { width: 200px; inset-inline-end: 4%; top: 120px; transform: rotate(22deg); }

/* II — the guide (night) */
.ch--night .hsplit__txt > p { color: rgba(255, 255, 255, .8); }
.ch__lead { font: italic 600 clamp(27px, 2.7vw, 38px)/1.3 var(--f-s) !important; color: var(--y) !important; margin-bottom: 18px; }
.quote { margin: 24px 0; padding: 4px 0; padding-inline-start: 20px; border-inline-start: 4px solid var(--y); font: italic 500 21px/1.5 var(--f-s); color: #fff; }
.quote b { display: block; font: 700 12px var(--f-h); letter-spacing: .22em; text-transform: uppercase; color: var(--y); font-style: normal; margin-bottom: 4px; }
html[lang=ar] .quote b { letter-spacing: 0; font-size: 15px; }
.ch--night .pcard__bg { background: linear-gradient(160deg, var(--y), #E39B00 85%); }
.ch--night .trailer__txt text { fill: #fff; }

/* III — the book of powers */
.pw { display: grid; grid-template-columns: 290px 1fr; gap: 40px; align-items: start; }
.pw__toc { background: #FFFBF1; border: 1px solid rgba(17, 65, 81, .1); border-radius: 18px; padding: 24px 18px; box-shadow: 0 24px 50px -36px rgba(10, 42, 53, .6); }
.pw__toc-h { font: 700 28px var(--f-t); color: var(--navy); padding: 0 8px 12px; margin-bottom: 8px; border-bottom: 2px dotted rgba(17, 65, 81, .2); }
.pw__toc button { display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: start; font: 600 15px var(--f-h); color: var(--navy); transition: background .25s; }
.pw__toc button span { font: italic 700 18px var(--f-s); color: var(--yt); min-width: 24px; }
.pw__toc button:hover { background: rgba(251, 198, 24, .18); }
.pw__toc button.on { background: var(--navy); color: #fff; } .pw__toc button.on span { color: var(--y); }
.pw__book { position: relative; perspective: 2000px; min-height: 520px; }
.pg { position: absolute; inset: 0 0 72px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 18px; background: #FFFBF2;
  box-shadow: 0 34px 60px -30px rgba(10, 42, 53, .55), inset 0 0 0 1px rgba(17, 65, 81, .08);
  opacity: 0; visibility: hidden; transform-origin: left center; transform: rotateY(-75deg); transition: transform .8s var(--ease), opacity .5s, visibility 0s .8s; }
[dir=rtl] .pg { transform-origin: right center; transform: rotateY(75deg); }
.pg.on { opacity: 1; visibility: visible; transform: none; transition: transform .8s var(--ease), opacity .5s; }
.pg::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 46px; translate: -50% 0; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .14), transparent); pointer-events: none; }
.pg__img img { width: 100%; height: 100%; object-fit: cover; }
.pg__txt { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: clamp(24px, 3vw, 44px); }
.pg__no { font: italic 600 17px var(--f-s); color: var(--muted); }
.pg__txt .svc__ic { margin: 0; background: var(--y); }
.pg h3 { font: 700 clamp(30px, 3vw, 42px)/1.1 var(--f-t); color: var(--navy); }
html[lang=ar] .pg h3 { line-height: 1.4; }
.pg p { color: var(--muted); margin: 0 0 6px; }
.pg .lnk { align-self: flex-start; }
.pw__nav { position: absolute; bottom: 0; inset-inline-end: 0; display: flex; gap: 10px; }

/* IV — the journey map (night) */
.jr { --jp: 0; position: relative; max-width: 1000px; margin: 0 auto; }
.jr__path { position: absolute; left: 50%; top: 0; width: 180px; height: 100%; translate: -50% 0; overflow: visible; }
.jr__base { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 3; stroke-dasharray: 2 12; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.jr__draw { fill: none; stroke: var(--y); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--jp)); filter: drop-shadow(0 0 8px rgba(251, 198, 24, .8)); }
.jr__steps { position: relative; display: grid; gap: 70px; padding: 50px 0; }
.jr__step { display: grid; grid-template-columns: 1fr 90px 1fr; align-items: center; }
.jr__dot { grid-column: 2; grid-row: 1; justify-self: center; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 900 22px var(--f-h);
  color: #fff; background: var(--night); border: 3px solid rgba(255, 255, 255, .3); transition: background .5s, color .5s, border-color .5s, box-shadow .5s; }
.jr__card { grid-column: 1; grid-row: 1; padding: 24px 26px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: .3; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.jr__step:nth-child(even) .jr__card { grid-column: 3; }
.jr__card h3 { font: 700 30px var(--f-t); color: var(--y); margin-bottom: 6px; }
html[lang=ar] .jr__card h3 { line-height: 1.4; }
.jr__card p { margin: 0; color: rgba(255, 255, 255, .82); }
.jr__step.is-lit .jr__dot { background: var(--y); border-color: var(--y); color: var(--navy); box-shadow: 0 0 0 10px rgba(251, 198, 24, .18), 0 0 40px rgba(251, 198, 24, .6); }
.jr__step.is-lit .jr__card { opacity: 1; transform: none; }

/* V — tales from the road */
.tales { display: grid; gap: clamp(60px, 8vw, 110px); }
.tale { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 76px); align-items: center; }
.tale:nth-child(even) .tale__photo { order: 2; }
.tale__photo { position: relative; display: block; padding: 14px 14px 46px; background: #fff; border-radius: 6px; box-shadow: 0 30px 50px -28px rgba(0, 0, 0, .5); transform: rotate(-2.5deg); transition: transform .5s var(--ease); }
.tale:nth-child(even) .tale__photo { transform: rotate(2.5deg); }
.tale__photo:hover { transform: rotate(0) scale(1.02) !important; }
.tale__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.tale__tape { position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; translate: -50% 0; rotate: -4deg; background: rgba(251, 198, 24, .78); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .3); }
.tale__no { display: block; font: italic 600 21px var(--f-s); color: var(--yt); margin-bottom: 10px; }
.tale h3 { font: 700 clamp(32px, 3.3vw, 48px)/1.08 var(--f-t); color: var(--navy); margin: 14px 0 8px; }
html[lang=ar] .tale h3 { line-height: 1.4; }
.tale__title { font: 600 18px var(--f-h); color: var(--navy); }
.tale__txt .ink { color: var(--muted); }
.tales__more { text-align: center; margin: 56px 0 0; }
.ch .strip { margin-top: 80px; }
.cast { position: relative; z-index: 1; margin-top: 60px; }
.cast__t { text-align: center; font: italic 600 26px var(--f-s); color: var(--navy); margin-bottom: 18px; }
.cast .trust { background: none; padding: 0; border: 0; }

/* VI — one voice (yellow) */
.ch.hplat .ch__num, .ch.hplat .ch__title { color: var(--navy); }
.ch.hplat .ch__orn svg { stroke: var(--navy); } .ch.hplat .ch__orn path + path, .ch.hplat .ch__orn circle { fill: var(--navy); }

/* epilogue */
.epi__anchor { position: absolute; top: 0; }
.epi__in { position: relative; z-index: 1; max-width: 1100px; text-align: center; }
.epi__big { font: 900 clamp(34px, 4.4vw, 58px)/1.15 var(--f-h); color: var(--navy); margin: 0; }
.epi .tt__y { display: inline-block; background: var(--y); color: var(--navy); padding: 0 .28em .06em; border-radius: 14px; transform: rotate(-1.5deg); }
.epi__page { position: relative; text-align: start; padding: clamp(22px, 3vw, 40px); border-radius: 20px; background: #FFFDF6;
  background-image: repeating-linear-gradient(transparent 0 33px, rgba(17, 65, 81, .06) 33px 34px); box-shadow: 0 30px 60px -36px rgba(10, 42, 53, .6); }
.epi__page::before { content: ''; position: absolute; top: 0; bottom: 0; inset-inline-start: 18px; width: 2px; background: rgba(214, 69, 69, .22); }
.epi__page .fld input, .epi__page .fld select { background: #fff; }
.epi__end { margin: 44px 0 0; font: italic 600 clamp(20px, 2vw, 26px) var(--f-s); color: var(--navy); }

/* bookmark: chapter navigation */
.bm { position: fixed; z-index: 45; inset-inline-end: 16px; top: 50%; translate: 0 -50%; }
.bm ol { position: relative; display: flex; flex-direction: column; gap: 8px; }
.bm ol::before { content: ''; position: absolute; top: 10px; bottom: 10px; inset-inline-end: 18px; width: 2px; background: rgba(17, 65, 81, .18); }
.bm a { position: relative; display: flex; flex-direction: row-reverse; align-items: center; gap: 10px; }
.bm__n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--navy); font: 700 15px var(--f-s);
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .45); transition: background .3s, scale .3s; }
.bm__l { background: var(--navy); color: #fff; font: 600 13px var(--f-h); padding: 6px 12px; border-radius: 999px; white-space: nowrap; opacity: 0; translate: 8px 0; transition: opacity .25s, translate .25s; pointer-events: none; }
[dir=rtl] .bm__l { translate: -8px 0; }
.bm a:hover .bm__l, .bm a:focus-visible .bm__l { opacity: 1; translate: 0 0; }
.bm a.on .bm__n { background: var(--y); scale: 1.14; }

@media (prefers-reduced-motion: reduce) { .ink .w { opacity: 1; } .jr__card { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .pw { grid-template-columns: 1fr; gap: 20px; }
  .pw__toc { display: flex; gap: 6px; overflow-x: auto; padding: 10px; scrollbar-width: none; }
  .pw__toc-h { display: none; }
  .pw__toc button { white-space: nowrap; width: auto; }
  .pw__book { min-height: 640px; }
  .pg { grid-template-columns: 1fr; grid-template-rows: 210px 1fr; }
  .pg::after { display: none; }
  .tale { grid-template-columns: 1fr; }
  .tale:nth-child(even) .tale__photo { order: 0; }
  .jr__path { left: 32px; width: 64px; }
  .jr__step { grid-template-columns: 64px 1fr; gap: 16px; }
  .jr__dot { grid-column: 1; width: 52px; height: 52px; font-size: 18px; }
  .jr__card, .jr__step:nth-child(even) .jr__card { grid-column: 2; }
}
@media (max-width: 760px) {
  .cover { height: 200vh; }
  .tome { width: 92vw; height: min(620px, calc(100svh - var(--hd) - 90px)); min-height: 0; transform: none; }
  .tome__page, [dir=rtl] .tome__page { left: 0; width: 100%; border-radius: 16px; }
  .tome__cover, [dir=rtl] .tome__cover { left: 0; width: 100%; transform: rotateY(calc(var(--s) * -150deg * var(--p))); opacity: calc(1.5 - var(--p) * 1.7); }
  .bc--front, [dir=rtl] .bc--front { border-radius: 16px; }
  .bc--back { display: none; }
  .rp { opacity: calc(var(--p) * 1.8 - .5); }
  .rp h1 { font-size: 30px; } html[lang=ar] .rp h1 { font-size: 28px; }
  .rp__lead { font-size: 15px; }
  .rp__btns .btn { flex: 1 1 100%; justify-content: center; }
  .bc__title { font-size: 44px; }
  .ch__title { font-size: 44px; }
  .bm { top: auto; bottom: 16px; translate: none; inset-inline-end: auto; inset-inline-start: 12px; }
  .bm ol { flex-direction: row; gap: 3px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
  .bm ol::before, .bm__l { display: none; }
  .bm__n { width: 30px; height: 30px; font-size: 12px; box-shadow: none; }
  .pr--s1 { width: 120px; inset-inline-start: -50px; top: 40px; }
  .pr--s2, .pr--s3 { display: none; }
  .jr__steps { gap: 40px; }
}
.cover__hint { white-space: nowrap; }
@media (max-width: 760px) { .cover__hint { font-size: 13px; padding: 8px 16px; bottom: 14px; } }

/* text-over-text fixes (2026-12-02): the page text only appears once the cover has fully left it */
.rp { opacity: calc((var(--p) - .5) * 2.6); }
@media (max-width: 760px) {
  .tome__cover, [dir=rtl] .tome__cover { opacity: calc(1 - var(--p) * 1.9); }
  .rp { opacity: calc((var(--p) - .56) * 2.8); }
}
.cover__hint { opacity: calc(1 - var(--p) * 4); }
/* drop cap: smaller so it never touches the 4th line */
html[lang=en] .dropcap::first-letter { font-size: 4.3em; line-height: .76; margin: .1em .14em 0 0; }
/* wrapped kickers (Arabic) need real line spacing */
.kicker { line-height: 1.45; }
/* two-tone inline titles: keep a gap before the yellow sticker */
.tt--inline > .tt__y { margin-inline-start: .18em; }
/* RTL: two-tone title halves slide in from their own side (no crossing over each other) */
[dir=rtl] .reveal .tt > span { transform: translateX(50px); }
[dir=rtl] .reveal .tt > .tt__y { transform: translateX(-50px); }
[dir=rtl] .reveal.is-in .tt > span { transform: none; }
[dir=rtl] .reveal.is-in .tt > .tt__y { transform: rotate(-1.5deg); }
[dir=rtl] .hsplit .reveal.is-in .tt > .tt__y, [dir=rtl] .hsvc .reveal.is-in .tt > .tt__y, [dir=rtl] .sec--navy .reveal.is-in .tt > .tt__y, [dir=rtl] .hbig .reveal.is-in .tt > .tt__y { transform: none; }
/* solid header: no text showing through it while scrolling */
.pg-home .hd, .hd.is-solid { background: #F7F1E3; backdrop-filter: none; -webkit-backdrop-filter: none; }
body:not(.pg-home) .hd.is-solid { background: #F4F4F4; }
@media (max-width: 640px) { .epi__big, .book h2.tt { font-size: 30px; } }
