/* ============================================
   HealthEM.AI — UX Case Study
   Luna Direction Inspired — Minimal Editorial
   ============================================ */

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

/* Scroll progress bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #E8782B;
    z-index: 9999;
    transition: width 0.05s linear;
    border-radius: 0 2px 2px 0;
}

:root {
    --bg-primary: #F2F0E9;
    --bg-dark: #2B8C8C;
    --bg-card: #FFFFFF;
    --bg-card-dark: #216d6d;

    --text-primary: #2B8C8C;
    --text-secondary: #5a5a5a;
    --text-muted: #8a8a8a;
    --text-light: #F2F0E9;
    --text-light-secondary: #b0b0b0;

    --accent: #2B8C8C;
    --accent-light: #43a8a8;

    --border: rgba(0, 0, 0, 0.08);
    --border-dark: rgba(255, 255, 255, 0.1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --container-max: 1200px;
    --container-narrow: 900px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-light);
}

::selection {
    background: var(--accent);
    color: #fff;
}

/* ---------- Utility ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 48px;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ---------- HERO SECTION ---------- */
.hero {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: clip;
    z-index: 0;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(31, 76, 52, 0.15) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.5) 100%
    );
    pointer-events: none;
}

.hero-logo-wrap {
    position: absolute;
    bottom: 48px;
    left: 48px;
    z-index: 2;
}

.hero-logo-img {
    width: 480px;
    height: auto;
}

.logo-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -1px;
}

.logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E8782B;
    margin-left: 4px;
    align-self: flex-end;
    margin-bottom: 10px;
}

/* ---------- SECTIONS ---------- */
.section, .section-light, .section-beige {
    padding: 120px 0;
    position: relative;
    z-index: 10;
}

.section, .section-beige {
    background: var(--bg-primary);
}

.section-light {
    background: #FFFFFF;
}

.section:first-of-type, .section-light:first-of-type, .section-beige:first-of-type {
    border-radius: 24px 24px 0 0;
    margin-top: -24px;
}

/* Base orange section injection */
.section-orange {
    background-color: #EF6D2A;
    color: #FFFFFF;
}

.section-orange .section-heading,
.section-orange .section-number,
.section-orange .body-large,
.section-orange h3,
.section-orange p,
.section-orange li,
.section-orange .showcase-tag {
    color: #FFFFFF !important;
}

.section-orange .showcase-tag {
    background: rgba(255,255,255,0.2) !important;
    border-color: rgba(255,255,255,0.3) !important;
}

.section-orange .showcase-features li::before {
    color: rgba(255,255,255,0.8) !important;
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-light);
}

.section-number {
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #E8782B !important; /* Forced brand orange for maximum visibility */
    letter-spacing: 2.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
    opacity: 0.9 !important;
}

.section-dark .section-number {
    color: rgba(255, 255, 255, 0.8) !important;
    opacity: 1 !important;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 72px); /* Reduced by 15% */
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.centered-content {
    text-align: center;
    max-width: var(--container-narrow);
    margin: 0 auto 72px;
}

/* Problem Split Layout */
.problem-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 48px;
}

.problem-text-col {
    position: sticky;
    top: 120px; /* Offset to keep it visible while scrolling */
}

.problem-list-col {
    display: flex;
    flex-direction: column;
}

.problem-list-item {
    padding: 32px 0;
    border-bottom: 1px solid rgba(31, 76, 52, 0.1);
}

.problem-list-item:first-child {
    padding-top: 0;
}

.problem-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.problem-list-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.problem-num {
    font-size: 24px;
    font-weight: 700;
    background: white;
    padding: 6px 16px;
    border-radius: 40px;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
}

.problem-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.problem-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 2px;
}

/* Responsive adjustment for Problem Split Layout */
@media (max-width: 900px) {
    .problem-split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .problem-text-col {
        position: relative;
        top: 0;
    }
}

.body-large {
    font-size: 20px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.section-dark .body-large {
    color: var(--text-light-secondary);
}

.body-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-top: 16px;
}

/* ---------- OVERVIEW (Editorial Style) ---------- */
.overview-editorial {
    margin-bottom: 64px;
}

.overview-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.overview-headline {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: -1.5px;
    color: var(--text-muted);
    max-width: 900px;
}

.overview-headline strong {
    font-weight: 800;
    color: var(--text-primary);
}

