/* =============================================================
   NAFASI ENTERPRISE — nafasi-refresh.css
   UI refresh layer: calmer type, hairline surfaces, soft depth.
   Loaded last. Keeps the official 6-colour brand tokens untouched;
   only refines how they are applied.
   ============================================================= */

:root {
    --rf-ease:        cubic-bezier(0.22, 1, 0.36, 1);
    --rf-hairline:    rgba(22, 22, 42, 0.08);
    --rf-hairline-2:  rgba(22, 22, 42, 0.14);
    --rf-shadow-1:    0 1px 2px rgba(22, 22, 42, 0.04), 0 4px 12px -4px rgba(22, 22, 42, 0.06);
    --rf-shadow-2:    0 2px 4px rgba(22, 22, 42, 0.04), 0 24px 48px -16px rgba(22, 22, 42, 0.18);
    --rf-radius:      22px;
    --rf-radius-lg:   30px;
}

/* Container grows with large monitors instead of stopping at 1280px:
   ~1280 on laptops → ~1650 at 1920 → caps at 1760 on ultra-wide.
   Scoped above 1200px, where responsive.css hands over to 100%. */
@media (min-width: 1201px) {
    :root { --container: clamp(1280px, 86vw, 1760px); }
}

::selection { background: var(--red); color: var(--white); }

:focus-visible { border-radius: 6px; }

body { text-rendering: optimizeLegibility; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.03em;
}

.display-xl, .display-lg, .display-md, .section-header__title {
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.04;
    text-wrap: balance;
}

@media (min-width: 769px) {
    .display-md, .section-header__title { font-size: clamp(2rem, 4.2vw, 3.6rem); }
}

p { text-wrap: pretty; }

/* Section labels — the logo's colour ribbon becomes the marker */
.section-label,
.section-header__eyebrow,
.nafasi-affiliations__eyebrow {
    font-family: var(--font-subheading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--text-mid);
    gap: 0.75rem;
}

.section-label::before,
.section-header__eyebrow::before {
    width: 26px;
    height: 4px;
    border-radius: 4px;
    background: var(--coop-bar);
}

.section-header__eyebrow::after { display: none; }

/* ── Buttons — sentence case, calm, confident ─────────────── */
.btn {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    text-transform: none;
    padding: 0.875rem 1.6rem;
    gap: 0.6rem;
    transition: box-shadow 0.4s var(--rf-ease), border-color 0.4s var(--rf-ease), background-color 0.4s var(--rf-ease);
    will-change: auto;
}

.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }

.btn::before { transition: transform 0.55s var(--rf-ease); }

.btn svg { transition: transform 0.45s var(--rf-ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--filled,
.btn--filled:link,
.btn--filled:visited {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 6px 18px -6px rgba(227, 31, 40, 0.55);
}

.btn--filled:hover,
.btn--filled:focus {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 12px 28px -8px rgba(227, 31, 40, 0.6);
}

.btn--ghost,
.btn--ghost:link,
.btn--ghost:visited {
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--rf-hairline-2);
    box-shadow: none;
}

.btn--ghost::before { background: var(--navy); }

.btn--ghost:hover,
.btn--ghost:focus { border-color: var(--navy); box-shadow: none; }

.btn--ghost:hover,
.btn--ghost:hover *,
.btn--ghost:hover svg {
    color: var(--white) !important;
    stroke: var(--white) !important;
}

.btn--ghost * { transition: color 0.3s var(--rf-ease); }

.btn-arrow {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.btn-arrow .btn-arrow__line { transition: width 0.5s var(--rf-ease); }

/* ── Scroll progress (injected by nafasi-motion.js) ─────────── */
.nafasi-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--coop-gradient);
    transform: scaleX(0);
    transform-origin: left center;
    z-index: 10001;
    pointer-events: none;
}

.admin-bar .nafasi-progress { top: 32px; }

/* ── Topbar ─────────────────────────────────────────────────── */
.nafasi-topbar { font-size: 0.78rem; letter-spacing: 0.01em; }

/* ── Header ─────────────────────────────────────────────────── */
.nafasi-header {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.5s var(--rf-ease), border-color 0.5s var(--rf-ease), background-color 0.5s var(--rf-ease);
}

.nafasi-header.is-scrolled {
    background: rgba(255, 255, 255, 0.86);
    border-bottom-color: var(--rf-hairline);
    box-shadow: 0 8px 30px -12px rgba(22, 22, 42, 0.12);
}

