
/* YPM RTS — local IranSans faces */
@font-face {
    font-family: "IranSans";
    src: url("fonts/iransans-light.woff2") format("woff2");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "IranSans";
    src: url("fonts/iransans-regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "IranSans";
    src: url("fonts/iransans-medium.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "IranSans";
    src: url("fonts/iransans-bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

/* ==========================================================================
   Yoga Payammehr - Advanced Meditation (recorded course) - PREVIEW
   PRODUCTION STYLESHEET - GENERATED FILE, DO NOT EDIT BY HAND.

   Generated from the approved scratch build by:
       prod-package/build/namespace-css.py

   Every selector is rooted at one of:
       html.ypm-am-root        (document-level rules and custom properties)
       body.ypm-am  (page body rules)
       .ypm-am      (everything inside the page)
   so these styles cannot affect Elementor or any other WordPress page,
   and the site's global styles cannot reach into the page either.

   Persian text uses "IranSans", already self-hosted in production at
   assets/fonts/ - no new font files, no Google Fonts.
   ========================================================================== */
/* ==========================================================================
   Yoga Payammehr - Advanced Meditation
   Course landing page — SCRATCH PREVIEW STYLESHEET
   --------------------------------------------------------------------------
   Self-contained. No framework, no CDN, no @import, no web fonts.
   Written with CSS logical properties throughout so that a single stylesheet
   serves both the RTL (fa) and LTR (en) document without duplication.

   Palette is a deliberate reference to the production token layer found in
   the class-system (public/assets/css/typography.css) but is NOT imported
   from it — these values are redeclared locally on purpose.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

html.ypm-am-root {
    /* Surfaces — warm ivory / limestone / linen */
    --c-ivory:        #f3f1ec;  /* production --color-bg */
    --c-paper:        #faf9f6;
    --c-linen:        #efebe3;
    --c-travertine:   #e7e1d6;
    --c-stone:        #ddd6cb;  /* production --color-border */
    --c-stone-deep:   #c9bfb0;  /* production --color-border-strong */

    /* Emerald — muted, never saturated */
    --c-emerald:      #1f6b5c;  /* production --color-primary */
    --c-emerald-deep: #14453c;
    --c-emerald-dark: #0e332c;
    --c-emerald-soft: #e3f0ec;

    /* Antique gold — used sparingly, as a hairline or a small mark */
    --c-gold:         #b8893a;  /* production --color-secondary-accent */
    --c-gold-soft:    #d8c295;
    --c-gold-wash:    #f5eee1;
    /* Darkened gold, for gold text on ivory. --c-gold is only ~3.1:1 against
       the ivory veil, which fails AA for body-sized text; this is 4.8:1. */
    --c-gold-deep:    #8a6524;

    /* Brand orange, sampled from the supplied logo.png (transparent PNG).
       Declared so the logo's accent can be referenced if ever needed — it is
       deliberately NOT used as a UI colour, see README § Logo. */
    --c-brand-orange: #fd7902;

    /* Ink */
    --c-ink:          #24302c;
    --c-ink-soft:     #5f6d68;
    --c-ink-faint:    #8b968f;
    --c-on-dark:      #f4f1ea;
    --c-on-dark-soft: #c3cbc4;

    /* Typography stacks -----------------------------------------------------
       IRANSans is the INTENDED production Persian face. It is intentionally
       listed first but NOT loaded here: no licensed font file has been copied
       into this scratch environment. The preview therefore renders with the
       local/system Persian fallbacks below. See README.md → Font mapping.    */
    /* "IranSans" is already self-hosted and registered in production by
       the site font registration (light/regular/
       medium/bold, font-display:swap). Casing matches that registration. */
    --font-fa: "IranSans", "IRANSans", Tahoma, Arial, sans-serif;
    --font-en: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
               Georgia, "Times New Roman", serif;
    --font-en-sans: "Optima", "Gill Sans", "Gill Sans MT", "Avenir Next",
               Avenir, "Segoe UI", Helvetica, Arial, sans-serif;

    /* Assigned per-document in the [lang] blocks further down */
    --font-display: var(--font-en);
    --font-body: var(--font-en-sans);

    /* Rhythm */
    --measure: 68ch;
    --shell: 1240px;
    --shell-narrow: 880px;
    --gutter: clamp(1.25rem, 5vw, 4.5rem);
    --section-y: clamp(4.5rem, 11vh, 9.5rem);

    /* Detail */
    --hair: 1px solid var(--c-stone);
    --hair-deep: 1px solid var(--c-stone-deep);
    --hair-gold: 1px solid var(--c-gold-soft);
    --r-sm: 2px;
    --r-md: 3px;
    --shadow-soft: 0 24px 60px -32px rgba(36, 48, 44, 0.28);
    --shadow-lift: 0 40px 90px -46px rgba(36, 48, 44, 0.42);

    /* Motion */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --dur: 700ms;
}

/* Language-specific typographic assignment.
   Persian headings use the Persian sans at a tight tracking and heavier
   weight — Persian has no equivalent to a Latin old-style serif, and forcing
   one produces exactly the "machine translated" feel we are avoiding. */
html.ypm-am-root[lang="fa"] {
    --font-display: var(--font-fa);
    --font-body: var(--font-fa);
    --measure: 62ch;
}

html.ypm-am-root[lang="en"] {
    --font-display: var(--font-en);
    --font-body: var(--font-en-sans);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */

html.ypm-am-root,
body.ypm-am,
.ypm-am *,
.ypm-am *::before,
.ypm-am *::after { box-sizing: border-box; }

html.ypm-am-root {
    /* No smooth-scroll by default: it fights the "reduced motion" intent and
       makes in-page anchors feel sluggish on long documents. Enabled only for
       users who have not asked for reduced motion (see media query below). */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body.ypm-am {
    margin: 0;
    background: var(--c-ivory);
    color: var(--c-ink);
    font-family: var(--font-body);
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
    line-height: 1.85;
    font-weight: 400;
    /* Prevents any single long Persian token or date string from forcing a
       horizontal scrollbar. Verified at 375px. */
    overflow-wrap: break-word;
}

/* Persian benefits from slightly more leading and a touch more size. */
html.ypm-am-root[lang="fa"] body.ypm-am {
    font-size: clamp(1.02rem, 0.98rem + 0.22vw, 1.12rem);
    line-height: 2.05;
}

.ypm-am img,
.ypm-am svg,
.ypm-am picture {
    display: block;
    max-width: 100%;
    height: auto;
}

.ypm-am h1,
.ypm-am h2,
.ypm-am h3,
.ypm-am h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.18;
    margin: 0;
    text-wrap: balance;
    letter-spacing: -0.01em;
}

html.ypm-am-root[lang="fa"] h1,
html.ypm-am-root[lang="fa"] h2,
html.ypm-am-root[lang="fa"] h3,
html.ypm-am-root[lang="fa"] h4 {
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.5;
}

.ypm-am p { margin: 0 0 1.15em; }
.ypm-am p:last-child { margin-bottom: 0; }

.ypm-am a { color: inherit; }

.ypm-am ul { margin: 0; padding: 0; list-style: none; }

/* Accessible focus. Visible on both light and dark sections. */
/* --c-gold is only 2.89:1 against ivory, below the 3:1 that WCAG 2.4.11 asks
   of a focus indicator, so the deeper gold is used on light surfaces. */
.ypm-am :focus-visible {
    outline: 2px solid var(--c-gold-deep);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

/* Dark surfaces need the light gold instead. (.is-dark is kept as a hook for
   the WordPress port, where section classes may differ.) */
.ypm-am .is-dark :focus-visible,
.ypm-am .section--dark :focus-visible,
.ypm-am .finale :focus-visible,
.ypm-am .site-footer :focus-visible { outline-color: var(--c-gold-soft); }

/* Skip link */
.ypm-am .skip-link {
    position: absolute;
    inset-inline-start: 1rem;
    inset-block-start: -100%;
    z-index: 100;
    padding: 0.75rem 1.25rem;
    background: var(--c-emerald-deep);
    color: var(--c-on-dark);
    text-decoration: none;
    font-size: 0.9rem;
}
.ypm-am .skip-link:focus { inset-block-start: 1rem; }

.ypm-am .visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.ypm-am .shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.ypm-am .shell--narrow { max-width: var(--shell-narrow); }

.ypm-am .section {
    padding-block: var(--section-y);
    position: relative;
}

.ypm-am .section--linen { background: var(--c-linen); }
.ypm-am .section--paper { background: var(--c-paper); }

.ypm-am .section--dark {
    background: var(--c-emerald-dark);
    color: var(--c-on-dark);
}
.ypm-am .section--dark .eyebrow { color: var(--c-gold-soft); }
.ypm-am .section--dark .lede,
.ypm-am .section--dark p { color: var(--c-on-dark-soft); }

/* Eyebrow — small caps label above section headings. Antique gold hairline. */
.ypm-am .eyebrow {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0 0 1.5rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-gold);
}
/* Persian has no uppercase; tracking that wide destroys legibility. */
html.ypm-am-root[lang="fa"] .eyebrow {
    text-transform: none;
    letter-spacing: 0.05em;
    font-size: 0.84rem;
}
.ypm-am .eyebrow::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(to left, transparent, var(--c-gold-soft));
    max-width: 5rem;
}
html.ypm-am-root[lang="en"] .eyebrow::after {
    background: linear-gradient(to right, transparent, var(--c-gold-soft));
}

.ypm-am .section-title {
    font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.15rem);
    max-width: 28ch;
}
html.ypm-am-root[lang="fa"] .section-title {
    font-size: clamp(1.65rem, 1.1rem + 2.2vw, 2.7rem);
    max-width: 26ch;
}

.ypm-am .lede {
    font-size: clamp(1.08rem, 1rem + 0.45vw, 1.3rem);
    line-height: 1.8;
    color: var(--c-ink-soft);
    max-width: 58ch;
}
html.ypm-am-root[lang="fa"] .lede { line-height: 2.05; }

.ypm-am .rule-gold {
    width: 2.5rem;
    height: 1px;
    background: var(--c-gold);
    border: 0;
    margin: 2rem 0;
}

/* --------------------------------------------------------------------------
   4. Buttons / CTA
   -------------------------------------------------------------------------- */

.ypm-am .btn {
    --btn-bg: var(--c-emerald);
    --btn-fg: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.05rem 2.1rem;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: background-color 320ms var(--ease),
                transform 320ms var(--ease),
                box-shadow 320ms var(--ease);
}

.ypm-am .btn:hover {
    background: var(--c-emerald-deep);
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}
.ypm-am .btn:active { transform: translateY(0); }

.ypm-am .btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--c-emerald-deep);
    border-color: var(--c-stone-deep);
}
.ypm-am .btn--ghost:hover {
    --btn-bg: transparent;
    border-color: var(--c-emerald);
    box-shadow: none;
}