.overview-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.overview-desc {
    grid-column: 2;
}

.overview-desc p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.overview-desc p:last-child {
    margin-bottom: 0;
}

.overview-meta-row {
    grid-column: 2;
    display: flex;
    gap: 32px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.overview-meta-row .meta-block {
    padding-bottom: 0;
    border-bottom: none;
}

.meta-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.meta-block:last-child {
    border-bottom: none;
}

.meta-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.meta-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ---------- STATS ---------- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 40px 24px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    background: var(--bg-card-dark);
}

.stat-card .stat-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 900;
    color: var(--text-light);
    display: block;
    margin-bottom: 12px;
}

.stat-card .stat-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light-secondary);
}

/* ---------- THREE COLUMN CARDS ---------- */
.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition-smooth);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.info-card.featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, #fff 0%, #f6f9f7 100%);
}

.info-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.info-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.info-card ul {
    list-style: none;
}

.info-card ul li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 18px;
    position: relative;
}

.info-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ---------- DESIGN PROCESS ---------- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.process-step {
    padding: 40px 28px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    background: var(--bg-card-dark);
    transition: all var(--transition-smooth);
}

.process-step:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.step-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
    line-height: 1;
}

.process-step h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 12px;
}

.process-step p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light-secondary);
}

/* ---------- FIVE COL (ROLES) ---------- */
.five-col {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.role-card {
    background: #FFFFFF;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Added subtle shadow */
    position: relative;
    overflow: hidden;
}

.role-icon {
    width: 48px;
    height: 48px;
    background: rgba(31, 76, 52, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
}

.role-icon::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #E8782B;
    border-radius: 50%;
    top: -2px;
    right: -2px;
}

.role-card h4 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--accent);
}

.role-card p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}


/* ---------- IMAGE GRIDS ---------- */
.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.image-grid img {
    width: 100%;
    border-radius: var(--radius-md);
}

.full-image {
    max-width: var(--container-max);
    margin: 0 auto;
}

.full-image img {
    width: 100%;
    border-radius: var(--radius-md);
}

/* ---------- PERSONAS MAPPING (CONCENTRIC CIRCLES) ---------- */
.personas-mapping {
    position: relative;
    width: 100%;
    max-width: 1300px;
    margin: 60px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.mapping-container {
    position: relative;
    width: 600px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Concentric Circles */
.circle {
    position: absolute;
    border-radius: 50%;
    border: 1.5px dashed #EF6D2A;
    pointer-events: none;
}

.circle-1 { width: 220px; height: 220px; }
.circle-2 { width: 360px; height: 360px; }
.circle-3 { width: 480px; height: 480px; }
.circle-4 { width: 600px; height: 600px; border-color: rgba(239, 109, 42, 0.4); }

/* Center Icon */
.center-icon {
    width: 80px;
    height: 80px;
    background: var(--accent); 
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(43, 140, 140, 0.3);
}

/* Floating Avatars */
.avatar-node {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 20;
    transition: transform 0.3s ease;
    cursor: pointer;
    /* Margin offsets to perfectly center avatars on ring circumference */
    margin-top: -32px;
    margin-left: -32px;
}

.avatar-node:hover {
    transform: scale(1.15);
}

.avatar-node img {
    width: 100%;
    height: 100%;
    object-fit:cover;
}

.placeholder-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* Avatar Positions exactly on the circumferences */
/* Circle 1: 110px radius */
.avatar-1 { top: 50%; left: calc(50% - 110px); } 

/* Circle 2: 180px radius */
.avatar-2 { top: calc(50% - 127px); left: calc(50% + 127px); } /* Approx 45 degrees */

/* Circle 3: 240px radius */
.avatar-3 { top: calc(50% + 207px); left: calc(50% - 120px); } 

/* Circle 4: 300px radius */
.avatar-4 { top: calc(50% - 150px); left: calc(50% - 259px); }

/* Circle 2 (Extra): 180px radius */
.avatar-5 { top: calc(50% + 170px); left: calc(50% + 59px); } 


/* Insight Quotes */
.insight-quote {
    position: absolute;
    background: #FFFFFF;
    padding: 32px;
    border-radius: var(--radius-lg);
    width: 340px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); /* Increased shadow for depth */
    z-index: 30;
}

.quote-author {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.insight-quote p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Quote Positions (Pushed further out from circles) */
.quote-top-left { top: -100px; left: -420px; }
.quote-top-right { top: -100px; right: -420px; }
.quote-bottom-left { bottom: -100px; left: -420px; }
.quote-bottom-right { bottom: -100px; right: -420px; }

/* Responsive */
@media (max-width: 1400px) {
    .quote-top-left { top: -80px; left: -360px; }
    .quote-top-right { top: -80px; right: -360px; }
    .quote-bottom-left { bottom: -80px; left: -360px; }
    .quote-bottom-right { bottom: -80px; right: -360px; }
}

@media (max-width: 1300px) {
    .personas-mapping { transform: scale(0.85); margin: 0 auto; }
}
@media (max-width: 1100px) {
    .personas-mapping { transform: scale(0.7); margin: -40px auto; }
}
@media (max-width: 900px) {
    .personas-mapping { transform: scale(0.5); margin: -100px auto; }
}
@media (max-width: 768px) {
    .personas-mapping { transform: scale(0.4); margin: -160px auto; }
}

/* ---------- FOOTER ---------- */
.case-footer {
    text-align: center;
    padding: 80px 20px;
    background: #111;
    color: #fff;
}

.case-footer h2 {
    font-size: var(--text-2xl);
    margin-bottom: 32px;
}

.next-case-btn {
    display: inline-block;
    padding: 16px 32px;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-weight: 500;
    border-radius: 40px;
    transition: transform 0.3s ease;
}

.next-case-btn:hover {
    transform: translateY(-2px);
}

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Staggered delays for items in grids */
.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; }

/* ---------- INSIGHTS ---------- */
.insights-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 48px;
}

