:root {
    /* Colors */
    --color-bg: #FFFFFF;
    --color-surface: #F8F8F9;
    /* Softer gray */
    --color-text-main: #000000;
    /* Pure black for Apple feel */
    --color-text-muted: #6E6E73;
    /* Apple's muted gray */
    --color-accent: #910215;
    --color-accent-hover: #cd031e;

    /* Typography - Pure Sans-Serif */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: var(--font-body);

    /* Spacing */
    --container-width: 1040px;
    /* Refined Apple container */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;
    --spacing-xl: 10rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.47059;
    /* Apple's line height */
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.022em;
}

h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

/* Consistent spacing between heading and text */
h1+p,
h2+p,
h3+p {
    margin-top: 1.5rem;
}

p {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Animations Hub */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header - Apple style refined */
.site-header {
    height: 48px;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text-main);
}

.main-nav {
    flex-grow: 1;
}

.nav-links {
    display: flex;
    justify-content: center;
    /* Center links like Apple */
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-main);
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.8;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    opacity: 1;
    color: var(--color-text-main);
}

.lang-switch {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.lang-switch span {
    cursor: pointer;
    transition: color 0.2s;
}

.lang-switch span:hover {
    color: var(--color-text-main);
}

.lang-switch span.active {
    color: var(--color-text-main);
    font-weight: 500;
}

.menu-toggle {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-lg) 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    /* More space below heading */
}

.hero-sub {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text-muted);
    max-width: 40ch;
    margin-bottom: 3rem;
    line-height: 1.4;
}

/* Global Typography Overrides */
h1,
h2,
h3 {
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
}

p {
    font-family: var(--font-body) !important;
    font-size: 1.125rem !important;
    color: var(--color-text-muted) !important;
    line-height: 1.6 !important;
}

/* Button System - Red Accent Everywhere */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 99px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-align: center;
    border: 1px solid transparent;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff !important;
    border: 1px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-accent) !important;
    border: 1px solid var(--color-accent);
}

.btn-outline:hover {
    background-color: var(--color-accent);
    color: #fff !important;
    transform: translateY(-2px);
}


/* Hero Image - Portrait Card Style */
.hero-image-wrapper {
    position: relative;
    perspective: 2000px;
    z-index: 1;
}

/* Offset Decorative Border for Hero */
.hero-image-wrapper::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    right: -15px;
    bottom: -15px;
    border: 2px solid var(--color-accent);
    border-radius: 32px;
    z-index: -1;
    opacity: 0.15;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image-wrapper:hover::after {
    transform: translate(10px, 10px);
    opacity: 0.35;
}

.hero-image-wrapper:hover .image-accent {
    transform: translate(10px, -10px) rotate(15deg);
    opacity: 0.3;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 32px;
    background-color: #fff;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation: storyFloat 8s ease-in-out infinite;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.hero-img:hover {
    transform: scale(1.02);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.15);
}

/* Remove the previous red accent to keep it super clean like the reference */
.hero-image-wrapper::before {
    display: none;
}

/* Pillars */
.pillars {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-surface);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pillar-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s;
    text-align: center;
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Lift effect */
}

.pillar-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.pillar-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    /* Center the line */
    transform: translateX(-50%);
    /* Adjust for centering */
    width: 40px;
    height: 2px;
    background-color: var(--color-accent);
}

.pillar-card p {
    color: var(--color-text-muted);
    font-size: 1rem;
}

/* Mobile Responsive - Base */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-sub {
        margin: 0 auto var(--spacing-md);
    }

    .nav-links {
        display: none;
        /* Hide for now, need JS for toggle */
    }

    .menu-toggle {
        display: block;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Section Styles from Extension --- */

/* Section Kicker - Apple style small caption */
.section-kicker {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 2rem;
    text-align: center;
}

/* Pillar Icons */
.pillar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: #F5F5F7;
    border-radius: 16px;
    margin-bottom: 2rem;
    color: var(--color-accent);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillar-card:hover .pillar-icon {
    background-color: var(--color-accent);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}


.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 2rem;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 1rem;
    }

    .metric-item:last-child {
        grid-column: span 2;
    }

    .metric-number {
        font-size: 1.4rem;
    }
}

.metric-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Calendar */
.calendar-section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    border-left: 3px solid var(--color-accent);
    /* Accent touch */
    padding-left: 1rem;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.calendar-table th {
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid var(--color-text-main);
    font-family: var(--font-heading);
    font-weight: 600;
}

.calendar-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.calendar-table tr:hover {
    background-color: var(--color-surface);
}

.btn-link {
    text-decoration: none;
    color: var(--color-accent);
    font-weight: 500;
    transition: color 0.2s;
}

.btn-link:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

/* Responsive Table */
@media (max-width: 768px) {
    .calendar-table thead {
        display: none;
    }

    .calendar-table tr {
        display: block;
        margin-bottom: 2rem;
        background: var(--color-surface);
        padding: 1.5rem;
        border-radius: 16px;
        border-bottom: none;
    }

    .calendar-table td {
        display: flex;
        justify-content: space-between;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        text-align: right;
    }

    .calendar-table td:last-child {
        border-bottom: none;
        padding-top: 1.5rem;
        justify-content: center;
    }

    .calendar-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--color-text-main);
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 0.05em;
        margin-right: 1rem;
        text-align: left;
    }

    .calendar-table td[data-label="Registration"]::before {
        display: none;
    }

    .calendar-table .btn-link {
        display: block;
        width: 100%;
        text-align: center;
        background: var(--color-accent);
        color: #fff;
        padding: 1rem;
        border-radius: 8px;
        text-decoration: none;
    }
}

/* About Teaser */
.about-teaser {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-surface);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    text-align: left;
    margin: 0;
}

