* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f5f5;
    color: #111111;
    overflow-x: hidden;
    line-height: 1.6;
}

/* TWINE GAME LAYOUT (child / teacher / parent) — matches ND data project palette */
body.twine-game {
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 1.5rem;
}

/* Back link in top-left */
body.twine-game .twine-back-link {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 10;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    background: #ffffff;
    color: #e63946 !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border: 1px solid #dddddd;
}

body.twine-game .twine-prev-button {
    position: fixed;
    top: 4.7rem;
    left: 1.5rem;
    z-index: 10;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    background: #ffffff;
    color: #666666 !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border: 1px solid #dddddd;
    cursor: pointer;
}

body.twine-game .twine-prev-button:hover {
    color: #e63946 !important;
    border-color: #e63946;
}

body.twine-game .twine-back-link:hover {
    background: #ffffff;
    color: #bb111f !important;
    border-color: #e63946;
}

body.twine-game .twine-home-link {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    background: #ffffff;
    color: #666666 !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border: 1px solid #dddddd;
}

body.twine-game .twine-home-link:hover {
    color: #e63946 !important;
    border-color: #e63946;
}

body.twine-game tw-story {
    max-width: 900px;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    padding: 2.5rem 2.75rem;
    border: 1px solid #dddddd;
}

body.twine-game tw-passage {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #222222;
}

body.twine-game tw-passage[tags~="intro-passage"] tw-link,
body.twine-game tw-passage[tags~="story-passage"] tw-link {
    margin-left: 0;
    margin-right: 0;
}

/* Kid-friendly heading and text tweaks */
body.twine-game tw-passage h1,
body.twine-game tw-passage h2,
body.twine-game tw-passage h3 {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #1b1b1b;
    margin-bottom: 0.8rem;
}

body.twine-game tw-passage p {
    margin-bottom: 1rem;
}

/* Normalize spacing inside passages (text + choices) */
body.twine-game tw-passage {
    white-space: normal;
}

body.twine-game tw-passage br {
    display: block;
    content: "";
    margin: 0.35rem 0;
}

/* Resource-page card styling for tagged Twine passages */
body.twine-game tw-passage[tags~="resource-card"] {
    margin: 0 0 1.5rem 0;
}

body.twine-game tw-passage[tags~="resource-card"] .resource-stat-card {
    display: block;
    margin: 1rem 0 1.5rem 0;
    padding: 1.5rem;
    border: none;
    border-left: 4px solid #e63946;
    border-radius: 0.375rem;
    background-color: #ffffff;
    color: #111111;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.twine-game tw-passage[tags~="resource-card"] .resource-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

body.twine-game tw-passage[tags~="resource-card"] .resource-stat-card > :last-child {
    margin-bottom: 0;
}

/* Choice links styled as buttons */
body.twine-game tw-link {
    display: inline-block;
    margin: 0.4rem 0.4rem 0.4rem 0;
    padding: 0.65rem 1.2rem;
    border-radius: 8px;
    background: #e63946;
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.25);
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease;
    cursor: pointer;
}

/* Most passages use standalone choice links; make those stack cleanly */
body.twine-game tw-passage > tw-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0.6rem 0;
}

/* If multiple links are adjacent, keep spacing consistent */
body.twine-game tw-passage > tw-link + tw-link {
    margin-top: 0.6rem;
}

body.twine-game tw-link:hover {
    transform: translateY(-1px);
    background: #bb111f;
    box-shadow: 0 6px 16px rgba(230, 57, 70, 0.35);
}

body.twine-game tw-link:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Restart / back-to-start area */
body.twine-game .restart,
body.twine-game .back-to-start {
    margin-top: 2rem;
    text-align: center;
}

body.twine-game .restart a,
body.twine-game .back-to-start a {
    font-size: 0.95rem;
    color: #666666 !important;
}

/* SECTION STYLING */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
}

.content {
    max-width: 900px;
    width: 100%;
}

h1 {
    font-size: 6rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: #111111;
    letter-spacing: -1px;
}

h2 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #111111;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #333333;
}

p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #444444;
}

/* Links */
a {
    color: #e63946 !important;
    text-decoration: underline;
}

a:hover {
    color: #bb111f !important;
    text-decoration: underline;
}

.stat-large {
    font-size: 2.5rem;
    font-weight: 500;
    color: #111111;
    margin: 2rem 0;
    display: block;
}

.stat-description {
    font-size: 1.4rem;
    color: #555555;
    font-weight: 300;
}