.insight-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.insight-chip:hover {
    transform: scale(1.05);
    border-color: var(--accent);
    color: var(--accent);
}

/* ---------- DIRECTIONS GRID ---------- */
.directions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.direction-card {
    padding: 32px 24px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    background: var(--bg-card-dark);
    transition: all var(--transition-smooth);
}

.direction-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
}

.direction-num {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.06);
    display: block;
    margin-bottom: 16px;
    line-height: 1;
}

.direction-card h4 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 8px;
}

.direction-card p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-light-secondary);
}

/* ---------- BENTO BOX OVERRIDES ---------- */
.bento-layout {
    grid-auto-flow: dense;
    grid-auto-rows: minmax(130px, auto); /* Reduced negative space */
    gap: 16px; /* Tightened gap */
}
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }

.direction-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 16px !important;
    padding: 24px !important;
    border: none !important;
    position: relative;
}

/* Base Bento Theme */
.bg-light { background: #ffffff !important; color: var(--text-primary) !important; box-shadow: 0 4px 12px rgba(0,0,0,0.02); }
.bg-light h4 { color: #1C4532 !important; font-size: 24px !important; font-weight: 800 !important; letter-spacing: -0.5px; margin-bottom: 6px !important; }
.bg-light p { color: rgba(28, 69, 50, 0.7) !important; font-size: 14px !important; line-height: 1.5; margin: 0; }

/* Bento Icons */
.bento-icon-box {
    position: relative;
    width: 60px;
    height: 60px;
    background: #f2f0f9;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.bento-icon-box svg {
    width: 30px;
    height: 30px;
    stroke: #1C4532;
    stroke-width: 2;
}
.icon-dot {
    display: none !important;
}

/* ---------- DESIGN SYSTEM ---------- */
.ds-typography {
    margin-bottom: 80px;
}

.ds-font-weights {
    display: flex;
    gap: 40px;
    margin-bottom: 24px;
    font-family: 'Fira Sans', sans-serif;
    color: var(--text-light);
    font-size: 15px;
}

.fw-label {
    letter-spacing: 0.5px;
}

.ds-font-name {
    font-family: 'Fira Sans', sans-serif;
    font-size: clamp(80px, 14vw, 160px);
    font-weight: 900;
    color: var(--text-light);
    line-height: 1;
    letter-spacing: -4px;
    margin-bottom: 48px;
    opacity: 0.95;
}

.ds-type-scale {
    border-top: 1px solid var(--border-dark);
}

.ds-scale-row {
    display: grid;
    grid-template-columns: 80px 1fr 60px;
    align-items: baseline;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-dark);
    font-family: 'Fira Sans', sans-serif;
    color: var(--text-light);
}

.ds-scale-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.ds-scale-sample {
    color: var(--text-primary);
}

.ds-scale-size {
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.ds-colors {
    padding-top: 16px;
}

.ds-section-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.ds-color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ds-color-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #f2f0e9;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all var(--transition-smooth);
}

.ds-color-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.ds-color-swatch {
    height: 120px;
    width: 100%;
}

.ds-color-info {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ds-color-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.ds-color-hex {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    font-family: 'Fira Sans', monospace;
}

.ds-semantic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ds-semantic-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    background: #f2f0e9;
    border: 1px solid rgba(0,0,0,0.06);
}

.ds-semantic-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ds-semantic-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #4a4a4a;
    margin-bottom: 2px;
}