.nafasi-header__logo img { transition: transform 0.5s var(--rf-ease); }

@media (min-width: 1025px) {
    .nafasi-nav__link,
    .nafasi-header__nav li > a {
        font-weight: 500;
        font-size: 0.9rem;
        letter-spacing: -0.005em;
    }
}

.nafasi-nav__link::after,
.nafasi-header__nav > ul > li > a::after {
    height: 2px;
    bottom: 1px;
    border-radius: 2px;
    transition: transform 0.45s var(--rf-ease);
}

.nafasi-nav__dropdown,
.nafasi-header__nav .sub-menu {
    border-radius: 16px;
    padding: 0.5rem;
    border-color: var(--rf-hairline);
    box-shadow: var(--rf-shadow-2);
}

.nafasi-nav__dropdown .nafasi-nav__link,
.nafasi-header__nav .sub-menu li > a { border-radius: 10px; }

.nafasi-header__actions .btn { padding: 0.7rem 1.35rem; font-size: 0.875rem; }

/* ── Inner-page hero eyebrow pill ───────────────────────────── */
.nafasi-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    color: var(--text-mid);
    padding: 0.45rem 0.9rem 0.45rem 0.6rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--rf-hairline);
    border-radius: var(--r-full);
    margin-bottom: 1.4rem;
}

.nafasi-hero__eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(227, 31, 40, 0.14);
    flex-shrink: 0;
}

/* inner-page heroes reuse .nafasi-hero__eyebrow as a wrapper */
.nafasi-page-hero .nafasi-hero__eyebrow {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.8);
}

/* ── Home hero — full-bleed cinematic slider ─────────────────
   Height comes from the content (padding + copy + chapter bar),
   so there is never a band of empty photo above the headline. */
.nafasi-cine {
    position: relative;
    color: var(--white);
    background: var(--navy);
    overflow: hidden;
    isolation: isolate;
}

.nafasi-cine::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--coop-bar);
    z-index: 3;
}

/* Photography */
.nafasi-cine__media {
    position: absolute;
    inset: -6% 0 0;
    z-index: -1;
    will-change: transform;
}

.nafasi-cine__bg {
    position: absolute;
    inset: 0;
    visibility: hidden;
    overflow: hidden;
}

.nafasi-cine__bg.is-leaving { visibility: visible; z-index: 1; }
.nafasi-cine__bg.is-active  { visibility: visible; z-index: 2; }

.nafasi-cine__bg picture { display: block; width: 100%; height: 100%; }

.nafasi-cine__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 35%;
    filter: saturate(0.9) contrast(1.05);
    will-change: transform;
}

/* Dark where the copy sits, clear on the right so the photo carries that side */
.nafasi-cine__shade {
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        linear-gradient(90deg, rgba(22, 22, 42, 0.94) 0%, rgba(22, 22, 42, 0.82) 32%, rgba(22, 22, 42, 0.35) 58%, rgba(22, 22, 42, 0.08) 80%, rgba(22, 22, 42, 0) 100%),
        linear-gradient(0deg, rgba(22, 22, 42, 0.85) 0%, rgba(22, 22, 42, 0) 32%);
}

/* Layout */
.nafasi-cine__container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: clamp(4rem, 9vh, 6.5rem);
}

.nafasi-cine__body { padding-bottom: clamp(3.5rem, 8vh, 5.5rem); }

.nafasi-cine__slides { display: grid; }

.nafasi-cine__slide {
    grid-area: 1 / 1;
    max-width: 44rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.45s var(--rf-ease), visibility 0s linear 0.45s;
}

.nafasi-cine__slide.is-active {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

/* Copy */
.nafasi-cine__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-subheading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 1.5rem;
}

.nafasi-cine__eyebrow::before {
    content: '';
    width: 28px;
    height: 4px;
    border-radius: 4px;
    background: var(--coop-bar);
    flex-shrink: 0;
}

