:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8faff;
    --surface-dark: linear-gradient(145deg, #24356d 0%, #111c3f 100%);
    --text: #0f172a;
    --text-soft: #475569;
    --text-muted: #64748b;
    --line: rgba(15, 23, 42, 0.08);
    --line-strong: rgba(15, 23, 42, 0.14);
    --primary: #2d4de0;
    --primary-dark: #1f3597;
    --primary-soft: rgba(45, 77, 224, 0.1);
    --white: #ffffff;
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --max-width: 1380px;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(45, 77, 224, 0.12), transparent 28%),
        radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.06), transparent 24%),
        var(--bg);
    line-height: 1.65;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.page-shell {
    min-height: 100vh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--white);
}

.topbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
}

.topbar .brand-text {
    color: var(--white);
}

.brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: inline-block;
    border-radius: 6px;
}

.brand-mark {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #7aa2ff);
    box-shadow: 0 0 0 8px rgba(45, 77, 224, 0.08);
}

.topbar-meta {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-pill,
.stat-chip,
.mini-label,
.eyebrow {
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.meta-pill {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
}

.meta-pill.muted {
    color: rgba(255,255,255,0.85);
}

.main-layout {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 36px 32px 48px;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 96px;
}

.sidebar-card,
.section-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(14px);
}

.sidebar-card {
    border-radius: 24px;
    padding: 20px;
}

.go-back-button {
    width: 100%;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 18px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    box-shadow: 0 14px 28px rgba(45, 77, 224, 0.24);
    font-weight: 700;
}

.go-back-button:hover {
    transform: translateY(-2px);
}

.arrow-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
}

.sidebar-copy {
    margin: 22px 0 24px;
}

.sidebar-copy h2 {
    font-size: 1.25rem;
    line-height: 1.2;
    margin: 8px 0 10px;
}

.sidebar-copy p:last-child {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.eyebrow,
.mini-label {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--primary);
}

.eyebrow.light,
.light .eyebrow,
.showcase-copy .eyebrow {
    color: rgba(255, 255, 255, 0.76);
}

.timeline-nav {
    display: grid;
    gap: 10px;
}

.timeline-link {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid transparent;
    color: var(--text-soft);
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.timeline-link:hover,
.timeline-link.active {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
    transform: translateX(2px);
}

.timeline-link.active {
    box-shadow: inset 0 0 0 1px rgba(45, 77, 224, 0.08);
}

.timeline-index {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-muted);
    font-weight: 800;
    font-size: 0.84rem;
}

.timeline-link.active .timeline-index {
    background: var(--primary-soft);
    color: var(--primary);
}

.timeline-label {
    font-weight: 700;
    font-size: 0.96rem;
    line-height: 1.3;
}

.content-column {
    display: grid;
    gap: 24px;
}

.section-card {
    border-radius: var(--radius-xl);
    padding: 30px;
}

.hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 28px;
    align-items: center;
    overflow: hidden;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.1rem, 4vw, 3.45rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
    margin: 12px 0 16px;
    max-width: 12ch;
}

.hero-subtitle {
    font-size: 1.14rem;
    line-height: 1.6;
    color: var(--text-soft);
    max-width: 58ch;
}

.hero-text-stack {
    display: grid;
    gap: 14px;
    margin-top: 24px;
    color: var(--text-soft);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.stat-chip {
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    min-width: 118px;
}

.stat-chip strong {
    display: block;
    font-size: 1.15rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.stat-chip span {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 700;
}

.media-frame {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.02));
    box-shadow: var(--shadow-lg);
}

.media-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: inherit;
    pointer-events: none;
}

.media-frame.tall {
    min-height: 560px;
}

.media-frame.wide {
    min-height: 560px;
}

.media-frame.medium {
    min-height: 430px;
}

.dark-frame {
    background: rgba(255, 255, 255, 0.08);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
}

.content-block {
    border-radius: 22px;
    padding: 24px;
}

.accent-block {
    background: linear-gradient(135deg, rgba(45, 77, 224, 0.08), rgba(45, 77, 224, 0.02));
    border: 1px solid rgba(45, 77, 224, 0.1);
}

.subtle-block {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.section-title {
    font-size: clamp(1.7rem, 2.6vw, 2.35rem);
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-top: 6px;
}

.section-title.light {
    color: var(--white);
}

.section-note {
    color: var(--text-muted);
    max-width: 32ch;
    text-align: right;
    margin-left: auto;
}

.text-section .prose,
.split-section .prose,
.showcase-card .prose,
.intro-grid p,
.intro-grid li {
    font-size: 1.03rem;
    color: var(--text-soft);
}

.prose {
    display: grid;
    gap: 14px;
}

.light-prose,
.showcase-copy {
    color: rgba(255, 255, 255, 0.88);
}

.two-column-text {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 28px;
}

.two-column-text p:last-child {
    grid-column: 1 / -1;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-top: 2px;
}

.feature-list li {
    position: relative;
    padding-left: 20px;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 6px rgba(45, 77, 224, 0.08);
    transform: translateY(-50%);
}

.feature-list.compact {
    gap: 10px;
}

.media-section .media-frame {
    margin-top: 8px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
    gap: 22px;
    align-items: center;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 8px 0;
}

.highlight-card {
    padding: 18px;
    border-radius: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.highlight-card strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text);
}