.ds-semantic-item span {
    font-size: 12px;
    color: #7a7a7a;
}

/* ---------- SCREEN SHOWCASES ---------- */
.screen-showcase {
    padding: 15vh 0 25vh 0;
    position: relative;
    z-index: 1;
    overflow: clip; /* Clips sticky heading to section bounds without breaking sticky */
}

.sticky-wrapper {
    position: sticky;
    top: 30vh;
    z-index: 1;
    text-align: center;
    transition: opacity 0.15s ease;
}

.showcase-header {
    margin-bottom: 0;
}

.showcase-tag {
    display: none !important;
}

.showcase-header h3 {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 0;
    text-align: center;
    opacity: 0.95;
    text-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.showcase-subtext {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
    max-width: 560px;
    margin: 14px auto 0 auto;
    font-weight: 400;
    letter-spacing: 0.1px;
}

.showcase-features { display: none !important; }

.showcase-features li, .showcase-features li::before {
    display: none !important;
}

.showcase-image {
    position: relative;
    z-index: 2;
    margin-top: 25vh;
    width: 100%;
}

.showcase-image img {
    width: 100%;
    height: auto;
}

/* Desktop Browser Frame Mockup */
.desktop-frame {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 16px 32px rgba(0,0,0,0.06), 0 4px 8px rgba(0,0,0,0.03);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    margin: 0 auto;
    width: 100%;
}
.desktop-header {
    background: #FAF9F6;
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.desktop-dots {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}
.desktop-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.desktop-dots span:nth-child(1) { background: #ff5f56; }
.desktop-dots span:nth-child(2) { background: #ffbd2e; }
.desktop-dots span:nth-child(3) { background: #27c93f; }

.desktop-url {
    background: #EAE8E1;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    color: #8c8c8c;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.desktop-body img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- TAKEAWAYS ---------- */
.takeaways-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.takeaway-card {
    padding: 40px 32px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    background: var(--bg-card-dark);
    transition: all var(--transition-smooth);
}

.takeaway-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.15);
}

.takeaway-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 20px;
}

.takeaway-card h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 12px;
}

.takeaway-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light-secondary);
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 120px 0 48px;
}

.footer-content {
    text-align: center;
    margin-bottom: 80px;
}

.footer-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-light-secondary);
    max-width: 500px;
    margin: 0 auto 40px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: var(--text-light);
    color: var(--bg-dark);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-decoration: none;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    color: var(--bg-dark);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border-dark);
    font-size: 14px;
    color: var(--text-light-secondary);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-light-secondary);
    font-size: 14px;
    transition: color var(--transition-fast);
}

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .directions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .hero-content {
        padding: 120px 24px 48px;
    }

    .section {
        padding: 80px 0;
    }

    .three-col {
        grid-template-columns: 1fr;
    }

    .five-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

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

    .persona-header {
        flex-direction: column;
        text-align: center;
    }

    .persona-details {
        grid-template-columns: 1fr;
    }

    .persona {
        padding: 28px;
    }

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

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

    .showcase-features {
        flex-direction: column;
        gap: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ---------- WHENTHEN FLOW BUILDER ---------- */
.wt-flow-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 40px;
}

.wt-node-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    width: 100%;
}

