/* Premium layer: cinematic hero, glass header, cleaner cards, refined motion.
   Loaded after the theme so it can refine it; every animation respects prefers-reduced-motion. */
:root { --gold: #e2b049; --night: #120c09; --ease: cubic-bezier(.2, .7, .2, 1); --r-lg: 16px; --r-md: 12px;
  --lift: 0 1px 2px #2a1a120f, 0 8px 24px -6px #5a2a1424, 0 24px 48px -18px #5a2a1430; }
:root[data-theme="dark"] { --lift: 0 1px 2px #0005, 0 10px 30px -8px #000a; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
::selection { background: var(--gold); color: var(--night); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* reading progress */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 50; pointer-events: none; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--sindoor), var(--gold)); }

/* ---------- calmer surfaces: no dashed stitching, soft depth, rounder corners ---------- */
.tile, .card, .feature, .shapes, .strum, .video, .share-end, .tools, .post-tools, .rows, .poem-card, .lesson {
  outline: 0 !important; border-radius: var(--r-lg) !important; box-shadow: var(--lift) !important; border: 1px solid var(--line) !important; }
.sheet, #sheet { outline: 0 !important; border-radius: var(--r-lg) !important; }
.stats { outline: 0 !important; }
.cta { outline: 0 !important; border-radius: 22px !important; overflow: hidden; position: relative;
  background: radial-gradient(ellipse 70% 120% at 100% 0%, #e2b04940, transparent 60%), linear-gradient(135deg, #8f1c16, var(--sindoor) 55%, #6e1510) !important; }
.chip { border-radius: 999px !important; }
.btn, button[type="submit"], #play { border-radius: 999px !important; box-shadow: 0 6px 18px -6px #b3261e88 !important; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s; }
.btn:hover, button[type="submit"]:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px #b3261eaa !important; }
.btn::after, button[type="submit"]::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, #fff5 50%, transparent 70%); transform: translateX(-120%); }
.btn:hover::after, button[type="submit"]:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
input[type="search"], input[type="email"] { border-radius: 999px !important; padding-left: 20px !important; }

/* section heads: a gold rule that draws itself in */
.head { background: none !important; position: relative; padding-bottom: 14px !important; }
.head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; transform-origin: left;
  background: linear-gradient(90deg, var(--gold), #b3261e55 40%, transparent); }
.head h2::before { content: "" !important; display: inline-block; width: 10px; height: 10px; margin: 0 12px .18em 0; border-radius: 2px;
  background: linear-gradient(135deg, var(--gold), var(--sindoor)); transform: rotate(45deg); }

/* slim brand band instead of the tall saree border */
.paar { height: 6px !important; background: linear-gradient(90deg, var(--sindoor), var(--gold), var(--sindoor)) !important; background-size: 200% 100% !important;
  border: 0 !important; box-shadow: none !important; }

/* ---------- cards: lift, tilt, sheen ---------- */
.card, .frame, .poem-card, .lesson { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
  transition: transform .5s var(--ease), box-shadow .35s; will-change: transform; }
.card:hover, .poem-card:hover, .lesson:hover { --ty: -6px; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);box-shadow: 0 0 0 1px #e2b04999, 0 24px 50px -18px #5a2a1466 !important; text-decoration: none; }
.card .thumb { position: relative; overflow: hidden; }
.card .thumb::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #fff4, transparent 45%); opacity: 0; transition: opacity .3s; }
.card:hover .thumb::after { opacity: 1; }
.card .thumb img { transition: transform 1.2s var(--ease) !important; }
.card:hover .thumb img { transform: scale(1.07) !important; }
.card .go { display: inline-block; transition: transform .3s var(--ease); }
.card:hover .go { transform: translateX(5px); }

/* ---------- cinematic hero ---------- */
.hero.cine { --hero-h: min(92vh, 860px); min-height: var(--hero-h); display: flex; flex-direction: column; justify-content: flex-end;
  color: #f7ecd9; background: var(--night) !important; margin-top: calc(-1 * var(--head-h, 64px)); padding-top: var(--head-h, 64px); }
.hero.cine::before { display: none; }
.hero-media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); }
.hero-media img:first-child { opacity: 1; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #120c09f2 0%, #120c09c4 38%, #120c0955 70%, #120c0980 100%),
              linear-gradient(0deg, #120c09 0%, transparent 35%), linear-gradient(180deg, #120c09b0 0%, transparent 22%); }
.hero.cine .shiuli { z-index: -2; opacity: .7; }
.hero.cine::after { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 40%), #e2b04922, transparent 60%); }
.hero.cine .hero2 { flex: 1; padding-top: clamp(40px, 7vh, 90px); }
.hero.cine .eyebrow { color: var(--gold); letter-spacing: .22em; text-transform: uppercase; font-size: .75rem; }
.hero.cine h1 { color: #fff8ea; font-size: clamp(2.8rem, 6.6vw, 5.4rem); line-height: 1.02; letter-spacing: -.01em; max-width: 12ch; }
.hero.cine h1 .h1a { color: #fff8ea; } .hero.cine h1 .h1b { color: var(--gold); }
.hero.cine .bn-quote { color: #f3d9b0; }
.hero.cine .h1-en { color: #f3d9b0; }
.hero.cine .lead { color: #e9dccb; opacity: .85; }
.hero.cine .search input { background: #ffffff14 !important; border: 1px solid #ffffff33 !important; color: #fff8ea !important;
  backdrop-filter: blur(10px); }
.hero.cine .search input::placeholder { color: #f7ecd9aa; }
.hero.cine .quick .muted { color: #e9dccb99; }
.hero.cine .quick a { background: #ffffff10 !important; border: 1px solid #ffffff2a !important; color: #f7ecd9 !important; border-radius: 999px !important;
  backdrop-filter: blur(8px); transition: background .25s, border-color .25s; }
.hero.cine .quick a:hover { background: #e2b04930 !important; border-color: var(--gold) !important; }
.hero.cine .quote { color: #f7ecd9; border-left-color: var(--gold); }
.hero.cine .quote small { color: #e9dccb99; }
.hero.cine .fb-wrap { padding: 18px; border-radius: 22px; background: #ffffff0d; border: 1px solid #ffffff22; backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 30px 80px -30px #000c; }
.hero.cine .fb-wrap::before { opacity: .08; filter: invert(1); }
.hero.cine .fretboard { box-shadow: none; border-radius: 12px; }
.hero.cine .fretboard text { fill: #f7ecd9; }
.hero.cine .fb-wrap .tonight { background: #120c09d9 !important; color: #f7ecd9; border: 1px solid var(--gold) !important; border-radius: 14px !important;
  box-shadow: 0 18px 40px -12px #000c !important; backdrop-filter: blur(10px); transition: transform .3s var(--ease); }
.hero.cine .fb-wrap .tonight:hover { transform: translateY(-3px); }
.hero.cine .tonight small { color: var(--gold); } .hero.cine .tonight span { color: #e9dccb99; }
.hero.cine .ticker { background: #ffffff0a !important; border: 0 !important; border-top: 1px solid #ffffff1c !important; backdrop-filter: blur(10px); color: #f7ecd9; }
.hero.cine .ticker a { opacity: .8; transition: opacity .2s, color .2s; } .hero.cine .ticker a:hover { opacity: 1; color: var(--gold); }
.hero.cine .ticker a::before { color: var(--gold); }

/* glass header that floats over the hero, then frosts once you scroll */
.has-cine .paar { display: none; }
.has-cine .site-header { transition: background .4s, box-shadow .4s, backdrop-filter .4s; }
.has-cine .site-header:not(.scrolled) { background: transparent !important; backdrop-filter: none !important; box-shadow: none; border-color: transparent; }
.has-cine .site-header:not(.scrolled) .brand { color: #f7ecd9; }
.has-cine .site-header:not(.scrolled) .brand em, .has-cine .site-header:not(.scrolled) .tagline { color: var(--gold); }
@media (min-width: 1021px) {
  .has-cine .site-header:not(.scrolled) .nav a { color: #f7ecd9; }
  .has-cine .site-header:not(.scrolled) .nav a:hover { background: #ffffff14; color: #fff; }
  .has-cine .site-header:not(.scrolled) .nav a[aria-current="page"] { background: var(--sindoor); color: #fff8ea; box-shadow: none; }
}
.has-cine .site-header:not(.scrolled) .icon-btn, .has-cine .site-header:not(.scrolled) .search-btn {
  background: #ffffff12 !important; border-color: #ffffff33 !important; color: #f7ecd9 !important; }
.has-cine .site-header:not(.scrolled) .search-btn kbd { background: transparent; border-color: #ffffff33; color: #f7ecd9; }
.site-header.scrolled { box-shadow: 0 8px 30px -12px #2a1a1230; }

/* stats float up over the hero's edge */
.has-cine .stats { position: relative; z-index: 3; margin-top: 28px !important; border-radius: 20px !important; border: 1px solid var(--line) !important;
  box-shadow: 0 30px 60px -30px #2a1a1255 !important; overflow: hidden; }
.stats b { font-size: clamp(2rem, 4vw, 2.8rem) !important; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats span { letter-spacing: .04em; }

/* photo filmstrip and band */
.frame { border-radius: var(--r-lg); overflow: hidden; }
.frame img { transition: transform 1.2s var(--ease) !important; }
.frame:hover img { transform: scale(1.06) !important; }
/* the Lalon quote band: an editorial split card, so it doesn't repeat the photo hero */
.photo-band { width: min(1180px, calc(100% - 32px)); margin: clamp(40px, 6vw, 80px) auto; min-height: 0 !important; color: var(--text);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: stretch; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--lift); }
.photo-band::after { display: none; }
.photo-band .pb-img { position: relative; inset: auto; order: 2; min-height: clamp(320px, 38vw, 480px); border-radius: 0;
  transform: none !important; transition: transform 1.6s var(--ease); }
.photo-band:hover .pb-img { transform: scale(1.04) !important; }
.photo-band .pb-copy { order: 1; width: auto; max-width: none; margin: 0; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; position: relative; }
.photo-band .pb-copy::before { content: "\201C"; font: 400 7rem/1 Georgia, serif; color: var(--gold); opacity: .55; margin-bottom: -.35em; }
.photo-band blockquote { color: var(--sindoor) !important; text-shadow: none !important; font-size: clamp(1.8rem, 3.6vw, 2.8rem) !important; }
.photo-band .pb-who { color: var(--muted); }
.photo-band .pb-copy .btn { align-self: flex-start; }
.photo-band .pb-who::before { content: ""; display: inline-block; width: 34px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 10px; }
@media (max-width: 760px) {
  .photo-band { grid-template-columns: 1fr; }
  .photo-band .pb-img { order: 0; min-height: 260px; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .progress { animation: grow linear both; animation-timeline: scroll(root); }
    @keyframes grow { to { transform: scaleX(1); } }
  }
  /* five photos, about seven seconds each, crossfading with a slow push-in */
  .hero-media img { animation: kb 35s linear infinite; animation-delay: calc(var(--k) * 7s - .01s); }
  .hero-media img:first-child { animation-delay: -1.4s; }
  @keyframes kb { 0% { opacity: 0; transform: scale(1.12); } 4% { opacity: 1; } 20% { opacity: 1; } 24% { opacity: 0; transform: scale(1.02); } 100% { opacity: 0; transform: scale(1.02); } }
  /* headline lines unveil from below */
  .hero.cine h1 .h1a, .hero.cine h1 .h1b { animation: unveil 1.1s var(--ease) both; }
  .hero.cine h1 .h1a { animation-delay: .15s; } .hero.cine h1 .h1b { animation-delay: .32s; }
  @keyframes unveil { from { opacity: 0; transform: translateY(60%); clip-path: inset(0 0 100% 0); filter: blur(6px); }
    to { opacity: 1; transform: none; clip-path: inset(-20% -5% -20% -5%); filter: none; } }
  .hero.cine .fb-wrap { animation: floatin 1.4s var(--ease) .4s both; }
  @keyframes floatin { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
  .hero.cine .tonight { animation: bob 6s ease-in-out 2s infinite; }
  @keyframes bob { 50% { transform: translateY(-6px); } }
  .paar { animation: sheen 8s linear infinite !important; } @keyframes sheen { to { background-position: -200% 0; } }
  /* richer scroll reveal */
  .anim .reveal, .anim .grid .card, .anim .rows .rowcard, .anim .poem-card, .anim .lesson, .anim .frame {
    opacity: 0; transform: translateY(34px) scale(.98); filter: blur(4px);
    transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease), box-shadow .35s; transition-delay: calc(var(--i, 0) * 70ms); }
  .anim .reveal.in, .anim .grid .card.in, .anim .rows .rowcard.in, .anim .poem-card.in, .anim .lesson.in, .anim .frame.in {
    opacity: 1; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); filter: none; }
  .anim .card.in, .anim .poem-card.in, .anim .lesson.in { transition-delay: 0s; transition-duration: .5s; }
  .anim .head { opacity: 1 !important; transform: none !important; }
  .anim .head h2 { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .anim .head.in h2 { opacity: 1; transform: none; }
  .anim .head::after { transform: scaleX(0); transition: transform 1.4s var(--ease) .15s; }
  .anim .head.in::after { transform: scaleX(1); }
  .photo-band .pb-copy blockquote { transition: clip-path 1.4s var(--ease), opacity 1.2s; }
  .anim .photo-band .pb-copy:not(.in) blockquote { clip-path: inset(0 100% 0 0); }
}
@media (max-width: 860px) {
  .hero.cine { --hero-h: auto; }
  .hero.cine .hero-media::after { background: linear-gradient(180deg, #120c09cc 0%, #120c09b3 50%, #120c09 100%); }
  .hero.cine .fb-wrap { padding: 10px; }
}

/* ---------- song pages: cinematic photo header, then the sheet ---------- */
.song-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: min(72vh, 640px); color: #f7ecd9; background: var(--night);
  margin-top: calc(-1 * var(--head-h, 64px)); padding-top: var(--head-h, 64px); }
.song-media { position: absolute; inset: 0; z-index: -2; }
.song-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.06); }
.song-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, #120c09 0%, #120c09d0 26%, #120c0940 62%, #120c0999 100%),
              linear-gradient(90deg, #120c09b0 0%, transparent 70%); }
.song-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(480px circle at var(--mx, 30%) var(--my, 70%), #e2b04920, transparent 60%); }
.song-hero-in { max-width: 820px; width: 100%; padding-top: 40px; padding-bottom: 38px; }
.song-hero .crumbs { color: #e9dccbaa; letter-spacing: .04em; }
.song-hero .crumbs a { color: var(--gold); }
.song-hero h1 { color: #fff8ea; font-size: clamp(2.2rem, 5.6vw, 3.9rem); line-height: 1.05; letter-spacing: -.01em; text-shadow: 0 2px 30px #0008; }
.song-hero h1 .bn-title { display: block; color: var(--gold); font-size: .6em; margin-top: .25em; letter-spacing: 0; }
.song-hero .lead { color: #e9dccb; opacity: .9; }
.song-hero .chips .chip { background: #ffffff14 !important; border: 1px solid #ffffff30 !important; color: #f7ecd9 !important; backdrop-filter: blur(8px); }
.song-hero .chips .muted, .song-hero .views { color: #e9dccbaa; }
.song-hero .savebtn { background: #ffffff12; border-color: #ffffff38; color: #f7ecd9; backdrop-filter: blur(10px); transition: background .25s, border-color .25s, transform .25s var(--ease); }
.song-hero .savebtn:hover { background: #e2b04930; border-color: var(--gold); transform: translateY(-1px); }
.song-hero + .post { padding-top: 26px; }
.stage .song-hero { display: none; }

/* sheet and tools, refined */
.facts { position: relative; overflow: hidden; border-radius: var(--r-lg) !important; box-shadow: var(--lift) !important; border: 1px solid var(--line) !important; outline: 0 !important; }
.facts::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--sindoor), var(--gold), transparent); }
.used .c, .shape { transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.used .c { border-radius: 999px !important; }
.used .c:hover, .shape:hover { transform: translateY(-3px); box-shadow: 0 10px 22px -10px #b3261e66; border-color: var(--gold) !important; }
.tools { backdrop-filter: blur(14px) saturate(1.3) !important; }
.tools button { border-radius: 999px !important; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.tools button:hover { transform: translateY(-1px); }
.sheet, #sheet { box-shadow: var(--lift) !important; border: 1px solid var(--line) !important;
  background-image: radial-gradient(ellipse 80% 40% at 100% 0%, #e2b04912, transparent 70%) !important; }
.sheet .sec { display: flex; align-items: center; gap: 12px; }
.sheet .sec::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #e2b04988, transparent); }
.pn a { transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; box-shadow: var(--lift); }
.pn a:hover { transform: translateY(-3px); border-color: var(--gold); }
.listen { box-shadow: var(--lift) !important; }

@media (prefers-reduced-motion: no-preference) {
  .song-media img { animation: drift 26s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: scale(1.06) translate(0, 0); } to { transform: scale(1.16) translate(-2%, -1.5%); } }
  .song-hero-in > * { animation: rise 1s var(--ease) both; }
  .song-hero-in > :nth-child(2) { animation-delay: .12s; } .song-hero-in > :nth-child(3) { animation-delay: .24s; } .song-hero-in > :nth-child(4) { animation-delay: .34s; }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
  .anim .post > .facts, .anim .post > .shapes, .anim .post > .strum, .anim .post > .listen, .anim .post > .video, .anim .post > .share-end, .anim .post > .pn {
    opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease), box-shadow .3s; }
  .anim .post > .in { opacity: 1; transform: none; }
}
@media (max-width: 860px) {
  .song-hero { min-height: min(62vh, 520px); }
  .song-hero-in { padding-bottom: 26px; }
  .song-hero .titlerow { flex-direction: column; }
}
@media print {
  .song-hero { min-height: 0; margin: 0; padding: 0; color: #000; background: none; }
  .song-media, .song-hero::after, .song-hero .savebtn { display: none; }
  .song-hero h1, .song-hero .lead, .song-hero h1 .bn-title { color: #000; text-shadow: none; }
}

/* ---------- poem pages: candle-lit night header, the poem on a paper card that floats up over it ---------- */
.poem-hero { position: relative; isolation: isolate; overflow: hidden; text-align: center; color: #f7ecd9; background: var(--night);
  margin-top: calc(-1 * var(--head-h, 64px)); padding: calc(var(--head-h, 64px) + clamp(36px, 7vw, 80px)) 0 clamp(110px, 14vw, 150px); }
.ph-glow { position: absolute; inset: -20%; z-index: -2; pointer-events: none;
  background: radial-gradient(40% 50% at 30% 40%, #b3261e55, transparent 70%), radial-gradient(35% 45% at 72% 30%, #e2b04938, transparent 70%),
              radial-gradient(50% 60% at 50% 100%, #6e151066, transparent 70%); }
.poem-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 45%), #e2b04922, transparent 60%); }
.poem-hero .shiuli { z-index: -1; opacity: .75; }
.ph-in { max-width: 860px; }
.poem-hero .crumbs { color: #e9dccbaa; text-align: center; } .poem-hero .crumbs a { color: var(--gold); }
.poem-hero .book-label { color: var(--gold); letter-spacing: .24em; text-transform: uppercase; font-size: .75rem; }
.poem-hero .poem-title { color: #fff1d6; font-size: clamp(2.8rem, 8vw, 5rem); text-shadow: 0 0 40px #e2b04955, 0 2px 20px #0009; margin: 8px 0 6px; }
.poem-hero .poem-poet { color: var(--gold); font-size: 1.3rem; }
.poem-hero .poem-poet::before, .poem-hero .poem-poet::after { content: ""; display: inline-block; width: 40px; height: 1px; vertical-align: middle; margin: 0 12px;
  background: linear-gradient(90deg, transparent, var(--gold)); }
.poem-hero .poem-poet::after { background: linear-gradient(90deg, var(--gold), transparent); }
.poem-hero .poem-en { color: #e9dccb99; }
.poem-hero .views { justify-content: center; color: #e9dccbaa; } .poem-hero .views b { color: var(--gold); }
.poem-hero + .poem-wrap { position: relative; z-index: 2; margin-top: clamp(-110px, -10vw, -70px); padding-top: 0; }
.poem-hero + .poem-wrap .poem-book { margin-top: 0; border-radius: 18px; box-shadow: 0 40px 80px -30px #2a1a1280, 0 1px 0 #fff inset, 0 0 0 1px #c9a46a55; }
.poem-tools button { transition: background .2s, border-color .2s, transform .2s var(--ease); }
.poem-tools button:hover { transform: translateY(-1px); border-color: var(--gold); }
.poem-nav a { padding: 12px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--lift); transition: transform .3s var(--ease), border-color .3s; }
.poem-nav a:hover { transform: translateY(-3px); border-color: var(--gold); text-decoration: none; }

@media (prefers-reduced-motion: no-preference) {
  .ph-glow { animation: candle 14s ease-in-out infinite alternate; }
  @keyframes candle { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(3%, -2%) scale(1.06); opacity: .85; } 100% { transform: translate(-3%, 2%) scale(1.02); } }
  .ph-in > * { animation: rise 1s var(--ease) both; }
  .ph-in > :nth-child(2) { animation-delay: .1s; } .ph-in > :nth-child(3) { animation-delay: .2s; } .ph-in > :nth-child(4) { animation-delay: .35s; }
  .ph-in > :nth-child(5) { animation-delay: .45s; } .ph-in > :nth-child(6) { animation-delay: .5s; }
  .poem-hero + .poem-wrap .poem-book { animation: floatin 1.2s var(--ease) .35s both; }
  .anim .poem-text:not(.reciting) .stanza:not(.in) { opacity: 0; transform: translateY(18px); filter: blur(3px); }
  .anim .poem-text .stanza { transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
}
@media print { .poem-hero { margin: 0; padding: 0; background: none; color: #000; } .ph-glow, .poem-hero .shiuli { display: none; }
  .poem-hero .poem-title, .poem-hero .poem-poet { color: #000; text-shadow: none; } .poem-hero + .poem-wrap { margin-top: 0; } }
