/* Estudios Védicos, biblioteca v2: the page's own layer, on page/v2-base.css and the locked page/v2-sections.css.
   Session 11 (24 Nov 2026) restyled the theme's library to home v2's language. Round 2 rollout (26 Nov 2026, Ben's
   notes 28 to 40) moved the page's own sections onto the locked designs:
   - the hero is centred at every width, as on a phone (note 29);
   - the most watched keeps the past classes layout (system-v2 #tabs-a: the lead screen beside the rows) and, on a
     phone, the lead over the rows as there, no carousel with arrows over the cards;
   - "Open the library, free" is the locked sign up band (.belly2): copy beside the glass panel, the three big
     figures now one line at the panel's heading size beside a drawn icon (notes 35, 36);
   - each topic: one head (ring, name, one line), its classes in the locked plain carousel (system-v2 #tabs-blog:
     three at a time, arrows outside the strip or beside it, never over a card, the bar centred under, the cards'
     lines shared by subgrid), and the count with the way back to the topics as the locked foot row (.more--say);
   - how it works is the locked earn steps (.earn2, .grow) with drawn icons, on its dark band;
   - the three programmes stand as equal doors with shared lines, the prices at body size with the .hl line, in the
     locked carousel frame on a phone; each photograph sits in the top of its door and the words on the ink under it,
     so no line or icon lands on a face.
   Every colour is a token. Mobile first. */

.ccard__icon svg [stroke] { stroke-width: 1.5; }
.ccard__icon { color: var(--copper); }
.lib-feat .ccard__icon { color: var(--saffron); }


/* ================================================================== 1. Hero: the wall of class frames */
/* The hero is the base's (home v2's shade, type and buttons) over the page's collage of real class frames. Centred
   at every width (note 29): the collage has no subject on one side, so the words take the middle. */
.lib-hero__collage { position: absolute; inset: -48px; z-index: -2; display: grid; grid-template-columns: repeat(3, 1fr); align-content: center; gap: 6px; transform: rotate(-4deg) scale(1.1); animation: lib-settle 2.4s var(--ease) both; }
@keyframes lib-settle { from { transform: rotate(-4deg) scale(1.2); } to { transform: rotate(-4deg) scale(1.1); } }
.lib-hero__collage img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.75); }
.lib-hero .hero__inner { text-align: center; }
.lib-hero .hero__inner > * { margin-left: auto; margin-right: auto; }
.lib-hero .hero__title { text-wrap: balance; }
.lib-hero .hero__standfirst { text-wrap: pretty; }
@media (min-width: 768px) {
  .lib-hero__collage { grid-template-columns: repeat(6, 1fr); }
  .lib-hero .hero__ctas { justify-content: center; }
  /* The base shade darkens the left for left-hand words; centred words take an even shade, deepest behind them. */
  .lib-hero .hero__shade { background: radial-gradient(ellipse 62% 70% at 50% 52%, color-mix(in srgb, var(--ink) 90%, transparent) 0%, color-mix(in srgb, var(--ink) 78%, transparent) 58%, color-mix(in srgb, var(--ink) 58%, transparent) 100%), linear-gradient(0deg, color-mix(in srgb, var(--ink) 50%, transparent) 0%, transparent 40%); }
}

/* Entrance: the class frames switch on one by one, scattered across the wall like screens lighting up, and the
   words arrive in reading order once the wall is lit. */
.lib-hero__collage img { animation: lib-screen-on .7s var(--ease) both; }
.lib-hero__collage img:nth-child(5n+2) { animation-delay: .3s; }
.lib-hero__collage img:nth-child(5n+3) { animation-delay: .12s; }
.lib-hero__collage img:nth-child(5n+4) { animation-delay: .42s; }
.lib-hero__collage img:nth-child(5n+5) { animation-delay: .2s; }
.lib-hero__collage img:nth-child(7n+3) { animation-delay: .5s; }
@keyframes lib-screen-on { from { opacity: 0; filter: saturate(.75) brightness(1.9); } 40% { opacity: 1; } to { opacity: 1; filter: saturate(.75); } }
.lib-hero .hero__inner > * { animation: lib-hero-words .8s var(--ease) .35s both; }
.lib-hero .hero__standfirst { animation-delay: .5s; }
.lib-hero .hero__ctas { animation-delay: .65s; }
@keyframes lib-hero-words { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }


