/* local_nawatui — public pages (landing «/», «رحلة القيم», «للجمعيات»).
   NCE style: orange #F28C00 on cream, black ink, Cairo 900 display; the program film
   runs on a night stage. RTL page: motion is direction-free (fade / scale / vertical). */

:root {
    --nw-orange: #F28C00;
    --nw-orange-2: #FFB547;
    --nw-orange-ink: #B86400;
    --nw-orange-soft: #FDE6C8;
    --nw-ink: #0B0B0B;
    --nw-ink-2: #3D3A36;
    --nw-ink-3: #6E6860;
    --nw-cream: #FFF8EE;
    --nw-cream-2: #FBEEDB;
    --nw-paper: #FFFFFF;
    --nw-gold: #C89446;
    --nw-night: #0D0D10;
    --nw-night-2: #18171C;
    --nw-on-night: #F6EBDD;
    --nw-on-night-2: #B9AFA3;
    --nw-rule: rgba(11, 11, 11, .1);
    --nw-knock: var(--nw-cream);
    --nw-radius: 20px;
    --nw-gutter: clamp(16px, 4vw, 48px);
    --nw-wide: 1200px;
    --nw-ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.nw {
    margin: 0;
    background: var(--nw-cream);
    color: var(--nw-ink);
    font-family: "Cairo", system-ui, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.8;
    overflow-x: hidden;
}
.nw a { color: inherit; }
.nw h1, .nw h2, .nw h3, .nw h4 { margin: 0; line-height: 1.35; }
.nw p { margin: 0; }
.nw img, .nw svg { display: block; max-width: 100%; }
.nw-wrap { max-width: var(--nw-wide); margin-inline: auto; padding-inline: var(--nw-gutter); }
.nw-center { text-align: center; }
.nw-skip {
    position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100;
    background: var(--nw-ink); color: #fff; padding: .5rem 1rem; border-radius: 10px;
}
.nw-skip:focus { top: 1rem; }
.nw :focus-visible { outline: 3px solid var(--nw-orange); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------- buttons -- */
.nw-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px; padding: .55rem 1.5rem;
    background: var(--nw-orange); color: var(--nw-ink) !important;
    border: 2px solid var(--nw-orange); border-radius: 999px;
    font-weight: 800; font-size: 1.05rem; text-decoration: none; white-space: nowrap;
    box-shadow: 0 6px 18px rgba(242, 140, 0, .28);
    transition: transform .15s var(--nw-ease), box-shadow .2s, background .2s;
}
.nw-btn:hover { background: var(--nw-orange-2); border-color: var(--nw-orange-2); transform: translateY(-2px); }
.nw-btn:active { transform: scale(.97); }
.nw-btn-lg { min-height: 56px; padding: .7rem 1.9rem; font-size: 1.15rem; }
.nw-btn-sm { min-height: 40px; padding: .3rem 1.1rem; font-size: .98rem; box-shadow: none; }
.nw-btn-ghost { background: transparent; color: var(--nw-ink) !important; border-color: var(--nw-ink); box-shadow: none; }
.nw-btn-ghost:hover { background: var(--nw-ink); color: var(--nw-cream) !important; border-color: var(--nw-ink); }
.nw-btn-ghost-dark { background: transparent; color: var(--nw-on-night) !important; border-color: rgba(246, 235, 221, .5); box-shadow: none; }
.nw-btn-ghost-dark:hover { background: var(--nw-on-night); color: var(--nw-night) !important; border-color: var(--nw-on-night); }

/* -------------------------------------------------------------- header -- */
.nw-head {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 248, 238, .86);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--nw-rule);
}
.nw-head-in { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.nw-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 900; font-size: 1.25rem; }
.nw-brand .nw-logo { width: 40px; height: 40px; color: var(--nw-ink); }
.nw-nav { display: flex; align-items: center; gap: .3rem; margin-inline-start: auto; }
.nw-nav a:not(.nw-btn) {
    padding: .4rem .8rem; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--nw-ink-2);
}
.nw-nav a:not(.nw-btn):hover, .nw-nav a[aria-current="page"] { background: var(--nw-orange-soft); color: var(--nw-ink); }
.nw-nav .nw-btn { margin-inline-start: .5rem; }
.nw-menu-btn { display: none; }
@media (max-width: 820px) {
    .nw-menu-btn {
        display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 48px; height: 48px; margin-inline-start: auto; padding: 12px;
        background: none; border: 0; cursor: pointer;
    }
    .nw-menu-btn span { display: block; height: 2.5px; background: var(--nw-ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
    .nw-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .nw-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nw-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
    .nw-nav {
        position: absolute; inset-inline: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: .2rem; padding: .8rem var(--nw-gutter) 1.2rem;
        background: var(--nw-cream); border-bottom: 1px solid var(--nw-rule);
        box-shadow: 0 14px 30px rgba(0, 0, 0, .08);
        display: none;
    }
    .nw-nav.is-open { display: flex; }
    .nw-nav a:not(.nw-btn) { padding: .7rem 1rem; font-size: 1.1rem; }
    .nw-nav .nw-btn { margin: .4rem 0 0; }
}
/* Without JS the menu is a plain wrapped row. */
.nw-nojs .nw-menu-btn { display: none; }
@media (max-width: 820px) {
    .nw-nojs .nw-nav { position: static; display: flex; flex-flow: row wrap; box-shadow: none; border: 0; padding: 0; }
}

/* ---------------------------------------------------------------- hero -- */
.nw-hero { position: relative; overflow: hidden; padding-block: clamp(36px, 7vh, 80px) clamp(40px, 8vh, 96px); }
.nw-hero::before {
    content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
    background: radial-gradient(closest-side, rgba(242, 140, 0, .16), transparent 70%);
    pointer-events: none;
}
.nw-hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px); }
.nw-hero-small { text-align: center; }
.nw-hero-small .nw-lede { margin-inline: auto; }
.nw-banner { display: flex; align-items: center; gap: 1rem; max-width: 520px; margin-bottom: 1rem; }
.nw-hero-small .nw-banner { margin-inline: auto; }
.nw-banner span { flex: 1; height: 1px; background: linear-gradient(to left, transparent, var(--nw-orange), transparent); }
.nw-banner b { font-weight: 900; font-size: clamp(1.1rem, 2vw, 1.35rem); white-space: nowrap; }
.nw-hero-title { font-weight: 900; font-size: clamp(2.5rem, 5vw, 4.3rem); line-height: 1.2; letter-spacing: -.01em; }
.nw-hero-title em { font-style: normal; color: var(--nw-orange); }
.nw-want { list-style: none; margin: 1.2rem 0 0; padding: 0; font-size: clamp(1.2rem, 2.3vw, 1.6rem); font-weight: 700; line-height: 1.9; }
.nw-want b { color: var(--nw-orange); font-weight: 900; }
.nw-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.nw-hero-small .nw-cta { justify-content: center; }
.nw-lede { color: var(--nw-ink-3); font-size: 1.15rem; max-width: 60ch; margin-top: .6rem; }

