/* Estudios Védicos, clase v2 (session 11): the page's own layer, on page/v2-base.css.
   Seeded from the theme's sections-clase.css (the page's layout, now on the v2 tokens); restyled to home v2's
   language section by section. Same sections, same order, same formation, same text.

   A class of the free library (page-templates/clase.php), the template shared by every class. Every class name
   is prefixed cls-. A watch page, the facts as large figures, a joined strip of photo tiles, the shared
   photographic band (.pband in the base). Mobile first; phones under 768 px, desktop at 768, 900 and 1100 px.
   No hex values: every colour is a token. Round shapes: the teacher's story ring only.

   Home v2's language here: the player and the strip carry the one media corner and shadow (--rm, --pop, ink
   behind), large type in Fraunces at optical size 144 with tight tracking, unit words in italic 300, line icons
   at 1.5 stroke (copper on the paper band, saffron on the dark ones), no hairlines.
   Motion: every section its own entrance (Ben, 24 Nov 2026), named in each section below.

   Round 2 rollout (26 Nov 2026, Ben's notes 28 to 41, R/V2-SET-BRIEF.md lines 133 to 169):
   - the watch band: equal padding top and bottom; the title, the teacher and the facts centred at every width,
     the facts a plain line (no leaf marks between them);
   - what the class covers: the locked icons band (system-v2 #icons, .band--snug .curious), its line split over
     three drawn icons; the large figures went (one size per role, and they repeated the facts above);
   - more classes: the library's class cards (.classes .vcard, the open topic of the locked slices), its three
     newest classes, the cards sharing their lines by subgrid; no joined strip;
   - the closing band: one design with cursos #cierre and sobre-nosotros #aprende, centred, the Diploma only
     (the Wednesday class is the belly's, once). */

.cls-page { --leaf-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19C5 10 11 4 20 4c0 9-6 15-15 15z'/%3E%3C/svg%3E"); }

/* ---------------------------------------------------------------- Line icons: home v2's 1.5 stroke */
.cls-gate__icon svg [stroke], .cls-gate .btn--row svg [stroke] { stroke-width: 1.5; }

/* ---------------------------------------------------------------- 1. The class: a watch page */
/* The player as large as the screen allows with the title still in view under it (from 900 px). */
.cls-top { --watch-w: 100%; padding: var(--hg) 0; }
@media (min-width: 900px) { .cls-top { --watch-w: clamp(720px, calc((100svh - var(--header-h) - var(--hg) - 180px) * 16 / 9), 100%); } }
.cls-player { width: var(--watch-w); margin: 0 auto; }

/* Signed out: the class picture fills the player (home v2's media corner and shadow); the sign-up words sit on
   its shaded part. */
.cls-player__out { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; min-height: 560px; border-radius: var(--rm); background: var(--ink); box-shadow: var(--pop); }
.cls-player__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cls-player__out .cls-player__img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; z-index: -2; object-position: 50% 35%; }
.cls-player__out .cls-pic--lb { transform: scale(1.34); }
.cls-player__out::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, color-mix(in srgb, var(--ink) 94%, transparent) 0%, color-mix(in srgb, var(--ink) 82%, transparent) 50%, color-mix(in srgb, var(--ink) 20%, transparent) 82%, transparent 100%); }
.cls-gate { width: 100%; display: flex; flex-direction: column; align-items: center; gap: var(--g1); padding: var(--s-6) var(--s-4) var(--s-5); text-align: center; color: var(--paper); }
.cls-gate__icon { display: flex; color: var(--saffron); }
.cls-gate__icon svg { width: 34px; height: 34px; }
.cls-gate__title { color: var(--paper); font-size: clamp(1.875rem, 1.4rem + 1.6vw, 3rem); line-height: 1.05; letter-spacing: -0.015em; font-variation-settings: "opsz" 144; margin: 0; text-wrap: balance; }
.cls-gate__text { margin: 0; max-width: 34ch; color: var(--sage-l); font-size: var(--fs-lead); line-height: 1.45; text-wrap: pretty; }
.cls-gate__ctas { display: flex; flex-direction: column; gap: var(--g1); width: 100%; max-width: 320px; margin-top: var(--g1); }
.cls-gate__login { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--g1); margin: 0; font-size: var(--fs-small); color: var(--sage-l); }
@media (min-width: 768px) {
  .cls-player__out { aspect-ratio: 16 / 9; min-height: 0; }
  .cls-player__out .cls-pic--lb { transform: none; }
  .cls-gate__ctas { flex-direction: row; justify-content: center; max-width: none; width: auto; }
}
@media (min-width: 1100px) {
  /* The words on the shaded left side; the photograph bright on the right. */
  .cls-player__out { align-items: center; }
  .cls-player__out::after { background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 94%, transparent) 0%, color-mix(in srgb, var(--ink) 84%, transparent) 36%, color-mix(in srgb, var(--ink) 30%, transparent) 64%, transparent 84%); }
  .cls-player__out .cls-player__img { object-position: 70% 35%; }
  .cls-gate { width: 60%; align-items: flex-start; text-align: left; padding: var(--s-7) var(--s-5) var(--s-7) var(--s-7); }
  .cls-gate__login { justify-content: flex-start; }
  .cls-gate__ctas { justify-content: flex-start; flex-wrap: wrap; }
}
/* A letterboxed YouTube picture (4:3 with black bars) shows only its 16:9 frame in the 16:9 player, a touch
   enlarged so bars that sit a pixel or two off centre never show as a black strip along the player's edge. */