/* ---------------------------------------------------------------- The class card's signed-in preview */
/* The card is the base's .ccard; signed out is the state shown; ?preview=signedin (biblioteca.js) shows the other. */
.lib-page--in .ccard__access--out { display: none; }
.lib-page--in .ccard__access--in { display: inline-flex; }


/* ================================================================== 3. The most watched: the lead and four rows */
/* The past classes layout (system-v2 #tabs-a, locked): the lead class as the big screen with its words under it,
   the other four as rows beside it, starting on the screen's top line and ending on the lead's last line. On a
   phone the lead sits over the four rows (128 px pictures), as there. Words left, as in the reference. */
.lib-feat__track { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--g2); }
.lib-feat .ccard { color: var(--paper); text-align: left; }
.lib-feat .ccard__body { align-items: flex-start; }
.lib-feat .ccard__title { color: var(--paper); }
.lib-feat .ccard__meta, .lib-feat .ccard__views { color: var(--sage-l); }
.lib-feat .ccard__access { color: var(--paper); }
.lib-feat .ccard:hover .ccard__title { text-decoration-color: var(--saffron); }
.lib-card--lead .ccard__media { border-radius: var(--rm); background: var(--ink); box-shadow: var(--pop); }
.lib-card--lead .ccard__title { font-size: var(--fs-h3); line-height: 1.2; }
@media (max-width: 767.98px) {
  .lib-feat__track > li:not(:first-child) .ccard { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: var(--g1); align-items: start; }
  .lib-feat__track > li:not(:first-child) .ccard__title { font-size: 1.0625rem; }
  .lib-feat__track > li:not(:first-child) .ccard__len { font-size: .75rem; min-height: 22px; padding: 1px 6px; }
}
@media (min-width: 768px) {
  .lib-feat__track { grid-template-columns: 1.3fr 1fr; grid-template-rows: repeat(4, auto); gap: var(--s-4) var(--s-6); }
  .lib-feat__track > li:first-child { grid-row: 1 / span 4; }
  .lib-card--lead { gap: var(--s-4); }
  .lib-card--lead .ccard__media { aspect-ratio: auto; flex: 1 1 auto; min-height: 260px; }
  .lib-card--lead .ccard__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); line-height: 1.15; letter-spacing: -0.01em; font-variation-settings: "opsz" 72; }
  .lib-feat__track > li:not(:first-child) .ccard { display: grid; grid-template-columns: 168px 1fr; gap: var(--s-4); align-items: center; }
  .lib-feat__track > li:not(:first-child) .ccard__title { font-size: 1.0625rem; }
}
@media (min-width: 1100px) { .lib-feat__track > li:not(:first-child) .ccard { grid-template-columns: 220px 1fr; } }

/* Entrance: the lead class settles in from a close view, and the four others deal out from behind it one after
   another, as cards from a hand. */
.lib-feat__track > li:nth-child(2) { --i: 1; } .lib-feat__track > li:nth-child(3) { --i: 2; }
.lib-feat__track > li:nth-child(4) { --i: 3; } .lib-feat__track > li:nth-child(5) { --i: 4; }
.js .lib-feat .band__head[data-reveal]:not(.is-in) ~ .lib-feat__car .ccard { opacity: 0; }
.js .lib-feat .band__head.is-in ~ .lib-feat__car .lib-card--lead { animation: lib-lead-in .7s var(--ease) .1s backwards; }
.js .lib-feat .band__head.is-in ~ .lib-feat__car .lib-card--lead .ccard__media img { animation: lib-lead-settle 1.4s var(--ease) .1s backwards; }
.js .lib-feat .band__head.is-in ~ .lib-feat__car li:not(:first-child) .ccard { animation: lib-deal .7s var(--ease) calc(.25s + var(--i, 1) * 130ms) backwards; }
@keyframes lib-lead-in { from { opacity: 0; } }
@keyframes lib-lead-settle { from { transform: scale(1.14); } }
@keyframes lib-deal { from { opacity: 0; transform: translateX(-56px) rotate(-2deg); } }
@media (max-width: 767.98px) { @keyframes lib-deal { from { opacity: 0; transform: translateX(48px) rotate(2deg); } } }


