/* ============================================================
   In-person learning — page-specific visuals only.
   Typography, buttons, spacing all come from get-started.css
   (.gs-page). This file sets the page accent (the training blue)
   and styles the orbit field + periodic-table tiles.
   ============================================================ */

/* This page's accent is the blue used for the "training" section
   on the Get Started page (--gs-c-training). Override the shared
   accent tokens so buttons, eyebrow, rings and tiles all pick it up. */
.ipl-page {
    --gs-accent: #38bdf8;
    --gs-accent-dark: #0ea5e9;
    --ipl-accent-rgb: 56, 189, 248;
}

/* Sentence-reveal lines on the levels intro blurb. */
.ipl-levels__blurb .ipl-line { display: block; }

/* Full-height hero; content sits toward the top, orbits fill the lower half. */
.ipl-hero {
    min-height: 62vh;
    align-items: flex-start;
    isolation: isolate;   /* hero is the stacking context, so the ghost's
                             z-index:-1 sits above the hero bg, behind the orbit */
    padding-block: clamp(8rem, 16vh, 11rem) clamp(3rem, 7vw, 5rem);
    background:
        radial-gradient(900px 520px at 50% -10%, rgba(56, 189, 248, 0.16), transparent 60%),
        var(--gs-bg);
}

/* Oversized blurred ghost of the hero title: 300% of the title size, low in
   the hero, blurred, two shades lighter than the bg, behind the orbit. */
.ipl-hero__ghost {
    display: none;   /* hidden for now */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);   /* centred in the hero, both axes */
    z-index: -1;                /* behind the orbit (hero is the stacking context) */
    width: max-content;
    max-width: 96vw;
    margin: 0;
    text-align: center;
    pointer-events: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.03em;
    white-space: nowrap;        /* keep it to two lines (only the <br> breaks) */
    font-size: clamp(2rem, 10vw, 11rem);   /* sized to fit the hero width */
    color: var(--gs-surface);   /* two shades lighter than --gs-bg */
    opacity: 0.5;               /* fainter ghost */
    filter: blur(5px);
}

/* Flat orbit field anchored to the bottom of the hero; only the top
   half of each circle is visible (centres sit on the bottom edge). */