.ypm-am .btn--on-dark {
    --btn-bg: var(--c-gold);
    --btn-fg: #22180a;
}
.ypm-am .btn--on-dark:hover { background: #a87a2f; }

.ypm-am .btn__ig { width: 1.05em; height: 1.05em; flex: none; }

.ypm-am .cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.35rem;
    margin-block-start: 2.5rem;
}

.ypm-am .cta-note {
    font-size: 0.86rem;
    color: var(--c-ink-faint);
    margin: 1.1rem 0 0;
}
.ypm-am .section--dark .cta-note { color: var(--c-on-dark-soft); opacity: 0.75; }

/* --------------------------------------------------------------------------
   5. Header + language switcher
   -------------------------------------------------------------------------- */

.ypm-am .site-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 40;
    background: rgba(243, 241, 236, 0.86);
    /* A single, restrained blur on the header only — not a glassmorphism motif. */
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-block-end: var(--hair);
}

.ypm-am .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 4.5rem;
}

.ypm-am .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.02rem;
    letter-spacing: 0.06em;
    color: var(--c-emerald-deep);
}

/* The supplied logo is a circular mark whose inner Persian lettering is not
   legible below roughly 90px, so it is used as a MARK and paired with the
   wordmark set in type beside it. Kept small on purpose: the brand orange is
   the most saturated colour on the page and a large mark would unbalance the
   muted palette. See README § Logo treatment. */