.nafasi-cine__title {
    font-family: var(--font-heading);
    font-size: clamp(2.75rem, 5.4vw, 5rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: var(--white);
    margin: 0 0 1.5rem;
    text-wrap: balance;
}

.nafasi-cine__title em {
    font-style: normal;
    color: #FF4752; /* --nafasi-red-light: brand red, lifted for contrast on navy */
}

.nafasi-cine__sub {
    font-size: clamp(1rem, 1.25vw, 1.175rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.8);
    max-width: 36rem;
    margin: 0 0 2.25rem;
}

.nafasi-cine__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.nafasi-cine .btn--white {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nafasi-cine .btn--white::before { background: var(--white); }

.nafasi-cine .btn--white:hover,
.nafasi-cine .btn--white:hover * { color: var(--navy) !important; stroke: var(--navy) !important; }

.nafasi-cine .btn--white * { transition: color 0.3s var(--rf-ease); }

/* Chapter bar — five topics across the bottom, progress line on top */
.nafasi-cine__chapters {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
}

.nafasi-cine__chapter {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 0 0.65rem;
    padding: 0 0 clamp(1.5rem, 3vh, 2.25rem);
    text-align: left;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.4s var(--rf-ease);
}

.nafasi-cine__chapter:hover,
.nafasi-cine__chapter.is-active { color: var(--white); }

.nafasi-cine__chapter-bar {
    grid-column: 1 / -1;
    grid-row: 1;
    position: relative;
    height: 2px;
    margin-bottom: 1.1rem;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    border-radius: 2px;
}

.nafasi-cine__chapter-num,
.nafasi-cine__chapter-label { grid-row: 2; }

.nafasi-cine__chapter-num {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.nafasi-cine__chapter-label {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
}

.nafasi-cine__chapter-fill {
    position: absolute;
    inset: 0;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: left center;
}

@media (max-width: 1024px) {
    .nafasi-cine__chapters { gap: 0.5rem; }
    .nafasi-cine__chapter-label { display: none; }
    .nafasi-cine__img { object-position: center 35%; }
    .nafasi-cine__shade {
        background: linear-gradient(90deg, rgba(22, 22, 42, 0.9) 0%, rgba(22, 22, 42, 0.6) 100%),
                    linear-gradient(0deg, rgba(22, 22, 42, 0.85) 0%, rgba(22, 22, 42, 0) 40%);
    }
}

@media (max-width: 768px) {
    .nafasi-cine__container { padding-top: clamp(4.5rem, 12vh, 6.5rem); }
    .nafasi-cine__body { padding-bottom: 2rem; }
    .nafasi-cine__chapter { padding-bottom: 1.25rem; }
    .nafasi-cine__chapter-bar { margin-bottom: 0.75rem; }
    .nafasi-cine__shade {
        background: linear-gradient(0deg, rgba(22, 22, 42, 0.96) 0%, rgba(22, 22, 42, 0.82) 65%, rgba(22, 22, 42, 0.4) 100%);
    }
    .nafasi-cine__eyebrow { font-size: 0.66rem; letter-spacing: 0.1em; margin-bottom: 1rem; }
    .nafasi-cine__title { font-size: clamp(2.25rem, 10vw, 3rem); margin-bottom: 1rem; }
    .nafasi-cine__sub { margin-bottom: 1.75rem; }
    .nafasi-cine__actions .btn { flex: 1 1 auto; }
}

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

/* ── Ticker ─────────────────────────────────────────────────── */
.nafasi-ticker { padding: 1.05rem 0; }

.nafasi-ticker__item {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    padding: 0 2rem;
    gap: 2rem;
}

/* GSAP takes over the marquee so it can react to scroll velocity */
.nafasi-ticker.is-gsap .nafasi-ticker__track { animation: none; }

/* ── Stats ──────────────────────────────────────────────────── */
.nafasi-stats { border-bottom-color: var(--rf-hairline); }
.nafasi-stats__grid { border-left-color: var(--rf-hairline); }

.nafasi-stats__item {
    border-right-color: var(--rf-hairline);
    transition: background-color 0.5s var(--rf-ease);
}

.nafasi-stats__num {
    font-weight: 700;
    letter-spacing: -0.05em;
    font-size: clamp(2.75rem, 4.6vw, 4.5rem);
    font-variant-numeric: tabular-nums;
}

.nafasi-stats__label { font-weight: 600; color: var(--text); letter-spacing: 0.12em; }

/* ── Cards — shared surface language ────────────────────────
   Hover lift uses the standalone `translate` property so it never
   fights GSAP's inline `transform` during scroll reveals.       */
.nafasi-pathway-card,
.nafasi-project-card,
.nafasi-roadmap-card,
.nafasi-testimonial-card,
.nafasi-card {
    border: 1px solid var(--rf-hairline);
    border-radius: var(--rf-radius);
    box-shadow: var(--rf-shadow-1);
    transition: translate 0.6s var(--rf-ease), box-shadow 0.6s var(--rf-ease), border-color 0.4s var(--rf-ease);
}

.nafasi-pathway-card:hover,
.nafasi-project-card:hover,
.nafasi-roadmap-card:hover,
.nafasi-testimonial-card:hover,
.nafasi-card:hover {
    transform: none;
    translate: 0 -6px;
    box-shadow: var(--rf-shadow-2);
    border-color: var(--rf-hairline-2);
}

/* ── Services ───────────────────────────────────────────────── */
.nafasi-services__grid {
    border-color: var(--rf-hairline);
    border-radius: var(--rf-radius-lg);
    background: var(--white);
}

.nafasi-service-card {
    --accent: var(--red);
    --accent-text: var(--red-text);
    border-color: var(--rf-hairline) !important;
    padding: clamp(1.75rem, 3vw, 2.75rem);
    transition: background-color 0.6s var(--rf-ease);
}

.nafasi-service-card:nth-child(6n+2) { --accent: var(--orange);     --accent-text: var(--orange-text); }
.nafasi-service-card:nth-child(6n+3) { --accent: var(--yellow);     --accent-text: var(--gold-text); }
.nafasi-service-card:nth-child(6n+4) { --accent: var(--cyan);       --accent-text: var(--cyan-text); }
.nafasi-service-card:nth-child(6n+5) { --accent: var(--blue-royal); --accent-text: var(--blue-text); }
.nafasi-service-card:nth-child(6n+6) { --accent: var(--purple);     --accent-text: var(--purple-text); }

.nafasi-service-card::before {
    height: 3px;
    background: var(--accent);
    transition: transform 0.7s var(--rf-ease);
}

.nafasi-service-card:hover { background: var(--cream); }

.nafasi-service-card__num {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--accent-text);
    font-variant-numeric: tabular-nums;
}

.nafasi-service-card__icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--accent) 12%, white);
    transition: transform 0.6s var(--rf-ease);
}

