/* ==========================================================================
   Marjaa landing — light canvas, asymmetric bento, 3D keyring hero.
   Tokens stay on .mj-* so the rest of the app is untouched.
   ========================================================================== */

.mj-home {
    --mj-ink: #0f172a;
    --mj-ink-soft: #475569;
    --mj-page: #f8fafc;
    --mj-tile: #eef2f6;
    --mj-surface: #ffffff;
    --mj-border: rgba(15, 23, 42, 0.08);
    --mj-accent: #8b5cf6;
    --mj-accent-hover: #7c3aed;
    --mj-accent-press: #6d28d9;
    --mj-accent-ink: #6d28d9;
    --mj-accent-tint: rgba(139, 92, 246, 0.12);
    --mj-radius: 1rem;
    --mj-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --mj-ease-out-quad: cubic-bezier(0.5, 1, 0.89, 1);
    --mj-dur: 220ms;
    --mj-dur-slide: 800ms;
    --mj-ease-out-fast: cubic-bezier(0, 0, 0, 1);
    --mj-card-radius: 1.75rem;
    --mj-gutter: clamp(1.25rem, 4.2vw, 4.5rem);
    --mj-max: 76rem;

    color: var(--mj-ink);
    background: var(--mj-page);
    font-family: var(--font-app, 'Tajawal', system-ui, sans-serif);
    -webkit-font-smoothing: antialiased;
}

.mj-home,
.mj-home * {
    box-sizing: border-box;
}

.mj-home :where(a) {
    color: inherit;
    text-decoration: none;
}

.mj-page {
    background: var(--mj-page, #f8fafc);
    color: #0f172a;
}

.mj-page ::selection {
    background: rgba(139, 92, 246, 0.22);
    color: #0f172a;
}

.mj-home :focus-visible {
    outline: 2px solid var(--mj-accent);
    outline-offset: 3px;
}

.mj-home input {
    caret-color: var(--mj-accent);
}

/* Hero ------------------------------------------------------------------- */

.mj-hero {
    --mj-charm-metal: #c9ced6;
    --mj-charm-graphite: #1f2430;
    --mj-charm-paper: #f3efe6;
    --mj-charm-key: var(--mj-accent);
    --mj-hero-fade: 0.8s;
    --mj-hero-slide: 0.5s;
    --mj-keyring-fit: 1;
    --mj-keyring-span: 0.44;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    min-height: 100dvh;
    overflow: clip;
    text-align: center;
    background:
        radial-gradient(70% 55% at 50% 0%, var(--mj-accent-tint), transparent 72%),
        var(--mj-page);
}

/* Pills live in the hero: no spacer band, no header bar, no extra surface. */
.mj-hero .mj-spacer {
    display: none;
}

.mj-hero .mj-header {
    background: transparent;
    border: 0;
    box-shadow: none;
}


/* Pointer source for the keyring. Sits under the copy so links keep working. */
.mj-hero__events {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.mj-hero__stage {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* WebGL/canvas centering must not inherit page RTL layout. */
    direction: ltr;
}

.mj-hero__keyring {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--mj-hero-fade) var(--mj-ease-out-quad);
    -webkit-mask-image: linear-gradient(to bottom, #000 77%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 77%, transparent 100%);
    isolation: isolate;
}

.mj-hero__keyring[data-show="true"] {
    opacity: 1;
}

.mj-hero__canvas {
    display: block;
    width: 100%;
    height: 100%;
    margin-inline: auto;
    touch-action: none;
}

/*
 * Still image of the settled keyring. Slides in while the 3D engine loads.
 * On narrow screens the camera pulls back by --mj-keyring-fit around the hero centre,
 * so the image shrinks by the same factor and drops by half the hero's lost height.
 */
.mj-hero__fallback {
    position: absolute;
    top: calc(50% * (1 - 1 / var(--mj-keyring-fit)));
    left: 50%;
    height: calc(var(--mj-keyring-span) * 100% / var(--mj-keyring-fit));
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, -20%, 0);
    transition:
        transform var(--mj-hero-slide) var(--mj-ease-out),
        opacity var(--mj-hero-slide) var(--mj-ease-out);
}

.mj-hero__fallback[data-show="true"] {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
}

.mj-hero__fallback img {
    display: block;
    width: auto;
    height: 100%;
    max-width: none;
    -webkit-user-select: none;
    user-select: none;
}

.mj-hero__copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.25rem, 2.6vw, 1.9rem);
    width: min(100%, 76rem);
    padding: 40dvh var(--mj-gutter) clamp(2rem, 5vw, 3.5rem);
    pointer-events: none;
}