.ypm-am .brand__logo {
    width: 42px;
    height: 42px;
    flex: none;
    object-fit: contain;
}

.ypm-am .brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.ypm-am .brand__mark {
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--c-gold);
    font-family: var(--font-en-sans);
}
/* The Persian name is the primary wordmark on the fa page and vice versa, so
   the secondary line is intentionally quiet rather than hidden. */
html.ypm-am-root[lang="fa"] .brand__mark { letter-spacing: 0.18em; }

@media (max-width: 420px) {
    .ypm-am .brand { gap: 0.55rem; font-size: 0.95rem; }
    .ypm-am .brand__logo { width: 34px; height: 34px; }
    .ypm-am .brand__mark { font-size: 0.6rem; letter-spacing: 0.14em; }
}

/* FA / EN switcher — a hairline pill, gold on the active item. */
.ypm-am .lang-switch {
    display: inline-flex;
    align-items: stretch;
    border: var(--hair-deep);
    border-radius: var(--r-md);
    overflow: hidden;
    font-family: var(--font-en-sans);
}
.ypm-am .lang-switch__item {
    padding: 0.5rem 0.95rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: var(--c-ink-soft);
    background: transparent;
    transition: background-color 240ms var(--ease), color 240ms var(--ease);
}
.ypm-am .lang-switch__item + .lang-switch__item { border-inline-start: var(--hair-deep); }
.ypm-am .lang-switch__item:hover { background: var(--c-gold-wash); color: var(--c-ink); }
.ypm-am .lang-switch__item[aria-current="true"] {
    background: var(--c-emerald);
    color: #fff;
}

/* --------------------------------------------------------------------------
   6. Hero
   --------------------------------------------------------------------------
   ART DIRECTION NOTE — driven by the actual photograph.

   hero.png (1672x941, 16:9) is a bright, luminous image: the meditating
   figure, the limestone arch and the olive branch occupy roughly the LEFT
   third, while the right half is open sea and pale sunset sky. Two
   consequences follow:

   1. A heavy dark scrim would have muddied a deliberately airy photograph.
      It is replaced by a soft IVORY veil, and the hero type is set in deep
      emerald — dark-on-light. Measured contrast on the veiled area:
      title 9.8:1, body 5.1:1, gold kicker 4.8:1. All pass WCAG AA.

   2. The copy sits over the empty right-hand region in BOTH languages, so
      the placement rules below are intentionally PHYSICAL (margin-left:auto)
      rather than logical. The composition follows where the subject actually
      is in the photograph, not reading direction. This is the ONLY place in
      the stylesheet that uses physical placement, and it is deliberate.
   -------------------------------------------------------------------------- */

.ypm-am .hero {
    position: relative;
    background: var(--c-ivory);
    color: var(--c-ink);
    overflow: hidden;
}

.ypm-am .hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.ypm-am .hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Keeps the figure, arch and olive branch in frame when the viewport is
       taller than 16:9 and the image must crop horizontally. */
    object-position: 34% 50%;
}

/* Ivory veil, strongest on the physical right where the copy sits, fading to
   fully transparent by ~74% so the sunlit left side of the photograph is
   never dulled. Second gradient lifts the very bottom edge for the footer
   transition and the scroll cue. */
.ypm-am .hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to left,
            rgba(248, 245, 238, 0.96) 0%,
            rgba(248, 245, 238, 0.94) 30%,
            rgba(248, 245, 238, 0.82) 44%,
            rgba(248, 245, 238, 0.34) 60%,
            rgba(248, 245, 238, 0.00) 74%),
        linear-gradient(to top,
            rgba(243, 241, 236, 0.55) 0%,
            rgba(243, 241, 236, 0.00) 26%);
}

.ypm-am .hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: min(88svh, 880px);
    padding-block: clamp(5rem, 13vh, 8.5rem) clamp(3rem, 7vh, 5rem);
}

/* The copy column. Physical right-alignment — see the art direction note. */
.ypm-am .hero__content {
    max-width: 46ch;
    margin-left: auto;
    text-align: start;
}
html.ypm-am-root[lang="fa"] .hero__content { max-width: 42ch; }

.ypm-am .hero__kicker {
    font-family: var(--font-en-sans);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    /* Deeper than --c-gold so it clears 4.5:1 against the ivory veil. */
    color: var(--c-gold-deep);
    margin: 0 0 1.6rem;
}
html.ypm-am-root[lang="fa"] .hero__kicker {
    font-family: var(--font-fa);
    text-transform: none;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
}