.nw-atom { position: relative; width: 100%; max-width: 560px; justify-self: center; aspect-ratio: 1; }
.nw-atom svg { width: 100%; height: 100%; overflow: visible; }
.nw-orb { fill: none; stroke: var(--c); stroke-width: 2.5; opacity: .55; }
.nw-elec { filter: drop-shadow(0 0 8px rgba(242, 140, 0, .7)); }
/* No disc behind the logo: the orbits and electrons pass visibly around and through it. */
.nw-atom-core { fill: transparent; }
.nw-atom-logo { color: var(--nw-ink); }
.nw-atom-chip {
    position: absolute; display: inline-flex; align-items: center; gap: .45rem;
    padding: .35rem .9rem; border-radius: 999px; background: var(--nw-paper);
    box-shadow: 0 8px 22px rgba(13, 13, 16, .12); font-weight: 800; font-size: .95rem; text-decoration: none; white-space: nowrap;
}
.nw-atom-chip span { width: 10px; height: 10px; border-radius: 50%; }
.nw-atom-chip-1 { top: 8%; inset-inline-end: 4%; }
.nw-atom-chip-2 { top: 46%; inset-inline-start: -2%; }
.nw-atom-chip-3 { bottom: 8%; inset-inline-end: 12%; }

@media (max-width: 900px) {
    .nw-hero-in { grid-template-columns: 1fr; text-align: center; }
    .nw-banner { margin-inline: auto; }
    .nw-cta { justify-content: center; }
    .nw-atom { max-width: 380px; order: -1; }
    .nw-atom-chip { font-size: .85rem; }
}

