:root {
    /* Deep, restrained blues for the brand side */
    --brand-bg: #0A1320;
    --brand-bg-top: #162438;
    --brand-bg-mid: #0D1827;
    --brand-bg-bottom: #08111B;
    --brand-text: #F7FAFF;
    --brand-subtitle-text: #92A8C5;
    --brand-glow-primary: rgba(219, 234, 254, 0.05);
    --brand-glow-secondary: rgba(96, 165, 250, 0.04);
    --brand-mark-size: clamp(170px, 20vw, 230px);
    --brand-stage-width: clamp(320px, 38vw, 440px);

    /* Clean, crisp off-white for the content side */
    --content-bg: #F8FAFC;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --accent: #2563EB; /* A sharp, trustworthy blue */
    --border: #E2E8F0;
}

html,
body {
    min-height: 100%;
}

html {
    background: var(--content-bg);
}

html.home-page {
    background:
        linear-gradient(90deg, var(--brand-bg-bottom) 0 50%, var(--content-bg) 50% 100%);
    overscroll-behavior-y: none;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    background-color: var(--content-bg);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

html.home-page body {
    overscroll-behavior-y: none;
}

body:not(.timeline-page) {
    background:
        linear-gradient(90deg, var(--brand-bg-bottom) 0 50%, var(--content-bg) 50% 100%);
}

body.timeline-page {
    display: block;
    min-height: 100svh;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
        linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);
}

/* --- Left Side: Brand & Mascot --- */
.split-brand {
    flex: none;
    width: 50%;
    background:
        radial-gradient(circle at 50% 18%, rgba(219, 234, 254, 0.03), transparent 20%),
        radial-gradient(circle at 12% 10%, rgba(96, 165, 250, 0.04), transparent 28%),
        linear-gradient(180deg, var(--brand-bg-top) 0%, var(--brand-bg-mid) 48%, var(--brand-bg-bottom) 100%);
    display: grid;
    place-items: center;
    padding: clamp(2rem, 5vw, 4rem);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    text-align: center;
    overflow: hidden;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.split-brand::before {
    content: none;
}

.brand-stage {
    position: relative;
    width: min(100%, var(--brand-stage-width));
    display: grid;
    justify-items: stretch;
    align-content: center;
    gap: clamp(1.1rem, 2.5vw, 1.7rem);
    padding: clamp(1rem, 2.2vw, 1.4rem) 0;
}

.brand-stage::before {
    content: none;
}

.brand-identity {
    display: grid;
    justify-items: center;
    gap: clamp(0.85rem, 1.8vw, 1.1rem);
}

.mascot-container {
    width: min(100%, var(--brand-mark-size));
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    position: relative;
}

.mascot-container::before {
    content: "";
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 38%, var(--brand-glow-primary), transparent 42%),
        radial-gradient(circle at 50% 62%, rgba(15, 23, 42, 0.22), transparent 72%);
    z-index: 0;
}

.mascot-container::after {
    content: none;
}

.mascot-container img {
    width: 92%;
    height: 92%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: none;
}

.brand-lockup {
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    text-align: center;
}

.brand-lockup::before {
    content: none;
}

.brand-name {
    font-size: clamp(2.45rem, 4.2vw, 3.45rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    color: var(--brand-text);
}

.brand-subtitle {
    max-width: 22rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: none;
    color: var(--brand-subtitle-text);
}

.brand-lockup > * {
    margin: 0;
}

.brand-services {
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 0.85rem;
    margin-top: 0;
    padding-top: clamp(1rem, 2vw, 1.2rem);
    border-top: 1px solid rgba(219, 234, 254, 0.14);
    text-align: center;
}

.brand-service-list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.38rem 0.45rem;
    list-style: none;
}

.brand-service-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    min-height: 1.55rem;
    padding: 0.26rem 0.6rem;
    border: 1px solid rgba(219, 234, 254, 0.24);
    border-left-color: rgba(125, 211, 252, 0.65);
    border-radius: 8px;
    background: rgba(219, 234, 254, 0.07);
    color: rgba(247, 250, 255, 0.94);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
}

.brand-services-note {
    max-width: 20rem;
    color: rgba(191, 212, 242, 0.72);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
}

/* --- Right Side: Content --- */
.split-content {
    flex: none;
    width: 50%;
    margin-left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(1.75rem, 4vh, 4rem) clamp(2rem, 4vw, 4rem);
}

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

.content-label {
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1.3;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.content-title {
    color: var(--text-main);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.12;
    margin-bottom: 0.85rem;
}

.lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: clamp(1.75rem, 3vh, 3rem);
}

.features {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vh, 1.5rem);
    margin-bottom: clamp(1.75rem, 3vh, 3rem);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #DBEAFE;
    color: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.feature-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.feature-icon svg.feature-icon-stroke {
    fill: none;
}

.feature-text h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

.status-note {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    position: relative;
    padding-left: 1rem;
}

.status-note::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2rem;
    bottom: 0.2rem;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.75), rgba(37, 99, 235, 0.18));
}

.status-note-header {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--accent);
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--accent);
}

.status-note h2 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-main);
}

.status-note p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.status-contact {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.status-contact a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.status-contact a:hover {
    text-decoration: underline;
}

.email-link:not([data-email-ready="true"]) {
    white-space: nowrap;
}

.timeline-shell {
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 1.75rem) clamp(1.5rem, 4vw, 3rem) clamp(1.75rem, 4vw, 2.75rem);
}

.timeline-hero {
    margin-bottom: clamp(2rem, 5vh, 3.5rem);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.timeline-header-block {
    position: relative;
    max-width: 60ch;
    padding-left: 1rem;
}

.timeline-header-block::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2rem;
    bottom: 0.2rem;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.75), rgba(37, 99, 235, 0.18));
}

.timeline-label {
    margin-bottom: 0.65rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.timeline-title {
    font-size: clamp(2rem, 5vw, 3.3rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 0.98;
    color: var(--text-main);
    margin-bottom: 0.85rem;
}

.timeline-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-entry {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.timeline-date {
    padding-top: 0.4rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.timeline-card {
    padding: 1.2rem 1.3rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.timeline-card h2 {
    font-size: 1.05rem;
    font-weight: 650;
    line-height: 1.35;
    color: var(--text-main);
    margin-bottom: 0.45rem;
}

.timeline-card p {
    color: var(--text-muted);
    font-size: 0.97rem;
}

.timeline-note {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.timeline-note a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.timeline-note a:hover {
    text-decoration: underline;
}

footer {
    margin-top: clamp(1.5rem, 3vh, 3rem);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    html.home-page {
        background: var(--content-bg);
    }

    body {
        flex-direction: column;
    }

    body:not(.timeline-page) {
        background: var(--content-bg);
    }

    .split-brand {
        flex: none;
        width: 100%;
        --brand-mark-size: 170px;
        --brand-stage-width: 380px;
        position: relative;
        top: auto;
        left: auto;
        height: auto;
        min-height: 0;
        padding: 2.25rem 1.5rem;
    }

    .brand-stage {
        padding: 1rem 0;
    }

    .mascot-container {
        width: min(100%, var(--brand-mark-size));
    }

    .split-content {
        width: 100%;
        margin-left: 0;
        padding: 2.5rem 2rem;
    }

    .content-title {
        font-size: 1.75rem;
    }

    .timeline-entry {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .timeline-date {
        padding-top: 0;
    }
}
