/* Index-specific layout overrides (shared chrome in css/base.css) */
html {
    min-height: 100%;
    height: 100%;
}

body {
    overflow: hidden;
    height: 100%;
}

.page-section {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--page-padding);
    position: relative;
    overflow: hidden;
}

/* ---------- SECTION 1: Hero / About ---------- */
.section1 {
    background: transparent;
    position: relative;
}

@keyframes section2PatternShift {
    0% { background-position: 0 0; }
    100% { background-position: 1400px 1400px; }
}

/* ---------- SECTION 2: Workshops & Events ---------- */
.section2 {
    background: transparent;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(96px, 12vh, 128px) clamp(48px, 5vw, 10vw) clamp(40px, 6vh, 72px);
    height: 100vh;
    max-height: 100vh;
    gap: clamp(10px, 1.4vh, 18px);
    box-sizing: border-box;
    overflow: hidden;
}

.page-section.section2 {
    overflow: hidden;
}

.section2::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("../../img/awsrepetitive.png");
    background-repeat: repeat;
    background-size: 1400px auto;
    background-position: 0 0;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
    animation: section2PatternShift 28s linear infinite;
}

.section2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(42, 16, 102, 0.2) 0%, rgba(13, 10, 26, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

.section2 > * {
    position: relative;
    z-index: 2;
}

/* ---------- SECTION 3: Community Hub ---------- */
.section3 {
    background: transparent;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    gap: 0;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    scroll-snap-align: none;
}

.section3-stage {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px var(--page-padding) 40px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

@keyframes slideCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 28px)); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(187, 175, 253, 0.08); }
    50% { box-shadow: 0 0 40px rgba(187, 175, 253, 0.15); }
}

.horizontal-container {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    background: var(--bg-gradient);
    background-repeat: no-repeat;
    background-attachment: local;
    background-size: 100% 100%;
}

.horizontal-container::-webkit-scrollbar {
    display: none;
}

/* ---------- PAGE INDICATOR ---------- */
.page-indicator {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    width: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.page-indicator-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.page-indicator-dot:hover {
    border-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.15);
}

.page-indicator-dot.active {
    background: #bbaffd;
    border-color: #bbaffd;
    transform: scale(1.25);
    box-shadow: 0 0 12px rgba(187, 175, 253, 0.6);
}

/* Flat (bar) indicator for the footer instead of a round dot */
.page-indicator-dot.footer-dot {
    width: 16px;
    height: 5px;
    border-radius: 4px;
    margin-top: 4px;
}

.page-indicator-dot.footer-dot:hover {
    transform: scaleX(1.15);
}

.page-indicator-dot.footer-dot.active {
    width: 22px;
    background: #bbaffd;
    border-color: #bbaffd;
    transform: none;
    box-shadow: 0 0 12px rgba(187, 175, 253, 0.6);
}