/* ================================================================== 4. Open the library, free: the sign up band */
/* The locked sign up band (.belly2, system-v2 #belly-wednesday): the copy beside the glass panel over a dark
   picture under the scrim. Here the picture is the page's wall of real class frames; the panel carries one line
   beside its drawn icon, the two sign up buttons on one row, and the note under them. */
.lib-join__wall { position: absolute; inset: -10px; z-index: -2; display: grid; grid-template-columns: repeat(3, 1fr); align-content: center; gap: 6px; transform: rotate(-4deg) scale(1.15); }
.lib-join__wall img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.7); }
.lib-join__acts { flex-wrap: wrap; }
.lib-join__panel .belly2__when > span:last-child { text-wrap: balance; }
.belly2__row.lib-join__acts .btn { flex: 1 1 200px; }
@media (min-width: 768px) { .lib-join__wall { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 767.98px) { .belly2__row.lib-join__acts .btn { flex: none; width: 100%; } }

/* Entrance, its own: the wall of frames turns into place behind the band, the words rise and the panel comes in
   from the side (the Wednesday band further down slides both in from the sides). */
.lib-join__wall { transition: transform 1.5s var(--ease); }
.js .lib-join:not(.is-in) .lib-join__wall { transform: rotate(-9deg) scale(1.35); }
.js .lib-join.belly2:not(.is-in) .belly2__copy { transform: translateY(28px); }


/* ================================================================== 5 to 16. A topic: the twelve shelves */
/* One head (note 33): the topic's ring beside its name (above it on a phone) and one line, centred, --hg under. */
.lib-topic__head { display: flex; flex-direction: column; align-items: center; gap: var(--g1); max-width: 920px; margin: 0 auto var(--hg); text-align: center; }
.lib-topic__name { display: flex; flex-direction: column; align-items: center; gap: var(--s-4); }
.lib-topic__head .story__ring { width: 76px; height: 76px; flex: 0 0 auto; }
.lib-topic__title { margin: 0; text-wrap: balance; }
.lib-topic__desc { margin: 0; max-width: 760px; font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
@media (min-width: 768px) {
  .lib-topic__name { flex-direction: row; gap: var(--s-4); }
  .lib-topic__head .story__ring { width: 72px; height: 72px; }
}

/* The shelf: the locked plain carousel (.car, system-v2 #tabs-blog). Three classes at a time (two under 1100 px,
   one on a phone), the arrows outside the strip where the page has room and beside it where it has not, level
   with the pictures, the bar centred under. Every card centred, its picture, title, line and lock on lines shared
   with its neighbours (subgrid), so a one line title sits on the same top line as a two line one. */
.lib-car { container-type: inline-size; --lib-cols: 1; --by: calc((100cqw - (var(--lib-cols) - 1) * var(--g2)) / var(--lib-cols) * 9 / 32) !important; }
.car.lib-car .car__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--lib-cols) - 1) * var(--g2)) / var(--lib-cols)); grid-template-rows: repeat(4, auto); column-gap: var(--g2); row-gap: 0; }
.lib-car__track > li { display: grid; grid-row: span 4; grid-template-rows: subgrid; min-width: 0; }
.lib-car .ccard { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; gap: 0; height: auto; text-align: center; }
.lib-car .ccard__body { display: contents; }
/* Each card wears the locked class card (.vcard, the cards under the photo slices in #temas above): the picture at
   the media corner with its shadow, the title at the h3 size --g2 under it, the date line 6 px under the title. */
.lib-car .ccard__media { border-radius: var(--rm); box-shadow: var(--pop); background: var(--ink); }
.lib-car .ccard__title { margin-top: var(--g2); font-size: var(--fs-h3); line-height: var(--lh-snug); text-wrap: balance; }
.lib-car .ccard__meta { margin-top: 6px; }
.lib-car .ccard__access { justify-content: center; margin-top: var(--g1); }
/* The workshop recordings, kept for the Diploma (Ben, row 74): the cover's camera mark becomes the lock over the
   programme's name; the one workshop with a video still wears the lock tag on a darker picture; the Diploma button
   stands where the access line was. Only the button is a link, so the card keeps still on hover. */
