/* ═══════════════════════════════════════════════════════════
   STAIR Method — Stylesheet
   Design DNA: DDC (Dansk Design Center) institutional clean
   ═══════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
    /* Color */
    --navy:        #0f1b2d;
    --navy-90:     rgba(15, 27, 45, 0.92);
    --charcoal:    #1a2332;
    --slate:       #2c3e50;
    --accent:        #7b52a0;
    --accent-deep:   #5c3d78;
    --accent-light:  #f0eaf5;
    --accent-contrast: #a8d4f0;
    --offwhite:    #f5f3ef;
    --warm-white:  #faf9f6;
    --cream:       #eae7e0;
    --border:      #ddd9d0;
    --text:        #1a1a1a;
    --text-muted:  #5a5a5a;
    --text-light:  #8a8a8a;
    --white:       #ffffff;
    --black:       #000000;

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-body:    'DM Sans', -apple-system, sans-serif;

    /* Spacing */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  1.5rem;
    --space-lg:  3rem;
    --space-xl:  5rem;
    --space-2xl: 8rem;

    /* Layout */
    --max-width: 1200px;
    --max-narrow: 720px;

    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    /* Typography — serif display */
    --font-display: 'Playfair Display', Georgia, serif;

    /* Nav height */
    --nav-height: 64px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font: inherit; }


/* ─── Typography ─── */
.h1, h1 { font-family: var(--font-heading); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.h2, h2 { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: var(--space-lg); color: var(--text); }
.h2-light { color: var(--white); }
.lead { font-size: 1.15rem; line-height: 1.7; color: var(--text-muted); margin-bottom: var(--space-md); }
.overline {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}
.overline-light { color: var(--accent-contrast); }


/* ─── Layout ─── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-md); }
.container-narrow { max-width: var(--max-narrow); }
.section { padding: var(--space-2xl) 0; }
.section-light { background: var(--white); }
.section-offwhite { background: var(--offwhite); }
.section-dark { background: var(--navy); color: var(--white); }
.section-accent { background: var(--accent-deep); color: var(--white); }


/* ─── Buttons ─── */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    padding: 0.85rem 2rem;
    border-radius: 0;
    transition: all 0.3s var(--ease-out);
    text-transform: uppercase;
}
.btn-primary {
    background: var(--accent);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--accent-deep);
    transform: scale(1.1);
}
.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.75rem;
    border: 1.5px solid var(--accent);
    color: var(--accent);
}
.btn-sm:hover {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.1);
}
.btn-lg { padding: 1rem 2.5rem; font-size: 0.9rem; }
.btn-secondary {
    background: #c47840;
    color: var(--white);
}
.btn-secondary:hover {
    background: #a8633a;
    transform: scale(1.1);
}
.btn-green {
    background: #1A6B5C;
    color: var(--white);
}
.btn-green:hover {
    background: #145649;
    transform: scale(1.1);
}
.hero-ctas {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: transparent;
    transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.nav.scrolled {
    background: rgba(15, 27, 45, 0.97);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav.scrolled .nav-logo,
.nav.scrolled .nav-links a { color: rgba(255,255,255,0.85); }
.nav.scrolled .nav-toggle span { background: var(--white); }

.nav-inner {
    padding: 0 clamp(var(--space-md), 5vw, 80px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    color: var(--white);
    transition: color 0.4s var(--ease-out);
}
.nav-links {
    display: flex;
    gap: var(--space-md);
}
.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.8);
    transition: all 0.3s var(--ease-out);
    text-transform: uppercase;
    display: inline-block;
}
.nav-links a:hover { color: var(--accent); transform: scale(1.3); }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: background 0.3s;
}
.nav-mobile {
    display: none;
    flex-direction: column;
    background: var(--navy);
    padding: var(--space-md);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-mobile a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.7);
}
.nav-mobile.open { display: flex; }

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


/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        160deg,
        var(--navy) 0%,
        var(--charcoal) 50%,
        var(--slate) 100%
    );
}
.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    gap: var(--space-xl);
    padding: 0 clamp(var(--space-md), 5vw, 80px);
    padding-bottom: clamp(3rem, 6vh, 5rem);
    margin-top: auto;
}
.hero-text {
    flex: 1;
    max-width: 600px;
}
.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: var(--space-md);
}
.hero-headline em {
    font-style: italic;
}
.hero-subtext {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: var(--space-lg);
    max-width: 480px;
}

/* Inline video — right side, aligned with buttons */
.hero-video-inline {
    flex: 0 0 auto;
    width: clamp(280px, 35vw, 480px);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
    align-self: flex-end;
}
.hero-video-inline:hover {
    transform: scale(1.08);
    box-shadow: 0 28px 80px rgba(0,0,0,0.5);
}
/* Custom tooltip */
.hero-video-inline::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: #3A6B3A;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    z-index: 2;
}
.hero-video-inline:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.hero-video-inline video {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 1.5s ease-in-out;
}
.hero-video-inline video.fading {
    opacity: 0;
}

