/* =======================
   CSS Custom Properties
   - Centralized design tokens for consistent theming
   - Easy to modify for color scheme changes
   ======================= */

:root {
    --bg-color: #FDF6EF;           /* Warm off-white background */
    --text-color: #24251E;          /* Dark text color */
    --accent: #323D3C;              /* Primary accent (cycles via JS) */
    --content-padding: 2rem;        /* Standard section padding */
    --header-text-color: #24251E;   /* Header text (changes on scroll) */
}

/* =======================
   Reset & Base Styles
   - Normalize browser defaults
   - Set up document-level styles
   ======================= */

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

html, body {
    height: 100%;
    overflow: hidden; /* Scroll handled by .content-area */
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: "semplicitapro", sans-serif;
    font-weight: 300;
    font-style: normal;
}

/* =======================
   Utility Classes
   ======================= */

/* Screen reader only - visually hidden but accessible */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =======================
   Site Header
   - Fixed navigation bar at top
   - Dynamic gradient background based on scroll position
   - Text color transitions between sections
   ======================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 2rem 6rem 2.5rem 6rem;
    z-index: 200;
    background: transparent;
    min-height: 120px;
    transition: min-height 0.4s ease, padding-bottom 0.4s ease;
}

/* Logo styling */
.site-header h1 {
    font-family: "elizeth", serif;
    font-weight: 300;
    font-style: normal;
    font-size: 3rem;
    letter-spacing: 0.08em;
    text-transform: none;
    line-height: 1;
    color: var(--header-text-color);
    transition: color 0.3s ease;
}

/* Desktop navigation container */
.site-header nav {
    display: flex;
    align-items: flex-end;
}

.site-header nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

/* Navigation link styling */
.site-header a {
    font-family: "elizeth", serif;
    font-weight: 400;
    font-style: normal;
    text-decoration: none;
    color: var(--header-text-color);
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    text-transform: none;
    opacity: 0.7;
    transition: opacity 0.2s ease, color 0.3s ease;
}

.site-header a:hover,
.site-header a.active {
    opacity: 1;
}

/* =======================
   Hamburger Menu Button
   - Mobile-only toggle for navigation
   - Animates to X when active
   ======================= */

.hamburger {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 300;
}

/* Hamburger lines */
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--header-text-color);
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    margin: 3px 0;
}

/* Hamburger active state - transforms to X */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =======================
   Mobile Menu Overlay
   - Full-width slide-down navigation
   - Covers 75% of viewport height
   ======================= */

.mobile-menu {
    display: none; /* Hidden on desktop, enabled via media query */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 75vh;
    background: var(--accent);
    z-index: 150;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%); /* Hidden above viewport */
    transition: transform 0.4s ease, background-color 0.8s ease;
}

/* Slide in when active */
.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-menu a {
    font-family: "elizeth", serif;
    font-weight: 300;
    font-style: normal;
    text-decoration: none;
    color: var(--bg-color);
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-transform: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    opacity: 1;
}

/* =======================
   Content Area
   - Main scrollable container
   - Custom scrollbar hidden for cleaner look
   ======================= */

.content-area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    background: var(--bg-color);
    /* Hide scrollbar across browsers */
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE/Edge */
}

.content-area::-webkit-scrollbar {
    display: none;                  /* Chrome/Safari */
}

/* =======================
   Hero Section
   - Full viewport image carousel
   - Uses CSS custom properties for crossfade animation
   - --fade-opacity controlled via JavaScript
   ======================= */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    background-image: url("./Photos_lowres/Capture One Catalog0018.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    --fade-opacity: 0; /* JS-controlled fade progress */
}

/* Crossfade overlay - next image fades in over current */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--next-bg); /* Set via JS */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: var(--fade-opacity);
    z-index: 1;
}

/* =======================
   General Section Styles
   - Consistent padding and typography
   - Wide margins on desktop for readability
   ======================= */

section {
    background: var(--bg-color);
    padding: 5rem 25rem;
}

/* Section headings */
section h2 {
    font-family: "elizeth", serif;
    font-weight: 300;
    font-style: normal;
    font-size: 2.5rem;
    text-transform: none;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
}

section h3 {
    font-family: "elizeth", serif;
    font-weight: 300;
    font-style: normal;
    font-size: 1.5rem;
    text-transform: none;
    margin: 3rem 0 1rem;
}

/* Body text */
section p {
    font-family: "semplicitapro", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 700px;
}

/* =======================
   About Section
   ======================= */

.about-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    border-bottom: 1px solid rgba(36, 37, 30, 0.1);
}

.about-section .lead {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.about-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
}