.about-text p {
    margin-bottom: 2.5rem;
    /* Space before the button */
}

.about-image {
    position: relative;
    perspective: 1000px;
    z-index: 1;
}

/* Offset Decorative Border */
.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--color-accent);
    border-radius: 32px;
    z-index: -1;
    opacity: 0.2;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image:hover::after {
    transform: translate(10px, 10px);
    opacity: 0.4;
}

.image-accent {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 80px;
    height: 80px;
    background-color: var(--color-accent);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.15;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image:hover .image-accent {
    transform: translate(10px, -10px) rotate(15deg);
    opacity: 0.3;
}

@keyframes storyFloat {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.story-img {
    width: 100%;
    height: auto;
    border-radius: 32px;
    filter: saturate(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
    display: block;
    animation: storyFloat 8s ease-in-out infinite;
}

.story-img:hover {
    filter: saturate(1.1);
    transform: scale(1.03);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.18);
}





/* Final CTA */
/* Final CTA */
.final-cta {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-accent);
    color: #fff !important;
    text-align: center;
}

.final-cta h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 2rem;
}

/* Ensure all text inside CTA is white */
.final-cta h2,
.final-cta .cta-text,
.final-cta p {
    color: #fff !important;
    opacity: 1 !important;
}

.final-cta .cta-text {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Special button for red background */
.btn-primary-white {
    background-color: #fff;
    color: var(--color-accent) !important;
    border: 1px solid #fff;
}

.btn-primary-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}


/* Footer */
.site-footer {
    padding: 3rem 0;
    background-color: #F5F5F7;
    /* Light gray Apple style */
    color: var(--color-text-muted);
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.site-footer p {
    font-size: 0.8rem;
    font-weight: 400;
}


/* Metrics Section */
.metrics {
    padding: var(--spacing-xl) 0;
    /* 10rem top and bottom */
    background: #fff;
}

/* Logo Marquee */
.logos-marquee {
    padding: var(--spacing-lg) 0;
    background: #fff;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.marquee-content {
    display: inline-flex;
    align-items: center;
    gap: 5rem;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-content img {
    height: 40px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.marquee-content img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Social Icons in CTA */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-5px);
    background-color: #fff;
    /* White bg for the red icon to show up */
    color: var(--color-accent);
    /* Turn icon red */
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* Clearer border */
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .site-header {
        height: 48px;
    }

    .header-inner {
        padding: 0 16px;
        justify-content: space-between;
        /* Logo left, Nav right */
    }

    .main-nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        /* Push toggle to the right */
        flex-grow: 1;
    }

    /* Menu Toggle Button - Forced to Right */
    .menu-toggle {
        display: flex !important;
        /* Force flex to show spans */
        flex-direction: column;
        justify-content: space-between;
        width: 18px;
        height: 12px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        /* Above mobile overlay */
        position: relative;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 1.2px;
        background: #111;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    }

    /* Animation */
    .menu-toggle.active span:first-child {
        transform: translateY(5.5px) rotate(45deg);
    }

    .menu-toggle.active span:last-child {
        transform: translateY(-5.5px) rotate(-45deg);
    }

    /* Mobile Menu Overlay */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #FFFFFF;
        display: flex !important;
        /* Always flex but invisible */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s;
        z-index: 1000;
        padding: 0;
        margin: 0;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.75rem;
        font-weight: 500;
        opacity: 1;
        display: block;
        padding: 10px;
    }

    .lang-switch {
        margin-top: 1rem;
        font-size: 1rem;
    }

    /* Hero adjustments */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-grid {
        gap: 4.5rem;
        grid-template-columns: 1fr;
        /* Stack on mobile */
        text-align: center;
    }

    .hero-image-wrapper::after {
        top: 15px;
        left: 15px;
        right: -15px;
        bottom: -15px;
    }

    .hero-sub {
        margin: 0 auto 2.5rem;
    }

    /* About Grid stack on mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4.5rem;
        text-align: center;
    }

    .about-image::after {
        top: 15px;
        left: 15px;
        right: -15px;
        bottom: -15px;
    }

    .about-text {
        text-align: center;
    }
}

/* --- About Page (v2.0) --- */

/* About Hero */
.about-hero {
    padding-top: 8rem;
    /* Account for fixed header */
    padding-bottom: 4rem;
    text-align: left;
    margin: 0 auto;
}

.about-portrait {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 4px solid #fff;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-hero .subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Opening Statement */
.opening-statement {
    max-width: 720px;
    margin: 0 auto 6rem;
    text-align: center;
}

.opening-statement p {
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--color-text-main);
}

/* Storytelling Timeline */
.timeline-section {
    position: relative;
    max-width: 800px;
    margin: 0 auto 6rem;
    padding: 2rem 0;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    /* Align with bullet center */
    height: 100%;
    width: 2px;
    background: rgba(0, 0, 0, 0.05);
    z-index: 0;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 5rem;
    z-index: 1;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    background: #fff;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--color-accent);
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.timeline-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.timeline-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Today & Forward */
.today-section {
    background: var(--color-surface);
    padding: 5rem 0;
    border-radius: 32px;
    margin-bottom: 5rem;
    text-align: center;
}

.today-content {
    max-width: 700px;
    margin: 0 auto;
}

/* Soft CTA */
.soft-cta {
    text-align: center;
    margin-bottom: 6rem;
}

.soft-cta p {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--color-text-main);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .timeline-section::before {
        left: 16px;
    }

    .timeline-marker {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
        left: 0;
    }

    .timeline-item {
        padding-left: 50px;
        margin-bottom: 4rem;
    }

    .timeline-section {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    .opening-statement,
    .today-section,
    .about-hero {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .about-hero h1 {
        font-size: 2.25rem;
    }
}