.iceberg-visual {
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Subheading for this news-style section */
.subheading-news {
    margin: 40px 0 20px;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
}

/* Article-style formatting */
.news-article {
    max-width: 700px;            /* narrower for reading */
    margin: 40px auto;
    padding: 20px 25px;
    border-left: 3px solid #888; /* newspaper-style left border */
    background: #f7f7f7;         /* light gray paper-ish background */
    color: #111;
    border-radius: 8px;
}

/* Make part of tech section feel like a news excerpt */
.news-article .stat-large {
    font-family: Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.6;
    display: block;
    font-weight: 500;
}

.news-article a {
    font-style: italic;
    color: #444 !important;
    text-decoration: underline;
}

.news-article .stat-description {
    margin-top: 14px;
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
}

.news-image {
    width: 100%;
    max-width: 650px;
    border-radius: 6px;
    margin-top: 15px;
    display: block;
}


/* NOTE ON THE DATA – light card */
.data-note-card {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    padding: 2.5rem 3rem;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e3e3e3;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
    text-align: center; 
}

.data-note-card p {
    text-align: center;
}

.data-note-card p:first-child {
    font-size: 1.4rem;
    line-height: 1.9;
    color: #111111;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.data-note-card p:last-child {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444444;
}

/* Icons row under the card */
.data-note-icons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.data-note-icon {
    text-align: center;
}

.data-note-symbol {
    font-size: 3rem;
    font-weight: 600;
    color: #111111;
    margin-bottom: 0.3rem;
}

.data-note-label {
    font-size: 0.95rem;
    color: #666666;
}

/* Link under the icons */
.data-note-link {
    margin-top: 3rem;
    font-size: 0.9rem;
    color: #777777;
}

.data-note-link a {
    color: #e63946 !important;
    border-bottom: 1px solid #e0e0e0;
    text-decoration: none;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.data-note-link a:hover {
    color: #bb111f !important;
    border-color: #bb111f;
}

/* CALENDAR VISUAL */
.calendar-visual {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 4rem auto;
    width: 100%;
    max-width: 1200px;
}

.months {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.25rem;
    width: 100%;
    justify-items: center;
}

.month {
    width: 100px;
    height: 85px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    background-color: #f0f0f0;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.has-image {
    background-image: url('../visuals/calendar.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.month.visible {
    opacity: 1;
    transform: scale(1);
}

/* LIGHT SECTIONS (global light theme) */
.section-light,
.section-black,
.section-dark,
.section-darker {
    background: #ffffff;
    color: #111111;
}

/* Ensure text inside all sections is dark */
.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4,
.section-light p,
.section-light .stat-large,
.section-light .stat-description,
.section-black h1,
.section-black h2,
.section-black h3,
.section-black h4,
.section-black p,
.section-black .stat-large,
.section-black .stat-description,
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark p,
.section-dark .stat-large,
.section-dark .stat-description {
    color: #111111 !important;
}

/* FADE IN ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* PROFILE CARDS (light) */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.profile-card {
    background: #ffffff;
    padding: 2rem;
    border-left: 4px solid #dddddd;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
}

.profile-card:hover {
    border-left-color: #e63946;
    transform: translateX(5px);
}

.profile-type {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888888;
    margin-bottom: 1rem;
}

.profile-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #111111;
    margin-bottom: 0.5rem;
}

.profile-description {
    font-size: 1rem;
    color: #555555;
    line-height: 1.6;
}

/* LIGHT PROFILE CARDS */
.profile-grid-light {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.profile-card-light {
    background: #ffffff;
    padding: 2rem;
    border-left: 4px solid #dddddd;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
}

/* AD BAR VIZ */
.ad-bar-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 60px 0;
}

.ad-bar {
    display: flex;
    gap: 6px;
}

.ad-block {
    width: 40px;
    height: 40px;
    background: #e5e5e5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #ffffff;
    font-weight: bold;
    opacity: 0.5;
    transition: background 0.25s ease, opacity 0.25s ease;
}

/* filled red blocks */
.filled-red {
    background: #e63946;
    opacity: 1;
}

/* filled gray blocks (final 2) */
.filled-gray {
    background: #999999;
    opacity: 1;
}

/* VERTICAL PROFILE CARDS */
.profile-card-vertical {
    background: #ffffff;
    padding: 2.5rem;
    border-left: 4px solid #dddddd;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    max-width: 900px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
}

.profile-card-vertical:hover {
    border-left-color: #e63946;
    transform: translateX(5px);
}

/* STICKY VISUALIZATION SECTION */
.sticky-section {
    position: relative;
    height: 300vh;
}

.sticky-content {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.stat-visual {
    text-align: center;
}

/* CONNECTION/FLOW DIAGRAM */
.connection-diagram {
    width: 100%;
    height: 400px;
    background: none;
    border: 2px solid #dddddd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem 0;
    color: #666666;
    font-size: 1.2rem;
}

/* TECHNOLOGY ROLE SECTION */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.tech-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    border-top: 3px solid #dddddd;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
}

.tech-card h4 {
    font-size: 1.3rem;
    color: #111111;
    margin-bottom: 1rem;
}

.tech-card p {
    font-size: 1rem;
    color: #555555;
}

/* Platform cards (Facebook / Instagram) */
.platform-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    padding: 18px 25px;
    background: #ffffff;
    border-radius: 14px;
    width: 100%;
    max-width: 500px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.platform-card .text h3,
.platform-card .text p {
    color: #111111 !important;
}

.platform-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Icons */
.icon {
    font-size: 32px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
}

.facebook {
    background: #1877f2;
}

.instagram {
    background: #d62976;
}

.text h3 {
    font-size: 22px;
    margin-bottom: 4px;
}

.increase {
    font-size: 18px;
    font-weight: bold;
}

/* Pulse animation */
.pulse {
    animation: pulse 1.5s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0,0,0,0.08);
    }
    70% {
        transform: scale(1.12);
        box-shadow: 0 0 18px rgba(0,0,0,0.18);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0,0,0,0);
    }
}