@media (min-width: 768px) { .cls-player__out .cls-player__img.cls-pic--lb { object-position: 50% 50%; transform: scale(1.03); } }

/* Signed in (?preview=signedin): the click-to-load video, or the class picture while there is none. */
.cls-player__screen { overflow: hidden; border-radius: var(--rm); background: var(--ink); box-shadow: var(--pop); }

/* Under the player: the title, then the teacher and topic beside the format, month and length, all centred at every
   width (note 29); a row from 768 px, one above the other on a phone. */
.cls-info { width: var(--watch-w); margin: var(--g2) auto 0; text-align: center; }
.cls-info__title { color: var(--paper); font-size: clamp(1.875rem, 1.45rem + 1.7vw, 2.875rem); line-height: 1.08; letter-spacing: -0.02em; font-variation-settings: "opsz" 144; margin: 0; text-wrap: balance; }
.cls-info__row { margin-top: var(--g2); display: flex; flex-direction: column; align-items: center; gap: var(--g1); }
.cls-chan { display: inline-flex; align-items: center; gap: var(--g1); color: var(--paper); text-decoration: none; text-align: left; }
.cls-chan__ring.story__ring { width: 56px; height: 56px; flex: none; padding: 2px; }
.cls-chan__words { display: flex; flex-direction: column; gap: 2px; }
.cls-chan__name { font-weight: 600; line-height: 1.25; }
.cls-chan__topic { font-size: var(--fs-small); line-height: 1.3; color: var(--sage-l); }
.cls-chan:hover .cls-chan__topic { color: var(--paper); text-decoration: underline; text-decoration-color: var(--saffron); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cls-info__facts { margin: 0; font-family: var(--fd); font-style: italic; font-weight: 300; font-variation-settings: "opsz" 36; font-size: clamp(1rem, .9rem + .5vw, 1.375rem); line-height: 1.3; color: var(--sage-l); }
@media (min-width: 768px) {
  .cls-info__row { flex-direction: row; justify-content: center; gap: var(--g3); }
}

/* Entrance, this section's own: the player switches on like a screen. The frame comes up out of the dark and the
   class picture brightens as it settles, then the gate reads in order (the lock drops into place, the headline,
   the line, the two ways in, the log in); under it the title rises, the teacher steps in from the left and the
   format, month and length from the right, meeting in the middle. */
@keyframes cls-on { from { scale: 1.08; filter: brightness(.3); } to { scale: 1; filter: none; } }
@keyframes cls-lock { from { opacity: 0; transform: translateY(-18px) scale(.7); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
.js .cls-player[data-reveal], .js .cls-info[data-reveal] { opacity: 1; transform: none; }
.js .cls-player[data-reveal] .cls-player__out, .js .cls-player[data-reveal] .cls-player__screen { transition: opacity .7s var(--ease), transform 1.1s var(--ease); }
.js .cls-player[data-reveal]:not(.is-in) .cls-player__out, .js .cls-player[data-reveal]:not(.is-in) .cls-player__screen { opacity: 0; transform: scale(.975); }
.js .cls-player[data-reveal]:not(.is-in) .cls-player__img, .js .cls-player[data-reveal]:not(.is-in) .vfacade__img { scale: 1.08; filter: brightness(.3); }
.js .cls-player.is-in .cls-player__img, .js .cls-player.is-in .vfacade__img { animation: cls-on 1.5s var(--ease) backwards; }
.js .cls-player[data-reveal]:not(.is-in) .cls-gate > * { opacity: 0; transform: translateY(14px); }
.js .cls-player[data-reveal] .cls-gate > * { transition: opacity .55s var(--ease), transform .6s var(--ease); }
.js .cls-player.is-in .cls-gate__icon { animation: cls-lock .6s cubic-bezier(.3, 1.4, .5, 1) .3s backwards; }
.js .cls-player.is-in .cls-gate__title { transition-delay: .45s; }
.js .cls-player.is-in .cls-gate__text { transition-delay: .57s; }
.js .cls-player.is-in .cls-gate__ctas { transition-delay: .69s; }
.js .cls-player.is-in .cls-gate__login { transition-delay: .81s; }
.js .cls-info[data-reveal] .cls-info__title, .js .cls-info[data-reveal] .cls-chan, .js .cls-info[data-reveal] .cls-info__facts { transition: opacity .55s var(--ease), transform .65s var(--ease); }
.js .cls-info[data-reveal]:not(.is-in) .cls-info__title { opacity: 0; transform: translateY(16px); }
.js .cls-info[data-reveal]:not(.is-in) .cls-chan { opacity: 0; transform: translateX(-18px); }
.js .cls-info[data-reveal]:not(.is-in) .cls-info__facts { opacity: 0; transform: translateX(18px); }
.js .cls-info.is-in .cls-info__title { transition-delay: .6s; }
.js .cls-info.is-in .cls-chan { transition-delay: .78s; }
.js .cls-info.is-in .cls-info__facts { transition-delay: .9s; }

/* ---------------------------------------------------------------- 2. What the class covers: the locked icons band */
/* The band is the locked one (system-v2 #icons: .band--snug, .curious, .curious__row, its drawn icons and its
   entrance, the icons drawing at 40 percent in view and each line rising after its icon); nothing of its own here.
   Below: the template's other parts for classes that carry them (not on this class). */

/* The points: large type, a small copper leaf for each. */
.cls-points { list-style: none; margin: var(--s-7) auto 0; padding: 0; max-width: 1060px; display: grid; gap: var(--s-5); }
.cls-points li { position: relative; font-family: var(--fd); font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.375rem); line-height: 1.4; font-variation-settings: "opsz" 36; color: var(--forest); text-align: center; text-wrap: pretty; }
.cls-points li::before { content: ""; display: block; width: 18px; height: 18px; margin: 0 auto var(--s-2); background: var(--copper); -webkit-mask: var(--leaf-mark) center / contain no-repeat; mask: var(--leaf-mark) center / contain no-repeat; }
@media (min-width: 768px) {
  .cls-points { grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-7); }
  .cls-points li { text-align: left; padding-left: 34px; }
  .cls-points li::before { position: absolute; left: 0; top: .3em; margin: 0; }
}

/* The lessons of a collection, fully open: up to eight in a group, groups side by side on a
   desktop, the shared carousel of groups on a phone. */
.cls-lessons { margin: var(--s-7) auto 0; max-width: 1060px; }
.cls-lessons__title { margin: 0 0 var(--s-5); text-align: center; font-size: clamp(1.5rem, 1.3rem + .7vw, 1.875rem); line-height: 1.2; font-variation-settings: "opsz" 72; color: var(--forest); }
.cls-lessons__groups { list-style: none; margin: 0; padding: 0; }
.cls-lessons__one { max-width: 720px; margin: 0 auto; }
.cls-lessons__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.cls-lessons__list li { position: relative; padding: 6px 0; line-height: 1.45; color: var(--text); text-align: center; }
.cls-lessons__list li::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 10px; vertical-align: -1px; background: var(--copper); -webkit-mask: var(--leaf-mark) center / contain no-repeat; mask: var(--leaf-mark) center / contain no-repeat; }
.cls-lessons__len { margin-left: .35em; font-size: var(--fs-small); color: var(--muted); white-space: nowrap; }
.cls-lessons__car { --side: 8vw; }
@media (min-width: 768px) {
  .cls-lessons--many .cls-lessons__groups { display: grid; grid-template-columns: repeat(var(--groups), minmax(0, 1fr)); gap: var(--s-5) var(--s-6); }
  .cls-lessons__list li { text-align: left; padding-left: 22px; }
  .cls-lessons__list li::before { position: absolute; left: 0; top: .72em; margin: 0; }
  .cls-lessons__one .cls-lessons__list { grid-template-columns: 1fr 1fr; gap: var(--s-1) var(--s-6); }
}