.ipl-orbits {
    display: none;   /* orbit + elements hidden for now */
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(1600px, 140vw);
    height: auto;
    z-index: 0;
    pointer-events: none;
    /* Fade rings/tiles out toward the top + far edges so they dissolve off-frame. */
    -webkit-mask-image: radial-gradient(125% 120% at 50% 100%, #000 46%, transparent 90%);
            mask-image: radial-gradient(125% 120% at 50% 100%, #000 46%, transparent 90%);
}

.ipl-orbit {
    fill: none;
    stroke: var(--gs-accent);
    stroke-width: 1.25;
    opacity: 0.11;
    vector-effect: non-scaling-stroke;
}

/* ---- Periodic-table element tiles (placeholder content) ---- */
.ipl-tile {
    opacity: 0.5;   /* fainter orbit elements */
    filter: drop-shadow(0 3px 12px rgba(56, 189, 248, 0.22));
}

.ipl-tile__box {
    fill: rgba(56, 189, 248, 0.07);
    stroke: var(--gs-accent);
    stroke-width: 1.25;
    vector-effect: non-scaling-stroke;
}

.ipl-tile__sym {
    fill: var(--gs-text);
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Kept small enough that the longest name (Collaboration) stays inside the box. */
.ipl-tile__name {
    fill: var(--gs-text-dim);
    font-family: 'Outfit', sans-serif;
    font-size: 6px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ipl-tile__num {
    fill: var(--gs-accent);
    font-family: 'Outfit', sans-serif;
    font-size: 9px;
    font-weight: 600;
}

/* Centre the hero copy + actions, consistent with the Get Started hero. */
.ipl-hero .gs-hero__actions { justify-content: center; }
.ipl-hero .gs-hero__sub { margin-inline: auto; }

/* "See what we cover" — frosted glass: the orbit field behind the button
   shows through, blurred (mirrored backdrop) with a subtle top sheen. */
.ipl-hero .gs-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
            backdrop-filter: blur(14px) saturate(150%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.ipl-hero .gs-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.32);
}

/* Primary-button hover label (darker shade of the accent) is handled
   globally in get-started.css now, so no page-specific override needed. */

/* Hero title colour-block fill (same treatment as the workflow page, in blues):
   flat fields of four blues with clean hard edges, per line (the title wraps
   with a <br>, so each line carries its own overlay). The theme blue is the
   DARKEST shade; boundaries glide with the cursor while it's in the hero. */
.ipl-fxline { position: relative; display: inline-block; }
.ipl-fxline::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background:
        /* theme blue (darkest) — small diagonal block, lower left */
        linear-gradient(115deg,
            #38bdf8 0%, #38bdf8 var(--b1, 22%), rgba(56, 189, 248, 0) var(--b1, 22%)),
        /* sky arc dipping in from the top */
        radial-gradient(circle 300px at var(--c1, 30%) -180px,
            #7dd3fc 0% 62%, rgba(125, 211, 252, 0) 62%),
        /* light blue blob rising from the bottom right */
        radial-gradient(circle 260px at var(--c2, 78%) 130%,
            #bae6fd 0% 58%, rgba(186, 230, 253, 0) 58%),
        /* sky slice on the far right edge */
        linear-gradient(-65deg,
            #7dd3fc 0% 12%, rgba(125, 211, 252, 0) 12%),
        /* palest blue base */
        linear-gradient(#e0f2fe, #e0f2fe);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.ipl-hero.is-spot .ipl-fxline::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .ipl-fxline::after { display: none; }
}

/* ============================================================
   Levels section — oversized blurb + three level boxes.
   ============================================================ */
.ipl-levels {
    background: var(--gs-bg);
    padding-block: clamp(4rem, 10vh, 8rem);
}

/* A touch wider than the hero container. */
.ipl-levels__container {
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: var(--gs-pad);
}

/* Standard glow across the hero/levels seam: ONE unclipped circle centred on
   the shared edge. The levels section paints after the hero, so the top half
   simply washes over the hero bottom — no halves, so no seam line. */
.ipl-levels { position: relative; scroll-margin-top: 4.5rem; }
.ipl-levels__container { position: relative; z-index: 1; }
.ipl-levels__glow {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);   /* centred on the seam, both halves shown */
    width: min(720px, 85vw);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(56, 189, 248, 0.26) 0%,
        rgba(56, 189, 248, 0.10) 45%,
        transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* Intro head: blurb on the left, the hero cutout beside it on the right. */
.ipl-levels__head {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gs-4);
    align-items: center;
}
.ipl-levels__img { display: none; }
@media (min-width: 900px) {
    .ipl-levels__head { grid-template-columns: 1fr auto; gap: var(--gs-6); }
    .ipl-levels__img {
        display: block;
        width: clamp(285px, 31vw, 440px);   /* ~30% larger */
        height: auto;
        justify-self: end;
    }
}

.ipl-levels__intro { max-width: 760px; }

/* Slightly oversized blurb. */
.ipl-levels__blurb {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--gs-text);
    margin: var(--gs-3) 0 0;
    max-width: 30ch;
}
.ipl-levels__accent { color: var(--gs-accent); }

/* ---- Beginner -> expert timeline ---- */
.ipl-timeline {
    margin-top: clamp(1rem, 2.5vw, 2rem);
    padding-top: clamp(9.5rem, 11vw, 10.5rem);   /* just enough headroom for the reveal panel */
}
.ipl-timeline__track {
    position: relative;
}

.ipl-timeline__phases {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    pointer-events: none;   /* let the bar behind catch line-hover; dots re-enable it */
}

/* Full-width gradient bar (theme colours) + invisible hover target. */
.ipl-timeline__bar {
    position: absolute;
    left: 0;
    right: 0;
    top: 11px;              /* dot centre */
    transform: translateY(-50%);
    height: 26px;           /* generous hit area around the 4px line */
    z-index: 0;
    cursor: crosshair;
}
.ipl-timeline__bar::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%) scaleX(0);   /* expands from the middle on scroll-in */
    transform-origin: center;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg,
        var(--gs-c-training),   /* blue */
        var(--gs-c-workflow),   /* green */
        var(--gs-c-marketing),  /* amber */
        var(--gs-c-full));      /* purple */
}
.ipl-timeline__track.is-in .ipl-timeline__bar::before {
    transform: translateY(-50%) scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
    .ipl-timeline__bar::before {
        transition: none;
        transform: translateY(-50%) scaleX(1);
    }
}

/* "Are you here?" tooltip that follows the cursor along the bar. */
.ipl-timeline__tip {
    position: absolute;
    top: 11px;
    left: 0;
    transform: translate(-50%, calc(-100% - 14px));
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: var(--gs-text);
    color: var(--gs-bg);
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 6;
}
.ipl-timeline__tip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--gs-text);
}
.ipl-timeline__tip.is-visible { opacity: 1; }