.wt-node {
    background: var(--bg-card-dark);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
    overflow: visible;
    position: relative;
    color: #fff;
    padding: 12px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Custom coloring mapping */
.trigger-node, .action-node { 
    background: #EF6D2A; 
    border-color: transparent; 
}
.trigger-node .wt-content h3, .action-node .wt-content h3 { color: #fff; }

.leaf-node {
    background: #fff;
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.leaf-node .wt-content h3 { color: var(--text-primary); }

/* Connecting dots */
.wt-node::before, .wt-node::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    left: calc(50% - 4px);
    z-index: 5;
}
.wt-node::before { top: -4px; }
.wt-node::after { bottom: -4px; }
.trigger-node::before { display: none; }
.leaf-node::after { display: none; }

.trigger-node::before, .trigger-node::after,
.action-node::before, .action-node::after {
    background: #EF6D2A;
}

/* Hide legacy headers and descriptors */
.wt-node-header, .wt-icon, .wt-content p, .wt-tag { display: none !important; }

.wt-node-body {
    padding: 0;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.wt-content { width: 100%; text-align: center; }

.wt-content h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-main);
    color: #fff;
    text-align: center;
    letter-spacing: 0.5px;
}

.wt-mini-list { display: none; }

.wt-mini-list li {
    margin-bottom: 4px;
}

.wt-mini-list li::marker {
    color: var(--accent);
}

.wt-spine {
    position: relative;
    height: 30px;
    width: 100%;
}
.intro-spine { height: 40px; }
.inner-spine { height: 30px; }

/* Side Tree List */
.wt-side-tree {
    position: relative;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
    padding-top: 24px;
}
/* Elbow joint connecting center dot to left spine */
.wt-side-tree::before {
    content: '';
    position: absolute;
    width: 1.5px;
    height: 12px;
    background: rgba(43, 140, 140, 0.4);
    left: calc(50% - 0.75px);
    top: 0;
    transform-origin: top;
    transform: scaleY(0);
}
.wt-side-tree::after {
    content: '';
    position: absolute;
    height: 1.5px;
    width: calc(50% - 12px);
    background: rgba(43, 140, 140, 0.4);
    left: 12px;
    top: 12px;
    transform-origin: right;
    transform: scaleX(0);
}
.wt-tree-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0 32px;
    position: relative;
}
.wt-tree-list > li {
    position: relative;
    background: #fff;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.05);
}
.wt-tree-list > li > span {
    display: inline-block;
}
.wt-tree-list > li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 20px;
    height: 1.5px;
    background: rgba(43, 140, 140, 0.4);
    transform-origin: left;
    transform: scaleX(0);
}
.wt-tree-list > li::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    left: -4px;
    top: calc(50% - 4px);
    opacity: 0;
}
.wt-tree-list::before {
    content: '';
    position: absolute;
    left: -20px;
    top: -12px;
    bottom: 20px;
    width: 1.5px;
    background: rgba(43, 140, 140, 0.4);
    transform-origin: top;
    transform: scaleY(0);
}

/* Structural Connector Lines Fix */
.wt-spine {
    position: relative;
    height: 30px;
    width: 100%;
}
.wt-branch-connector {
    position: relative;
    width: 50%;
    height: 30px;
    margin: 0 auto;
}
.wt-inner-connector {
    width: 66.66%;
}
.wt-line-v {
    position: absolute;
    width: 2px;
    height: 100%;
    background: rgba(43, 140, 140, 0.4);
    left: calc(50% - 1px);
}
.wt-line-h {
    position: absolute;
    height: 2px;
    width: 100%;
    background: rgba(43, 140, 140, 0.4);
    top: 0;
    left: 0;
}
.wt-line-v-drop {
    position: absolute;
    width: 2px;
    height: 100%;
    background: rgba(43, 140, 140, 0.4);
    top: 0;
}
.drop-left { left: -1px; transform: none; }
.drop-right { right: -1px; transform: none; }
.drop-1 { left: -1px; transform: none; }
.drop-2 { left: calc(50% - 1px); transform: none; }
.drop-3 { right: -1px; transform: none; }

/* Top Node Connectors (Log In) */
.wt-top-node-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}
.wt-top-node-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 25%;
    right: 25%;
    height: 2px;
    background: rgba(43, 140, 140, 0.4);
    z-index: 0;
    transform-origin: center;
    transform: scaleX(0);
}
.wt-top-line-drop-left, .wt-top-line-drop-right {
    position: absolute;
    top: 50%;
    width: 2px;
    height: calc(50% + 30px);
    background: rgba(43, 140, 140, 0.4);
    z-index: 0;
    transform-origin: top;
    transform: scaleY(0);
}
.wt-top-line-drop-left { left: 25%; }
.wt-top-line-drop-right { right: 25%; }

/* Ensure nodes sit above lines */
.wt-node {
    z-index: 10;
}