.nafasi-service-card:hover .nafasi-service-card__icon-wrap { transform: translateY(-3px); }

.nafasi-service-card__title { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.025em; }
.nafasi-service-card__desc { font-size: 0.9375rem; line-height: 1.7; }
.nafasi-service-card .btn-arrow { color: var(--accent-text); }

/* ── Pathways ───────────────────────────────────────────────── */
.nafasi-pathway-card { border-radius: var(--rf-radius-lg); padding: clamp(2rem, 3.6vw, 3.25rem); }
.nafasi-pathway-card--enterprise:hover { border-color: var(--rf-hairline-2); }

.nafasi-pathway-card__pill,
.nafasi-testimonial-card__badge,
.nafasi-status-badge {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.06em;
}

.nafasi-pathway-card__icon-wrap { width: 56px; height: 56px; border-radius: 16px; }
.nafasi-pathway-card__title { font-weight: 700; font-size: clamp(1.4rem, 2vw, 1.7rem); letter-spacing: -0.03em; }
.nafasi-pathway-card__footer { border-top-color: var(--rf-hairline); }

/* ── Projects ───────────────────────────────────────────────── */
.nafasi-project-card__title { font-weight: 700; letter-spacing: -0.025em; }
.nafasi-project-card__metrics { border-radius: 14px; }
.nafasi-project-metric__val { font-weight: 700; font-variant-numeric: tabular-nums; }
.nafasi-progress-bar { height: 4px; }
.nafasi-progress-bar__fill { background: var(--coop-gradient); transition: none; }
.nafasi-project-card__footer { border-top-color: var(--rf-hairline); }

/* ── Roadmap ────────────────────────────────────────────────── */
.nafasi-roadmap-grid { position: relative; }

.nafasi-roadmap-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    border-radius: 3px;
    background: var(--coop-gradient);
    transform: scaleX(0);
    transform-origin: left center;
    z-index: 2;
    pointer-events: none;
}

.nafasi-roadmap-card { overflow: hidden; }