/* The students' words: the rating (saffron stars), then each quote set on the band, no box. */
.cls-voices { margin: var(--s-7) auto 0; max-width: 1060px; display: flex; flex-direction: column; align-items: center; gap: var(--s-5); }
.cls-voices__rating { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--s-2); font-weight: 600; color: var(--text); }
.cls-voices__list { display: grid; gap: var(--s-6); width: 100%; }
.cls-voice { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--s-2); text-align: center; }
.cls-voice__mark { display: flex; color: var(--copper); }
.cls-voice__mark svg { width: 30px; height: 30px; }
.cls-voice blockquote { margin: 0; }
.cls-voice blockquote p { margin: 0; font-family: var(--fd); font-size: clamp(1.375rem, 1.15rem + .8vw, 1.75rem); line-height: 1.3; font-variation-settings: "opsz" 72; letter-spacing: -0.01em; color: var(--forest); text-wrap: balance; }
.cls-voice__es { margin: 0; font-size: var(--fs-small); font-style: italic; color: var(--muted); }
.cls-voice__who { font-size: var(--fs-small); font-weight: 600; color: var(--text); }
.cls-voice__who em { font-weight: 400; color: var(--muted); }
@media (min-width: 900px) {
  .cls-voices__rating { flex-direction: row; gap: var(--s-3); }
  .cls-voices__list { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
}

/* Entrance, for the classes that carry them: each point's leaf unfurls before its line, and each quote's mark lands
   before the student's words. */
.js .cls-points[data-reveal-set] > li { transform: none; transition: opacity .6s var(--ease); }
.js .cls-points[data-reveal-set] > li::before { transition: transform .6s cubic-bezier(.3, 1.4, .5, 1); }
.js .cls-points[data-reveal-set]:not(.is-in) > li::before { transform: scale(.2) rotate(-70deg); }
.js .cls-points.is-in > li::before { transform: none; }
.js .cls-points.is-in > li:nth-child(2), .js .cls-points.is-in > li:nth-child(2)::before { transition-delay: .12s; }
.js .cls-points.is-in > li:nth-child(3), .js .cls-points.is-in > li:nth-child(3)::before { transition-delay: .24s; }
.js .cls-points.is-in > li:nth-child(4), .js .cls-points.is-in > li:nth-child(4)::before { transition-delay: .36s; }
.js .cls-points.is-in > li:nth-child(n+5), .js .cls-points.is-in > li:nth-child(n+5)::before { transition-delay: .48s; }
.js .cls-voices__list[data-reveal-set] > .cls-voice { opacity: 1; transform: none; transition: none; }
.js .cls-voices__list[data-reveal-set] .cls-voice__mark { transition: opacity .4s var(--ease), transform .55s cubic-bezier(.3, 1.4, .5, 1); }
.js .cls-voices__list[data-reveal-set] .cls-voice > :not(.cls-voice__mark) { transition: opacity .7s var(--ease); }
.js .cls-voices__list[data-reveal-set]:not(.is-in) .cls-voice__mark { opacity: 0; transform: translateY(-14px) scale(.7); }
.js .cls-voices__list[data-reveal-set]:not(.is-in) .cls-voice > :not(.cls-voice__mark) { opacity: 0; }
.js .cls-voices__list.is-in .cls-voice > :not(.cls-voice__mark) { transition-delay: .3s; }
.js .cls-voices__list.is-in .cls-voice:nth-child(2) .cls-voice__mark { transition-delay: .2s; }
.js .cls-voices__list.is-in .cls-voice:nth-child(2) > :not(.cls-voice__mark) { transition-delay: .5s; }

/* ---------------------------------------------------------------- 3. More classes: the library's class cards */
/* The open topic of the locked library slices (.classes, .vcard in v2-sections.css): the topic's three newest
   classes, the picture with its pill on it, the title and the meta under it, the three sharing their lines by
   subgrid; one under the other under 900 px. Each card is a link to its class; the pill says what it takes
   (a free account, or, signed in, watch now). */
#relacionadas .classes { margin-top: 0; }
.cls-card { color: inherit; text-decoration: none; }
.cls-card .vcard__media img { transform: scale(1.03); transition: scale .6s var(--ease); }
.cls-card .vcard__play { pointer-events: none; white-space: nowrap; }
.cls-card .cls-card__go--out svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cls-card__go--in { display: none; }
.cls-page--in .cls-card__go--out { display: none; }
.cls-page--in .cls-card__go--in { display: inline-flex; }
.cls-card h3 { text-wrap: balance; }
.cls-card:hover .vcard__media img, .cls-card:focus-visible .vcard__media img { scale: 1.04; }
.cls-card:hover h3, .cls-card:focus-visible h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.cls-card:focus-visible { outline: 2px solid var(--copper); outline-offset: 6px; border-radius: var(--rm); }

/* Entrance, this section's own: the classes queue up like the next videos. The cards slide in from the right one
   after another, each picture drifting the other way as it lands; then each pill pops onto its picture and the
   words come up under it. */
.js .cls-classes[data-reveal] { opacity: 1; transform: none; }
.js .cls-classes[data-reveal] .cls-card { transition: opacity .6s var(--ease) calc(var(--k, 0) * .12s), transform .85s var(--ease) calc(var(--k, 0) * .12s); }
.js .cls-classes[data-reveal]:not(.is-in) .cls-card { opacity: 0; transform: translateX(64px); }
.js .cls-classes[data-reveal] .vcard__media img { transition: scale .6s var(--ease), translate 1.1s var(--ease) calc(var(--k, 0) * .12s); }
.js .cls-classes[data-reveal]:not(.is-in) .vcard__media img { translate: -32px 0; }
.js .cls-classes[data-reveal] .vcard__play { transition: opacity .4s var(--ease) calc(.6s + var(--k, 0) * .12s), scale .5s cubic-bezier(.3, 1.4, .5, 1) calc(.6s + var(--k, 0) * .12s); }
.js .cls-classes[data-reveal]:not(.is-in) .vcard__play { opacity: 0; scale: .7; }
.js .cls-classes[data-reveal] .cls-card > :not(.vcard__media) { transition: opacity .5s var(--ease) calc(.7s + var(--k, 0) * .12s), transform .55s var(--ease) calc(.7s + var(--k, 0) * .12s); }
.js .cls-classes[data-reveal]:not(.is-in) .cls-card > :not(.vcard__media) { opacity: 0; transform: translateY(10px); }

/* ---------------------------------------------------------------- 4. The closing band: the Diploma (the base's .pband) */
/* One design with cursos #cierre and sobre-nosotros #aprende: a short block, centred at every width (note 29), on
   an even shade; the price inside the line, at its size. */
#siguiente .pband__bg { object-position: 62% 30%; }
#siguiente .pband__shade { background: linear-gradient(to top, color-mix(in srgb, var(--ink) 94%, transparent) 0%, color-mix(in srgb, var(--ink) 84%, transparent) 55%, color-mix(in srgb, var(--ink) 70%, transparent) 100%); }
#siguiente .pband__inner { align-items: center; text-align: center; gap: var(--g2); }
#siguiente .pband__text { color: var(--sage-l); text-wrap: pretty; }
#siguiente .pband__actions { max-width: none; width: 100%; }
.cls-band-actions { display: flex; flex-direction: column; align-items: center; gap: var(--g1); width: 100%; }
.cls-band-actions .btn { width: 100%; max-width: 360px; }
@media (min-width: 600px) {
  .cls-band-actions { flex-direction: row; justify-content: center; }
  .cls-band-actions .btn { width: auto; max-width: none; }
}

/* Entrance, this section's own: the camera finds Vasiliy. The photograph pans in from the right as it settles, and
   the words come into focus like a lens pulling sharp, the title first, then the line and the button. */
.js #siguiente .pband__bg { transform: scale(1.08) translateX(2.5%); transition: transform 1.6s var(--ease); }
.js #siguiente:has(.pband__inner.is-in) .pband__bg { transform: none; }
.js #siguiente .pband__inner[data-reveal] { opacity: 1; transform: none; }
.js #siguiente .pband__inner[data-reveal] > * { transition: opacity .7s var(--ease), filter .9s var(--ease), letter-spacing 1s var(--ease); }
.js #siguiente .pband__inner[data-reveal]:not(.is-in) > * { opacity: 0; filter: blur(8px); }
.js #siguiente .pband__inner[data-reveal]:not(.is-in) .pband__title { letter-spacing: .06em; }
.js #siguiente .pband__inner.is-in .pband__text { transition-delay: .25s; }
.js #siguiente .pband__inner.is-in .pband__actions { transition-delay: .45s; }

/* ---------------------------------------------------------------- Reduced motion: everything shown at once */
/* site.js marks every piece .is-in at once under reduced motion, so the start states above never apply; this
   takes the transitions and animations off so nothing moves on the way there. */
@media (prefers-reduced-motion: reduce) {
  .js .cls-player .cls-player__out, .js .cls-player .cls-player__screen, .js .cls-player .cls-player__img, .js .cls-player .vfacade__img, .js .cls-gate > *,
  .js .cls-info__title, .js .cls-chan, .js .cls-info__facts,
  .js .cls-points > li, .js .cls-points > li::before, .js .cls-voice > *,
  .js .cls-classes .cls-card, .js .cls-classes .vcard__media img, .js .cls-classes .vcard__play, .js .cls-classes .cls-card > *,
  .js #siguiente .pband__bg, .js #siguiente .pband__inner > * { transition: none !important; animation: none !important; }
  .js #siguiente .pband__bg { transform: none; }
}
