/* =====================================================
   Raise the Minbar — v2 Landing Page
   The Intelligent Masjid
   ===================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Dark mode as default */
    --bg:              #060e0e;
    --bg-surface:      #0c1919;
    --bg-card:         #0f1e1e;
    --bg-card-h:       #132323;
    --primary:         #00c8c8;
    --primary-dim:     #008888;
    --primary-glow:    rgba(0, 200, 200, 0.10);
    --primary-glow-strong: rgba(0, 200, 200, 0.22);
    --accent:          #d4700a;
    --accent-glow:     rgba(212, 112, 10, 0.15);
    --text:            #eef4f4;
    --text-secondary:  #7a9898;
    --text-muted:      #3e5555;
    --border:          #162828;
    --border-light:    #1e3636;
    --shadow:          rgba(0, 0, 0, 0.6);
    --nav-bg:          rgba(6, 14, 14, 0.88);
    --gradient-primary: linear-gradient(135deg, #008888 0%, #00c8c8 100%);
}

[data-theme="light"] {
    --bg:              #f4fafa;
    --bg-surface:      #ffffff;
    --bg-card:         #ffffff;
    --bg-card-h:       #eef8f8;
    --primary:         #007a7a;
    --primary-dim:     #005555;
    --primary-glow:    rgba(0, 122, 122, 0.08);
    --primary-glow-strong: rgba(0, 122, 122, 0.18);
    --accent:          #b85c00;
    --accent-glow:     rgba(184, 92, 0, 0.10);
    --text:            #0c1a1a;
    --text-secondary:  #4a6868;
    --text-muted:      #8aacac;
    --border:          #d0e8e8;
    --border-light:    #e4f2f2;
    --shadow:          rgba(0, 0, 0, 0.10);
    --nav-bg:          rgba(244, 250, 250, 0.88);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background 0.35s ease, color 0.35s ease;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ---------- Typography Helpers ---------- */
.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 18px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.18;
    color: var(--text);
    margin-bottom: 24px;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 620px;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.nav-container {
    position: relative;
    z-index: 1;
    max-width: 1160px;
    margin: 0 auto;
    padding: 15px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-logo .logo-icon { width: 28px; height: 28px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 450;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
    background: var(--primary);
    color: var(--bg) !important;
    padding: 9px 20px;
    border-radius: 6px;
    font-weight: 600 !important;
    font-size: 0.84rem !important;
    transition: opacity 0.2s, transform 0.2s !important;
}

.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* Theme toggle */
.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s;
    flex-shrink: 0;
}

.theme-toggle-btn:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle-btn svg { width: 16px; height: 16px; }

/* Mobile menu toggle (hidden on desktop) */
.nav-menu-toggle {
    display: none;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text);
    transition: border-color 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.nav-menu-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.nav-menu-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.nav-menu-toggle-bars {
    width: 22px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nav-menu-toggle-bar {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav.nav--open .nav-menu-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav.nav--open .nav-menu-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav.nav--open .nav-menu-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 7px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 8px 28px var(--primary-glow-strong); }

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}
.btn-ghost:hover { color: var(--text); border-color: var(--primary); transform: translateY(-1px); }

.btn-partner {
    background: var(--primary);
    color: var(--bg);
    font-size: 1.05rem;
    padding: 16px 40px;
    border-radius: 8px;
}
.btn-partner:hover { opacity: 0.9; transform: translateY(-3px); box-shadow: 0 12px 40px var(--primary-glow-strong); }


/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 28px 60px;
    position: relative;
    overflow: hidden;
}

/* subtle radial glow in background */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-text { max-width: 540px; }

.hero-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    border: 1px solid var(--primary-dim);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 28px;
    background: var(--primary-glow);
}

