/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

:root {
    --header-color: #5C2D2D;
    --bg-color: #f0ece4;
    --text-dark: #5C2D2D;
    --text-light: #FFFFFF;
    --nav-bg: #E8E8E8;
    --nav-border: #CCCCCC;
    --mission-bg: #E8E8A0;
    --vision-bg: #B8D4E8;
    --card-blue: #B8D4E8;
    --card-gray: #CCCCCC;
    --card-green: #D4D4A0;
    
    /* Intro animation timings */
    --intro-fade: 900ms;
    --intro-move: 1000ms;
}

/* Intro Animation Styles */
.intro-stage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    background: #5C2D2D;
    z-index: 9999;
    overflow: hidden;
    transition: opacity 500ms ease;
}

.intro-stage.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.intro-logo-wrap {
    opacity: 0;
    transition: opacity var(--intro-fade) ease;
}

.intro-logo-wrap.show {
    opacity: 1;
}

.intro-logo {
    width: 280px;
    max-width: 70vw;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,.12));
}

.intro-title-wrap {
    text-align: center;
    opacity: 0;
    transition: opacity var(--intro-fade) ease;
    margin-top: -100px;
}

.intro-title-wrap.show {
    opacity: 1;
}

.intro-title-wrap h1 {
    margin: 0;
    line-height: 1.06;
    color: #f0ece4;
}

.intro-t-line {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
}

.intro-t-cards {
    font-size: clamp(2.2rem, 5.2vw, 3.6rem);
}

.intro-t-with {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    letter-spacing: .06em;
}

.intro-t-hearts {
    font-size: clamp(2.2rem, 5.2vw, 3.6rem);
}

@media (max-width: 767px) {
    .intro-content {
        top: 40%;
    }

    .intro-t-cards,
    .intro-t-hearts {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }

    .intro-t-with {
        font-size: clamp(1rem, 4.5vw, 1.2rem);
    }

    .intro-tap-hint {
        font-size: 12px;
        bottom: 100px;
        letter-spacing: 0.08em;
        text-align: center;
        width: min(90vw, 320px);
        line-height: 1.4;
    }
}

.intro-ribbon {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(18px, 3.5vh, 42px);
    background: #fff;
    border-top: 1px solid rgba(0,0,0,.08);
    border-bottom: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--intro-fade) ease, transform var(--intro-fade) ease;
}

.intro-ribbon.show {
    opacity: 1;
    transform: none;
}

.intro-marquee {
    white-space: nowrap;
    overflow: hidden;
    font-weight: 700;
    letter-spacing: .02em;
    color: #5C2D2D;
}

.intro-marquee span {
    display: inline-block;
    padding: 12px 20px;
    animation: intro-scroll 18s linear infinite;
}

@keyframes intro-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.intro-tap-hint {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1px;
    animation: intro-pulse 2s ease-in-out infinite;
    z-index: 10000;
}

@keyframes intro-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Mobile Header and Pages - Hidden on Desktop */
.mobile-header,
.mobile-pages {
    display: block;
}