/* ------------------------------------------------------------- numbers -- */
.nw-numbers { background: var(--nw-ink); color: var(--nw-on-night); }
.nw-numbers-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; padding-block: 1.8rem; text-align: center; }
.nw-num b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; color: var(--nw-orange); line-height: 1.3; font-variant-numeric: tabular-nums; }
.nw-num > span { color: var(--nw-on-night-2); font-weight: 600; }

/* ------------------------------------------------------------ sections -- */
.nw-sec { padding-block: clamp(56px, 10vh, 112px); }
.nw-sec-cream { background: var(--nw-cream-2); }
.nw-h2 { font-weight: 900; font-size: clamp(1.9rem, 3.6vw, 2.7rem); text-align: center; }
.nw-h2 + .nw-lede { text-align: center; margin-inline: auto; }
.nw-h2::after { content: ""; display: block; width: 64px; height: 4px; margin: .7rem auto 0; border-radius: 4px; background: var(--nw-orange); }

/* Steps of one episode. */
.nw-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin: 2.4rem 0 0; padding: 0; position: relative; }
.nw-steps::before {
    content: ""; position: absolute; inset-inline: 10%; top: 44px; height: 3px; border-radius: 3px;
    background: repeating-linear-gradient(to left, var(--nw-orange) 0 10px, transparent 10px 18px); opacity: .5;
}
.nw-step {
    position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem;
    padding: 1rem .6rem 1.2rem; border-radius: var(--nw-radius); background: var(--nw-paper);
    box-shadow: 0 10px 26px rgba(13, 13, 16, .06);
}
.nw-step-icon {
    display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
    background: var(--nw-orange-soft); font-size: 2rem; margin-top: -4px;
}
.nw-step b { font-size: 1.3rem; font-weight: 900; }
.nw-step > span:last-child { color: var(--nw-ink-3); font-size: .95rem; line-height: 1.6; }
@media (max-width: 820px) {
    .nw-steps { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
    .nw-steps::before { inset-inline: auto; inset-inline-start: 48px; top: 8%; bottom: 8%; width: 3px; height: auto;
        background: repeating-linear-gradient(to bottom, var(--nw-orange) 0 10px, transparent 10px 18px); }
    .nw-step { flex-direction: row; text-align: start; gap: 1rem; padding: .8rem 1rem; }
    .nw-step b { min-width: 3.5em; }
}

/* Three stages. */
.nw-stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
.nw-stage {
    display: flex; flex-direction: column; overflow: hidden; border-radius: var(--nw-radius);
    background: var(--nw-paper); text-decoration: none; box-shadow: 0 12px 30px rgba(13, 13, 16, .07);
    transition: transform .25s var(--nw-ease), box-shadow .25s;
}
.nw-stage:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(13, 13, 16, .12); }
.nw-stage-pics { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; aspect-ratio: 16 / 9; background: var(--nw-cream-2); }
.nw-stage-pics span { background: center / cover no-repeat var(--nw-cream-2); }
.nw-stage-pics span:first-child { grid-row: span 2; }
.nw-stage-pics span:only-child { grid-column: span 2; }
.nw-stage-body { padding: 1.1rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.nw-stage-eyebrow { color: var(--nw-orange-ink); font-weight: 700; font-size: .9rem; }
.nw-stage-eyebrow::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-inline-end: .45rem; vertical-align: middle; }
.nw-stage h3 { font-size: 1.6rem; font-weight: 900; }
.nw-stage p { color: var(--nw-ink-3); }
.nw-stage-meta { margin-top: auto; padding-top: .6rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.nw-stage-meta span { background: var(--nw-cream-2); border-radius: 999px; padding: .1rem .8rem; font-weight: 700; font-size: .92rem; }
.nw-stages + .nw-center { margin-top: 2.2rem; }
@media (max-width: 900px) { .nw-stages { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* Clubs. */
.nw-clubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.4rem; }
.nw-club {
    position: relative; padding: 1.4rem 1.4rem 1.5rem; border-radius: var(--nw-radius);
    background: var(--nw-paper); box-shadow: 0 10px 26px rgba(13, 13, 16, .05);
    transition: transform .25s var(--nw-ease);
}
.nw-club:hover { transform: translateY(-4px); }
.nw-club-icon { position: absolute; inset-inline-end: 1.2rem; top: 1.1rem; font-size: 2rem; opacity: .9; }
.nw-club-eyebrow { color: var(--nw-orange-ink); font-weight: 700; font-size: .9rem; }
.nw-club h3 { font-size: 1.7rem; font-weight: 900; }
.nw-club-latin { color: var(--nw-gold); font-style: italic; font-size: .95rem; text-align: right; }
.nw-club p { color: var(--nw-ink-3); margin-top: .5rem; font-size: .98rem; line-height: 1.75; }
@media (max-width: 900px) { .nw-clubs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .nw-clubs { grid-template-columns: 1fr; } }

/* Dark call-to-action band. */
.nw-band { background: var(--nw-ink); color: var(--nw-on-night); }
.nw-band-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-block: 2.6rem; }
.nw-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; }
.nw-band p { color: var(--nw-on-night-2); }