/* ---------- TOP BAR (layout from base.css .site-header — no page overrides needed) ---------- */
.site-header .top-bar {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

/* top-bar visual styles are now in base.css (flat nav bar, no pill) */

/* ---------- NAVIGATION DOCK (legacy; layout from base.css .site-header) ---------- */
.site-header .liquid-dock {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

.liquid-dock {
    display: flex;
    align-items: center;
    padding: 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(45px) saturate(200%);
    -webkit-backdrop-filter: blur(45px) saturate(200%);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.dock-item {
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    line-height: 1;
    transition: color 0.3s ease;
    position: relative;
    z-index: 20;
}

.dock-item.active {
    color: #ffffff;
    font-weight: 700;
}

.dock-slider {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1),
                inset 0 1px 1px rgba(255, 255, 255, 0.2);
    height: calc(100% - 12px);
    top: 6px;
}

/* ---------- NAV DROPDOWN (macOS / iOS style) ---------- */
.dock-item-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.dock-item .nav-caret {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    opacity: 0.7;
    transition: transform 0.25s ease;
}

.dock-item-wrap.open .nav-caret {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px) scale(0.96);
    transform-origin: top center;
    min-width: 240px;
    padding: 8px;
    background: linear-gradient(180deg, rgba(42, 32, 70, 0.86) 0%, rgba(24, 16, 46, 0.84) 100%);
    backdrop-filter: blur(34px) saturate(180%);
    -webkit-backdrop-filter: blur(34px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 40;
}

.dock-item-wrap.open .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(42, 32, 70, 0.86);
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 3px 0 0 0;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease;
}

.nav-dropdown-item:hover {
    background: rgba(187, 175, 253, 0.18);
    color: #ffffff;
}

.nav-dropdown-item.primary {
    background: rgba(187, 175, 253, 0.16);
    color: #ffffff;
    font-weight: 700;
}

.nav-dropdown-item.primary:hover {
    background: rgba(187, 175, 253, 0.3);
}

.nav-dropdown-divider {
    height: 1px;
    margin: 6px 8px;
    background: rgba(255, 255, 255, 0.1);
}

/* Section 1: content & buttons */
.section1-content {
    flex: 1;
    max-width: 560px;
    z-index: 10;
    text-align: left;
}

.section1-hero-logo {
    width: 140px;
    height: 140px;
    border-radius: 24px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
    margin-bottom: 28px;
    display: block;
}

.section1-content h1 {
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.section1-content h1 .section1-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.06em;
    font-size: var(--text-hero);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.section1-content h1 .section1-title .section1-title-line1 {
    letter-spacing: inherit;
}

.section1-content h1 .section1-title .section1-title-line1,
.section1-content h1 .section1-title .section1-title-line2,
.section1-content h1 .section1-title .section1-title-line3 {
    display: block;
    text-align: left;
    background: linear-gradient(135deg, #ffffff 18%, #bbaffd 47%, #efdcf1 110%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section1-content h1 .section1-title .section1-title-line3 {
    font-size: 0.65em;
}

.section1-lead {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 0.95rem + 0.5vw, 1.25rem);
    font-weight: 500;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 28px;
    margin-bottom: 28px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    letter-spacing: -0.01em;
}

/* ---------- Section 1 macOS Notification Stats Banner ---------- */
.macos-notification {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 18px;
    padding: 16px 20px;
    width: 400px;
    max-width: 100%;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    margin-bottom: 36px;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.macos-notification:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.notification-app-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.notification-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notification-subtitle {
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.notification-title {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.notification-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.section1-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section1-stat-num {
    font-family: var(--font-sans);
    font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.85rem);
    font-weight: 700;
    color: var(--aws-orange);
    line-height: 1.1;
    letter-spacing: -0.015em;
    text-shadow: 0 2px 8px rgba(242, 155, 60, 0.2);
}

.section1-stat-label {
    font-family: var(--font-sans);
    font-size: clamp(0.7rem, 0.68rem + 0.1vw, 0.8rem);
    color: rgba(255, 255, 255, 0.55);
    margin-top: 6px;
    line-height: 1.35;
    text-align: center;
    font-weight: 400;
}

.section1-content p {
    font-size: var(--text-lg);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ---------- BUTTONS - All same size ---------- */
.section1-btn {
    font-family: var(--font-sans);
    font-weight: 600;
    cursor: pointer;
    padding: 16px 32px;
    border-radius: 100px;
    border: 1px solid rgba(242, 155, 60, 0.75);
    background: #f29b3c;
    color: #ffffff;
    font-size: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 14px 30px rgba(242, 155, 60, 0.35);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 170px;
    height: 56px;
}

.section1-btn:hover {
    background: #f7ad58;
    border-color: rgba(242, 155, 60, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(242, 155, 60, 0.45);
}

.section1-btn.primary-btn {
    background: #f29b3c;
    border: 1px solid rgba(242, 155, 60, 0.85);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(242, 155, 60, 0.35);
}

.section1-btn.primary-btn:hover {
    background: #f7ad58;
    border-color: rgba(242, 155, 60, 1);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(242, 155, 60, 0.5);
}

.section1-btn.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.section1-btn.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.section1-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    margin-bottom: 32px;
}

.section2-view-all-btn {
    font-family: var(--font-sans);
    font-weight: 600;
    cursor: pointer;
    padding: 12px 28px;
    border-radius: 100px;
    border: 1px solid rgba(242, 155, 60, 0.75);
    background: #f29b3c;
    color: #ffffff;
    font-size: clamp(0.8125rem, 0.74rem + 0.28vw, 0.875rem);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 26px rgba(242, 155, 60, 0.32);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    min-width: 160px;
    height: 48px;
}

.section2-view-all-btn:hover {
    background: #f7ad58;
    border-color: rgba(242, 155, 60, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(242, 155, 60, 0.45);
}

.section2-view-all-btn .arrow {
    transition: transform 0.25s ease;
}

.section2-view-all-btn:hover .arrow {
    transform: translateX(4px);
}

/* Section 1: glass card & carousel */
.section1-card-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    padding-left: 40px;
    min-width: 0;
}

.section1-glass-card {
    width: 100%;
    max-width: min(960px, 100%);
    padding: 0;
    border-radius: 12px;
    background: rgba(28, 26, 42, 0.92);
    backdrop-filter: blur(55px) saturate(180%);
    -webkit-backdrop-filter: blur(55px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-style: preserve-3d;
}

.section1-glass-card.is-tilting {
    will-change: transform;
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.section1-card-topbar {
    margin: 0;
    flex-shrink: 0;
}

.section1-card-bottombar {
    margin: 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    justify-content: space-between;
}

.section1-glass-card h2 {
    font-size: 22px;
    font-weight: 900;
    margin: 0;
    padding: 20px 20px 0;
    font-family: var(--font-sans);
    background: linear-gradient(135deg, #ffffff 18%, #bbaffd 47%, #efdcf1 110%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section1-glass-card p {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    padding: 12px 20px 20px;
    letter-spacing: 0;
}

.section1-card-media {
    width: calc(100% - 32px);
    min-height: 230px;
    height: 275px;
    border-radius: 8px;
    overflow: hidden;
    margin: 16px 16px 0;
    position: relative;
}

.section1-carousel-window {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    padding: 0;
}

.section1-carousel-track {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    animation: slideCarousel 6.5s linear infinite;
    animation-play-state: running;
}

.section1-carousel-slide {
    flex: 0 0 65%;
    min-width: 380px;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    box-sizing: border-box;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.section1-carousel-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.section1-carousel-slide:first-child,
.section1-carousel-slide:nth-child(4) {
    opacity: 0.5;
}

/* Section 2: event cards */
@media (max-height: 800px) {
    .section2 {
        justify-content: flex-start;
        padding: clamp(80px, 10vh, 88px) clamp(40px, 5vw, 10vw) clamp(28px, 4vh, 40px);
        gap: clamp(8px, 1vh, 12px);
    }
    .section2-header h2 {
        font-size: clamp(1.375rem, 1rem + 1.8vw, 2.375rem);
    }
    .section2-header .section2-subtitle {
        font-size: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
    }
    .section2-events-grid {
        margin-top: clamp(20px, 2.5vh, 36px);
        gap: clamp(8px, 1.2vw, 14px);
    }
    .section2-event-card-image {
        min-height: clamp(92px, 16vh, 165px);
        height: auto;
    }
    .section2-event-card-content {
        padding: clamp(8px, 1vh, 12px);
    }
    .section2-event-card-title {
        font-size: clamp(0.875rem, 0.78rem + 0.35vw, 1rem);
    }
    .section2-event-card-desc {
        font-size: clamp(0.6875rem, 0.64rem + 0.22vw, 0.75rem);
    }
    .section2-event-card-footer {
        padding-top: 10px;
    }
    .section2-view-all-card {
        padding: clamp(10px, 1.2vh, 16px) clamp(12px, 1.2vw, 18px);
    }
    .section2-view-all-btn {
        padding: 12px 28px;
        font-size: 14px;
        min-width: 150px;
        height: 48px;
    }
}

@media (max-height: 700px) {
    .section2 {
        justify-content: flex-start;
        padding: clamp(76px, 9vh, 82px) clamp(36px, 4vw, 10vw) clamp(24px, 3.5vh, 32px);
        gap: clamp(6px, 0.8vh, 10px);
    }
    .section2-header {
        margin-bottom: -4px;
    }
    .section2-header h2 {
        font-size: clamp(1.25rem, 0.9rem + 1.5vw, 1.875rem);
        margin-bottom: 4px;
    }
    .section2-header .section2-subtitle {
        font-size: clamp(0.6875rem, 0.64rem + 0.2vw, 0.75rem);
    }
    .section2-events-grid {
        margin-top: clamp(16px, 2vh, 28px);
        gap: clamp(6px, 1vw, 10px);
    }
    .section2-event-card-image {
        min-height: clamp(76px, 13vh, 120px);
        height: auto;
    }
    .section2-event-card-content {
        padding: clamp(6px, 0.8vh, 10px);
        gap: 4px;
    }
    .section2-event-card-meta {
        gap: 8px;
    }
    .section2-event-date-box {
        padding: 4px 10px;
        min-width: 40px;
    }
    .section2-event-date-day {
        font-size: clamp(0.9375rem, 0.85rem + 0.4vw, 1.125rem);
    }
    .section2-event-date-month {
        font-size: clamp(0.5rem, 0.46rem + 0.15vw, 0.5625rem);
    }
    .section2-event-card-title {
        font-size: clamp(0.8125rem, 0.74rem + 0.28vw, 0.875rem);
    }
    .section2-event-card-desc {
        font-size: clamp(0.625rem, 0.58rem + 0.18vw, 0.6875rem);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .section2-event-card-footer {
        padding-top: 8px;
        flex-wrap: nowrap;
        gap: 4px;
    }
    .section2-event-card-speaker {
        font-size: clamp(0.5625rem, 0.52rem + 0.15vw, 0.625rem);
    }
    .section2-event-card-link {
        font-size: clamp(0.625rem, 0.58rem + 0.18vw, 0.6875rem);
    }
    .section2-view-all-card {
        padding: clamp(8px, 1vh, 12px) clamp(10px, 1vw, 14px);
    }
    .section2-view-all-card-btn {
        min-width: clamp(150px, 14vw, 170px);
        height: clamp(48px, 5.2vh, 56px);
        padding: clamp(12px, 1.2vh, 16px) clamp(24px, 2.5vw, 32px);
        font-size: clamp(0.875rem, 0.8rem + 0.2vw, 1rem);
        margin-top: clamp(14px, 1.8vh, 22px);
    }
    .section2-view-all-btn {
        padding: 10px 24px;
        font-size: 13px;
        min-width: 140px;
        height: 44px;
    }
}

.section2-header {
    text-align: center;
    z-index: 10;
    flex-shrink: 0;
}

.section2-header .page-label {
    margin-bottom: clamp(6px, 0.9vh, 12px);
}

.section2-header h2 {
    font-size: clamp(1.75rem, 1.05rem + 2.2vw + 0.35vh, 3.25rem);
    font-weight: 800;
    margin-bottom: clamp(6px, 1vh, 10px);
    line-height: 1.05;
    background: linear-gradient(135deg, #ffffff 18%, #bbaffd 47%, #efdcf1 110%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section2-header .section2-subtitle {
    font-size: clamp(0.8125rem, 0.74rem + 0.4vw + 0.1vh, 1rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    max-width: min(500px, 90vw);
    margin: 0 auto clamp(8px, 1vh, 14px);
}

.section2-events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(10px, 1.4vw, 22px);
    width: 100%;
    max-width: min(1160px, 93vw);
    z-index: 10;
    align-items: stretch;
    margin-top: clamp(32px, 4vh, 56px);
    flex: 1 1 auto;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
}

.section2-event-card {
    width: 100%;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    max-width: none;
    border-radius: clamp(12px, 1.3vw, 20px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.015) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.section2-event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 55px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.25);
}

.section2-event-card-image {
    width: 100%;
    flex: 1 1 auto;
    min-height: clamp(110px, 20vh, 245px);
    height: auto;
    background-size: cover;
    background-position: center;
    position: relative;
}

.section2-event-card-image--empty {
    background: linear-gradient(135deg, rgba(42, 32, 70, 0.85) 0%, rgba(24, 16, 46, 0.9) 100%);
}

.section2-event-card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: clamp(4px, 0.5vh, 5px) clamp(10px, 1vw, 14px);
    border-radius: 100px;
    font-size: clamp(0.5625rem, 0.5rem + 0.25vw, 0.6875rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.section2-event-card-content {
    padding: clamp(10px, 0.95vh + 0.48vw, 17px);
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: clamp(4px, 0.7vh, 8px);
}

.section2-event-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    flex-shrink: 0;
}

.section2-event-date-box {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px 12px;
    text-align: center;
    min-width: 48px;
    flex-shrink: 0;
}

.section2-event-date-month {
    font-size: clamp(0.5rem, 0.46rem + 0.2vw, 0.625rem);
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

.section2-event-date-day {
    font-size: clamp(1.0625rem, 0.92rem + 0.6vw, 1.375rem);
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.section2-event-card-title {
    font-size: clamp(0.9375rem, 0.82rem + 0.5vw, 1.125rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-width: 0;
    flex: 0 1 auto;
}

.section2-event-card-desc {
    font-size: clamp(0.75rem, 0.68rem + 0.35vw, 0.8125rem);
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 0 auto;
    flex-shrink: 0;
}

.section2-event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    width: 100%;
    padding-top: clamp(6px, 0.8vh, 10px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: auto;
    flex-shrink: 0;
}

.section2-event-card-speaker {
    font-size: clamp(0.625rem, 0.58rem + 0.25vw, 0.6875rem);
    color: rgba(255, 255, 255, 0.5);
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.section2-event-card-speaker strong {
    color: rgba(255, 255, 255, 0.85);
}

.section2-event-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: auto;
    font-family: var(--font-sans);
    font-size: clamp(0.75rem, 0.68rem + 0.3vw, 0.8125rem);
    font-weight: 700;
    color: #f29b3c;
    text-decoration: none;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.section2-event-card-link:hover {
    background: none;
    border: none;
    box-shadow: none;
    transform: none;
    color: #f7ad58;
}

/* Section 2 — View All Events card (replaces 3rd event slot) */
.section2-view-all-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    padding: clamp(10px, 1.1vh + 0.3vw, 18px) clamp(14px, 1.4vw, 22px) clamp(12px, 1.4vh, 20px);
    border-radius: clamp(12px, 1.3vw, 20px);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: rgba(28, 26, 42, 0.72);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    font-family: var(--font-sans);
}

.section2-view-all-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(242, 155, 60, 0.14) 0%, transparent 55%);
    pointer-events: none;
}

.section2-view-all-card:hover {
    transform: translateY(-6px);
    border-color: rgba(242, 155, 60, 0.35);
    box-shadow: 0 30px 55px rgba(0, 0, 0, 0.45);
}

.section2-view-all-card:focus-visible {
    outline: 2px solid rgba(242, 155, 60, 0.55);
    outline-offset: 3px;
}

.section2-view-all-card-label {
    position: relative;
    z-index: 1;
    font-size: clamp(0.625rem, 0.55rem + 0.3vw, 0.6875rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(187, 175, 253, 0.85);
    margin: 0 0 clamp(6px, 0.8vh, 10px);
}

.section2-view-all-card-title {
    position: relative;
    z-index: 1;
    font-size: clamp(1rem, 0.88rem + 0.7vw, 1.375rem);
    font-weight: 800;
    margin: 0 0 clamp(6px, 0.8vh, 10px);
    color: #fff;
    line-height: 1.25;
}

.section2-view-all-card-desc {
    position: relative;
    z-index: 1;
    font-size: clamp(0.75rem, 0.68rem + 0.35vw, 0.875rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.62);
    margin: 0 auto;
    max-width: min(320px, 90%);
    flex: 0 0 auto;
    text-align: center;
}

.section2-view-all-card-btn {
    position: relative;
    z-index: 1;
    pointer-events: none;
    width: auto;
    max-width: none;
    min-width: 170px;
    height: 56px;
    padding: 16px 32px;
    font-size: 16px;
    margin-top: clamp(14px, 1.6vh, 22px);
}

.section2-view-all-card:hover .section2-view-all-card-btn {
    background: #f7ad58;
    border-color: rgba(242, 155, 60, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(242, 155, 60, 0.45);
}

.section2-view-all-wrapper {
    z-index: 10;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    margin: clamp(20px, 2.5vh, 32px) 0 0;
    padding: 0;
}

@keyframes section2Reveal {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section2 .section2-reveal {
    opacity: 0;
}

.section2.is-revealed .section2-reveal {
    animation: section2Reveal 0.55s ease forwards;
}

.section2.is-revealed .section2-header.section2-reveal {
    animation-delay: 0s;
}

.section2.is-revealed .section2-events-grid .section2-event-card:nth-child(1) {
    animation-delay: 0.15s;
}

.section2.is-revealed .section2-events-grid .section2-event-card:nth-child(2) {
    animation-delay: 0.3s;
}

.section2.is-revealed .section2-events-grid > :nth-child(3) {
    animation-delay: 0.45s;
}

/* Section 2: event detail modal */
body.section2-modal-open {
    overflow: hidden;
}

@keyframes section2ModalBackdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes section2ModalWindowIn {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(24px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes section2ModalImageIn {
    from {
        opacity: 0;
        transform: scale(1.06);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes section2ModalReveal {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section2-event-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 10vw 40px;
}

.section2-event-modal[hidden] {
    display: none;
}

.section2-event-modal:not([hidden]) .section2-event-modal-backdrop {
    animation: section2ModalBackdropIn 0.35s ease forwards;
}

.section2-event-modal:not([hidden]) .section2-event-modal-window {
    animation: section2ModalWindowIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards,
               pulseGlow 4s ease-in-out 0.45s infinite;
}

.section2-event-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.section2-event-modal-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section2-event-modal:not([hidden]) .section2-event-modal-back {
    animation: section2ModalReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.section2-event-modal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.section2-event-modal-back:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    transform: translateY(-2px);
}

.section2-event-modal-back .arrow {
    transition: transform 0.25s ease;
}

.section2-event-modal-back:hover .arrow {
    transform: translateX(-4px);
}

.section2-event-modal-window {
    position: relative;
    width: 100%;
    max-width: none;
    height: 82vh;
    max-height: 750px;
    border-radius: 12px;
    background: rgba(28, 26, 42, 0.92);
    backdrop-filter: blur(55px) saturate(180%);
    -webkit-backdrop-filter: blur(55px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform-origin: center center;
}

.section2-event-modal-titlebar {
    flex-shrink: 0;
}

.section3-titlebar-spacer {
    width: 52px;
    flex-shrink: 0;
}

.section2-event-modal-body {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 0;
    overflow: hidden;
    flex: 1;
    min-height: 0;
    background: rgba(20, 20, 25, 0.88);
}

.section2-event-modal-gallery {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.section2-event-modal-gallery-view {
    position: relative;
    flex: 1;
    min-height: 280px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section2-event-modal-gallery-view img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: opacity 0.3s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1);
}

.section2-event-modal-gallery-view img.is-fading {
    opacity: 0;
    transform: scale(1.04);
}

.section2-event-modal-gallery-view img.is-entering {
    animation: section2ModalImageIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.section2-event-modal-gallery-counter {
    position: absolute;
    bottom: 14px;
    right: 14px;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.section2-event-modal-gallery-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(18, 18, 22, 0.72);
    flex-shrink: 0;
}

.section2-gallery-btn {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.section2-gallery-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

.section2-gallery-btn:active {
    transform: scale(0.96);
}

.section2-gallery-btn svg {
    width: 16px;
    height: 16px;
    display: block;
}

.section2-event-modal-gallery-thumbs {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    min-width: 0;
    padding: 2px 0;
}

.section2-event-modal-gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.section2-gallery-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 44px;
    padding: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    background: none;
    cursor: pointer;
    opacity: 0.72;
    transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.section2-gallery-thumb:hover {
    opacity: 0.95;
}

.section2-gallery-thumb.active {
    opacity: 1;
    border-color: #f29b3c;
    box-shadow: 0 0 0 1px rgba(242, 155, 60, 0.35);
}

.section2-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: rgba(0, 0, 0, 0.4);
    display: block;
}

.section2-event-modal-details {
    padding: 28px 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section2-event-modal.is-open .section2-event-modal-reveal {
    animation: section2ModalReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.section2-event-modal.is-open .section2-event-modal-meta.section2-event-modal-reveal {
    animation-delay: 0.08s;
}

.section2-event-modal.is-open .section2-event-modal-heading.section2-event-modal-reveal {
    animation-delay: 0.14s;
}

.section2-event-modal.is-open .section2-event-modal-tags.section2-event-modal-reveal {
    animation-delay: 0.2s;
}

.section2-event-modal.is-open .section2-event-modal-desc.section2-event-modal-reveal {
    animation-delay: 0.26s;
}

.section2-event-modal.is-open .section2-event-modal-speaker.section2-event-modal-reveal {
    animation-delay: 0.32s;
}

.section2-event-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.section2-event-modal-tag {
    font-size: 11px;
    font-weight: 600;
    color: rgba(242, 155, 60, 0.95);
    background: rgba(242, 155, 60, 0.12);
    border: 1px solid rgba(242, 155, 60, 0.28);
    padding: 4px 10px;
    border-radius: 100px;
}

.section2-event-modal-footer {
    flex-shrink: 0;
}

.section2-event-modal-footer-items span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
}

.section2-event-modal-details::-webkit-scrollbar {
    width: 4px;
}

.section2-event-modal-details::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.section2-event-modal-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section2-event-modal-badge {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.08);
    padding: 5px 12px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.section2-event-modal-heading {
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.25;
    margin: 0;
}

.section2-event-modal-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.section2-event-modal-speaker {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section2-event-modal-speaker strong {
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 1024px) {
    .section2-event-modal {
        padding: calc(max(8px, env(safe-area-inset-top)) + var(--mobile-header-h, 44px) + 8px) var(--mobile-gutter, 16px) var(--mobile-gutter, 16px);
        align-items: stretch;
    }

    .section2-event-modal-inner {
        gap: 10px;
        flex: 1;
        min-height: 0;
    }

    .section2-event-modal-back {
        font-size: 13px;
        padding: 7px 14px;
        flex-shrink: 0;
    }

    .section2-event-modal-window {
        height: auto;
        max-height: none;
        flex: 1;
        border-radius: 14px;
        animation: section2ModalWindowIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .section2-event-modal-body {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .section2-event-modal-gallery {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .section2-event-modal-gallery-view {
        aspect-ratio: 16 / 10;
        flex: none;
        min-height: 0;
    }

    .section2-event-modal-details {
        padding: 18px 16px 20px;
    }

    .section2-event-modal-heading {
        font-size: 20px;
    }

    .section2-event-modal-footer {
        flex-direction: column;
        gap: 4px;
        padding: 8px 16px;
        font-size: 10px;
    }

    .section2-event-modal-footer-items {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
}

/* Section 3: community window */
.section3-window {
    width: 100%;
    max-width: 1200px;
    height: 82vh;
    max-height: 750px;
    border-radius: 12px;
    background: rgba(28, 26, 42, 0.92);
    backdrop-filter: blur(55px) saturate(180%);
    -webkit-backdrop-filter: blur(55px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    overflow: hidden;
    animation: pulseGlow 4s ease-in-out infinite;
    display: flex;
    flex-direction: column;
}

.section3-titlebar {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: rgba(40, 40, 45, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    gap: 12px;
    min-height: 44px;
}

.section3-window-controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.section3-control {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
    position: relative;
}

.section3-control:hover {
    transform: scale(1.15);
}

.section3-control.red {
    background: #ff5f57;
    border-color: #e04e47;
}
.section3-control.red::after {
    content: '✕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.15s ease;
}
.section3-control.red:hover::after {
    opacity: 1;
}

.section3-control.yellow {
    background: #ffbd2e;
    border-color: #e0a524;
}
.section3-control.yellow::after {
    content: '−';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.15s ease;
}
.section3-control.yellow:hover::after {
    opacity: 1;
}

.section3-control.green {
    background: #28c840;
    border-color: #1fa833;
}
.section3-control.green::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.15s ease;
}
.section3-control.green:hover::after {
    opacity: 1;
}

.section3-title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.2px;
    font-family: var(--font-sans);
}

.section3-title-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("../../img/awscatlogo.png") center center / contain no-repeat;
    vertical-align: middle;
    margin-right: 6px;
    filter: brightness(0.8);
}

.section3-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
    background: #1a1a1d;
}

.section3-sidebar {
    width: 180px;
    background: rgba(30, 30, 35, 0.9);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
    flex-shrink: 0;
    overflow: hidden;
}

.section3-sidebar::-webkit-scrollbar {
    width: 3px;
}
.section3-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.section3-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.section3-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    margin: 0 8px;
    border-radius: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.15s ease;
    font-weight: 500;
}

.section3-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
}

.section3-sidebar-item.active {
    background: rgba(187, 175, 253, 0.15);
    color: #bbaffd;
}

.section3-sidebar-item .icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url("../../img/folder.png") center / contain no-repeat;
    flex-shrink: 0;
}

.section3-sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 8px 16px;
}

.section3-sidebar-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.25);
    padding: 8px 16px 4px;
}

.section3-main {
    flex: 1;
    width: 100%;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #1a1a1d;
}

/* macOS Notes app inside Finder — dark mode */
.section3-notes-app {
    --notes-bg-app: #1a1a1d;
    --notes-bg-toolbar: #2c2c2e;
    --notes-bg-list: #232326;
    --notes-bg-detail: #141416;
    --notes-bg-active: rgba(255, 255, 255, 0.1);
    --notes-bg-hover: rgba(255, 255, 255, 0.05);
    --notes-bg-search: rgba(118, 118, 128, 0.24);
    --notes-text-primary: rgba(255, 255, 255, 0.92);
    --notes-text-secondary: rgba(255, 255, 255, 0.52);
    --notes-text-muted: rgba(255, 255, 255, 0.38);
    --notes-border: rgba(255, 255, 255, 0.08);
    --notes-tag: #e8b84a;
    --notes-icon: rgba(255, 255, 255, 0.62);
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--notes-bg-app);
    font-family: var(--font-sans);
}

.section3-notes-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--notes-bg-toolbar);
    border-bottom: 1px solid var(--notes-border);
    flex-shrink: 0;
    min-height: 52px;
}

.section3-notes-mobile-back,
.section3-notes-mobile-compose,
.section3-notes-mobile-topnav,
.section3-notes-mobile-header,
.section3-notes-mobile-dock {
    display: none;
}

.section3-notes-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.section3-notes-toolbar-heading {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.section3-notes-app-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--notes-text-primary);
    line-height: 1.2;
}

.section3-notes-count {
    font-size: 11px;
    color: var(--notes-text-secondary);
    line-height: 1.2;
}

.section3-notes-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--notes-icon);
    cursor: default;
}

.section3-notes-toolbar-btn:hover {
    background: var(--notes-bg-hover);
}

.section3-notes-toolbar-aa {
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-sans);
    color: var(--notes-icon);
}

.section3-notes-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}

.section3-notes-search {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--notes-bg-search);
    color: var(--notes-text-muted);
    font-size: 13px;
    flex-shrink: 0;
    min-width: 120px;
}

.section3-notes-body {
    flex: 1;
    display: flex;
    min-height: 0;
    overflow: hidden;
}

.section3-notes-list {
    width: 34%;
    min-width: 220px;
    max-width: 320px;
    flex-shrink: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--notes-bg-list);
    border-right: 1px solid var(--notes-border);
    padding: 8px 0 16px;
}

.section3-notes-list::-webkit-scrollbar {
    width: 8px;
}

.section3-notes-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

.section3-notes-list-group + .section3-notes-list-group {
    margin-top: 8px;
}

.section3-notes-list-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 12px 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(242, 155, 60, 0.12);
    border: 1px solid rgba(242, 155, 60, 0.28);
    color: #f7c06a;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    animation: section3NotesHintPulse 2.4s ease-in-out infinite;
    transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.25s ease, margin 0.25s ease, padding 0.25s ease;
}

.section3-notes-list-hint.is-dismissed {
    opacity: 0;
    transform: translateY(-4px);
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    border-width: 0;
    animation: none;
    pointer-events: none;
}

.section3-notes-list-hint-icon {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

@keyframes section3NotesHintPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(242, 155, 60, 0);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(242, 155, 60, 0.12);
    }
}

.section3-notes-detail-hint {
    margin: 0 0 18px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(187, 175, 253, 0.1);
    border: 1px solid rgba(187, 175, 253, 0.22);
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    transition: opacity 0.25s ease, max-height 0.25s ease, margin 0.25s ease, padding 0.25s ease;
}

.section3-notes-app.is-note-explored .section3-notes-detail-hint {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-width: 0;
    pointer-events: none;
}

.section3-notes-list-label {
    padding: 8px 16px 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--notes-text-muted);
}

.section3-notes-list-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: calc(100% - 16px);
    margin: 0 8px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
    position: relative;
}

.section3-notes-list-item:not(.active) {
    padding-right: 28px;
}

.section3-notes-list-item:not(.active)::after {
    content: '›';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 700;
    color: rgba(242, 155, 60, 0.55);
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
}

.section3-notes-list-item:not(.active):hover::after,
.section3-notes-list-item:not(.active):focus-visible::after {
    opacity: 1;
    transform: translate(2px, -50%);
}

.section3-notes-list-item:hover {
    background: var(--notes-bg-hover);
}

.section3-notes-list-item:not(.active):hover,
.section3-notes-list-item:not(.active):focus-visible {
    border-color: rgba(242, 155, 60, 0.38);
    box-shadow: 0 0 0 1px rgba(242, 155, 60, 0.1);
    transform: translateX(2px);
}

.section3-notes-list-item:focus-visible {
    outline: 2px solid rgba(242, 155, 60, 0.55);
    outline-offset: 1px;
}

.section3-notes-list-item.active {
    background: var(--notes-bg-active);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 3px 0 0 #f29b3c;
    cursor: default;
}

.section3-notes-list-item-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.section3-notes-list-item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--notes-text-primary);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.section3-notes-list-item-meta {
    font-size: 12px;
    color: var(--notes-text-secondary);
}

.section3-notes-list-item-snippet {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.68);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.section3-notes-list-item-tags {
    font-size: 11px;
    color: var(--notes-tag);
    margin-top: 2px;
}

.section3-notes-list-item-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--notes-border);
}

.section3-notes-list-card {
    display: contents;
}

.section3-notes-list-item-preview {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.68);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.section3-notes-list-item-time {
    color: var(--notes-text-secondary);
}

.section3-notes-list-item-folder {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--notes-text-muted);
    margin-top: 2px;
}