.mj-hero__copy :where(a, button, input, form, label) {
    pointer-events: auto;
}

.mj-hero__title {
    margin: 0;
    max-width: 100%;
    font-size: clamp(3rem, 10.4vw, 8.5rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.02;
    text-wrap: balance;
    color: var(--mj-ink);
}

[dir="rtl"] .mj-hero__title {
    letter-spacing: 0;
    line-height: 1.2;
}

.mj-hero__title .line {
    display: block;
}

/* Hidden until the split exists, so the plain text never flashes before the reveal. */
.mj-hero[data-mj-title-pending] .mj-hero__title {
    opacity: 0;
}

.mj-hero__dock {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.mj-hero__sub {
    margin: 0;
    max-width: 36ch;
    font-size: 1.125rem;
    line-height: 1.55;
    color: var(--mj-ink-soft);
}

.mj-search {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: min(100%, 28rem);
    margin-block-start: 1.9rem;
    margin-inline: auto;
    padding: 0.4rem 0.4rem 0.4rem 1.05rem;
    border-radius: 999px;
    background: var(--mj-surface);
    box-shadow:
        0 8px 28px -18px rgba(15, 23, 42, 0.35),
        0 0 48px -10px rgba(139, 92, 246, 0.38);
}

[dir="rtl"] .mj-search {
    padding: 0.4rem 1.05rem 0.4rem 0.4rem;
}

.mj-search__input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--mj-ink);
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
}

.mj-search__input::placeholder {
    color: var(--mj-ink-soft);
}

.mj-search__input:focus {
    outline: none;
}

.mj-search:focus-within {
    box-shadow:
        0 0 0 2px var(--mj-accent),
        0 8px 28px -18px rgba(15, 23, 42, 0.35),
        0 0 48px -10px rgba(139, 92, 246, 0.45);
}

.mj-search__go {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 999px;
    background: var(--mj-accent);
    color: #fff;
    cursor: pointer;
    transition: background var(--mj-dur) var(--mj-ease-out), transform 150ms var(--mj-ease-out);
}

.mj-search__go:hover {
    background: var(--mj-accent-hover);
}

.mj-search__go:active {
    background: var(--mj-accent-press);
    transform: scale(0.96);
}

.mj-search__go svg {
    display: block;
}

.mj-hero__meta {
    margin: 1.15rem 0 0;
    font-size: 0.875rem;
    color: var(--mj-ink-soft);
}