/* Partners page. */
.nw-gets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2.4rem; }
.nw-get { padding: 1.4rem; border-radius: var(--nw-radius); background: var(--nw-paper); box-shadow: 0 10px 26px rgba(13, 13, 16, .06); }
.nw-get > span { font-size: 2.2rem; }
.nw-get h3 { font-size: 1.3rem; font-weight: 900; margin-top: .4rem; }
.nw-get p { color: var(--nw-ink-3); margin-top: .3rem; }
@media (max-width: 900px) { .nw-gets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .nw-gets { grid-template-columns: 1fr; } }
.nw-how { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 2.4rem 0 0; padding: 0; counter-reset: none; }
.nw-how li { padding: 1.4rem; border-radius: var(--nw-radius); background: var(--nw-paper); }
.nw-how b {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    background: var(--nw-orange); font-size: 1.4rem; font-weight: 900;
}
.nw-how h3 { font-size: 1.3rem; font-weight: 900; margin-top: .6rem; }
.nw-how p { color: var(--nw-ink-3); }
@media (max-width: 760px) { .nw-how { grid-template-columns: 1fr; } }
.nw-promises { list-style: none; max-width: 720px; margin: 2rem auto 0; padding: 0; display: grid; gap: .7rem; }
.nw-promises li { padding: .9rem 1.2rem; border-radius: 14px; background: var(--nw-paper); font-weight: 700; }