.mobile-pages {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.mobile-pages > .page {
    flex: 1;
}

/* Desktop Layout - Hidden on Mobile */
.desktop-layout {
    display: none;
}

/* Desktop/Tablet Layout */
@media (min-width: 768px) {
    .mobile-header,
    .mobile-pages {
        display: none !important;
    }

    .desktop-layout {
        display: flex;
        min-height: 100vh;
    }

    /* Left Sidebar */
    .left-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 140px;
        height: 100vh;
        background-color: var(--header-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 40px 12px;
        z-index: 1000;
        overflow-y: auto;
    }

    /* Right Sidebar */
    .right-sidebar {
        position: fixed;
        right: 0;
        top: 0;
        width: 140px;
        height: 100vh;
        background-color: var(--header-color);
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding: 40px 12px;
        padding-bottom: 120px;
        z-index: 1000;
    }

    .sidebar-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        margin-bottom: 60px;
    }

    .logo-illustration {
        width: 120px;
        height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }

    .sidebar-logo-icon {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

    .sidebar-logo-text {
        color: #fef7c8;
        font-family: 'Linden Hill', serif;
        font-size: 18px;
        font-weight: 400;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        align-items: center;
        margin-top: 120px;
    }

    .sidebar-nav-item {
        color: #fef7c8;
        text-decoration: none;
        padding: 10px 12px;
        font-size: 13px;
        font-family: 'Linden Hill', serif;
        transition: all 0.3s ease;
        border-radius: 4px;
        text-align: center;
        width: 100%;
    }

    .sidebar-nav-item:hover,
    .sidebar-nav-item.active {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    /* Right Sidebar */
    .right-sidebar {
        position: fixed;
        right: 0;
        top: 0;
        width: 140px;
        height: 100vh;
        background-color: var(--header-color);
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding: 40px 12px;
        padding-bottom: 120px;
        z-index: 1000;
    }

    .social-icons {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        width: 100%;
        margin-bottom: 20px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fef7c8;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .social-icon:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }

    .social-text {
        font-size: 18px;
        font-weight: 700;
        font-family: Arial, sans-serif;
    }

    /* Main Content */
    .main-content {
        margin-left: 140px;
        margin-right: 140px;
        width: calc(100% - 280px);
        background-color: var(--bg-color);
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .main-content > .page {
        flex: 1;
    }

    .page {
        padding: 0;
        max-width: 100%;
        display: block !important;
    }

    .home-container,
    .cards-container,
    .form-container,
    .about-container {
        max-width: 1200px;
        padding: 60px 40px;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) {
    .left-sidebar {
        width: 160px;
    }

    .right-sidebar {
        width: 160px;
    }

    .main-content {
        margin-left: 160px;
        margin-right: 160px;
        width: calc(100% - 320px);
    }

    .sidebar-logo-text {
        font-size: 20px;
    }

    .sidebar-nav-item {
        font-size: 14px;
        padding: 10px 12px;
    }
}

/* Header */
.header {
    background: var(--header-color);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    width: 100%;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Desktop Header */
@media (min-width: 1024px) {
    .header-wrapper {
        display: flex;
        align-items: center;
        max-width: 1400px;
        margin: 0 auto;
    }

    .header {
        padding: 16px 40px;
        flex: 1;
    }

    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: none;
    }

    .nav-menu {
        display: flex !important;
        flex-direction: row;
        position: static;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-top: none;
        box-shadow: none;
        animation: none;
        top: auto;
        width: auto;
        gap: 0;
        padding: 0 40px;
    }

    .nav-item {
        padding: 16px 24px;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
        font-size: 14px;
        color: var(--text-light);
        transition: all 0.3s ease;
    }

    .nav-item:last-child {
        border-right: none;
    }

    .nav-item:hover,
    .nav-item.active {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.logo-icon {
    width: 60px;
    height: auto;
    display: block;
}

.logo-text {
    color: #fef7c8;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Linden Hill', serif;
    line-height: 1;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    width: 48px;
    height: 2px;
    background-color: var(--text-light);
    transition: all 0.3s ease;
}

/* Navigation Menu */
.nav-menu {
    display: none;
    flex-direction: column;
    background: linear-gradient(to top, rgba(232, 232, 232, 0.98), rgba(232, 232, 232, 0.70));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideDown 0.3s ease-out;
    position: sticky;
    top: 80px;
    z-index: 999;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Desktop Navigation - Horizontal */
@media (min-width: 1024px) {
    .nav-menu {
        display: flex !important;
        flex-direction: row;
        position: static;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-top: none;
        box-shadow: none;
        animation: none;
        top: auto;
        width: auto;
        gap: 0;
    }

    .nav-item {
        padding: 0 24px;
        border-bottom: none;
        border-right: 1px solid rgba(92, 45, 45, 0.2);
        font-size: 14px;
        transition: all 0.3s ease;
    }

    .nav-item:last-child {
        border-right: none;
    }

    .nav-item:hover,
    .nav-item.active {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
}

.nav-menu.active {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-item {
    padding: 32px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 16px;
    border-bottom: 1px solid var(--nav-border);
    transition: background-color 0.2s;
}

.nav-item:hover,
.nav-item.active {
    background-color: #DDDDDD;
}

/* Pages */
.page {
    display: none;
    min-height: calc(100vh - 60px);
    padding: 20px 16px;
    animation: fadeIn 0.3s ease-in;
    background-color: var(--bg-color);
}

.page.active {
    display: block;
}

/* Desktop: Pages should always be visible when rendered */
@media (min-width: 768px) {
    .main-content .page,
    .main-content .about-page {
        display: block !important;
        min-height: auto;
        padding: 0;
    }
}

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

/* Home Page */
.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Hero Section */
.hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    margin-top: -200px;
}

.hero-frame {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-frame {
        position: sticky;
        top: 0;
        z-index: 100;
    }
}

.hero-img {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    min-height: 100vh;
    object-fit: cover;
    display: block;
    transform: scale(0.95);
    position: relative;
}

.title-plaque {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #FBF9C5;
    border: 2px solid #5C2D2D;
    border-radius: 4px;
    padding: 8px 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
    pointer-events: none;
}

.title-plaque .script {
    font-family: 'Life Savers', cursive;
    font-size: clamp(18px, 3vw, 24px);
    color: #5C2D2D;
    text-align: center;
    margin: 0;
    white-space: nowrap;
}

.cta {
    padding: 12px 28px;
    background-color: var(--header-color);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Special Elite', cursive;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.cta:hover {
    background-color: #4A1F1F;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.cta.bounce {
    animation: bounce 2s ease-in-out infinite;
}

/* Mobile Hero Styles */
@media (max-width: 767px) {
    .about-page {
        position: relative;
        padding-top: 30px;
    }

    .hero {
        margin-top: 0;
        padding: 40px 20px;
    }
    
    .hero-frame {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: auto;
    }
    
    .hero-img {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: auto;
        object-fit: contain;
        transform: none;
    }

    .title-plaque {
        padding: 1px 5px;
        border-width: 1px;
        top: 45%;
    }

    .title-plaque h1,
    .title-plaque .script {
        font-size: clamp(9px, 3vw, 14px);
    }

    /* Mobile form accessibility */
    .card-form {
        padding: 24px 18px;
        gap: 16px;
    }

    .form-group {
        gap: 12px;
    }

    .form-group label {
        font-size: 16px;
        line-height: 1.4;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 12px 10px;
        border-radius: 10px;
    }

    .form-group textarea {
        min-height: 140px;
    }

    .file-input-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .file-choose-btn,
    .file-name-display {
        width: 100%;
        text-align: center;
    }

    .submit-btn {
        width: 100%;
        min-height: 48px;
        text-align: center;
    }

    .builder-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* About page mobile tweaks */
    .collage-section {
        padding: 10px 16px !important;
        min-height: auto !important;
        height: auto !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        position: relative;
        overflow: visible;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
    }

    .collage-container {
        position: relative;
        width: 100%;
        max-width: 340px;
        margin: 0 auto !important;
        min-height: auto !important;
        height: auto !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
        padding: 0;
        box-sizing: border-box;
    }

    .collage-item {
        position: static !important;
        animation: none !important;
        transform: none !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        top: unset !important;
        left: unset !important;
        right: unset !important;
        box-sizing: border-box;
        background: transparent;
        padding: 0;
        border-radius: 8px;
        box-shadow: none;
        overflow: hidden;
    }

    .collage-rectangle {
        margin: 0 !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 3 / 4;
        overflow: hidden;
        border-radius: 8px;
        background: transparent;
        border: none !important;
        box-shadow: none !important;
    }

    .collage-rectangle::before {
        display: none !important;
    }

    .collage-photo {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    .star-sketch,
    .star-sketch-2,
    .arrow-doodle {
        display: none !important;
    }

    .star-sketch,
    .star-sketch-2,
    .arrow-doodle {
        display: none;
    }
}

/* Desktop Hero Styles */
@media (min-width: 768px) {
    .hero {
        position: relative;
        min-height: 100vh;
    }
    
    .hero-frame {
        position: relative;
    }
    
    .cta {
        position: absolute;
        top: calc(50% + 400px);
        left: calc(50% - 80px);
        transform: translateX(-50%);
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
        z-index: 200;
        pointer-events: auto;
        display: block;
    }
}

.shop-building {
    background-color: var(--bg-color);
    border: 2px solid var(--text-dark);
    border-radius: 4px;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Upper Floor */
.upper-floor {
    display: flex;
    justify-content: space-around;
    padding: 15px 10px;
    background-color: var(--bg-color);
    border-bottom: 2px solid var(--text-dark);
}

.upper-window {
    flex: 1;
    max-width: 80px;
    height: 70px;
    position: relative;
    margin: 0 5px;
}

.window-pane {
    width: 100%;
    height: 100%;
    background-color: #B8D4E8;
    border: 2px solid var(--text-dark);
    border-radius: 2px;
    position: relative;
    z-index: 1;
}

.window-shutter {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: #8B6F47;
    border: 2px solid var(--text-dark);
    z-index: 2;
}

.window-shutter.left {
    left: 0;
    border-radius: 2px 0 0 2px;
    transform: rotateY(-15deg);
    transform-origin: left;
}

.window-shutter.right {
    right: 0;
    border-radius: 0 2px 2px 0;
    transform: rotateY(15deg);
    transform-origin: right;
}

/* Lower Floor */
.lower-floor {
    background-color: var(--bg-color);
    position: relative;
    padding-top: 20px;
}

.shop-awning {
    width: 100%;
    height: 25px;
    background-color: #FFB8D8;
    position: relative;
    margin-bottom: 10px;
}

.shop-awning::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: #FFB8D8;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}

.shop-banner {
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding: 8px;
    background-color: #FFFFFF;
    border: 2px solid var(--text-dark);
    border-radius: 4px;
    margin-left: 10px;
    margin-right: 10px;
}

.shop-front {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 10px 15px;
    gap: 8px;
}

.shop-window-display {
    flex: 1;
    height: 120px;
    background-color: #FFFFFF;
    border: 2px solid var(--text-dark);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.window-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFF8E8 0%, #FFE8D8 100%);
    position: relative;
}

.window-content::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #FFD700;
    border-radius: 50%;
    top: 10px;
    left: 10px;
}

.shop-entrance {
    flex: 0 0 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.entrance-door {
    width: 50px;
    height: 90px;
    background-color: #8B0000;
    border: 2px solid var(--text-dark);
    border-radius: 4px 4px 0 0;
    position: relative;
}

.entrance-door::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 8px;
    width: 8px;
    height: 8px;
    background-color: #FFD700;
    border-radius: 50%;
    transform: translateY(-50%);
}

.door-light {
    width: 12px;
    height: 12px;
    background-color: #FFD700;
    border: 2px solid var(--text-dark);
    border-radius: 50%;
    margin-top: 5px;
}

.get-started-btn {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    max-width: 130px;
    padding: 4px 10px;
    background-color: var(--header-color);
    color: #FFF8E8;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 400;
    font-family: 'Linden Hill', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 15;
    animation: fadeInUp 0.8s ease-out, bounceUpDown 2s ease-in-out infinite;
    animation-delay: 0.5s, 1.5s;
}

.get-started-btn:hover {
    background-color: #4A1F1F;
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes bounceUpDown {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

.we-make-cards-section {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    margin: -80px auto 0;
}

.we-make-cards-title {
    font-family: 'Linden Hill', serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.we-make-cards-text {
    font-family: 'Linden Hill', serif;
    font-size: clamp(16px, 2.5vw, 28px);
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

.home-text {
    text-align: center;
    margin-top: 40px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* ===================== HOW IT WORKS ===================== */

/* Section wrapper + soft pink concentric arcs like the reference */
/* ===================== HOW IT WORKS ===================== */

/* Section wrapper + soft pink concentric arcs like the reference */
.how {
    position: relative;
    padding-top: 200px;
    padding-bottom: 120px;
    min-height: 220vh;
    overflow: clip;
    --pinTop: 0px;
    --cards-offset: clamp(80px, 18vh, 220px);
    /* NEW: vertical gap above the card stack */
}

.how-bg {
    position: absolute;
    inset: -10% -5% auto -5%;
    height: 120vh;
    background:
        radial-gradient(1200px 600px at 65% -10%, #ffffff80, #ffffff00 65%),
        radial-gradient(1000px 520px at -20% 0%, #ffffff66, #ffffff00 70%),
        radial-gradient(1400px 700px at 120% 10%, #ffffff4d, #ffffff00 75%);
    opacity: 0.6;
    pointer-events: none;
}

.how-header {
    display: grid;
    place-items: center;
    margin-bottom: 120px; /* more space below header */
}

.how-header h2 {
    font-size: clamp(40px, 7vw, 96px);
    color: #e44439;
    letter-spacing: 0.02em;
    font-family: "Chelsea Market", system-ui, -apple-system, Segoe UI, Roboto, sans-serif; /* NEW */
    font-weight: 700;
}

/* Stage: holds the four overlapped cards (desktop) */
.how-stage {
    position: sticky;
    top: var(--pinTop); /* pin to the top of the viewport (or below mobile topbar) */
    min-height: calc(80vh - var(--pinTop));
    margin-top: 60px;
}

/* ------- Base card (SMALLER) ------- */
.how-card {
    /* Smaller footprint than before */
    --w: clamp(220px, 22vw, 400px);
    --h: clamp(380px, 48vw, 600px);

    width: var(--w);
    height: var(--h);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(0,0,0,.18);
    border: 2px solid #fff5;

    position: absolute;
    top: var(--cards-offset); /* CHANGED: was 0; pushes whole stack down */
    transform-origin: center 20%;
    opacity: 0;
    transform: translate3d(0, 40px, 0) rotate(0deg) scale(.96);
    transition:
        opacity .5s ease,
        transform .6s cubic-bezier(.2,.8,.2,1),
        filter .6s ease;
    will-change: transform, opacity, filter;

    display: flex;
    flex-direction: column;
    padding: clamp(14px, 1.6vw, 22px);
    gap: clamp(8px, 1.2vw, 14px);
}

/* Headings & numbers inside cards (smaller type) */
.how-card h3 {
    font-family: "Chelsea Market", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-weight: 700;
    color: #4b2a20;
    font-size: clamp(22px, 3.2vw, 44px); /* was up to 56px */
    line-height: 0.95;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.how-card p {
    margin: 0;
    opacity: 0.85;
    font-size: clamp(14px, 1.4vw, 16px);
}

.how-step {
    margin-top: auto;
    font-size: clamp(22px, 4vw, 48px); /* was up to 64px */
    color: #4b2a20;
}

/* HOW: make the inner square bigger */
.how-illustration {
    height: clamp(260px, 36vw, 520px); /* was 180/30vw/380 */
}

/* Ensure the card is tall enough for the bigger image */
.how-card {
    --h: clamp(640px, 72vw, 980px); /* bump height to avoid overflow */
}

/* Tiny number-coin on each card (smaller) */
.how-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 999px; /* was 34x34 */
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 13px;
    color: #b64133;
    background: #fff2;
    border: 1px solid #0001;
    backdrop-filter: blur(4px);
}

/* Illustration block (smaller) */
.how-illustration {
    margin-top: clamp(8px, 1.2vw, 16px);
    height: clamp(120px, 18vw, 200px); /* was up to 260px */
    border-radius: 10px;
    background: linear-gradient(180deg, #dcc486, #272727);
    border: 1px solid #00000010;
}

/* Card positions + rotations (nudged for new size) */
.how-1 {
    left: max(2%, 40px);
    z-index: 4;
    transform: translateY(40px) rotate(-6deg) scale(.96);
}

.how-2 {
    left: 24%;
    z-index: 5;
    transform: translateY(40px) rotate(3deg) scale(.96);
}

.how-3 {
    left: 46%;
    z-index: 6;
    transform: translateY(40px) rotate(-3deg) scale(.96);
}

/* Reveal states toggled by JS (one-by-one in both directions) */
.how.show-1 .how-1 {
    opacity: 1;
    transform: translateY(0) rotate(-6deg) scale(1);
    filter: none;
}

.how.show-2 .how-2 {
    opacity: 1;
    transform: translateY(0) rotate(3deg) scale(1);
    filter: none;
}

.how.show-3 .how-3 {
    opacity: 1;
    transform: translateY(0) rotate(-3deg) scale(1);
    filter: none;
}

/* Small screens: stack cards vertically with a gentle reveal */
@media (min-width: 901px) {
    .how {
        --cluster-offset: clamp(180px, 18vw, 360px);
    }

    /* Center each card then offset left/right around center */
    .how-card {
        left: 50%;
        margin-left: calc(var(--w) / -2);
    }

    /* Initial positions */
    .how-1 {
        transform: translate(calc(var(--cluster-offset) * -1), 40px) rotate(-4deg) scale(.96);
    }

    .how-2 {
        transform: translate(0, 40px) rotate(2deg) scale(.96);
    }

    .how-3 {
        transform: translate(var(--cluster-offset), 40px) rotate(-2deg) scale(.96);
    }

    /* Reveal states */
    .how.show-1 .how-1 {
        transform: translate(calc(var(--cluster-offset) * -1), 0) rotate(-4deg) scale(1);
    }

    .how.show-2 .how-2 {
        transform: translate(0, 0) rotate(2deg) scale(1);
    }

    .how.show-3 .how-3 {
        transform: translate(var(--cluster-offset), 0) rotate(-2deg) scale(1);
    }
}

@media (max-width: 600px) {
    .how-illustration {
        height: clamp(280px, 68vw, 520px);
    }
}

.how-1 h3 {
    font-size: clamp(28px, 4vw, 64px);
    line-height: 0.9;
}

.how-title {
    text-align: center;
    line-height: 1;
}

.how-title .w {
    display: block; /* force each word to its own line */
    opacity: 0;
    transform: translateX(-80%);
    transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .5s ease;
    will-change: transform, opacity;
}

.how-title .w2 {
    transform: translateX(80%);
} /* alternate from right */

.how.title-in .how-title .w {
    transform: translateX(0);
    opacity: 1;
}

.how.title-in .how-title .w1 {
    transition-delay: 0.00s;
}

.how.title-in .how-title .w2 {
    transition-delay: 0.12s;
}

.how.title-in .how-title .w3 {
    transition-delay: 0.24s;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .how-title .w {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

.how + .gallery {
    margin-top: clamp(40px, 8vw, 140px);
}

/* ============================
   How It Works Section - Polaroid Style
   ============================ */
.how-it-works-section {
    padding: 120px 20px 110px;
    background-color: var(--bg-color);
    margin: 30px 0 60px;
    min-height: 150vh;
    position: relative;
}

.how-it-works-container {
    max-width: 1200px;
    margin: 0 auto;
}

.how-it-works-title {
    font-family: 'Chelsea Market', cursive;
    font-size: clamp(72px, 10vw, 120px);
    font-weight: 700;
    color: var(--header-color);
    text-align: center;
    margin-bottom: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 1.2;
}

.how-it-works-title span {
    display: block;
}

.title-word {
    opacity: 0;
    transition: opacity 1s ease, transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.title-word-1 {
    transform: translateX(-100px);
}

.title-word-2 {
    transform: translateX(100px);
}

.title-word-3 {
    transform: translateX(-100px);
}

.title-word-1.visible {
    opacity: 1;
    transform: translateX(0);
}

.title-word-2.visible {
    opacity: 1;
    transform: translateX(0);
}

.title-word-3.visible {
    opacity: 1;
    transform: translateX(0);
}

.how-it-works-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
    margin-top: 150px;
}

.how-it-works-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    position: relative;
    opacity: 0;
    transform: translateY(150px) rotate(var(--rotation, 0deg));
    transition: opacity 1s ease, transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.how-it-works-card:nth-child(1) {
    --rotation: -3deg;
    transition-delay: 0s;
}

.how-it-works-card:nth-child(2) {
    --rotation: 2deg;
    transition-delay: 0.2s;
}

.how-it-works-card:nth-child(3) {
    --rotation: -2deg;
    transition-delay: 0.4s;
}

.how-it-works-card.visible {
    opacity: 1;
    transform: translateY(0) rotate(var(--rotation, 0deg));
}

.how-it-works-card.visible:nth-child(1) {
    transform: translateY(-20px) rotate(-3deg);
}

.how-it-works-card.visible:nth-child(2) {
    transform: translateY(0px) rotate(2deg);
}

.how-it-works-card.visible:nth-child(3) {
    transform: translateY(20px) rotate(-2deg);
}

.how-it-works-card.visible:hover {
    transform: translateY(-10px) rotate(var(--rotation, 0deg)) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.how-it-works-illustration {
    width: 100%;
    height: 280px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-it-works-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.how-it-works-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.how-it-works-card-title {
    font-family: 'Chelsea Market', cursive;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    color: var(--header-color);
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.how-it-works-card-subtitle {
    font-family: 'Special Elite', cursive;
    font-size: clamp(14px, 1.5vw, 16px);
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.how-it-works-step-number {
    font-family: 'Chelsea Market', cursive;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: var(--header-color);
    margin-top: auto;
    padding-top: 10px;
}

@media (max-width: 968px) {
    .how-it-works-cards {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 400px;
    }
    
    .how-it-works-card {
        transform: none !important;
    }
    
    .how-it-works-card:hover {
        transform: translateY(-5px) scale(1.01) !important;
    }
}

/* ============================
   Mission & Vision Layout
   ============================ */
.mv-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 20px auto 40px;
    max-width: 1000px; /* Reduced from 1000px to make vision box smaller */
}

.mv-box {
    display: flex;
    flex-wrap: nowrap;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

/* Left panel (title area) */
.mv-left {
    flex: 1;
    background-color: #2b1c1d;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Inter, sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: clamp(36px, 5vw, 72px);
    text-transform: uppercase;
    padding: 40px;
}

/* Right panel (text area) */
.mv-right {
    flex: 2;
    padding: 20px 30px;
    font-family: "Linden Hill", serif;
    font-size: 12px;
    line-height: 1.8;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Mission colors */
.mv-box.mission .mv-right {
    background-color: #e3d86c; /* soft mustard */
    color: #2b1c1d;
    padding: 12px 18px; /* Tighter padding to shorten box */
}

/* Vision colors */
.mv-box.vision .mv-right {
    background-color: #c9e3e0; /* pale teal */
    color: #2b1c1d;
    padding: 12px 18px; /* Match mission box padding */
}

.mv-box.mission .mv-right p {
    font-family: "Special Elite", "Linden Hill", serif;
    font-size: 32px;
    line-height: 1.4;
    letter-spacing: .2px;
    text-align: center;
}

.mv-box.vision .mv-right p {
    font-family: "Special Elite", "Linden Hill", serif;
    font-size: 32px;
    line-height: 1.4;
    letter-spacing: .2px;
    text-align: center;
}

.mv-box.mission .mv-left {
    background: transparent;            /* remove dark bg */
    padding: 0;                         /* remove inner padding */
    overflow: hidden;                   /* clip image corners */
    border-radius: 16px 0 0 16px;       /* match card rounding */
    display: block;
    flex: 1 1 340px;                    /* reasonable min width */
    min-height: 220px;                  /* match vision box */
}

.mv-box.mission .mv-left .mv-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;                  /* fill nicely */
    display: block;
}

.mv-box.mission .mv-left video.mv-photo {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Zoom out - show entire video */
    display: block;
    background: #000;
}

@media (max-width: 750px) {
    .mv-box.mission .mv-left {
        border-radius: 16px 16px 0 0;      /* stacked layout */
        min-height: 180px;
    }
}

.mv-box.vision .mv-left {
    background: transparent;
    padding: 0;
    overflow: hidden;
    border-radius: 16px 0 0 16px;
    display: block;
    flex: 1 1 340px;
    min-height: 220px; /* Match mission box */
}

.mv-box.vision .mv-left .mv-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mv-box.vision .mv-left video.mv-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

@media (max-width: 1000px) {
    .mv-box.vision .mv-left {
        border-radius: 16px 16px 0 0;
        min-height: 180px;
    }
}

/* ============================
   ABOUT COLLAGE LAYOUT
   ============================ */
.about-collage {
    position: relative;
    background: var(--beige);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-collage .collage-center p {
    font-family: "Love Ya Like A Sister", "Linden Hill", cursive;
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.9;
    max-width: 52ch;
}

.collage-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 90vh;
}

/* --- Center text --- */
.collage-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.collage-center h2 {
    font-family: "Linden Hill", serif;
    color: var(--maroon);
    font-size: 2rem;
    margin-bottom: 10px;
}

.collage-center p {
    font-family: Inter, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #2a1c1d;
    max-width: 360px;
    margin: 0 auto;
}

/* ========================
   About section style
   ======================== */

/* --- Floating image squares --- */
.collage-img {
    position: absolute;
    width: 160px;
    height: 160px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 1s ease, transform 1s ease;
}

/* Placement (adjust to your liking) */
.img1 { top: 10%; left: 18%; background-image: url("/assets/abt2.JPG"); }
.img2 { top: 15%; right: 20%; background-image: url("/assets/abt3.jpg"); }
.img3 { bottom: 20%; left: 10%; background-image: url("/assets/abt4.jpg"); }
.img4 { bottom: 25%; right: 15%; background-image: url("/assets/abt5.JPG"); }
.img5 { top: 40%; left: 5%; background-image: url("/assets/abt7.jpg"); }
.img6 { top: 60%; right: 8%; background-image: url("/assets/abt8.jpg"); }
.img7 { bottom: 8%; left: 25%; background-image: url("/assets/abt9.jpg"); }
.img8 { bottom: 10%; right: 30%; background-image: url("/assets/abt10.jpg"); }

/* --- Reveal animation on scroll --- */
.collage-img.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- Responsive adjustments --- */
@media (max-width: 800px) {
    .collage-img {
        width: 110px;
        height: 110px;
    }
    .collage-center p {
        font-size: 14px;
        max-width: 280px;
    }
}

#galleryTitle,
#aboutTitle,
#sendTitle {
    font-family: "Chelsea Market", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--maroon);
}

p {
    font-family: "Special Elite", "Linden Hill", serif;
    letter-spacing: .2px;
}

/* Global body copy */
body {
    font-size: 18px;      /* base bump */
}

p {
    font-size: 20px;         /* default paragraphs */
}

/* Site section titles */
h2 {
    font-size: clamp(32px, 4vw, 54px);
}

/* Hero title plaque */
.title-plaque h1 {
    font-size: clamp(26px, 3.8vw, 44px);
}

/* Side-rail menu links */
.menu-link {
    font-size: 17px;
}

/* HOW IT WORKS */
.how-header h2 {
    font-size: clamp(50px, 7.5vw, 104px);
}

.how-card h3 {
    font-size: clamp(24px, 3.4vw, 50px);
}

.how-card p {
    font-size: clamp(24px, 1.6vw, 18px);
}

.how-step {
    font-size: clamp(30px, 4vw, 56px);
}

.sub {
    font-size: clamp(18px, 2.4vw, 24px);
    line-height: 1.6;
    opacity: .95; /* optional */
}

.section-title.stacked {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.2;
}

/* Cards Page */
.cards-container {
    max-width: 1200px;
    padding: 40px 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pick-card-title {
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 700;
    color: var(--header-color);
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Chelsea Market', cursive;
}

.wave-text {
    display: inline-block;
}

.wave-char {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(-5px);
    }
}

.pick-card-section {
    padding: 80px 20px;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.pick-card-instruction {
    font-size: 16px;
    color: var(--header-color);
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Special Elite', cursive;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 30px;
}

.card-options {
    column-count: 3;
    column-gap: 20px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .card-options {
        column-count: 3;
        column-gap: 18px;
    }
}

@media (max-width: 768px) {
    .card-options {
        column-count: 2;
        column-gap: 12px;
    }
}

@media (max-width: 480px) {
    .card-options {
        column-count: 2;
        column-gap: 10px;
    }
}

@media (max-width: 768px) {
    .form-container {
        padding: 20px 15px;
    }
    
    .card-form {
        padding: 25px 20px;
    }
    
    .selected-card-display {
        flex-direction: column;
        gap: 10px;
    }
    
    .file-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .file-choose-btn {
        width: 100%;
    }
    
    .builder-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sentence-builder-section {
        padding: 20px 15px;
    }
}

@media (max-width: 600px) {
    .builder-grid {
        grid-template-columns: 1fr;
    }
    
    .postcard-preview-section {
        padding: 20px 15px;
    }
    
    .final-sentence {
        font-size: 20px;
        left: 30px;
        right: 30px;
        top: 30px;
    }
    
    .final-handwriting-wrapper {
        left: 30px;
        right: 30px;
        top: 120px;
        bottom: 100px;
    }
}

.card-option {
    width: 100%;
    border-radius: 12px;
    padding: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background-color: transparent;
    break-inside: avoid;
    margin-bottom: 15px;
    display: inline-block;
}

.card-option:hover {
    transform: scale(1.02);
    box-shadow: none;
}

.card-option.selected {
    border: none;
    box-shadow: none;
}

.card-checkmark {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-1 {
    background-color: transparent;
}

.card-2 {
    background-color: transparent;
    min-height: 180px;
}

.card-3 {
    background-color: transparent;
}

.card-title {
    font-size: 36px;
    font-weight: 700;
    color: #FF6B35;
    text-align: right;
    margin-top: 10px;
    padding: 0 20px;
}

.card-title-mood {
    font-size: 48px;
    font-weight: 700;
    color: var(--header-color);
    text-align: center;
    margin-bottom: 10px;
    padding: 0 20px;
    text-shadow: none;
}

.card-illustration {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 0;
    background-color: transparent;
}

.card-illustration img,
.card-illustration video {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

/* Card 1 - Otter Illustration */
.otter-illustration {
    width: 120px;
    height: 100px;
    background-color: #8B6F47;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    transform: rotate(-10deg);
}

.otter-illustration::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    width: 40px;
    height: 30px;
    background-color: #CC0000;
    border-radius: 50% 50% 0 0;
}

.otter-illustration::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background-color: #000;
    border-radius: 50%;
    box-shadow: -20px 0 0 #000;
}

/* Card 2 - Chalk Illustration */
.chalk-illustration {
    width: 140px;
    height: 140px;
    background: conic-gradient(
        from 0deg,
        #B8E8E8 0deg,
        #A8D8D8 60deg,
        #98C8C8 120deg,
        #88B8B8 180deg,
        #FFB8E8 240deg,
        #FFA8D8 300deg,
        #FF98C8 360deg
    );
    border-radius: 50%;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.chalk-illustration::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: conic-gradient(
        from 0deg,
        #E8E8E8 0deg,
        #D8D8D8 60deg,
        #C8C8C8 120deg,
        #B8B8B8 180deg,
        #FFE8E8 240deg,
        #FFD8D8 300deg,
        #FFC8C8 360deg
    );
    border-radius: 50%;
}

/* Card 3 - Mood Illustration */
.mood-illustration {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 20px;
}

.mood-illustration::before {
    content: '🐦';
    font-size: 40px;
    transform: rotate(-15deg);
}

.mood-illustration::after {
    content: '🐄';
    font-size: 50px;
    transform: rotate(10deg);
}

/* Form Page */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.form-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.form-page-title {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    color: var(--header-color);
    text-align: center;
    margin: 0 auto 15px;
    padding-bottom: 0;
    border-bottom: none;
    font-family: 'Chelsea Market', cursive;
    width: 100%;
    max-width: 100%;
}

.form-instruction {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin: 0 auto 30px;
    font-family: 'Special Elite', cursive;
    max-width: 600px;
    width: 100%;
}

.selected-card-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    justify-content: flex-start;
    padding: 0 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.selected-card-thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #E8F5E9;
}

.selected-card-thumbnail img,
.selected-card-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.selected-card-text {
    font-size: 15px;
    color: #333;
    font-family: 'Special Elite', cursive;
    font-weight: 500;
}

.card-form {
    background-color: #F5F5F5;
    padding: 30px 35px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 600px;
    margin: 0 auto 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-weight: 400;
    color: #333;
    font-size: 15px;
    font-family: 'Special Elite', cursive;
    margin-bottom: 6px;
    display: block;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #CCC;
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Special Elite', cursive;
    background-color: #FFFFFF;
    color: #333;
    width: 100%;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group textarea::placeholder {
    color: #999;
    font-style: italic;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--header-color);
}

.file-upload-group {
    margin-top: 10px;
}

.file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-choose-btn {
    padding: 8px 14px;
    background-color: #E0E0E0;
    color: #333;
    border: 1px solid #CCC;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Special Elite', cursive;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.file-choose-btn:hover {
    background-color: #D0D0D0;
}

.file-name-display {
    padding: 8px 12px;
    background-color: #FFFFFF;
    border: 1px solid #CCC;
    border-radius: 4px;
    color: #999;
    font-size: 13px;
    font-family: 'Special Elite', cursive;
    flex: 1;
    min-width: 0;
}

.submit-btn {
    padding: 14px 28px;
    background-color: var(--header-color);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Special Elite', cursive;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(92, 45, 45, 0.15);
    align-self: flex-start;
    min-width: 120px;
}

.submit-btn:hover {
    background-color: #4A1F1F;
    box-shadow: 0 4px 12px rgba(92, 45, 45, 0.3);
    transform: translateY(-1px);
}

/* Sentence Builder Section */
.sentence-builder-section {
    background-color: #FFFFFF;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
    padding: 24px 26px 28px;
    margin-bottom: 30px;
}

.sentence-builder-title {
    text-align: center;
    font-weight: 400;
    font-size: 22px;
    letter-spacing: 0.16em;
    margin: 0 0 22px;
    text-transform: uppercase;
    font-family: 'Special Elite', cursive;
    color: var(--header-color);
}

.builder-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.word-group {
    padding: 0;
    border: none;
    background: transparent;
    margin-bottom: 32px;
}

.group-title {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #444;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-family: 'Special Elite', cursive;
    display: block;
}

.sentence-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #CCC;
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Special Elite', cursive;
    background-color: #FFFFFF;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s;
}

.sentence-select:focus {
    outline: none;
    border-color: var(--header-color);
}

.sentence-select option {
    padding: 8px;
    font-family: 'Special Elite', cursive;
    font-size: 15px;
}

.word-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.word-option {
    --tilt: 0deg;
    position: relative;
    display: inline-block;
    padding: 10px 14px;
    min-height: 64px;
    min-width: 180px;
    font-size: 16px;
    font-weight: 500;
    background: #ffffffd9;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    z-index: 1;
    transform: rotate(var(--tilt));
    transition: transform 0.15s ease, box-shadow 0.15s ease,
                background-color 0.15s ease, color 0.15s ease;
    font-family: 'Special Elite', cursive;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.word-options .word-option:nth-child(4n+1) { --tilt: -1.5deg; }
.word-options .word-option:nth-child(4n+2) { --tilt: 1.25deg; }
.word-options .word-option:nth-child(4n+3) { --tilt: -0.8deg; }
.word-options .word-option:nth-child(4n+4) { --tilt: 0.9deg; }

.word-option::before {
    content: "";
    position: absolute;
    top: -8px;
    left: -10px;
    right: -10px;
    bottom: -8px;
    background: linear-gradient(135deg, #f5f5dc 0%, #e8e8d8 50%, #d4d4c4 100%);
    border-radius: 8px;
    z-index: -1;
    filter: brightness(1.03);
    box-shadow: 0 6px 12px rgba(0,0,0,0.35);
}

.word-option:hover {
    transform: translateY(-2px) rotate(var(--tilt));
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.word-option.selected {
    background: #000;
    color: #fff;
    transform: translate(-2px,-3px) rotate(var(--tilt));
    box-shadow: 3px 5px 0 rgba(0,0,0,0.55);
}

.word-option.selected::before {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

.sentence-output {
    margin-top: 24px;
    padding: 16px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #aaa;
    font-size: 18px;
    min-height: 48px;
    font-family: 'Special Elite', cursive;
    color: #333;
}

.builder-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    gap: 12px;
    flex-wrap: nowrap;
}

.builder-button {
    padding: 8px 16px;
    border-radius: 6px;
    background: #eee2cb;
    border: 1px solid #777;
    cursor: pointer;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 400;
    font-family: 'Special Elite', cursive;
    transition: background-color 0.2s;
}

.builder-button:hover {
    background: #e4d4b7;
}

.use-sentence-btn {
    background: var(--header-color);
    color: #fff;
    border-color: var(--header-color);
}

.use-sentence-btn:hover {
    background: #4A1F1F;
}

.validation-message {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 8px;
    font-family: 'Special Elite', cursive;
}

.required {
    color: #d32f2f;
}

/* Postcard Preview Section */
.postcard-preview-section {
    background-color: #FFFFFF;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
    padding: 24px 26px 28px;
    margin-bottom: 30px;
}

.postcard-preview-title {
    text-align: center;
    font-weight: 400;
    font-size: 22px;
    letter-spacing: 0.16em;
    margin: 0 0 24px;
    text-transform: uppercase;
    font-family: 'Special Elite', cursive;
    color: var(--header-color);
}

.postcard-front-wrapper,
.postcard-back-wrapper {
    margin-bottom: 30px;
}

.final-submit-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.final-submit-btn {
    min-width: 150px;
}

.postcard-label {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 12px;
    font-family: 'Special Elite', cursive;
    color: #333;
}

.front-photo-wrapper {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #aaa;
    background: #d1ccc3;
    position: relative;
    min-height: 200px;
    max-height: 600px;
}

.front-photo-wrapper img,
.front-photo-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.postcard-placeholder {
    border-radius: 6px;
    border: 1px solid #aaa;
    background: #f5f5f5;
    min-height: 200px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-family: 'Special Elite', cursive;
}

.final-card {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #aaa;
    position: relative;
    min-height: 200px;
}

.postcard-back-bg {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 0;
}

.postcard-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    pointer-events: none;
}

.postcard-sentence-top {
    font-size: 18px;
    line-height: 25px;
    font-weight: 400;
    color: #3b2018;
    font-family: 'Special Elite', cursive;
    text-align: center;
    margin-bottom: 20px;
    word-wrap: break-word;
    padding: 0 10px;
}

.postcard-handwriting-middle {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    max-height: 400px;
    overflow: hidden;
    margin: 0 auto;
    width: 90%;
    background-image: repeating-linear-gradient(
        transparent,
        transparent 24px,
        rgba(0, 0, 0, 0.1) 24px,
        rgba(0, 0, 0, 0.1) 25px
    );
    padding: 10px;
    border-radius: 4px;
}

.postcard-handwriting-middle img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.final-handwriting-wrapper img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Thank You Page */
.thankyou-container {
    text-align: center;
    padding: 20px;
}

.thankyou-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.thankyou-message {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.6;
}

.thankyou-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 20px 0 10px;
}

.thankyou-gif {
    max-width: 800px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

/* About Us Page */
.about-page {
    display: block;
    min-height: calc(100vh - 60px);
    padding: 0;
    animation: fadeIn 0.3s ease-in;
    background: var(--bg-color);
}

/* Who Are We Section */
.who-are-we-section {
    padding: 80px 20px;
    background: transparent;
}

.who-are-we-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: center;
}

.who-are-we-left h2 {
    font-family: 'Chelsea Market', cursive;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 700;
    color: var(--header-color);
    margin: 0 0 30px 0;
    position: relative;
    padding-bottom: 20px;
    border-bottom: 4px solid #5C2D2D;
    display: inline-block;
}

.who-are-we-left p {
    font-family: 'Linden Hill', serif;
    font-size: 32px;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0;
    max-width: 600px;
}

.who-are-we-right {
    display: flex;
    justify-content: center;
}

.about-gif {
    width: 1200px;
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    margin-top: -150px;
}

/* Mission Section */
.mission-section {
    background: var(--bg-color);
    padding: 80px 20px;
}

.mission-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mission-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
}

.gallery-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    display: block;
}

.mission-content {
    background: #E8E8A0;
    padding: 60px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mission-content h2 {
    font-family: 'Special Elite', serif;
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 30px 0;
    line-height: 1.2;
}

.mission-content p {
    font-family: 'Special Elite', serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0 0 20px 0;
}

.mission-content p:last-child {
    margin-bottom: 0;
}

/* Responsive - Who Are We */
@media (max-width: 968px) {
    .who-are-we-container {
        gap: 30px;
        padding: 40px 20px;
    }
    
    .who-are-we-left h2 {
        font-size: clamp(32px, 8vw, 48px);
    }
    
    .about-gif {
        width: 90%;
        max-width: 600px;
        margin-top: -60px;
    }
}

@media (max-width: 600px) {
    .who-are-we-section {
        padding: 30px 15px;
    }
    
    .who-are-we-container {
        gap: 20px;
        padding: 20px 15px;
    }
    
    .who-are-we-left h2 {
        font-size: clamp(28px, 7vw, 36px);
    }
    
    .who-are-we-left p {
        font-size: 32px;
        line-height: 1.7;
        max-width: 100%;
    }
    
    .about-gif {
        width: 95%;
        max-width: 400px;
        margin-top: -40px;
    }
}

/* Responsive - Mission Gallery */
@media (max-width: 968px) {
    .mission-section {
        padding: 60px 20px;
    }
    
    .gallery-image {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .mission-section {
        padding: 40px 15px;
    }
    
    .gallery-image {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
}

.collage-section {
    position: relative;
    width: 100%;
    min-height: auto;
    background-color: transparent;
    padding: 0;
    overflow: visible;
}

.collage-container {
    position: relative;
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
    height: 100vh;
    min-height: 100vh;
}

.collage-item {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
    transform: rotate(var(--rotation));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.collage-item:nth-child(odd) {
    z-index: 2;
}

.collage-item:nth-child(even) {
    z-index: 1;
}

.collage-item:hover {
    transform: rotate(0deg) scale(1.1);
    z-index: 10;
    animation-play-state: paused;
}

.collage-rectangle {
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25),
                0 3px 10px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin: 20px;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(1px);
}

.collage-rectangle::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px dashed rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    pointer-events: none;
}

.collage-rectangle::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.collage-item:hover .collage-rectangle {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(128, 0, 32, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.collage-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.star-sketch {
    position: absolute;
    top: 10%;
    right: 2%;
    width: clamp(140px, 16vw, 240px);
    height: auto;
    pointer-events: none;
    z-index: 0;
}

.star-sketch-2 {
    top: 28%;
    right: 18%;
    width: clamp(80px, 10vw, 150px);
    opacity: 0.85;
}

.arrow-doodle {
    position: absolute;
    top: 10%;
    left: auto;
    right: 60%;
    width: clamp(120px, 14vw, 200px);
    height: auto;
    transform: rotate(90deg);
    pointer-events: none;
    opacity: 0.9;
    z-index: 0;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(var(--rotation));
    }
    25% {
        transform: translateY(-20px) rotate(calc(var(--rotation) + 2deg));
    }
    50% {
        transform: translateY(-10px) rotate(var(--rotation));
    }
    75% {
        transform: translateY(-15px) rotate(calc(var(--rotation) - 2deg));
    }
}

@media (max-width: 1024px) {
    .collage-container {
        width: 90%;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .collage-rectangle {
        width: 140px !important;
        height: 170px !important;
    }
    
    .collage-item:nth-child(1) { top: 6% !important; left: 6% !important; }
    .collage-item:nth-child(2) { top: 8% !important; left: 38% !important; }
    .collage-item:nth-child(3) { top: 10% !important; left: 68% !important; }
    .collage-item:nth-child(4) { top: 26% !important; left: 12% !important; }
    .collage-item:nth-child(5) { top: 32% !important; left: 56% !important; }
    .collage-item:nth-child(6) { top: 52% !important; left: 6% !important; }
    .collage-item:nth-child(7) { top: 56% !important; left: 38% !important; }
    .collage-item:nth-child(8) { top: 68% !important; left: 68% !important; }
}

@media (max-width: 768px) {
    .collage-section {
        min-height: auto !important;
        height: auto !important;
        padding: 10px 15px !important;
    }
    
    .collage-container {
        width: 95%;
        max-width: 340px;
        margin: 0 auto !important;
        height: auto !important;
        min-height: auto !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
    }
    
    .collage-rectangle {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 3 / 4 !important;
    }
    
    .collage-item {
        position: static !important;
        transform: none !important;
        animation: none !important;
        top: unset !important;
        left: unset !important;
    }
}

@media (max-width: 480px) {
    .collage-rectangle {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 3 / 4 !important;
    }
}

.about-container {
    max-width: 1200px;
    padding: 60px 20px 40px;
    background-color: transparent;
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 40px;
}

@media (max-width: 767px) {
    .about-container {
        padding-top: 80px;
    }
}

/* Scroll Scene Wrapper - tall section for scroll-driven animation */
.scene-wrapper {
    height: 400vh;
    position: relative;
    background: transparent;
}

.scene {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: transparent;
}

.scene-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.photo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20vmin;
    max-width: 200px;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
}

/* First photo should be visible initially and larger */
.photo:first-child {
    opacity: 1;
    visibility: visible;
    width: 28vmin;
    max-width: 280px;
}

.scene-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Reenie Beanie', 'Life Savers', 'Kalam', 'Caveat', 'Georgia', serif;
    font-size: 40px;
    letter-spacing: 0.08em;
    color: #000000;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    font-style: italic;
}

.about-photo {
    position: absolute;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    left: 50%;
    top: 50%;
}

/* Show only the first photo initially - centered like the reference image */
.about-photo:nth-child(1) { 
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 17;
    transform: translate(-50%, -50%) scale(1) rotate(0deg) !important;
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
}

.about-photo:nth-child(1).visible {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Override position classes for first photo until dispersed */
.about-photo:nth-child(1).top-left:not(.dispersed) {
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: 140px !important;
    height: 140px !important;
}

/* Hide all other photos initially - use !important to override any other styles */
.about-photo:nth-child(n+2):not(.two-photos):not(.dispersed):not(.collage-stage):not(.scattered-stage) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

/* Stage 2: Show second photo stacked on first */
.about-photo:nth-child(2).two-photos {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    z-index: 16;
    transform: translate(calc(-50% + 8px), calc(-50% + 8px)) scale(0.95) rotate(2deg);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Stage 3: Show photos in overlapping collage style */
.about-photo.collage-stage {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-photo:nth-child(2).collage-stage {
    z-index: 16;
    transform: translate(calc(-50% + 15px), calc(-50% + 10px)) scale(0.95) rotate(3deg);
    left: 50% !important;
    top: 50% !important;
}

.about-photo:nth-child(3).collage-stage {
    z-index: 15;
    transform: translate(calc(-50% - 20px), calc(-50% - 15px)) scale(0.92) rotate(-2deg);
    left: 50% !important;
    top: 50% !important;
}

.about-photo:nth-child(4).collage-stage {
    z-index: 14;
    transform: translate(calc(-50% + 25px), calc(-50% - 20px)) scale(0.90) rotate(4deg);
    left: 50% !important;
    top: 50% !important;
}

/* Scattered collage style - photos appear from all sides of center photo */
.about-photo.scattered-stage {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    left: 50% !important;
    top: 50% !important;
    animation: appearFromSide 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes appearFromSide {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
    }
    100% {
        opacity: 1;
    }
}

/* Photo 3 (index 2) - appears from top-right */
.about-photo:nth-child(3).scattered-stage {
    z-index: 15;
    transform: translate(calc(-50% + 120px), calc(-50% - 120px)) scale(0.90) rotate(8deg);
    animation: appearFromTopRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes appearFromTopRight {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: translate(calc(-50% + 120px), calc(-50% - 120px)) scale(0.90) rotate(8deg);
    }
}

/* Photo 4 (index 3) - appears from top-left */
.about-photo:nth-child(4).scattered-stage {
    z-index: 14;
    transform: translate(calc(-50% - 120px), calc(-50% - 120px)) scale(0.88) rotate(-6deg);
    animation: appearFromTopLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes appearFromTopLeft {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: translate(calc(-50% - 120px), calc(-50% - 120px)) scale(0.88) rotate(-6deg);
    }
}

/* Photo 5 (index 4) - appears from bottom-left */
.about-photo:nth-child(5).scattered-stage {
    z-index: 13;
    transform: translate(calc(-50% - 120px), calc(-50% + 120px)) scale(0.86) rotate(-5deg);
    animation: appearFromBottomLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes appearFromBottomLeft {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.86) rotate(-5deg);
    }
}

/* Photo 6 (index 5) - appears from bottom-right */
.about-photo:nth-child(6).scattered-stage {
    z-index: 12;
    transform: translate(calc(-50% + 120px), calc(-50% + 120px)) scale(0.84) rotate(7deg);
    animation: appearFromBottomRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes appearFromBottomRight {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.84) rotate(7deg);
    }
}

/* Photo 7 (index 6) - appears from left */
.about-photo:nth-child(7).scattered-stage {
    z-index: 11;
    transform: translate(calc(-50% - 150px), calc(-50% + 0px)) scale(0.82) rotate(-4deg);
    animation: appearFromLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes appearFromLeft {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.82) rotate(-4deg);
    }
}

/* Photo 8 (index 7) - appears from right */
.about-photo:nth-child(8).scattered-stage {
    z-index: 10;
    transform: translate(calc(-50% + 150px), calc(-50% + 0px)) scale(0.80) rotate(5deg);
    animation: appearFromRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes appearFromRight {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.80) rotate(5deg);
    }
}

.about-photo.dispersed {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
}

/* Final positions matching the image layout */
.about-photo.top-left.dispersed {
    animation: disperseTopLeft 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    z-index: 3;
}

.about-photo.top-right.dispersed {
    animation: disperseTopRight 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    z-index: 3;
}

.about-photo.mid-left.dispersed {
    animation: disperseMidLeft 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    z-index: 2;
}

.about-photo.mid-right.dispersed {
    animation: disperseMidRight 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    z-index: 2;
}

.about-photo.bottom-left.dispersed {
    animation: disperseBottomLeft 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    z-index: 4;
}

.about-photo.bottom-right.dispersed {
    animation: disperseBottomRight 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    z-index: 2;
}

.about-photo.center-left.dispersed {
    animation: disperseCenterLeft 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    z-index: 1;
}

.about-photo.center-right.dispersed {
    animation: disperseCenterRight 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    z-index: 1;
}

@keyframes disperseTopLeft {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
        left: 50%;
        top: 50%;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(-3deg);
        left: 20%;
        top: 5%;
    }
}

@keyframes disperseTopRight {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
        left: 50%;
        top: 50%;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(4deg);
        left: 70%;
        top: 5%;
    }
}

@keyframes disperseMidLeft {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
        left: 50%;
        top: 50%;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(0.65) rotate(-2deg);
        left: 5%;
        top: 8%;
    }
}

@keyframes disperseMidRight {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
        left: 50%;
        top: 50%;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(0.7) rotate(5deg);
        left: 85%;
        top: 8%;
    }
}

@keyframes disperseBottomLeft {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
        left: 50%;
        top: 50%;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(-4deg);
        left: 15%;
        bottom: 5%;
        top: auto;
    }
}

@keyframes disperseBottomRight {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
        left: 50%;
        top: 50%;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(0.85) rotate(3deg);
        left: 72%;
        bottom: 20%;
        top: auto;
    }
}

@keyframes disperseCenterLeft {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
        left: 50%;
        top: 50%;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(0.7) rotate(-5deg);
        left: 10%;
        bottom: 0%;
        top: auto;
    }
}

@keyframes disperseCenterRight {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
        left: 50%;
        top: 50%;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(0.8) rotate(6deg);
        left: 75%;
        bottom: 8%;
        top: auto;
    }
}

.about-photo.visible {
    opacity: 1;
}

.about-photo:hover {
    transform: scale(1.05) rotate(var(--photo-rotation, 0deg));
    z-index: 10;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
    transition: all 0.3s ease;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* Photo sizing - all photos same size (square, smaller) */
.about-photo {
    width: 140px;
    height: 140px;
}

.about-photo.top-left,
.about-photo.top-right,
.about-photo.mid-left,
.about-photo.mid-right,
.about-photo.bottom-left,
.about-photo.bottom-right,
.about-photo.center-left,
.about-photo.center-right {
    width: 140px;
    height: 140px;
}

.about-handwritten-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Kalam', 'Caveat', cursive, sans-serif;
    font-size: 72px;
    color: rgba(100, 100, 100, 0.6);
    font-weight: 400;
    letter-spacing: 3px;
    z-index: 5;
    pointer-events: none;
    opacity: 1;
    animation: fadeInText 1s ease-in-out 0.8s forwards;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 40px;
}

.about-text {
    text-align: center;
    margin: 40px auto;
    padding: 40px;
    line-height: 1.8;
    opacity: 1;
    animation: fadeInUp 0.8s ease-out 1s forwards;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 800px;
}

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

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-dark);
    font-family: 'Special Elite', 'Benne', serif;
}

/* ============================
   Mission & Vision Layout
   ============================ */
.mv-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: auto auto 80px;
    max-width: 1000px;
}

.mv-box {
    display: flex;
    flex-wrap: nowrap;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

/* Left panel (video area) */
.mv-left {
    flex: 1;
    background-color: #2b1c1d;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Inter, sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: clamp(36px, 5vw, 72px);
    text-transform: uppercase;
    padding: 40px;
}

/* Right panel (text area) */
.mv-right {
    flex: 2;
    padding: 20px 30px;
    font-family: "Linden Hill", serif;
    font-size: 12px;
    line-height: 1.8;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.mv-right p {
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Mission colors */
.mv-box.mission .mv-right {
    background-color: #e3d86c; /* soft mustard */
    color: #2b1c1d;
    padding: 12px 18px; /* Tighter padding to shorten box */
}

/* Vision colors */
.mv-box.vision .mv-right {
    background-color: #c9e3e0; /* pale teal */
    color: #2b1c1d;
    padding: 12px 18px; /* Match mission box padding */
}

.mv-box.mission .mv-right p {
    font-family: "Special Elite", "Linden Hill", serif;
    font-size: 32px;
    line-height: 1.4;
    letter-spacing: .2px;
    text-align: center;
}

.mv-box.vision .mv-right p {
    font-family: "Special Elite", "Linden Hill", serif;
    font-size: 32px;
    line-height: 1.4;
    letter-spacing: .2px;
    text-align: center;
}

.mv-box.mission .mv-left {
    background: transparent;            /* remove dark bg */
    padding: 0;                         /* remove inner padding */
    overflow: hidden;                   /* clip image corners */
    border-radius: 16px 0 0 16px;       /* match card rounding */
    display: block;
    flex: 1 1 340px;                    /* reasonable min width */
    min-height: 200px;                  /* shorter mission box */
}

.mv-box.mission .mv-left .mv-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;                  /* fill nicely */
    display: block;
}

.mv-box.mission .mv-left video.mv-photo {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Zoom out - show entire video */
    display: block;
    background: #000;
}

.mv-box.vision .mv-left {
    background: transparent;
    padding: 0;
    overflow: hidden;
    border-radius: 16px 0 0 16px;
    display: block;
    flex: 1 1 340px;
    min-height: 200px; /* Match mission box */
}

.mv-box.vision .mv-left .mv-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mv-box.vision .mv-left video.mv-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

@media (max-width: 1000px) {
    .mv-section {
        margin: auto 20px 40px;
        gap: 30px;
    }

    .mv-box {
        flex-direction: column;
    }

    .mv-box.mission .mv-left {
        border-radius: 16px 16px 0 0;
        width: 100%;
        flex: 1 1 auto;
        min-height: 160px;
    }

    .mv-box.vision .mv-left {
        border-radius: 16px 16px 0 0;
        width: 100%;
        flex: 1 1 auto;
        min-height: 160px;
    }

    .mv-box.mission .mv-left {
        min-height: 200px;
    }

    .mv-box.vision .mv-left {
        min-height: 200px;
    }

    .mv-box.mission .mv-right,
    .mv-box.vision .mv-right {
        padding: 18px;
    }

    .mv-box.mission .mv-right p,
    .mv-box.vision .mv-right p {
        font-size: 32px;
        line-height: 1.4;
    }
}

@media (max-width: 750px) {
    .mv-section {
        margin: auto 16px 30px;
        gap: 24px;
    }

    .mv-box.mission .mv-left {
        min-height: 150px;
    }

    .mv-box.vision .mv-left {
        min-height: 150px;
    }

    .mv-box.mission .mv-left {
        min-height: 150px;
    }

    .mv-box.vision .mv-left {
        min-height: 150px;
    }

    .mv-box.mission .mv-right,
    .mv-box.vision .mv-right {
        padding: 14px;
        flex: 1;
        min-height: auto;
    }

    .mv-box.mission .mv-right p,
    .mv-box.vision .mv-right p {
        font-size: 32px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .mv-section {
        margin: 20px 12px;
        gap: 20px;
    }

    .mv-box.mission .mv-left {
        min-height: 130px;
    }

    .mv-box.vision .mv-left {
        min-height: 130px;
    }

    .mv-box.mission .mv-left {
        min-height: 130px;
    }

    .mv-box.vision .mv-left {
        min-height: 130px;
    }

    .mv-box.mission .mv-right,
    .mv-box.vision .mv-right {
        padding: 12px;
        flex: 1;
        min-height: auto;
    }

    .mv-box.mission .mv-right p,
    .mv-box.vision .mv-right p {
        font-size: 32px;
        line-height: 1.4;
    }
}

/* About Page Responsive Design */
@media (max-width: 768px) {
    .about-collage {
        min-height: 400px;
        margin-bottom: 40px;
    }

    .about-photo {
        width: 140px !important;
        height: 100px !important;
    }

    .about-photo.top-left {
        top: 2%;
        left: 2%;
    }

    .about-photo.top-right {
        top: 5%;
        right: 2%;
    }

    .about-photo.mid-left {
        top: 25%;
        left: 1%;
    }

    .about-photo.mid-right {
        top: 20%;
        right: 3%;
    }

    .about-photo.bottom-left {
        bottom: 5%;
        left: 3%;
    }

    .about-photo.bottom-right {
        bottom: 3%;
        right: 5%;
    }

    .about-photo.center-left {
        top: 50%;
        left: 5%;
        transform: translateY(-50%);
    }

    .about-photo.center-right {
        top: 45%;
        right: 8%;
        transform: translateY(-50%);
    }

    .about-handwritten-text {
        font-size: 32px;
        letter-spacing: 1px;
    }

    .about-content {
        padding-top: 20px;
    }

    .about-text {
        margin: 30px 20px;
        padding: 30px 20px;
    }

    .mv-section {
        max-width: 1200px;
        margin: auto auto 100px;
        gap: 60px;
    }

    .mv-box {
        border-radius: 12px;
    }

    .mv-left {
        flex: 1 1 400px;
    }

    .mv-right {
        flex: 2 1 600px;
        padding: 40px;
    }

    .mv-box.mission .mv-right p {
        font-size: 32px;
        line-height: 1.4;
    }

    .mv-box.vision .mv-right p {
        font-size: 32px;
        line-height: 1.4;
    }

    /* Desktop Sentence Builder */
    .sentence-builder-section {
        padding: 40px;
        max-width: 1000px;
        margin: 0 auto;
    }

    .builder-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Desktop Footer */
    .bottom-content {
        padding-top: 60px;
    }

    .title-line {
        font-size: clamp(12px, 1.2vw, 16px);
    }
}

/* Footer - Maroon Footer */
.maroon-footer {
    width: 100%;
    background-color: var(--header-color);
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

.maroon-footer .title-line {
    color: #ffffff;
}

.bottom-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bottom-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        rgba(0, 0, 0, 0.05),
        rgba(0, 0, 0, 0.35)
    );
    opacity: 0.60;
    pointer-events: none;
}

.bottom-content {
    position: absolute;
    top: 50%;
    left: 35%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    width: auto;
    text-align: center;
}

.made-with-love {
    font-size: clamp(8px, 1.5vw, 12px);
}

.bottom-text-content {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bottom-text {
    font-size: 14px;
    color: #fef7c8;
}

.title-line {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.22em;
    font-family: "American Typewriter", "Courier New", monospace;
    font-weight: 400;
    font-size: clamp(8px, 1.5vw, 12px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.2;
    width: auto;
    text-align: center;
    margin: 0 auto;
}

.letter {
    display: inline-block;
    transform: translateY(120%) scale(0.8);
    opacity: 0;
    transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1),
                opacity 0.7s ease-out,
                color 0.3s ease;
    transition-delay: var(--delay, 0s);
    animation: letterGlow 3s ease-in-out infinite;
    animation-delay: calc(var(--delay, 0s) + 1s);
}

.letter.space {
    width: 0.65em;
    transform: translateY(0);
    opacity: 1;
    transition: none;
    animation: none;
}

.title-line.show .letter {
    transform: translateY(0) scale(1);
    opacity: 1;
}

@keyframes letterGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.5),
                     0 0 10px rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.8),
                     0 0 20px rgba(0, 0, 0, 0.5),
                     0 0 30px rgba(0, 0, 0, 0.3);
    }
}

.title-line.show {
    animation: textPulse 4s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Scroll to Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 50px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(to top, rgba(232, 232, 232, 0.95), rgba(232, 232, 232, 0.75));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
    color: #5C2D2D;
}

.scroll-to-top-btn:hover {
    background: linear-gradient(to top, rgba(232, 232, 232, 0.98), rgba(232, 232, 232, 0.85));
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

.scroll-to-top-btn:active {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .scroll-to-top-btn {
        right: 50px;
    }
}

@media (min-width: 1024px) {
    .scroll-to-top-btn {
        right: 60px;
    }
}

.team-polaroids {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 16px auto 32px;
    padding: 0 16px;
}

.team-photo {
    width: 240px;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.team-photo-small {
    width: 200px;
}

.team-photo-large {
    width: 300px;
}

@media (max-width: 900px) {
    .team-polaroids {
        margin: 16px auto 24px;
        gap: 8px;
        padding-top: 0;
    }

    .team-photo {
        width: 180px;
    }

    .team-photo-small {
        width: 160px;
    }

    .team-photo-large {
        width: 230px;
    }
}

@media (max-width: 600px) {
    .team-polaroids {
        margin: 12px auto 20px;
        gap: 6px;
        padding-top: 0;
    }

    .team-photo {
        width: 150px;
    }

    .team-photo-small {
        width: 140px;
    }

    .team-photo-large {
        width: 210px;
    }
}

/* Team Section */
.team-section {
    position: absolute;
    top: 50px;
    right: 5%;
    width: 400px;
    padding: 40px;
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    min-height: 100vh;
    overflow: hidden;
}

.team-title {
    font-family: 'Chelsea Market', cursive;
    font-size: clamp(42px, 6vw, 80px);
    font-weight: 400;
    color: var(--header-color);
    text-align: center;
    margin: 80px auto 12px;
    text-transform: none;
    line-height: 1.2;
    letter-spacing: 0.5px;
    position: relative;
    transform: none;
    width: fit-content;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 3px solid var(--text-dark);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

@media (max-width: 767px) {
    .team-title {
        margin: 40px auto 8px;
        padding: 8px 14px;
        font-size: clamp(28px, 8vw, 40px);
        border-width: 2px;
        border-radius: 12px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    }
}

.team-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    position: relative;
    /* animation: moveUpLoop 15s linear infinite; Disabled to stop the circle chain from moving up */
}

.team-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        var(--header-color) 0px,
        var(--header-color) 10px,
        transparent 10px,
        transparent 20px
    );
    transform: translateX(-50%);
    z-index: 0;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
    opacity: 1;
    transform: translateY(0);
}

@keyframes moveUpLoop {
    0% {
        transform: translateY(100vh);
    }
    100% {
        transform: translateY(-100%);
    }
}

.team-portrait {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 6px solid #000000;
    outline: 3px dashed var(--header-color);
    outline-offset: -3px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

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

.team-name {
    font-family: 'Linden Hill', serif;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    color: var(--header-color);
    text-align: center;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-description {
    font-family: 'Linden Hill', serif;
    font-size: clamp(14px, 1.5vw, 18px);
    color: #ffffff;
    text-align: center;
    margin: 0;
    max-width: 300px;
    line-height: 1.5;
}

@media (max-width: 1200px) {
    .team-section {
        position: relative;
        right: auto;
        width: 100%;
        max-width: 500px;
        margin: 80px auto 0;
    }
}

@media (max-width: 768px) {
    .team-section {
        padding: 60px 20px 40px;
    }
    
    .team-portrait {
        width: 150px;
        height: 150px;
    }
    
    .team-container {
        gap: 40px;
    }
}

/* ==========================================
   MOBILE FORM RESPONSIVE FIXES
   ========================================== */

@media (max-width: 767px) {
    /* Prevent horizontal overflow on mobile */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .page,
    .page.active,
    #send,
    [data-anchor="send"] {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        padding: 0;
    }

    /* Form Container */
    .form-container {
        padding: 20px 16px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .form-page-title {
        font-size: clamp(22px, 5vw, 28px);
        margin-bottom: 12px;
        padding: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
    }

    .form-instruction {
        font-size: 13px;
        padding: 0;
        margin-bottom: 20px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
    }

    /* Fix wave text animation overflow */
    .wave-text {
        display: block;
        width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .wave-char {
        animation: none; /* Disable animation on mobile for performance */
    }

    /* Card Form */
    .card-form {
        padding: 20px 16px;
        margin: 0 auto 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-radius: 10px;
    }

    .form-group {
        gap: 8px;
        margin-bottom: 12px;
        width: 100%;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .form-group textarea {
        min-height: 120px;
    }

    /* File Upload */
    .file-upload-group {
        margin-top: 8px;
    }

    .file-input-wrapper {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .file-choose-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        text-align: center;
    }

    .file-name-display {
        width: 100%;
        padding: 10px 12px;
        font-size: 13px;
        text-align: center;
    }

    /* Submit Button */
    .submit-btn,
    .final-submit-btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
        min-height: 50px;
        margin-top: 10px;
    }

    .final-submit-wrapper {
        padding: 0;
        margin-top: 20px;
    }

    /* Selected Card Display */
    .selected-card-display {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 0 10px;
        margin-bottom: 20px;
    }

    .selected-card-thumbnail {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .selected-card-text {
        font-size: 14px;
    }

    /* Sentence Builder Section */
    .sentence-builder-section {
        padding: 16px 14px;
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .sentence-builder-title {
        font-size: 18px;
        letter-spacing: 0.1em;
        margin-bottom: 16px;
    }

    /* Builder Grid - Stack on mobile */
    .builder-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .word-group {
        margin-bottom: 16px;
    }

    .group-title {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .sentence-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
    }

    /* Word Options - for clickable word builder */
    .word-options {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .word-option {
        min-width: auto;
        min-height: auto;
        padding: 8px 12px;
        font-size: 13px;
        flex: 0 1 auto;
    }

    .word-option::before {
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
    }

    /* Builder Actions */
    .builder-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
    }

    .builder-button {
        padding: 10px 16px;
        font-size: 12px;
        flex: 1 1 auto;
        min-width: 80px;
        text-align: center;
    }

    /* Sentence Output */
    .sentence-output {
        font-size: 15px;
        padding: 14px;
        margin-top: 16px;
        min-height: 60px;
    }

    .validation-message {
        font-size: 12px;
        margin-top: 10px;
    }

    /* Postcard Preview Section */
    .postcard-preview-section {
        padding: 16px 12px;
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .postcard-preview-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .postcard-front-wrapper,
    .postcard-back-wrapper {
        margin-bottom: 20px;
    }

    .postcard-label {
        font-size: 14px;
        margin-bottom: 10px;
    }

    /* Final Sentence in Preview */
    .final-sentence {
        font-size: 14px;
        left: 20px;
        right: 20px;
        top: 20px;
    }

    .final-handwriting-wrapper {
        left: 20px;
        right: 20px;
        top: 80px;
        bottom: 60px;
    }

    /* Home container spacing */
    .home-container {
        padding: 0;
    }

    /* Cards Section */
    #cards,
    [data-anchor="cards"] {
        padding: 30px 12px;
    }

    .cards-section-title {
        font-size: clamp(24px, 6vw, 36px);
        margin-bottom: 20px;
    }

    /* Card Options Masonry */
    .card-options {
        column-count: 2 !important;
        column-gap: 10px !important;
        padding: 0 8px;
    }

    .card-option {
        width: 100%;
        break-inside: avoid;
        margin-bottom: 10px;
    }

    /* Footer Mobile Fixes */
    .maroon-footer {
        padding: 20px 10px;
    }

    .footer-content {
        padding: 10px 0;
    }

    .title-line {
        font-size: 10px;
        letter-spacing: 0.05em;
        flex-wrap: wrap;
        gap: 0.15em;
        padding: 0 10px;
        line-height: 1.4;
        justify-content: center;
        width: 100%;
    }

    .letter {
        font-size: 10px;
    }

    .letter.space {
        width: 0.4em;
    }

    /* Scroll to top button mobile */
    .scroll-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .form-container {
        padding: 16px 8px;
    }

    .card-form {
        padding: 16px 12px;
    }

    .sentence-builder-section {
        padding: 14px 10px;
    }

    .builder-button {
        padding: 8px 12px;
        font-size: 11px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
    }

    .submit-btn,
    .final-submit-btn {
        padding: 14px 20px;
    }

    /* Footer extra small screens */
    .title-line {
        font-size: 8px;
        letter-spacing: 0.03em;
    }

    .letter {
        font-size: 8px;
    }
}