@media (max-width: 47.99rem) {
    .mj-hero {
        --mj-keyring-span: 0.4;
        /* Match .mj-spacer / header band so copy sits under the ring, not under the pill. */
        --mj-mobile-header-clear: calc(max(0.75rem, env(safe-area-inset-top)) + 0.75rem + 3.25rem);
        --mj-mobile-copy-top: clamp(20.5rem, 50svh, 26.5rem);
        /* svh stays stable while iOS hides the address bar; desktop keeps 100dvh above */
        min-height: 100svh;
        justify-content: flex-start;
        padding-block-end: 0;
    }

    .mj-hero__stage {
        top: calc(var(--mj-mobile-header-clear) + 2.35rem);
        right: 0;
        bottom: 0;
        left: 0;
        height: auto;
        overflow: visible;
    }

    /*
     * Taller canvas above the stage box so the main hoop is not clipped at the WebGL edge.
     * Camera pull-back in MOBILE_FRAMING keeps the charms in roughly the same screen spot.
     */
    .mj-hero__keyring {
        inset: auto;
        top: clamp(-3.25rem, -9svh, -2.25rem);
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 96%);
        mask-image: linear-gradient(to bottom, #000 68%, transparent 96%);
    }

    .mj-hero__fallback {
        inset: auto;
        top: clamp(-3.25rem, -9svh, -2.25rem);
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 96%);
        mask-image: linear-gradient(to bottom, #000 68%, transparent 96%);
        transform: none;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top: calc(8% + 1dvh);
    }

    .mj-hero__fallback img {
        height: calc(var(--mj-keyring-span) * 100% / var(--mj-keyring-fit));
        max-height: 42svh;
    }

    .mj-hero__fallback[data-show="true"] {
        transform: none;
    }

    .mj-hero__copy {
        position: absolute;
        inset-inline: 0;
        top: var(--mj-mobile-copy-top);
        bottom: auto;
        margin: 0;
        padding: 0 var(--mj-gutter) clamp(1.5rem, 5vw, 2.25rem);
        gap: 0.95rem;
        width: 100%;
    }

    .mj-hero__title {
        font-size: clamp(2.25rem, 9.2vw, 3.15rem);
    }

    .mj-hero__sub {
        font-size: 1.02rem;
    }

    .mj-search {
        margin-block-start: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mj-hero__keyring,
    .mj-hero__fallback {
        transition-duration: 0.01ms;
    }
}

/* Bento ------------------------------------------------------------------ */

[data-mj-anchor] {
    scroll-margin-block-start: 5.5rem;
}

.mj-bento {
    width: min(100% - (var(--mj-gutter) * 2), var(--mj-max));
    margin-inline: auto;
    padding-block: 5rem 2rem;
}

.mj-bento__intro {
    display: grid;
    justify-items: center;
    gap: 0.9rem;
    margin-block-end: clamp(2rem, 4vw, 3.25rem);
    text-align: center;
}

.mj-bento__kicker {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mj-accent-ink);
}

.mj-bento__title {
    margin: 0;
    max-width: 18ch;
    font-size: clamp(2rem, 4.2vw, 3.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-wrap: balance;
}

[dir="rtl"] .mj-bento__kicker,
[dir="rtl"] .mj-bento__title {
    letter-spacing: 0;
    text-transform: none;
}

[dir="rtl"] .mj-bento__title {
    line-height: 1.25;
}

/* SplitText copies: the visible text is aria-hidden, a screen-reader twin sits beside it. */
.mj-split {
    display: block;
}

.mj-split > .line {
    display: block;
    will-change: transform;
}

.mj-sr-only {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.mj-bento__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.mj-bento__cell {
    min-width: 0;
}

.mj-bento__cell > .mj-tile {
    height: 100%;
}

/* Slide-in: GSAP sets initial state when .is-slide-js is present; IO fallback uses is-armed/is-in. */
.mj-home.is-slide-js [data-mj-slide]:not(.is-in) {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.mj-home.is-slide-js [data-mj-slide].is-in {
    will-change: auto;
}

.mj-home.is-slide-js [data-mj-slide]:not(.is-in) .mj-tile {
    transition-property: background;
}

[data-mj-slide].is-armed:not(.is-in) {
    transform: translateY(30px);
    opacity: 0;
}

[data-mj-slide].is-armed.is-in {
    transform: translateY(0);
    opacity: 1;
    transition:
        transform var(--mj-dur-slide) var(--mj-ease-out-fast) var(--mj-slide-delay, 0s),
        opacity calc(var(--mj-dur-slide) * 0.66) linear var(--mj-slide-delay, 0s);
}

.mj-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block-end: 1.75rem;
    border-radius: var(--mj-card-radius);
    background: var(--mj-tile);
    color: inherit;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--mj-dur) var(--mj-ease-out), background var(--mj-dur) var(--mj-ease-out);
}

.mj-tile:hover {
    transform: translateY(-3px);
}

.mj-tile__visual {
    position: relative;
    flex: 1 1 auto;
    min-height: 15rem;
    padding: 2rem 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mj-tile__copy {
    padding-inline: 1.75rem;
}

.mj-tile__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 650;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

[dir="rtl"] .mj-tile__title {
    letter-spacing: 0;
    line-height: 1.35;
}

.mj-tile__body {
    margin: 0.4rem 0 0;
    max-width: 34ch;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--mj-ink-soft);
}

.mj-tile--join {
    min-height: 13rem;
    justify-content: flex-end;
    padding-block-start: 1.75rem;
    background: var(--mj-accent-tint);
}

.mj-tile--join .mj-tile__title {
    max-width: 16ch;
}

/* Paper stack */
.mj-papers {
    position: relative;
    width: min(100%, 17.5rem);
    height: 10.5rem;
}

.mj-papers__sheet {
    position: absolute;
    inset-inline-start: 8%;
    inset-block-start: 8%;
    width: 84%;
    height: 78%;
    border-radius: 0.75rem;
    background: var(--mj-surface);
    box-shadow: 0 10px 24px -16px rgba(15, 23, 42, 0.4);
}

.mj-papers__sheet:nth-child(1) {
    transform: rotate(-7deg) translate(-6%, 8%);
}

.mj-papers__sheet:nth-child(2) {
    transform: rotate(5deg) translate(8%, 4%);
}

.mj-papers__sheet:nth-child(3) {
    inset-inline-start: 12%;
    width: 76%;
    padding: 1rem 1.05rem;
    transform: none;
}

.mj-papers__code {
    display: block;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mj-accent-ink);
}

