/* THE SELF MAKEUP METHOD - landing page and course pages.
 * Paper, a double gold rule and the wordmark, after the client's own sheets. */

:root {
  --paper: #f7ece2;
  --paper-2: #fbf4ec;
  --gold-ink: #a8875a;
  --gold-deep: #86683b;
  --serif: 'Cormorant Garamond', 'Frank Ruhl Libre', serif;
  --he-serif: 'Frank Ruhl Libre', 'Assistant', serif;
  --script: 'Pinyon Script', cursive;
}

/* ------------------------------------------------------------ wordmark */
.lockup { display: inline-flex; flex-direction: column; align-items: center; direction: ltr;
  color: var(--gold-ink); line-height: 1; user-select: none; }
.lk-the { font-family: var(--serif); font-weight: 500; font-size: 15px; letter-spacing: .42em; padding-left: .42em; }
.lk-main { font-family: var(--serif); font-weight: 500; font-size: 46px; letter-spacing: .02em; margin-top: 8px; transform: scaleY(1.06); }
.lk-script { font-family: var(--script); font-size: 60px; line-height: .9; color: #b08f62;
  /* The script's swashes and ascenders reach far outside its line box. Padding
     holds them inside the box (cancelled by the margins), so the write-on clip
     never has to reach past it - Safari will not clip outside the box. */
  padding: .45em .3em .2em; margin: calc(8px - .45em) -.3em -.2em;
  position: relative; right: .15em; /* the swash and slanted ascenders lean right: centre the ink, not the box */ }
.lk-by { font-family: var(--serif); font-weight: 600; font-size: 12px; letter-spacing: .36em; padding-left: .36em; margin-top: 6px; }
.lockup-lg .lk-the { font-size: 20px; }
.lockup-lg .lk-main { font-size: clamp(48px, 9vw, 78px); margin-top: 10px; }
.lockup-lg .lk-script { font-size: clamp(62px, 11vw, 100px); margin-top: calc(clamp(10px, 1.8vw, 20px) - .45em); }
.lockup-lg .lk-by { font-size: clamp(12px, 1.6vw, 16px); margin-top: 10px; }

/* Cormorant's default old-style figures read as letters (11 looks like "ıı"). */
.price-now, .perk-n, .syl-steps li span, .lesson-time { font-variant-numeric: lining-nums; }
.syl-steps li span { font-family: 'Assistant', sans-serif; font-size: 13px; font-weight: 700; }

/* ------------------------------------------------------------ landing */
body.is-landing { background: var(--paper); }

.hero { padding: clamp(14px, 3vw, 34px) var(--gutter) 0; }
.hero-frame { max-width: 1180px; margin: 0 auto; padding: 10px; border: 1.5px solid var(--gold-ink);
  outline: 1px solid rgba(168,135,90,.35); outline-offset: 6px; background: var(--paper-2); }
.hero-video { position: relative; aspect-ratio: 16 / 9; background: #efe3d6; overflow: hidden; }
.hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px) {
  .hero-frame { max-width: 460px; }
  .hero-video { aspect-ratio: 9 / 16; }
}
.sound-btn { position: absolute; bottom: 14px; left: 14px; z-index: 2; border: 0; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px;
  background: rgba(255,253,249,.92); color: var(--ink); box-shadow: 0 6px 18px -8px rgba(60,40,20,.45); }
.sound-btn .sound-off { display: none; }
.sound-btn[aria-pressed='true'] .sound-on { display: none; }
.sound-btn[aria-pressed='true'] .sound-off { display: inline; }

.intro { padding: clamp(42px, 7vw, 76px) var(--gutter) clamp(40px, 6vw, 64px); }
.intro-lede { font-family: var(--he-serif); font-size: clamp(20px, 2.6vw, 27px); line-height: 1.55;
  color: var(--ink); margin: 26px auto 26px; max-width: 640px; text-wrap: balance; }