.ccard--lock:hover .ccard__media img { transform: none; }
.ccard--lock:hover .ccard__media--zoom img { transform: scale(1.16); }
.ccard--lock:hover .ccard__title { text-decoration: none; }
.lib-car .ccard--lock .ccard__media--zoom::after { content: ""; position: absolute; inset: 0; background: rgba(19, 26, 21, .46); }
.lib-car .ccard--lock .ccard__len { z-index: 1; }
.ccard__cover--lock .ccard__cover-icon svg { width: 30px; height: 30px; }
.ccard__lock { position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%); gap: var(--s-2); min-height: 36px; padding: 6px 14px; white-space: nowrap; }
.ccard__lock svg { width: 18px; height: 18px; flex: 0 0 auto; }
.lib-car .ccard__join { margin-top: var(--g1); }
.lib-car .ccard__join .btn { text-wrap: balance; }
@media (min-width: 768px) { .lib-car { --lib-cols: 2; } }
@media (min-width: 1100px) { .lib-car { --lib-cols: 3; } }
/* On a phone one card shows at a time: each card keeps its own lines, so a two line title has no gap under it
   sized for the longest title of the forty. */
@media (max-width: 767.98px) {
  .car.lib-car .car__track { grid-template-rows: none; align-items: start; }
  .lib-car__track > li { display: block; grid-row: auto; }
  .lib-car .ccard { display: flex; flex-direction: column; grid-row: auto; }
  /* The phone track has no side room (v2-sections), so the media shadow is drawn inside the picture's width: no
     pale box with cut sides under the card. Same in the reference's blog carousel: listed for the manager. */
  .lib-car .ccard__media { box-shadow: 0 24px 32px -30px var(--shadow-ink); }
}

/* The foot: the topic's count and the way back to the twelve topics, as the locked foot row (.more--say), --hg
   under the bar (v2-base .more). */

/* The single questions and answers series: its picture (the media corner and shadow) beside its words, no box.
   The words are the copy column of a split band: left beside the picture, centred over it on a phone. */
.lib-series { display: grid; gap: var(--g2); align-items: center; color: var(--text); text-decoration: none; }
.lib-series__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--rm); background: var(--ink); box-shadow: var(--pop); }
.lib-series__media img { width: 100%; height: 104%; object-fit: cover; object-position: 50% 0; transition: transform .3s ease; }
.lib-series:hover .lib-series__media img { transform: scale(1.03); }
.lib-series__body { display: flex; flex-direction: column; align-items: center; gap: var(--g1); text-align: center; }
.lib-series__title { font-family: var(--fd); font-size: var(--fs-h3); line-height: 1.2; color: var(--forest); font-variation-settings: "opsz" 36; }
.lib-series:hover .lib-series__title { text-decoration: underline; text-decoration-color: var(--copper); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.lib-series__text { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); max-width: 40ch; }
.lib-series .ccard__access { margin-top: 0; }
/* Kept for Círculo members (Ben, row 73): the picture darker under a centred lock tag, the join button under the
   words; nothing else on it is a link, so it keeps still on hover. */