.about-keywords span {
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(36, 37, 30, 0.25);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

section p strong {
    font-weight: 600;
}

section p em {
    font-style: italic;
}

section a {
    color: var(--text-color);
}

/* Concept bullet list */
.concept-list {
    font-family: "semplicitapro", sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    line-height: 1.7;
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.concept-list li {
    margin-bottom: 0.4rem;
}

/* Timeline/Zeitplan image */
.zeitplan-image {
    width: 100%;
    max-width: 800px;
    margin: 1.5rem 0;
    display: block;
}

/* =======================
   Ticket Section
   - Full-width with background image
   - Image cycles in sync with hero
   - Contains ticket purchase card
   ======================= */

.ticket-section {
    position: relative;
    padding: 6rem 25rem;
    min-height: 100vh;
    background-image: url("./Photos_lowres/Capture One Catalog0058.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    --fade-opacity: 0; /* JS-controlled fade progress */
}

/* Crossfade overlay for ticket section */
.ticket-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--next-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: var(--fade-opacity);
    z-index: 0;
}

/* Ensure content appears above overlay */
.ticket-section > * {
    position: relative;
    z-index: 1;
}

/* Ticket section typography - color cycles via JS */
.ticket-section h2 {
    font-weight: 400;
    color: var(--accent);
    transition: color 0.8s ease;
}

.ticket-section > p {
    font-weight: 600;
    color: var(--accent);
    transition: color 0.8s ease;
}

/* =======================
   Ticket Card Component
   - Accent-colored card with inverted colors
   - Contains pricing and purchase button
   ======================= */

.ticket-card {
    margin: 1.5rem 0;
    background: var(--accent);
    color: var(--bg-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: background-color 0.8s ease;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.ticket-label {
    font-family: "elizeth", serif;
    font-weight: 300;
    font-style: normal;
    font-size: 1.1rem;
    text-transform: none;
    letter-spacing: 0.1em;
    color: var(--bg-color);
}

.ticket-price {
    font-family: "elizeth", serif;
    font-weight: 300;
    font-size: 2rem;
    color: var(--bg-color);
}

.ticket-description {
    font-family: "semplicitapro", sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--bg-color);
}

/* Purchase button */
.ticket-button {
    font-family: "semplicitapro", sans-serif;
    font-weight: 600;
    margin-top: 0.5rem;
    border: none;
    padding: 0.75rem 1.5rem;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0.1em;
    cursor: pointer;
    align-self: flex-start;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ticket-button:hover {
    background: var(--accent);
    color: var(--bg-color);
}

.ticket-note {
    font-family: "semplicitapro", sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: 0.75rem;
    opacity: 0.7;
    color: var(--bg-color);
}

/* =======================
   Footer
   ======================= */

footer {
    padding: var(--content-padding);
    padding-left: 25rem;
    padding-right: 25rem;
    font-family: "semplicitapro", sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    text-align: center;
    border-top: 1px solid rgba(36, 37, 30, 0.15);
}

/* =======================
   Mobile Responsive Styles
   - Breakpoint: 800px
   - Adjusts padding, font sizes, and layout
   - Enables hamburger menu
   ======================= */

@media (max-width: 800px) {
    :root {
        --content-padding: 1.25rem;
    }

    /* Compact header for mobile */
    .site-header {
        padding: 1.5rem 2rem;
        min-height: 80px;
        align-items: center;
    }

    .site-header h1 {
        font-size: 1.8rem;
    }

    /* Hide desktop nav, show hamburger */
    .site-header nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    /* Reduced section padding */
    section {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    /* Smaller typography */
    section h2 {
        font-size: 1.5rem;
    }

    section h3 {
        font-size: 1.2rem;
    }

    section p {
        font-size: 0.95rem;
    }

    /* About section mobile */
    .about-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .about-section .lead {
        font-size: 1.1rem;
    }

    .about-keywords {
        gap: 0.75rem;
    }

    .about-keywords span {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    /* Ticket section mobile adjustments */
    .ticket-section {
        padding: 4rem 2rem;
    }

    .ticket-card {
        max-width: 100%;
    }

    .ticket-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .ticket-price {
        font-size: 1.5rem;
    }

    footer {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .zeitplan-image {
        max-width: 100%;
    }

    /* Newsletter form responsive */
    #mc_embed_signup #mc_embed_signup_scroll {
        flex-direction: column;
        gap: 1rem;
    }

    #mc_embed_signup .mc-field-group {
        width: 100%;
    }

    #mc_embed_signup input[type="email"] {
        width: 100%;
    }

    #mc_embed_signup input[type="submit"] {
        width: 100%;
    }
}

/* =======================
   Newsletter / Mailchimp Form
   - Styled to match site design
   - Branding removed
   ======================= */

#mc_embed_shell {
    margin-top: 1.5rem;
}


#mc_embed_signup form {
    display: flex;
    gap: 0;
    align-items: stretch;
    flex-wrap: nowrap;
}

#mc_embed_signup #mc_embed_signup_scroll {
    display: flex;
    gap: 0;
    align-items: stretch;
    width: 100%;
}

#mc_embed_signup .mc-field-group {
    flex: 1;
}

#mc_embed_signup .optionalParent {
    flex-shrink: 0;
    display: flex;
}

#mc_embed_signup .optionalParent .foot {
    display: flex;
}