/* -------------------------------------------------------------- footer -- */
.nw-foot { background: var(--nw-night); color: var(--nw-on-night-2); --nw-knock: var(--nw-night); }
.nw-foot-in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; padding-block: 2.2rem; }
.nw-foot-brand { display: flex; align-items: center; gap: .8rem; }
.nw-foot-brand .nw-logo { width: 46px; height: 46px; color: var(--nw-on-night); }
.nw-foot-name { color: var(--nw-orange); font-weight: 900; font-size: 1.2rem; }
.nw-foot-tag { font-size: .92rem; }
.nw-foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.2rem; }
.nw-foot-nav a { text-decoration: none; color: var(--nw-on-night); }
.nw-foot-nav a:hover { color: var(--nw-orange); }
.nw-foot-copy { font-size: .88rem; }
@media (max-width: 820px) { .nw-foot-in { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* ================================================== «رحلة القيم» film == */
/* Static by default (no JS / reduced motion): the acts stack under one complete drawing. */
.nf-film { background: var(--nw-night); color: var(--nw-on-night); --nw-knock: #1c1b21; }
.nf-stage { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 4vw, 56px); align-items: start;
    max-width: 1280px; margin-inline: auto; padding: clamp(24px, 5vh, 56px) var(--nw-gutter); }
.nf-sky { position: sticky; top: 80px; }
.nf-svg { width: 100%; height: auto; max-height: calc(100vh - 140px); margin-inline: auto; overflow: visible; }
.nf-dust circle { fill: #fff; }
.nf-orbit-bg { fill: none; stroke: rgba(246, 235, 221, .1); stroke-width: 1.2; }
.nf-orbit { fill: none; stroke-width: 2.4; stroke-linecap: round; }
.nf-e { opacity: 1; }
.nf-core { fill: transparent; stroke: rgba(242, 140, 0, .35); stroke-width: 1.5; }
.nf-logo { color: var(--nw-on-night); }
.nf-comet { fill: #fff; opacity: 0; }
.nf-panels { display: grid; gap: 3rem; padding-block: 1rem; }
.nf-act { max-width: 34rem; }
.nf-eyebrow { color: var(--c, var(--nw-orange)); font-weight: 800; font-size: .95rem; letter-spacing: .01em; }
.nf-film .nf-eyebrow { color: var(--c, var(--nw-orange-2)); }
.nf-title { font-weight: 900; font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.25; margin-top: .2rem; }
.nf-act h2.nf-title { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.nf-line { color: var(--nw-on-night-2); font-size: 1.15rem; margin-top: .5rem; }
.nf-stats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.nf-stats span { border: 1px solid rgba(246, 235, 221, .22); border-radius: 999px; padding: .15rem .9rem; font-weight: 600; }
.nf-stats b { color: var(--c, var(--nw-orange)); font-weight: 900; }
.nf-hint { margin-top: 1.4rem; color: var(--nw-on-night-2); }
.nf-skiplink { display: inline-block; margin-top: .3rem; color: var(--nw-on-night) !important; font-size: .95rem; }
.nf-groups { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .5rem; }
.nf-groups li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 1rem; border-radius: 12px; background: rgba(246, 235, 221, .06); }
.nf-groups b::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-inline-end: .5rem; vertical-align: middle; }
.nf-groups b { font-weight: 800; }
.nf-groups span { color: var(--nw-on-night-2); white-space: nowrap; }
.nf-groups-tight li { padding: .35rem .9rem; }
.nf-chain { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; padding: 0; }
.nf-chain li { padding: .25rem .8rem; border-radius: 999px; background: rgba(255, 181, 71, .14); font-weight: 700; }
.nf-chain li + li::before { content: "←"; margin-inline-end: .4rem; color: var(--nw-on-night-2); }
.nf-names { list-style: none; columns: 2; column-gap: 1.2rem; margin: 1.1rem 0 0; padding: 0; }
.nf-names li { break-inside: avoid; padding: .2rem 0; border-bottom: 1px dashed rgba(246, 235, 221, .14); font-weight: 600; }
.nf-names li::before { content: "●"; color: var(--c); font-size: .6em; margin-inline-end: .5rem; vertical-align: middle; }
.nf-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.nf-track { display: none; }

/* Live film (site.js adds .is-live when motion is allowed). */
.nf-film.is-live { height: calc(var(--acts) * 100vh + 20vh); }
.nf-film.is-live .nf-stage {
    position: sticky; top: 0; height: 100vh; height: 100svh; max-width: none;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center;
    padding: 72px max(var(--nw-gutter), calc((100vw - 1280px) / 2)) 96px;
}
.nf-film.is-live .nf-sky { position: relative; top: auto; height: 100%; display: grid; place-items: center; }
.nf-film.is-live .nf-svg { max-height: 100%; }
.nf-film.is-live .nf-panels { position: relative; display: block; height: 100%; padding: 0; }
.nf-film.is-live .nf-act {
    position: absolute; inset-inline: 0; top: 50%;
    opacity: 0; visibility: hidden; transform: translateY(calc(-50% + 18px));
    transition: opacity .45s var(--nw-ease), transform .55s var(--nw-ease), visibility 0s .55s;
}
.nf-film.is-live .nf-act.is-on {
    opacity: 1; visibility: visible; transform: translateY(-50%);
    transition: opacity .55s var(--nw-ease) .08s, transform .65s var(--nw-ease) .08s, visibility 0s;
}
.nf-film.is-live .nf-act.is-on > * { animation: nf-rise .6s var(--nw-ease) both; }
.nf-film.is-live .nf-act.is-on > :nth-child(2) { animation-delay: .06s; }
.nf-film.is-live .nf-act.is-on > :nth-child(3) { animation-delay: .12s; }
.nf-film.is-live .nf-act.is-on > :nth-child(n+4) { animation-delay: .18s; }
.nf-film.is-live .nf-e { opacity: .16; transition: opacity .3s, r .3s; }
.nf-film.is-live .nf-e.is-lit { opacity: 1; }
.nf-film.is-live .nf-e.is-new { r: 9; }
.nf-film.is-live .nf-comet { opacity: 1; fill: var(--nw-orange-2); }
.nf-film.is-live .nf-logo .nw-logo-arc { stroke-dasharray: 1; animation: nw-draw 1.2s .3s var(--nw-ease) both; }
.nf-film.is-live .nf-logo .nw-logo-dot { transition: opacity .3s; }
.nf-film.is-away .nf-logo .nw-logo-dot { opacity: .15; }
.nf-film.is-home .nf-core { animation: nf-glow 1.6s var(--nw-ease) both; }
.nf-film.is-home .nf-e { animation: nf-twinkle 1.4s ease-out both; }
.nf-film.is-live .nf-track {
    display: flex; position: absolute; inset-inline: var(--nw-gutter); bottom: 22px; margin: 0 auto; padding: 0; max-width: 760px;
    list-style: none; justify-content: space-between; font-size: .85rem; color: var(--nw-on-night-2);
}
.nf-film.is-live .nf-track::before, .nf-film.is-live .nf-track::after {
    content: ""; position: absolute; inset-inline: 0; top: 9px; height: 2px; background: rgba(246, 235, 221, .15);
}
.nf-film.is-live .nf-track::after { background: var(--nw-orange); inset-inline-end: auto; width: calc(var(--p, 0) * 100%); }
.nf-film.is-live .nf-track li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.nf-film.is-live .nf-track li::before {
    content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(246, 235, 221, .35); background: var(--nw-night);
    transition: background .3s, border-color .3s, transform .3s;
}
.nf-film.is-live .nf-track li.is-lit { color: var(--nw-on-night); }
.nf-film.is-live .nf-track li.is-lit::before { background: var(--nw-orange); border-color: var(--nw-orange); }
.nf-film.is-live .nf-track li.is-now::before { transform: scale(1.35); }
@keyframes nf-glow { 0% { stroke-width: 1.5; stroke: rgba(242, 140, 0, .35); } 40% { stroke-width: 14; stroke: rgba(242, 140, 0, .5); } 100% { stroke-width: 3; stroke: rgba(242, 140, 0, .8); } }
@keyframes nf-twinkle { 0% { r: 6; } 40% { r: 9; } 100% { r: 6; } }
@keyframes nf-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
    .nf-stage { grid-template-columns: 1fr; }
    .nf-sky { position: relative; top: auto; max-width: 420px; margin-inline: auto; }
    .nf-film.is-live .nf-stage { grid-template-columns: 1fr; grid-template-rows: 46% 1fr; padding: 64px var(--nw-gutter) 70px; gap: .5rem; }
    .nf-film.is-live .nf-act { top: 0; transform: translateY(14px); }
    .nf-film.is-live .nf-act.is-on { transform: none; }
    .nf-film.is-live .nf-track li { font-size: 0; gap: 0; }
    .nf-title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
    .nf-act h2.nf-title { font-size: clamp(1.6rem, 7vw, 2.1rem); }
    .nf-line { font-size: 1.02rem; }
    .nf-names { columns: 1; font-size: .92rem; }
    .nf-film.is-live .nf-names li:nth-child(n+7) { display: none; }
    .nf-film.is-live .nf-groups-tight li:nth-child(n+6) { display: none; }
    .nf-film.is-live .nf-chain { display: none; }
}
@media (max-width: 900px) and (max-height: 700px) {
    .nf-film.is-live .nf-names, .nf-film.is-live .nf-groups-tight { display: none; }
}

/* Map of every course. */
.nf-map-stage { margin-top: 3rem; }
.nf-map-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-bottom: .8rem; border-bottom: 2px solid var(--c); }
.nf-map-head .nf-eyebrow { color: var(--nw-orange-ink); }
.nf-map-head h3 { font-size: 1.8rem; font-weight: 900; }
.nf-map-num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--c); font-weight: 900; font-size: 1.5rem; }
.nf-map-meta { margin-inline-start: auto; color: var(--nw-ink-3); font-weight: 700; }
.nf-map-group { margin: 1.6rem 0 .2rem; font-size: 1.25rem; font-weight: 900; }
.nf-map-group small { color: var(--nw-ink-3); font-weight: 600; font-size: .9rem; }
.nf-cards, .nf-tracks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 44%), 1fr)); gap: 1rem; margin-top: 1rem; align-items: start; }
.nf-card, .nf-trackcard {
    display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: var(--nw-paper);
    text-decoration: none; box-shadow: 0 8px 22px rgba(13, 13, 16, .06); transition: transform .2s var(--nw-ease), box-shadow .2s;
}
.nf-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(13, 13, 16, .12); }
.nf-card-img { display: grid; place-items: center; aspect-ratio: 16 / 9; background: center / cover no-repeat var(--nw-cream-2); }
.nf-card-img i { font-style: normal; font-size: 3rem; }
.nf-card-name { padding: .7rem .9rem 0; font-weight: 800; line-height: 1.55; }
.nf-card-meta { padding: .2rem .9rem .8rem; color: var(--nw-ink-3); font-size: .9rem; font-weight: 600; }
.nf-trackcard summary { display: flex; flex-direction: column; cursor: pointer; list-style: none; }
.nf-trackcard summary::-webkit-details-marker { display: none; }
.nf-trackcard ul { margin: 0; padding: 0 .9rem .9rem; list-style: none; }
.nf-trackcard li a { display: block; padding: .35rem 0; border-top: 1px solid var(--nw-rule); text-decoration: none; font-size: .95rem; }
.nf-trackcard li a:hover { color: var(--nw-orange-ink); }