.section3-notes-list-item-folder svg {
    flex-shrink: 0;
    opacity: 0.75;
}

.section3-notes-mobile-bar {
    display: none;
}

.section3-notes-detail {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    background: var(--notes-bg-detail);
    padding: 28px 36px 40px;
}

.section3-notes-detail::-webkit-scrollbar {
    width: 8px;
}

.section3-notes-detail::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.section3-notes-list-item,
.section3-notes-pane,
.section3-notes-list-label {
    opacity: 1;
    transform: none;
    animation: none !important;
}

.section3-notes-pane {
    max-width: 680px;
}

.section3-notes-pane[hidden] {
    display: none;
}

.section3-notes-pane-title {
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    color: var(--notes-text-primary);
    line-height: 1.15;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.section3-notes-pane-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.section3-notes-pane-tags span {
    font-size: 15px;
    font-weight: 500;
    color: var(--notes-tag);
}

.section3-notes-pane-body {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

.section3-notes-pane-body p {
    margin: 0 0 14px;
}

.section3-notes-pane-body p:last-child {
    margin-bottom: 0;
}

.section3-notes-pane-body strong {
    font-weight: 700;
    color: var(--notes-text-primary);
}

.section3-notes-pane-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--notes-text-primary);
    margin: 20px 0 8px;
    letter-spacing: -0.01em;
}