/* Phases sit ON the bar: beginner at the left end, expert at the right.
   Not positioned, so the absolute wave/pop resolve against the track. */
.ipl-phase {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.ipl-phase--beginner     { --c: var(--gs-c-training);  align-items: flex-start; }
.ipl-phase--intermediate { --c: var(--gs-c-marketing); align-items: center; }
.ipl-phase--expert       { --c: var(--gs-c-full);      align-items: flex-end; }

.ipl-phase__dot {
    width: 22px;
    height: 22px;
    padding: 0;
    border-radius: 50%;
    background: var(--gs-bg);
    border: 3px solid var(--c);
    cursor: pointer;
    pointer-events: auto;   /* re-enable (parent <ul> disables it for the bar) */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.ipl-phase__dot:hover,
.ipl-phase.is-active .ipl-phase__dot {
    background: var(--c);
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06), 0 0 22px -2px var(--c);
}

.ipl-phase__label {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gs-text);
}

/* ---- Wave: light vertical lines across this phase's third of the bar ---- */
.ipl-wave {
    position: absolute;
    top: 11px;                       /* the line */
    transform: translateY(-100%);    /* rise upward from the line */
    height: 34px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}
.ipl-phase--beginner     .ipl-wave { left: 0;        width: 33.333%; }
.ipl-phase--intermediate .ipl-wave { left: 33.333%;  width: 33.333%; }
.ipl-phase--expert       .ipl-wave { left: 66.666%;  width: 33.334%; }
.ipl-wave span {
    flex: 0 0 8px;
    width: 8px;
    height: 100%;
    border-radius: 2px;
    background: var(--c);
    opacity: 0.5;
    transform: scaleY(0.12);
    transform-origin: bottom;
}
.ipl-phase.is-active .ipl-wave { opacity: 1; }
/* Each line rises once (staggered = wave) to its target height, then holds. */
.ipl-phase.is-active .ipl-wave span {
    animation: ipl-wave-in 0.5s ease-out forwards;
}
@keyframes ipl-wave-in {
    from { transform: scaleY(0.12); }
    to   { transform: scaleY(var(--h, 1)); }
}

/* ---- Course list + CTA: right-justified, ~50px above the line ---- */
.ipl-phase__pop {
    position: absolute;
    top: 11px;
    right: 0;
    transform: translateY(calc(-100% - 50px));
    width: min(320px, 72%);
    text-align: right;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s;
    z-index: 5;
}
.ipl-phase.is-active .ipl-phase__pop {
    opacity: 0.55;
    visibility: visible;
    pointer-events: auto;
}
.ipl-phase__list {
    list-style: none;
    margin: 0 0 0.9rem;
    padding: 0;
}
.ipl-phase__list li {
    font-family: 'Outfit', sans-serif;
    font-size: 11pt;
    line-height: 16pt;
    font-weight: 300;
    color: var(--gs-text);
    opacity: 0;
    transform: translateY(8px);
}
/* Dot wrapper so the CTA can sit just above the dot. */
.ipl-phase__dotwrap {
    position: relative;
    line-height: 0;
}

/* "Explore courses" — sits just above the dot, revealed when active. */
.ipl-phase__cta {
    position: absolute;
    bottom: calc(100% + 4px);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    line-height: 1.2;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, bottom 0.25s ease;
}
.ipl-phase--beginner     .ipl-phase__cta { left: 0; }
.ipl-phase--intermediate .ipl-phase__cta { left: 50%; transform: translateX(-50%); }
.ipl-phase--expert       .ipl-phase__cta { right: 0; }
.ipl-phase__cta span { transition: transform 0.2s ease; }
.ipl-phase__cta:hover span { transform: translateX(4px); }