/* QUOTE SECTION */
.quote-section {
    background: #f0f0f0;
    padding: 4rem 2rem;
    text-align: center;
}

blockquote {
    font-size: 1.8rem;
    font-style: italic;
    color: #333333;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.quote-attribution {
    font-size: 1rem;
    color: #666666;
    margin-top: 1.5rem;
    font-style: normal;
}

/* COLOR SECTIONS */
.section-dark { background: #ffffff; }
.section-darker { background: #f9f9f9; }
.section-black { background: #ffffff; }

/* DIVIDER */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #d0d0d0, transparent);
    margin: 4rem 0;
}

/* NAVIGATION LINKS SECTION */
.link-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.link-card {
    background-color: #ffffff;
    color: #111111;
    padding: 1rem 2rem;
    border: 1px solid #dddddd;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.link-card:hover {
    background-color: #e63946;
    color: #ffffff !important;
    border-color: #e63946;
}

/* Center the "Explore the Data" header */
section .content h2 {
  text-align: center;
}

/* HOSPITALITY PICTOGRAPH */
.pictograph {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    justify-content: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.pictograph.show {
    opacity: 1;
    transform: translateY(0);
}

.person {
    font-size: 1.8rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.person:hover {
    transform: scale(1.2);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* GIRL VISUAL */
.girl-visual {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
}

/* Giant percentage circle */
.circle.large {
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    color: #111111;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.percent-text {
    font-size: 2.4rem;
    font-weight: 700;
}

.label-text {
    font-size: 1rem;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

/* Age box */
.age-box {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 14px;
    padding: 1rem 1.5rem;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.age-number {
    font-size: 3rem;
    font-weight: 600;
    color: #111111;
}

.age-label {
    font-size: 0.9rem;
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* DOT MATRIX (Known & Trusted) */
.dot-matrix-container {
    margin-top: 2rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #dddddd;
}

.dot-matrix-header {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.dot-legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111111;
}

.legend-label {
    font-size: 0.95rem;
    color: #666666;
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #bbbbbb;
}

.runaway-legend {
    background: #111111;
}

.knew-legend {
    background: #777777;
}

/* Dot grid */
.dot-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
    justify-items: center;
    margin-bottom: 1rem;
}

.dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
}

.dot.runaway {
    background: #111111;
}

.dot.knew-trafficker {
    background: #777777;
}

.dot-caption {
    font-size: 0.9rem;
    color: #777777;
    text-align: center;
}

/* PIE CHARTS */
.pie-container {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.pie-chart-block {
    text-align: center;
}

.pie-chart-block h4 {
    color: #111111;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.pie-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #777777;
}

/* SPIDERWEB CANVAS */
#webVisualization {
    height: 700px;
    width: 100%;
    display: block;
    background: radial-gradient(circle at center, #ffffff 0%, #f7f7f7 100%);
    border: none;
    margin-top: 2.5rem;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}

/* CRIMINAL HISTORY VISUAL */
.history-visual {
    margin-top: 2rem;
}

.history-bar {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dddddd;
    background: #ffffff;
}

.history-segment {
    padding: 0.9rem 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
}

/* 68.5% little/no prior record */
.history-segment.first-time {
    flex: 685;
    background: #f0f0f0;
    color: #111111;
}

/* 31.5% more extensive prior history */
.history-segment.repeat {
    flex: 315;
    background: #ffffff;
    color: #111111;
}

.history-percent {
    font-size: 1.5rem;
    font-weight: 600;
}

.history-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
}

.history-caption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #777777;
}

/* DEMOGRAPHICS VISUAL */
.demographics-visual {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    margin: 2rem 0 1rem 0;
}

.demographic-pill {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 14px;
    padding: 1.2rem 1.6rem;
    min-width: 160px;
    text-align: center;
    flex: 1 1 160px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

.demo-icon {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}

.demo-number {
    font-size: 1.8rem;
    font-weight: 600;
    color: #111111;
    margin-bottom: 0.2rem;
}

.demo-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777777;
}

.demographics-caption {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #777777;
}

/* JUSTICE TREE – light version */
.justice-tree {
    margin-top: 2rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 0.5rem;
    position: relative;
}

.tree-node {
    position: relative;
    margin-bottom: 1.8rem;
    padding-top: 1.8rem;
    display: flex;
    justify-content: center;
}

.tree-node::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 1.6rem;
    background: linear-gradient(to bottom, #cccccc, #bbbbbb);
    opacity: 0.9;
}

.tree-node::after {
    content: "";
    position: absolute;
    top: 1.4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 2px solid #bbbbbb;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

.tree-node.first::before {
    display: none;
}

.tree-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #dddddd;
    padding: 1rem 1.3rem;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    max-width: 420px;
    width: 100%;
}

.tree-root {
    background: linear-gradient(135deg, #ffffff, #f5f5f5);
}

.tree-mid {
    background: linear-gradient(135deg, #ffffff, #f3f3f3);
}

.tree-deeper {
    background: linear-gradient(135deg, #ffffff, #f1f1f1);
}

.tree-deepest {
    background: linear-gradient(135deg, #ffffff, #efefef);
}

.tree-header {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.3rem;
}

.tree-percent {
    font-size: 1.7rem;
    font-weight: 600;
    color: #111111;
}

.tree-label {
    font-size: 1rem;
    font-weight: 500;
    color: #222222;
}

.tree-subtext {
    font-size: 0.9rem;
    color: #555555;
    margin: 0;
}

/* ====== Mountain Money Section ====== */

.cinematic-section {
  position: relative;
  width: 100%;
  height: 200vh; /* long scroll */
  background: transparent; 
  color: white;
  overflow: visible;
  padding: 0;
  margin: 0;
}

.cinematic-text {
  z-index: 5;
  max-width: 650px;
  padding-top: 0;
}

.cinematic-text h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cinematic-text p {
  font-size: 1.4rem;
  line-height: 1.6;
}

.two-col-cinematic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.cinematic-visual {
    position: relative;
    width: 100%;
    height: 75vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: visible;
    padding-top: 10vh; 
}


/* Make visuals smaller */
.mountain-stack,
.money-stack {
    position: absolute;
    bottom: 0;
    background-repeat: repeat-y;
    background-position: center bottom;
    background-size: contain;
    transform: scale(0.75);
    transform-origin: bottom center;
}

/* Shift money left */
.money-stack {
    width: 140px;
    left: -40px;
    z-index: 20;
    background-image: url('../visuals/money-stack.png');
}

/* Shift mountains right */
.mountain-stack {
    width: 220px;
    right: -40px;
    z-index: 10;
    background-image: url('../visuals/mountain.png');
}

/* ====== Man Sihouette and Map Section ====== */
.silhouette-scroll-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 2rem 0 3rem 0;
    overflow: hidden;
}

.silhouette-container {
    display: flex;
    gap: 1.5rem;
}

.silhouette {
    width: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.silhouette.visible {
    opacity: 1;
    transform: translateY(0);
}
/* MAP */
.map-visual {
    margin: 2rem 0;
    text-align: center;
}

.map-visual img {
    width: 80%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
}

/* ===== PERCEPTION VS REALITY / ICEBERG LAYOUT ===== */

.iceberg-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr);
    gap: 2.5rem;
    margin-top: 2.5rem;
    align-items: center;
}

.iceberg-column {
    text-align: center;
}

.iceberg-column.iceberg-right {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.iceberg-caption {
    margin-top: 1rem;
    font-size: 1rem;
    color: #555555;
    font-style: italic;
}

/* Iceberg image */
.iceberg-visual {
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ===== HIDDEN REALITY CARDS + HOVER (BOTH CARDS) ===== */

.hidden-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #dddddd;
    border-left: 4px solid #dddddd;  /* neutral by default */
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.hidden-card:hover {
    border-left-color: #e63946;       /* red on hover */
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.hidden-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #111111;
}

.hidden-text {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 1rem;
}

.hidden-caption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #777777;
}

/* Highlighted online abuse stat card */
.online-highlight-card {
    background: #fcfcfc;
}

/* Pill with 15.6% stat */
.online-highlight-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    margin: 0.5rem 0 0.25rem 0;
    border-radius: 999px;
    background: #f8f8f8;
    border: 1px solid #e3e3e3;
}

.online-number {
    font-size: 1.6rem;
    font-weight: 600;
    color: #111111;
    min-width: 4.5rem;
}

.online-label {
    font-size: 0.98rem;
    color: #555555;
}