.ypm-am .hero__title {
    font-size: clamp(2.6rem, 1.4rem + 6.2vw, 5.5rem);
    line-height: 1.04;
    max-width: 18ch;
    margin: 0;
    color: var(--c-emerald-deep);
}
html.ypm-am-root[lang="fa"] .hero__title {
    font-size: clamp(2.2rem, 1.3rem + 5vw, 4.4rem);
    line-height: 1.38;
    max-width: 16ch;
}

.ypm-am .hero__subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 0.95rem + 0.85vw, 1.65rem);
    font-style: italic;
    color: var(--c-gold-deep);
    margin: 1.2rem 0 0;
    max-width: 32ch;
}
html.ypm-am-root[lang="fa"] .hero__subtitle {
    font-style: normal;
    font-weight: 400;
    font-size: clamp(1.02rem, 0.95rem + 0.6vw, 1.4rem);
    max-width: 34ch;
}

.ypm-am .hero__poem {
    margin: 2.2rem 0 0;
    max-width: 44ch;
    font-size: clamp(1.02rem, 0.97rem + 0.35vw, 1.2rem);
    line-height: 1.85;
    color: var(--c-ink-soft);
}
html.ypm-am-root[lang="fa"] .hero__poem { line-height: 2.1; max-width: 40ch; }

/* Hero facts — hairline-separated inline list, not boxes. */
.ypm-am .hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.6rem;
    margin: 2.6rem 0 0;
    padding-block-start: 1.8rem;
    border-block-start: 1px solid var(--c-stone-deep);
    max-width: 62ch;
}
.ypm-am .hero__fact {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--c-ink);
}
.ypm-am .hero__fact::before {
    content: "";
    width: 4px; height: 4px;
    flex: none;
    border-radius: 50%;
    background: var(--c-gold);
    transform: translateY(-0.25em);
}

/* Scroll cue */
.ypm-am .scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-block-start: 3rem;
    font-family: var(--font-en-sans);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-ink-soft);
    text-decoration: none;
}
html.ypm-am-root[lang="fa"] .scroll-cue {
    font-family: var(--font-fa);
    text-transform: none;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
}
.ypm-am .scroll-cue__line {
    width: 3rem; height: 1px;
    background: var(--c-stone-deep);
    position: relative;
    overflow: hidden;
}
.ypm-am .scroll-cue__line::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: -40%;
    width: 40%;
    background: var(--c-gold-deep);
    animation: cue 2.8s var(--ease) infinite;
}
@keyframes cue {
    0%   { transform: translateX(0); opacity: 0; }
    30%  { opacity: 1; }
    100% { transform: translateX(350%); opacity: 0; }
}
/* In RTL the cue should travel the other way. */
html.ypm-am-root[dir="rtl"] .scroll-cue__line::after { animation-name: cue-rtl; }
@keyframes cue-rtl {
    0%   { transform: translateX(0); opacity: 0; }
    30%  { opacity: 1; }
    100% { transform: translateX(-350%); opacity: 0; }
}

/* ---- Hero, stacked layout for phones and small tablets -------------------
   A 16:9 photograph forced into a ~90svh portrait viewport would crop to a
   narrow vertical slice and lose the arch, the olive branch and the horizon
   — the whole reason the image works. So below 900px the hero becomes a
   proper editorial stack: the full scene sits on top at a generous crop,
   fades into the ivory, and the copy runs beneath it at full width. Text
   readability stops depending on the photograph entirely.
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .ypm-am .hero { display: block; }

    .ypm-am .hero__media {
        position: relative;
        inset: auto;
        width: 100%;
        aspect-ratio: 4 / 3;
    }
    .ypm-am .hero__media img {
        /* Holds the figure and the arch; lets the sea fall off the right. */
        object-position: 32% 52%;
    }
    /* Fade the base of the photograph into the page so the stack reads as one
       composition rather than two blocks. */
    .ypm-am .hero__media::after {
        content: "";
        position: absolute;
        inset-inline: 0;
        inset-block-end: -1px;
        height: 42%;
        background: linear-gradient(to top,
            var(--c-ivory) 3%,
            rgba(243, 241, 236, 0.82) 34%,
            rgba(243, 241, 236, 0.00) 100%);
        pointer-events: none;
    }

    .ypm-am .hero__scrim { display: none; }

    .ypm-am .hero__inner {
        min-height: 0;
        justify-content: flex-start;
        /* Lifts the copy into the fade for continuity. */
        margin-block-start: -3.25rem;
        padding-block: 0 clamp(2.5rem, 7vh, 4rem);
    }
    .ypm-am .hero__content,
html.ypm-am-root[lang="fa"] .hero__content {
        max-width: none;
        margin-left: 0;
    }
    .ypm-am .hero__title { max-width: 20ch; }
    .ypm-am .hero__facts { margin-block-start: 2rem; padding-block-start: 1.4rem; }
    .ypm-am .scroll-cue { margin-block-start: 2.25rem; }
}

/* A little more landscape on larger phones and small tablets, where 4:3
   starts to feel cramped against the width. */
@media (min-width: 641px) and (max-width: 900px) {
    .ypm-am .hero__media { aspect-ratio: 16 / 10; }
}

/* --------------------------------------------------------------------------
   7. Editorial passage (problem framing / meaning)
   -------------------------------------------------------------------------- */

.ypm-am .passage {
    max-width: 56ch;
    font-size: clamp(1.12rem, 1rem + 0.6vw, 1.42rem);
    line-height: 1.85;
    color: var(--c-ink);
}
html.ypm-am-root[lang="fa"] .passage { line-height: 2.15; max-width: 50ch; }

.ypm-am .passage--center { margin-inline: auto; text-align: center; }