.section3-notes-pane-body h3:first-child {
    margin-top: 0;
}

.section3-notes-handwrite {
    margin: 30px 0 6px;
    padding-right: 6px;
    text-align: right;
}

.section3-notes-handwrite-text {
    display: inline-block;
    font-family: 'Caveat', 'Segoe Print', 'Bradley Hand', 'Apple Chancery', cursive;
    font-size: clamp(30px, 3.6vw, 38px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.015em;
    color: rgba(255, 246, 228, 0.92);
    transform: rotate(-2deg);
    transform-origin: right center;
    text-decoration: underline;
    text-decoration-color: rgba(255, 246, 228, 0.28);
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}

.section3-notes-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
    margin-bottom: 20px;
}

.section3-notes-stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.section3-notes-stat-number {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 18%, #bbaffd 47%, #efdcf1 110%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section3-notes-stats-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section3-notes-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.section3-notes-stat-sub {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.38);
    font-style: italic;
    margin-top: -2px;
}

@keyframes section3Shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes section3TagGlow {
    0%, 100% { border-color: rgba(187, 175, 253, 0.22); box-shadow: none; }
    50% { border-color: rgba(242, 155, 60, 0.42); box-shadow: 0 0 12px rgba(242, 155, 60, 0.12); }
}

.section3-narrative-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.section3-narrative-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    border: 1px solid rgba(187, 175, 253, 0.22);
    background: rgba(187, 175, 253, 0.07);
    color: rgba(255, 255, 255, 0.72);
    animation: section3TagGlow 3.2s ease-in-out infinite;
}