/* Vertical text — bottom-right corner */
.hero-vertical {
    position: absolute;
    right: clamp(20px, 3vw, 48px);
    bottom: clamp(3rem, 6vh, 5rem);
    transform: rotate(180deg);
    writing-mode: vertical-lr;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    z-index: 1;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}
.hero-scroll-hint span {
    display: block;
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.25);
    animation: scrollPulse 2s var(--ease-in-out) infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0; transform: scaleY(0.3); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

@media (max-width: 768px) {
    .hero-inner { flex-direction: column; align-items: flex-start; gap: var(--space-lg); }
    .hero-video-inline { width: 100%; max-width: 400px; }
    .hero-vertical { display: none; }
}

/* Video off state — hidden if video fails */
.hero-video-inline.video-error {
    display: none;
}


/* ═══════════════════════════════════════════════════════════
   METHOD
   ═══════════════════════════════════════════════════════════ */
.method-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-xl);
    align-items: start;
}
.method-label { padding-top: 0.35rem; }
.method-body p { margin-bottom: var(--space-md); max-width: 640px; }
.method-origin {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    margin-top: var(--space-md);
}
@media (max-width: 768px) {
    .method-grid { grid-template-columns: 1fr; gap: var(--space-sm); }
}


/* ═══════════════════════════════════════════════════════════
   PRINCIPLES
   ═══════════════════════════════════════════════════════════ */
.principles-headline { margin-bottom: var(--space-sm); }
.principles-intro {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 720px;
    margin-bottom: var(--space-xs);
}
.principles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.principle-card {
    background: var(--card-color, var(--accent));
    padding: var(--space-lg) var(--space-md);
    transition: all 0.7s var(--ease-out);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    color: #fff;
}
.principle-card:hover {
    filter: brightness(1.15);
}