.hero-headline {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 22px;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

.hero-pull {
    font-family: 'Amiri', serif;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--primary);
    border-left: 2px solid var(--primary-dim);
    padding-left: 18px;
    margin-bottom: 38px;
    line-height: 1.5;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Node Map --- */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.node-map {
    width: 100%;
    max-width: 520px;
    height: auto;
    overflow: visible;
}

/* Connection lines — flowing dashes */
.conn-line {
    stroke: var(--primary-dim);
    stroke-width: 1.5;
    stroke-dasharray: 5 14;
    animation: line-flow 4s linear infinite;
    opacity: 0.55;
}

.conn-line.secondary {
    stroke-dasharray: 3 18;
    opacity: 0.25;
    animation-duration: 6s;
}

.conn-line:nth-child(1) { animation-delay: 0s; }
.conn-line:nth-child(2) { animation-delay: 0.8s; }
.conn-line:nth-child(3) { animation-delay: 1.6s; }
.conn-line:nth-child(4) { animation-delay: 2.4s; }
.conn-line:nth-child(5) { animation-delay: 3.2s; }
.conn-line:nth-child(6) { animation-delay: 0.4s; }
.conn-line:nth-child(7) { animation-delay: 1.2s; }
.conn-line:nth-child(8) { animation-delay: 2.0s; }
.conn-line:nth-child(9) { animation-delay: 2.8s; }
.conn-line:nth-child(10) { animation-delay: 3.6s; }

@keyframes line-flow {
    to { stroke-dashoffset: -76; }
}

/* Pulse rings on center node */
.pulse-ring {
    fill: none;
    stroke: var(--primary);
    stroke-width: 1;
    transform-box: fill-box;
    transform-origin: center;
    animation: ring-expand 3.6s ease-out infinite;
}
.pulse-ring.r1 { animation-delay: 0s; }
.pulse-ring.r2 { animation-delay: 1.2s; }
.pulse-ring.r3 { animation-delay: 2.4s; }

@keyframes ring-expand {
    0%   { transform: scale(0.4); opacity: 0.7; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* Center node */
.center-node-bg {
    fill: var(--primary-glow-strong);
    stroke: var(--primary);
    stroke-width: 1.5;
}
.center-node {
    fill: var(--bg-surface);
    stroke: var(--primary);
    stroke-width: 1.5;
}

/* Outer nodes */
.outer-node {
    fill: var(--bg-card);
    stroke: var(--primary-dim);
    stroke-width: 1.5;
    animation: node-pulse 3s ease-in-out infinite;
}

.outer-node:nth-child(1)  { animation-delay: 0s; }
.outer-node:nth-child(2)  { animation-delay: 0.6s; }
.outer-node:nth-child(3)  { animation-delay: 1.2s; }
.outer-node:nth-child(4)  { animation-delay: 1.8s; }
.outer-node:nth-child(5)  { animation-delay: 2.4s; }

@keyframes node-pulse {
    0%, 100% { opacity: 0.7; }
    50%       { opacity: 1; stroke: var(--primary); }
}

.node-label {
    fill: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.04em;
    dominant-baseline: middle;
    pointer-events: none;
}

.center-label {
    fill: var(--primary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
}


/* =====================================================
   THE WEIGHT SECTION
   ===================================================== */

.weight-section {
    padding: 120px 0 100px;
    position: relative;
}

.weight-section .section-header {
    margin-bottom: 56px;
}

/* =====================================================
   WEIGHT BAR CHART ANIMATION
   ===================================================== */

.weight-viz {
    margin-bottom: 70px;
}

.weight-bars-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    height: 280px;
    padding-bottom: 0;
    position: relative;
}

/* individual bar group */
.wbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex: 1;
    max-width: 130px;
    height: 100%;
    position: relative;
}

/* floating task tags above each bar */
.wbar-tasks {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    pointer-events: none;
    z-index: 2;
}

.wtask {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #ffffff;
    white-space: nowrap;
    opacity: 0;
    animation: wtask-float 5s ease-out infinite;
}

[data-theme="light"] .wtask {
    color: var(--text-muted);
}

.wt-a { animation-delay: 0s; }
.wt-b { animation-delay: 1.6s; }
.wt-c { animation-delay: 3.2s; }

@keyframes wtask-float {
    0%   { opacity: 0;   transform: translateY(20px); }
    20%  { opacity: 0.7; }
    80%  { opacity: 0.3; transform: translateY(-30px); }
    100% { opacity: 0;   transform: translateY(-50px); }
}

/* the bar track: hollow rectangle matching logo style */
.wbar-track {
    width: 100%;
    flex: 1;
    position: relative;
    border: 1.5px solid var(--primary-dim);
    border-radius: 3px 3px 0 0;
    overflow: hidden;
    background: transparent;
    align-self: flex-end;
}

/* dashed "potential" overlay at full height */
.wbar-potential {
    position: absolute;
    inset: 0;
    border: 1px dashed rgba(0,200,200,0.15);
    pointer-events: none;
}

/* the fill — starts low, breathes */
.wbar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--primary-glow-strong) 0%, var(--primary-glow) 100%);
    border-top: 1.5px solid var(--primary);
    transition: height 0.4s ease;
}