.nafasi-roadmap-card__number {
    font-size: clamp(2.25rem, 3vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    color: transparent;
    -webkit-text-stroke: 1.25px var(--red);
    font-variant-numeric: tabular-nums;
    transition: color 0.5s var(--rf-ease);
}

.nafasi-roadmap-card:hover .nafasi-roadmap-card__number { color: var(--red); }
.nafasi-roadmap-card__title { font-weight: 700; letter-spacing: -0.02em; }
.nafasi-roadmap-cta { border-color: var(--rf-hairline); border-radius: var(--rf-radius-lg); }

/* ── Testimonials ───────────────────────────────────────────── */
.nafasi-testimonial-card { position: relative; overflow: hidden; }

.nafasi-testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -0.15em;
    right: 0.2em;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 8rem;
    line-height: 1;
    color: var(--cream-mid);
    pointer-events: none;
}

.nafasi-testimonial-card__quote { position: relative; font-size: 1rem; line-height: 1.75; }
.nafasi-testimonial-card__author-row { border-top-color: var(--rf-hairline); }
.nafasi-testimonial-card__name { font-weight: 700; }

.nafasi-community-banner { border-radius: var(--rf-radius-lg); border: 0; }
.nafasi-community-banner__media img { will-change: transform; }
.nafasi-community-banner__title { letter-spacing: -0.03em; }

/* ── About — editorial split ───────────────────────────────── */
.nafasi-about { background: var(--cream); }

.nafasi-about__head {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: end;
    padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
    border-bottom: 1px solid var(--rf-hairline);
}

.nafasi-about__title { margin: 0; }

.nafasi-about__intro {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-mid);
    margin: 0;
}

.nafasi-about__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: stretch;
}

/* Photo fills the full height of the content column */
.nafasi-about__media {
    position: relative;
    margin: 0;
    min-height: 520px;
    border-radius: var(--rf-radius-lg);
    overflow: hidden;
    background: var(--navy);
    isolation: isolate;
}

.nafasi-about__media picture { position: absolute; inset: 0; }

.nafasi-about__img {
    position: absolute;
    left: 0;
    top: -8%;
    width: 100%;
    height: 116%;
    object-fit: cover;
    object-position: center 30%;
    will-change: transform;
}

.nafasi-about__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(22, 22, 42, 0.55) 0%, rgba(22, 22, 42, 0) 40%);
    pointer-events: none;
}

.nafasi-about__badge {
    position: absolute;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.1rem 1.35rem 1.2rem;
    color: var(--white);
    background: rgba(22, 22, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
}

.nafasi-about__badge-year {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
}

.nafasi-about__badge-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.nafasi-about__badge-text::before {
    content: '';
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background: var(--coop-bar);
}

/* Numbered commitments */
.nafasi-about__content { display: flex; flex-direction: column; }

.nafasi-about__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 2.5rem;
    margin: 0 0 clamp(2rem, 4vw, 3rem);
    padding: 0;
}

.nafasi-about__feature {
    --accent: var(--red);
    position: relative;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rf-hairline-2);
}

.nafasi-about__feature:nth-child(2) { --accent: var(--orange); }
.nafasi-about__feature:nth-child(3) { --accent: var(--cyan); }
.nafasi-about__feature:nth-child(4) { --accent: var(--purple); }

.nafasi-about__feature::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--accent);
}

.nafasi-about__feature-num {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.5rem;
}

.nafasi-about__feature p {
    font-size: 0.975rem;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
}

/* Mission / Vision */
.nafasi-about__mvv {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.nafasi-about__panel {
    padding: clamp(1.5rem, 2.5vw, 2rem);
    border-radius: var(--rf-radius);
    background: var(--white);
    border: 1px solid var(--rf-hairline);
}

.nafasi-about__panel--mission {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.nafasi-about__panel-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-subheading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red);
    margin: 0 0 0.9rem;
}

.nafasi-about__panel--mission .nafasi-about__panel-label { color: #FF4752; }

.nafasi-about__panel p {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-mid);
    margin: 0;
}

.nafasi-about__panel--mission p { color: rgba(255, 255, 255, 0.82); }

.nafasi-about__cta { align-self: flex-start; margin-top: clamp(2rem, 3.5vw, 2.75rem); }

@media (max-width: 1024px) {
    .nafasi-about__head,
    .nafasi-about__grid { grid-template-columns: minmax(0, 1fr); }
    .nafasi-about__head { gap: 1.25rem; }
    .nafasi-about__media { min-height: 0; aspect-ratio: 4 / 3; }
}