.ipl-phase.is-active .ipl-phase__cta {
    opacity: 1;
    pointer-events: auto;
    bottom: calc(100% + 10px);
}

/* Reveal each course line in sequence. */
.ipl-phase.is-active .ipl-phase__list li {
    animation: ipl-line-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.ipl-phase.is-active .ipl-phase__list li:nth-child(1) { animation-delay: 0.05s; }
.ipl-phase.is-active .ipl-phase__list li:nth-child(2) { animation-delay: 0.13s; }
.ipl-phase.is-active .ipl-phase__list li:nth-child(3) { animation-delay: 0.21s; }
@keyframes ipl-line-in {
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile: stack; show course lists inline, no hover/wave. */
@media (max-width: 767px) {
    .ipl-timeline { padding-top: 0; }
    .ipl-timeline__bar,
    .ipl-timeline__tip,
    .ipl-wave { display: none; }
    .ipl-timeline__phases { flex-direction: column; gap: 1.75rem; pointer-events: auto; }
    .ipl-phase,
    .ipl-phase--beginner,
    .ipl-phase--intermediate,
    .ipl-phase--expert {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 0.85rem;
        row-gap: 0.4rem;
        align-items: start;
    }
    .ipl-phase__dotwrap { display: contents; }
    .ipl-phase__dot { grid-column: 1; grid-row: 1 / span 2; margin-top: 3px; }
    .ipl-phase__label { grid-column: 2; }
    .ipl-phase__pop {
        position: static;
        grid-column: 2;
        width: auto;
        text-align: left;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        margin-top: 0.25rem;
    }
    .ipl-phase__cta,
    .ipl-phase--beginner .ipl-phase__cta,
    .ipl-phase--intermediate .ipl-phase__cta,
    .ipl-phase--expert .ipl-phase__cta {
        position: static;
        grid-column: 2;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
        margin-top: 0.4rem;
        opacity: 1;
        pointer-events: auto;
    }
    .ipl-phase__list li { opacity: 1; transform: none; animation: none; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ipl-phase__dot,
    .ipl-phase__pop,
    .ipl-phase__cta { transition: none; }
    .ipl-phase.is-active .ipl-wave span { animation: none; transform: scaleY(var(--h, 0.6)); }
    .ipl-phase.is-active .ipl-phase__list li { animation: none; opacity: 1; transform: none; }
}

/* ============================================================
   Courses — one section per level, colour-keyed to the gradient.
   ============================================================ */
.ipl-courses {
    padding-block: clamp(3.5rem, 8vw, 6rem);
    background: var(--gs-bg);
    border-top: 1px solid var(--gs-border);
    scroll-margin-top: clamp(5rem, 10vh, 7rem);   /* clear the nav on anchor jumps */
}
.ipl-courses--beginner     { --c: var(--gs-c-training); }
.ipl-courses--intermediate { --c: var(--gs-c-marketing); }
.ipl-courses--expert       { --c: var(--gs-c-full); }

.ipl-courses__container {
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: var(--gs-pad);
}

.ipl-courses__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 900px) {
    .ipl-courses__layout {
        grid-template-columns: 0.8fr 1.2fr;
        align-items: start;
    }
    .ipl-courses__intro {
        position: sticky;
        top: clamp(5rem, 12vh, 8rem);
    }
}

/* Colour the eyebrow with this section's gradient colour. */
.ipl-courses .gs-eyebrow { color: var(--c); }
.ipl-courses .gs-eyebrow::before { background: var(--c); }

.ipl-courses__title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: var(--gs-2) 0 0;
}
.ipl-courses__blurb {
    color: var(--gs-text-dim);
    line-height: 1.6;
    margin: var(--gs-3) 0 0;
    max-width: 42ch;
}

.ipl-courses__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ipl-course {
    position: relative;
    padding: clamp(1.1rem, 2vw, 1.6rem) 0 clamp(1.1rem, 2vw, 1.6rem) 1.35rem;
    border-top: 1px solid var(--gs-border);
}
.ipl-course:last-child { border-bottom: 1px solid var(--gs-border); }
.ipl-course::before {
    content: "";
    position: absolute;
    left: 0;
    top: clamp(1.25rem, 2.2vw, 1.8rem);
    width: 3px;
    height: 1.05em;
    border-radius: 2px;
    background: var(--c);
}
.ipl-course__title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    font-weight: 600;
    margin: 0;
    color: var(--gs-text);
    transition: color 0.2s ease;
}
.ipl-course:hover .ipl-course__title { color: var(--c); }
.ipl-course__desc {
    color: var(--gs-text-dim);
    line-height: 1.55;
    margin: 0.4rem 0 0;
    max-width: 62ch;
}