/* per-bar height and animation */
.wbar-1 .wbar-track { height: 68%; }
.wbar-2 .wbar-track { height: 56%; }
.wbar-3 .wbar-track { height: 78%; }
.wbar-4 .wbar-track { height: 44%; }
.wbar-5 .wbar-track { height: 62%; }

.wb-fill-1 { animation: bar-breathe-1 7s ease-in-out infinite; }
.wb-fill-2 { animation: bar-breathe-2 7s ease-in-out infinite; }
.wb-fill-3 { animation: bar-breathe-3 7s ease-in-out infinite; }
.wb-fill-4 { animation: bar-breathe-4 7s ease-in-out infinite; }
.wb-fill-5 { animation: bar-breathe-5 7s ease-in-out infinite; }

/* each bar breathes at its own tempo — struggling to rise */
@keyframes bar-breathe-1 {
    0%,100% { height: 100%; }
    30%     { height: 60%; }
    55%     { height: 40%; }
    80%     { height: 20%; }
}
@keyframes bar-breathe-2 {
    0%,100% { height: 100%; }
    32%     { height: 60%; }
    57%     { height: 40%; }
    82%     { height: 20%; }
}
@keyframes bar-breathe-3 {
    0%,100% { height: 100%; }
    33%     { height: 60%; }
    57%     { height: 40%; }
    79%     { height: 20%; }
}
@keyframes bar-breathe-4 {
    0%,100% { height: 100%; }
    35%     { height: 60%; }
    54%     { height: 40%; }
    83%     { height: 20%; }
}
@keyframes bar-breathe-5 {
    0%,100% { height: 100%; }
    37%     { height: 60%; }
    78%     { height: 40%; }
    86%     { height: 20%; }
}

/* bar label + state word */
.wbar-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    gap: 3px;
}

.wbar-name {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.wbar-state {
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* baseline rule */
.wbar-baseline {
    height: 1px;
    background: var(--border-light);
    margin: 0 0 14px;
}

.wbar-caption {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Bridge quote */
.bridge-quote {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 64px 0 60px;
}

.bridge-line {
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.bridge-quote p {
    font-family: 'Amiri', serif;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-style: italic;
    color: var(--text);
    text-align: center;
    flex-shrink: 0;
    max-width: 680px;
    line-height: 1.5;
}

/* Mission stakes */
.mission-stakes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 48px;
}

.stake-item {
    padding: 32px 28px;
    border-right: 1px solid var(--border);
    position: relative;
}

.stake-item:last-child { border-right: none; }

.stake-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.stake-item p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* responsive weight bars */
@media (max-width: 600px) {
    .weight-bars-wrap { gap: 10px; height: 200px; }
    .wbar-name { font-size: 0.6rem; }
    .wbar-state { display: none; }
    .wtask { display: none; }
}


/* =====================================================
   THE VISION SECTION
   ===================================================== */

.vision-section {
    padding: 120px 0 100px;
    position: relative;
    background: var(--bg-surface);
}

.vision-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-dim), transparent);
}

.vision-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-dim), transparent);
}

.vision-opening {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 500;
    line-height: 1.3;
    color: var(--text);
    max-width: 820px;
    margin: 0 auto 60px;
    text-align: center;
}

/* (split visualization removed — replaced by per-pillar icons) */

/* Vision Pillars */
.vision-pillars {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 60px;
}

.pillar-item {
    display: grid;
    grid-template-columns: 52px 32px 1fr;
    align-items: center;
    gap: 20px;
    padding: 26px 36px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.pillar-item:last-child { border-bottom: none; }

.pillar-item:hover { background: var(--primary-glow); }

/* Per-item icon */
.pillar-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    color: var(--primary);
    opacity: 0.75;
    transition: opacity 0.2s;
}