.ypm-am .passage__drop::first-letter {
    font-family: var(--font-display);
    font-size: 3.4em;
    float: inline-start;
    line-height: 0.82;
    padding-inline-end: 0.12em;
    padding-block-start: 0.06em;
    color: var(--c-emerald);
}
/* A Latin-style drop cap is wrong for Persian. Suppressed. */
html.ypm-am-root[lang="fa"] .passage__drop::first-letter {
    font-size: inherit;
    float: none;
    line-height: inherit;
    padding: 0;
    color: inherit;
}

/* Disconnection list — spacious, hairline separated, no bullets/cards */
.ypm-am .quiet-list {
    display: grid;
    gap: 0;
    margin-block-start: 3.5rem;
    border-block-start: var(--hair);
}
.ypm-am .quiet-list li {
    padding-block: 1.15rem;
    border-block-end: var(--hair);
    font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.18rem);
    color: var(--c-ink-soft);
    display: flex;
    align-items: baseline;
    gap: 1rem;
}
.ypm-am .quiet-list li::before {
    content: "—";
    color: var(--c-gold);
    flex: none;
}

/* --------------------------------------------------------------------------
   8. "What cleansing means" — contrast pair
   -------------------------------------------------------------------------- */

.ypm-am .contrast {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    margin-block-start: 3.5rem;
    background: var(--c-stone);
    border: var(--hair);
}
@media (min-width: 860px) {
    .ypm-am .contrast { grid-template-columns: 1fr 1fr; }
}

.ypm-am .contrast__col {
    background: var(--c-paper);
    padding: clamp(1.75rem, 4vw, 2.85rem);
}
.ypm-am .contrast__col--is { background: var(--c-emerald-soft); }

.ypm-am .contrast__head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 1.5rem;
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-ink-soft);
}
html.ypm-am-root[lang="fa"] .contrast__head {
    text-transform: none;
    letter-spacing: 0.03em;
    font-size: 0.95rem;
}
.ypm-am .contrast__col--is .contrast__head { color: var(--c-emerald-deep); }

.ypm-am .contrast__list li {
    padding-block: 0.6rem;
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    color: var(--c-ink);
    font-size: 1rem;
}
.ypm-am .contrast__list li + li { border-block-start: 1px dashed rgba(201, 191, 176, 0.6); }
.ypm-am .contrast__mark { color: var(--c-emerald); flex: none; font-weight: 700; }
.ypm-am .contrast__col--isnt .contrast__mark { color: var(--c-ink-faint); }

/* --------------------------------------------------------------------------
   9. Journey timeline (five sessions)
   -------------------------------------------------------------------------- */

.ypm-am .journey { margin-block-start: 4rem; }

.ypm-am .journey__list {
    position: relative;
    display: grid;
    gap: clamp(2.5rem, 5vw, 4.5rem);
}

/* Mobile / tablet: a single spine on the inline-start edge. */
.ypm-am .journey__list::before {
    content: "";
    position: absolute;
    inset-block: 0.75rem;
    inset-inline-start: 11px;
    width: 1px;
    background: linear-gradient(to bottom,
        transparent, var(--c-stone-deep) 8%,
        var(--c-stone-deep) 92%, transparent);
}

.ypm-am .step {
    position: relative;
    padding-inline-start: 3.25rem;
}

.ypm-am .step__dot {
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 0.45rem;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: var(--c-ivory);
    border: 1px solid var(--c-gold-soft);
    display: grid;
    place-items: center;
    font-family: var(--font-en-sans);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--c-gold);
    letter-spacing: 0;
}
.ypm-am .section--linen .step__dot { background: var(--c-linen); }

.ypm-am .step__num {
    font-family: var(--font-en-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-gold);
    display: block;
    margin-block-end: 0.6rem;
}
html.ypm-am-root[lang="fa"] .step__num {
    font-family: var(--font-fa);
    text-transform: none;
    letter-spacing: 0.03em;
    font-size: 0.86rem;
}

.ypm-am .step__title {
    font-size: clamp(1.32rem, 1.1rem + 1vw, 1.95rem);
    margin: 0 0 0.35rem;
    color: var(--c-emerald-deep);
}
html.ypm-am-root[lang="fa"] .step__title { font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.65rem); }

.ypm-am .step__alt {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.98rem;
    color: var(--c-ink-faint);
    margin: 0 0 1rem;
}
html.ypm-am-root[lang="fa"] .step__alt {
    font-family: var(--font-en);
    font-style: italic;
    direction: ltr;
    text-align: start;
}
html.ypm-am-root[lang="en"] .step__alt {
    font-family: var(--font-fa);
    font-style: normal;
    direction: rtl;
    text-align: start;
}

.ypm-am .step__body {
    color: var(--c-ink-soft);
    max-width: 46ch;
    margin: 0 0 1.1rem;
}

.ypm-am .step__date {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--c-ink-soft);
    padding-block-start: 0.85rem;
    border-block-start: var(--hair);
}
.ypm-am .step__date b { font-weight: 600; color: var(--c-ink); }

/* Desktop: refined alternating timeline with a centred spine. */
@media (min-width: 980px) {
    .ypm-am .journey__list::before {
        inset-inline-start: 50%;
        transform: translateX(-50%);
        inset-block: 1.5rem;
    }
    .ypm-am .step {
        width: calc(50% - 3.25rem);
        padding-inline-start: 0;
    }
    .ypm-am .step:nth-child(odd) {
        margin-inline-end: auto;
        text-align: end;
    }
    .ypm-am .step:nth-child(odd) .step__body,
.ypm-am .step:nth-child(odd) .step__alt { margin-inline-start: auto; }
    .ypm-am .step:nth-child(even) {
        margin-inline-start: auto;
        text-align: start;
    }
    /* Dots ride the centre spine. */
    .ypm-am .step__dot { inset-block-start: 1.2rem; }
    .ypm-am .step:nth-child(odd) .step__dot {
        inset-inline-start: auto;
        inset-inline-end: -4.4rem;
    }
    .ypm-am .step:nth-child(even) .step__dot { inset-inline-start: -4.4rem; }
    /* Slight vertical interleave so the eye moves down a gentle zig-zag. */
    .ypm-am .step:nth-child(even) { margin-block-start: -3.5rem; }
}