@media (max-width: 600px) {
    .nafasi-about__features,
    .nafasi-about__mvv { grid-template-columns: minmax(0, 1fr); }
    .nafasi-about__features { gap: 1.5rem; }
    .nafasi-about__media { aspect-ratio: 4 / 5; }
    .nafasi-about__cta { align-self: stretch; }
}

/* ── News ───────────────────────────────────────────────────── */
.nafasi-card__thumb { height: 230px; }
.nafasi-card__img { transition: transform 1s var(--rf-ease); }
.nafasi-card__title { font-weight: 700; letter-spacing: -0.02em; }
.nafasi-card__foot { border-top-color: var(--rf-hairline); }

.nafasi-card__badge {
    font-family: var(--font-body);
    font-weight: 600;
    box-shadow: none;
    border: 1px solid var(--rf-hairline);
}

/* ── CTA banner ─────────────────────────────────────────────── */
.nafasi-cta-banner__geo { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.nafasi-cta-banner__geo-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    will-change: transform;
}

.nafasi-cta-banner__geo-shape--1 { width: 420px; height: 420px; background: var(--red);    top: -120px; right: 8%; }
.nafasi-cta-banner__geo-shape--2 { width: 320px; height: 320px; background: var(--purple); bottom: -140px; left: 12%; opacity: 0.4; }
.nafasi-cta-banner__geo-shape--3 { width: 260px; height: 260px; background: var(--cyan);   top: 40%; left: 48%; opacity: 0.22; }

.nafasi-cta-banner__title { font-weight: 700; letter-spacing: -0.04em; line-height: 1.04; }

.nafasi-cta-card,
.nafasi-cta-banner__card {
    border-radius: var(--rf-radius-lg);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

/* ── Affiliations ───────────────────────────────────────────── */
.nafasi-affiliation-card {
    border-color: var(--rf-hairline);
    border-radius: 18px;
    transition: translate 0.6s var(--rf-ease), box-shadow 0.6s var(--rf-ease), background-color 0.4s var(--rf-ease), border-color 0.4s;
}

.nafasi-affiliation-card:hover {
    transform: none;
    translate: 0 -4px;
    border-color: var(--rf-hairline-2);
    box-shadow: var(--rf-shadow-2);
}

.nafasi-affiliations__heading { font-weight: 700; letter-spacing: -0.03em; }

/* ── Inner page heroes ──────────────────────────────────────── */
.nafasi-page-hero { padding-bottom: clamp(4rem, 7vw, 6rem); }

.nafasi-page-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--coop-bar);
}

.nafasi-page-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 70% 30%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, black 0%, transparent 70%);
}

.nafasi-page-hero__title { font-weight: 700; letter-spacing: -0.045em; line-height: 1.04; }

/* ── Footer ─────────────────────────────────────────────────── */
.nafasi-footer__pre-text h3,
.nafasi-footer__pre-cta-text h3 { font-weight: 700; letter-spacing: -0.035em; }

/* ── Back to top ────────────────────────────────────────────── */
.nafasi-btt {
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 12px 30px -10px rgba(22, 22, 42, 0.5);
}

/* ── Split-word reveal masks (nafasi-motion.js) ─────────────── */
/* padding gives ascenders/descenders room inside the mask;
   matching negative margin keeps the line box unchanged */
.nafasi-split .word-wrap {
    line-height: inherit;
    padding: 0.1em 0 0.18em;
    margin: -0.1em 0 -0.18em;
}

.nafasi-split .word { padding-right: 0; }

/* ── Responsive refinements ─────────────────────────────────── */
@media (max-width: 1024px) {
    .nafasi-roadmap-line { display: none; }
}

@media (max-width: 768px) {
    :root { --rf-radius: 18px; --rf-radius-lg: 22px; }
    .btn,
    .btn--lg { letter-spacing: 0 !important; font-size: 0.9rem !important; }
    .nafasi-testimonial-card::before { font-size: 6rem; }
    .nafasi-cta-banner__geo-shape { filter: blur(50px); }
}

@media (prefers-reduced-motion: reduce) {
    .nafasi-progress { display: none; }
    .nafasi-pathway-card:hover,
    .nafasi-project-card:hover,
    .nafasi-roadmap-card:hover,
    .nafasi-testimonial-card:hover,
    .nafasi-card:hover,
    .nafasi-affiliation-card:hover { translate: none; }
}