/* Summary (always visible) */
.principle-summary {}
.principle-number {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    margin-bottom: var(--space-md);
}
.principle-icon {
    width: 32px;
    height: 32px;
    margin-bottom: var(--space-sm);
    position: relative;
}
/* Geometric icons — white for colored cards */
.principle-icon-diamond::before    { content:''; position:absolute; width:16px; height:16px; background:#fff; transform:rotate(45deg); top:6px; left:6px; opacity:0.8; }
.principle-icon-shield::before     { content:''; position:absolute; width:20px; height:24px; border:2px solid #fff; border-radius:0 0 10px 10px; top:2px; left:4px; opacity:0.8; }
.principle-icon-compass::before    { content:''; position:absolute; width:22px; height:22px; border:2px solid #fff; border-radius:50%; top:3px; left:3px; opacity:0.8; }
.principle-icon-compass::after     { content:''; position:absolute; width:2px; height:10px; background:#fff; top:9px; left:13px; transform:rotate(30deg); opacity:0.8; }
.principle-icon-layers::before     { content:''; position:absolute; width:22px; height:4px; background:#fff; top:6px; left:3px; box-shadow:0 7px 0 #fff, 0 14px 0 #fff; opacity:0.8; }
.principle-icon-user::before       { content:''; position:absolute; width:12px; height:12px; border:2px solid #fff; border-radius:50%; top:1px; left:8px; opacity:0.8; }
.principle-icon-user::after        { content:''; position:absolute; width:22px; height:10px; border:2px solid #fff; border-radius:10px 10px 0 0; top:16px; left:3px; border-bottom:none; opacity:0.8; }
.principle-icon-people::before     { content:''; position:absolute; width:10px; height:10px; border:2px solid #fff; border-radius:50%; top:2px; left:2px; opacity:0.8; }
.principle-icon-people::after      { content:''; position:absolute; width:10px; height:10px; border:2px solid #fff; border-radius:50%; top:2px; left:16px; opacity:0.8; }
.principle-icon-spark::before      { content:''; position:absolute; width:3px; height:18px; background:#fff; top:5px; left:13px; opacity:0.8; }
.principle-icon-spark::after       { content:''; position:absolute; width:18px; height:3px; background:#fff; top:13px; left:5px; opacity:0.8; }
.principle-icon-loop::before       { content:''; position:absolute; width:20px; height:20px; border:2.5px solid #fff; border-radius:50%; border-right-color:transparent; top:4px; left:4px; opacity:0.8; }

.principle-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.01em;
    color: #fff;
}
.principle-desc {
    font-size: 0.85rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.75);
}
.principle-expand-hint {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.4);
    margin-top: var(--space-sm);
    transition: color 0.3s;
}
.principle-card:hover .principle-expand-hint { color: rgba(255,255,255,0.8); }
.principle-card.expanded .principle-expand-hint { display: none; }

/* Detail (hidden by default, revealed on click) */
.principle-detail {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.8s var(--ease-out), opacity 0.6s var(--ease-out) 0.15s, margin 0.6s var(--ease-out);
    margin-top: 0;
}
.principle-card.expanded .principle-detail {
    max-height: 600px;
    opacity: 1;
    margin-top: var(--space-md);
}
/* Collapsing: fade out fast, then shrink */
.principle-card:not(.expanded) .principle-detail {
    transition: opacity 0.3s var(--ease-out), max-height 0.6s var(--ease-out) 0.1s, margin 0.5s var(--ease-out);
}
.principle-card.expanded {
    grid-column: 1 / -1;
}
.principle-detail-text {
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--space-md);
    max-width: 640px;
}
.principle-questions-heading {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    margin-bottom: var(--space-xs);
}
.principle-questions {
    list-style: none;
    padding: 0;
}
.principle-questions li {
    font-size: 0.85rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.8);
    padding: 0.4rem 0;
    padding-left: 1.2rem;
    position: relative;
}
.principle-questions li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: rgba(255,255,255,0.4);
}

@media (max-width: 1024px) { .principles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .principles-grid { grid-template-columns: 1fr; } }


/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════ */
.testimonial-carousel { position: relative; max-width: 760px; }
.testimonial-track { position: relative; min-height: 200px; }
.testimonial-slide {
    opacity: 0;
    position: absolute;
    top: 0; left: 0;
    transition: opacity 0.6s var(--ease-out);
    pointer-events: none;
}
.testimonial-slide.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}
.testimonial-quote {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 300;
    line-height: 1.65;
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--space-lg);
    font-style: italic;
}
.testimonial-attribution {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.testimonial-attribution strong {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--white);
}
.testimonial-attribution span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}
.testimonial-nav {
    display: flex;
    gap: 8px;
    margin-top: var(--space-lg);
}
.testimonial-dot {
    width: 32px;
    height: 3px;
    background: rgba(255,255,255,0.2);
    transition: all 0.4s var(--ease-out);
}
.testimonial-dot.active { background: var(--accent-contrast); width: 48px; }
.testimonial-dot:hover { background: rgba(255,255,255,0.5); }


/* ═══════════════════════════════════════════════════════════
   MEDIA
   ═══════════════════════════════════════════════════════════ */
.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}
.media-card {
    display: flex;
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}
.media-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}
.media-card-body {
    flex: 1;
    padding: var(--space-md);
}
.media-thumb {
    flex: 0 0 130px;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    align-self: center;
}
.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}
.media-thumb-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.7;
    position: relative;
    z-index: 1;
}
.media-type-badge {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}
.media-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}
.media-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: var(--space-sm);
}
.media-meta {
    display: flex;
    gap: var(--space-sm);
    font-size: 0.75rem;
    color: var(--text-light);
}
.media-lang {
    background: var(--offwhite);
    padding: 0.15rem 0.5rem;
    font-weight: 500;
}

@media (max-width: 640px) { .media-grid { grid-template-columns: 1fr; } }


/* ═══════════════════════════════════════════════════════════
   RESEARCH
   ═══════════════════════════════════════════════════════════ */
.research-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); }
.research-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--space-md);
    background: var(--warm-white);
    padding: var(--space-lg) var(--space-md);
    transition: background 0.3s;
}
.research-card:hover { background: var(--white); }
.research-year {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    padding-top: 0.2rem;
}
.research-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: var(--space-xs);
}
.research-authors {
    font-size: 0.85rem;
    color: var(--accent-deep);
    font-weight: 500;
    margin-bottom: var(--space-xs);
}
.research-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: var(--space-sm);
}
.research-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.research-venue {
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
}

@media (max-width: 640px) {
    .research-card { grid-template-columns: 1fr; }
    .research-year { margin-bottom: 0; }
}



/* ═══════════════════════════════════════════════════════════
   COURSES
   ═══════════════════════════════════════════════════════════ */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    overflow: visible;
}
.course-card {
    display: block;
    padding: var(--space-lg) var(--space-md);
    background: var(--card-color, var(--accent));
    color: #fff;
    transition: all 0.35s var(--ease-out);
}
.course-card:hover {
    transform: scale(1.08);
    z-index: 10;
    position: relative;
    box-shadow: 0 16px 48px rgba(0,0,0,0.25);
    filter: brightness(1.1);
}
.course-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}
.course-type {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
}
.course-langs {
    display: flex;
    gap: 4px;
}
.course-lang {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    padding: 2px 8px;
    border-radius: 2px;
}
.course-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    line-height: 1.3;
    color: #fff;
}
.course-subtitle {
    font-size: 0.8rem;
    font-style: italic;
    color: rgba(255,255,255,0.5);
    margin-bottom: var(--space-sm);
}
.course-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.55;
    margin-bottom: var(--space-sm);
}
.course-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.course-provider {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}
.course-instructors {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}
.course-cta {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255,255,255,0.15);
    transition: color 0.3s;
}
.course-card:hover .course-cta {
    color: #fff;
}