.intro-lede p { margin: 0 0 .65em; }
.intro-lede p:last-child { margin-bottom: 0; }
.intro-lede strong { color: var(--gold-deep); font-weight: 700; white-space: nowrap; }
.price-line { display: flex; gap: 14px; align-items: baseline; justify-content: center; flex-wrap: wrap; margin: 0 0 18px; }
.price-now { font-family: var(--serif); font-size: 44px; font-weight: 600; color: var(--gold-deep); direction: ltr; }
.price-was { font-size: 22px; color: var(--ink-faint); direction: ltr; }
.price-note { width: 100%; font-size: 14px; color: var(--ink-soft); margin: 0; }
.btn-lg { font-size: 18px; padding: 16px 46px; font-weight: 600; letter-spacing: .02em; }
.cta-sub { font-size: 14px; color: var(--ink-soft); margin: 14px 0 0; }

.band { background: var(--paper-2); border-block: 1px solid var(--line); }
.perks { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(18px, 3vw, 40px); padding-block: clamp(36px, 6vw, 60px); }
.perk { text-align: center; }
.perk-n { font-family: var(--serif); font-size: 34px; color: var(--gold-ink); }
.perk h3 { font-family: var(--he-serif); font-weight: 500; font-size: 26px; margin: 4px 0 8px; }
.perk p { margin: 0; color: var(--ink-soft); }
@media (max-width: 1100px) { .perks { grid-template-columns: repeat(6, 1fr); } .perk { grid-column: span 2; } .perk:nth-child(4) { grid-column: 2 / span 2; } }
@media (max-width: 760px) { .perks { grid-template-columns: repeat(2, 1fr); } .perk, .perk:nth-child(4) { grid-column: auto; } .perk:nth-child(5) { grid-column: 1 / -1; } }
@media (max-width: 560px) { .perks { grid-template-columns: 1fr; } .perk:nth-child(5) { grid-column: auto; } }

.eyebrow-gold { font-family: var(--serif); letter-spacing: .32em; text-transform: uppercase; font-size: 15px;
  color: var(--gold-ink); margin: 0 0 6px; direction: ltr; }
.sec-title { font-family: var(--he-serif); font-weight: 500; font-size: clamp(32px, 4.4vw, 46px); margin: 0 0 10px; color: var(--ink); }
.sec-sub { color: var(--ink-soft); margin: 0 0 30px; }