/* Course meta — people / duration / location, at varying sizes. */
.ipl-course__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: clamp(1.1rem, 3vw, 2.4rem);
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}
.ipl-course__meta-item {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.ipl-course__meta-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--gs-text);
}
.ipl-course__meta-label {
    margin-top: 0.4rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gs-text-faint);
}
/* Varying sizes for rhythm: people largest (in the section colour). */
.ipl-course__meta-item--people .ipl-course__meta-value {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--c);
}
.ipl-course__meta-item--time .ipl-course__meta-value {
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
}
.ipl-course__meta-item--loc .ipl-course__meta-value {
    font-size: clamp(0.82rem, 1vw, 0.92rem);
    font-weight: 600;
}

/* Per-course CTA to its own page. */
.ipl-course__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--c);
}
.ipl-course__cta span { transition: transform 0.2s ease; }
.ipl-course__cta:hover span { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
    .ipl-course__cta span { transition: none; }
}

/* ---- Courses v2: elegant menu on the left, swappable overview right ---- */
.ipl-cmenu {
    list-style: none;
    margin: var(--gs-4) 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.ipl-cmenu__item {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    background: none;
    border: 0;
    padding: 0.4rem 0;
    cursor: pointer;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--gs-text-dim);
    transition: color 0.2s ease, transform 0.2s ease;
}
.ipl-cmenu__num {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--gs-text-faint);
    transition: color 0.2s ease;
}
.ipl-cmenu__item:hover { color: var(--gs-text); }
.ipl-cmenu__item.is-active { color: var(--c); transform: translateX(6px); }
.ipl-cmenu__item.is-active .ipl-cmenu__num { color: var(--c); }

/* Overview panel — one visible at a time, fades up on swap. Borderless. */
.ipl-cdetail {
    display: none;
}
.ipl-cdetail.is-active { display: block; animation: ipl-cfade 0.35s ease; }
@keyframes ipl-cfade {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}
.ipl-cdetail__title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}
.ipl-cdetail__desc {
    color: var(--gs-text-dim);
    line-height: 1.65;
    margin: 0.8rem 0 0;
    max-width: 58ch;
}
.ipl-cdetail .ipl-course__meta { margin-top: 1.4rem; }

/* Instructor: Tod */
.ipl-cdetail__tutor {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    margin-top: var(--gs-4);
    padding-top: var(--gs-3);
    border-top: 1px solid var(--gs-border);
}
.ipl-cdetail__tutor img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--c);
}
.ipl-cdetail__tutor-name {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--gs-text);
}
.ipl-cdetail__tutor-role {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c);
    margin-top: 0.1rem;
}
.ipl-cdetail__tutor-note {
    display: block;
    font-size: 0.82rem;
    color: var(--gs-text-dim);
    margin-top: 0.25rem;
    max-width: 40ch;
}
.ipl-cdetail__cta { margin-top: var(--gs-3); }

@media (prefers-reduced-motion: reduce) {
    .ipl-cmenu__item { transition: none; }
    .ipl-cdetail.is-active { animation: none; }
}

/* ============================================================
   Get certified — the credential as an object
   ============================================================ */
/* Handwriting for the awardee + signature (self-hosted, shared with the
   workflow page's notepad). */
@font-face {
    font-family: 'Covered By Your Grace';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/CoveredByYourGrace.woff2') format('woff2');
}

.ipl-cert {
    padding-block: clamp(4rem, 10vh, 8rem);
    background: var(--gs-bg);
}
.ipl-cert__container {
    max-width: var(--gs-maxw);
    margin-inline: auto;
    padding-inline: var(--gs-pad);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gs-5);
    align-items: center;
}
@media (min-width: 900px) {
    .ipl-cert__container { grid-template-columns: 1fr 1.1fr; gap: var(--gs-6); }
}