@media (max-width: 900px) { .courses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .courses-grid { grid-template-columns: 1fr; } }


/* ═══════════════════════════════════════════════════════════
   GUIDES
   ═══════════════════════════════════════════════════════════ */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}
.guide-card {
    display: block;
    padding: var(--space-lg) var(--space-md);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    transition: all 0.3s var(--ease-out);
}
.guide-card:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}
.guide-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    opacity: 0.6;
}
.guide-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--white);
}
.guide-lang {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (max-width: 640px) { .guides-grid { grid-template-columns: 1fr; } }


/* ═══════════════════════════════════════════════════════════
   TEAM
   ═══════════════════════════════════════════════════════════ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}
.team-card { text-align: center; }
.team-photo {
    width: 100%;
    aspect-ratio: 3/4;
    margin-bottom: var(--space-md);
    overflow: hidden;
    background: var(--offwhite);
}
.team-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-light);
    letter-spacing: 0.02em;
}
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    position: relative;
    z-index: 1;
}
.team-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}
.team-role {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.1rem;
}
.team-org {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: var(--space-xs);
}
.team-bio {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: var(--space-xs);
}
.team-linkedin {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.02em;
}
.team-linkedin:hover { text-decoration: underline; }

@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); } }
@media (max-width: 540px) { .team-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; } }


/* ═══════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════ */
#contact { text-align: center; }
.contact-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}


/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: var(--space-xl) 0 var(--space-lg);
}
.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
}
.footer-tagline {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-top: 0.25rem;
}
.footer-links {
    display: flex;
    gap: var(--space-md);
}
.footer-links a {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.footer-links a:hover { color: var(--white); }
.footer-disclaimer p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
    line-height: 1.6;
    max-width: 640px;
}
.footer-legal {
    margin-top: 0.5rem;
}
.footer-legal a {
    color: rgba(255,255,255,0.4) !important;
    font-size: 0.75rem;
    text-decoration: none;
}
.footer-legal a:hover {
    color: rgba(255,255,255,0.7) !important;
}

@media (max-width: 768px) {
    .footer-grid { flex-direction: column; gap: var(--space-md); }
    .footer-links { flex-wrap: wrap; }
}


/* ═══════════════════════════════════════════════════════════
   HOVER SCALE — 30% enlarge on all cards
   ═══════════════════════════════════════════════════════════ */
.media-card,
.research-card,
.course-card,
.guide-card,
.team-card {
    transition: all 0.35s var(--ease-out);
}
.media-card:hover,
.research-card:hover,
.course-card:hover,
.guide-card:hover,
.team-card:hover {
    transform: scale(1.3);
    position: relative;
    z-index: 10;
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}
/* Allow overflow so scaled cards aren't clipped */
.media-grid,
.research-list,
.courses-grid,
.guides-grid,
.team-grid {
    overflow: visible;
}


/* ═══════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }
.stagger-7 { transition-delay: 0.35s; }
.stagger-8 { transition-delay: 0.4s; }


/* ═══════════════════════════════════════════════════════════
   WHY STAIR (homepage)
   ═══════════════════════════════════════════════════════════ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}
.why-manifesto {
    max-width: 740px;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.why-manifesto p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-sm);
}
.why-manifesto p:last-child {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
}
.why-manifesto strong {
    color: var(--accent-contrast);
}
.why-card {
    padding: var(--space-md);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s var(--ease-out);
}
.why-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}
.why-card h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-xs);
}
.why-card p {
    font-size: 0.85rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.6);
}
.why-blog-teaser {
    text-align: center;
}
.why-blog-teaser a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-contrast);
    transition: color 0.3s;
}
.why-blog-teaser a:hover { color: #fff; }

@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .why-grid { grid-template-columns: 1fr; } }


/* ═══════════════════════════════════════════════════════════
   NAV ACTIVE STATE
   ═══════════════════════════════════════════════════════════ */
.nav-active { color: var(--accent) !important; }


/* ═══════════════════════════════════════════════════════════
   PAGE HERO (subpages)
   ═══════════════════════════════════════════════════════════ */