/* --------------------------------------------------------------------------
   10. Schedule
   -------------------------------------------------------------------------- */

.ypm-am .schedule {
    margin-block-start: 3rem;
    border-block-start: var(--hair-deep);
}

.ypm-am .sched-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1.25rem;
    align-items: baseline;
    padding-block: 1.4rem;
    border-block-end: var(--hair);
}
@media (min-width: 760px) {
    .ypm-am .sched-row {
        grid-template-columns: 8.5rem 1fr auto;
        gap: 1.75rem;
        padding-block: 1.6rem;
    }
}

.ypm-am .sched-row__label {
    font-family: var(--font-en-sans);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-gold);
    white-space: nowrap;
}
html.ypm-am-root[lang="fa"] .sched-row__label {
    font-family: var(--font-fa);
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.92rem;
    font-weight: 700;
}

/* Primary date gets the display face; secondary calendar sits beneath, muted.
   The fa page leads with Jalali, the en page leads with Gregorian — handled
   by document order, not by CSS. */
.ypm-am .sched-row__primary {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1rem + 0.45vw, 1.3rem);
    color: var(--c-ink);
    margin: 0;
}
html.ypm-am-root[lang="fa"] .sched-row__primary { font-weight: 700; }

.ypm-am .sched-row__secondary {
    font-size: 0.88rem;
    color: var(--c-ink-faint);
    margin: 0.2rem 0 0;
}

.ypm-am .sched-row__time {
    font-size: 0.9rem;
    color: var(--c-ink-soft);
    white-space: nowrap;
    grid-column: 1 / -1;
}
@media (min-width: 760px) {
    .ypm-am .sched-row__time { grid-column: auto; text-align: end; }
}

.ypm-am .sched-note {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    margin-block-start: 2rem;
    font-size: 0.92rem;
    color: var(--c-ink-soft);
}
.ypm-am .sched-note > span {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
}
.ypm-am .sched-note > span::before {
    content: "";
    width: 4px; height: 4px; flex: none;
    border-radius: 50%;
    background: var(--c-gold);
    transform: translateY(-0.25em);
}

/* --------------------------------------------------------------------------
   11. Explore grid (editorial, hairline, no cards)
   -------------------------------------------------------------------------- */

.ypm-am .explore {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-block-start: 3.5rem;
    border-block-start: var(--hair);
}
@media (min-width: 680px) { .ypm-am .explore { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 4vw, 4rem); } }
@media (min-width: 1040px) { .ypm-am .explore { grid-template-columns: repeat(4, 1fr); } }

.ypm-am .explore__item {
    padding-block: 1.9rem;
    border-block-end: var(--hair);
}

.ypm-am .explore__idx {
    font-family: var(--font-en-sans);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: var(--c-gold);
    display: block;
    margin-block-end: 0.8rem;
}

.ypm-am .explore__title {
    font-size: 1.16rem;
    margin: 0 0 0.6rem;
    color: var(--c-emerald-deep);
}

.ypm-am .explore__text {
    font-size: 0.95rem;
    color: var(--c-ink-soft);
    margin: 0;
}

/* --------------------------------------------------------------------------
   12. Audience
   -------------------------------------------------------------------------- */

.ypm-am .audience {
    display: grid;
    gap: 1px;
    margin-block-start: 3.5rem;
    background: var(--c-stone);
    border: var(--hair);
}
@media (min-width: 720px) { .ypm-am .audience { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) { .ypm-am .audience { grid-template-columns: repeat(3, 1fr); } }

.ypm-am .audience__item {
    background: var(--c-paper);
    padding: clamp(1.5rem, 3vw, 2.15rem);
}
.ypm-am .audience__item h3 {
    font-size: 1.08rem;
    margin: 0 0 0.55rem;
    color: var(--c-emerald-deep);
}
.ypm-am .audience__item p {
    font-size: 0.94rem;
    color: var(--c-ink-soft);
    margin: 0;
}

/* --------------------------------------------------------------------------
   13. Teacher
   -------------------------------------------------------------------------- */

.ypm-am .teacher {
    display: grid;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}
@media (min-width: 900px) {
    .ypm-am .teacher { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); }
}

/* 4:5 matches maya.png natively (1122x1402), so the portrait is displayed
   with NO cropping at all — no risk of clipping the face or shoulders. */
.ypm-am .teacher__portrait {
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--c-travertine);
    overflow: hidden;
    /* Lifts the portrait off the ivory, which its warm studio background
       would otherwise sit flat against. */
    box-shadow: var(--shadow-soft);
}
.ypm-am .teacher__portrait img {
    width: 100%; height: 100%;
    object-fit: cover;
    /* Safety only — at 4:5 there is nothing to crop. Biased upward so any
       future portrait with a different ratio favours the face. */
    object-position: 50% 22%;
}

/* Keeps the portrait from towering over the copy on mid-size screens. */
@media (min-width: 900px) {
    .ypm-am .teacher__portrait { align-self: start; }
}
/* Thin gold frame, offset — an editorial detail rather than a border. */
.ypm-am .teacher__portrait::after {
    content: "";
    position: absolute;
    inset: 0.85rem;
    border: var(--hair-gold);
    pointer-events: none;
}