.mj-papers__name {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.mj-papers__rule {
    display: block;
    height: 0.4rem;
    margin-top: 0.7rem;
    border-radius: 99px;
    background: var(--mj-tile);
    width: 72%;
}

.mj-papers__rule:last-child {
    width: 54%;
}

.mj-gpa-face {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(100%, 11.5rem);
    aspect-ratio: 1;
    border-radius: 0.9rem;
    background: var(--mj-surface);
}

.mj-gpa-face__n {
    font-size: 2.85rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.mj-gpa-face__l {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--mj-ink-soft);
}

.mj-plan {
    width: min(100%, 16.5rem);
    padding: 0.75rem;
    border-radius: 0.85rem;
    background: var(--mj-surface);
}

.mj-plan__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.35rem;
    font-size: 0.875rem;
}

.mj-plan__row > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.mj-plan__row + .mj-plan__row {
    border-top: 1px solid var(--mj-border);
}

.mj-plan__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--mj-accent);
}

.mj-plan__row span:last-child {
    color: var(--mj-ink-soft);
    font-variant-numeric: tabular-nums;
}

.mj-cal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    width: min(100%, 16rem);
}

.mj-cal__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.65rem 0.35rem;
    border-radius: 0.75rem;
    background: var(--mj-tile);
    font-size: 0.72rem;
    color: var(--mj-ink-soft);
}

.mj-cal__day strong {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mj-ink);
    font-variant-numeric: tabular-nums;
}

.mj-cal__day.is-accent {
    background: var(--mj-accent-tint);
    color: var(--mj-accent-ink);
}

.mj-cal__day.is-accent strong {
    color: var(--mj-accent-ink);
}

.mj-svc {
    width: min(100%, 16.5rem);
    display: grid;
    gap: 0.4rem;
}

.mj-svc__row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.8rem;
    border-radius: 0.75rem;
    background: var(--mj-surface);
    font-size: 0.875rem;
    font-weight: 600;
}

.mj-svc__mark {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--mj-accent);
    flex: 0 0 auto;
}

/* Reveal: the pinned Library section --------------------------------------- */
/* Desktop: the section is 200vh tall, its inner wrapper is pinned by ScrollTrigger and the row
   inside it slides sideways, so the headline leaves while the workspace preview arrives.
   Below 64rem (and for reduced motion) nothing is pinned and the row is a plain column. */