.wt-branches {
    display: flex;
    width: 100%;
    justify-content: center;
}

.wt-branch {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Inner Branches Logic (Navigation Menu) */
.wt-inner-node-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}
.wt-inner-node-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 16.66%;
    right: 16.66%;
    height: 2px;
    background: rgba(43, 140, 140, 0.4);
    z-index: 0;
    transform-origin: center;
    transform: scaleX(0);
}
.wt-inner-line-drop-left, .wt-inner-line-drop-center, .wt-inner-line-drop-right {
    position: absolute;
    top: 50%; width: 2px; height: calc(50% + 30px); background: rgba(43, 140, 140, 0.4); z-index: 0; transform-origin: top; transform: scaleY(0);
}
.wt-inner-line-drop-left { left: 16.66%; }
.wt-inner-line-drop-center { left: calc(50% - 1px); }
.wt-inner-line-drop-right { right: 16.66%; }

.inner-branches .wt-node {
    max-width: 220px;
    margin: 0 8px;
}

.inner-branches .wt-node-body {
    padding: 14px 12px;
}
.inner-branches .wt-content h3 {
    font-size: 14px;
}
.inner-branches .wt-mini-list {
    font-size: 12px;
    padding-left: 16px;
}

.wt-flow-end {
    position: relative;
    height: 40px;
    width: 100%;
}
.wt-end-dot {
    position: absolute;
    bottom: -5px;
    left: calc(50% - 5px);
    width: 10px;
    height: 10px;
    background: rgba(43, 140, 140, 0.4);
    border-radius: 50%;
}

.wt-asterisk {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

/* --- ANIMATIONS FOR CONNECTING LINES --- */
.wt-line-v, .wt-line-v-drop { transform-origin: top; transform: scaleY(0); }
.wt-line-h { transform-origin: center; transform: scaleX(0); }
.wt-end-dot { opacity: 0; }

/* 1. Trigger Spine */
.reveal.visible .intro-spine > .wt-line-v { animation: wt-draw-v 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.2s; }

/* 2. Top Node Horizontal Line */
.reveal.visible .wt-branch-connector > .wt-line-h {
    animation: wt-draw-h 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.8s;
}

/* 3. Top Node Drops */
.reveal.visible .wt-branch-connector > .wt-line-v-drop {
    animation: wt-draw-v 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards 1.4s;
}

/* 4. Side Tree Connection Elbow */
.reveal.visible .wt-side-tree::before {
    animation: wt-draw-v 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards 1.7s;
}
.reveal.visible .wt-side-tree::after {
    animation: wt-draw-h 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards 2.0s;
}

/* 5. Side Tree Vertical Spine */
.reveal.visible .wt-tree-list::before {
    animation: wt-draw-v 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards 2.3s;
}

/* 6. Side Tree Horizontal Legs & Nodes */
.reveal.visible .wt-tree-list > li::before {
    animation: wt-draw-h 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards 2.7s;
}
.reveal.visible .wt-tree-list > li::after {
    animation: wt-fade-in 0.4s ease forwards 3.0s;
}
.reveal.visible .wt-tree-list > li > span {
    animation: wt-pop-in-right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 3.2s;
}

/* 6. Inner Navigation Menu Spine */
.reveal.visible .inner-spine > .wt-line-v {
    animation: wt-draw-v 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards 2.0s;
}

/* 7. Inner Nav Connectors */
.reveal.visible .inner-connector > .wt-line-h {
    animation: wt-draw-h 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards 2.6s;
}
.reveal.visible .inner-connector > .wt-line-v-drop {
    animation: wt-draw-v 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards 3.2s;
}

@keyframes wt-draw-v { to { transform: scaleY(1); } }
@keyframes wt-draw-h { to { transform: scaleX(1); } }
@keyframes wt-pop-in-right { to { opacity: 1; transform: translateX(0); } }
@keyframes wt-fade-in { to { opacity: 1; } }

/* ---------- CONTACT FOOTER ---------- */
.contact-footer {
    padding: 140px 0;
    text-align: center;
    background: var(--bg-dark);
    position: relative;
    z-index: 10;
}
.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.contact-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
}
.contact-value {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1px;
    margin: 0 0 8px 0;
    font-family: var(--font-display);
}