.pillar-item:hover .pillar-icon { opacity: 1; }

.pillar-icon svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.pillar-num {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--primary-dim);
    flex-shrink: 0;
    text-align: center;
}

.pillar-item p,
.pillar-text {
    font-size: 0.97rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pillar-text strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
    margin-bottom: 3px;
}

/* ---- Pillar icon animations ---- */

/* 01 – rings pulse outward */
.pi-ring { fill: none; }
.pi-ring-1 { animation: pi-ring-expand 3s ease-out infinite; animation-delay: 0s; }
.pi-ring-2 { animation: pi-ring-expand 3s ease-out infinite; animation-delay: 0.6s; }
.pi-ring-3 { animation: pi-ring-expand 3s ease-out infinite; animation-delay: 1.2s; }

@keyframes pi-ring-expand {
    0%   { opacity: 0.9; }
    60%  { opacity: 0.4; }
    100% { opacity: 0.1; }
}

/* 02 – lines draw in, pulse dot blinks */
.pi-line { stroke-dasharray: 40; stroke-dashoffset: 40; animation: pi-line-draw 1.5s ease-out forwards; }
.pi-line-1 { animation-delay: 0.1s; }
.pi-line-2 { animation-delay: 0.4s; }
.pi-line-3 { animation-delay: 0.7s; }
.pi-line-4 { animation-delay: 1.0s; }

@keyframes pi-line-draw { to { stroke-dashoffset: 0; } }

/* 03 – dashes flow along communication lines */
.pi-dash { animation: pi-dash-flow 2s linear infinite; }
.pi-dash-1 { animation-delay: 0s; }
.pi-dash-2 { animation-delay: 0.6s; }
.pi-dash-3 { animation-delay: 1.2s; }

@keyframes pi-dash-flow { to { stroke-dashoffset: -24; } }

/* 04 – lens breathes */
.pi-lens { animation: pi-lens-breathe 3s ease-in-out infinite; }

@keyframes pi-lens-breathe {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1; }
}

/* 05 – wave shifts along x-axis */
.pi-wave { animation: pi-wave-shift 3s linear infinite; }

@keyframes pi-wave-shift {
    0%   { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -60; }
}

/* shared: pulse dot blinks */
.pi-pulse { animation: pi-blink 2s ease-in-out infinite; }

@keyframes pi-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.vision-pull {
    font-family: 'Amiri', serif;
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    font-style: italic;
    color: var(--text);
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.55;
    padding: 48px 32px;
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
}

.vision-pull::before {
    content: '\201C';
    font-size: 5rem;
    position: absolute;
    top: -10px;
    left: 28px;
    color: var(--primary-dim);
    font-family: 'Amiri', serif;
    line-height: 1;
    opacity: 0.5;
}


/* =====================================================
   OUR STORY / THE SHIFT
   ===================================================== */

.story-section {
    padding: 120px 0 100px;
    background: var(--bg-surface);
    position: relative;
}

.story-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-dim), transparent);
}

/* Shift headline — animated text swap */
.shift-headline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 80px;
    text-align: center;
    flex-wrap: wrap;
}

.shift-from, .shift-to {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
}

.shift-from {
    color: var(--text-muted);
    position: relative;
}

.shift-from::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: 4px;
    height: 2px;
    background: var(--text-muted);
    opacity: 0.4;
}

.shift-to {
    color: var(--primary);
    animation: shift-glow 3s ease-in-out infinite alternate;
}

@keyframes shift-glow {
    from { text-shadow: none; }
    to   { text-shadow: 0 0 40px var(--primary-glow-strong); }
}

.shift-arrow {
    font-size: 2rem;
    color: var(--border-light);
    font-weight: 200;
    flex-shrink: 0;
}

/* Story body */
.story-body {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 60px;
    align-items: start;
    max-width: 960px;
    margin: 0 auto;
}

.story-pull-left {
    padding-top: 6px;
    position: sticky;
    top: 100px;
}

.story-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 22px;
}