.mj-reveal {
    --mj-reveal-gutter: clamp(1.5625rem, 0.658rem + 3.86vw, 5rem);
    --mj-reveal-media-gutter: clamp(3.125rem, 1.316rem + 7.72vw, 10rem);
    overflow: hidden;
    margin-block: clamp(1.5rem, 4vw, 6rem) clamp(3rem, 9vw, 9rem);
}

.mj-reveal__inner {
    display: flex;
    flex-wrap: nowrap;
    position: relative;
}

.mj-reveal__row {
    display: flex;
    flex: none;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 5rem;
    position: relative;
    inline-size: 100%;
    padding: 3.5rem var(--mj-reveal-gutter);
}

.mj-reveal__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mj-reveal__kicker {
    margin: 0 0 1.5rem;
    font-size: 0.8125rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mj-accent-ink);
}

.mj-reveal__title {
    margin: 0;
    max-width: 17ch;
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

[dir="rtl"] .mj-reveal__kicker,
[dir="rtl"] .mj-reveal__title {
    letter-spacing: 0;
    text-transform: none;
}

[dir="rtl"] .mj-reveal__title {
    line-height: 1.25;
}

.mj-reveal__body {
    margin: 1.1rem 0 1.6rem;
    max-width: 36ch;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--mj-ink-soft);
}

.mj-reveal__cta {
    align-self: flex-start;
}

.mj-reveal__media {
    position: relative;
    flex: none;
    overflow: hidden;
    container-type: inline-size;
    inline-size: 100%;
    max-inline-size: 72rem;
    margin-inline: auto;
    border-radius: var(--mj-card-radius);
    box-shadow: 0 30px 60px -34px rgba(15, 23, 42, 0.45);
}

/* The workspace preview. Its type scales with the media width, so it reads like a screenshot. */
.mj-desk {
    --mj-desk-gap: 0.9em;
    inline-size: 100%;
    display: grid;
    grid-template-columns: 1fr;
    background: var(--mj-surface);
    font-size: clamp(0.75rem, 1.4cqw, 1.1875rem);
    color: var(--mj-ink);
}

.mj-desk__side {
    padding: 1.1rem 0.85rem;
    background: var(--mj-tile);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.mj-desk__brand {
    inline-size: 100%;
    padding: 0.35rem 0.55rem;
    font-size: 1.3em;
    font-weight: 750;
    letter-spacing: -0.03em;
}

[dir="rtl"] .mj-desk__brand {
    letter-spacing: 0;
}

.mj-desk__nav {
    display: block;
    padding: 0.45em 0.7em;
    border-radius: 0.6em;
    font-size: 1em;
    color: var(--mj-ink-soft);
}

.mj-desk__nav.is-on {
    background: var(--mj-surface);
    color: var(--mj-ink);
    font-weight: 650;
}

.mj-desk__main {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: var(--mj-desk-gap);
    padding: 1.3em;
    background: var(--mj-page);
}

.mj-desk__h {
    margin: 0;
    font-size: 1.55em;
    font-weight: 650;
    letter-spacing: -0.02em;
}

[dir="rtl"] .mj-desk__h {
    letter-spacing: 0;
}

.mj-desk__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--mj-desk-gap);
}

.mj-desk__card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.25em;
    min-block-size: 8em;
    padding: 1.1em;
    border-radius: 0.9em;
    background: var(--mj-surface);
}

.mj-desk__card strong {
    font-size: 1.05em;
}

.mj-desk__card span {
    font-size: 0.9em;
    color: var(--mj-ink-soft);
}

.mj-desk__card--wide {
    grid-column: 1 / -1;
    min-block-size: 6.5em;
    background: var(--mj-accent-tint);
}

.mj-desk__panes {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mj-desk-gap);
}

.mj-desk__pane {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0.8em;
    padding: 1em;
    border-radius: 0.9em;
    background: var(--mj-surface);
}

.mj-desk__pane-title {
    margin: 0;
    font-size: 0.95em;
    font-weight: 650;
    color: var(--mj-ink-soft);
}