/* ---------- OVERLAPPING FOLDS (MEMBER DETAIL) ---------- */
.overlapping-folds-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 700px;
    margin: 40px auto 100px auto;
    padding: 0;
}
.overlapping-folds-container .desktop-frame {
    position: absolute;
    width: 70%;
    margin: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.fold-front {
    top: 0;
    left: 0;
    z-index: 2;
    box-shadow: 20px 30px 80px rgba(0,0,0,0.15) !important;
}
/* Single frame: fill full width (video mode) */
.overlapping-folds-container .fold-front:only-child {
    position: relative;
    width: 100% !important;
    top: auto;
    left: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12) !important;
}
.fold-back {
    top: 15%;
    right: 0;
    z-index: 1;
    transform: scale(0.95);
    transform-origin: top right;
    box-shadow: 10px 20px 50px rgba(0,0,0,0.08) !important;
}

.fold-viewport {
    height: 450px;
    overflow: hidden;
    position: relative;
    background: #fff;
    border-radius: 0 0 12px 12px;
}
.fold-viewport img {
    width: 100%;
    height: auto;
    display: block;
    position: absolute;
    left: 0;
}
.fold-top img {
    top: 0;
}
.fold-bottom img {
    bottom: 0;
}

@media (max-width: 900px) {
    .overlapping-folds-container {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 40px;
        margin-bottom: 60px;
    }
    .overlapping-folds-container .desktop-frame {
        position: relative;
        width: 100%;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        transform: none !important;
    }
    .fold-viewport { height: 350px; }
}

/* ---------- VENN DIAGRAM (STAKEHOLDERS) ---------- */
.venn-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 60px auto;
}

.venn-svg {
    width: 100%;
    height: auto;
    display: block;
}

.venn-annotations-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1.5px solid rgba(232, 120, 43, 0.25);
}

.venn-ann-card h4 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}
.venn-ann-card p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}
.venn-ann-card--center {
    text-align: center;
    border-left: 1px solid rgba(232, 120, 43, 0.2);
    border-right: 1px solid rgba(232, 120, 43, 0.2);
    padding: 0 16px;
}


/* ---------- PERSONA SWITCHER (USER RESEARCH) ---------- */
.persona-switcher {
    display: grid;
    grid-template-columns: 320px 1fr;
    max-width: 1100px;
    margin: 60px auto 0 auto;
    padding: 0 40px;
    gap: 60px;
    align-items: start;
}
.persona-sticky {
    position: sticky;
    top: 25vh;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}
.persona-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}
.persona-icon-wrap {
    width: 120px;
    height: 120px;
    background: #ffffff;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
}
.persona-icon-wrap svg { width: 52px; height: 52px; stroke: #1C4532; stroke-width: 1.3; }
.persona-abbr {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 900;
    color: #E8782B;
    line-height: 1;
    letter-spacing: -2px;
    transition: all 0.35s ease;
}
.persona-name { font-size: 15px; font-weight: 600; color: var(--text-primary); letter-spacing: 0.4px; }
.persona-scroll-content { display: flex; flex-direction: column; }
.persona-panel {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.persona-panel:last-child { border-bottom: none; }
.persona-detail-card {
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}
.persona-detail-card h3 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.8px;
}
.persona-tagline { font-size: 15px; color: var(--text-secondary); margin: 0 0 28px; line-height: 1.6; }
.persona-stats { display: flex; gap: 32px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid rgba(0,0,0,0.07); }
.persona-stat { display: flex; flex-direction: column; gap: 3px; }
.stat-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
.stat-value { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.persona-goals, .persona-pains { margin-bottom: 24px; }
.persona-goals h5, .persona-pains h5 {
    font-size: 11px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--text-muted); margin: 0 0 12px;
}
.persona-goals ul, .persona-pains ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.persona-goals ul li, .persona-pains ul li {
    padding-left: 20px; position: relative;
    font-size: 14px; color: var(--text-secondary); line-height: 1.5;
}
.persona-goals ul li::before {
    content: ''; position: absolute; left: 0; top: 7px;
    width: 8px; height: 8px; border-radius: 50%; background: #2B8C8C;
}
.persona-pains ul li::before {
    content: ''; position: absolute; left: 0; top: 7px;
    width: 8px; height: 8px; border-radius: 50%; background: #E8782B;
}
.persona-identity.anim-out .persona-icon-wrap { transform: scale(0.8) translateY(8px); opacity: 0; }
.persona-identity.anim-out .persona-abbr { opacity: 0; transform: translateY(6px); }

/* ---------- PERSONA NAV LIST ---------- */
.persona-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.persona-nav-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    border-radius: 14px;
    cursor: default;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.28;
    filter: grayscale(1);
}