.page-hero {
    background: linear-gradient(160deg, var(--navy) 0%, var(--charcoal) 50%, var(--slate) 100%);
    padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-2xl);
}
.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: var(--space-md);
}
.page-hero-title em { font-style: italic; }
.page-hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    max-width: 600px;
}


/* ═══════════════════════════════════════════════════════════
   FLOW DIAGRAM (How It Works)
   ═══════════════════════════════════════════════════════════ */
.flow-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.flow-node {
    background: var(--step-color, var(--navy));
    color: #fff;
    padding: var(--space-lg);
    border-radius: 3px;
    max-width: 580px;
    width: 100%;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.flow-node:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.flow-node h2, .flow-node h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-sm);
}
.flow-node h2 { font-size: 1.3rem; }
.flow-node h3 { font-size: 1.1rem; }
.flow-node p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--space-xs);
}
.flow-node-start {
    background: var(--navy);
}
.flow-node-wide {
    max-width: 680px;
}
.flow-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-sm);
}
.flow-line {
    width: 2px;
    height: 24px;
    background: var(--border);
    margin: 0 auto;
}
.flow-converge {
    width: 85%;
    height: 2px;
    background: var(--border);
    margin: 0 auto;
}
.flow-fork-label {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-bottom: var(--space-md);
}
.flow-fork {
    display: flex;
    gap: var(--space-md);
    align-items: stretch;
    margin-bottom: var(--space-md);
}
.flow-path {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.flow-path .flow-node {
    max-width: none;
    width: 100%;
    flex: 1;
}
.flow-or {
    display: flex;
    align-items: center;
    padding-top: 100px;
}
.flow-or span {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.flow-arrow {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    padding: var(--space-xs) 0;
}
.flow-arrow em { font-style: italic; }
.flow-questions {
    list-style: none;
    padding: 0;
    margin: var(--space-sm) 0;
    counter-reset: q;
}
.flow-questions li {
    counter-increment: q;
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
    padding: 0.3rem 0 0.3rem 2rem;
    position: relative;
}
.flow-questions li::before {
    content: counter(q) ".";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
}
.flow-result {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: var(--space-sm);
    margin-top: var(--space-sm);
}
.flow-detail {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    font-style: italic;
    margin-top: var(--space-xs);
    padding-top: var(--space-xs);
    border-top: 1px solid rgba(255,255,255,0.1);
}
.flow-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

@media (max-width: 768px) {
    .flow-fork { flex-direction: column; }
    .flow-or { padding-top: 0; justify-content: center; padding: var(--space-xs) 0; }
    .flow-bottom { grid-template-columns: 1fr; }
    .flow-converge { display: none; }
}

.step-link {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    margin-top: var(--space-xs);
    transition: color 0.3s;
}
.step-link:hover { color: #fff; }
.step-tip {
    font-style: italic;
    color: rgba(255,255,255,0.6) !important;
}

/* ═══════════════════════════════════════════════════════════
   STAIR MODEL DIAGRAM
   ═══════════════════════════════════════════════════════════ */
.stair-diagram-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: var(--space-lg) 0 var(--space-md);
}
.stair-diagram {
    position: relative;
    width: 340px;
    height: 340px;
}
.stair-diagram svg {
    width: 100%;
    height: 100%;
}
.stair-q {
    cursor: pointer;
    transition: opacity 0.3s, filter 0.3s;
}
.stair-q:hover {
    opacity: 1 !important;
    filter: brightness(1.25);
}
.stair-diagram:hover .stair-q:not(:hover) {
    opacity: 0.5 !important;
}
.stair-center {
    transition: transform 0.3s;
    transform-origin: 200px 200px;
}
.stair-center:hover {
    transform: scale(1.1);
}
.stair-axis {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    text-transform: uppercase;
}
.stair-axis-top { top: -24px; left: 50%; transform: translateX(-50%); }
.stair-axis-bottom { bottom: -24px; left: 50%; transform: translateX(-50%); }
.stair-axis-left { left: -80px; top: 50%; transform: translateY(-50%); }
.stair-axis-right { right: -60px; top: 50%; transform: translateY(-50%); }

.stair-tooltip {
    position: absolute;
    bottom: -48px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 18px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    border-radius: 2px;
}
.stair-tooltip.visible {
    opacity: 1;
}
.stair-diagram-caption {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: var(--space-lg);
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   STEP 1 EXPANDABLE OVERLAY
   ═══════════════════════════════════════════════════════════ */
.flow-node-expandable { cursor: pointer; position: relative; }
.expand-hint {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    margin-top: var(--space-sm);
    transition: color 0.3s;
}
.flow-node-expandable:hover .expand-hint { color: rgba(255,255,255,0.7); }

.step1-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #1a0f2e;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease-out;
}
.step1-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.step1-close {
    position: fixed;
    top: 20px;
    right: 28px;
    z-index: 1001;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.04em;
}
.step1-close:hover { background: rgba(255,255,255,0.15); color: #fff; }

.step1-expanded {
    max-width: 960px;
    margin: 0 auto;
    padding: 80px var(--space-md) var(--space-2xl);
}
.step1-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}
.step1-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    max-width: 560px;
    margin: 0 auto;
}

/* Diagram + Side Panel layout */
.step1-model {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
    margin-bottom: var(--space-xl);
}
.step1-diagram-area { flex: 0 0 380px; }
.step1-diagram {
    position: relative;
    width: 380px;
    height: 380px;
}
.step1-diagram svg { width: 100%; height: 100%; }

/* Side panel: swappable cards */
.step1-panel { flex: 1; min-height: 340px; position: relative; }
.step1-panel-card {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid var(--accent);
    padding: var(--space-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-out;
}
.step1-panel-card.active {
    opacity: 1;
    pointer-events: all;
    position: relative;
}
.step1-panel-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-sm);
}
.step1-panel-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.65);
    margin-bottom: var(--space-sm);
}
.step1-panel-num {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: var(--space-xs);
}
.step1-panel-prompt {
    font-style: italic;
    color: rgba(255,255,255,0.45) !important;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: var(--space-sm);
    margin-top: var(--space-sm);
}
.step1-panel-context {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: rgba(255,255,255,0.04);
    border: 1px dashed rgba(255,255,255,0.15);
}
.step1-panel-context p {
    margin-bottom: var(--space-xs);
    font-size: 0.85rem;
}
.step1-panel-context em { color: rgba(255,255,255,0.35); }