.mj-desk .mj-gpa-face {
    inline-size: 100%;
    aspect-ratio: auto;
    padding: 1.1em 0.5em;
    border-radius: 0.8em;
    background: var(--mj-tile);
}

.mj-desk .mj-gpa-face__n {
    font-size: 2.6em;
}

.mj-desk .mj-gpa-face__l {
    font-size: 0.9em;
}

.mj-desk .mj-plan {
    display: grid;
    align-content: center;
    inline-size: 100%;
    padding: 0;
    background: transparent;
}

.mj-desk .mj-plan__row {
    font-size: 1em;
}

.mj-desk .mj-cal {
    grid-template-columns: 1fr;
    align-content: center;
    inline-size: 100%;
    gap: 0.5em;
}

.mj-desk .mj-cal__day {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.8em;
    padding: 0.8em 1em;
    font-size: 0.95em;
}

.mj-desk .mj-cal__day strong {
    font-size: 1.3em;
}

@media (min-width: 48rem) {
    .mj-desk {
        grid-template-columns: 11em 1fr;
    }

    .mj-desk__side {
        flex-direction: column;
        align-items: stretch;
        align-content: start;
        padding: 1.3em 0.9em;
    }

    .mj-desk__panes {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Pinned: only while marjaa-home-sections.js has a live ScrollTrigger (class added by the script). */
@media (min-width: 64rem) {
    .mj-reveal.is-pinned {
        block-size: 200vh;
    }

    .mj-reveal.is-pinned .mj-reveal__row {
        will-change: transform;
        flex-direction: row;
        align-items: center;
        gap: 0;
        padding-block: 0;
        inline-size: max-content;
    }

    .mj-reveal.is-pinned .mj-reveal__copy {
        inline-size: 50vw;
        padding-inline-end: clamp(1.5rem, 4vw, 4rem);
    }

    .mj-reveal.is-pinned .mj-reveal__media {
        inline-size: min(calc(100vw - var(--mj-reveal-media-gutter)), calc(90vh * 1.6));
        max-inline-size: none;
        margin-inline: 0;
        aspect-ratio: 16 / 10;
    }

    .mj-reveal.is-pinned .mj-desk {
        block-size: 100%;
    }
}

/* Closer ----------------------------------------------------------------- */

.mj-close {
    width: min(100% - (var(--mj-gutter) * 2), var(--mj-max));
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
    padding-block: 6rem 5.5rem;
}

.mj-close__title {
    margin: 0;
    max-width: 12ch;
    font-size: clamp(2.15rem, 4vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.mj-close__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.mj-home .mj-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 650;
    cursor: pointer;
    transition: background 150ms var(--mj-ease-out), color 150ms var(--mj-ease-out), transform 150ms var(--mj-ease-out);
}

.mj-cta--fill {
    background: var(--mj-accent);
    color: #fff;
}

.mj-cta--fill:hover {
    background: var(--mj-accent-hover);
    color: #fff;
}

.mj-cta--ghost {
    background: var(--mj-tile);
    color: var(--mj-ink);
}

.mj-cta--ghost:hover {
    background: #e2e8f0;
}

.mj-cta:active {
    transform: scale(0.98);
}

@media (min-width: 48rem) {
    .mj-bento__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mj-bento__cell--full {
        grid-column: 1 / -1;
    }

    .mj-tile__visual {
        min-height: 20rem;
    }

    .mj-tile--hero .mj-tile__visual {
        min-height: 18rem;
    }
}

@media (min-width: 64rem) {
    .mj-search {
        margin-inline: auto;
        width: min(100%, 28rem);
    }
}

@media (max-width: 47.99rem) {
    .mj-bento__cell {
        --mj-slide-delay: 0s !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mj-tile,
    .mj-search__go,
    .mj-cta {
        transition: none;
    }

    .mj-tile:hover {
        transform: none;
    }

    [data-mj-slide].is-armed:not(.is-in) {
        transform: none;
        opacity: 1;
    }
}