.syllabus-sec { padding-block: clamp(48px, 7vw, 84px); text-align: center; }
.syllabus { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; text-align: right; }
.syl-card { background: var(--paper-2); border: 1px solid var(--line); padding: 24px 22px; position: relative; }
.syl-card::after { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(168,135,90,.22); pointer-events: none; }
.syl-label { font-size: 13px; letter-spacing: .08em; color: var(--gold-deep); font-weight: 700; margin: 0; }
.syl-card h3 { font-family: var(--he-serif); font-weight: 500; font-size: 25px; margin: 2px 0 14px; }
.syl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.syl-steps li { display: flex; gap: 10px; font-size: 15.5px; line-height: 1.45; }
.syl-steps li span { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 15px; color: #fff; background: var(--gold-ink); }
.syl-card.is-bonus { background: linear-gradient(160deg, #fffaf2, #f3e3cf); }
.syl-bonus { margin: 0; color: var(--ink-soft); }

.about-inner { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: clamp(26px, 5vw, 64px);
  align-items: center; padding-block: clamp(40px, 6vw, 72px); }
.about-photo { padding: 8px; border: 1.5px solid var(--gold-ink); outline: 1px solid rgba(168,135,90,.35); outline-offset: 5px; }
.about-photo img { width: 100%; height: auto; display: block; }
.about-text p { font-size: 18px; line-height: 1.7; }
.link-gold { color: var(--gold-deep); font-weight: 600; text-decoration: none; }
/* The eyebrow is set left-to-right for its English; in the RTL about text it still sits on the right. */
.about-text .eyebrow-gold { text-align: right; }
/* Bar's quote: the line the section is really about */
.about-quote { position: relative; margin: 22px 0 26px; padding: 18px 26px 18px 0; border-inline-start: 3px solid var(--gold-ink);
  font-family: var(--he-serif); font-weight: 700; font-size: clamp(21px, 2.3vw, 26px); line-height: 1.5; color: var(--ink); }
.about-quote::before { content: '\201D'; position: absolute; top: -26px; inset-inline-start: 10px; font-family: var(--serif);
  font-size: 84px; line-height: 1; color: var(--gold-ink); opacity: .55; }
.about-quote strong { display: block; margin-top: 6px; color: var(--gold-deep); font-weight: 700; }
.about-quote .q-close { font-family: var(--serif); font-size: 84px; line-height: 0; color: var(--gold-ink); opacity: .55; margin-inline-start: 8px; vertical-align: -.5em; }
@media (max-width: 760px) { .about-inner { grid-template-columns: 1fr; } .about-photo { max-width: 320px; margin: 0 auto; } }

.faq-sec { max-width: 760px; padding-block: clamp(46px, 7vw, 80px); }
.faq { border-bottom: 1px solid var(--line); padding: 16px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: '+'; color: var(--gold-ink); font-size: 22px; line-height: 1; }
.faq[open] summary::after { content: '–'; }
.faq p { margin: 10px 0 0; color: var(--ink-soft); }

.final-cta { padding: 20px var(--gutter) clamp(70px, 9vw, 110px); }
.final-cta .lockup { margin-bottom: 26px; }

.sticky-buy { display: none; }
@media (max-width: 700px) {
  /* Centred: the full price struck through, the launch price under it, then
     the button. Both prices come from the book row (admin > prices). */
  .sticky-buy { display: flex; flex-direction: column; align-items: center; gap: 6px; position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
    padding: 8px 16px calc(10px + env(safe-area-inset-bottom)); text-align: center;
    background: rgba(251,244,236,.97); border-top: 1px solid var(--gold-ink); backdrop-filter: blur(6px); }
  .sb-prices { display: flex; flex-direction: column; align-items: center; margin: 0; line-height: 1.15; }
  .sb-was { font-family: var(--serif); font-size: 17px; color: var(--ink-faint); font-variant-numeric: lining-nums; }
  .sb-now { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--serif); font-size: 26px; font-weight: 600;
    color: var(--gold-deep); font-variant-numeric: lining-nums; }
  .sb-now { position: relative; align-items: center; }
  .sb-now .s1 { width: 14px; height: 14px; }
  .sb-now .s2 { width: 17px; height: 17px; animation-delay: .8s; }
  .sb-now .s3 { position: absolute; top: -4px; inset-inline-start: -12px; width: 9px; height: 9px; animation-delay: 1.6s; }
  .sb-label { font-family: var(--he-serif); font-size: 15px; font-weight: 500; color: var(--ink); }
  .sb-btn { width: min(100%, 340px); justify-content: center; padding-block: 12px; font-size: 17px; }
  body.is-landing .footer { padding-bottom: 150px; }
}

/* ------------------------------------------------------------ course pages */
body.is-course { background: #efe2d4; }
.paper { padding: clamp(12px, 3vw, 36px) clamp(10px, 3vw, 36px) clamp(30px, 5vw, 60px); }
.paper-frame { max-width: 980px; margin: 0 auto; background: var(--paper);
  background-image: radial-gradient(1200px 700px at 70% 0%, #fbf4ec 0%, transparent 60%);
  border: 1.5px solid var(--gold-ink); outline: 1px solid rgba(168,135,90,.4); outline-offset: -12px;
  padding: clamp(26px, 5vw, 56px) clamp(18px, 5vw, 60px) clamp(30px, 5vw, 56px);
  box-shadow: 0 30px 60px -40px rgba(80,58,30,.5); }
.paper-head { text-align: center; position: relative; padding-bottom: clamp(20px, 3vw, 34px); }
.paper-back { position: absolute; top: 0; right: 0; font-size: 14px; color: var(--ink-soft); text-decoration: none; }
@media (max-width: 600px) { .paper-back { position: static; display: block; margin-bottom: 14px; } }

.course-main { max-width: 560px; margin: 0 auto; }
.player { background: #1b1714; border: 1px solid var(--gold-ink); padding: 6px; }
.player video { display: block; width: 100%; max-height: 78vh; background: #000; }
.player .bp video { max-height: 78vh; }
.now-playing { text-align: center; padding: 22px 6px 6px; }
.np-eyebrow { margin: 0; font-size: 13px; letter-spacing: .06em; font-weight: 700; color: var(--gold-deep); }
.np-title { font-family: var(--he-serif); font-weight: 500; font-size: clamp(25px, 3.6vw, 34px); margin: 4px 0 8px; }
.np-summary { margin: 0; color: var(--ink-soft); }

.course-sheet { max-width: 640px; margin: clamp(26px, 4vw, 40px) auto; }
.sheet-link { display: flex; align-items: center; gap: 16px; padding: 16px 20px; text-decoration: none; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--gold-ink); }
.sheet-link:hover { background: #fff; }
.sheet-icon { color: var(--gold-ink); font-size: 22px; }
.sheet-go { margin-inline-start: auto; color: var(--gold-deep); font-weight: 700; white-space: nowrap; }

/* Each chapter is one block: a gold rule above it separates it from the one
   before, and its heading sits close over its own lessons. */
.chapters { display: grid; }
.chapter + .chapter { border-top: 1px solid rgba(168,135,90,.45); margin-top: clamp(26px, 3.4vw, 38px); padding-top: clamp(22px, 3vw, 32px); }
.chapter-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.chapter-label { font-size: 13px; font-weight: 700; color: var(--gold-deep); letter-spacing: .06em; white-space: nowrap; }
.chapter-head h2 { font-family: var(--he-serif); font-weight: 500; font-size: 26px; margin: 0; }
.lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lesson a, .lesson.is-soon { display: flex; align-items: center; gap: 14px; padding: 10px; text-decoration: none; color: var(--ink);
  background: rgba(255,253,249,.7); border: 1px solid rgba(168,135,90,.25); }
.lesson a:hover { background: #fff; border-color: var(--gold-ink); }
.lesson.is-current a { background: #fff; border-color: var(--gold-ink); box-shadow: inset -4px 0 0 var(--gold-ink); }
.lesson-thumb { flex: none; width: 54px; height: 72px; overflow: hidden; background: #e8dccd; display: grid; place-items: center; }
.lesson-thumb img { width: 100%; height: 100%; object-fit: cover; }
.soon-thumb { color: var(--gold-ink); font-size: 20px; }
.lesson-text { display: grid; gap: 2px; min-width: 0; }
.lesson-text strong { font-weight: 600; font-size: 16.5px; }
.lesson-steps { font-size: 13px; color: var(--ink-faint); }
.lesson-time { margin-inline-start: auto; font-size: 13px; color: var(--gold-deep); font-weight: 600; white-space: nowrap; direction: rtl; }
.lesson.is-soon { opacity: .62; }
/* accordion: the open lesson's player sits right under its row */
.lesson[data-lesson] { scroll-margin-top: 72px; }
.lesson-panel { padding: 12px 0 10px; animation: fade-up .45s ease-out both; }
.lesson-panel[hidden] { display: none; }
.lesson-panel .player { max-width: 560px; margin: 0 auto; }
.lesson-panel .np-summary { max-width: 560px; margin: 12px auto 4px; text-align: center; font-size: 15px; }
.paper-foot { text-align: center; margin: clamp(30px, 5vw, 50px) 0 0; font-family: var(--serif); letter-spacing: .2em;
  font-size: 12px; color: var(--gold-ink); direction: ltr; }
.paper-foot span { font-family: var(--sans); letter-spacing: 0; color: var(--ink-faint); direction: rtl; display: inline-block; margin-top: 6px; }

/* ============================================================ motion
 * Opening sequence for the wordmark, then video, then price; scroll reveals
 * come from reveal.js (.reveal / .is-visible). All of it is off under
 * prefers-reduced-motion at the end of this file. */

.hero-intro { padding: clamp(34px, 6vw, 64px) var(--gutter) clamp(26px, 4vw, 40px); }
.hero-intro .intro-lede { margin-bottom: 0; }
.buy-box { padding: clamp(30px, 5vw, 50px) var(--gutter) clamp(40px, 6vw, 64px); }

@keyframes lk-track { from { opacity: 0; letter-spacing: 1.1em; } to { opacity: 1; } }
@keyframes lk-rise { from { opacity: 0; transform: translateY(26px) scaleY(1.06); } to { opacity: 1; transform: scaleY(1.06); } }
@keyframes lk-write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes lk-shine { from { background-position: 120% 0; } to { background-position: -20% 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes frame-in { from { opacity: 0; transform: translateY(40px) scale(.965); } to { opacity: 1; transform: none; } }
@keyframes rule-draw { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
@keyframes btn-glint { 0%, 70% { background-position: 170% 0; } 100% { background-position: -70% 0; } }

.lockup-anim .lk-the { animation: lk-track 1.1s cubic-bezier(.2,.7,.2,1) .15s both; }
.lockup-anim .lk-main {
  background: linear-gradient(100deg, var(--gold-ink) 0%, var(--gold-ink) 40%, #f3e2bb 50%, var(--gold-ink) 60%, var(--gold-ink) 100%);
  background-size: 300% 100%; background-position: 120% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: lk-rise 1s cubic-bezier(.2,.7,.2,1) .35s both, lk-shine 1.6s ease-in-out 1.5s both;
}
.lockup-anim .lk-script { animation: lk-write 1.5s cubic-bezier(.45,.05,.3,1) 1s backwards; }
.lockup-anim .lk-by { animation: fade-up .8s ease-out 2.1s both; }
.hero-intro .intro-lede { animation: fade-up .9s ease-out 2.35s both; }
.hero .hero-frame { animation: frame-in 1.1s cubic-bezier(.2,.7,.2,1) 2.6s both; }
.buy-box > * { animation: fade-up .8s ease-out both; }
.buy-box > :nth-child(1) { animation-delay: 3.1s; }
.buy-box > :nth-child(2) { animation-delay: 3.25s; }
.buy-box > :nth-child(3) { animation-delay: 3.4s; }
.buy-box > :nth-child(4) { animation-delay: 3.55s; }

/* a slow glint across the main buttons, every few seconds */
.btn-shine { background-image: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.32) 50%, transparent 62%);
  background-repeat: no-repeat; background-size: 260% 100%; animation: btn-glint 5.5s ease-in-out 4.5s infinite; }

/* gold ornament between sections: the rules draw out from the star */
.ornament { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 6px var(--gutter); color: var(--gold-ink); }
.ornament span { height: 1px; width: min(180px, 28vw); background: linear-gradient(90deg, transparent, var(--gold-ink)); }
.ornament span:last-child { background: linear-gradient(90deg, var(--gold-ink), transparent); }
.ornament i { font-style: normal; font-size: 15px; }
.ornament.reveal { transform: none; }
.ornament.reveal span { clip-path: inset(0 50% 0 50%); transition: clip-path 1.2s cubic-bezier(.2,.7,.2,1) .2s; }
.ornament.reveal.is-visible span { clip-path: inset(0 0 0 0); }
.ornament.reveal i { display: inline-block; transform: rotate(-90deg) scale(.4); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.ornament.reveal.is-visible i { transform: none; }

/* perks: a short gold line draws under each number */
.perk-line { display: block; width: 44px; height: 1px; margin: 6px auto 4px; background: var(--gold-ink); }
.perk.reveal .perk-line { transform: scaleX(0); transition: transform .9s cubic-bezier(.2,.7,.2,1) calc(.3s + var(--i, 0) * 80ms); }
.perk.reveal.is-visible .perk-line { transform: none; }

/* syllabus: the step numbers pop in one after another once the card arrives */
.syl-card.reveal .syl-steps li { opacity: 0; transform: translateX(-10px); transition: opacity .5s ease-out, transform .5s ease-out; }
.syl-card.reveal.is-visible .syl-steps li { opacity: 1; transform: none; }
.syl-card.reveal .syl-steps li span { transform: scale(0); transition: transform .45s cubic-bezier(.3,1.6,.5,1); }
.syl-card.reveal.is-visible .syl-steps li span { transform: none; }
.syl-card.reveal.is-visible .syl-steps li:nth-child(1), .syl-card.reveal.is-visible .syl-steps li:nth-child(1) span { transition-delay: .35s; }
.syl-card.reveal.is-visible .syl-steps li:nth-child(2), .syl-card.reveal.is-visible .syl-steps li:nth-child(2) span { transition-delay: .45s; }
.syl-card.reveal.is-visible .syl-steps li:nth-child(3), .syl-card.reveal.is-visible .syl-steps li:nth-child(3) span { transition-delay: .55s; }
.syl-card.reveal.is-visible .syl-steps li:nth-child(4), .syl-card.reveal.is-visible .syl-steps li:nth-child(4) span { transition-delay: .65s; }
.syl-card.reveal.is-visible .syl-steps li:nth-child(5), .syl-card.reveal.is-visible .syl-steps li:nth-child(5) span { transition-delay: .75s; }
.syl-card.reveal.is-visible .syl-steps li:nth-child(6), .syl-card.reveal.is-visible .syl-steps li:nth-child(6) span { transition-delay: .85s; }
.syl-card.reveal.is-visible .syl-steps li:nth-child(7), .syl-card.reveal.is-visible .syl-steps li:nth-child(7) span { transition-delay: .95s; }
.syl-card.reveal.is-visible .syl-steps li:nth-child(8), .syl-card.reveal.is-visible .syl-steps li:nth-child(8) span { transition-delay: 1.05s; }
.syl-card { transition: box-shadow .3s, transform .3s; }
.syl-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -24px rgba(80,58,30,.5); }

/* about: the photo settles in with a slow zoom */
.about-photo { overflow: hidden; }
.about-photo.reveal img { transform: scale(1.12); transition: transform 2.2s cubic-bezier(.2,.7,.2,1); }
.about-photo.reveal.is-visible img { transform: none; }

/* course page: lessons slide in within each chapter */
.chapter.reveal .lessons > li { opacity: 0; transform: translateY(10px); transition: opacity .5s ease-out, transform .5s ease-out; }
.chapter.reveal.is-visible .lessons > li { opacity: 1; transform: none; }
.chapter.reveal.is-visible .lessons > li:nth-child(2) { transition-delay: .12s; }
.chapter.reveal.is-visible .lessons > li:nth-child(3) { transition-delay: .24s; }
.lesson a { transition: background .2s, border-color .2s, transform .2s; }
.lesson a:hover { transform: translateX(-3px); }
.is-course .paper-head .lockup { animation: fade-up 1s ease-out .1s both; }
.is-course .lockup .lk-script { animation: lk-write 1.4s cubic-bezier(.45,.05,.3,1) .5s backwards; }
.is-course .course-main { animation: fade-up 1s ease-out .6s both; }

@media (prefers-reduced-motion: reduce) {
  .lockup-anim *, .hero-intro .intro-lede, .hero .hero-frame, .buy-box > *, .btn-shine,
  .is-course .paper-head .lockup, .is-course .lockup .lk-script, .is-course .course-main, .lesson-panel { animation: none !important; }
  .lockup-anim .lk-main { color: var(--gold-ink); background: none; }
}

/* ------------------------------------------------------------ review gallery */
.rv-frame { max-width: 1180px; }
.rv-title { font-family: var(--he-serif); font-size: 26px; margin: 18px 0 0; color: var(--ink); }
.rv-sec { margin-top: clamp(28px, 4vw, 44px); }
.rv-h { font-family: var(--he-serif); font-weight: 500; font-size: 26px; margin: 0 0 14px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.rv-h span { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--gold-deep); letter-spacing: .06em; margin-inline-end: 8px; }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.rv-promo { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 760px) { .rv-promo { grid-template-columns: 1fr; } }
.rv-card { background: var(--paper-2); border: 1px solid rgba(168,135,90,.35); padding: 8px; }
.rv-media { background: #1b1714; aspect-ratio: 9 / 16; }
.rv-card.is-wide .rv-media { aspect-ratio: 16 / 9; }
.rv-media video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.rv-media .bp { width: 100%; height: 100%; }
.rv-meta { display: grid; gap: 2px; padding: 10px 4px 4px; }
.rv-meta strong { font-size: 16px; }
.rv-meta span { font-size: 13px; color: var(--ink-faint); }
.rv-dl { justify-self: start; margin-top: 6px; font-weight: 700; font-size: 14px; color: var(--gold-deep); text-decoration: none; }

/* English chapter names and the documents block */
/* named chapters (Day to night, Bonus): English name as the heading, the
   Hebrew name under it, and the English tagline small in gold */
.chapter-head.is-named { display: grid; justify-items: start; gap: 2px; margin-bottom: 14px; }
.chapter-head .chapter-main { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.1; color: var(--ink); }
.chapter-sub { font-family: var(--he-serif); font-weight: 500; font-size: 20px; color: var(--ink); }
.chapter-en { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--gold-ink); }
.chapter-note { font-size: 14.5px; color: var(--gold-deep); }
/* "Bonus" eyebrow with twinkling stars around it */
.chapter-badge { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 2px 4px;
  font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 19px; letter-spacing: .04em; color: var(--gold-deep); }
.chapter-badge .spark, .perk-n .spark, .sb-now .spark { display: block; width: 13px; height: 13px; animation: twinkle 2.4s ease-in-out infinite; }
.chapter-badge .spark svg, .perk-n .spark svg, .sb-now .spark svg { display: block; width: 100%; height: 100%; fill: var(--gold-ink); }
.chapter-badge .s2, .perk-n .s2 { width: 16px; height: 16px; animation-delay: .8s; }
.chapter-badge .s3, .perk-n .s3 { position: absolute; top: -6px; inset-inline-start: -8px; width: 9px; height: 9px; animation-delay: 1.6s; }
@keyframes twinkle {
  0%, 100% { opacity: .35; transform: scale(.7) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(90deg); filter: drop-shadow(0 0 4px rgba(212,181,133,.9)); }
}
.perk-n.has-sparks { position: relative; display: inline-flex; align-items: center; gap: 10px; }
.perk-n .s1 { width: 15px; height: 15px; }
.perk-n .s2 { width: 19px; height: 19px; }
.perk-n .s3 { top: -2px; inset-inline-start: -14px; width: 11px; height: 11px; }
@media (prefers-reduced-motion: reduce) { .chapter-badge .spark, .perk-n .spark, .sb-now .spark { animation: none; opacity: .9; } }
.rv-en { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 18px; color: var(--gold-ink); margin-inline-start: 8px; }
.course-docs { margin-top: clamp(30px, 4vw, 44px); border-top: 1px solid rgba(168,135,90,.45); padding-top: clamp(22px, 3vw, 32px); }
.docs { display: grid; gap: 10px; margin-top: 8px; }
.docs .sheet-link { align-items: center; }
.sheet-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--gold-ink); font-weight: 700; font-variant-numeric: lining-nums; }
.sheet-text { display: grid; gap: 1px; }
.sheet-en { font-family: var(--serif); font-style: italic; color: var(--gold-deep); font-size: 16px; direction: ltr; text-align: right; }
.sheet-text .muted { font-size: 14px; }

/* the Bonus badge on the home syllabus card and in the gallery heading */
.syl-card .chapter-badge { font-size: 17px; margin: -4px 0 4px; }
.rv-h .chapter-badge { font-size: 16px; margin-inline-end: 10px; vertical-align: middle; }