.section3-narrative-tag:nth-child(2) { animation-delay: 0.5s; }
.section3-narrative-tag:nth-child(3) { animation-delay: 1s; }
.section3-narrative-tag:nth-child(4) { animation-delay: 1.5s; }

.section3-narrative-shimmer {
    background: linear-gradient(90deg, #ffffff 0%, #bbaffd 35%, #f29b3c 55%, #efdcf1 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: section3Shimmer 5s linear infinite;
    font-weight: 800;
}

.section3-narrative-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px 20px;
    align-items: stretch;
    min-height: 0;
}

.section3-main-block {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
    display: flex;
    flex-direction: column;
}

.section3-main-block:hover {
    transform: translateY(-3px);
    border-color: rgba(242, 155, 60, 0.28);
    background: rgba(255, 255, 255, 0.055);
}

.section3-main .section3-description {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.68);
}

.section3-main-block:nth-child(n + 3) {
    margin-top: 0;
}

.section3-main-block:nth-child(4) {
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.section3-join-wrap {
    margin-top: auto;
    padding: 8px 16px 12px 8px;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.section3-join-wrap .section1-btn {
    min-width: 150px;
    height: 44px;
    padding: 10px 26px;
    font-size: 14px;
}

.section3-block-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 10px;
    min-height: 16px;
}

.section3-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    flex: 1;
    min-height: 0;
}