#mc_embed_signup input[type="email"] {
    width: 100%;
    height: 100%;
    padding: 0.9rem 1rem;
    font-family: "semplicitapro", sans-serif;
    font-size: 1rem;
    font-weight: 300;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

#mc_embed_signup input[type="email"]::placeholder {
    color: var(--text-color);
    opacity: 0.5;
}

#mc_embed_signup input[type="email"]:focus {
    outline: none;
    border-color: var(--text-color);
    box-shadow: 0 0 0 2px rgba(50, 61, 60, 0.15);
}

#mc_embed_signup input[type="submit"] {
    height: 100%;
    padding: 0.9rem 2rem;
    font-family: "elizeth", serif;
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 0.05em;
    background: var(--accent);
    color: var(--bg-color);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
}

#mc_embed_signup input[type="submit"]:hover {
    background: var(--text-color);
    transform: translateY(-1px);
}

#mc_embed_signup input[type="submit"]:active {
    transform: translateY(0);
}

/* Hide Mailchimp branding */
#mc_embed_signup .refferal_badge,
#mc_embed_signup .optionalParent > .foot > p,
#mc_embed_signup .indicates-required {
    display: none !important;
}

/* Response messages */
#mc_embed_signup #mce-error-response,
#mc_embed_signup #mce-success-response {
    font-family: "semplicitapro", sans-serif;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
}

#mc_embed_signup #mce-error-response {
    color: #740B00;
    background: rgba(116, 11, 0, 0.1);
}

#mc_embed_signup #mce-success-response {
    color: #4E7247;
    background: rgba(78, 114, 71, 0.1);
}

/* =======================
   Presentation Page Styles
   - Full-viewport scroll-snap sections
   - Used on /presentation/ page
   ======================= */

/* Enable normal scrolling for presentation page */
.presentation-page html,
.presentation-page body {
    overflow: auto;
}

/* Presentation content area with scroll-snap */
.presentation-page .content-area {
    position: relative;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
}

/* Presentation section - full viewport with snap */
.presentation-section {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 25rem;
    position: relative;
}

/* Background image sections */
.presentation-section.has-bg {
    background-size: cover;
    background-position: center;
}

.presentation-section.has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(253, 246, 239, 0.85);
}

.presentation-section.has-bg > * {
    position: relative;
    z-index: 1;
}

/* Section label (uppercase tag) */
.label {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

/* Presentation headings */
.presentation-section h1 {
    font-family: "elizeth", serif;
    font-weight: 300;
    font-size: 4rem;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.presentation-section .subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    opacity: 0.8;
}

/* Meta info row */
.meta-info {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Tension flow diagram */
.tension-flow {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.tension-item {
    font-family: "elizeth", serif;
    font-size: 1.5rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--accent);
    background: transparent;
}

.tension-arrow {
    font-size: 1.5rem;
    color: var(--accent);
}

/* Keywords / tags */
.keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.keyword {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(36, 37, 30, 0.3);
    font-size: 0.875rem;
}

/* Ideas grid */
.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.idea-card {
    padding: 2rem;
    border: 1px solid rgba(36, 37, 30, 0.15);
}

.idea-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.idea-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.idea-note {
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.7;
    margin-top: 0.5rem;
    display: block;
}

/* Involvement list with arrow bullets */
.involvement-list {
    list-style: none;
    margin: 1.5rem 0;
}

.involvement-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.involvement-list li::before {
    content: '→';
    position: absolute;
    left: 0;
}

/* Production grid */
.production-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.production-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.production-item p {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Team grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.team-member {
    padding: 2rem;
    border: 1px solid rgba(36, 37, 30, 0.15);
}

.team-member h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.team-member .role {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: block;
}

/* Crew skills tags */
.crew-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.crew-skills span {
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(36, 37, 30, 0.3);
    font-size: 0.8rem;
}

/* Questions section */
.questions p {
    font-family: "elizeth", serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Next step CTA box */
.next-step {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--accent);
    color: var(--bg-color);
    display: inline-block;
}

.next-step h3 {
    color: var(--bg-color);
    margin-bottom: 0.5rem;
}

.next-step p {
    color: var(--bg-color);
    margin: 0;
}

/* CTA button */
.cta {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: var(--accent);
    color: var(--bg-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: opacity 0.2s ease;
}

.cta:hover {
    opacity: 0.85;
}

/* Scroll hint indicator */
.scroll-hint {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.5;
}

.scroll-hint::after {
    content: '';
    display: block;
    width: 1px;
    height: 30px;
    background: currentColor;
    margin: 0.5rem auto 0;
}

/* Presentation mobile styles */
@media (max-width: 800px) {
    .presentation-section {
        padding: 4rem 2rem;
    }

    .presentation-section h1 {
        font-size: 2.5rem;
    }

    .tension-flow {
        flex-direction: column;
        align-items: flex-start;
    }

    .tension-arrow {
        transform: rotate(90deg);
    }

    .meta-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}