.ipl-cert__title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: var(--gs-2) 0 0;
}
.ipl-cert__lede {
    color: var(--gs-text-dim);
    line-height: 1.6;
    margin: var(--gs-3) 0 0;
    max-width: 46ch;
}
.ipl-cert__checks {
    list-style: none;
    margin: var(--gs-3) 0 var(--gs-4);
    padding: 0;
    display: grid;
    gap: 0.7rem;
}
.ipl-cert__checks li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--gs-text-dim);
}
.ipl-cert__checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gs-accent);
}

/* The certificate card — tilts with the cursor, holo sheen, stamped seal. */
.ipl-cert__stage {
    perspective: 1100px;
    display: flex;
    justify-content: center;
}
.ipl-cert__card {
    position: relative;
    width: min(480px, 100%);
    aspect-ratio: 7 / 5;
    display: flex;
    flex-direction: column;
    padding: clamp(1.4rem, 3vw, 2.1rem);
    background: linear-gradient(155deg, #0e1622, #0a0f17);
    border: 1px solid rgba(56, 189, 248, 0.30);
    border-radius: var(--gs-radius);
    box-shadow: 0 30px 70px -30px rgba(56, 189, 248, 0.25);
    overflow: hidden;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.18s ease;
    will-change: transform;
}
.ipl-cert__card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: calc(var(--gs-radius) - 6px);
    pointer-events: none;
}
.ipl-cert__sheen {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(105deg,
        transparent calc(var(--sh, 30%) - 12%),
        rgba(255, 255, 255, 0.11) var(--sh, 30%),
        transparent calc(var(--sh, 30%) + 12%));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.ipl-cert__stage:hover .ipl-cert__sheen { opacity: 1; }

.ipl-cert__brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}
.ipl-cert__brand b { color: var(--gs-accent); font-weight: 700; }
.ipl-cert__label {
    margin-top: clamp(0.9rem, 2.4vw, 1.6rem);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gs-text-faint);
}
.ipl-cert__course {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 0.2rem;
}
.ipl-cert__awardee {
    font-family: 'Covered By Your Grace', cursive;
    font-size: clamp(1.5rem, 2.6vw, 1.9rem);
    color: #cfeaff;
    margin-top: 0.7rem;
}
.ipl-cert__awardee::before {
    content: "Awarded to";
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gs-text-faint);
    margin-bottom: 0.1rem;
}
.ipl-cert__foot {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}
.ipl-cert__date {
    font-size: 0.78rem;
    color: var(--gs-text-dim);
}
.ipl-cert__sig { text-align: right; }
.ipl-cert__sig-script {
    display: block;
    font-family: 'Covered By Your Grace', cursive;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gs-text);
    transform: rotate(-3deg);
}
.ipl-cert__sig-role {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gs-accent);
}

/* The seal — stamps down when the card scrolls into view. */
.ipl-cert__seal {
    position: absolute;
    top: 1rem;
    right: 1.1rem;
    width: 88px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 2px solid var(--gs-accent);
    background: rgba(56, 189, 248, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    opacity: 0;
    transform: rotate(8deg) scale(2.3);
}
.ipl-cert__seal::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px dashed rgba(56, 189, 248, 0.5);
    border-radius: 50%;
}
.ipl-cert__seal i {
    font-style: normal;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gs-accent);
}
.ipl-cert__seal em {
    font-style: normal;
    font-size: 0.48rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gs-text-faint);
}
.ipl-cert__card.is-stamped .ipl-cert__seal {
    animation: ipl-stamp 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}
@keyframes ipl-stamp {
    0%   { opacity: 0; transform: rotate(8deg) scale(2.3); }
    55%  { opacity: 1; transform: rotate(-16deg) scale(0.92); }
    75%  { transform: rotate(-11deg) scale(1.05); }
    100% { opacity: 1; transform: rotate(-12deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .ipl-cert__card { transition: none; transform: none; }
    .ipl-cert__sheen { display: none; }
    .ipl-cert__card.is-stamped .ipl-cert__seal {
        animation: none;
        opacity: 1;
        transform: rotate(-12deg) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ipl-course__title { transition: none; }
}