.section3-stat-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 16px 14px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section3-stat-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(242, 155, 60, 0.28);
    transform: translateY(-2px);
}

.section3-stat-number {
    font-size: calc(36px * var(--ui-scale));
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 18%, #bbaffd 47%, #efdcf1 110%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.section3-stat-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 4px;
}

.section3-description {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.68);
}

.section3-narrative-quote {
    margin: 10px 0 0;
    padding: 10px 14px;
    border-left: 3px solid #f29b3c;
    border-radius: 0 8px 8px 0;
    background: rgba(242, 155, 60, 0.06);
    font-size: 13px;
    line-height: 1.6;
    font-style: italic;
    color: rgba(255, 255, 255, 0.72);
}

.section3-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.section3-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.68);
    transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.section3-feature-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(242, 155, 60, 0.28);
    transform: translateY(-2px);
}

.section3-feature-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.section3-footer {
    padding: 8px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: nowrap;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    background: rgba(30, 30, 35, 0.9);
    min-height: 32px;
    font-family: var(--font-sans);
}

.section3-footer > span {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 1;
    min-width: 0;
}

.section3-footer-items {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 20px;
    flex-shrink: 0;
}

.section3-footer-items span {
    display: flex;
    align-items: center;
    gap: 4px;
}

@keyframes section3Reveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section3-reveal {
    opacity: 0;
}