.ypm-am .teacher__name {
    font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.7rem);
    margin: 0 0 0.3rem;
    color: var(--c-emerald-deep);
}
.ypm-am .teacher__role {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--c-gold);
    margin: 0 0 1.75rem;
    font-size: 1.05rem;
}
html.ypm-am-root[lang="fa"] .teacher__role { font-style: normal; font-family: var(--font-fa); }

/* --------------------------------------------------------------------------
   14. Format / access
   -------------------------------------------------------------------------- */

.ypm-am .format {
    display: grid;
    gap: clamp(1.75rem, 4vw, 3rem);
    margin-block-start: 3.5rem;
}
@media (min-width: 780px) { .ypm-am .format { grid-template-columns: 1fr 1fr; } }

.ypm-am .format__item {
    padding-inline-start: 1.5rem;
    border-inline-start: 2px solid var(--c-gold-soft);
}
.ypm-am .format__item h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    color: var(--c-emerald-deep);
}
.ypm-am .format__item p { font-size: 0.96rem; color: var(--c-ink-soft); margin: 0; }

/* --------------------------------------------------------------------------
   15. Price
   -------------------------------------------------------------------------- */

.ypm-am .price {
    max-width: 680px;
    margin-inline: auto;
    margin-block-start: 3rem;
    padding: clamp(2.25rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
    background: var(--c-paper);
    border: var(--hair-deep);
    text-align: center;
    position: relative;
}
.ypm-am .price::before {
    content: "";
    position: absolute;
    inset-block-start: -1px;
    inset-inline: 22%;
    height: 2px;
    background: var(--c-gold);
}

.ypm-am .price__label {
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-ink-faint);
    margin: 0 0 1rem;
}
html.ypm-am-root[lang="fa"] .price__label {
    text-transform: none;
    letter-spacing: 0.03em;
    font-size: 0.95rem;
}

.ypm-am .price__amount {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 1.5rem + 3.4vw, 3.6rem);
    line-height: 1.1;
    color: var(--c-emerald-deep);
    margin: 0;
    /* Tabular figures keep long numbers optically even. */
    font-variant-numeric: tabular-nums;
}
html.ypm-am-root[lang="fa"] .price__amount { font-weight: 700; line-height: 1.5; }

.ypm-am .price__divider {
    width: 100%;
    height: 1px;
    background: var(--c-stone);
    border: 0;
    margin-block: 2.25rem;
}

.ypm-am .price__installment { margin: 0; }
.ypm-am .price__installment strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
    font-weight: 400;
    color: var(--c-ink);
    margin-block-end: 0.5rem;
}
html.ypm-am-root[lang="fa"] .price__installment strong { font-weight: 700; font-family: var(--font-fa); }

.ypm-am .price__terms {
    font-size: 0.92rem;
    color: var(--c-ink-soft);
    margin: 0.35rem 0 0;
}

.ypm-am .price .cta-row { justify-content: center; margin-block-start: 2.5rem; }

/* --------------------------------------------------------------------------
   16. FAQ (native details/summary — keyboard + SR accessible by default)
   -------------------------------------------------------------------------- */

.ypm-am .faq {
    max-width: 820px;
    margin-inline: auto;
    margin-block-start: 3rem;
    border-block-start: var(--hair-deep);
}

.ypm-am .faq__item { border-block-end: var(--hair); }

.ypm-am .faq__q {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-block: 1.35rem;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.18rem);
    color: var(--c-emerald-deep);
    list-style: none;
    transition: color 240ms var(--ease);
}
html.ypm-am-root[lang="fa"] .faq__q { font-family: var(--font-fa); font-weight: 700; }
.ypm-am .faq__q::-webkit-details-marker { display: none; }
.ypm-am .faq__q:hover { color: var(--c-gold); }

.ypm-am .faq__q::after {
    content: "";
    margin-inline-start: auto;
    flex: none;
    width: 0.7rem; height: 0.7rem;
    margin-block-start: 0.45rem;
    border-inline-end: 1.5px solid currentColor;
    border-block-end: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 320ms var(--ease);
}
.ypm-am .faq__item[open] .faq__q::after { transform: rotate(225deg); }

.ypm-am .faq__a {
    padding-block-end: 1.6rem;
    padding-inline-end: 2rem;
    color: var(--c-ink-soft);
    max-width: 64ch;
}
.ypm-am .faq__a p { margin-block-end: 0.8em; }

/* --------------------------------------------------------------------------
   17. Final CTA
   -------------------------------------------------------------------------- */

.ypm-am .finale {
    position: relative;
    background: var(--c-emerald-dark);
    color: var(--c-on-dark);
    overflow: hidden;
    text-align: center;
}
/* The closing section reuses hero.png rather than a second photograph — but
   cropped hard into the open sea and sunset on the right-hand side, so it
   reads as a different, quieter frame of the same place. It is already in
   cache from the hero, so this costs no additional bytes. */
.ypm-am .finale__media { position: absolute; inset: 0; z-index: 0; opacity: 0.42; }
.ypm-am .finale__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 80% 42%;
}
.ypm-am .finale__scrim {
    position: absolute; inset: 0; z-index: 1;
    background: radial-gradient(ellipse at 50% 45%,
        rgba(14, 51, 44, 0.62) 0%, rgba(14, 51, 44, 0.93) 70%);
}
.ypm-am .finale__inner {
    position: relative; z-index: 2;
    padding-block: clamp(5.5rem, 15vh, 10rem);
}