/* ------------------------------------------------------- scroll reveal -- */
@media (prefers-reduced-motion: no-preference) {
    .nw-js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--nw-ease), transform .7s var(--nw-ease); }
    .nw-js [data-reveal].is-in { opacity: 1; transform: none; }
    .nw-js .nw-steps .nw-step { opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .5s var(--nw-ease), transform .6s var(--nw-ease); transition-delay: calc(var(--i) * .12s); }
    .nw-js .nw-steps.is-in .nw-step { opacity: 1; transform: none; }
    .nw-js .nw-steps.is-in .nw-step-icon { animation: nw-pop .5s var(--nw-ease) both; animation-delay: calc(var(--i) * .12s + .2s); }

    .nw-hero-text > * { animation: nf-rise .8s var(--nw-ease) both; }
    .nw-hero-text > :nth-child(2) { animation-delay: .08s; }
    .nw-want li { animation: nf-rise .7s var(--nw-ease) both; }
    .nw-want li:nth-child(1) { animation-delay: .25s; }
    .nw-want li:nth-child(2) { animation-delay: .45s; }
    .nw-want li:nth-child(3) { animation-delay: .65s; }
    .nw-want b { display: inline-block; animation: nw-pop .5s var(--nw-ease) both; }
    .nw-want li:nth-child(1) b { animation-delay: .55s; }
    .nw-want li:nth-child(2) b { animation-delay: .75s; }
    .nw-want li:nth-child(3) b { animation-delay: .95s; }
    .nw-hero-text .nw-cta { animation-delay: .9s; }
    .nw-atom svg { animation: nw-atom-in 1.1s var(--nw-ease) both; }
    .nw-atom-chip { animation: nw-pop .6s var(--nw-ease) both, nw-bob 6s ease-in-out 1.4s infinite; }
    .nw-atom-chip-1 { animation-delay: .7s, 1.4s; }
    .nw-atom-chip-2 { animation-delay: .9s, 2.2s; }
    .nw-atom-chip-3 { animation-delay: 1.1s, 3s; }
    .nw-atom-logo .nw-logo-arc { stroke-dasharray: 1; animation: nw-draw 1.2s .3s var(--nw-ease) both; }
    .nw-atom-logo .nw-logo-dot { transform-box: fill-box; transform-origin: center; animation: nw-pop .5s 1.2s var(--nw-ease) both; }
}
@media print { [data-reveal], .nw-step { opacity: 1 !important; transform: none !important; } }
@media (max-width: 560px) {
    .nf-card-name { font-size: .92rem; padding: .5rem .6rem 0; }
    .nf-card-meta { padding: .1rem .6rem .6rem; font-size: .82rem; }
    .nw-atom { max-width: 320px; }
}
@keyframes nw-pop { 0% { opacity: 0; transform: scale(.6); } 70% { transform: scale(1.08); } 100% { opacity: 1; transform: none; } }
@keyframes nw-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes nw-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes nw-atom-in { from { opacity: 0; transform: scale(.85) rotate(-8deg); } to { opacity: 1; transform: none; } }