.lib-series--lock .lib-series__media::after { content: ""; position: absolute; inset: 0; background: rgba(19, 26, 21, .46); }
.lib-series--lock:hover .lib-series__media img { transform: none; }
.lib-series--lock:hover .lib-series__title { text-decoration: none; }
.lib-series--lock .lib-series__title, .lib-series--lock .lib-series__text { margin: 0; }
.lib-lock { position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%); gap: var(--s-2); min-height: 40px; padding: 8px 16px; white-space: nowrap; }
.lib-lock svg { flex: 0 0 auto; }
.lib-series__join { margin-top: var(--g1); text-wrap: balance; }
@media (min-width: 768px) {
  .lib-series { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
  .lib-series__body { align-items: flex-start; text-align: left; }
}

/* Entrance, one per shelf: the topic's ring rolls in beside its name, then the classes in view slide in one after
   another, from the right on the bone bands and from the left on the paper bands, so the shelves down the page
   alternate. The questions series does the same with its one picture and its words. */
.js .lib-topic__head.is-in .story__ring { animation: lib-ring-roll .8s var(--ease) .1s backwards; }
@keyframes lib-ring-roll { from { opacity: 0; transform: translateX(-28px) rotate(-150deg) scale(.6); } }
.js .lib-car[data-reveal], .js .lib-series[data-reveal] { opacity: 1; transform: none; }
.lib-car__track > li:nth-child(2) { --k: 1; } .lib-car__track > li:nth-child(3) { --k: 2; } .lib-car__track > li:nth-child(4) { --k: 3; }
.js .lib-car[data-reveal]:not(.is-in) .ccard { opacity: 0; }
.js .lib-car.is-in .ccard { animation: lib-shelf-r .7s var(--ease) calc(var(--k, 0) * 110ms) backwards; }
.js .band--papel .lib-car.is-in .ccard { animation-name: lib-shelf-l; }
.js .lib-car.is-in .ccard__media img { animation: lib-focus 1s var(--ease) calc(.15s + var(--k, 0) * 110ms) backwards; }
.js .lib-series[data-reveal]:not(.is-in) .lib-series__media,
.js .lib-series[data-reveal]:not(.is-in) .lib-series__body { opacity: 0; }
.js .lib-series.is-in .lib-series__media { animation: lib-shelf-l .75s var(--ease) backwards; }
.js .lib-series.is-in .lib-series__media img { animation: lib-focus 1s var(--ease) .15s backwards; }
.js .lib-series.is-in .lib-series__body { animation: lib-shelf-r .75s var(--ease) .2s backwards; }
@keyframes lib-shelf-r { from { opacity: 0; transform: translateX(56px); } }
@keyframes lib-shelf-l { from { opacity: 0; transform: translateX(-56px); } }
@keyframes lib-focus { from { filter: blur(8px); transform: scale(1.06); } }


/* ================================================================== 17. How it works: the locked earn steps */
/* .earn2 and .grow (system-v2 #earn, locked): the whiteboard photograph beside the heading and the three steps,
   each under its drawn icon, the two sign up buttons under the steps. On the page's dark textured band, so the
   words take the light inks; the icons are saffron there (v2-sections). */
.lib-how .grow { margin-top: var(--g3); }
.lib-how .grow h3 { color: var(--paper); }
.lib-how .grow p { color: var(--sage-l); }
.lib-how__ctas { display: flex; flex-wrap: wrap; gap: var(--g1); margin-top: var(--g3); }
@media (max-width: 767.98px) { .lib-how__ctas .btn { width: 100%; } }


/* ================================================================== 18. The programmes: three photographic doors */
/* Three equal doors (notes 28, 35, 36): one width, one title size, the words on each picture's shaded foot on lines
   shared across the three (subgrid: icon, name, who it is for, the price, the Diploma's extra line, the button), so
   the three buttons stand on one line. Prices at body size with the .hl line. In the locked carousel frame: one row
   on a desktop, two at a time under 1100 px, one on a phone with the arrows beside it. */
.lib-doors { list-style: none; margin: 0; padding: 0; perspective: 1400px; }
.lib-doors__car { --door-cols: 1; }
.car.lib-doors__car .car__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--door-cols) - 1) * var(--g2)) / var(--door-cols)); grid-template-rows: repeat(7, auto); column-gap: var(--g2); row-gap: 0; }
@media (min-width: 768px) { .lib-doors__car { --door-cols: 2; } }
@media (min-width: 1100px) { .lib-doors__car { --door-cols: 3; } }
.lib-door { --icc: var(--saffron); --hlc: var(--saffron); position: relative; isolation: isolate; overflow: hidden; display: grid; grid-row: span 7; grid-template-rows: subgrid; justify-items: center; text-align: center; padding: 0 var(--s-5) var(--s-6); border-radius: var(--rm); background: var(--ink); box-shadow: var(--pop); }
.lib-door__pic { grid-row: 1; justify-self: start; position: relative; display: block; width: calc(100% + 2 * var(--s-5)); margin-left: calc(-1 * var(--s-5)); aspect-ratio: 16 / 10; overflow: hidden; }
.lib-door__pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--ink) 0%, color-mix(in srgb, var(--ink) 55%, transparent) 24%, transparent 52%); }
.lib-door__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease); }
.lib-door--diploma .lib-door__img { object-position: 50% 30%; }
.lib-door--inmersion .lib-door__img { object-position: 45% 30%; }
.lib-door--reto .lib-door__img { object-position: 50% 45%; }
.lib-door__body { display: contents; }
.lib-door__icon { grid-row: 2; margin-top: calc(-1 * var(--g2)); position: relative; --isz: 40px; --isw: 1.6; }
.lib-door__title { grid-row: 3; margin: var(--g1) 0 0; color: var(--paper); font-size: clamp(1.75rem, 1.45rem + 1vw, 2.25rem); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; font-variation-settings: "opsz" 72; }
.lib-door__who { grid-row: 4; margin: var(--g1) 0 0; color: var(--sage-l); line-height: 1.5; max-width: 30rem; text-wrap: pretty; }
.lib-door__facts { grid-row: 5; margin: var(--g1) 0 0; color: var(--paper); line-height: 1.45; text-wrap: balance; }
.lib-door__extra { grid-row: 6; margin: var(--g1) 0 0; font-size: var(--fs-small); line-height: 1.45; color: var(--sage-l); max-width: 30rem; text-wrap: pretty; }
.lib-door__link { grid-row: 7; align-self: end; margin-top: var(--g2); }
.lib-door:hover .lib-door__img { scale: 1.04; }
/* On a phone one door shows at a time: each keeps its own lines (no gaps sized for the Diploma's longer words), the
   three stay one height and the button stands at the foot; the shadow stays inside the door's width, as above. */