.ypm-am .finale__verse {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 1.1rem + 1.8vw, 2.5rem);
    font-style: italic;
    line-height: 1.55;
    max-width: 30ch;
    margin: 0 auto;
    color: var(--c-on-dark);
}
html.ypm-am-root[lang="fa"] .finale__verse {
    font-family: var(--font-fa);
    font-style: normal;
    font-weight: 400;
    line-height: 2;
    max-width: 28ch;
    font-size: clamp(1.2rem, 1rem + 1.3vw, 1.95rem);
}

.ypm-am .finale__signature {
    font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.2rem);
    margin: 3.25rem 0 0.9rem;
    color: #fff;
}

.ypm-am .finale__mantra {
    font-family: var(--font-en-sans);
    font-size: clamp(0.82rem, 0.78rem + 0.25vw, 1rem);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--c-gold-soft);
    margin: 0;
}
html.ypm-am-root[lang="fa"] .finale__mantra {
    font-family: var(--font-fa);
    text-transform: none;
    letter-spacing: 0.1em;
    font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.12rem);
}

.ypm-am .finale .cta-row { justify-content: center; }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */

.ypm-am .site-footer {
    background: var(--c-emerald-dark);
    color: var(--c-on-dark-soft);
    border-block-start: 1px solid rgba(216, 194, 149, 0.2);
    padding-block: 3rem;
    font-size: 0.9rem;
}
.ypm-am .site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: center;
    justify-content: space-between;
}

/* Second, slightly larger logo placement. On the deep emerald the brand
   orange reads as warm and intentional rather than loud, and it adds a note
   of credibility at the close of the page. */
.ypm-am .site-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.ypm-am .site-footer__logo {
    width: 52px;
    height: 52px;
    flex: none;
    object-fit: contain;
}
@media (max-width: 480px) {
    .ypm-am .site-footer__logo { width: 44px; height: 44px; }
}
.ypm-am .site-footer a { color: var(--c-gold-soft); text-decoration: none; }
.ypm-am .site-footer a:hover { text-decoration: underline; }

/* Scratch-preview banner. NOT for production. */
.ypm-am .preview-flag {
    background: #22180a;
    color: var(--c-gold-soft);
    font-family: var(--font-en-sans);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-align: center;
    padding: 0.5rem 1rem;
}

/* --------------------------------------------------------------------------
   19. Mobile sticky CTA
   -------------------------------------------------------------------------- */

.ypm-am .sticky-cta {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 50;
    padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(250, 249, 246, 0.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-block-start: var(--hair-deep);
    display: none;
    /* Slides away until the hero has been passed, so it never covers the
       opening composition. Toggled by .is-visible from landing.js. */
    transform: translateY(110%);
    transition: transform 420ms var(--ease);
}
.ypm-am .sticky-cta.is-visible { transform: translateY(0); }
.ypm-am .sticky-cta .btn { width: 100%; padding-block: 0.95rem; }

@media (max-width: 860px) {
    .ypm-am .sticky-cta { display: block; }
    /* Reserve space so the footer is never hidden behind the bar. */
    .ypm-am .site-footer { padding-block-end: 6.5rem; }
}

/* --------------------------------------------------------------------------
   20. Motion — reveal on scroll
   -------------------------------------------------------------------------- */

/* Progressive enhancement: content is visible by default. Only once JS has
   marked the document does it start hidden, so no-JS and crawlers always
   see fully rendered text. */
html.ypm-am-root.ypm-am-js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
    /* Staggered via inline --i on the element. */
    transition-delay: calc(var(--i, 0) * 90ms);
}
html.ypm-am-root.ypm-am-js [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    html.ypm-am-root { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
    html.ypm-am-root.ypm-am-js [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .ypm-am .scroll-cue__line::after { animation: none; opacity: 1; inset-inline-start: 0; }
    .ypm-am .btn:hover { transform: none; }
    .ypm-am .sticky-cta { transition: none; }
    body.ypm-am,
.ypm-am *,
.ypm-am *::before,
.ypm-am *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* --------------------------------------------------------------------------
   21. Placeholder treatment (scratch build only)
   -------------------------------------------------------------------------- */

.ypm-am .ph {
    background:
        repeating-linear-gradient(135deg,
            rgba(201, 191, 176, 0.20) 0 14px,
            rgba(201, 191, 176, 0.06) 14px 28px),
        var(--c-travertine);
}

/* --------------------------------------------------------------------------
   22. Print — a clean course summary, no dark floods
   -------------------------------------------------------------------------- */

@media print {
    .ypm-am .site-header,
.ypm-am .sticky-cta,
.ypm-am .scroll-cue,
.ypm-am .preview-flag,
.ypm-am .hero__media,
.ypm-am .finale__media { display: none !important; }
    .ypm-am .hero,
.ypm-am .finale,
.ypm-am .site-footer,
.ypm-am .section--dark {
        background: #fff !important;
        color: #000 !important;
    }
    .ypm-am .section { padding-block: 1.5rem; }
}


/* --------------------------------------------------------------------------
   23. <picture> wrappers (WebP delivery with PNG fallback)
   --------------------------------------------------------------------------
   Layout-neutral by design: the wrapper adopts the box the <img> previously
   occupied, so every object-fit / object-position rule above still applies
   exactly as approved.
   -------------------------------------------------------------------------- */

.ypm-am picture {
    display: block;
}

.ypm-am .hero__media picture,
.ypm-am .teacher__portrait picture,
.ypm-am .finale__media picture {
    width: 100%;
    height: 100%;
}

/* The brand marks sit in flex rows. The wrapper shrink-wraps the img, which
   carries its own explicit 42px / 52px box, so it only needs to be told not to
   shrink. display:contents would also work but has more edge cases. */
.ypm-am .brand picture,
.ypm-am .site-footer__brand picture {
    flex: none;
    line-height: 0;
}