/* Axis tooltips */
.stair-axis {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    cursor: help;
    transition: color 0.3s;
}
.stair-axis:hover { color: rgba(255,255,255,0.9); }
.stair-axis::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 6px);
    background: var(--navy);
    color: rgba(255,255,255,0.8);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    padding: 6px 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 10;
}
.stair-axis:hover::after { opacity: 1; }
.stair-axis-top { top: -28px; left: 50%; transform: translateX(-50%); }
.stair-axis-bottom { bottom: -28px; left: 50%; transform: translateX(-50%); }
.stair-axis-left { left: -86px; top: 50%; transform: translateY(-50%); }
.stair-axis-right { right: -66px; top: 50%; transform: translateY(-50%); }
.stair-axis-top::after, .stair-axis-bottom::after { max-width: 260px; white-space: normal; text-align: center; }
.stair-axis-left::after { left: 0; transform: none; }
.stair-axis-right::after { left: auto; right: 0; transform: none; }

/* 5 question cards — single row, all same size */
.step1-questions {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}
.step1-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid var(--card-accent, rgba(255,255,255,0.2));
    padding: var(--space-md);
    transition: all 0.35s var(--ease-out);
    cursor: pointer;
    text-align: center;
}
.step1-card:hover, .step1-card.active {
    transform: scale(1.06);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.step1-card-num {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--card-accent, rgba(255,255,255,0.4));
    display: block;
    margin-bottom: 4px;
}
.step1-card h4 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
}

/* Table intro */
.step1-table-intro {
    max-width: 680px;
    margin: 0 auto var(--space-lg);
    text-align: center;
}
.step1-table-intro h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--space-sm);
}
.step1-table-intro p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.55);
}

/* Statement */
.step1-statement {
    max-width: 680px;
    margin: 0 auto var(--space-xl);
    text-align: center;
}
.step1-statement blockquote {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: rgba(255,255,255,0.65);
}
.step1-statement strong { color: var(--accent-contrast); }

.step1-footer-cta { text-align: center; margin-top: var(--space-lg); }

/* Expandable principle rows */
.step1-table-wrap { margin-bottom: var(--space-xl); }
.step1-principle-row {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background 0.3s;
}
.step1-principle-row:hover { background: rgba(255,255,255,0.03); }
.step1-principle-main {
    display: flex;
    align-items: center;
    padding: 14px 0;
    cursor: pointer;
    gap: var(--space-sm);
}
.step1-principle-num {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    color: rgba(255,255,255,0.3);
    flex: 0 0 30px;
}
.step1-principle-text {
    flex: 1;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}