.persona-nav-item.active {
    opacity: 1;
    filter: none;
    background: none;
    box-shadow: none;
}

.pnav-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(28, 69, 50, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1C4532;
    transition: background 0.3s ease;
}

.persona-nav-item.active .pnav-icon {
    background: #E8782B;
    color: #ffffff;
}

.pnav-icon svg {
    stroke: currentColor;
}

.pnav-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pnav-abbr {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 800;
    color: #E8782B;
    letter-spacing: -0.4px;
    line-height: 1;
}

.pnav-name {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.3;
}

.persona-nav-item.active .pnav-abbr { color: #E8782B; }
.persona-nav-item.active .pnav-name { color: var(--text-primary); }

/* Visual Identity section — force all text grey on white bg */
#design-system .ds-scale-label,
#design-system .ds-scale-sample,
#design-system .ds-scale-size,
#design-system .fw-label,
#design-system .ds-font-name,
#design-system .ds-section-title,
#design-system .ds-color-name,
#design-system .ds-color-hex,
#design-system .ds-semantic-label,
#design-system .ds-semantic-value,
#design-system h3,
#design-system p {
    color: #5a5a5a !important;
}
/* Keep the main heading teal */
#design-system .section-heading {
    color: var(--text-primary) !important;
}

/* ---------- STAKEHOLDER FLIP CARDS ---------- */
.flip-cards-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 60px 0 40px;
    perspective: 1200px;
}

.flip-card {
    width: 280px;
    height: 400px;
    perspective: 1000px;
    transform: rotate(var(--card-rotate, 0deg));
    transition: transform 0.3s ease;
}

.flip-card:hover {
    transform: rotate(0deg) translateY(-6px);
    z-index: 2;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    border-radius: 24px;
}

/* Start with front visible */
.flip-card-inner {
    transform: rotateY(0deg);
}

/* When .flipped class is added via JS, flip to reveal back */
.flip-card.flipped .flip-card-inner {
    transform: rotateY(-180deg);
    transition-delay: var(--card-delay, 0ms);
}

/* Hover: flip to opposite side */
.flip-card:not(.flipped):hover .flip-card-inner {
    transform: rotateY(-180deg);
    transition-delay: 0ms;
}
.flip-card.flipped:hover .flip-card-inner {
    transform: rotateY(0deg);
    transition-delay: 0ms;
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    padding: 32px;
    color: #ffffff;
    box-shadow: 0 24px 60px rgba(0,0,0,0.18), 0 8px 20px rgba(0,0,0,0.12);
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* Front face */
.fc-icon {
    margin-bottom: auto;
}

.fc-front-name {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-top: auto;
    color: rgba(255,255,255,0.92);
}

/* Back face */
.fc-back-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
}

.flip-card-back h4 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: -0.3px;
}

.flip-card-back p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.72);
    margin: 0 0 20px 0;
}

.flip-card-back ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flip-card-back ul li {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    padding-left: 16px;
    position: relative;
}

.flip-card-back ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: rgba(255,255,255,0.4);
    font-size: 11px;
}

@media (max-width: 800px) {
    .flip-cards-row { flex-direction: column; align-items: center; gap: 24px; }
    .flip-card { transform: rotate(0deg) !important; }
}

/* ---------- HERO META PILLS ---------- */
.hero-meta {
    position: absolute;
    bottom: 36px;
    right: 48px;
    display: flex;
    gap: 12px;
    z-index: 20;
}

.hero-meta-pill {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 20px;
    border-radius: 16px;
    background: rgba(232, 120, 43, 0.35);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 160, 80, 0.45);
    box-shadow: 0 4px 24px rgba(232, 120, 43, 0.2), inset 0 1px 0 rgba(255,200,120,0.25);
}

.meta-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.meta-value {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-display);
    letter-spacing: -0.2px;
}

@media (max-width: 768px) {
    .hero-meta {
        bottom: 20px;
        right: 16px;
        left: 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .hero-meta-pill { padding: 10px 14px; }
    .meta-value { font-size: 13px; }
}