.section3-window.is-revealed .section3-reveal {
    animation: section3Reveal 0.38s ease forwards;
}

/* ---------- SITE FOOTER ---------- */
.site-footer {
    scroll-snap-align: end;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.site-footer-card {
    position: relative;
    width: 100%;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.site-footer-card::before {
    display: none;
}

.site-footer-main {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 10vw 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.site-footer-logo-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-footer-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    flex-shrink: 0;
}

.site-footer-titles {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.site-footer-title {
    font-size: 22px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-footer-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.5px;
}

.site-footer-desc {
    max-width: 540px;
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.site-footer-socials {
    display: flex;
    gap: 14px;
    margin-top: 4px;
}

.site-footer-social {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #f29b3c;
    border: 1px solid rgba(242, 155, 60, 0.6);
    box-shadow: 0 6px 18px rgba(242, 155, 60, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-footer-social:hover {
    transform: translateY(-3px);
    background: #f7ad58;
    border-color: rgba(230, 158, 69, 0.9);
    box-shadow: 0 0 22px rgba(242, 155, 60, 0.55);
}

.site-footer-social svg {
    width: 20px;
    height: 20px;
    display: block;
}

.site-footer-bottom {
    position: relative;
    z-index: 1;
    padding: 16px 10vw 20px;
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 1024px) {
    .site-footer {
        padding: 0;
    }
    .site-footer-main {
        padding: 36px 5vw 28px;
    }
    .site-footer-logo-row {
        flex-direction: column;
        gap: 10px;
    }
    .site-footer-titles {
        align-items: center;
        text-align: center;
    }
    .site-footer-title {
        font-size: 19px;
    }
    .site-footer-desc {
        font-size: 14px;
    }
    .site-footer-bottom {
        padding: 14px 5vw 16px;
        font-size: 9px;
    }
}

.sticker {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 120px;
    height: auto;
    z-index: 999;
    animation: float 3s ease-in-out infinite;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .page-section {
        padding: 0 5vw;
    }
    .section2 {
        padding: 72px 5vw 20px;
    }
    .section3-stage {
        padding: 60px 5vw 30px;
    }
    .section1-card-wrapper {
        padding-left: 20px;
    }
    .section2-events-grid {
        gap: 16px;
    }
    .section1-content h1 .section1-title {
        font-size: clamp(1.85rem, 3.5vw, 2.375rem);
    }
    .section3-main {
        padding: 0;
    }
    .section3-notes-toolbar-actions {
        display: none;
    }
    .section3-notes-search {
        min-width: 90px;
        font-size: 12px;
    }
    .section3-notes-list {
        width: 38%;
        min-width: 180px;
    }
    .section3-window {
        height: 82vh;
        max-height: 750px;
        min-height: 520px;
        max-width: 100%;
    }
    .section3-sidebar {
        width: 140px;
    }
}

@media (max-width: 1024px) {
    .page-section {
        flex-direction: column;
        justify-content: center;
        padding: 80px 5vw 30px;
        height: auto;
        min-height: 100vh;
    }
    .section1-content {
        max-width: 100%;
        padding-top: 0;
        text-align: center;
    }
    .macos-notification {
        width: 100%;
        max-width: 420px;
        margin: 0 auto 28px;
        padding: 14px clamp(12px, 3vw, 18px);
    }
    .notification-stats-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(8px, 1.5vw, 16px);
    }
    .section1-stat-item {
        align-items: center;
        text-align: center;
    }
    .section1-stat-label {
        text-align: center;
    }
    .section1-hero-logo {
        width: 120px;
        height: 120px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 24px;
    }
    .section1-content h1 .section1-title {
        align-items: center;
        font-size: clamp(1.65rem, 7vw, 2rem);
    }
    .section1-content h1 .section1-title .section1-title-line1,
    .section1-content h1 .section1-title .section1-title-line2,
    .section1-content h1 .section1-title .section1-title-line3 {
        text-align: center;
    }
    .section1-buttons {
        justify-content: center;
    }
    .section1-btn, .section2-view-all-btn, .section2-view-all-card-btn {
        min-width: 140px;
        height: 48px;
        padding: 12px 24px;
        font-size: 14px;
    }
    .section1-card-wrapper {
        width: 100%;
        margin-top: 30px;
        padding-left: 0;
    }
    .section1-glass-card {
        max-width: 100%;
        padding: 0;
    }
    .section1-card-topbar,
    .section1-card-bottombar {
        margin: 0;
    }
    .section1-glass-card h2 {
        padding: 16px 16px 0;
    }
    .section1-glass-card p {
        padding: 10px 16px 16px;
    }
    .section1-card-media {
        width: calc(100% - 32px);
        margin: 16px 16px 0;
        height: 200px;
    }
    .section1-carousel-slide {
        min-width: 260px;
    }
    .section2 {
        padding: 60px 4vw 20px;
        height: auto;
        min-height: auto;
        max-height: none;
        overflow: visible;
    }

    .page-section.section2 {
        overflow: visible;
        max-height: none;
    }

    .section2-events-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        flex: none;
        max-height: none;
        grid-template-rows: none;
    }
    .section2-event-card {
        max-width: 400px;
        width: 100%;
        justify-self: center;
    }
    .section2-view-all-card {
        max-width: 400px;
        width: 100%;
        justify-self: center;
        min-height: 280px;
    }
    .section2-view-all-card-title {
        font-size: 19px;
    }
    .section2-view-all-card-desc {
        font-size: 13px;
    }
    .section3-stage {
        padding: 60px 4vw 30px;
    }
    .section3-window {
        height: 82vh;
        max-height: 750px;
        min-height: 480px;
        border-radius: 12px;
        max-width: 100%;
    }
    .section3-body {
        flex-direction: column;
    }
    .section3-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 8px 0;
        display: flex;
        flex-wrap: wrap;
        gap: 2px;
    }
    .section3-sidebar-item {
        padding: 4px 12px;
        font-size: 12px;
        margin: 0 4px;
    }
    .section3-sidebar-divider {
        display: none;
    }
    .section3-sidebar-label {
        display: none;
    }
    .section3-main {
        padding: 0;
        min-height: 0;
    }
    .section3-notes-toolbar {
        padding: 8px 10px;
        gap: 8px;
    }
    .section3-notes-toolbar-actions {
        display: none;
    }
    /* iPhone Notes layout: see mobile-layout.css */
    .section3-feature-item {
        padding: 8px 10px;
        font-size: 13px;
    }
    .section3-join-wrap .section1-btn {
        min-width: 120px;
        height: 40px;
        padding: 8px 18px;
        font-size: 13px;
    }
    .section3-stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .section3-feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .section3-title {
        font-size: 11px;
    }
    .section3-titlebar {
        padding: 8px 12px;
        min-height: 36px;
    }
    /* legacy navbar overrides removed to prevent layout jumps */
    .sticker {
        width: 80px;
        bottom: 16px;
        right: 16px;
    }
    .page-indicator {
        right: 16px;
        gap: 10px;
    }
    .page-indicator-dot {
        width: 8px;
        height: 8px;
    }
    .section3-footer {
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
        padding: 8px 16px;
        font-size: 10px;
    }
    .section3-footer-items {
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .section1-content h1 .section1-title {
        font-size: clamp(1.45rem, 8vw, 1.65rem);
    }
    .section1-lead {
        font-size: 15px;
    }
    .section1-motto {
        font-size: 14px;
    }
    .section1-btn, .section2-view-all-btn, .section2-view-all-card-btn {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 120px;
        height: 44px;
    }
    .section1-glass-card {
        padding: 0;
    }
    .section1-card-topbar,
    .section1-card-bottombar {
        margin: 0;
    }
    .section1-glass-card h2 {
        padding: 14px 14px 0;
        font-size: 18px;
    }
    .section1-glass-card p {
        padding: 8px 14px 14px;
        font-size: 15px;
        font-weight: 400;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.9);
    }
    .section1-carousel-slide {
        min-width: 200px;
    }
    .section1-card-media {
        width: calc(100% - 24px);
        margin: 12px 12px 0;
        height: 160px;
    }
    .section2-header h2 {
        font-size: 26px;
    }
    .section2-event-card {
        max-width: 100%;
    }
    .section2-event-card-image {
        min-height: 190px;
        height: 190px;
    }
    .section3-stat-number {
        font-size: 30px;
    }
    .section3-stat-label {
        font-size: 12px;
    }
    .section3-main .section3-description {
        font-size: 14px;
    }
    .section3-feature-item {
        font-size: 13px;
    }
    .section3-stat-item {
        padding: 12px;
    }
    .section3-feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .section3-sidebar {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 6px 8px;
    }
    .section3-sidebar-item {
        font-size: 11px;
        padding: 4px 10px;
        white-space: nowrap;
    }
    .section3-main {
        padding: 0;
        gap: 0;
    }
    .section3-join-wrap {
        padding: 6px 12px 10px 6px;
    }
}

/* Shorter desktop/laptop heights: keep notes flush inside the finder window */
@media (min-width: 1025px) and (max-height: 880px) {
    .section3-main {
        padding: 0;
    }
    .section3-narrative-content {
        gap: 10px 18px;
    }
    .section3-narrative-tags {
        margin-bottom: 10px;
    }
    .section3-main-block {
        padding: 11px 14px;
    }
    .section3-block-title {
        margin-bottom: 6px;
        min-height: 0;
    }
    .section3-stat-grid {
        gap: 10px;
    }
    .section3-stat-item {
        padding: 9px 10px;
    }
    .section3-stat-number {
        font-size: calc(28px * var(--ui-scale));
    }
    .section3-stat-label {
        font-size: 11px;
        margin-top: 2px;
    }
    .section3-main .section3-description {
        font-size: 13px;
        line-height: 1.5;
    }
}

@media (min-width: 1025px) and (max-height: 740px) {
    .section3-stat-item {
        padding: 7px 9px;
    }
    .section3-stat-number {
        font-size: calc(24px * var(--ui-scale));
    }
    .section3-stat-grid {
        gap: 8px;
    }
    .section3-main .section3-description {
        font-size: 12px;
        line-height: 1.45;
    }
}