.highlight-card span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.showcase-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 24px;
    align-items: center;
    background: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(17, 28, 63, 0.26);
}

.quote-panel,
.reflection-panel,
.cta-panel {
    margin-top: 24px;
}

.quote-panel {
    padding: 22px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.quote-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.quote-grid blockquote {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.quote-grid p {
    font-size: 1.14rem;
    line-height: 1.45;
    color: var(--text);
    font-weight: 700;
}

.reflection-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.82fr);
    gap: 18px;
}

.reflection-quote {
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(45, 77, 224, 0.12), rgba(45, 77, 224, 0.04));
    border: 1px solid rgba(45, 77, 224, 0.12);
    padding: 24px;
    display: grid;
    align-content: start;
    gap: 12px;
}

.quote-mark {
    font-size: 3rem;
    line-height: 1;
    color: var(--primary);
    opacity: 0.4;
}

.reflection-quote p {
    font-size: 1.1rem;
    line-height: 1.55;
    font-weight: 700;
}

.quote-author {
    color: var(--text-muted);
    font-weight: 600;
}

.cta-panel {
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1f2937 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cta-panel h3 {
    margin-top: 10px;
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    line-height: 1.2;
    max-width: 20ch;
}

.cta-button {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #6ea2ff 0%, #3d6cff 100%);
    color: var(--white);
    padding: 16px 24px;
    min-width: 190px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    box-shadow: 0 16px 32px rgba(61, 108, 255, 0.26);
    font-weight: 700;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.page-footer {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px 32px;
}

.footer-content {
    border-radius: 28px;
    padding: 24px 28px;
    background: #0f172a;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand {
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.72);
}

.footer-copy.secondary {
    margin-top: 2px;
}

.footer-contact {
    text-align: right;
}

.footer-contact a {
    color: var(--white);
    display: inline-block;
    margin-bottom: 4px;
}

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

    .sidebar {
        position: static;
    }

    .sidebar-card {
        padding: 18px;
    }

    .timeline-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .timeline-link {
        grid-template-columns: 36px 1fr;
        min-height: 72px;
    }
}

@media (max-width: 1024px) {
    .hero-card,
    .intro-grid,
    .split-layout,
    .showcase-card,
    .reflection-panel {
        grid-template-columns: 1fr;
    }

    .two-column-text,
    .highlight-grid,
    .quote-grid {
        grid-template-columns: 1fr;
    }

    .media-frame.tall,
    .media-frame.wide,
    .media-frame.medium {
        min-height: 380px;
    }

    .reverse-mobile .media-frame {
        order: -1;
    }

    .section-note {
        text-align: left;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .topbar-inner,
    .main-layout,
    .page-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .main-layout {
        padding-top: 20px;
        padding-bottom: 28px;
    }

    .topbar-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-card,
    .sidebar-card,
    .footer-content {
        border-radius: 22px;
    }

    .section-card {
        padding: 22px;
    }

    .timeline-nav {
        grid-template-columns: 1fr 1fr;
    }

    .section-header,
    .inline-header,
    .cta-panel,
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-contact {
        text-align: left;
    }

    .cta-button {
        width: 100%;
    }

    .hero-title {
        max-width: none;
    }

    .media-frame.tall,
    .media-frame.wide,
    .media-frame.medium {
        min-height: 300px;
    }
}

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

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

/* Small-screen / Mobile tweaks */
@media (max-width: 480px) {
    .topbar-inner {
        padding: 10px 14px;
        align-items: center;
    }

    .brand-text {
        font-size: 0.85rem;
        display: inline-block;
        margin-left: 8px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        max-width: 120px;
    }

    .brand-logo {
        width: 28px;
        height: 28px;
    }

    .main-layout {
        padding: 18px 14px 22px;
        gap: 16px;
    }

    .section-card {
        padding: 18px;
    }

    .hero-card {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .media-frame.tall,
    .media-frame.wide,
    .media-frame.medium {
        min-height: 260px;
    }

    .hero-title {
        font-size: clamp(1.6rem, 6vw, 2.1rem);
        max-width: none;
    }

    .hero-subtitle,
    .text-section .prose,
    .split-section .prose,
    .showcase-card .prose {
        font-size: 0.98rem;
    }

    .timeline-link {
        padding: 10px 12px;
    }

    .go-back-button {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .page-footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    img {
        height: auto;
    }
}