.step1-principle-expand {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-contrast);
    letter-spacing: 0.04em;
    transition: color 0.3s;
}
.step1-principle-row:hover .step1-principle-expand { color: #fff; }
.step1-principle-dims {
    display: flex;
    gap: var(--space-sm);
    padding: 0 0 14px 30px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s var(--ease-out), opacity 0.3s, padding 0.4s;
}
.step1-principle-row[data-expanded="true"] .step1-principle-dims {
    max-height: 60px;
    opacity: 1;
    padding-bottom: 14px;
}
.step1-principle-row[data-expanded="true"] .step1-principle-expand { content: '− Dimensions'; }
.step1-principle-dims span {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.06);
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 768px) {
    .step1-model { flex-direction: column; }
    .step1-diagram-area { flex: none; width: 100%; }
    .step1-diagram { width: 280px; height: 280px; margin: 0 auto; }
    .step1-panel { min-height: auto; }
    .step1-panel-card { position: relative; }
    .step1-questions { grid-template-columns: repeat(3, 1fr); }
    .stair-axis-left { left: -60px; font-size: 0.65rem; }
    .stair-axis-right { right: -44px; font-size: 0.65rem; }
}
@media (max-width: 480px) {
    .stair-diagram { width: 260px; height: 260px; }
    .stair-axis-left { left: -60px; font-size: 0.65rem; }
    .stair-axis-right { right: -44px; font-size: 0.65rem; }
}

.steps-remember {
    max-width: 720px;
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--offwhite);
    border-left: 4px solid var(--accent);
}
.steps-remember h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--accent);
}
.steps-remember p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-muted);
}
.steps-remember-with-image {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
    padding: 0;
    overflow: hidden;
}
.steps-remember-img {
    width: 280px;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}
.steps-remember-text {
    padding: var(--space-lg);
}
@media (max-width: 640px) {
    .steps-remember-with-image { flex-direction: column; }
    .steps-remember-img { width: 100%; height: 200px; }
}


/* ═══════════════════════════════════════════════════════════
   TIPS (How It Works — facilitator tips)
   ═══════════════════════════════════════════════════════════ */
.tips-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.tip {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
    padding-left: 1.5rem;
    position: relative;
}
.tip::before {
    content: '—';
    position: absolute;
    left: 0;
    color: rgba(255,255,255,0.3);
}


/* ═══════════════════════════════════════════════════════════
   AUDIENCE (How It Works — who can use)
   ═══════════════════════════════════════════════════════════ */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}
.audience-card {
    padding: var(--space-md);
    background: var(--white);
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease-out);
}
.audience-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}
.audience-card h3 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--accent);
}
.audience-card p {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-muted);
}
@media (max-width: 900px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .audience-grid { grid-template-columns: 1fr; } }


/* ═══════════════════════════════════════════════════════════
   ARTICLE / BLOG
   ═══════════════════════════════════════════════════════════ */
.article-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.article-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(15, 27, 45, 0.9) 0%,
        rgba(15, 27, 45, 0.4) 50%,
        rgba(15, 27, 45, 0.2) 100%
    );
}
.article-hero-content {
    position: relative;
    z-index: 1;
    padding: var(--space-2xl) clamp(var(--space-md), 5vw, 80px);
    max-width: 720px;
}
.article-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: var(--space-md);
}
.article-hero-title em { font-style: italic; }
.article-hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
}

.article-body {
    padding: var(--space-2xl) 0;
    background: var(--white);
}
.article-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}
.article-byline {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: var(--space-lg);
}
.article-body h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: var(--text);
}
.article-body p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}
.article-pullquote {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
    color: var(--accent);
    padding: var(--space-lg) 0;
    margin: var(--space-lg) 0;
    border-top: 2px solid var(--offwhite);
    border-bottom: 2px solid var(--offwhite);
}
.article-list {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0 var(--space-lg);
}
.article-list li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
}
.article-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}
.article-list li strong {
    color: var(--text);
}
.article-ctas {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin: var(--space-xl) 0;
}
.article-figure {
    margin: var(--space-lg) 0;
    overflow: visible;
}
.article-figure img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.article-figure img:hover {
    transform: scale(1.03);
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}
.article-meta-block {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
    margin-top: var(--space-xl);
}
.article-author {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text) !important;
    margin-bottom: 0.15rem !important;
}
.article-date {
    font-size: 0.8rem !important;
    color: var(--text-light) !important;
}

/* ═══════════════════════════════════════════════════════════
   PAGE TRANSITIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
body {
    animation: pageFadeIn 0.4s ease-out;
}
body.page-exit {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* ═══════════════════════════════════════════════════════════
   STEP 1 OVERLAY — REWORKED ELEMENTS
   ═══════════════════════════════════════════════════════════ */
.step1-active-card {
    flex: 1;
    min-height: 380px;
    position: relative;
    margin-left: var(--space-md);
}
.step1-card-panel {
    display: none;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid var(--card-accent, #5B3A8C);
    padding: var(--space-lg);
    animation: panelFadeIn 0.4s ease-out;
}
.step1-card-panel.active { display: block; }
@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.step1-card-panel h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-sm);
}
.step1-card-panel p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-xs);
}
.step1-card-panel .step1-card-num {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    margin-bottom: var(--space-xs);
}
.step1-card-prompt {
    font-style: italic;
    color: rgba(255,255,255,0.5) !important;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-sm);
    margin-top: var(--space-sm);
}