@media (max-width: 767.98px) {
  .car.lib-doors__car .car__track { grid-template-rows: none; align-items: stretch; }
  .lib-door { display: flex; flex-direction: column; align-items: center; grid-row: auto; box-shadow: 0 24px 32px -30px var(--shadow-ink); }
  .lib-door__pic { align-self: flex-start; flex: none; }
  .lib-door__body > :nth-last-child(2) { margin-bottom: var(--g2); }
  .lib-door__link { align-self: center; margin-top: auto; }
}

/* Entrance: the doors swing open on their hinges, the Reto from its left edge and the Círculo from its right, as
   the Diploma steps forward between them; each photograph settles and its words follow. */
.js .lib-doors[data-reveal] { opacity: 1; transform: none; }
.js .lib-doors[data-reveal]:not(.is-in) .lib-door { opacity: 0; }
.js .lib-doors[data-reveal]:not(.is-in) .lib-door__body > * { opacity: 0; }
.js .lib-doors[data-reveal] .lib-door__img { scale: 1.12; }
.js .lib-doors.is-in .lib-door__img { scale: 1; transition: scale 1.3s var(--ease); }
.js .lib-doors.is-in .lib-door:hover .lib-door__img { scale: 1.04; transition-duration: .8s; }
.js .lib-doors.is-in .lib-door--reto { animation: lib-swing-left .95s var(--ease) .15s backwards; }
.js .lib-doors.is-in .lib-door--inmersion { animation: lib-swing-right .95s var(--ease) .15s backwards; }
.lib-door--reto { transform-origin: 0 50%; } .lib-door--inmersion { transform-origin: 100% 50%; }
.js .lib-doors.is-in .lib-door--diploma { animation: lib-step-forward .8s var(--ease) backwards; }
.js .lib-doors.is-in .lib-door__body > * { animation: lib-door-words .5s var(--ease) .7s backwards; }
@keyframes lib-swing-left { from { opacity: 0; rotate: y 32deg; } }
@keyframes lib-swing-right { from { opacity: 0; rotate: y -32deg; } }
@keyframes lib-step-forward { from { opacity: 0; translate: 0 36px; scale: .95; } }
@keyframes lib-door-words { from { opacity: 0; translate: 0 12px; } }


/* ---------------------------------------------------------------- Reduced motion: everything shown at once */
@media (prefers-reduced-motion: reduce) {
  .lib-hero__collage, .lib-hero__collage img, .lib-hero .hero__inner > *,
  .js .lib-page *, .lib-join__wall { animation: none !important; transition: none !important; }
  .js .lib-feat .band__head[data-reveal] ~ .lib-feat__car .ccard,
  .js .lib-car[data-reveal] .ccard, .js .lib-series[data-reveal] *,
  .js .lib-doors[data-reveal] .lib-door, .js .lib-doors[data-reveal] .lib-door__body > * { opacity: 1 !important; }
  .js .lib-join:not(.is-in) .lib-join__wall, .js .lib-join.belly2:not(.is-in) .belly2__copy { transform: none !important; }
  .js .lib-doors[data-reveal] .lib-door__img { scale: 1; transition: none; }
}