.story-lead {
    font-size: 1.2rem !important;
    color: var(--text) !important;
    font-weight: 500;
}

.story-blockquote {
    font-family: 'Amiri', serif;
    font-size: 1.35rem;
    font-style: italic;
    color: var(--text);
    border-left: 3px solid var(--primary);
    padding: 20px 28px;
    margin: 32px 0;
    background: var(--primary-glow);
    border-radius: 0 8px 8px 0;
    line-height: 1.5;
}

.story-proof {
    color: var(--text-muted) !important;
    font-size: 0.92rem !important;
    border-top: 1px solid var(--border);
    padding-top: 22px;
    margin-top: 8px;
}


/* =====================================================
   PARTNER / CTA SECTION
   ===================================================== */

.partner-section {
    padding: 140px 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background: var(--bg);
}

/* Rising staircase bars background — echoes the logo */
.partner-visual {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 560px;
    height: 320px;
    pointer-events: none;
    color: var(--primary);
    opacity: 0.12;
}

.partner-bars-svg { width: 100%; height: 100%; }

.pb-bar {
    transform-origin: bottom center;
    transform-box: fill-box;
    animation: pb-rise 6s ease-in-out infinite;
}
.pb-bar-1 { animation-delay: 0s; }
.pb-bar-2 { animation-delay: 0.4s; }
.pb-bar-3 { animation-delay: 0.8s; }
.pb-bar-4 { animation-delay: 1.2s; }
.pb-bar-5 { animation-delay: 1.6s; }

@keyframes pb-rise {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1; }
}

.partner-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.partner-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 28px;
    background: var(--accent-glow);
}

.partner-headline {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 22px;
    letter-spacing: -0.01em;
}

.partner-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.partner-secondary {
    margin-top: 18px;
    font-size: 0.88rem;
    color: var(--text-muted);
}


/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.footer-brand .logo-icon { width: 22px; height: 22px; }

.footer-copy {
    font-size: 0.82rem;
    color: var(--text-muted);
}


/* =====================================================
   SCROLL-IN ANIMATIONS
   ===================================================== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr 1fr; gap: 40px; }
    .weight-grid { grid-template-columns: repeat(2, 1fr); }
    .wc-1, .wc-2, .wc-3, .wc-4, .wc-5 {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .nav-menu-toggle {
        display: inline-flex;
    }

    .nav-container {
        flex-wrap: wrap;
        row-gap: 0;
        padding: 12px 20px;
    }

    .nav-links {
        flex-basis: 100%;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        padding-top: 0;
        padding-bottom: 0;
        margin: 0;
        border-top: 1px solid transparent;
        transition:
            max-height 0.38s ease,
            padding 0.28s ease,
            border-color 0.2s ease;
    }

    .nav.nav--open .nav-links {
        max-height: min(85vh, 560px);
        overflow-y: auto;
        padding-top: 10px;
        padding-bottom: 20px;
        border-top-color: var(--border);
        -webkit-overflow-scrolling: touch;
    }

    .nav-links > a:not(.nav-cta) {
        padding: 14px 4px;
        border-bottom: 1px solid var(--border);
        white-space: normal;
    }

    .nav-links > .theme-toggle-btn {
        margin: 12px 0 8px;
        align-self: flex-start;
    }

    .nav-links > .nav-cta {
        margin-top: 6px;
        text-align: center;
        padding: 12px 18px;
        border-bottom: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text { max-width: 100%; }
    .hero-pull { text-align: left; }
    .hero-ctas { justify-content: center; }

    .hero-visual { display: none; }

    .weight-grid { grid-template-columns: 1fr; }

    .bridge-quote { flex-direction: column; gap: 16px; }
    .bridge-line { width: 60px; height: 1px; }

    .mission-stakes { grid-template-columns: 1fr; }
    .stake-item { border-right: none; border-bottom: 1px solid var(--border); }
    .stake-item:last-child { border-bottom: none; }

    .pillar-item { grid-template-columns: 40px 28px 1fr; gap: 14px; padding: 22px 20px; }

    .story-body { grid-template-columns: 1fr; gap: 20px; }
    .story-pull-left { position: static; }

    .shift-headline { gap: 12px; }

    .vision-opening { text-align: left; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