/* 5 question cards row */
.step1-questions {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}
.step1-qcard {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 3px solid var(--card-accent, rgba(255,255,255,0.2));
    padding: var(--space-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.step1-qcard:hover, .step1-qcard.active {
    transform: scale(1.08);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.step1-qcard-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--card-accent, rgba(255,255,255,0.4));
    display: block;
    margin-bottom: 4px;
}
.step1-qcard h4 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Axis hover tooltip — CSS only */
.stair-axis {
    cursor: help;
    transition: color 0.3s;
    position: relative;
}
.stair-axis:hover { color: var(--white); }
.stair-axis::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    margin-top: 6px;
    background: var(--navy);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.5;
    padding: 8px 12px;
    width: 200px;
    white-space: normal;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 10;
}
.stair-axis:hover::after { opacity: 1; }
.stair-axis-left::after { left: 0; transform: none; }
.stair-axis-right::after { left: auto; right: 0; transform: none; }

/* Explain section */
.step1-explain {
    max-width: 680px;
    margin: 0 auto var(--space-xl);
}
.step1-explain h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--space-sm);
}
.step1-explain p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: var(--space-sm);
}
.step1-table-explain {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: var(--space-md);
    text-align: center;
}
.step1-table-wrap h3 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--space-xs);
}

/* Updated principle rows with header layout */
.step1-principle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    cursor: pointer;
}
.step1-principle-name {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

@media (max-width: 640px) {
    .step1-questions { grid-template-columns: repeat(3, 1fr); }
    .step1-qcard { aspect-ratio: auto; }
}

/* Dimensions scale visual */
.step1-dimensions {
    max-width: 680px;
    margin: 0 auto var(--space-xl);
    text-align: center;
}
.step1-dimensions h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--space-sm);
}
.step1-dimensions p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.6);
    margin-bottom: var(--space-md);
}
.step1-dim-scale {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}
.step1-dim-scale span:not(.step1-dim-arrow) {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.08);
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.12);
}
.step1-dim-arrow {
    color: rgba(255,255,255,0.25);
    font-size: 0.8rem;
}
.step1-dim-note {
    font-size: 0.8rem !important;
    font-style: italic;
    color: rgba(255,255,255,0.4) !important;
}

/* Statement box */
.step1-statement-box {
    max-width: 680px;
    margin: 0 auto var(--space-xl);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    padding: var(--space-lg);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.step1-statement-box:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.step1-statement-box blockquote {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
    margin: 0;
}
.step1-statement-box strong { color: var(--accent-contrast); }

/* Example principle */
.step1-example-principle {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    font-style: italic;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.06);
    border-left: 4px solid var(--accent);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-lg);
}
.step1-example-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-style: normal;
    margin-bottom: 4px;
}

/* Dimension box hover tooltips */
.step1-dim-scale span:not(.step1-dim-arrow) {
    position: relative;
    cursor: help;
    transition: all 0.3s var(--ease-out);
}
.step1-dim-scale span:not(.step1-dim-arrow):hover {
    transform: scale(1.12);
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.step1-dim-scale span[data-dim]::after {
    content: attr(data-dim);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    background: var(--navy);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.5;
    padding: 8px 12px;
    width: 200px;
    white-space: normal;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 10;
}
.step1-dim-scale span[data-dim]:hover::after { opacity: 1; }

/* Fix axis label positions in overlay diagram */
.step1-diagram .stair-axis {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    white-space: nowrap;
}
.step1-diagram .stair-axis-top { top: -28px; left: 50%; transform: translateX(-50%); bottom: auto; right: auto; }
.step1-diagram .stair-axis-bottom { bottom: -28px; left: 50%; transform: translateX(-50%); top: auto; right: auto; }
.step1-diagram .stair-axis-left { left: -90px; top: 50%; transform: translateY(-50%); bottom: auto; right: auto; }
.step1-diagram .stair-axis-right { right: -32px; top: 50%; transform: translateY(-50%); bottom: auto; left: auto; }

/* Principles back-link to How It Works */
.principles-back-link {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: var(--space-xs);
    margin-bottom: var(--space-lg);
    transition: all 0.3s var(--ease-out);
    position: relative;
}
.principles-back-link:hover {
    transform: scale(1.08);
    color: var(--accent-deep);
}
.principles-back-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    background: #3A6B3A;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 16px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.principles-back-link:hover::after { opacity: 1; }
